class Google::Apis::ContentV2_1::ReturnPolicy

Return policy resource.

Attributes

country[RW]

Required. The country of sale where the return policy is applicable. Corresponds to the JSON property `country` @return [String]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “`content# returnPolicy`” Corresponds to the JSON property `kind` @return [String]

label[RW]

Required. The user-defined label of the return policy. For the default policy, use the label “default”. Corresponds to the JSON property `label` @return [String]

name[RW]

Required. The name of the policy as shown in Merchant Center. Corresponds to the JSON property `name` @return [String]

non_free_return_reasons[RW]

Return reasons that will incur return fees. Corresponds to the JSON property `nonFreeReturnReasons` @return [Array<String>]

policy[RW]

Required. The policy. Corresponds to the JSON property `policy` @return [Google::Apis::ContentV2_1::ReturnPolicyPolicy]

return_policy_id[RW]

Return policy ID generated by Google. Corresponds to the JSON property `returnPolicyId` @return [String]

return_shipping_fee[RW]

The return shipping fee that will apply to non free return reasons. Corresponds to the JSON property `returnShippingFee` @return [Google::Apis::ContentV2_1::Price]

seasonal_overrides[RW]

An optional list of seasonal overrides. Corresponds to the JSON property `seasonalOverrides` @return [Array<Google::Apis::ContentV2_1::ReturnPolicySeasonalOverride>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 13041
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2_1/classes.rb, line 13046
def update!(**args)
  @country = args[:country] if args.key?(:country)
  @kind = args[:kind] if args.key?(:kind)
  @label = args[:label] if args.key?(:label)
  @name = args[:name] if args.key?(:name)
  @non_free_return_reasons = args[:non_free_return_reasons] if args.key?(:non_free_return_reasons)
  @policy = args[:policy] if args.key?(:policy)
  @return_policy_id = args[:return_policy_id] if args.key?(:return_policy_id)
  @return_shipping_fee = args[:return_shipping_fee] if args.key?(:return_shipping_fee)
  @seasonal_overrides = args[:seasonal_overrides] if args.key?(:seasonal_overrides)
end