class Google::Apis::ContentV2_1::MerchantOrderReturnItem
Attributes
The reason that the customer chooses to return an item. Corresponds to the JSON property `customerReturnReason` @return [Google::Apis::ContentV2_1::CustomerReturnReason]
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]
The reason that the merchant chose to reject an item return. Corresponds to the JSON property `merchantRejectionReason` @return [Google::Apis::ContentV2_1::MerchantRejectionReason]
The reason that merchant chooses to accept a return item. Corresponds to the JSON property `merchantReturnReason` @return [Google::Apis::ContentV2_1::RefundReason]
Product
data from the time of the order placement. Corresponds to the JSON property `product` @return [Google::Apis::ContentV2_1::OrderLineItemProduct]
Maximum amount that can be refunded for this return item. Corresponds to the JSON property `refundableAmount` @return [Google::Apis::ContentV2_1::MonetaryAmount]
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]
IDs of the return shipments that this return item belongs to. Corresponds to the JSON property `returnShipmentIds` @return [Array<String>]
ID of the original shipment group. Provided for shipments with invoice support. Corresponds to the JSON property `shipmentGroupId` @return [String]
ID of the shipment unit assigned by the merchant. Provided for shipments with invoice support. Corresponds to the JSON property `shipmentUnitId` @return [String]
State of the item. Acceptable values are: - “`canceled`” - “`new`” - “` received`” - “`refunded`” - “`rejected`” Corresponds to the JSON property `state` @return [String]
Public Class Methods
# File lib/google/apis/content_v2_1/classes.rb, line 4915 def initialize(**args) update!(**args) end
Public Instance Methods
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