Autogenerated update (2018-01-17)

Update:
- appengine_v1beta
- content_v2
- content_v2sandbox
This commit is contained in:
Google APIs 2018-01-17 00:35:02 +00:00
parent e31f3fc20f
commit 8504b3d660
10 changed files with 1588 additions and 4 deletions

View File

@ -30757,13 +30757,16 @@
"/content:v2/OrdersCustomBatchRequestEntry/batchId": batch_id "/content:v2/OrdersCustomBatchRequestEntry/batchId": batch_id
"/content:v2/OrdersCustomBatchRequestEntry/cancel": cancel "/content:v2/OrdersCustomBatchRequestEntry/cancel": cancel
"/content:v2/OrdersCustomBatchRequestEntry/cancelLineItem": cancel_line_item "/content:v2/OrdersCustomBatchRequestEntry/cancelLineItem": cancel_line_item
"/content:v2/OrdersCustomBatchRequestEntry/inStoreRefundLineItem": in_store_refund_line_item
"/content:v2/OrdersCustomBatchRequestEntry/merchantId": merchant_id "/content:v2/OrdersCustomBatchRequestEntry/merchantId": merchant_id
"/content:v2/OrdersCustomBatchRequestEntry/merchantOrderId": merchant_order_id "/content:v2/OrdersCustomBatchRequestEntry/merchantOrderId": merchant_order_id
"/content:v2/OrdersCustomBatchRequestEntry/method": method_prop "/content:v2/OrdersCustomBatchRequestEntry/method": method_prop
"/content:v2/OrdersCustomBatchRequestEntry/operationId": operation_id "/content:v2/OrdersCustomBatchRequestEntry/operationId": operation_id
"/content:v2/OrdersCustomBatchRequestEntry/orderId": order_id "/content:v2/OrdersCustomBatchRequestEntry/orderId": order_id
"/content:v2/OrdersCustomBatchRequestEntry/refund": refund "/content:v2/OrdersCustomBatchRequestEntry/refund": refund
"/content:v2/OrdersCustomBatchRequestEntry/rejectReturnLineItem": reject_return_line_item
"/content:v2/OrdersCustomBatchRequestEntry/returnLineItem": return_line_item "/content:v2/OrdersCustomBatchRequestEntry/returnLineItem": return_line_item
"/content:v2/OrdersCustomBatchRequestEntry/returnRefundLineItem": return_refund_line_item
"/content:v2/OrdersCustomBatchRequestEntry/setLineItemMetadata": set_line_item_metadata "/content:v2/OrdersCustomBatchRequestEntry/setLineItemMetadata": set_line_item_metadata
"/content:v2/OrdersCustomBatchRequestEntry/shipLineItems": ship_line_items "/content:v2/OrdersCustomBatchRequestEntry/shipLineItems": ship_line_items
"/content:v2/OrdersCustomBatchRequestEntry/updateLineItemShippingDetails": update_line_item_shipping_details "/content:v2/OrdersCustomBatchRequestEntry/updateLineItemShippingDetails": update_line_item_shipping_details
@ -30780,18 +30783,40 @@
"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/quantity": quantity "/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/quantity": quantity
"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/reason": reason "/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/reason": reason
"/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/reasonText": reason_text "/content:v2/OrdersCustomBatchRequestEntryCancelLineItem/reasonText": reason_text
"/content:v2/OrdersCustomBatchRequestEntryInStoreRefundLineItem": orders_custom_batch_request_entry_in_store_refund_line_item
"/content:v2/OrdersCustomBatchRequestEntryInStoreRefundLineItem/amountPretax": amount_pretax
"/content:v2/OrdersCustomBatchRequestEntryInStoreRefundLineItem/amountTax": amount_tax
"/content:v2/OrdersCustomBatchRequestEntryInStoreRefundLineItem/lineItemId": line_item_id
"/content:v2/OrdersCustomBatchRequestEntryInStoreRefundLineItem/productId": product_id
"/content:v2/OrdersCustomBatchRequestEntryInStoreRefundLineItem/quantity": quantity
"/content:v2/OrdersCustomBatchRequestEntryInStoreRefundLineItem/reason": reason
"/content:v2/OrdersCustomBatchRequestEntryInStoreRefundLineItem/reasonText": reason_text
"/content:v2/OrdersCustomBatchRequestEntryRefund": orders_custom_batch_request_entry_refund "/content:v2/OrdersCustomBatchRequestEntryRefund": orders_custom_batch_request_entry_refund
"/content:v2/OrdersCustomBatchRequestEntryRefund/amount": amount "/content:v2/OrdersCustomBatchRequestEntryRefund/amount": amount
"/content:v2/OrdersCustomBatchRequestEntryRefund/amountPretax": amount_pretax "/content:v2/OrdersCustomBatchRequestEntryRefund/amountPretax": amount_pretax
"/content:v2/OrdersCustomBatchRequestEntryRefund/amountTax": amount_tax "/content:v2/OrdersCustomBatchRequestEntryRefund/amountTax": amount_tax
"/content:v2/OrdersCustomBatchRequestEntryRefund/reason": reason "/content:v2/OrdersCustomBatchRequestEntryRefund/reason": reason
"/content:v2/OrdersCustomBatchRequestEntryRefund/reasonText": reason_text "/content:v2/OrdersCustomBatchRequestEntryRefund/reasonText": reason_text
"/content:v2/OrdersCustomBatchRequestEntryRejectReturnLineItem": orders_custom_batch_request_entry_reject_return_line_item
"/content:v2/OrdersCustomBatchRequestEntryRejectReturnLineItem/lineItemId": line_item_id
"/content:v2/OrdersCustomBatchRequestEntryRejectReturnLineItem/productId": product_id
"/content:v2/OrdersCustomBatchRequestEntryRejectReturnLineItem/quantity": quantity
"/content:v2/OrdersCustomBatchRequestEntryRejectReturnLineItem/reason": reason
"/content:v2/OrdersCustomBatchRequestEntryRejectReturnLineItem/reasonText": reason_text
"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem": orders_custom_batch_request_entry_return_line_item "/content:v2/OrdersCustomBatchRequestEntryReturnLineItem": orders_custom_batch_request_entry_return_line_item
"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/lineItemId": line_item_id "/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/lineItemId": line_item_id
"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/productId": product_id "/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/productId": product_id
"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/quantity": quantity "/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/quantity": quantity
"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/reason": reason "/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/reason": reason
"/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/reasonText": reason_text "/content:v2/OrdersCustomBatchRequestEntryReturnLineItem/reasonText": reason_text
"/content:v2/OrdersCustomBatchRequestEntryReturnRefundLineItem": orders_custom_batch_request_entry_return_refund_line_item
"/content:v2/OrdersCustomBatchRequestEntryReturnRefundLineItem/amountPretax": amount_pretax
"/content:v2/OrdersCustomBatchRequestEntryReturnRefundLineItem/amountTax": amount_tax
"/content:v2/OrdersCustomBatchRequestEntryReturnRefundLineItem/lineItemId": line_item_id
"/content:v2/OrdersCustomBatchRequestEntryReturnRefundLineItem/productId": product_id
"/content:v2/OrdersCustomBatchRequestEntryReturnRefundLineItem/quantity": quantity
"/content:v2/OrdersCustomBatchRequestEntryReturnRefundLineItem/reason": reason
"/content:v2/OrdersCustomBatchRequestEntryReturnRefundLineItem/reasonText": reason_text
"/content:v2/OrdersCustomBatchRequestEntrySetLineItemMetadata": orders_custom_batch_request_entry_set_line_item_metadata "/content:v2/OrdersCustomBatchRequestEntrySetLineItemMetadata": orders_custom_batch_request_entry_set_line_item_metadata
"/content:v2/OrdersCustomBatchRequestEntrySetLineItemMetadata/annotations": annotations "/content:v2/OrdersCustomBatchRequestEntrySetLineItemMetadata/annotations": annotations
"/content:v2/OrdersCustomBatchRequestEntrySetLineItemMetadata/annotations/annotation": annotation "/content:v2/OrdersCustomBatchRequestEntrySetLineItemMetadata/annotations/annotation": annotation
@ -30835,6 +30860,18 @@
"/content:v2/OrdersGetTestOrderTemplateResponse": orders_get_test_order_template_response "/content:v2/OrdersGetTestOrderTemplateResponse": orders_get_test_order_template_response
"/content:v2/OrdersGetTestOrderTemplateResponse/kind": kind "/content:v2/OrdersGetTestOrderTemplateResponse/kind": kind
"/content:v2/OrdersGetTestOrderTemplateResponse/template": template "/content:v2/OrdersGetTestOrderTemplateResponse/template": template
"/content:v2/OrdersInStoreRefundLineItemRequest": orders_in_store_refund_line_item_request
"/content:v2/OrdersInStoreRefundLineItemRequest/amountPretax": amount_pretax
"/content:v2/OrdersInStoreRefundLineItemRequest/amountTax": amount_tax
"/content:v2/OrdersInStoreRefundLineItemRequest/lineItemId": line_item_id
"/content:v2/OrdersInStoreRefundLineItemRequest/operationId": operation_id
"/content:v2/OrdersInStoreRefundLineItemRequest/productId": product_id
"/content:v2/OrdersInStoreRefundLineItemRequest/quantity": quantity
"/content:v2/OrdersInStoreRefundLineItemRequest/reason": reason
"/content:v2/OrdersInStoreRefundLineItemRequest/reasonText": reason_text
"/content:v2/OrdersInStoreRefundLineItemResponse": orders_in_store_refund_line_item_response
"/content:v2/OrdersInStoreRefundLineItemResponse/executionStatus": execution_status
"/content:v2/OrdersInStoreRefundLineItemResponse/kind": kind
"/content:v2/OrdersListResponse": orders_list_response "/content:v2/OrdersListResponse": orders_list_response
"/content:v2/OrdersListResponse/kind": kind "/content:v2/OrdersListResponse/kind": kind
"/content:v2/OrdersListResponse/nextPageToken": next_page_token "/content:v2/OrdersListResponse/nextPageToken": next_page_token
@ -30850,6 +30887,16 @@
"/content:v2/OrdersRefundResponse": orders_refund_response "/content:v2/OrdersRefundResponse": orders_refund_response
"/content:v2/OrdersRefundResponse/executionStatus": execution_status "/content:v2/OrdersRefundResponse/executionStatus": execution_status
"/content:v2/OrdersRefundResponse/kind": kind "/content:v2/OrdersRefundResponse/kind": kind
"/content:v2/OrdersRejectReturnLineItemRequest": orders_reject_return_line_item_request
"/content:v2/OrdersRejectReturnLineItemRequest/lineItemId": line_item_id
"/content:v2/OrdersRejectReturnLineItemRequest/operationId": operation_id
"/content:v2/OrdersRejectReturnLineItemRequest/productId": product_id
"/content:v2/OrdersRejectReturnLineItemRequest/quantity": quantity
"/content:v2/OrdersRejectReturnLineItemRequest/reason": reason
"/content:v2/OrdersRejectReturnLineItemRequest/reasonText": reason_text
"/content:v2/OrdersRejectReturnLineItemResponse": orders_reject_return_line_item_response
"/content:v2/OrdersRejectReturnLineItemResponse/executionStatus": execution_status
"/content:v2/OrdersRejectReturnLineItemResponse/kind": kind
"/content:v2/OrdersReturnLineItemRequest": orders_return_line_item_request "/content:v2/OrdersReturnLineItemRequest": orders_return_line_item_request
"/content:v2/OrdersReturnLineItemRequest/lineItemId": line_item_id "/content:v2/OrdersReturnLineItemRequest/lineItemId": line_item_id
"/content:v2/OrdersReturnLineItemRequest/operationId": operation_id "/content:v2/OrdersReturnLineItemRequest/operationId": operation_id
@ -30860,6 +30907,18 @@
"/content:v2/OrdersReturnLineItemResponse": orders_return_line_item_response "/content:v2/OrdersReturnLineItemResponse": orders_return_line_item_response
"/content:v2/OrdersReturnLineItemResponse/executionStatus": execution_status "/content:v2/OrdersReturnLineItemResponse/executionStatus": execution_status
"/content:v2/OrdersReturnLineItemResponse/kind": kind "/content:v2/OrdersReturnLineItemResponse/kind": kind
"/content:v2/OrdersReturnRefundLineItemRequest": orders_return_refund_line_item_request
"/content:v2/OrdersReturnRefundLineItemRequest/amountPretax": amount_pretax
"/content:v2/OrdersReturnRefundLineItemRequest/amountTax": amount_tax
"/content:v2/OrdersReturnRefundLineItemRequest/lineItemId": line_item_id
"/content:v2/OrdersReturnRefundLineItemRequest/operationId": operation_id
"/content:v2/OrdersReturnRefundLineItemRequest/productId": product_id
"/content:v2/OrdersReturnRefundLineItemRequest/quantity": quantity
"/content:v2/OrdersReturnRefundLineItemRequest/reason": reason
"/content:v2/OrdersReturnRefundLineItemRequest/reasonText": reason_text
"/content:v2/OrdersReturnRefundLineItemResponse": orders_return_refund_line_item_response
"/content:v2/OrdersReturnRefundLineItemResponse/executionStatus": execution_status
"/content:v2/OrdersReturnRefundLineItemResponse/kind": kind
"/content:v2/OrdersSetLineItemMetadataRequest": orders_set_line_item_metadata_request "/content:v2/OrdersSetLineItemMetadataRequest": orders_set_line_item_metadata_request
"/content:v2/OrdersSetLineItemMetadataRequest/annotations": annotations "/content:v2/OrdersSetLineItemMetadataRequest/annotations": annotations
"/content:v2/OrdersSetLineItemMetadataRequest/annotations/annotation": annotation "/content:v2/OrdersSetLineItemMetadataRequest/annotations/annotation": annotation
@ -31358,6 +31417,9 @@
"/content:v2/content.orders.gettestordertemplate": get_test_order_template "/content:v2/content.orders.gettestordertemplate": get_test_order_template
"/content:v2/content.orders.gettestordertemplate/merchantId": merchant_id "/content:v2/content.orders.gettestordertemplate/merchantId": merchant_id
"/content:v2/content.orders.gettestordertemplate/templateName": template_name "/content:v2/content.orders.gettestordertemplate/templateName": template_name
"/content:v2/content.orders.instorerefundlineitem": instorerefundlineitem_order
"/content:v2/content.orders.instorerefundlineitem/merchantId": merchant_id
"/content:v2/content.orders.instorerefundlineitem/orderId": order_id
"/content:v2/content.orders.list": list_orders "/content:v2/content.orders.list": list_orders
"/content:v2/content.orders.list/acknowledged": acknowledged "/content:v2/content.orders.list/acknowledged": acknowledged
"/content:v2/content.orders.list/maxResults": max_results "/content:v2/content.orders.list/maxResults": max_results
@ -31370,9 +31432,15 @@
"/content:v2/content.orders.refund": refund_order "/content:v2/content.orders.refund": refund_order
"/content:v2/content.orders.refund/merchantId": merchant_id "/content:v2/content.orders.refund/merchantId": merchant_id
"/content:v2/content.orders.refund/orderId": order_id "/content:v2/content.orders.refund/orderId": order_id
"/content:v2/content.orders.rejectreturnlineitem": rejectreturnlineitem_order
"/content:v2/content.orders.rejectreturnlineitem/merchantId": merchant_id
"/content:v2/content.orders.rejectreturnlineitem/orderId": order_id
"/content:v2/content.orders.returnlineitem": return_order_line_item "/content:v2/content.orders.returnlineitem": return_order_line_item
"/content:v2/content.orders.returnlineitem/merchantId": merchant_id "/content:v2/content.orders.returnlineitem/merchantId": merchant_id
"/content:v2/content.orders.returnlineitem/orderId": order_id "/content:v2/content.orders.returnlineitem/orderId": order_id
"/content:v2/content.orders.returnrefundlineitem": returnrefundlineitem_order
"/content:v2/content.orders.returnrefundlineitem/merchantId": merchant_id
"/content:v2/content.orders.returnrefundlineitem/orderId": order_id
"/content:v2/content.orders.setlineitemmetadata": setlineitemmetadata_order "/content:v2/content.orders.setlineitemmetadata": setlineitemmetadata_order
"/content:v2/content.orders.setlineitemmetadata/merchantId": merchant_id "/content:v2/content.orders.setlineitemmetadata/merchantId": merchant_id
"/content:v2/content.orders.setlineitemmetadata/orderId": order_id "/content:v2/content.orders.setlineitemmetadata/orderId": order_id
@ -31642,13 +31710,16 @@
"/content:v2sandbox/OrdersCustomBatchRequestEntry/batchId": batch_id "/content:v2sandbox/OrdersCustomBatchRequestEntry/batchId": batch_id
"/content:v2sandbox/OrdersCustomBatchRequestEntry/cancel": cancel "/content:v2sandbox/OrdersCustomBatchRequestEntry/cancel": cancel
"/content:v2sandbox/OrdersCustomBatchRequestEntry/cancelLineItem": cancel_line_item "/content:v2sandbox/OrdersCustomBatchRequestEntry/cancelLineItem": cancel_line_item
"/content:v2sandbox/OrdersCustomBatchRequestEntry/inStoreRefundLineItem": in_store_refund_line_item
"/content:v2sandbox/OrdersCustomBatchRequestEntry/merchantId": merchant_id "/content:v2sandbox/OrdersCustomBatchRequestEntry/merchantId": merchant_id
"/content:v2sandbox/OrdersCustomBatchRequestEntry/merchantOrderId": merchant_order_id "/content:v2sandbox/OrdersCustomBatchRequestEntry/merchantOrderId": merchant_order_id
"/content:v2sandbox/OrdersCustomBatchRequestEntry/method": method_prop "/content:v2sandbox/OrdersCustomBatchRequestEntry/method": method_prop
"/content:v2sandbox/OrdersCustomBatchRequestEntry/operationId": operation_id "/content:v2sandbox/OrdersCustomBatchRequestEntry/operationId": operation_id
"/content:v2sandbox/OrdersCustomBatchRequestEntry/orderId": order_id "/content:v2sandbox/OrdersCustomBatchRequestEntry/orderId": order_id
"/content:v2sandbox/OrdersCustomBatchRequestEntry/refund": refund "/content:v2sandbox/OrdersCustomBatchRequestEntry/refund": refund
"/content:v2sandbox/OrdersCustomBatchRequestEntry/rejectReturnLineItem": reject_return_line_item
"/content:v2sandbox/OrdersCustomBatchRequestEntry/returnLineItem": return_line_item "/content:v2sandbox/OrdersCustomBatchRequestEntry/returnLineItem": return_line_item
"/content:v2sandbox/OrdersCustomBatchRequestEntry/returnRefundLineItem": return_refund_line_item
"/content:v2sandbox/OrdersCustomBatchRequestEntry/setLineItemMetadata": set_line_item_metadata "/content:v2sandbox/OrdersCustomBatchRequestEntry/setLineItemMetadata": set_line_item_metadata
"/content:v2sandbox/OrdersCustomBatchRequestEntry/shipLineItems": ship_line_items "/content:v2sandbox/OrdersCustomBatchRequestEntry/shipLineItems": ship_line_items
"/content:v2sandbox/OrdersCustomBatchRequestEntry/updateLineItemShippingDetails": update_line_item_shipping_details "/content:v2sandbox/OrdersCustomBatchRequestEntry/updateLineItemShippingDetails": update_line_item_shipping_details
@ -31665,18 +31736,40 @@
"/content:v2sandbox/OrdersCustomBatchRequestEntryCancelLineItem/quantity": quantity "/content:v2sandbox/OrdersCustomBatchRequestEntryCancelLineItem/quantity": quantity
"/content:v2sandbox/OrdersCustomBatchRequestEntryCancelLineItem/reason": reason "/content:v2sandbox/OrdersCustomBatchRequestEntryCancelLineItem/reason": reason
"/content:v2sandbox/OrdersCustomBatchRequestEntryCancelLineItem/reasonText": reason_text "/content:v2sandbox/OrdersCustomBatchRequestEntryCancelLineItem/reasonText": reason_text
"/content:v2sandbox/OrdersCustomBatchRequestEntryInStoreRefundLineItem": orders_custom_batch_request_entry_in_store_refund_line_item
"/content:v2sandbox/OrdersCustomBatchRequestEntryInStoreRefundLineItem/amountPretax": amount_pretax
"/content:v2sandbox/OrdersCustomBatchRequestEntryInStoreRefundLineItem/amountTax": amount_tax
"/content:v2sandbox/OrdersCustomBatchRequestEntryInStoreRefundLineItem/lineItemId": line_item_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryInStoreRefundLineItem/productId": product_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryInStoreRefundLineItem/quantity": quantity
"/content:v2sandbox/OrdersCustomBatchRequestEntryInStoreRefundLineItem/reason": reason
"/content:v2sandbox/OrdersCustomBatchRequestEntryInStoreRefundLineItem/reasonText": reason_text
"/content:v2sandbox/OrdersCustomBatchRequestEntryRefund": orders_custom_batch_request_entry_refund "/content:v2sandbox/OrdersCustomBatchRequestEntryRefund": orders_custom_batch_request_entry_refund
"/content:v2sandbox/OrdersCustomBatchRequestEntryRefund/amount": amount "/content:v2sandbox/OrdersCustomBatchRequestEntryRefund/amount": amount
"/content:v2sandbox/OrdersCustomBatchRequestEntryRefund/amountPretax": amount_pretax "/content:v2sandbox/OrdersCustomBatchRequestEntryRefund/amountPretax": amount_pretax
"/content:v2sandbox/OrdersCustomBatchRequestEntryRefund/amountTax": amount_tax "/content:v2sandbox/OrdersCustomBatchRequestEntryRefund/amountTax": amount_tax
"/content:v2sandbox/OrdersCustomBatchRequestEntryRefund/reason": reason "/content:v2sandbox/OrdersCustomBatchRequestEntryRefund/reason": reason
"/content:v2sandbox/OrdersCustomBatchRequestEntryRefund/reasonText": reason_text "/content:v2sandbox/OrdersCustomBatchRequestEntryRefund/reasonText": reason_text
"/content:v2sandbox/OrdersCustomBatchRequestEntryRejectReturnLineItem": orders_custom_batch_request_entry_reject_return_line_item
"/content:v2sandbox/OrdersCustomBatchRequestEntryRejectReturnLineItem/lineItemId": line_item_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryRejectReturnLineItem/productId": product_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryRejectReturnLineItem/quantity": quantity
"/content:v2sandbox/OrdersCustomBatchRequestEntryRejectReturnLineItem/reason": reason
"/content:v2sandbox/OrdersCustomBatchRequestEntryRejectReturnLineItem/reasonText": reason_text
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem": orders_custom_batch_request_entry_return_line_item "/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem": orders_custom_batch_request_entry_return_line_item
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem/lineItemId": line_item_id "/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem/lineItemId": line_item_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem/productId": product_id "/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem/productId": product_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem/quantity": quantity "/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem/quantity": quantity
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem/reason": reason "/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem/reason": reason
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem/reasonText": reason_text "/content:v2sandbox/OrdersCustomBatchRequestEntryReturnLineItem/reasonText": reason_text
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnRefundLineItem": orders_custom_batch_request_entry_return_refund_line_item
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnRefundLineItem/amountPretax": amount_pretax
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnRefundLineItem/amountTax": amount_tax
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnRefundLineItem/lineItemId": line_item_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnRefundLineItem/productId": product_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnRefundLineItem/quantity": quantity
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnRefundLineItem/reason": reason
"/content:v2sandbox/OrdersCustomBatchRequestEntryReturnRefundLineItem/reasonText": reason_text
"/content:v2sandbox/OrdersCustomBatchRequestEntrySetLineItemMetadata": orders_custom_batch_request_entry_set_line_item_metadata "/content:v2sandbox/OrdersCustomBatchRequestEntrySetLineItemMetadata": orders_custom_batch_request_entry_set_line_item_metadata
"/content:v2sandbox/OrdersCustomBatchRequestEntrySetLineItemMetadata/annotations": annotations "/content:v2sandbox/OrdersCustomBatchRequestEntrySetLineItemMetadata/annotations": annotations
"/content:v2sandbox/OrdersCustomBatchRequestEntrySetLineItemMetadata/annotations/annotation": annotation "/content:v2sandbox/OrdersCustomBatchRequestEntrySetLineItemMetadata/annotations/annotation": annotation
@ -31720,6 +31813,18 @@
"/content:v2sandbox/OrdersGetTestOrderTemplateResponse": orders_get_test_order_template_response "/content:v2sandbox/OrdersGetTestOrderTemplateResponse": orders_get_test_order_template_response
"/content:v2sandbox/OrdersGetTestOrderTemplateResponse/kind": kind "/content:v2sandbox/OrdersGetTestOrderTemplateResponse/kind": kind
"/content:v2sandbox/OrdersGetTestOrderTemplateResponse/template": template "/content:v2sandbox/OrdersGetTestOrderTemplateResponse/template": template
"/content:v2sandbox/OrdersInStoreRefundLineItemRequest": orders_in_store_refund_line_item_request
"/content:v2sandbox/OrdersInStoreRefundLineItemRequest/amountPretax": amount_pretax
"/content:v2sandbox/OrdersInStoreRefundLineItemRequest/amountTax": amount_tax
"/content:v2sandbox/OrdersInStoreRefundLineItemRequest/lineItemId": line_item_id
"/content:v2sandbox/OrdersInStoreRefundLineItemRequest/operationId": operation_id
"/content:v2sandbox/OrdersInStoreRefundLineItemRequest/productId": product_id
"/content:v2sandbox/OrdersInStoreRefundLineItemRequest/quantity": quantity
"/content:v2sandbox/OrdersInStoreRefundLineItemRequest/reason": reason
"/content:v2sandbox/OrdersInStoreRefundLineItemRequest/reasonText": reason_text
"/content:v2sandbox/OrdersInStoreRefundLineItemResponse": orders_in_store_refund_line_item_response
"/content:v2sandbox/OrdersInStoreRefundLineItemResponse/executionStatus": execution_status
"/content:v2sandbox/OrdersInStoreRefundLineItemResponse/kind": kind
"/content:v2sandbox/OrdersListResponse": orders_list_response "/content:v2sandbox/OrdersListResponse": orders_list_response
"/content:v2sandbox/OrdersListResponse/kind": kind "/content:v2sandbox/OrdersListResponse/kind": kind
"/content:v2sandbox/OrdersListResponse/nextPageToken": next_page_token "/content:v2sandbox/OrdersListResponse/nextPageToken": next_page_token
@ -31735,6 +31840,16 @@
"/content:v2sandbox/OrdersRefundResponse": orders_refund_response "/content:v2sandbox/OrdersRefundResponse": orders_refund_response
"/content:v2sandbox/OrdersRefundResponse/executionStatus": execution_status "/content:v2sandbox/OrdersRefundResponse/executionStatus": execution_status
"/content:v2sandbox/OrdersRefundResponse/kind": kind "/content:v2sandbox/OrdersRefundResponse/kind": kind
"/content:v2sandbox/OrdersRejectReturnLineItemRequest": orders_reject_return_line_item_request
"/content:v2sandbox/OrdersRejectReturnLineItemRequest/lineItemId": line_item_id
"/content:v2sandbox/OrdersRejectReturnLineItemRequest/operationId": operation_id
"/content:v2sandbox/OrdersRejectReturnLineItemRequest/productId": product_id
"/content:v2sandbox/OrdersRejectReturnLineItemRequest/quantity": quantity
"/content:v2sandbox/OrdersRejectReturnLineItemRequest/reason": reason
"/content:v2sandbox/OrdersRejectReturnLineItemRequest/reasonText": reason_text
"/content:v2sandbox/OrdersRejectReturnLineItemResponse": orders_reject_return_line_item_response
"/content:v2sandbox/OrdersRejectReturnLineItemResponse/executionStatus": execution_status
"/content:v2sandbox/OrdersRejectReturnLineItemResponse/kind": kind
"/content:v2sandbox/OrdersReturnLineItemRequest": orders_return_line_item_request "/content:v2sandbox/OrdersReturnLineItemRequest": orders_return_line_item_request
"/content:v2sandbox/OrdersReturnLineItemRequest/lineItemId": line_item_id "/content:v2sandbox/OrdersReturnLineItemRequest/lineItemId": line_item_id
"/content:v2sandbox/OrdersReturnLineItemRequest/operationId": operation_id "/content:v2sandbox/OrdersReturnLineItemRequest/operationId": operation_id
@ -31745,6 +31860,18 @@
"/content:v2sandbox/OrdersReturnLineItemResponse": orders_return_line_item_response "/content:v2sandbox/OrdersReturnLineItemResponse": orders_return_line_item_response
"/content:v2sandbox/OrdersReturnLineItemResponse/executionStatus": execution_status "/content:v2sandbox/OrdersReturnLineItemResponse/executionStatus": execution_status
"/content:v2sandbox/OrdersReturnLineItemResponse/kind": kind "/content:v2sandbox/OrdersReturnLineItemResponse/kind": kind
"/content:v2sandbox/OrdersReturnRefundLineItemRequest": orders_return_refund_line_item_request
"/content:v2sandbox/OrdersReturnRefundLineItemRequest/amountPretax": amount_pretax
"/content:v2sandbox/OrdersReturnRefundLineItemRequest/amountTax": amount_tax
"/content:v2sandbox/OrdersReturnRefundLineItemRequest/lineItemId": line_item_id
"/content:v2sandbox/OrdersReturnRefundLineItemRequest/operationId": operation_id
"/content:v2sandbox/OrdersReturnRefundLineItemRequest/productId": product_id
"/content:v2sandbox/OrdersReturnRefundLineItemRequest/quantity": quantity
"/content:v2sandbox/OrdersReturnRefundLineItemRequest/reason": reason
"/content:v2sandbox/OrdersReturnRefundLineItemRequest/reasonText": reason_text
"/content:v2sandbox/OrdersReturnRefundLineItemResponse": orders_return_refund_line_item_response
"/content:v2sandbox/OrdersReturnRefundLineItemResponse/executionStatus": execution_status
"/content:v2sandbox/OrdersReturnRefundLineItemResponse/kind": kind
"/content:v2sandbox/OrdersSetLineItemMetadataRequest": orders_set_line_item_metadata_request "/content:v2sandbox/OrdersSetLineItemMetadataRequest": orders_set_line_item_metadata_request
"/content:v2sandbox/OrdersSetLineItemMetadataRequest/annotations": annotations "/content:v2sandbox/OrdersSetLineItemMetadataRequest/annotations": annotations
"/content:v2sandbox/OrdersSetLineItemMetadataRequest/annotations/annotation": annotation "/content:v2sandbox/OrdersSetLineItemMetadataRequest/annotations/annotation": annotation
@ -31861,6 +31988,9 @@
"/content:v2sandbox/content.orders.gettestordertemplate": gettestordertemplate_order "/content:v2sandbox/content.orders.gettestordertemplate": gettestordertemplate_order
"/content:v2sandbox/content.orders.gettestordertemplate/merchantId": merchant_id "/content:v2sandbox/content.orders.gettestordertemplate/merchantId": merchant_id
"/content:v2sandbox/content.orders.gettestordertemplate/templateName": template_name "/content:v2sandbox/content.orders.gettestordertemplate/templateName": template_name
"/content:v2sandbox/content.orders.instorerefundlineitem": instorerefundlineitem_order
"/content:v2sandbox/content.orders.instorerefundlineitem/merchantId": merchant_id
"/content:v2sandbox/content.orders.instorerefundlineitem/orderId": order_id
"/content:v2sandbox/content.orders.list": list_orders "/content:v2sandbox/content.orders.list": list_orders
"/content:v2sandbox/content.orders.list/acknowledged": acknowledged "/content:v2sandbox/content.orders.list/acknowledged": acknowledged
"/content:v2sandbox/content.orders.list/maxResults": max_results "/content:v2sandbox/content.orders.list/maxResults": max_results
@ -31873,9 +32003,15 @@
"/content:v2sandbox/content.orders.refund": refund_order "/content:v2sandbox/content.orders.refund": refund_order
"/content:v2sandbox/content.orders.refund/merchantId": merchant_id "/content:v2sandbox/content.orders.refund/merchantId": merchant_id
"/content:v2sandbox/content.orders.refund/orderId": order_id "/content:v2sandbox/content.orders.refund/orderId": order_id
"/content:v2sandbox/content.orders.rejectreturnlineitem": rejectreturnlineitem_order
"/content:v2sandbox/content.orders.rejectreturnlineitem/merchantId": merchant_id
"/content:v2sandbox/content.orders.rejectreturnlineitem/orderId": order_id
"/content:v2sandbox/content.orders.returnlineitem": returnlineitem_order "/content:v2sandbox/content.orders.returnlineitem": returnlineitem_order
"/content:v2sandbox/content.orders.returnlineitem/merchantId": merchant_id "/content:v2sandbox/content.orders.returnlineitem/merchantId": merchant_id
"/content:v2sandbox/content.orders.returnlineitem/orderId": order_id "/content:v2sandbox/content.orders.returnlineitem/orderId": order_id
"/content:v2sandbox/content.orders.returnrefundlineitem": returnrefundlineitem_order
"/content:v2sandbox/content.orders.returnrefundlineitem/merchantId": merchant_id
"/content:v2sandbox/content.orders.returnrefundlineitem/orderId": order_id
"/content:v2sandbox/content.orders.setlineitemmetadata": setlineitemmetadata_order "/content:v2sandbox/content.orders.setlineitemmetadata": setlineitemmetadata_order
"/content:v2sandbox/content.orders.setlineitemmetadata/merchantId": merchant_id "/content:v2sandbox/content.orders.setlineitemmetadata/merchantId": merchant_id
"/content:v2sandbox/content.orders.setlineitemmetadata/orderId": order_id "/content:v2sandbox/content.orders.setlineitemmetadata/orderId": order_id

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/ # @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta module AppengineV1beta
VERSION = 'V1beta' VERSION = 'V1beta'
REVISION = '20171220' REVISION = '20180112'
# View and manage your applications deployed on Google App Engine # View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content # @see https://developers.google.com/shopping-content
module ContentV2 module ContentV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20171207' REVISION = '20180111'
# Manage your product listings and accounts for Google Shopping # Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content' AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -3756,6 +3756,11 @@ module Google
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem] # @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem]
attr_accessor :cancel_line_item attr_accessor :cancel_line_item
# Required for inStoreReturnLineItem method.
# Corresponds to the JSON property `inStoreRefundLineItem`
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryInStoreRefundLineItem]
attr_accessor :in_store_refund_line_item
# The ID of the managing account. # The ID of the managing account.
# Corresponds to the JSON property `merchantId` # Corresponds to the JSON property `merchantId`
# @return [Fixnum] # @return [Fixnum]
@ -3788,11 +3793,21 @@ module Google
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund] # @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund]
attr_accessor :refund attr_accessor :refund
# Required for rejectReturnLineItem method.
# Corresponds to the JSON property `rejectReturnLineItem`
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRejectReturnLineItem]
attr_accessor :reject_return_line_item
# Required for returnLineItem method. # Required for returnLineItem method.
# Corresponds to the JSON property `returnLineItem` # Corresponds to the JSON property `returnLineItem`
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem] # @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem]
attr_accessor :return_line_item attr_accessor :return_line_item
# Required for returnRefundLineItem method.
# Corresponds to the JSON property `returnRefundLineItem`
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnRefundLineItem]
attr_accessor :return_refund_line_item
# Required for setLineItemMetadata method. # Required for setLineItemMetadata method.
# Corresponds to the JSON property `setLineItemMetadata` # Corresponds to the JSON property `setLineItemMetadata`
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata] # @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata]
@ -3822,13 +3837,16 @@ module Google
@batch_id = args[:batch_id] if args.key?(:batch_id) @batch_id = args[:batch_id] if args.key?(:batch_id)
@cancel = args[:cancel] if args.key?(:cancel) @cancel = args[:cancel] if args.key?(:cancel)
@cancel_line_item = args[:cancel_line_item] if args.key?(:cancel_line_item) @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_id = args[:merchant_id] if args.key?(:merchant_id)
@merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id) @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
@method_prop = args[:method_prop] if args.key?(:method_prop) @method_prop = args[:method_prop] if args.key?(:method_prop)
@operation_id = args[:operation_id] if args.key?(:operation_id) @operation_id = args[:operation_id] if args.key?(:operation_id)
@order_id = args[:order_id] if args.key?(:order_id) @order_id = args[:order_id] if args.key?(:order_id)
@refund = args[:refund] if args.key?(:refund) @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_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) @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) @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_line_item_shipping_details = args[:update_line_item_shipping_details] if args.key?(:update_line_item_shipping_details)
@ -3927,6 +3945,62 @@ module Google
end end
end end
#
class OrdersCustomBatchRequestEntryInStoreRefundLineItem
include Google::Apis::Core::Hashable
# The amount that is refunded. Required.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to refund amount in amountPretax. Required.
# Corresponds to the JSON property `amountTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_tax
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
# #
class OrdersCustomBatchRequestEntryRefund class OrdersCustomBatchRequestEntryRefund
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -3971,6 +4045,50 @@ module Google
end end
end end
#
class OrdersCustomBatchRequestEntryRejectReturnLineItem
include Google::Apis::Core::Hashable
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
# #
class OrdersCustomBatchRequestEntryReturnLineItem class OrdersCustomBatchRequestEntryReturnLineItem
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -4015,6 +4133,63 @@ module Google
end end
end end
#
class OrdersCustomBatchRequestEntryReturnRefundLineItem
include Google::Apis::Core::Hashable
# The amount that is refunded. Optional, but if filled then both amountPretax
# and amountTax must be set.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to refund amount in amountPretax.
# Corresponds to the JSON property `amountTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_tax
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
# #
class OrdersCustomBatchRequestEntrySetLineItemMetadata class OrdersCustomBatchRequestEntrySetLineItemMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -4329,6 +4504,94 @@ module Google
end end
end end
#
class OrdersInStoreRefundLineItemRequest
include Google::Apis::Core::Hashable
# The amount that is refunded. Required.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to refund amount in amountPretax. Required.
# Corresponds to the JSON property `amountTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_tax
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
#
class OrdersInStoreRefundLineItemResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersInStoreRefundLineItemResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
# #
class OrdersListResponse class OrdersListResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -4437,6 +4700,82 @@ module Google
end end
end end
#
class OrdersRejectReturnLineItemRequest
include Google::Apis::Core::Hashable
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
#
class OrdersRejectReturnLineItemResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersRejectReturnLineItemResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
# #
class OrdersReturnLineItemRequest class OrdersReturnLineItemRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -4513,6 +4852,95 @@ module Google
end end
end end
#
class OrdersReturnRefundLineItemRequest
include Google::Apis::Core::Hashable
# The amount that is refunded. Optional, but if filled then both amountPretax
# and amountTax must be set.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to refund amount in amountPretax.
# Corresponds to the JSON property `amountTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount_tax
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
#
class OrdersReturnRefundLineItemResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersReturnRefundLineItemResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
# #
class OrdersSetLineItemMetadataRequest class OrdersSetLineItemMetadataRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -592,18 +592,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OrdersCustomBatchRequestEntryInStoreRefundLineItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersCustomBatchRequestEntryRefund class OrdersCustomBatchRequestEntryRefund
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OrdersCustomBatchRequestEntryRejectReturnLineItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersCustomBatchRequestEntryReturnLineItem class OrdersCustomBatchRequestEntryReturnLineItem
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OrdersCustomBatchRequestEntryReturnRefundLineItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersCustomBatchRequestEntrySetLineItemMetadata class OrdersCustomBatchRequestEntrySetLineItemMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -658,6 +676,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OrdersInStoreRefundLineItemRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersInStoreRefundLineItemResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersListResponse class OrdersListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -676,6 +706,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OrdersRejectReturnLineItemRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersRejectReturnLineItemResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersReturnLineItemRequest class OrdersReturnLineItemRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -688,6 +730,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OrdersReturnRefundLineItemRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersReturnRefundLineItemResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersSetLineItemMetadataRequest class OrdersSetLineItemMetadataRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2056,6 +2110,8 @@ module Google
property :cancel_line_item, as: 'cancelLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem::Representation property :cancel_line_item, as: 'cancelLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem::Representation
property :in_store_refund_line_item, as: 'inStoreRefundLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryInStoreRefundLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryInStoreRefundLineItem::Representation
property :merchant_id, :numeric_string => true, as: 'merchantId' property :merchant_id, :numeric_string => true, as: 'merchantId'
property :merchant_order_id, as: 'merchantOrderId' property :merchant_order_id, as: 'merchantOrderId'
property :method_prop, as: 'method' property :method_prop, as: 'method'
@ -2063,8 +2119,12 @@ module Google
property :order_id, as: 'orderId' property :order_id, as: 'orderId'
property :refund, as: 'refund', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund::Representation property :refund, as: 'refund', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund::Representation
property :reject_return_line_item, as: 'rejectReturnLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRejectReturnLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRejectReturnLineItem::Representation
property :return_line_item, as: 'returnLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem::Representation property :return_line_item, as: 'returnLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem::Representation
property :return_refund_line_item, as: 'returnRefundLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnRefundLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnRefundLineItem::Representation
property :set_line_item_metadata, as: 'setLineItemMetadata', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata::Representation property :set_line_item_metadata, as: 'setLineItemMetadata', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata::Representation
property :ship_line_items, as: 'shipLineItems', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems::Representation property :ship_line_items, as: 'shipLineItems', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems::Representation
@ -2101,6 +2161,21 @@ module Google
end end
end end
class OrdersCustomBatchRequestEntryInStoreRefundLineItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :line_item_id, as: 'lineItemId'
property :product_id, as: 'productId'
property :quantity, as: 'quantity'
property :reason, as: 'reason'
property :reason_text, as: 'reasonText'
end
end
class OrdersCustomBatchRequestEntryRefund class OrdersCustomBatchRequestEntryRefund
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -2115,6 +2190,17 @@ module Google
end end
end end
class OrdersCustomBatchRequestEntryRejectReturnLineItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :line_item_id, as: 'lineItemId'
property :product_id, as: 'productId'
property :quantity, as: 'quantity'
property :reason, as: 'reason'
property :reason_text, as: 'reasonText'
end
end
class OrdersCustomBatchRequestEntryReturnLineItem class OrdersCustomBatchRequestEntryReturnLineItem
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -2126,6 +2212,21 @@ module Google
end end
end end
class OrdersCustomBatchRequestEntryReturnRefundLineItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :line_item_id, as: 'lineItemId'
property :product_id, as: 'productId'
property :quantity, as: 'quantity'
property :reason, as: 'reason'
property :reason_text, as: 'reasonText'
end
end
class OrdersCustomBatchRequestEntrySetLineItemMetadata class OrdersCustomBatchRequestEntrySetLineItemMetadata
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -2218,6 +2319,30 @@ module Google
end end
end end
class OrdersInStoreRefundLineItemRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :line_item_id, as: 'lineItemId'
property :operation_id, as: 'operationId'
property :product_id, as: 'productId'
property :quantity, as: 'quantity'
property :reason, as: 'reason'
property :reason_text, as: 'reasonText'
end
end
class OrdersInStoreRefundLineItemResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrdersListResponse class OrdersListResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -2251,6 +2376,26 @@ module Google
end end
end end
class OrdersRejectReturnLineItemRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :line_item_id, as: 'lineItemId'
property :operation_id, as: 'operationId'
property :product_id, as: 'productId'
property :quantity, as: 'quantity'
property :reason, as: 'reason'
property :reason_text, as: 'reasonText'
end
end
class OrdersRejectReturnLineItemResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrdersReturnLineItemRequest class OrdersReturnLineItemRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -2271,6 +2416,30 @@ module Google
end end
end end
class OrdersReturnRefundLineItemRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :line_item_id, as: 'lineItemId'
property :operation_id, as: 'operationId'
property :product_id, as: 'productId'
property :quantity, as: 'quantity'
property :reason, as: 'reason'
property :reason_text, as: 'reasonText'
end
end
class OrdersReturnRefundLineItemResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrdersSetLineItemMetadataRequest class OrdersSetLineItemMetadataRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -914,7 +914,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists the datafeeds in your Merchant Center account. # Lists the configurations for datafeeds in your Merchant Center account.
# @param [Fixnum] merchant_id # @param [Fixnum] merchant_id
# The ID of the account that manages the datafeeds. This account cannot be a # The ID of the account that manages the datafeeds. This account cannot be a
# multi-client account. # multi-client account.
@ -1621,6 +1621,48 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Notifies that item return and refund was handled directly in store.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order.
# @param [Google::Apis::ContentV2::OrdersInStoreRefundLineItemRequest] orders_in_store_refund_line_item_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/inStoreRefundLineItem', options)
command.request_representation = Google::Apis::ContentV2::OrdersInStoreRefundLineItemRequest::Representation
command.request_object = orders_in_store_refund_line_item_request_object
command.response_representation = Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse::Representation
command.response_class = Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists the orders in your Merchant Center account. # Lists the orders in your Merchant Center account.
# @param [Fixnum] merchant_id # @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client # The ID of the account that manages the order. This cannot be a multi-client
@ -1737,6 +1779,48 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Rejects return on an line item.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order.
# @param [Google::Apis::ContentV2::OrdersRejectReturnLineItemRequest] orders_reject_return_line_item_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/rejectReturnLineItem', options)
command.request_representation = Google::Apis::ContentV2::OrdersRejectReturnLineItemRequest::Representation
command.request_object = orders_reject_return_line_item_request_object
command.response_representation = Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse::Representation
command.response_class = Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns a line item. # Returns a line item.
# @param [Fixnum] merchant_id # @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client # The ID of the account that manages the order. This cannot be a multi-client
@ -1779,6 +1863,49 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns and refunds a line item. Note that this method can only be called on
# fully shipped orders.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order.
# @param [Google::Apis::ContentV2::OrdersReturnRefundLineItemRequest] orders_return_refund_line_item_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnRefundLineItem', options)
command.request_representation = Google::Apis::ContentV2::OrdersReturnRefundLineItemRequest::Representation
command.request_object = orders_return_refund_line_item_request_object
command.response_representation = Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse::Representation
command.response_class = Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Sets (overrides) merchant provided annotations on the line item. # Sets (overrides) merchant provided annotations on the line item.
# @param [Fixnum] merchant_id # @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client # The ID of the account that manages the order. This cannot be a multi-client

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content # @see https://developers.google.com/shopping-content
module ContentV2sandbox module ContentV2sandbox
VERSION = 'V2sandbox' VERSION = 'V2sandbox'
REVISION = '20171207' REVISION = '20180111'
# Manage your product listings and accounts for Google Shopping # Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content' AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -1426,6 +1426,11 @@ module Google
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancelLineItem] # @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancelLineItem]
attr_accessor :cancel_line_item attr_accessor :cancel_line_item
# Required for inStoreReturnLineItem method.
# Corresponds to the JSON property `inStoreRefundLineItem`
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryInStoreRefundLineItem]
attr_accessor :in_store_refund_line_item
# The ID of the managing account. # The ID of the managing account.
# Corresponds to the JSON property `merchantId` # Corresponds to the JSON property `merchantId`
# @return [Fixnum] # @return [Fixnum]
@ -1458,11 +1463,21 @@ module Google
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRefund] # @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRefund]
attr_accessor :refund attr_accessor :refund
# Required for rejectReturnLineItem method.
# Corresponds to the JSON property `rejectReturnLineItem`
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRejectReturnLineItem]
attr_accessor :reject_return_line_item
# Required for returnLineItem method. # Required for returnLineItem method.
# Corresponds to the JSON property `returnLineItem` # Corresponds to the JSON property `returnLineItem`
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem] # @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem]
attr_accessor :return_line_item attr_accessor :return_line_item
# Required for returnRefundLineItem method.
# Corresponds to the JSON property `returnRefundLineItem`
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnRefundLineItem]
attr_accessor :return_refund_line_item
# Required for setLineItemMetadata method. # Required for setLineItemMetadata method.
# Corresponds to the JSON property `setLineItemMetadata` # Corresponds to the JSON property `setLineItemMetadata`
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata] # @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata]
@ -1492,13 +1507,16 @@ module Google
@batch_id = args[:batch_id] if args.key?(:batch_id) @batch_id = args[:batch_id] if args.key?(:batch_id)
@cancel = args[:cancel] if args.key?(:cancel) @cancel = args[:cancel] if args.key?(:cancel)
@cancel_line_item = args[:cancel_line_item] if args.key?(:cancel_line_item) @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_id = args[:merchant_id] if args.key?(:merchant_id)
@merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id) @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
@method_prop = args[:method_prop] if args.key?(:method_prop) @method_prop = args[:method_prop] if args.key?(:method_prop)
@operation_id = args[:operation_id] if args.key?(:operation_id) @operation_id = args[:operation_id] if args.key?(:operation_id)
@order_id = args[:order_id] if args.key?(:order_id) @order_id = args[:order_id] if args.key?(:order_id)
@refund = args[:refund] if args.key?(:refund) @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_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) @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) @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_line_item_shipping_details = args[:update_line_item_shipping_details] if args.key?(:update_line_item_shipping_details)
@ -1597,6 +1615,62 @@ module Google
end end
end end
#
class OrdersCustomBatchRequestEntryInStoreRefundLineItem
include Google::Apis::Core::Hashable
# The amount that is refunded. Required.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to refund amount in amountPretax. Required.
# Corresponds to the JSON property `amountTax`
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :amount_tax
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
# #
class OrdersCustomBatchRequestEntryRefund class OrdersCustomBatchRequestEntryRefund
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1641,6 +1715,50 @@ module Google
end end
end end
#
class OrdersCustomBatchRequestEntryRejectReturnLineItem
include Google::Apis::Core::Hashable
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
# #
class OrdersCustomBatchRequestEntryReturnLineItem class OrdersCustomBatchRequestEntryReturnLineItem
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1685,6 +1803,63 @@ module Google
end end
end end
#
class OrdersCustomBatchRequestEntryReturnRefundLineItem
include Google::Apis::Core::Hashable
# The amount that is refunded. Optional, but if filled then both amountPretax
# and amountTax must be set.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to refund amount in amountPretax.
# Corresponds to the JSON property `amountTax`
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :amount_tax
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
# #
class OrdersCustomBatchRequestEntrySetLineItemMetadata class OrdersCustomBatchRequestEntrySetLineItemMetadata
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1999,6 +2174,94 @@ module Google
end end
end end
#
class OrdersInStoreRefundLineItemRequest
include Google::Apis::Core::Hashable
# The amount that is refunded. Required.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to refund amount in amountPretax. Required.
# Corresponds to the JSON property `amountTax`
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :amount_tax
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
#
class OrdersInStoreRefundLineItemResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersInStoreRefundLineItemResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
# #
class OrdersListResponse class OrdersListResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2107,6 +2370,82 @@ module Google
end end
end end
#
class OrdersRejectReturnLineItemRequest
include Google::Apis::Core::Hashable
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
#
class OrdersRejectReturnLineItemResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersRejectReturnLineItemResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
# #
class OrdersReturnLineItemRequest class OrdersReturnLineItemRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2183,6 +2522,95 @@ module Google
end end
end end
#
class OrdersReturnRefundLineItemRequest
include Google::Apis::Core::Hashable
# The amount that is refunded. Optional, but if filled then both amountPretax
# and amountTax must be set.
# Corresponds to the JSON property `amountPretax`
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :amount_pretax
# Tax amount that correspond to refund amount in amountPretax.
# Corresponds to the JSON property `amountTax`
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :amount_tax
# The ID of the line item to return. Either lineItemId or productId is required.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# The ID of the operation. Unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# The ID of the product to return. This is the REST ID used in the products
# service. Either lineItemId or productId is required.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The quantity to return and refund.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# The reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# The explanation of the reason.
# Corresponds to the JSON property `reasonText`
# @return [String]
attr_accessor :reason_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity)
@reason = args[:reason] if args.key?(:reason)
@reason_text = args[:reason_text] if args.key?(:reason_text)
end
end
#
class OrdersReturnRefundLineItemResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# ordersReturnRefundLineItemResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
# #
class OrdersSetLineItemMetadataRequest class OrdersSetLineItemMetadataRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -226,18 +226,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OrdersCustomBatchRequestEntryInStoreRefundLineItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersCustomBatchRequestEntryRefund class OrdersCustomBatchRequestEntryRefund
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OrdersCustomBatchRequestEntryRejectReturnLineItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersCustomBatchRequestEntryReturnLineItem class OrdersCustomBatchRequestEntryReturnLineItem
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OrdersCustomBatchRequestEntryReturnRefundLineItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersCustomBatchRequestEntrySetLineItemMetadata class OrdersCustomBatchRequestEntrySetLineItemMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -292,6 +310,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OrdersInStoreRefundLineItemRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersInStoreRefundLineItemResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersListResponse class OrdersListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -310,6 +340,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OrdersRejectReturnLineItemRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersRejectReturnLineItemResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersReturnLineItemRequest class OrdersReturnLineItemRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -322,6 +364,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OrdersReturnRefundLineItemRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersReturnRefundLineItemResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersSetLineItemMetadataRequest class OrdersSetLineItemMetadataRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -797,6 +851,8 @@ module Google
property :cancel_line_item, as: 'cancelLineItem', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancelLineItem, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancelLineItem::Representation property :cancel_line_item, as: 'cancelLineItem', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancelLineItem, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancelLineItem::Representation
property :in_store_refund_line_item, as: 'inStoreRefundLineItem', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryInStoreRefundLineItem, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryInStoreRefundLineItem::Representation
property :merchant_id, :numeric_string => true, as: 'merchantId' property :merchant_id, :numeric_string => true, as: 'merchantId'
property :merchant_order_id, as: 'merchantOrderId' property :merchant_order_id, as: 'merchantOrderId'
property :method_prop, as: 'method' property :method_prop, as: 'method'
@ -804,8 +860,12 @@ module Google
property :order_id, as: 'orderId' property :order_id, as: 'orderId'
property :refund, as: 'refund', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRefund, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRefund::Representation property :refund, as: 'refund', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRefund, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRefund::Representation
property :reject_return_line_item, as: 'rejectReturnLineItem', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRejectReturnLineItem, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRejectReturnLineItem::Representation
property :return_line_item, as: 'returnLineItem', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem::Representation property :return_line_item, as: 'returnLineItem', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem::Representation
property :return_refund_line_item, as: 'returnRefundLineItem', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnRefundLineItem, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnRefundLineItem::Representation
property :set_line_item_metadata, as: 'setLineItemMetadata', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata::Representation property :set_line_item_metadata, as: 'setLineItemMetadata', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata::Representation
property :ship_line_items, as: 'shipLineItems', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems::Representation property :ship_line_items, as: 'shipLineItems', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems::Representation
@ -842,6 +902,21 @@ module Google
end end
end end
class OrdersCustomBatchRequestEntryInStoreRefundLineItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
property :line_item_id, as: 'lineItemId'
property :product_id, as: 'productId'
property :quantity, as: 'quantity'
property :reason, as: 'reason'
property :reason_text, as: 'reasonText'
end
end
class OrdersCustomBatchRequestEntryRefund class OrdersCustomBatchRequestEntryRefund
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -856,6 +931,17 @@ module Google
end end
end end
class OrdersCustomBatchRequestEntryRejectReturnLineItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :line_item_id, as: 'lineItemId'
property :product_id, as: 'productId'
property :quantity, as: 'quantity'
property :reason, as: 'reason'
property :reason_text, as: 'reasonText'
end
end
class OrdersCustomBatchRequestEntryReturnLineItem class OrdersCustomBatchRequestEntryReturnLineItem
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -867,6 +953,21 @@ module Google
end end
end end
class OrdersCustomBatchRequestEntryReturnRefundLineItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
property :line_item_id, as: 'lineItemId'
property :product_id, as: 'productId'
property :quantity, as: 'quantity'
property :reason, as: 'reason'
property :reason_text, as: 'reasonText'
end
end
class OrdersCustomBatchRequestEntrySetLineItemMetadata class OrdersCustomBatchRequestEntrySetLineItemMetadata
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -959,6 +1060,30 @@ module Google
end end
end end
class OrdersInStoreRefundLineItemRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
property :line_item_id, as: 'lineItemId'
property :operation_id, as: 'operationId'
property :product_id, as: 'productId'
property :quantity, as: 'quantity'
property :reason, as: 'reason'
property :reason_text, as: 'reasonText'
end
end
class OrdersInStoreRefundLineItemResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrdersListResponse class OrdersListResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -992,6 +1117,26 @@ module Google
end end
end end
class OrdersRejectReturnLineItemRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :line_item_id, as: 'lineItemId'
property :operation_id, as: 'operationId'
property :product_id, as: 'productId'
property :quantity, as: 'quantity'
property :reason, as: 'reason'
property :reason_text, as: 'reasonText'
end
end
class OrdersRejectReturnLineItemResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrdersReturnLineItemRequest class OrdersReturnLineItemRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1012,6 +1157,30 @@ module Google
end end
end end
class OrdersReturnRefundLineItemRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
property :line_item_id, as: 'lineItemId'
property :operation_id, as: 'operationId'
property :product_id, as: 'productId'
property :quantity, as: 'quantity'
property :reason, as: 'reason'
property :reason_text, as: 'reasonText'
end
end
class OrdersReturnRefundLineItemResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrdersSetLineItemMetadataRequest class OrdersSetLineItemMetadataRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -412,6 +412,48 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Notifies that item return and refund was handled directly in store.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order.
# @param [Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemRequest] orders_in_store_refund_line_item_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/inStoreRefundLineItem', options)
command.request_representation = Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemRequest::Representation
command.request_object = orders_in_store_refund_line_item_request_object
command.response_representation = Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemResponse::Representation
command.response_class = Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists the orders in your Merchant Center account. # Lists the orders in your Merchant Center account.
# @param [Fixnum] merchant_id # @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client # The ID of the account that manages the order. This cannot be a multi-client
@ -528,6 +570,48 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Rejects return on an line item.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order.
# @param [Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemRequest] orders_reject_return_line_item_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/rejectReturnLineItem', options)
command.request_representation = Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemRequest::Representation
command.request_object = orders_reject_return_line_item_request_object
command.response_representation = Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemResponse::Representation
command.response_class = Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns a line item. # Returns a line item.
# @param [Fixnum] merchant_id # @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client # The ID of the account that manages the order. This cannot be a multi-client
@ -570,6 +654,49 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns and refunds a line item. Note that this method can only be called on
# fully shipped orders.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order.
# @param [Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemRequest] orders_return_refund_line_item_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnRefundLineItem', options)
command.request_representation = Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemRequest::Representation
command.request_object = orders_return_refund_line_item_request_object
command.response_representation = Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemResponse::Representation
command.response_class = Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Sets (overrides) merchant provided annotations on the line item. # Sets (overrides) merchant provided annotations on the line item.
# @param [Fixnum] merchant_id # @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client # The ID of the account that manages the order. This cannot be a multi-client