Class: Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnShippingFee

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

Returns a new instance of ReturnPolicyOnlineReturnShippingFee.



12653
12654
12655
# File 'lib/google/apis/content_v2_1/classes.rb', line 12653

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#fixed_feeGoogle::Apis::ContentV2_1::PriceAmount

The price represented as a number and currency. Corresponds to the JSON property fixedFee



12646
12647
12648
# File 'lib/google/apis/content_v2_1/classes.rb', line 12646

def fixed_fee
  @fixed_fee
end

#typeString

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

Returns:

  • (String)


12651
12652
12653
# File 'lib/google/apis/content_v2_1/classes.rb', line 12651

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12658
12659
12660
12661
# File 'lib/google/apis/content_v2_1/classes.rb', line 12658

def update!(**args)
  @fixed_fee = args[:fixed_fee] if args.key?(:fixed_fee)
  @type = args[:type] if args.key?(:type)
end