class Google::Apis::ContentV2::OrdersCustomBatchRequestEntry

Attributes

batch_id[RW]

An entry ID, unique within the batch request. Corresponds to the JSON property `batchId` @return [Fixnum]

cancel[RW]

Required for cancel method. Corresponds to the JSON property `cancel` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancel]

cancel_line_item[RW]

Required for cancelLineItem method. Corresponds to the JSON property `cancelLineItem` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem]

merchant_id[RW]

The ID of the managing account. Corresponds to the JSON property `merchantId` @return [String]

merchant_order_id[RW]

The merchant order id. Required for updateMerchantOrderId and getByMerchantOrderId methods. Corresponds to the JSON property `merchantOrderId` @return [String]

method_prop[RW]

The method to apply. Corresponds to the JSON property `method` @return [String]

operation_id[RW]

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]

order_id[RW]

The ID of the order. Required for all methods beside getByMerchantOrderId. Corresponds to the JSON property `orderId` @return [String]

refund[RW]

Required for refund method. Corresponds to the JSON property `refund` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund]

return_line_item[RW]

Required for returnLineItem method. Corresponds to the JSON property `returnLineItem` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem]

ship_line_items[RW]

Required for shipLineItems method. Corresponds to the JSON property `shipLineItems` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems]

update_shipment[RW]

Required for updateShipment method. Corresponds to the JSON property `updateShipment` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

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