Class: Google::Apis::ContentV2_1::ReturnPolicyOnlineRestockingFee
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ReturnPolicyOnlineRestockingFee
- 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
Overview
The restocking fee. This can either be a fixed fee or a micro percent.
Instance Attribute Summary collapse
-
#fixed_fee ⇒ Google::Apis::ContentV2_1::PriceAmount
The price represented as a number and currency.
-
#micro_percent ⇒ Fixnum
Percent of total price in micros.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReturnPolicyOnlineRestockingFee
constructor
A new instance of ReturnPolicyOnlineRestockingFee.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReturnPolicyOnlineRestockingFee
Returns a new instance of ReturnPolicyOnlineRestockingFee.
12607 12608 12609 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12607 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fixed_fee ⇒ Google::Apis::ContentV2_1::PriceAmount
The price represented as a number and currency.
Corresponds to the JSON property fixedFee
12599 12600 12601 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12599 def fixed_fee @fixed_fee end |
#micro_percent ⇒ Fixnum
Percent of total price in micros. 15,000,000 means 15% of the total price
would be charged.
Corresponds to the JSON property microPercent
12605 12606 12607 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12605 def micro_percent @micro_percent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12612 12613 12614 12615 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12612 def update!(**args) @fixed_fee = args[:fixed_fee] if args.key?(:fixed_fee) @micro_percent = args[:micro_percent] if args.key?(:micro_percent) end |