Class: FriendlyShipping::Services::UpsJson::LabelBillingOptions
- Inherits:
-
Object
- Object
- FriendlyShipping::Services::UpsJson::LabelBillingOptions
- Defined in:
- lib/friendly_shipping/services/ups_json/label_billing_options.rb
Overview
Represents billing-related options for obtaining shipment labels.
Instance Attribute Summary collapse
-
#bill_third_party ⇒ Object
readonly
Returns the value of attribute bill_third_party.
-
#bill_to_consignee ⇒ Object
readonly
Returns the value of attribute bill_to_consignee.
-
#billing_account ⇒ Object
readonly
Returns the value of attribute billing_account.
-
#billing_country ⇒ Object
readonly
Returns the value of attribute billing_country.
-
#billing_zip ⇒ Object
readonly
Returns the value of attribute billing_zip.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#prepay ⇒ Object
readonly
Returns the value of attribute prepay.
Instance Method Summary collapse
-
#initialize(bill_third_party: false, bill_to_consignee: false, prepay: false, billing_account: nil, billing_zip: nil, billing_country: nil, currency: nil) ⇒ LabelBillingOptions
constructor
A new instance of LabelBillingOptions.
Constructor Details
#initialize(bill_third_party: false, bill_to_consignee: false, prepay: false, billing_account: nil, billing_zip: nil, billing_country: nil, currency: nil) ⇒ LabelBillingOptions
Returns a new instance of LabelBillingOptions.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/friendly_shipping/services/ups_json/label_billing_options.rb', line 21 def initialize( bill_third_party: false, bill_to_consignee: false, prepay: false, billing_account: nil, billing_zip: nil, billing_country: nil, currency: nil ) @bill_third_party = bill_third_party @bill_to_consignee = bill_to_consignee @prepay = prepay @billing_account = billing_account @billing_zip = billing_zip @billing_country = billing_country @currency = currency end |
Instance Attribute Details
#bill_third_party ⇒ Object (readonly)
Returns the value of attribute bill_third_party.
13 14 15 |
# File 'lib/friendly_shipping/services/ups_json/label_billing_options.rb', line 13 def bill_third_party @bill_third_party end |
#bill_to_consignee ⇒ Object (readonly)
Returns the value of attribute bill_to_consignee.
13 14 15 |
# File 'lib/friendly_shipping/services/ups_json/label_billing_options.rb', line 13 def bill_to_consignee @bill_to_consignee end |
#billing_account ⇒ Object (readonly)
Returns the value of attribute billing_account.
13 14 15 |
# File 'lib/friendly_shipping/services/ups_json/label_billing_options.rb', line 13 def billing_account @billing_account end |
#billing_country ⇒ Object (readonly)
Returns the value of attribute billing_country.
13 14 15 |
# File 'lib/friendly_shipping/services/ups_json/label_billing_options.rb', line 13 def billing_country @billing_country end |
#billing_zip ⇒ Object (readonly)
Returns the value of attribute billing_zip.
13 14 15 |
# File 'lib/friendly_shipping/services/ups_json/label_billing_options.rb', line 13 def billing_zip @billing_zip end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
13 14 15 |
# File 'lib/friendly_shipping/services/ups_json/label_billing_options.rb', line 13 def currency @currency end |
#prepay ⇒ Object (readonly)
Returns the value of attribute prepay.
13 14 15 |
# File 'lib/friendly_shipping/services/ups_json/label_billing_options.rb', line 13 def prepay @prepay end |