Class: Google::Apis::ContentV2::UnitInvoiceAdditionalCharge

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UnitInvoiceAdditionalCharge

Returns a new instance of UnitInvoiceAdditionalCharge.



11102
11103
11104
# File 'lib/google/apis/content_v2/classes.rb', line 11102

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

Instance Attribute Details

#additional_charge_amountGoogle::Apis::ContentV2::Amount

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



11089
11090
11091
# File 'lib/google/apis/content_v2/classes.rb', line 11089

def additional_charge_amount
  @additional_charge_amount
end

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

Deprecated. Corresponds to the JSON property additionalChargePromotions



11094
11095
11096
# File 'lib/google/apis/content_v2/classes.rb', line 11094

def additional_charge_promotions
  @additional_charge_promotions
end

#typeString

[required] Type of the additional charge. Acceptable values are: - "shipping"

Corresponds to the JSON property type

Returns:

  • (String)


11100
11101
11102
# File 'lib/google/apis/content_v2/classes.rb', line 11100

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11107
11108
11109
11110
11111
# File 'lib/google/apis/content_v2/classes.rb', line 11107

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