Class: Google::Apis::ContentV2::UnitInvoiceAdditionalCharge
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::UnitInvoiceAdditionalCharge
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
-
#additional_charge_amount ⇒ Google::Apis::ContentV2::Amount
[required] Amount of the additional charge.
-
#additional_charge_promotions ⇒ Array<Google::Apis::ContentV2::Promotion>
Deprecated.
-
#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.
11433 11434 11435 |
# File 'lib/google/apis/content_v2/classes.rb', line 11433 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_charge_amount ⇒ Google::Apis::ContentV2::Amount
[required] Amount of the additional charge.
Corresponds to the JSON property additionalChargeAmount
11420 11421 11422 |
# File 'lib/google/apis/content_v2/classes.rb', line 11420 def additional_charge_amount @additional_charge_amount end |
#additional_charge_promotions ⇒ Array<Google::Apis::ContentV2::Promotion>
Deprecated.
Corresponds to the JSON property additionalChargePromotions
11425 11426 11427 |
# File 'lib/google/apis/content_v2/classes.rb', line 11425 def additional_charge_promotions @additional_charge_promotions end |
#type ⇒ String
[required] Type of the additional charge. Acceptable values are: - "shipping"
Corresponds to the JSON property type
11431 11432 11433 |
# File 'lib/google/apis/content_v2/classes.rb', line 11431 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11438 11439 11440 11441 11442 |
# File 'lib/google/apis/content_v2/classes.rb', line 11438 def update!(**args) @additional_charge_amount = args[:additional_charge_amount] if args.key?(:additional_charge_amount) @additional_charge_promotions = args[:additional_charge_promotions] if args.key?(:additional_charge_promotions) @type = args[:type] if args.key?(:type) end |