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.
12567 12568 12569 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12567 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
12560 12561 12562 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12560 def days @days end |
#type ⇒ String
Policy type.
Corresponds to the JSON property type
12565 12566 12567 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12565 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12572 12573 12574 12575 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 12572 def update!(**args) @days = args[:days] if args.key?(:days) @type = args[:type] if args.key?(:type) end |