Class: Google::Apis::ContentV2::OrderLineItemReturnInfo

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrderLineItemReturnInfo

Returns a new instance of OrderLineItemReturnInfo



3612
3613
3614
# File 'generated/google/apis/content_v2/classes.rb', line 3612

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

Instance Attribute Details

#days_to_returnFixnum

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

Returns:

  • (Fixnum)


3599
3600
3601
# File 'generated/google/apis/content_v2/classes.rb', line 3599

def days_to_return
  @days_to_return
end

#is_returnableBoolean Also known as: is_returnable?

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

Returns:

  • (Boolean)


3604
3605
3606
# File 'generated/google/apis/content_v2/classes.rb', line 3604

def is_returnable
  @is_returnable
end

#policy_urlString

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

Returns:

  • (String)


3610
3611
3612
# File 'generated/google/apis/content_v2/classes.rb', line 3610

def policy_url
  @policy_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3617
3618
3619
3620
3621
# File 'generated/google/apis/content_v2/classes.rb', line 3617

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