Class: Google::Apis::ContentV2::MerchantOrderReturnItem

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MerchantOrderReturnItem

Returns a new instance of MerchantOrderReturnItem.



4148
4149
4150
# File 'lib/google/apis/content_v2/classes.rb', line 4148

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

Instance Attribute Details

#customer_return_reasonGoogle::Apis::ContentV2::CustomerReturnReason

The reason that the customer chooses to return an item. Corresponds to the JSON property customerReturnReason



4119
4120
4121
# File 'lib/google/apis/content_v2/classes.rb', line 4119

def customer_return_reason
  @customer_return_reason
end

#item_idString

Product level item ID. If the returned items are of the same product, they will have the same ID. Corresponds to the JSON property itemId

Returns:

  • (String)


4125
4126
4127
# File 'lib/google/apis/content_v2/classes.rb', line 4125

def item_id
  @item_id
end

#merchant_return_reasonGoogle::Apis::ContentV2::RefundReason

The reason that merchant chooses to accept a return item. Corresponds to the JSON property merchantReturnReason



4130
4131
4132
# File 'lib/google/apis/content_v2/classes.rb', line 4130

def merchant_return_reason
  @merchant_return_reason
end

#productGoogle::Apis::ContentV2::OrderLineItemProduct

Product data from the time of the order placement. Corresponds to the JSON property product



4135
4136
4137
# File 'lib/google/apis/content_v2/classes.rb', line 4135

def product
  @product
end

#return_shipment_idsArray<String>

IDs of the return shipments that this return item belongs to. Corresponds to the JSON property returnShipmentIds

Returns:

  • (Array<String>)


4140
4141
4142
# File 'lib/google/apis/content_v2/classes.rb', line 4140

def return_shipment_ids
  @return_shipment_ids
end

#stateString

State of the item. Acceptable values are: - "canceled" - "new" - " received" - "refunded" - "rejected" Corresponds to the JSON property state

Returns:

  • (String)


4146
4147
4148
# File 'lib/google/apis/content_v2/classes.rb', line 4146

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4153
4154
4155
4156
4157
4158
4159
4160
# File 'lib/google/apis/content_v2/classes.rb', line 4153

def update!(**args)
  @customer_return_reason = args[:customer_return_reason] if args.key?(:customer_return_reason)
  @item_id = args[:item_id] if args.key?(:item_id)
  @merchant_return_reason = args[:merchant_return_reason] if args.key?(:merchant_return_reason)
  @product = args[:product] if args.key?(:product)
  @return_shipment_ids = args[:return_shipment_ids] if args.key?(:return_shipment_ids)
  @state = args[:state] if args.key?(:state)
end