Class: Google::Apis::QpxExpressV1::TaxInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/qpx_express_v1/classes.rb,
generated/google/apis/qpx_express_v1/representations.rb,
generated/google/apis/qpx_express_v1/representations.rb

Overview

Tax information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TaxInfo

Returns a new instance of TaxInfo



1030
1031
1032
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1030

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#charge_typeString

Whether this is a government charge or a carrier surcharge. Corresponds to the JSON property chargeType

Returns:

  • (String)


1001
1002
1003
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1001

def charge_type
  @charge_type
end

#codeString

The code to enter in the ticket's tax box. Corresponds to the JSON property code

Returns:

  • (String)


1006
1007
1008
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1006

def code
  @code
end

#countryString

For government charges, the country levying the charge. Corresponds to the JSON property country

Returns:

  • (String)


1011
1012
1013
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1011

def country
  @country
end

#idString

Identifier uniquely identifying this tax in a response. Not present for unnamed carrier surcharges. Corresponds to the JSON property id

Returns:

  • (String)


1017
1018
1019
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1017

def id
  @id
end

#kindString

Identifies this as a tax information object. Value: the fixed string qpxexpress#taxInfo. Corresponds to the JSON property kind

Returns:

  • (String)


1023
1024
1025
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1023

def kind
  @kind
end

#sale_priceString

The price of the tax in the sales or equivalent currency. Corresponds to the JSON property salePrice

Returns:

  • (String)


1028
1029
1030
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1028

def sale_price
  @sale_price
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1035
1036
1037
1038
1039
1040
1041
1042
# 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