Class: Google::Apis::ContentV2sandbox::UnitInvoiceAdditionalCharge
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2sandbox::UnitInvoiceAdditionalCharge
- Defined in:
- generated/google/apis/content_v2sandbox/classes.rb,
generated/google/apis/content_v2sandbox/representations.rb,
generated/google/apis/content_v2sandbox/representations.rb
Instance Attribute Summary collapse
-
#additional_charge_amount ⇒ Google::Apis::ContentV2sandbox::Amount
[required] Amount of the additional charge.
-
#additional_charge_promotions ⇒ Array<Google::Apis::ContentV2sandbox::Promotion>
Promotions applied to 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
4029 4030 4031 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 4029 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_charge_amount ⇒ Google::Apis::ContentV2sandbox::Amount
[required] Amount of the additional charge.
Corresponds to the JSON property additionalChargeAmount
4017 4018 4019 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 4017 def additional_charge_amount @additional_charge_amount end |
#additional_charge_promotions ⇒ Array<Google::Apis::ContentV2sandbox::Promotion>
Promotions applied to the additional charge.
Corresponds to the JSON property additionalChargePromotions
4022 4023 4024 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 4022 def additional_charge_promotions @additional_charge_promotions end |
#type ⇒ String
[required] Type of the additional charge.
Corresponds to the JSON property type
4027 4028 4029 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 4027 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4034 4035 4036 4037 4038 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 4034 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 |