class Google::Apis::ContentV2_1::ReturnPolicyOnline

Return policy online object. This is currently used to represent return policies for ads and free listings programs.

Attributes

countries[RW]

The countries of sale where the return policy is applicable. The values must be a valid 2 letter ISO 3166 code, e.g. “US”. Corresponds to the JSON property `countries` @return [Array<String>]

item_conditions[RW]

The item conditions that are accepted for returns. This is required to not be empty unless the type of return policy is noReturns. Corresponds to the JSON property `itemConditions` @return [Array<String>]

label[RW]

The unique user-defined label of the return policy. The same label cannot be used in different return policies for the same country. Policies with the label 'default' will apply to all products, unless a product specifies a return_policy_label attribute. Corresponds to the JSON property `label` @return [String]

name[RW]

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

policy[RW]

The available policies. Corresponds to the JSON property `policy` @return [Google::Apis::ContentV2_1::ReturnPolicyOnlinePolicy]

restocking_fee[RW]

The restocking fee. This can either be a fixed fee or a micro percent. Corresponds to the JSON property `restockingFee` @return [Google::Apis::ContentV2_1::ReturnPolicyOnlineRestockingFee]

return_methods[RW]

The return methods of how customers can return an item. This value is required to not be empty unless the type of return policy is noReturns. Corresponds to the JSON property `returnMethods` @return [Array<String>]

return_policy_id[RW]

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

return_policy_uri[RW]

The return policy uri. This can used by Google to do a sanity check for the policy. Corresponds to the JSON property `returnPolicyUri` @return [String]

return_reason_category_info[RW]

The return reason category information. This required to not be empty unless the type of return policy is noReturns. Corresponds to the JSON property `returnReasonCategoryInfo` @return [Array<Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnReasonCategoryInfo>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 13122
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 13127
def update!(**args)
  @countries = args[:countries] if args.key?(:countries)
  @item_conditions = args[:item_conditions] if args.key?(:item_conditions)
  @label = args[:label] if args.key?(:label)
  @name = args[:name] if args.key?(:name)
  @policy = args[:policy] if args.key?(:policy)
  @restocking_fee = args[:restocking_fee] if args.key?(:restocking_fee)
  @return_methods = args[:return_methods] if args.key?(:return_methods)
  @return_policy_id = args[:return_policy_id] if args.key?(:return_policy_id)
  @return_policy_uri = args[:return_policy_uri] if args.key?(:return_policy_uri)
  @return_reason_category_info = args[:return_reason_category_info] if args.key?(:return_reason_category_info)
end