Class: Google::Apis::ContentV2_1::OrderLineItemProductFee
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrderLineItemProductFee
- 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
-
#amount ⇒ Google::Apis::ContentV2_1::Price
Amount of the fee.
-
#name ⇒ String
Name of the fee.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderLineItemProductFee
constructor
A new instance of OrderLineItemProductFee.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrderLineItemProductFee
Returns a new instance of OrderLineItemProductFee.
5933 5934 5935 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5933 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ Google::Apis::ContentV2_1::Price
Amount of the fee.
Corresponds to the JSON property amount
5926 5927 5928 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5926 def amount @amount end |
#name ⇒ String
Name of the fee.
Corresponds to the JSON property name
5931 5932 5933 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5931 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5938 5939 5940 5941 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5938 def update!(**args) @amount = args[:amount] if args.key?(:amount) @name = args[:name] if args.key?(:name) end |