Class: Google::Apis::ContentV2_1::ReturnPolicyPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ReturnPolicyPolicy
- Defined in:
- generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#last_return_date ⇒ String
Last day for returning the items.
-
#number_of_days ⇒ Fixnum
The number of days items can be returned after delivery, where one day is defined to be 24 hours after the delivery timestamp.
-
#type ⇒ String
Policy type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReturnPolicyPolicy
constructor
A new instance of ReturnPolicyPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ReturnPolicyPolicy
Returns a new instance of ReturnPolicyPolicy
8568 8569 8570 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8568 def initialize(**args) update!(**args) end |
Instance Attribute Details
#last_return_date ⇒ String
Last day for returning the items. In ISO 8601 format. When specifying the
return window like this, set the policy type to "lastReturnDate". Use this for
seasonal overrides only.
Corresponds to the JSON property lastReturnDate
8545 8546 8547 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8545 def last_return_date @last_return_date end |
#number_of_days ⇒ Fixnum
The number of days items can be returned after delivery, where one day is
defined to be 24 hours after the delivery timestamp. When specifying the
return window like this, set the policy type to "numberOfDaysAfterDelivery".
Acceptable values are 30, 45, 60, 90, 100, 180, 270 and 365 for the default
policy. Additional policies further allow 14, 15, 21 and 28 days, but note
that for most items a minimum of 30 days is required for returns. Exceptions
may be made for electronics. A policy of less than 30 days can only be applied
to those items.
Corresponds to the JSON property numberOfDays
8557 8558 8559 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8557 def number_of_days @number_of_days end |
#type ⇒ String
Policy type. Use "lastReturnDate" for seasonal overrides only. Note that for
most items a minimum of 30 days is required for returns. Exceptions may be
made for electronics or non-returnable items such as food, perishables, and
living things. A policy of less than 30 days can only be applied to those
items.
Corresponds to the JSON property type
8566 8567 8568 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8566 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8573 8574 8575 8576 8577 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8573 def update!(**args) @last_return_date = args[:last_return_date] if args.key?(:last_return_date) @number_of_days = args[:number_of_days] if args.key?(:number_of_days) @type = args[:type] if args.key?(:type) end |