Class: Google::Apis::ContentV2sandbox::UnitInvoiceAdditionalCharge

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

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



4138
4139
4140
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 4138

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

Instance Attribute Details

#additional_charge_amountGoogle::Apis::ContentV2sandbox::Amount

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



4126
4127
4128
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 4126

def additional_charge_amount
  @additional_charge_amount
end

#additional_charge_promotionsArray<Google::Apis::ContentV2sandbox::Promotion>

Promotions applied to the additional charge. Corresponds to the JSON property additionalChargePromotions



4131
4132
4133
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 4131

def additional_charge_promotions
  @additional_charge_promotions
end

#typeString

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

Returns:

  • (String)


4136
4137
4138
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 4136

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4143
4144
4145
4146
4147
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 4143

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