Class: Google::Apis::ContentV2::UnitInvoiceTaxLine
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::UnitInvoiceTaxLine
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
-
#tax_amount ⇒ Google::Apis::ContentV2::Price
[required] Tax amount for the tax type.
-
#tax_name ⇒ String
Optional name of the tax type.
-
#tax_type ⇒ String
[required] 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
10835 10836 10837 |
# File 'generated/google/apis/content_v2/classes.rb', line 10835 def initialize(**args) update!(**args) end |
Instance Attribute Details
#tax_amount ⇒ Google::Apis::ContentV2::Price
[required] Tax amount for the tax type.
Corresponds to the JSON property taxAmount
10822 10823 10824 |
# File 'generated/google/apis/content_v2/classes.rb', line 10822 def tax_amount @tax_amount end |
#tax_name ⇒ String
Optional name of the tax type. This should only be provided if taxType is
otherFeeTax.
Corresponds to the JSON property taxName
10828 10829 10830 |
# File 'generated/google/apis/content_v2/classes.rb', line 10828 def tax_name @tax_name end |
#tax_type ⇒ String
[required] Type of the tax.
Corresponds to the JSON property taxType
10833 10834 10835 |
# File 'generated/google/apis/content_v2/classes.rb', line 10833 def tax_type @tax_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10840 10841 10842 10843 10844 |
# File 'generated/google/apis/content_v2/classes.rb', line 10840 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 |