Class: Google::Apis::QpxExpressV1::TaxInfo
- Inherits:
-
Object
- Object
- Google::Apis::QpxExpressV1::TaxInfo
- 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
-
#charge_type ⇒ String
Whether this is a government charge or a carrier surcharge.
-
#code ⇒ String
The code to enter in the ticket's tax box.
-
#country ⇒ String
For government charges, the country levying the charge.
-
#id ⇒ String
Identifier uniquely identifying this tax in a response.
-
#kind ⇒ String
Identifies this as a tax information object.
-
#sale_price ⇒ String
The price of the tax in the sales or equivalent currency.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TaxInfo
constructor
A new instance of TaxInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_type ⇒ String
Whether this is a government charge or a carrier surcharge.
Corresponds to the JSON property chargeType
1001 1002 1003 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1001 def charge_type @charge_type end |
#code ⇒ String
The code to enter in the ticket's tax box.
Corresponds to the JSON property code
1006 1007 1008 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1006 def code @code end |
#country ⇒ String
For government charges, the country levying the charge.
Corresponds to the JSON property country
1011 1012 1013 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1011 def country @country end |
#id ⇒ String
Identifier uniquely identifying this tax in a response. Not present for
unnamed carrier surcharges.
Corresponds to the JSON property id
1017 1018 1019 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1017 def id @id end |
#kind ⇒ String
Identifies this as a tax information object. Value: the fixed string
qpxexpress#taxInfo.
Corresponds to the JSON property kind
1023 1024 1025 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1023 def kind @kind end |
#sale_price ⇒ String
The price of the tax in the sales or equivalent currency.
Corresponds to the JSON property salePrice
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 |