Class: Google::Apis::ContentV2_1::UnitInvoiceTaxLine
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::UnitInvoiceTaxLine
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#tax_amount ⇒ Google::Apis::ContentV2_1::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.
Constructor Details
#initialize(**args) ⇒ UnitInvoiceTaxLine
Returns a new instance of UnitInvoiceTaxLine.
14644 14645 14646 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14644 def initialize(**args) update!(**args) end |
Instance Attribute Details
#tax_amount ⇒ Google::Apis::ContentV2_1::Price
[required] Tax amount for the tax type.
Corresponds to the JSON property taxAmount
14630 14631 14632 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14630 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
14636 14637 14638 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14636 def tax_name @tax_name end |
#tax_type ⇒ String
[required] Type of the tax. Acceptable values are: - "otherFee" - "
otherFeeTax" - "sales"
Corresponds to the JSON property taxType
14642 14643 14644 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14642 def tax_type @tax_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14649 14650 14651 14652 14653 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14649 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 |