Class: Google::Apis::ContentV2_1::UnitInvoiceAdditionalCharge

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) ⇒ UnitInvoiceAdditionalCharge

Returns a new instance of UnitInvoiceAdditionalCharge



8994
8995
8996
# File 'generated/google/apis/content_v2_1/classes.rb', line 8994

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

Instance Attribute Details

#additional_charge_amountGoogle::Apis::ContentV2_1::Amount

[required] Amount of the additional charge. Corresponds to the JSON property additionalChargeAmount



8987
8988
8989
# File 'generated/google/apis/content_v2_1/classes.rb', line 8987

def additional_charge_amount
  @additional_charge_amount
end

#typeString

[required] Type of the additional charge. Corresponds to the JSON property type

Returns:

  • (String)


8992
8993
8994
# File 'generated/google/apis/content_v2_1/classes.rb', line 8992

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8999
9000
9001
9002
# File 'generated/google/apis/content_v2_1/classes.rb', line 8999

def update!(**args)
  @additional_charge_amount = args[:additional_charge_amount] if args.key?(:additional_charge_amount)
  @type = args[:type] if args.key?(:type)
end