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

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) ⇒ OrderLineItemProductFee

Returns a new instance of OrderLineItemProductFee.



4922
4923
4924
# File 'lib/google/apis/content_v2/classes.rb', line 4922

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

Instance Attribute Details

#amountGoogle::Apis::ContentV2::Price

Amount of the fee. Corresponds to the JSON property amount



4915
4916
4917
# File 'lib/google/apis/content_v2/classes.rb', line 4915

def amount
  @amount
end

#nameString

Name of the fee. Corresponds to the JSON property name

Returns:

  • (String)


4920
4921
4922
# File 'lib/google/apis/content_v2/classes.rb', line 4920

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4927
4928
4929
4930
# File 'lib/google/apis/content_v2/classes.rb', line 4927

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