Class: Google::Apis::ContentV2_1::UnitInvoiceTaxLine

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UnitInvoiceTaxLine

Returns a new instance of UnitInvoiceTaxLine.



10074
10075
10076
# File 'generated/google/apis/content_v2_1/classes.rb', line 10074

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

Instance Attribute Details

#tax_amountGoogle::Apis::ContentV2_1::Price

[required] Tax amount for the tax type. Corresponds to the JSON property taxAmount



10061
10062
10063
# File 'generated/google/apis/content_v2_1/classes.rb', line 10061

def tax_amount
  @tax_amount
end

#tax_nameString

Optional name of the tax type. This should only be provided if taxType is otherFeeTax. Corresponds to the JSON property taxName

Returns:

  • (String)


10067
10068
10069
# File 'generated/google/apis/content_v2_1/classes.rb', line 10067

def tax_name
  @tax_name
end

#tax_typeString

[required] Type of the tax. Corresponds to the JSON property taxType

Returns:

  • (String)


10072
10073
10074
# File 'generated/google/apis/content_v2_1/classes.rb', line 10072

def tax_type
  @tax_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10079
10080
10081
10082
10083
# File 'generated/google/apis/content_v2_1/classes.rb', line 10079

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