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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderLineItemProductFee

Returns a new instance of OrderLineItemProductFee.



5654
5655
5656
# File 'lib/google/apis/content_v2_1/classes.rb', line 5654

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

Instance Attribute Details

#amountGoogle::Apis::ContentV2_1::Price

Amount of the fee. Corresponds to the JSON property amount



5647
5648
5649
# File 'lib/google/apis/content_v2_1/classes.rb', line 5647

def amount
  @amount
end

#nameString

Name of the fee. Corresponds to the JSON property name

Returns:

  • (String)


5652
5653
5654
# File 'lib/google/apis/content_v2_1/classes.rb', line 5652

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5659
5660
5661
5662
# File 'lib/google/apis/content_v2_1/classes.rb', line 5659

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