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]

in_store_refund_line_item[RW]

Required for `inStoreReturnLineItem` method. Corresponds to the JSON property `inStoreRefundLineItem` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryInStoreRefundLineItem]

merchant_id[RW]

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

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 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]

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]

reject_return_line_item[RW]

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

return_line_item[RW]

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

return_refund_line_item[RW]

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

set_line_item_metadata[RW]

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

ship_line_items[RW]

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

update_line_item_shipping_details[RW]

Required for `updateLineItemShippingDate` method. Corresponds to the JSON property `updateLineItemShippingDetails` @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails]

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 lib/google/apis/content_v2/classes.rb, line 6386
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/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