Class: FriendlyShipping::Services::UpsJson::LabelBillingOptions

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_zip = billing_zip
  @billing_country = billing_country
  @currency = currency
end

Instance Attribute Details

#bill_third_partyObject (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_consigneeObject (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_accountObject (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
end

#billing_countryObject (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_zipObject (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

#currencyObject (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

#prepayObject (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