Class: Google::Apis::ContentV2_1::ReturnPolicyOnlinePolicy
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ReturnPolicyOnlinePolicy
- 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
The available policies.
Instance Attribute Summary collapse
-
#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) ⇒ ReturnPolicyOnlinePolicy
constructor
A new instance of ReturnPolicyOnlinePolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReturnPolicyOnlinePolicy
Returns a new instance of ReturnPolicyOnlinePolicy.
12581 12582 12583 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12581 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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. Required for
numberOfDaysAfterDelivery
returns.
Corresponds to the JSON property days
12574 12575 12576 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12574 def days @days end |
#type ⇒ String
Policy type.
Corresponds to the JSON property type
12579 12580 12581 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12579 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12586 12587 12588 12589 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12586 def update!(**args) @days = args[:days] if args.key?(:days) @type = args[:type] if args.key?(:type) end |