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]
The ID of the managing account. Corresponds to the JSON property `merchantId` @return [String]
The merchant order id. Required for updateMerchantOrderId and getByMerchantOrderId methods. Corresponds to the JSON property `merchantOrderId` @return [String]
The method to apply. 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 returnLineItem method. Corresponds to the JSON property `returnLineItem` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem]
Required for shipLineItems method. Corresponds to the JSON property `shipLineItems` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems]
Required for updateShipment method. Corresponds to the JSON property `updateShipment` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment]
Public Class Methods
# File generated/google/apis/content_v2/classes.rb, line 3811 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/content_v2/classes.rb, line 3816 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) @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) @return_line_item = args[:return_line_item] if args.key?(:return_line_item) @ship_line_items = args[:ship_line_items] if args.key?(:ship_line_items) @update_shipment = args[:update_shipment] if args.key?(:update_shipment) end