class Google::Apis::QpxExpressV1::TaxInfo

Tax information.

Attributes

charge_type[RW]

Whether this is a government charge or a carrier surcharge. Corresponds to the JSON property `chargeType` @return [String]

code[RW]

The code to enter in the ticket's tax box. Corresponds to the JSON property `code` @return [String]

country[RW]

For government charges, the country levying the charge. Corresponds to the JSON property `country` @return [String]

id[RW]

Identifier uniquely identifying this tax in a response. Not present for unnamed carrier surcharges. Corresponds to the JSON property `id` @return [String]

kind[RW]

Identifies this as a tax information object. Value: the fixed string qpxexpress#taxInfo. Corresponds to the JSON property `kind` @return [String]

sale_price[RW]

The price of the tax in the sales or equivalent currency. Corresponds to the JSON property `salePrice` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/qpx_express_v1/classes.rb, line 1030
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/qpx_express_v1/classes.rb, line 1035
def update!(**args)
  @charge_type = args[:charge_type] if args.key?(:charge_type)
  @code = args[:code] if args.key?(:code)
  @country = args[:country] if args.key?(:country)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @sale_price = args[:sale_price] if args.key?(:sale_price)
end