Class: Google::Apis::MerchantapiAccountsV1beta::ReturnShippingFee
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::ReturnShippingFee
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_accounts_v1beta/classes.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb
Overview
The return shipping fee. This can either be a fixed fee or a boolean to indicate that the customer pays the actual shipping cost.
Instance Attribute Summary collapse
-
#fixed_fee ⇒ Google::Apis::MerchantapiAccountsV1beta::Price
The price represented as a number and currency.
-
#type ⇒ String
Type of return shipping fee.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReturnShippingFee
constructor
A new instance of ReturnShippingFee.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReturnShippingFee
Returns a new instance of ReturnShippingFee.
2262 2263 2264 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2262 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fixed_fee ⇒ Google::Apis::MerchantapiAccountsV1beta::Price
The price represented as a number and currency.
Corresponds to the JSON property fixedFee
2255 2256 2257 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2255 def fixed_fee @fixed_fee end |
#type ⇒ String
Type of return shipping fee.
Corresponds to the JSON property type
2260 2261 2262 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2260 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2267 2268 2269 2270 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2267 def update!(**args) @fixed_fee = args[:fixed_fee] if args.key?(:fixed_fee) @type = args[:type] if args.key?(:type) end |