Class: Google::Apis::ContentV2_1::UnitInvoiceAdditionalCharge
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::UnitInvoiceAdditionalCharge
- 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
-
#additional_charge_amount ⇒ Google::Apis::ContentV2_1::Amount
[required] Amount of the additional charge.
-
#type ⇒ String
[required] Type of the additional charge.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UnitInvoiceAdditionalCharge
constructor
A new instance of UnitInvoiceAdditionalCharge.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ UnitInvoiceAdditionalCharge
Returns a new instance of UnitInvoiceAdditionalCharge.
11806 11807 11808 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11806 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_charge_amount ⇒ Google::Apis::ContentV2_1::Amount
[required] Amount of the additional charge.
Corresponds to the JSON property additionalChargeAmount
11797 11798 11799 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11797 def additional_charge_amount @additional_charge_amount end |
#type ⇒ String
[required] Type of the additional charge. Acceptable values are:
- "
shipping
" Corresponds to the JSON propertytype
11804 11805 11806 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11804 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11811 11812 11813 11814 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11811 def update!(**args) @additional_charge_amount = args[:additional_charge_amount] if args.key?(:additional_charge_amount) @type = args[:type] if args.key?(:type) end |