Class: Google::Apis::ContentV2::OrderLineItemProductFee

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderLineItemProductFee

Returns a new instance of OrderLineItemProductFee.



4906
4907
4908
# File 'generated/google/apis/content_v2/classes.rb', line 4906

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

Instance Attribute Details

#amountGoogle::Apis::ContentV2::Price

Amount of the fee. Corresponds to the JSON property amount



4899
4900
4901
# File 'generated/google/apis/content_v2/classes.rb', line 4899

def amount
  @amount
end

#nameString

Name of the fee. Corresponds to the JSON property name

Returns:

  • (String)


4904
4905
4906
# File 'generated/google/apis/content_v2/classes.rb', line 4904

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4911
4912
4913
4914
# File 'generated/google/apis/content_v2/classes.rb', line 4911

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