Class: Google::Apis::ContentV2_1::UnitInvoiceAdditionalCharge
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::UnitInvoiceAdditionalCharge
- 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
-
#additional_charge_amount ⇒ Google::Apis::ContentV2_1::Amount
[required] Amount of the additional charge per unit.
-
#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.
Constructor Details
#initialize(**args) ⇒ UnitInvoiceAdditionalCharge
Returns a new instance of UnitInvoiceAdditionalCharge.
15545 15546 15547 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15545 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_charge_amount ⇒ Google::Apis::ContentV2_1::Amount
[required] Amount of the additional charge per unit. Note: Invoicing works
on a per unit bases. The additionalChargeAmount is the amount charged per
unit, and will be multiplied by the number of entries in shipmentUnitID.
Corresponds to the JSON property additionalChargeAmount
15537 15538 15539 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15537 def additional_charge_amount @additional_charge_amount end |
#type ⇒ String
[required] Type of the additional charge. Acceptable values are: - "shipping"
Corresponds to the JSON property type
15543 15544 15545 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15543 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15550 15551 15552 15553 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 15550 def update!(**args) @additional_charge_amount = args[:additional_charge_amount] if args.key?(:additional_charge_amount) @type = args[:type] if args.key?(:type) end |