Class: Google::Apis::MerchantapiAccountsV1beta::ReturnShippingFee

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_feeGoogle::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

#typeString

Type of return shipping fee. Corresponds to the JSON property type

Returns:

  • (String)


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