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

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



4670
4671
4672
# File 'generated/google/apis/content_v2/classes.rb', line 4670

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

Instance Attribute Details

#amountGoogle::Apis::ContentV2::Price

Amount of the fee. Corresponds to the JSON property amount



4658
4659
4660
# File 'generated/google/apis/content_v2/classes.rb', line 4658

def amount
  @amount
end

#idString

Case-insensitive fee ID. Corresponds to the JSON property id

Returns:

  • (String)


4663
4664
4665
# File 'generated/google/apis/content_v2/classes.rb', line 4663

def id
  @id
end

#nameString

Name of the fee. Corresponds to the JSON property name

Returns:

  • (String)


4668
4669
4670
# File 'generated/google/apis/content_v2/classes.rb', line 4668

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4675
4676
4677
4678
4679
# File 'generated/google/apis/content_v2/classes.rb', line 4675

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