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
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>]
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>]
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]
The name of the policy as shown in Merchant Center. Corresponds to the JSON property `name` @return [String]
The available policies. Corresponds to the JSON property `policy` @return [Google::Apis::ContentV2_1::ReturnPolicyOnlinePolicy]
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]
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>]
Output only. Return policy ID generated by Google
. Corresponds to the JSON property `returnPolicyId` @return [String]
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]
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
# File lib/google/apis/content_v2_1/classes.rb, line 13122 def initialize(**args) update!(**args) end
Public Instance Methods
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