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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UnitInvoiceTaxLine

Returns a new instance of UnitInvoiceTaxLine.



14165
14166
14167
# File 'lib/google/apis/content_v2_1/classes.rb', line 14165

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



14151
14152
14153
# File 'lib/google/apis/content_v2_1/classes.rb', line 14151

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)


14157
14158
14159
# File 'lib/google/apis/content_v2_1/classes.rb', line 14157

def tax_name
  @tax_name
end

#tax_typeString

[required] Type of the tax. Acceptable values are: - "otherFee" - " otherFeeTax" - "sales" Corresponds to the JSON property taxType

Returns:

  • (String)


14163
14164
14165
# File 'lib/google/apis/content_v2_1/classes.rb', line 14163

def tax_type
  @tax_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14170
14171
14172
14173
14174
# File 'lib/google/apis/content_v2_1/classes.rb', line 14170

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