Class: Google::Apis::ContentV2sandbox::UnitInvoiceTaxLine
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2sandbox::UnitInvoiceTaxLine
- Defined in:
- generated/google/apis/content_v2sandbox/classes.rb,
generated/google/apis/content_v2sandbox/representations.rb,
generated/google/apis/content_v2sandbox/representations.rb
Instance Attribute Summary collapse
-
#tax_amount ⇒ Google::Apis::ContentV2sandbox::Price
Tax amount for the tax type.
-
#tax_name ⇒ String
Optional name of the tax type.
-
#tax_type ⇒ String
Type of the tax.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UnitInvoiceTaxLine
constructor
A new instance of UnitInvoiceTaxLine.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ UnitInvoiceTaxLine
Returns a new instance of UnitInvoiceTaxLine
4024 4025 4026 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 4024 def initialize(**args) update!(**args) end |
Instance Attribute Details
#tax_amount ⇒ Google::Apis::ContentV2sandbox::Price
Tax amount for the tax type.
Corresponds to the JSON property taxAmount
4012 4013 4014 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 4012 def tax_amount @tax_amount end |
#tax_name ⇒ String
Optional name of the tax type.
Corresponds to the JSON property taxName
4017 4018 4019 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 4017 def tax_name @tax_name end |
#tax_type ⇒ String
Type of the tax.
Corresponds to the JSON property taxType
4022 4023 4024 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 4022 def tax_type @tax_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4029 4030 4031 4032 4033 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 4029 def update!(**args) @tax_amount = args[:tax_amount] if args.key?(:tax_amount) @tax_name = args[:tax_name] if args.key?(:tax_name) @tax_type = args[:tax_type] if args.key?(:tax_type) end |