Class: Google::Apis::ContentV2_1::OrderLineItemProductFee

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/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) ⇒ OrderLineItemProductFee

Returns a new instance of OrderLineItemProductFee.



4751
4752
4753
# File 'generated/google/apis/content_v2_1/classes.rb', line 4751

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

Instance Attribute Details

#amountGoogle::Apis::ContentV2_1::Price

Amount of the fee. Corresponds to the JSON property amount



4744
4745
4746
# File 'generated/google/apis/content_v2_1/classes.rb', line 4744

def amount
  @amount
end

#nameString

Name of the fee. Corresponds to the JSON property name

Returns:

  • (String)


4749
4750
4751
# File 'generated/google/apis/content_v2_1/classes.rb', line 4749

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4756
4757
4758
4759
# File 'generated/google/apis/content_v2_1/classes.rb', line 4756

def update!(**args)
  @amount = args[:amount] if args.key?(:amount)
  @name = args[:name] if args.key?(:name)
end