class Google::Apis::ContentV2_1::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_1::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_rejection_reason[RW]

The reason that the merchant chose to reject an item return. Corresponds to the JSON property `merchantRejectionReason` @return [Google::Apis::ContentV2_1::MerchantRejectionReason]

merchant_return_reason[RW]

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

product[RW]

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

refundable_amount[RW]

Maximum amount that can be refunded for this return item. Corresponds to the JSON property `refundableAmount` @return [Google::Apis::ContentV2_1::MonetaryAmount]

return_item_id[RW]

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

return_shipment_ids[RW]

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

shipment_group_id[RW]

ID of the original shipment group. Provided for shipments with invoice support. Corresponds to the JSON property `shipmentGroupId` @return [String]

shipment_unit_id[RW]

ID of the shipment unit assigned by the merchant. Provided for shipments with invoice support. Corresponds to the JSON property `shipmentUnitId` @return [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_1/classes.rb, line 4915
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_1/classes.rb, line 4920
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_rejection_reason = args[:merchant_rejection_reason] if args.key?(:merchant_rejection_reason)
  @merchant_return_reason = args[:merchant_return_reason] if args.key?(:merchant_return_reason)
  @product = args[:product] if args.key?(:product)
  @refundable_amount = args[:refundable_amount] if args.key?(:refundable_amount)
  @return_item_id = args[:return_item_id] if args.key?(:return_item_id)
  @return_shipment_ids = args[:return_shipment_ids] if args.key?(:return_shipment_ids)
  @shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
  @shipment_unit_id = args[:shipment_unit_id] if args.key?(:shipment_unit_id)
  @state = args[:state] if args.key?(:state)
end