class Google::Apis::ContentV2_1::ReturnPolicyPolicy
Attributes
Required. 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` @return [String]
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` @return [Fixnum]
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. Acceptable values are: - “`lastReturnDate`” - “`lifetimeReturns`” - “` noReturns`” - “`numberOfDaysAfterDelivery`” Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/content_v2_1/classes.rb, line 13285 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2_1/classes.rb, line 13290 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