Class: Google::Apis::ContentV2_1::ReturnPolicyOnline
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ReturnPolicyOnline
- 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
Return policy online object. This is currently used to represent return policies for ads and free listings programs.
Instance Attribute Summary collapse
-
#countries ⇒ Array<String>
The countries of sale where the return policy is applicable.
-
#item_conditions ⇒ Array<String>
The item conditions that are accepted for returns.
-
#label ⇒ String
The unique user-defined label of the return policy.
-
#name ⇒ String
The name of the policy as shown in Merchant Center.
-
#policy ⇒ Google::Apis::ContentV2_1::ReturnPolicyOnlinePolicy
The available policies.
-
#restocking_fee ⇒ Google::Apis::ContentV2_1::ReturnPolicyOnlineRestockingFee
The restocking fee.
-
#return_methods ⇒ Array<String>
The return methods of how customers can return an item.
-
#return_policy_id ⇒ String
Output only.
-
#return_policy_uri ⇒ String
The return policy uri.
-
#return_reason_category_info ⇒ Array<Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnReasonCategoryInfo>
The return reason category information.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReturnPolicyOnline
constructor
A new instance of ReturnPolicyOnline.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReturnPolicyOnline
Returns a new instance of ReturnPolicyOnline.
12546 12547 12548 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12546 def initialize(**args) update!(**args) end |
Instance Attribute Details
#countries ⇒ Array<String>
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
12492 12493 12494 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12492 def countries @countries end |
#item_conditions ⇒ 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
12498 12499 12500 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12498 def item_conditions @item_conditions end |
#label ⇒ 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
12506 12507 12508 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12506 def label @label end |
#name ⇒ String
The name of the policy as shown in Merchant Center.
Corresponds to the JSON property name
12511 12512 12513 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12511 def name @name end |
#policy ⇒ Google::Apis::ContentV2_1::ReturnPolicyOnlinePolicy
The available policies.
Corresponds to the JSON property policy
12516 12517 12518 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12516 def policy @policy end |
#restocking_fee ⇒ Google::Apis::ContentV2_1::ReturnPolicyOnlineRestockingFee
The restocking fee. This can either be a fixed fee or a micro percent.
Corresponds to the JSON property restockingFee
12521 12522 12523 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12521 def restocking_fee @restocking_fee end |
#return_methods ⇒ Array<String>
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
12527 12528 12529 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12527 def return_methods @return_methods end |
#return_policy_id ⇒ String
Output only. Return policy ID generated by Google.
Corresponds to the JSON property returnPolicyId
12532 12533 12534 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12532 def return_policy_id @return_policy_id end |
#return_policy_uri ⇒ String
The return policy uri. This can used by Google to do a sanity check for the
policy.
Corresponds to the JSON property returnPolicyUri
12538 12539 12540 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12538 def return_policy_uri @return_policy_uri end |
#return_reason_category_info ⇒ Array<Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnReasonCategoryInfo>
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
12544 12545 12546 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12544 def return_reason_category_info @return_reason_category_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12551 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 |