Class: Google::Apis::ContentV2::UnitInvoiceTaxLine

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

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



9604
9605
9606
# File 'generated/google/apis/content_v2/classes.rb', line 9604

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

Instance Attribute Details

#tax_amountGoogle::Apis::ContentV2::Price

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



9592
9593
9594
# File 'generated/google/apis/content_v2/classes.rb', line 9592

def tax_amount
  @tax_amount
end

#tax_nameString

Optional name of the tax type. Corresponds to the JSON property taxName

Returns:

  • (String)


9597
9598
9599
# File 'generated/google/apis/content_v2/classes.rb', line 9597

def tax_name
  @tax_name
end

#tax_typeString

Type of the tax. Corresponds to the JSON property taxType

Returns:

  • (String)


9602
9603
9604
# File 'generated/google/apis/content_v2/classes.rb', line 9602

def tax_type
  @tax_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9609
9610
9611
9612
9613
# File 'generated/google/apis/content_v2/classes.rb', line 9609

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