Class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntry
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntry
- Defined in:
- generated/google/apis/content_v2sandbox/classes.rb,
generated/google/apis/content_v2sandbox/representations.rb,
generated/google/apis/content_v2sandbox/representations.rb
Instance Attribute Summary collapse
-
#batch_id ⇒ Fixnum
An entry ID, unique within the batch request.
-
#cancel ⇒ Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancel
Required for cancel method.
-
#cancel_line_item ⇒ Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancelLineItem
Required for cancelLineItem method.
-
#merchant_id ⇒ Fixnum
The ID of the managing account.
-
#merchant_order_id ⇒ String
The merchant order id.
-
#method_prop ⇒ String
The method to apply.
-
#operation_id ⇒ String
The ID of the operation.
-
#order_id ⇒ String
The ID of the order.
-
#refund ⇒ Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRefund
Required for refund method.
-
#return_line_item ⇒ Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem
Required for returnLineItem method.
-
#ship_line_items ⇒ Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems
Required for shipLineItems method.
-
#update_shipment ⇒ Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateShipment
Required for updateShipment method.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrdersCustomBatchRequestEntry
constructor
A new instance of OrdersCustomBatchRequestEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ OrdersCustomBatchRequestEntry
Returns a new instance of OrdersCustomBatchRequestEntry
1426 1427 1428 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1426 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
1367 1368 1369 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1367 def batch_id @batch_id end |
#cancel ⇒ Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancel
Required for cancel method.
Corresponds to the JSON property cancel
1372 1373 1374 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1372 def cancel @cancel end |
#cancel_line_item ⇒ Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancelLineItem
Required for cancelLineItem method.
Corresponds to the JSON property cancelLineItem
1377 1378 1379 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1377 def cancel_line_item @cancel_line_item end |
#merchant_id ⇒ Fixnum
The ID of the managing account.
Corresponds to the JSON property merchantId
1382 1383 1384 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1382 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
1388 1389 1390 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1388 def merchant_order_id @merchant_order_id end |
#method_prop ⇒ String
The method to apply.
Corresponds to the JSON property method
1393 1394 1395 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1393 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
1399 1400 1401 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1399 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
1404 1405 1406 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1404 def order_id @order_id end |
#refund ⇒ Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRefund
Required for refund method.
Corresponds to the JSON property refund
1409 1410 1411 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1409 def refund @refund end |
#return_line_item ⇒ Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem
Required for returnLineItem method.
Corresponds to the JSON property returnLineItem
1414 1415 1416 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1414 def return_line_item @return_line_item end |
#ship_line_items ⇒ Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems
Required for shipLineItems method.
Corresponds to the JSON property shipLineItems
1419 1420 1421 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1419 def ship_line_items @ship_line_items end |
#update_shipment ⇒ Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateShipment
Required for updateShipment method.
Corresponds to the JSON property updateShipment
1424 1425 1426 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1424 def update_shipment @update_shipment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 |
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1431 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 |