class FriendlyShipping::Services::Ups::LabelBillingOptions

Represents billing-related options for obtaining shipment labels. @option bill_third_party [Boolean] When truthy, bill an account other than the shipper's.

Specified by billing_(account, zip and country)

@option bill_to_consignee [Boolean] If billing a third party, bill the consignee instead of the 3rd party shipper @option prepay [Boolean] If truthy the shipper will be bill immediately. Otherwise the shipper is billed

when the label is used. Default: false

Attributes

bill_third_party[R]
bill_to_consignee[R]
billing_account[R]
billing_country[R]
billing_zip[R]
currency[R]
prepay[R]

Public Class Methods

new( bill_third_party: false, bill_to_consignee: false, prepay: false, billing_account: nil, billing_zip: nil, billing_country: nil, currency: nil ) click to toggle source
# File lib/friendly_shipping/services/ups/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