class Google::Apis::ContentV2::OrdersCustomBatchRequestEntry
Attributes
An entry ID, unique within the batch request. Corresponds to the JSON property `batchId` @return [Fixnum]
Required for `cancel` method. Corresponds to the JSON property `cancel` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancel]
Required for `cancelLineItem` method. Corresponds to the JSON property `cancelLineItem` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem]
Required for `inStoreReturnLineItem` method. Corresponds to the JSON property `inStoreRefundLineItem` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryInStoreRefundLineItem]
The ID of the managing account. Corresponds to the JSON property `merchantId` @return [Fixnum]
The merchant order ID. Required for `updateMerchantOrderId` and ` getByMerchantOrderId` methods. Corresponds to the JSON property `merchantOrderId` @return [String]
The method of the batch entry. Acceptable values are: - “`acknowledge`” - “` cancel`” - “`cancelLineItem`” - “`get`” - “`getByMerchantOrderId`” - “` inStoreRefundLineItem`” - “`refund`” - “`rejectReturnLineItem`” - “` returnLineItem`” - “`returnRefundLineItem`” - “`setLineItemMetadata`” - “` shipLineItems`” - “`updateLineItemShippingDetails`” - “`updateMerchantOrderId`”
-
“`updateShipment`”
Corresponds to the JSON property `method` @return [String]
The ID of the operation. Unique across all operations for a given order. Required for all methods beside `get` and `getByMerchantOrderId`. Corresponds to the JSON property `operationId` @return [String]
The ID of the order. Required for all methods beside `getByMerchantOrderId`. Corresponds to the JSON property `orderId` @return [String]
Required for `refund` method. Corresponds to the JSON property `refund` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund]
Required for `rejectReturnLineItem` method. Corresponds to the JSON property `rejectReturnLineItem` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRejectReturnLineItem]
Required for `returnLineItem` method. Corresponds to the JSON property `returnLineItem` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem]
Required for `returnRefundLineItem` method. Corresponds to the JSON property `returnRefundLineItem` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnRefundLineItem]
Required for `setLineItemMetadata` method. Corresponds to the JSON property `setLineItemMetadata` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata]
Required for `shipLineItems` method. Corresponds to the JSON property `shipLineItems` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems]
Required for `updateLineItemShippingDate` method. Corresponds to the JSON property `updateLineItemShippingDetails` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails]
Required for `updateShipment` method. Corresponds to the JSON property `updateShipment` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment]
Public Class Methods
# File lib/google/apis/content_v2/classes.rb, line 6386 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2/classes.rb, line 6391 def update!(**args) @batch_id = args[:batch_id] if args.key?(:batch_id) @cancel = args[:cancel] if args.key?(:cancel) @cancel_line_item = args[:cancel_line_item] if args.key?(:cancel_line_item) @in_store_refund_line_item = args[:in_store_refund_line_item] if args.key?(:in_store_refund_line_item) @merchant_id = args[:merchant_id] if args.key?(:merchant_id) @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id) @method_prop = args[:method_prop] if args.key?(:method_prop) @operation_id = args[:operation_id] if args.key?(:operation_id) @order_id = args[:order_id] if args.key?(:order_id) @refund = args[:refund] if args.key?(:refund) @reject_return_line_item = args[:reject_return_line_item] if args.key?(:reject_return_line_item) @return_line_item = args[:return_line_item] if args.key?(:return_line_item) @return_refund_line_item = args[:return_refund_line_item] if args.key?(:return_refund_line_item) @set_line_item_metadata = args[:set_line_item_metadata] if args.key?(:set_line_item_metadata) @ship_line_items = args[:ship_line_items] if args.key?(:ship_line_items) @update_line_item_shipping_details = args[:update_line_item_shipping_details] if args.key?(:update_line_item_shipping_details) @update_shipment = args[:update_shipment] if args.key?(:update_shipment) end