Class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntry
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::OrdersCustomBatchRequestEntry
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
-
#batch_id ⇒ Fixnum
An entry ID, unique within the batch request.
-
#cancel ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancel
Required for
cancelmethod. -
#cancel_line_item ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem
Required for
cancelLineItemmethod. -
#in_store_refund_line_item ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryInStoreRefundLineItem
Required for
inStoreReturnLineItemmethod. -
#merchant_id ⇒ Fixnum
The ID of the managing account.
-
#merchant_order_id ⇒ String
The merchant order ID.
-
#method_prop ⇒ String
The method of the batch entry.
-
#operation_id ⇒ String
The ID of the operation.
-
#order_id ⇒ String
The ID of the order.
-
#refund ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund
Required for
refundmethod. -
#reject_return_line_item ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRejectReturnLineItem
Required for
rejectReturnLineItemmethod. -
#return_line_item ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem
Required for
returnLineItemmethod. -
#return_refund_line_item ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnRefundLineItem
Required for
returnRefundLineItemmethod. -
#set_line_item_metadata ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata
Required for
setLineItemMetadatamethod. -
#ship_line_items ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems
Required for
shipLineItemsmethod. -
#update_line_item_shipping_details ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails
Required for
updateLineItemShippingDatemethod. -
#update_shipment ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment
Required for
updateShipmentmethod.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrdersCustomBatchRequestEntry
constructor
A new instance of OrdersCustomBatchRequestEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrdersCustomBatchRequestEntry
Returns a new instance of OrdersCustomBatchRequestEntry.
6440 6441 6442 |
# File 'lib/google/apis/content_v2/classes.rb', line 6440 def initialize(**args) update!(**args) end |
Instance Attribute Details
#batch_id ⇒ Fixnum
An entry ID, unique within the batch request.
Corresponds to the JSON property batchId
6351 6352 6353 |
# File 'lib/google/apis/content_v2/classes.rb', line 6351 def batch_id @batch_id end |
#cancel ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancel
Required for cancel method.
Corresponds to the JSON property cancel
6356 6357 6358 |
# File 'lib/google/apis/content_v2/classes.rb', line 6356 def cancel @cancel end |
#cancel_line_item ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem
Required for cancelLineItem method.
Corresponds to the JSON property cancelLineItem
6361 6362 6363 |
# File 'lib/google/apis/content_v2/classes.rb', line 6361 def cancel_line_item @cancel_line_item end |
#in_store_refund_line_item ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryInStoreRefundLineItem
Required for inStoreReturnLineItem method.
Corresponds to the JSON property inStoreRefundLineItem
6366 6367 6368 |
# File 'lib/google/apis/content_v2/classes.rb', line 6366 def in_store_refund_line_item @in_store_refund_line_item end |
#merchant_id ⇒ Fixnum
The ID of the managing account.
Corresponds to the JSON property merchantId
6371 6372 6373 |
# File 'lib/google/apis/content_v2/classes.rb', line 6371 def merchant_id @merchant_id end |
#merchant_order_id ⇒ String
The merchant order ID. Required for updateMerchantOrderId and
getByMerchantOrderId methods.
Corresponds to the JSON property merchantOrderId
6377 6378 6379 |
# File 'lib/google/apis/content_v2/classes.rb', line 6377 def merchant_order_id @merchant_order_id end |
#method_prop ⇒ 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 propertymethod
6387 6388 6389 |
# File 'lib/google/apis/content_v2/classes.rb', line 6387 def method_prop @method_prop end |
#operation_id ⇒ 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
6393 6394 6395 |
# File 'lib/google/apis/content_v2/classes.rb', line 6393 def operation_id @operation_id end |
#order_id ⇒ String
The ID of the order. Required for all methods beside getByMerchantOrderId.
Corresponds to the JSON property orderId
6398 6399 6400 |
# File 'lib/google/apis/content_v2/classes.rb', line 6398 def order_id @order_id end |
#refund ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund
Required for refund method.
Corresponds to the JSON property refund
6403 6404 6405 |
# File 'lib/google/apis/content_v2/classes.rb', line 6403 def refund @refund end |
#reject_return_line_item ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRejectReturnLineItem
Required for rejectReturnLineItem method.
Corresponds to the JSON property rejectReturnLineItem
6408 6409 6410 |
# File 'lib/google/apis/content_v2/classes.rb', line 6408 def reject_return_line_item @reject_return_line_item end |
#return_line_item ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem
Required for returnLineItem method.
Corresponds to the JSON property returnLineItem
6413 6414 6415 |
# File 'lib/google/apis/content_v2/classes.rb', line 6413 def return_line_item @return_line_item end |
#return_refund_line_item ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnRefundLineItem
Required for returnRefundLineItem method.
Corresponds to the JSON property returnRefundLineItem
6418 6419 6420 |
# File 'lib/google/apis/content_v2/classes.rb', line 6418 def return_refund_line_item @return_refund_line_item end |
#set_line_item_metadata ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata
Required for setLineItemMetadata method.
Corresponds to the JSON property setLineItemMetadata
6423 6424 6425 |
# File 'lib/google/apis/content_v2/classes.rb', line 6423 def @set_line_item_metadata end |
#ship_line_items ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems
Required for shipLineItems method.
Corresponds to the JSON property shipLineItems
6428 6429 6430 |
# File 'lib/google/apis/content_v2/classes.rb', line 6428 def ship_line_items @ship_line_items end |
#update_line_item_shipping_details ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails
Required for updateLineItemShippingDate method.
Corresponds to the JSON property updateLineItemShippingDetails
6433 6434 6435 |
# File 'lib/google/apis/content_v2/classes.rb', line 6433 def update_line_item_shipping_details @update_line_item_shipping_details end |
#update_shipment ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment
Required for updateShipment method.
Corresponds to the JSON property updateShipment
6438 6439 6440 |
# File 'lib/google/apis/content_v2/classes.rb', line 6438 def update_shipment @update_shipment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 |
# File 'lib/google/apis/content_v2/classes.rb', line 6445 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 |