Class: Google::Apis::ContentV2_1::OrderreturnsReturnItem

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

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

#to_json

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

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrderreturnsReturnItem

Returns a new instance of OrderreturnsReturnItem.



6134
6135
6136
# File 'generated/google/apis/content_v2_1/classes.rb', line 6134

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

Instance Attribute Details

#refundGoogle::Apis::ContentV2_1::OrderreturnsRefundOperation

Refunds the item. Corresponds to the JSON property refund



6121
6122
6123
# File 'generated/google/apis/content_v2_1/classes.rb', line 6121

def refund
  @refund
end

#rejectGoogle::Apis::ContentV2_1::OrderreturnsRejectOperation

Rejects the item. Corresponds to the JSON property reject



6126
6127
6128
# File 'generated/google/apis/content_v2_1/classes.rb', line 6126

def reject
  @reject
end

#return_item_idString

Unit level ID for the return item. Different units of the same product will have different IDs. Corresponds to the JSON property returnItemId

Returns:

  • (String)


6132
6133
6134
# File 'generated/google/apis/content_v2_1/classes.rb', line 6132

def return_item_id
  @return_item_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6139
6140
6141
6142
6143
# File 'generated/google/apis/content_v2_1/classes.rb', line 6139

def update!(**args)
  @refund = args[:refund] if args.key?(:refund)
  @reject = args[:reject] if args.key?(:reject)
  @return_item_id = args[:return_item_id] if args.key?(:return_item_id)
end