class Google::Apis::ContentV2::MerchantOrderReturnItem

Attributes

customer_return_reason[RW]

The reason that the customer chooses to return an item. Corresponds to the JSON property `customerReturnReason` @return [Google::Apis::ContentV2::CustomerReturnReason]

item_id[RW]

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` @return [String]

merchant_return_reason[RW]

The reason that merchant chooses to accept a return item. Corresponds to the JSON property `merchantReturnReason` @return [Google::Apis::ContentV2::RefundReason]

product[RW]

Product data from the time of the order placement. Corresponds to the JSON property `product` @return [Google::Apis::ContentV2::OrderLineItemProduct]

return_shipment_ids[RW]

IDs of the return shipments that this return item belongs to. Corresponds to the JSON property `returnShipmentIds` @return [Array<String>]

state[RW]

State of the item. Acceptable values are: - “`canceled`” - “`new`” - “` received`” - “`refunded`” - “`rejected`” Corresponds to the JSON property `state` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 4094
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2/classes.rb, line 4099
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