Class: Google::Apis::ContentV2_1::OrderLineItemReturnInfo

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderLineItemReturnInfo

Returns a new instance of OrderLineItemReturnInfo.



5139
5140
5141
# File 'generated/google/apis/content_v2_1/classes.rb', line 5139

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#days_to_returnFixnum

Required. How many days later the item can be returned. Corresponds to the JSON property daysToReturn

Returns:

  • (Fixnum)


5126
5127
5128
# File 'generated/google/apis/content_v2_1/classes.rb', line 5126

def days_to_return
  @days_to_return
end

#is_returnableBoolean Also known as: is_returnable?

Required. Whether the item is returnable. Corresponds to the JSON property isReturnable

Returns:

  • (Boolean)


5131
5132
5133
# File 'generated/google/apis/content_v2_1/classes.rb', line 5131

def is_returnable
  @is_returnable
end

#policy_urlString

Required. URL of the item return policy. Corresponds to the JSON property policyUrl

Returns:

  • (String)


5137
5138
5139
# File 'generated/google/apis/content_v2_1/classes.rb', line 5137

def policy_url
  @policy_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5144
5145
5146
5147
5148
# File 'generated/google/apis/content_v2_1/classes.rb', line 5144

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