Class: Google::Apis::ContentV2::OrderLineItemReturnInfo
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::OrderLineItemReturnInfo
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
-
#days_to_return ⇒ Fixnum
Required.
-
#is_returnable ⇒ Boolean
(also: #is_returnable?)
Required.
-
#policy_url ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderLineItemReturnInfo
constructor
A new instance of OrderLineItemReturnInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrderLineItemReturnInfo
Returns a new instance of OrderLineItemReturnInfo.
4619 4620 4621 |
# File 'lib/google/apis/content_v2/classes.rb', line 4619 def initialize(**args) update!(**args) end |
Instance Attribute Details
#days_to_return ⇒ Fixnum
Required. How many days later the item can be returned.
Corresponds to the JSON property daysToReturn
4606 4607 4608 |
# File 'lib/google/apis/content_v2/classes.rb', line 4606 def days_to_return @days_to_return end |
#is_returnable ⇒ Boolean Also known as: is_returnable?
Required. Whether the item is returnable.
Corresponds to the JSON property isReturnable
4611 4612 4613 |
# File 'lib/google/apis/content_v2/classes.rb', line 4611 def is_returnable @is_returnable end |
#policy_url ⇒ String
Required. URL of the item return policy.
Corresponds to the JSON property policyUrl
4617 4618 4619 |
# File 'lib/google/apis/content_v2/classes.rb', line 4617 def policy_url @policy_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4624 4625 4626 4627 4628 |
# File 'lib/google/apis/content_v2/classes.rb', line 4624 def update!(**args) @days_to_return = args[:days_to_return] if args.key?(:days_to_return) @is_returnable = args[:is_returnable] if args.key?(:is_returnable) @policy_url = args[:policy_url] if args.key?(:policy_url) end |