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.
12593 12594 12595 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12593 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
12585 12586 12587 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12585 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
12591 12592 12593 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12591 def micro_percent @micro_percent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12598 12599 12600 12601 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12598 def update!(**args) @fixed_fee = args[:fixed_fee] if args.key?(:fixed_fee) @micro_percent = args[:micro_percent] if args.key?(:micro_percent) end |