Index: generated/googleapis/lib/content/v2sandbox.dart |
diff --git a/generated/googleapis/lib/content/v2sandbox.dart b/generated/googleapis/lib/content/v2sandbox.dart |
index 06fd74256d37784796751f089d8d45d90231190f..5e8302cefa626f8b3bf5e5bcf99c42e12b798d67 100644 |
--- a/generated/googleapis/lib/content/v2sandbox.dart |
+++ b/generated/googleapis/lib/content/v2sandbox.dart |
@@ -9,56 +9,55 @@ import 'dart:convert' as convert; |
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
import 'package:http/http.dart' as http; |
-export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
- ApiRequestError, DetailedApiRequestError; |
+export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
+ show ApiRequestError, DetailedApiRequestError; |
const core.String USER_AGENT = 'dart-api-client content/v2sandbox'; |
-/** |
- * Manages product items, inventory, and Merchant Center accounts for Google |
- * Shopping. |
- */ |
+/// Manages product items, inventory, and Merchant Center accounts for Google |
+/// Shopping. |
class ContentApi { |
- /** Manage your product listings and accounts for Google Shopping */ |
+ /// Manage your product listings and accounts for Google Shopping |
static const ContentScope = "https://www.googleapis.com/auth/content"; |
- |
final commons.ApiRequester _requester; |
OrdersResourceApi get orders => new OrdersResourceApi(_requester); |
- ContentApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "content/v2sandbox/"}) : |
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
+ ContentApi(http.Client client, |
+ {core.String rootUrl: "https://www.googleapis.com/", |
+ core.String servicePath: "content/v2sandbox/"}) |
+ : _requester = |
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
} |
- |
class OrdersResourceApi { |
final commons.ApiRequester _requester; |
- OrdersResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Marks an order as acknowledged. This method can only be called for |
- * non-multi-client accounts. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [merchantId] - The ID of the managing account. |
- * |
- * [orderId] - The ID of the order. |
- * |
- * Completes with a [OrdersAcknowledgeResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<OrdersAcknowledgeResponse> acknowledge(OrdersAcknowledgeRequest request, core.String merchantId, core.String orderId) { |
+ OrdersResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Marks an order as acknowledged. This method can only be called for |
+ /// non-multi-client accounts. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [merchantId] - The ID of the managing account. |
+ /// |
+ /// [orderId] - The ID of the order. |
+ /// |
+ /// Completes with a [OrdersAcknowledgeResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<OrdersAcknowledgeResponse> acknowledge( |
+ OrdersAcknowledgeRequest request, |
+ core.String merchantId, |
+ core.String orderId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -76,38 +75,40 @@ class OrdersResourceApi { |
throw new core.ArgumentError("Parameter orderId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.Escaper.ecapeVariable('$orderId') + '/acknowledge'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new OrdersAcknowledgeResponse.fromJson(data)); |
- } |
- |
- /** |
- * Sandbox only. Moves a test order from state "inProgress" to state |
- * "pendingShipment". This method can only be called for non-multi-client |
- * accounts. |
- * |
- * Request parameters: |
- * |
- * [merchantId] - The ID of the managing account. |
- * |
- * [orderId] - The ID of the test order to modify. |
- * |
- * Completes with a [OrdersAdvanceTestOrderResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<OrdersAdvanceTestOrderResponse> advancetestorder(core.String merchantId, core.String orderId) { |
+ _url = commons.Escaper.ecapeVariable('$merchantId') + |
+ '/orders/' + |
+ commons.Escaper.ecapeVariable('$orderId') + |
+ '/acknowledge'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new OrdersAcknowledgeResponse.fromJson(data)); |
+ } |
+ |
+ /// Sandbox only. Moves a test order from state "inProgress" to state |
+ /// "pendingShipment". This method can only be called for non-multi-client |
+ /// accounts. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [merchantId] - The ID of the managing account. |
+ /// |
+ /// [orderId] - The ID of the test order to modify. |
+ /// |
+ /// Completes with a [OrdersAdvanceTestOrderResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<OrdersAdvanceTestOrderResponse> advancetestorder( |
+ core.String merchantId, core.String orderId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -122,39 +123,41 @@ class OrdersResourceApi { |
throw new core.ArgumentError("Parameter orderId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$merchantId') + '/testorders/' + commons.Escaper.ecapeVariable('$orderId') + '/advance'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new OrdersAdvanceTestOrderResponse.fromJson(data)); |
- } |
- |
- /** |
- * Cancels all line items in an order, making a full refund. This method can |
- * only be called for non-multi-client accounts. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [merchantId] - The ID of the managing account. |
- * |
- * [orderId] - The ID of the order to cancel. |
- * |
- * Completes with a [OrdersCancelResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<OrdersCancelResponse> cancel(OrdersCancelRequest request, core.String merchantId, core.String orderId) { |
+ _url = commons.Escaper.ecapeVariable('$merchantId') + |
+ '/testorders/' + |
+ commons.Escaper.ecapeVariable('$orderId') + |
+ '/advance'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new OrdersAdvanceTestOrderResponse.fromJson(data)); |
+ } |
+ |
+ /// Cancels all line items in an order, making a full refund. This method can |
+ /// only be called for non-multi-client accounts. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [merchantId] - The ID of the managing account. |
+ /// |
+ /// [orderId] - The ID of the order to cancel. |
+ /// |
+ /// Completes with a [OrdersCancelResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<OrdersCancelResponse> cancel(OrdersCancelRequest request, |
+ core.String merchantId, core.String orderId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -172,39 +175,42 @@ class OrdersResourceApi { |
throw new core.ArgumentError("Parameter orderId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.Escaper.ecapeVariable('$orderId') + '/cancel'; |
+ _url = commons.Escaper.ecapeVariable('$merchantId') + |
+ '/orders/' + |
+ commons.Escaper.ecapeVariable('$orderId') + |
+ '/cancel'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new OrdersCancelResponse.fromJson(data)); |
} |
- /** |
- * Cancels a line item, making a full refund. This method can only be called |
- * for non-multi-client accounts. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [merchantId] - The ID of the managing account. |
- * |
- * [orderId] - The ID of the order. |
- * |
- * Completes with a [OrdersCancelLineItemResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<OrdersCancelLineItemResponse> cancellineitem(OrdersCancelLineItemRequest request, core.String merchantId, core.String orderId) { |
+ /// Cancels a line item, making a full refund. This method can only be called |
+ /// for non-multi-client accounts. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [merchantId] - The ID of the managing account. |
+ /// |
+ /// [orderId] - The ID of the order. |
+ /// |
+ /// Completes with a [OrdersCancelLineItemResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<OrdersCancelLineItemResponse> cancellineitem( |
+ OrdersCancelLineItemRequest request, |
+ core.String merchantId, |
+ core.String orderId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -222,37 +228,39 @@ class OrdersResourceApi { |
throw new core.ArgumentError("Parameter orderId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.Escaper.ecapeVariable('$orderId') + '/cancelLineItem'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new OrdersCancelLineItemResponse.fromJson(data)); |
- } |
- |
- /** |
- * Sandbox only. Creates a test order. This method can only be called for |
- * non-multi-client accounts. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [merchantId] - The ID of the managing account. |
- * |
- * Completes with a [OrdersCreateTestOrderResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<OrdersCreateTestOrderResponse> createtestorder(OrdersCreateTestOrderRequest request, core.String merchantId) { |
+ _url = commons.Escaper.ecapeVariable('$merchantId') + |
+ '/orders/' + |
+ commons.Escaper.ecapeVariable('$orderId') + |
+ '/cancelLineItem'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new OrdersCancelLineItemResponse.fromJson(data)); |
+ } |
+ |
+ /// Sandbox only. Creates a test order. This method can only be called for |
+ /// non-multi-client accounts. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [merchantId] - The ID of the managing account. |
+ /// |
+ /// Completes with a [OrdersCreateTestOrderResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<OrdersCreateTestOrderResponse> createtestorder( |
+ OrdersCreateTestOrderRequest request, core.String merchantId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -269,33 +277,32 @@ class OrdersResourceApi { |
_url = commons.Escaper.ecapeVariable('$merchantId') + '/testorders'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new OrdersCreateTestOrderResponse.fromJson(data)); |
- } |
- |
- /** |
- * Retrieves or modifies multiple orders in a single request. This method can |
- * only be called for non-multi-client accounts. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * Completes with a [OrdersCustomBatchResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<OrdersCustomBatchResponse> custombatch(OrdersCustomBatchRequest request) { |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new OrdersCreateTestOrderResponse.fromJson(data)); |
+ } |
+ |
+ /// Retrieves or modifies multiple orders in a single request. This method |
+ /// can only be called for non-multi-client accounts. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// Completes with a [OrdersCustomBatchResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<OrdersCustomBatchResponse> custombatch( |
+ OrdersCustomBatchRequest request) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -309,34 +316,32 @@ class OrdersResourceApi { |
_url = 'orders/batch'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new OrdersCustomBatchResponse.fromJson(data)); |
- } |
- |
- /** |
- * Retrieves an order from your Merchant Center account. This method can only |
- * be called for non-multi-client accounts. |
- * |
- * Request parameters: |
- * |
- * [merchantId] - The ID of the managing account. |
- * |
- * [orderId] - The ID of the order. |
- * |
- * Completes with a [Order]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new OrdersCustomBatchResponse.fromJson(data)); |
+ } |
+ |
+ /// Retrieves an order from your Merchant Center account. This method can |
+ /// only be called for non-multi-client accounts. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [merchantId] - The ID of the managing account. |
+ /// |
+ /// [orderId] - The ID of the order. |
+ /// |
+ /// Completes with a [Order]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<Order> get(core.String merchantId, core.String orderId) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -352,37 +357,37 @@ class OrdersResourceApi { |
throw new core.ArgumentError("Parameter orderId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.Escaper.ecapeVariable('$orderId'); |
+ _url = commons.Escaper.ecapeVariable('$merchantId') + |
+ '/orders/' + |
+ commons.Escaper.ecapeVariable('$orderId'); |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new Order.fromJson(data)); |
} |
- /** |
- * Retrieves an order using merchant order id. This method can only be called |
- * for non-multi-client accounts. |
- * |
- * Request parameters: |
- * |
- * [merchantId] - The ID of the managing account. |
- * |
- * [merchantOrderId] - The merchant order id to be looked for. |
- * |
- * Completes with a [OrdersGetByMerchantOrderIdResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<OrdersGetByMerchantOrderIdResponse> getbymerchantorderid(core.String merchantId, core.String merchantOrderId) { |
+ /// Retrieves an order using merchant order id. This method can only be |
+ /// called for non-multi-client accounts. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [merchantId] - The ID of the managing account. |
+ /// |
+ /// [merchantOrderId] - The merchant order id to be looked for. |
+ /// |
+ /// Completes with a [OrdersGetByMerchantOrderIdResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<OrdersGetByMerchantOrderIdResponse> getbymerchantorderid( |
+ core.String merchantId, core.String merchantOrderId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -397,43 +402,44 @@ class OrdersResourceApi { |
throw new core.ArgumentError("Parameter merchantOrderId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$merchantId') + '/ordersbymerchantid/' + commons.Escaper.ecapeVariable('$merchantOrderId'); |
- |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new OrdersGetByMerchantOrderIdResponse.fromJson(data)); |
- } |
- |
- /** |
- * Sandbox only. Retrieves an order template that can be used to quickly |
- * create a new order in sandbox. This method can only be called for |
- * non-multi-client accounts. |
- * |
- * Request parameters: |
- * |
- * [merchantId] - The ID of the managing account. |
- * |
- * [templateName] - The name of the template to retrieve. |
- * Possible string values are: |
- * - "template1" |
- * - "template1a" |
- * - "template1b" |
- * - "template2" |
- * |
- * Completes with a [OrdersGetTestOrderTemplateResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<OrdersGetTestOrderTemplateResponse> gettestordertemplate(core.String merchantId, core.String templateName) { |
+ _url = commons.Escaper.ecapeVariable('$merchantId') + |
+ '/ordersbymerchantid/' + |
+ commons.Escaper.ecapeVariable('$merchantOrderId'); |
+ |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new OrdersGetByMerchantOrderIdResponse.fromJson(data)); |
+ } |
+ |
+ /// Sandbox only. Retrieves an order template that can be used to quickly |
+ /// create a new order in sandbox. This method can only be called for |
+ /// non-multi-client accounts. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [merchantId] - The ID of the managing account. |
+ /// |
+ /// [templateName] - The name of the template to retrieve. |
+ /// Possible string values are: |
+ /// - "template1" |
+ /// - "template1a" |
+ /// - "template1b" |
+ /// - "template2" |
+ /// |
+ /// Completes with a [OrdersGetTestOrderTemplateResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<OrdersGetTestOrderTemplateResponse> gettestordertemplate( |
+ core.String merchantId, core.String templateName) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -448,71 +454,78 @@ class OrdersResourceApi { |
throw new core.ArgumentError("Parameter templateName is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$merchantId') + '/testordertemplates/' + commons.Escaper.ecapeVariable('$templateName'); |
- |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new OrdersGetTestOrderTemplateResponse.fromJson(data)); |
- } |
- |
- /** |
- * Lists the orders in your Merchant Center account. This method can only be |
- * called for non-multi-client accounts. |
- * |
- * Request parameters: |
- * |
- * [merchantId] - The ID of the managing account. |
- * |
- * [acknowledged] - Obtains orders that match the acknowledgement status. When |
- * set to true, obtains orders that have been acknowledged. When false, |
- * obtains orders that have not been acknowledged. |
- * We recommend using this filter set to false, in conjunction with the |
- * acknowledge call, such that only un-acknowledged orders are returned. |
- * |
- * [maxResults] - The maximum number of orders to return in the response, used |
- * for paging. The default value is 25 orders per page, and the maximum |
- * allowed value is 250 orders per page. |
- * Known issue: All List calls will return all Orders without limit regardless |
- * of the value of this field. |
- * |
- * [orderBy] - The ordering of the returned list. The only supported value are |
- * placedDate desc and placedDate asc for now, which returns orders sorted by |
- * placement date. "placedDate desc" stands for listing orders by placement |
- * date, from oldest to most recent. "placedDate asc" stands for listing |
- * orders by placement date, from most recent to oldest. In future releases |
- * we'll support other sorting criteria. |
- * Possible string values are: |
- * - "placedDate asc" |
- * - "placedDate desc" |
- * |
- * [pageToken] - The token returned by the previous request. |
- * |
- * [placedDateEnd] - Obtains orders placed before this date (exclusively), in |
- * ISO 8601 format. |
- * |
- * [placedDateStart] - Obtains orders placed after this date (inclusively), in |
- * ISO 8601 format. |
- * |
- * [statuses] - Obtains orders that match any of the specified statuses. |
- * Multiple values can be specified with comma separation. Additionally, |
- * please note that active is a shortcut for pendingShipment and |
- * partiallyShipped, and completed is a shortcut for shipped , |
- * partiallyDelivered, delivered, partiallyReturned, returned, and canceled. |
- * |
- * Completes with a [OrdersListResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<OrdersListResponse> list(core.String merchantId, {core.bool acknowledged, core.int maxResults, core.String orderBy, core.String pageToken, core.String placedDateEnd, core.String placedDateStart, core.List<core.String> statuses}) { |
+ _url = commons.Escaper.ecapeVariable('$merchantId') + |
+ '/testordertemplates/' + |
+ commons.Escaper.ecapeVariable('$templateName'); |
+ |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new OrdersGetTestOrderTemplateResponse.fromJson(data)); |
+ } |
+ |
+ /// Lists the orders in your Merchant Center account. This method can only be |
+ /// called for non-multi-client accounts. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [merchantId] - The ID of the managing account. |
+ /// |
+ /// [acknowledged] - Obtains orders that match the acknowledgement status. |
+ /// When set to true, obtains orders that have been acknowledged. When false, |
+ /// obtains orders that have not been acknowledged. |
+ /// We recommend using this filter set to false, in conjunction with the |
+ /// acknowledge call, such that only un-acknowledged orders are returned. |
+ /// |
+ /// [maxResults] - The maximum number of orders to return in the response, |
+ /// used for paging. The default value is 25 orders per page, and the maximum |
+ /// allowed value is 250 orders per page. |
+ /// Known issue: All List calls will return all Orders without limit |
+ /// regardless of the value of this field. |
+ /// |
+ /// [orderBy] - The ordering of the returned list. The only supported value |
+ /// are placedDate desc and placedDate asc for now, which returns orders |
+ /// sorted by placement date. "placedDate desc" stands for listing orders by |
+ /// placement date, from oldest to most recent. "placedDate asc" stands for |
+ /// listing orders by placement date, from most recent to oldest. In future |
+ /// releases we'll support other sorting criteria. |
+ /// Possible string values are: |
+ /// - "placedDate asc" |
+ /// - "placedDate desc" |
+ /// |
+ /// [pageToken] - The token returned by the previous request. |
+ /// |
+ /// [placedDateEnd] - Obtains orders placed before this date (exclusively), |
+ /// in ISO 8601 format. |
+ /// |
+ /// [placedDateStart] - Obtains orders placed after this date (inclusively), |
+ /// in ISO 8601 format. |
+ /// |
+ /// [statuses] - Obtains orders that match any of the specified statuses. |
+ /// Multiple values can be specified with comma separation. Additionally, |
+ /// please note that active is a shortcut for pendingShipment and |
+ /// partiallyShipped, and completed is a shortcut for shipped , |
+ /// partiallyDelivered, delivered, partiallyReturned, returned, and canceled. |
+ /// |
+ /// Completes with a [OrdersListResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<OrdersListResponse> list(core.String merchantId, |
+ {core.bool acknowledged, |
+ core.int maxResults, |
+ core.String orderBy, |
+ core.String pageToken, |
+ core.String placedDateEnd, |
+ core.String placedDateStart, |
+ core.List<core.String> statuses}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -547,37 +560,35 @@ class OrdersResourceApi { |
_url = commons.Escaper.ecapeVariable('$merchantId') + '/orders'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new OrdersListResponse.fromJson(data)); |
} |
- /** |
- * Refund a portion of the order, up to the full amount paid. This method can |
- * only be called for non-multi-client accounts. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [merchantId] - The ID of the managing account. |
- * |
- * [orderId] - The ID of the order to refund. |
- * |
- * Completes with a [OrdersRefundResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<OrdersRefundResponse> refund(OrdersRefundRequest request, core.String merchantId, core.String orderId) { |
+ /// Refund a portion of the order, up to the full amount paid. This method |
+ /// can only be called for non-multi-client accounts. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [merchantId] - The ID of the managing account. |
+ /// |
+ /// [orderId] - The ID of the order to refund. |
+ /// |
+ /// Completes with a [OrdersRefundResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<OrdersRefundResponse> refund(OrdersRefundRequest request, |
+ core.String merchantId, core.String orderId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -595,39 +606,42 @@ class OrdersResourceApi { |
throw new core.ArgumentError("Parameter orderId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.Escaper.ecapeVariable('$orderId') + '/refund'; |
+ _url = commons.Escaper.ecapeVariable('$merchantId') + |
+ '/orders/' + |
+ commons.Escaper.ecapeVariable('$orderId') + |
+ '/refund'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new OrdersRefundResponse.fromJson(data)); |
} |
- /** |
- * Returns a line item. This method can only be called for non-multi-client |
- * accounts. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [merchantId] - The ID of the managing account. |
- * |
- * [orderId] - The ID of the order. |
- * |
- * Completes with a [OrdersReturnLineItemResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<OrdersReturnLineItemResponse> returnlineitem(OrdersReturnLineItemRequest request, core.String merchantId, core.String orderId) { |
+ /// Returns a line item. This method can only be called for non-multi-client |
+ /// accounts. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [merchantId] - The ID of the managing account. |
+ /// |
+ /// [orderId] - The ID of the order. |
+ /// |
+ /// Completes with a [OrdersReturnLineItemResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<OrdersReturnLineItemResponse> returnlineitem( |
+ OrdersReturnLineItemRequest request, |
+ core.String merchantId, |
+ core.String orderId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -645,39 +659,43 @@ class OrdersResourceApi { |
throw new core.ArgumentError("Parameter orderId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.Escaper.ecapeVariable('$orderId') + '/returnLineItem'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new OrdersReturnLineItemResponse.fromJson(data)); |
- } |
- |
- /** |
- * Marks line item(s) as shipped. This method can only be called for |
- * non-multi-client accounts. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [merchantId] - The ID of the managing account. |
- * |
- * [orderId] - The ID of the order. |
- * |
- * Completes with a [OrdersShipLineItemsResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<OrdersShipLineItemsResponse> shiplineitems(OrdersShipLineItemsRequest request, core.String merchantId, core.String orderId) { |
+ _url = commons.Escaper.ecapeVariable('$merchantId') + |
+ '/orders/' + |
+ commons.Escaper.ecapeVariable('$orderId') + |
+ '/returnLineItem'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new OrdersReturnLineItemResponse.fromJson(data)); |
+ } |
+ |
+ /// Marks line item(s) as shipped. This method can only be called for |
+ /// non-multi-client accounts. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [merchantId] - The ID of the managing account. |
+ /// |
+ /// [orderId] - The ID of the order. |
+ /// |
+ /// Completes with a [OrdersShipLineItemsResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<OrdersShipLineItemsResponse> shiplineitems( |
+ OrdersShipLineItemsRequest request, |
+ core.String merchantId, |
+ core.String orderId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -695,39 +713,43 @@ class OrdersResourceApi { |
throw new core.ArgumentError("Parameter orderId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.Escaper.ecapeVariable('$orderId') + '/shipLineItems'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new OrdersShipLineItemsResponse.fromJson(data)); |
- } |
- |
- /** |
- * Updates the merchant order ID for a given order. This method can only be |
- * called for non-multi-client accounts. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [merchantId] - The ID of the managing account. |
- * |
- * [orderId] - The ID of the order. |
- * |
- * Completes with a [OrdersUpdateMerchantOrderIdResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<OrdersUpdateMerchantOrderIdResponse> updatemerchantorderid(OrdersUpdateMerchantOrderIdRequest request, core.String merchantId, core.String orderId) { |
+ _url = commons.Escaper.ecapeVariable('$merchantId') + |
+ '/orders/' + |
+ commons.Escaper.ecapeVariable('$orderId') + |
+ '/shipLineItems'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new OrdersShipLineItemsResponse.fromJson(data)); |
+ } |
+ |
+ /// Updates the merchant order ID for a given order. This method can only be |
+ /// called for non-multi-client accounts. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [merchantId] - The ID of the managing account. |
+ /// |
+ /// [orderId] - The ID of the order. |
+ /// |
+ /// Completes with a [OrdersUpdateMerchantOrderIdResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<OrdersUpdateMerchantOrderIdResponse> updatemerchantorderid( |
+ OrdersUpdateMerchantOrderIdRequest request, |
+ core.String merchantId, |
+ core.String orderId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -745,39 +767,43 @@ class OrdersResourceApi { |
throw new core.ArgumentError("Parameter orderId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.Escaper.ecapeVariable('$orderId') + '/updateMerchantOrderId'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new OrdersUpdateMerchantOrderIdResponse.fromJson(data)); |
- } |
- |
- /** |
- * Updates a shipment's status, carrier, and/or tracking ID. This method can |
- * only be called for non-multi-client accounts. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [merchantId] - The ID of the managing account. |
- * |
- * [orderId] - The ID of the order. |
- * |
- * Completes with a [OrdersUpdateShipmentResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<OrdersUpdateShipmentResponse> updateshipment(OrdersUpdateShipmentRequest request, core.String merchantId, core.String orderId) { |
+ _url = commons.Escaper.ecapeVariable('$merchantId') + |
+ '/orders/' + |
+ commons.Escaper.ecapeVariable('$orderId') + |
+ '/updateMerchantOrderId'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new OrdersUpdateMerchantOrderIdResponse.fromJson(data)); |
+ } |
+ |
+ /// Updates a shipment's status, carrier, and/or tracking ID. This method can |
+ /// only be called for non-multi-client accounts. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [merchantId] - The ID of the managing account. |
+ /// |
+ /// [orderId] - The ID of the order. |
+ /// |
+ /// Completes with a [OrdersUpdateShipmentResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<OrdersUpdateShipmentResponse> updateshipment( |
+ OrdersUpdateShipmentRequest request, |
+ core.String merchantId, |
+ core.String orderId) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -795,29 +821,31 @@ class OrdersResourceApi { |
throw new core.ArgumentError("Parameter orderId is required."); |
} |
- _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.Escaper.ecapeVariable('$orderId') + '/updateShipment'; |
+ _url = commons.Escaper.ecapeVariable('$merchantId') + |
+ '/orders/' + |
+ commons.Escaper.ecapeVariable('$orderId') + |
+ '/updateShipment'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new OrdersUpdateShipmentResponse.fromJson(data)); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new OrdersUpdateShipmentResponse.fromJson(data)); |
} |
- |
} |
- |
- |
-/** An error returned by the API. */ |
+/// An error returned by the API. |
class Error { |
- /** The domain of the error. */ |
+ /// The domain of the error. |
core.String domain; |
- /** A description of the error. */ |
+ |
+ /// A description of the error. |
core.String message; |
- /** The error code. */ |
+ |
+ /// The error code. |
core.String reason; |
Error(); |
@@ -835,7 +863,8 @@ class Error { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (domain != null) { |
_json["domain"] = domain; |
} |
@@ -849,13 +878,15 @@ class Error { |
} |
} |
-/** A list of errors returned by a failed batch entry. */ |
+/// A list of errors returned by a failed batch entry. |
class Errors { |
- /** The HTTP status of the first error in errors. */ |
+ /// The HTTP status of the first error in errors. |
core.int code; |
- /** A list of errors. */ |
+ |
+ /// A list of errors. |
core.List<Error> errors; |
- /** The message of the first error in errors. */ |
+ |
+ /// The message of the first error in errors. |
core.String message; |
Errors(); |
@@ -865,7 +896,8 @@ class Errors { |
code = _json["code"]; |
} |
if (_json.containsKey("errors")) { |
- errors = _json["errors"].map((value) => new Error.fromJson(value)).toList(); |
+ errors = |
+ _json["errors"].map((value) => new Error.fromJson(value)).toList(); |
} |
if (_json.containsKey("message")) { |
message = _json["message"]; |
@@ -873,7 +905,8 @@ class Errors { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (code != null) { |
_json["code"] = code; |
} |
@@ -888,54 +921,66 @@ class Errors { |
} |
class Order { |
- /** Whether the order was acknowledged. */ |
+ /// Whether the order was acknowledged. |
core.bool acknowledged; |
- /** The channel type of the order: "purchaseOnGoogle" or "googleExpress". */ |
+ |
+ /// The channel type of the order: "purchaseOnGoogle" or "googleExpress". |
core.String channelType; |
- /** The details of the customer who placed the order. */ |
+ |
+ /// The details of the customer who placed the order. |
OrderCustomer customer; |
- /** The details for the delivery. */ |
+ |
+ /// The details for the delivery. |
OrderDeliveryDetails deliveryDetails; |
- /** The REST id of the order. Globally unique. */ |
+ |
+ /// The REST id of the order. Globally unique. |
core.String id; |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#order". |
- */ |
+ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#order". |
core.String kind; |
- /** Line items that are ordered. */ |
+ |
+ /// Line items that are ordered. |
core.List<OrderLineItem> lineItems; |
core.String merchantId; |
- /** Merchant-provided id of the order. */ |
+ |
+ /// Merchant-provided id of the order. |
core.String merchantOrderId; |
- /** |
- * The net amount for the order. For example, if an order was originally for a |
- * grand total of $100 and a refund was issued for $20, the net amount will be |
- * $80. |
- */ |
+ |
+ /// The net amount for the order. For example, if an order was originally for |
+ /// a grand total of $100 and a refund was issued for $20, the net amount |
+ /// will be $80. |
Price netAmount; |
- /** The details of the payment method. */ |
+ |
+ /// The details of the payment method. |
OrderPaymentMethod paymentMethod; |
- /** The status of the payment. */ |
+ |
+ /// The status of the payment. |
core.String paymentStatus; |
- /** The date when the order was placed, in ISO 8601 format. */ |
+ |
+ /// The date when the order was placed, in ISO 8601 format. |
core.String placedDate; |
- /** |
- * The details of the merchant provided promotions applied to the order. More |
- * details about the program are here. |
- */ |
+ |
+ /// The details of the merchant provided promotions applied to the order. |
+ /// More details about the program are here. |
core.List<OrderPromotion> promotions; |
- /** Refunds for the order. */ |
+ |
+ /// Refunds for the order. |
core.List<OrderRefund> refunds; |
- /** Shipments of the order. */ |
+ |
+ /// Shipments of the order. |
core.List<OrderShipment> shipments; |
- /** The total cost of shipping for all items. */ |
+ |
+ /// The total cost of shipping for all items. |
Price shippingCost; |
- /** The tax for the total shipping cost. */ |
+ |
+ /// The tax for the total shipping cost. |
Price shippingCostTax; |
- /** The requested shipping option. */ |
+ |
+ /// The requested shipping option. |
core.String shippingOption; |
- /** The status of the order. */ |
+ |
+ /// The status of the order. |
core.String status; |
Order(); |
@@ -951,7 +996,8 @@ class Order { |
customer = new OrderCustomer.fromJson(_json["customer"]); |
} |
if (_json.containsKey("deliveryDetails")) { |
- deliveryDetails = new OrderDeliveryDetails.fromJson(_json["deliveryDetails"]); |
+ deliveryDetails = |
+ new OrderDeliveryDetails.fromJson(_json["deliveryDetails"]); |
} |
if (_json.containsKey("id")) { |
id = _json["id"]; |
@@ -960,7 +1006,9 @@ class Order { |
kind = _json["kind"]; |
} |
if (_json.containsKey("lineItems")) { |
- lineItems = _json["lineItems"].map((value) => new OrderLineItem.fromJson(value)).toList(); |
+ lineItems = _json["lineItems"] |
+ .map((value) => new OrderLineItem.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("merchantId")) { |
merchantId = _json["merchantId"]; |
@@ -981,13 +1029,19 @@ class Order { |
placedDate = _json["placedDate"]; |
} |
if (_json.containsKey("promotions")) { |
- promotions = _json["promotions"].map((value) => new OrderPromotion.fromJson(value)).toList(); |
+ promotions = _json["promotions"] |
+ .map((value) => new OrderPromotion.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("refunds")) { |
- refunds = _json["refunds"].map((value) => new OrderRefund.fromJson(value)).toList(); |
+ refunds = _json["refunds"] |
+ .map((value) => new OrderRefund.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("shipments")) { |
- shipments = _json["shipments"].map((value) => new OrderShipment.fromJson(value)).toList(); |
+ shipments = _json["shipments"] |
+ .map((value) => new OrderShipment.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("shippingCost")) { |
shippingCost = new Price.fromJson(_json["shippingCost"]); |
@@ -1004,7 +1058,8 @@ class Order { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (acknowledged != null) { |
_json["acknowledged"] = acknowledged; |
} |
@@ -1045,7 +1100,8 @@ class Order { |
_json["placedDate"] = placedDate; |
} |
if (promotions != null) { |
- _json["promotions"] = promotions.map((value) => (value).toJson()).toList(); |
+ _json["promotions"] = |
+ promotions.map((value) => (value).toJson()).toList(); |
} |
if (refunds != null) { |
_json["refunds"] = refunds.map((value) => (value).toJson()).toList(); |
@@ -1070,31 +1126,34 @@ class Order { |
} |
class OrderAddress { |
- /** CLDR country code (e.g. "US"). */ |
+ /// CLDR country code (e.g. "US"). |
core.String country; |
- /** |
- * Strings representing the lines of the printed label for mailing the order, |
- * for example: |
- * John Smith |
- * 1600 Amphitheatre Parkway |
- * Mountain View, CA, 94043 |
- * United States |
- */ |
+ |
+ /// Strings representing the lines of the printed label for mailing the |
+ /// order, for example: |
+ /// John Smith |
+ /// 1600 Amphitheatre Parkway |
+ /// Mountain View, CA, 94043 |
+ /// United States |
core.List<core.String> fullAddress; |
- /** Whether the address is a post office box. */ |
+ |
+ /// Whether the address is a post office box. |
core.bool isPostOfficeBox; |
- /** |
- * City, town or commune. May also include dependent localities or |
- * sublocalities (e.g. neighborhoods or suburbs). |
- */ |
+ |
+ /// City, town or commune. May also include dependent localities or |
+ /// sublocalities (e.g. neighborhoods or suburbs). |
core.String locality; |
- /** Postal Code or ZIP (e.g. "94043"). */ |
+ |
+ /// Postal Code or ZIP (e.g. "94043"). |
core.String postalCode; |
- /** Name of the recipient. */ |
+ |
+ /// Name of the recipient. |
core.String recipientName; |
- /** Top-level administrative subdivision of the country (e.g. "CA"). */ |
+ |
+ /// Top-level administrative subdivision of the country (e.g. "CA"). |
core.String region; |
- /** Street-level part of the address. */ |
+ |
+ /// Street-level part of the address. |
core.List<core.String> streetAddress; |
OrderAddress(); |
@@ -1127,7 +1186,8 @@ class OrderAddress { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (country != null) { |
_json["country"] = country; |
} |
@@ -1157,19 +1217,22 @@ class OrderAddress { |
} |
class OrderCancellation { |
- /** The actor that created the cancellation. */ |
+ /// The actor that created the cancellation. |
core.String actor; |
- /** Date on which the cancellation has been created, in ISO 8601 format. */ |
+ |
+ /// Date on which the cancellation has been created, in ISO 8601 format. |
core.String creationDate; |
- /** The quantity that was canceled. */ |
+ |
+ /// The quantity that was canceled. |
core.int quantity; |
- /** |
- * The reason for the cancellation. Orders that are cancelled with a |
- * noInventory reason will lead to the removal of the product from POG until |
- * you make an update to that product. This will not affect your Shopping ads. |
- */ |
+ |
+ /// The reason for the cancellation. Orders that are cancelled with a |
+ /// noInventory reason will lead to the removal of the product from POG until |
+ /// you make an update to that product. This will not affect your Shopping |
+ /// ads. |
core.String reason; |
- /** The explanation of the reason. */ |
+ |
+ /// The explanation of the reason. |
core.String reasonText; |
OrderCancellation(); |
@@ -1193,7 +1256,8 @@ class OrderCancellation { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (actor != null) { |
_json["actor"] = actor; |
} |
@@ -1214,16 +1278,17 @@ class OrderCancellation { |
} |
class OrderCustomer { |
- /** Email address of the customer. */ |
+ /// Email address of the customer. |
core.String email; |
- /** |
- * If set, this indicates the user explicitly chose to opt in or out of |
- * providing marketing rights to the merchant. If unset, this indicates the |
- * user has already made this choice in a previous purchase, and was thus not |
- * shown the marketing right opt in/out checkbox during the checkout flow. |
- */ |
+ |
+ /// If set, this indicates the user explicitly chose to opt in or out of |
+ /// providing marketing rights to the merchant. If unset, this indicates the |
+ /// user has already made this choice in a previous purchase, and was thus |
+ /// not shown the marketing right opt in/out checkbox during the checkout |
+ /// flow. |
core.bool explicitMarketingPreference; |
- /** Full name of the customer. */ |
+ |
+ /// Full name of the customer. |
core.String fullName; |
OrderCustomer(); |
@@ -1241,7 +1306,8 @@ class OrderCustomer { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (email != null) { |
_json["email"] = email; |
} |
@@ -1256,9 +1322,10 @@ class OrderCustomer { |
} |
class OrderDeliveryDetails { |
- /** The delivery address */ |
+ /// The delivery address |
OrderAddress address; |
- /** The phone number of the person receiving the delivery. */ |
+ |
+ /// The phone number of the person receiving the delivery. |
core.String phoneNumber; |
OrderDeliveryDetails(); |
@@ -1273,7 +1340,8 @@ class OrderDeliveryDetails { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (address != null) { |
_json["address"] = (address).toJson(); |
} |
@@ -1285,46 +1353,58 @@ class OrderDeliveryDetails { |
} |
class OrderLineItem { |
- /** Cancellations of the line item. */ |
+ /// Cancellations of the line item. |
core.List<OrderCancellation> cancellations; |
- /** The id of the line item. */ |
+ |
+ /// The id of the line item. |
core.String id; |
- /** |
- * Total price for the line item. For example, if two items for $10 are |
- * purchased, the total price will be $20. |
- */ |
+ |
+ /// Total price for the line item. For example, if two items for $10 are |
+ /// purchased, the total price will be $20. |
Price price; |
- /** Product data from the time of the order placement. */ |
+ |
+ /// Product data from the time of the order placement. |
OrderLineItemProduct product; |
- /** Number of items canceled. */ |
+ |
+ /// Number of items canceled. |
core.int quantityCanceled; |
- /** Number of items delivered. */ |
+ |
+ /// Number of items delivered. |
core.int quantityDelivered; |
- /** Number of items ordered. */ |
+ |
+ /// Number of items ordered. |
core.int quantityOrdered; |
- /** Number of items pending. */ |
+ |
+ /// Number of items pending. |
core.int quantityPending; |
- /** Number of items returned. */ |
+ |
+ /// Number of items returned. |
core.int quantityReturned; |
- /** Number of items shipped. */ |
+ |
+ /// Number of items shipped. |
core.int quantityShipped; |
- /** Details of the return policy for the line item. */ |
+ |
+ /// Details of the return policy for the line item. |
OrderLineItemReturnInfo returnInfo; |
- /** Returns of the line item. */ |
+ |
+ /// Returns of the line item. |
core.List<OrderReturn> returns; |
- /** Details of the requested shipping for the line item. */ |
+ |
+ /// Details of the requested shipping for the line item. |
OrderLineItemShippingDetails shippingDetails; |
- /** |
- * Total tax amount for the line item. For example, if two items are |
- * purchased, and each have a cost tax of $2, the total tax amount will be $4. |
- */ |
+ |
+ /// Total tax amount for the line item. For example, if two items are |
+ /// purchased, and each have a cost tax of $2, the total tax amount will be |
+ /// $4. |
Price tax; |
OrderLineItem(); |
OrderLineItem.fromJson(core.Map _json) { |
if (_json.containsKey("cancellations")) { |
- cancellations = _json["cancellations"].map((value) => new OrderCancellation.fromJson(value)).toList(); |
+ cancellations = _json["cancellations"] |
+ .map((value) => new OrderCancellation.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("id")) { |
id = _json["id"]; |
@@ -1357,10 +1437,13 @@ class OrderLineItem { |
returnInfo = new OrderLineItemReturnInfo.fromJson(_json["returnInfo"]); |
} |
if (_json.containsKey("returns")) { |
- returns = _json["returns"].map((value) => new OrderReturn.fromJson(value)).toList(); |
+ returns = _json["returns"] |
+ .map((value) => new OrderReturn.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("shippingDetails")) { |
- shippingDetails = new OrderLineItemShippingDetails.fromJson(_json["shippingDetails"]); |
+ shippingDetails = |
+ new OrderLineItemShippingDetails.fromJson(_json["shippingDetails"]); |
} |
if (_json.containsKey("tax")) { |
tax = new Price.fromJson(_json["tax"]); |
@@ -1368,9 +1451,11 @@ class OrderLineItem { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (cancellations != null) { |
- _json["cancellations"] = cancellations.map((value) => (value).toJson()).toList(); |
+ _json["cancellations"] = |
+ cancellations.map((value) => (value).toJson()).toList(); |
} |
if (id != null) { |
_json["id"] = id; |
@@ -1416,39 +1501,51 @@ class OrderLineItem { |
} |
class OrderLineItemProduct { |
- /** Brand of the item. */ |
+ /// Brand of the item. |
core.String brand; |
- /** The item's channel (online or local). */ |
+ |
+ /// The item's channel (online or local). |
core.String channel; |
- /** Condition or state of the item. */ |
+ |
+ /// Condition or state of the item. |
core.String condition; |
- /** The two-letter ISO 639-1 language code for the item. */ |
+ |
+ /// The two-letter ISO 639-1 language code for the item. |
core.String contentLanguage; |
- /** Global Trade Item Number (GTIN) of the item. */ |
+ |
+ /// Global Trade Item Number (GTIN) of the item. |
core.String gtin; |
- /** The REST id of the product. */ |
+ |
+ /// The REST id of the product. |
core.String id; |
- /** URL of an image of the item. */ |
+ |
+ /// URL of an image of the item. |
core.String imageLink; |
- /** Shared identifier for all variants of the same product. */ |
+ |
+ /// Shared identifier for all variants of the same product. |
core.String itemGroupId; |
- /** Manufacturer Part Number (MPN) of the item. */ |
+ |
+ /// Manufacturer Part Number (MPN) of the item. |
core.String mpn; |
- /** An identifier of the item. */ |
+ |
+ /// An identifier of the item. |
core.String offerId; |
- /** Price of the item. */ |
+ |
+ /// Price of the item. |
Price price; |
- /** URL to the cached image shown to the user when order was placed. */ |
+ |
+ /// URL to the cached image shown to the user when order was placed. |
core.String shownImage; |
- /** The CLDR territory code of the target country of the product. */ |
+ |
+ /// The CLDR territory code of the target country of the product. |
core.String targetCountry; |
- /** The title of the product. */ |
+ |
+ /// The title of the product. |
core.String title; |
- /** |
- * Variant attributes for the item. These are dimensions of the product, such |
- * as color, gender, material, pattern, and size. You can find a comprehensive |
- * list of variant attributes here. |
- */ |
+ |
+ /// Variant attributes for the item. These are dimensions of the product, |
+ /// such as color, gender, material, pattern, and size. You can find a |
+ /// comprehensive list of variant attributes here. |
core.List<OrderLineItemProductVariantAttribute> variantAttributes; |
OrderLineItemProduct(); |
@@ -1497,12 +1594,16 @@ class OrderLineItemProduct { |
title = _json["title"]; |
} |
if (_json.containsKey("variantAttributes")) { |
- variantAttributes = _json["variantAttributes"].map((value) => new OrderLineItemProductVariantAttribute.fromJson(value)).toList(); |
+ variantAttributes = _json["variantAttributes"] |
+ .map((value) => |
+ new OrderLineItemProductVariantAttribute.fromJson(value)) |
+ .toList(); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (brand != null) { |
_json["brand"] = brand; |
} |
@@ -1546,16 +1647,18 @@ class OrderLineItemProduct { |
_json["title"] = title; |
} |
if (variantAttributes != null) { |
- _json["variantAttributes"] = variantAttributes.map((value) => (value).toJson()).toList(); |
+ _json["variantAttributes"] = |
+ variantAttributes.map((value) => (value).toJson()).toList(); |
} |
return _json; |
} |
} |
class OrderLineItemProductVariantAttribute { |
- /** The dimension of the variant. */ |
+ /// The dimension of the variant. |
core.String dimension; |
- /** The value for the dimension. */ |
+ |
+ /// The value for the dimension. |
core.String value; |
OrderLineItemProductVariantAttribute(); |
@@ -1570,7 +1673,8 @@ class OrderLineItemProductVariantAttribute { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (dimension != null) { |
_json["dimension"] = dimension; |
} |
@@ -1582,11 +1686,13 @@ class OrderLineItemProductVariantAttribute { |
} |
class OrderLineItemReturnInfo { |
- /** How many days later the item can be returned. */ |
+ /// How many days later the item can be returned. |
core.int daysToReturn; |
- /** Whether the item is returnable. */ |
+ |
+ /// Whether the item is returnable. |
core.bool isReturnable; |
- /** URL of the item return policy. */ |
+ |
+ /// URL of the item return policy. |
core.String policyUrl; |
OrderLineItemReturnInfo(); |
@@ -1604,7 +1710,8 @@ class OrderLineItemReturnInfo { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (daysToReturn != null) { |
_json["daysToReturn"] = daysToReturn; |
} |
@@ -1619,11 +1726,13 @@ class OrderLineItemReturnInfo { |
} |
class OrderLineItemShippingDetails { |
- /** The delivery by date, in ISO 8601 format. */ |
+ /// The delivery by date, in ISO 8601 format. |
core.String deliverByDate; |
- /** Details of the shipping method. */ |
+ |
+ /// Details of the shipping method. |
OrderLineItemShippingDetailsMethod method; |
- /** The ship by date, in ISO 8601 format. */ |
+ |
+ /// The ship by date, in ISO 8601 format. |
core.String shipByDate; |
OrderLineItemShippingDetails(); |
@@ -1641,7 +1750,8 @@ class OrderLineItemShippingDetails { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (deliverByDate != null) { |
_json["deliverByDate"] = deliverByDate; |
} |
@@ -1656,13 +1766,16 @@ class OrderLineItemShippingDetails { |
} |
class OrderLineItemShippingDetailsMethod { |
- /** The carrier for the shipping. Optional. */ |
+ /// The carrier for the shipping. Optional. |
core.String carrier; |
- /** Maximum transit time. */ |
+ |
+ /// Maximum transit time. |
core.int maxDaysInTransit; |
- /** The name of the shipping method. */ |
+ |
+ /// The name of the shipping method. |
core.String methodName; |
- /** Minimum transit time. */ |
+ |
+ /// Minimum transit time. |
core.int minDaysInTransit; |
OrderLineItemShippingDetailsMethod(); |
@@ -1683,7 +1796,8 @@ class OrderLineItemShippingDetailsMethod { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (carrier != null) { |
_json["carrier"] = carrier; |
} |
@@ -1701,17 +1815,22 @@ class OrderLineItemShippingDetailsMethod { |
} |
class OrderPaymentMethod { |
- /** The billing address. */ |
+ /// The billing address. |
OrderAddress billingAddress; |
- /** The card expiration month (January = 1, February = 2 etc.). */ |
+ |
+ /// The card expiration month (January = 1, February = 2 etc.). |
core.int expirationMonth; |
- /** The card expiration year (4-digit, e.g. 2015). */ |
+ |
+ /// The card expiration year (4-digit, e.g. 2015). |
core.int expirationYear; |
- /** The last four digits of the card number. */ |
+ |
+ /// The last four digits of the card number. |
core.String lastFourDigits; |
- /** The billing phone number. */ |
+ |
+ /// The billing phone number. |
core.String phoneNumber; |
- /** The type of instrument (VISA, Mastercard, etc). */ |
+ |
+ /// The type of instrument (VISA, Mastercard, etc). |
core.String type; |
OrderPaymentMethod(); |
@@ -1738,7 +1857,8 @@ class OrderPaymentMethod { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (billingAddress != null) { |
_json["billingAddress"] = (billingAddress).toJson(); |
} |
@@ -1763,39 +1883,41 @@ class OrderPaymentMethod { |
class OrderPromotion { |
core.List<OrderPromotionBenefit> benefits; |
- /** |
- * The date and time frame when the promotion is active and ready for |
- * validation review. Note that the promotion live time may be delayed for a |
- * few hours due to the validation review. |
- * Start date and end date are separated by a forward slash (/). The start |
- * date is specified by the format (YYYY-MM-DD), followed by the letter ?T?, |
- * the time of the day when the sale starts (in Greenwich Mean Time, GMT), |
- * followed by an expression of the time zone for the sale. The end date is in |
- * the same format. |
- */ |
+ |
+ /// The date and time frame when the promotion is active and ready for |
+ /// validation review. Note that the promotion live time may be delayed for a |
+ /// few hours due to the validation review. |
+ /// Start date and end date are separated by a forward slash (/). The start |
+ /// date is specified by the format (YYYY-MM-DD), followed by the letter ?T?, |
+ /// the time of the day when the sale starts (in Greenwich Mean Time, GMT), |
+ /// followed by an expression of the time zone for the sale. The end date is |
+ /// in the same format. |
core.String effectiveDates; |
- /** |
- * Optional. The text code that corresponds to the promotion when applied on |
- * the retailer?s website. |
- */ |
+ |
+ /// Optional. The text code that corresponds to the promotion when applied on |
+ /// the retailer?s website. |
core.String genericRedemptionCode; |
- /** The unique ID of the promotion. */ |
+ |
+ /// The unique ID of the promotion. |
core.String id; |
- /** The full title of the promotion. */ |
+ |
+ /// The full title of the promotion. |
core.String longTitle; |
- /** |
- * Whether the promotion is applicable to all products or only specific |
- * products. |
- */ |
+ |
+ /// Whether the promotion is applicable to all products or only specific |
+ /// products. |
core.String productApplicability; |
- /** Indicates that the promotion is valid online. */ |
+ |
+ /// Indicates that the promotion is valid online. |
core.String redemptionChannel; |
OrderPromotion(); |
OrderPromotion.fromJson(core.Map _json) { |
if (_json.containsKey("benefits")) { |
- benefits = _json["benefits"].map((value) => new OrderPromotionBenefit.fromJson(value)).toList(); |
+ benefits = _json["benefits"] |
+ .map((value) => new OrderPromotionBenefit.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("effectiveDates")) { |
effectiveDates = _json["effectiveDates"]; |
@@ -1818,7 +1940,8 @@ class OrderPromotion { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (benefits != null) { |
_json["benefits"] = benefits.map((value) => (value).toJson()).toList(); |
} |
@@ -1845,24 +1968,22 @@ class OrderPromotion { |
} |
class OrderPromotionBenefit { |
- /** The discount in the order price when the promotion is applied. */ |
+ /// The discount in the order price when the promotion is applied. |
Price discount; |
- /** |
- * The OfferId(s) that were purchased in this order and map to this specific |
- * benefit of the promotion. |
- */ |
+ |
+ /// The OfferId(s) that were purchased in this order and map to this specific |
+ /// benefit of the promotion. |
core.List<core.String> offerIds; |
- /** |
- * Further describes the benefit of the promotion. Note that we will expand on |
- * this enumeration as we support new promotion sub-types. |
- */ |
+ |
+ /// Further describes the benefit of the promotion. Note that we will expand |
+ /// on this enumeration as we support new promotion sub-types. |
core.String subType; |
- /** The impact on tax when the promotion is applied. */ |
+ |
+ /// The impact on tax when the promotion is applied. |
Price taxImpact; |
- /** |
- * Describes whether the promotion applies to products (e.g. 20% off) or to |
- * shipping (e.g. Free Shipping). |
- */ |
+ |
+ /// Describes whether the promotion applies to products (e.g. 20% off) or to |
+ /// shipping (e.g. Free Shipping). |
core.String type; |
OrderPromotionBenefit(); |
@@ -1886,7 +2007,8 @@ class OrderPromotionBenefit { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (discount != null) { |
_json["discount"] = (discount).toJson(); |
} |
@@ -1907,15 +2029,19 @@ class OrderPromotionBenefit { |
} |
class OrderRefund { |
- /** The actor that created the refund. */ |
+ /// The actor that created the refund. |
core.String actor; |
- /** The amount that is refunded. */ |
+ |
+ /// The amount that is refunded. |
Price amount; |
- /** Date on which the item has been created, in ISO 8601 format. */ |
+ |
+ /// Date on which the item has been created, in ISO 8601 format. |
core.String creationDate; |
- /** The reason for the refund. */ |
+ |
+ /// The reason for the refund. |
core.String reason; |
- /** The explanation of the reason. */ |
+ |
+ /// The explanation of the reason. |
core.String reasonText; |
OrderRefund(); |
@@ -1939,7 +2065,8 @@ class OrderRefund { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (actor != null) { |
_json["actor"] = actor; |
} |
@@ -1960,15 +2087,19 @@ class OrderRefund { |
} |
class OrderReturn { |
- /** The actor that created the refund. */ |
+ /// The actor that created the refund. |
core.String actor; |
- /** Date on which the item has been created, in ISO 8601 format. */ |
+ |
+ /// Date on which the item has been created, in ISO 8601 format. |
core.String creationDate; |
- /** Quantity that is returned. */ |
+ |
+ /// Quantity that is returned. |
core.int quantity; |
- /** The reason for the return. */ |
+ |
+ /// The reason for the return. |
core.String reason; |
- /** The explanation of the reason. */ |
+ |
+ /// The explanation of the reason. |
core.String reasonText; |
OrderReturn(); |
@@ -1992,7 +2123,8 @@ class OrderReturn { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (actor != null) { |
_json["actor"] = actor; |
} |
@@ -2013,22 +2145,26 @@ class OrderReturn { |
} |
class OrderShipment { |
- /** The carrier handling the shipment. */ |
+ /// The carrier handling the shipment. |
core.String carrier; |
- /** Date on which the shipment has been created, in ISO 8601 format. */ |
+ |
+ /// Date on which the shipment has been created, in ISO 8601 format. |
core.String creationDate; |
- /** |
- * Date on which the shipment has been delivered, in ISO 8601 format. Present |
- * only if status is delievered |
- */ |
+ |
+ /// Date on which the shipment has been delivered, in ISO 8601 format. |
+ /// Present only if status is delievered |
core.String deliveryDate; |
- /** The id of the shipment. */ |
+ |
+ /// The id of the shipment. |
core.String id; |
- /** The line items that are shipped. */ |
+ |
+ /// The line items that are shipped. |
core.List<OrderShipmentLineItemShipment> lineItems; |
- /** The status of the shipment. */ |
+ |
+ /// The status of the shipment. |
core.String status; |
- /** The tracking id for the shipment. */ |
+ |
+ /// The tracking id for the shipment. |
core.String trackingId; |
OrderShipment(); |
@@ -2047,7 +2183,9 @@ class OrderShipment { |
id = _json["id"]; |
} |
if (_json.containsKey("lineItems")) { |
- lineItems = _json["lineItems"].map((value) => new OrderShipmentLineItemShipment.fromJson(value)).toList(); |
+ lineItems = _json["lineItems"] |
+ .map((value) => new OrderShipmentLineItemShipment.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("status")) { |
status = _json["status"]; |
@@ -2058,7 +2196,8 @@ class OrderShipment { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (carrier != null) { |
_json["carrier"] = carrier; |
} |
@@ -2085,9 +2224,10 @@ class OrderShipment { |
} |
class OrderShipmentLineItemShipment { |
- /** The id of the line item that is shipped. */ |
+ /// The id of the line item that is shipped. |
core.String lineItemId; |
- /** The quantity that is shipped. */ |
+ |
+ /// The quantity that is shipped. |
core.int quantity; |
OrderShipmentLineItemShipment(); |
@@ -2102,7 +2242,8 @@ class OrderShipmentLineItemShipment { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (lineItemId != null) { |
_json["lineItemId"] = lineItemId; |
} |
@@ -2114,9 +2255,7 @@ class OrderShipmentLineItemShipment { |
} |
class OrdersAcknowledgeRequest { |
- /** |
- * The ID of the operation. Unique across all operations for a given order. |
- */ |
+ /// The ID of the operation. Unique across all operations for a given order. |
core.String operationId; |
OrdersAcknowledgeRequest(); |
@@ -2128,7 +2267,8 @@ class OrdersAcknowledgeRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (operationId != null) { |
_json["operationId"] = operationId; |
} |
@@ -2137,12 +2277,11 @@ class OrdersAcknowledgeRequest { |
} |
class OrdersAcknowledgeResponse { |
- /** The status of the execution. */ |
+ /// The status of the execution. |
core.String executionStatus; |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#ordersAcknowledgeResponse". |
- */ |
+ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#ordersAcknowledgeResponse". |
core.String kind; |
OrdersAcknowledgeResponse(); |
@@ -2157,7 +2296,8 @@ class OrdersAcknowledgeResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (executionStatus != null) { |
_json["executionStatus"] = executionStatus; |
} |
@@ -2169,10 +2309,8 @@ class OrdersAcknowledgeResponse { |
} |
class OrdersAdvanceTestOrderResponse { |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#ordersAdvanceTestOrderResponse". |
- */ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#ordersAdvanceTestOrderResponse". |
core.String kind; |
OrdersAdvanceTestOrderResponse(); |
@@ -2184,7 +2322,8 @@ class OrdersAdvanceTestOrderResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2193,23 +2332,24 @@ class OrdersAdvanceTestOrderResponse { |
} |
class OrdersCancelLineItemRequest { |
- /** |
- * Amount to refund for the cancelation. Optional. If not set, Google will |
- * calculate the default based on the price and tax of the items involved. The |
- * amount must not be larger than the net amount left on the order. |
- */ |
+ /// Amount to refund for the cancelation. Optional. If not set, Google will |
+ /// calculate the default based on the price and tax of the items involved. |
+ /// The amount must not be larger than the net amount left on the order. |
Price amount; |
- /** The ID of the line item to cancel. */ |
+ |
+ /// The ID of the line item to cancel. |
core.String lineItemId; |
- /** |
- * The ID of the operation. Unique across all operations for a given order. |
- */ |
+ |
+ /// The ID of the operation. Unique across all operations for a given order. |
core.String operationId; |
- /** The quantity to cancel. */ |
+ |
+ /// The quantity to cancel. |
core.int quantity; |
- /** The reason for the cancellation. */ |
+ |
+ /// The reason for the cancellation. |
core.String reason; |
- /** The explanation of the reason. */ |
+ |
+ /// The explanation of the reason. |
core.String reasonText; |
OrdersCancelLineItemRequest(); |
@@ -2236,7 +2376,8 @@ class OrdersCancelLineItemRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (amount != null) { |
_json["amount"] = (amount).toJson(); |
} |
@@ -2260,12 +2401,11 @@ class OrdersCancelLineItemRequest { |
} |
class OrdersCancelLineItemResponse { |
- /** The status of the execution. */ |
+ /// The status of the execution. |
core.String executionStatus; |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#ordersCancelLineItemResponse". |
- */ |
+ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#ordersCancelLineItemResponse". |
core.String kind; |
OrdersCancelLineItemResponse(); |
@@ -2280,7 +2420,8 @@ class OrdersCancelLineItemResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (executionStatus != null) { |
_json["executionStatus"] = executionStatus; |
} |
@@ -2292,13 +2433,13 @@ class OrdersCancelLineItemResponse { |
} |
class OrdersCancelRequest { |
- /** |
- * The ID of the operation. Unique across all operations for a given order. |
- */ |
+ /// The ID of the operation. Unique across all operations for a given order. |
core.String operationId; |
- /** The reason for the cancellation. */ |
+ |
+ /// The reason for the cancellation. |
core.String reason; |
- /** The explanation of the reason. */ |
+ |
+ /// The explanation of the reason. |
core.String reasonText; |
OrdersCancelRequest(); |
@@ -2316,7 +2457,8 @@ class OrdersCancelRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (operationId != null) { |
_json["operationId"] = operationId; |
} |
@@ -2331,12 +2473,11 @@ class OrdersCancelRequest { |
} |
class OrdersCancelResponse { |
- /** The status of the execution. */ |
+ /// The status of the execution. |
core.String executionStatus; |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#ordersCancelResponse". |
- */ |
+ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#ordersCancelResponse". |
core.String kind; |
OrdersCancelResponse(); |
@@ -2351,7 +2492,8 @@ class OrdersCancelResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (executionStatus != null) { |
_json["executionStatus"] = executionStatus; |
} |
@@ -2363,13 +2505,12 @@ class OrdersCancelResponse { |
} |
class OrdersCreateTestOrderRequest { |
- /** |
- * The test order template to use. Specify as an alternative to testOrder as a |
- * shortcut for retrieving a template and then creating an order using that |
- * template. |
- */ |
+ /// The test order template to use. Specify as an alternative to testOrder as |
+ /// a shortcut for retrieving a template and then creating an order using |
+ /// that template. |
core.String templateName; |
- /** The test order to create. */ |
+ |
+ /// The test order to create. |
TestOrder testOrder; |
OrdersCreateTestOrderRequest(); |
@@ -2384,7 +2525,8 @@ class OrdersCreateTestOrderRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (templateName != null) { |
_json["templateName"] = templateName; |
} |
@@ -2396,12 +2538,11 @@ class OrdersCreateTestOrderRequest { |
} |
class OrdersCreateTestOrderResponse { |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#ordersCreateTestOrderResponse". |
- */ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#ordersCreateTestOrderResponse". |
core.String kind; |
- /** The ID of the newly created test order. */ |
+ |
+ /// The ID of the newly created test order. |
core.String orderId; |
OrdersCreateTestOrderResponse(); |
@@ -2416,7 +2557,8 @@ class OrdersCreateTestOrderResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2428,19 +2570,22 @@ class OrdersCreateTestOrderResponse { |
} |
class OrdersCustomBatchRequest { |
- /** The request entries to be processed in the batch. */ |
+ /// The request entries to be processed in the batch. |
core.List<OrdersCustomBatchRequestEntry> entries; |
OrdersCustomBatchRequest(); |
OrdersCustomBatchRequest.fromJson(core.Map _json) { |
if (_json.containsKey("entries")) { |
- entries = _json["entries"].map((value) => new OrdersCustomBatchRequestEntry.fromJson(value)).toList(); |
+ entries = _json["entries"] |
+ .map((value) => new OrdersCustomBatchRequestEntry.fromJson(value)) |
+ .toList(); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (entries != null) { |
_json["entries"] = entries.map((value) => (value).toJson()).toList(); |
} |
@@ -2449,37 +2594,43 @@ class OrdersCustomBatchRequest { |
} |
class OrdersCustomBatchRequestEntry { |
- /** An entry ID, unique within the batch request. */ |
+ /// An entry ID, unique within the batch request. |
core.int batchId; |
- /** Required for cancel method. */ |
+ |
+ /// Required for cancel method. |
OrdersCustomBatchRequestEntryCancel cancel; |
- /** Required for cancelLineItem method. */ |
+ |
+ /// Required for cancelLineItem method. |
OrdersCustomBatchRequestEntryCancelLineItem cancelLineItem; |
- /** The ID of the managing account. */ |
+ |
+ /// The ID of the managing account. |
core.String merchantId; |
- /** |
- * The merchant order id. Required for updateMerchantOrderId and |
- * getByMerchantOrderId methods. |
- */ |
+ |
+ /// The merchant order id. Required for updateMerchantOrderId and |
+ /// getByMerchantOrderId methods. |
core.String merchantOrderId; |
- /** The method to apply. */ |
+ |
+ /// The method to apply. |
core.String method; |
- /** |
- * The ID of the operation. Unique across all operations for a given order. |
- * Required for all methods beside get and getByMerchantOrderId. |
- */ |
+ |
+ /// The ID of the operation. Unique across all operations for a given order. |
+ /// Required for all methods beside get and getByMerchantOrderId. |
core.String operationId; |
- /** |
- * The ID of the order. Required for all methods beside getByMerchantOrderId. |
- */ |
+ |
+ /// The ID of the order. Required for all methods beside |
+ /// getByMerchantOrderId. |
core.String orderId; |
- /** Required for refund method. */ |
+ |
+ /// Required for refund method. |
OrdersCustomBatchRequestEntryRefund refund; |
- /** Required for returnLineItem method. */ |
+ |
+ /// Required for returnLineItem method. |
OrdersCustomBatchRequestEntryReturnLineItem returnLineItem; |
- /** Required for shipLineItems method. */ |
+ |
+ /// Required for shipLineItems method. |
OrdersCustomBatchRequestEntryShipLineItems shipLineItems; |
- /** Required for updateShipment method. */ |
+ |
+ /// Required for updateShipment method. |
OrdersCustomBatchRequestEntryUpdateShipment updateShipment; |
OrdersCustomBatchRequestEntry(); |
@@ -2489,10 +2640,12 @@ class OrdersCustomBatchRequestEntry { |
batchId = _json["batchId"]; |
} |
if (_json.containsKey("cancel")) { |
- cancel = new OrdersCustomBatchRequestEntryCancel.fromJson(_json["cancel"]); |
+ cancel = |
+ new OrdersCustomBatchRequestEntryCancel.fromJson(_json["cancel"]); |
} |
if (_json.containsKey("cancelLineItem")) { |
- cancelLineItem = new OrdersCustomBatchRequestEntryCancelLineItem.fromJson(_json["cancelLineItem"]); |
+ cancelLineItem = new OrdersCustomBatchRequestEntryCancelLineItem.fromJson( |
+ _json["cancelLineItem"]); |
} |
if (_json.containsKey("merchantId")) { |
merchantId = _json["merchantId"]; |
@@ -2510,21 +2663,26 @@ class OrdersCustomBatchRequestEntry { |
orderId = _json["orderId"]; |
} |
if (_json.containsKey("refund")) { |
- refund = new OrdersCustomBatchRequestEntryRefund.fromJson(_json["refund"]); |
+ refund = |
+ new OrdersCustomBatchRequestEntryRefund.fromJson(_json["refund"]); |
} |
if (_json.containsKey("returnLineItem")) { |
- returnLineItem = new OrdersCustomBatchRequestEntryReturnLineItem.fromJson(_json["returnLineItem"]); |
+ returnLineItem = new OrdersCustomBatchRequestEntryReturnLineItem.fromJson( |
+ _json["returnLineItem"]); |
} |
if (_json.containsKey("shipLineItems")) { |
- shipLineItems = new OrdersCustomBatchRequestEntryShipLineItems.fromJson(_json["shipLineItems"]); |
+ shipLineItems = new OrdersCustomBatchRequestEntryShipLineItems.fromJson( |
+ _json["shipLineItems"]); |
} |
if (_json.containsKey("updateShipment")) { |
- updateShipment = new OrdersCustomBatchRequestEntryUpdateShipment.fromJson(_json["updateShipment"]); |
+ updateShipment = new OrdersCustomBatchRequestEntryUpdateShipment.fromJson( |
+ _json["updateShipment"]); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (batchId != null) { |
_json["batchId"] = batchId; |
} |
@@ -2566,9 +2724,10 @@ class OrdersCustomBatchRequestEntry { |
} |
class OrdersCustomBatchRequestEntryCancel { |
- /** The reason for the cancellation. */ |
+ /// The reason for the cancellation. |
core.String reason; |
- /** The explanation of the reason. */ |
+ |
+ /// The explanation of the reason. |
core.String reasonText; |
OrdersCustomBatchRequestEntryCancel(); |
@@ -2583,7 +2742,8 @@ class OrdersCustomBatchRequestEntryCancel { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (reason != null) { |
_json["reason"] = reason; |
} |
@@ -2595,19 +2755,21 @@ class OrdersCustomBatchRequestEntryCancel { |
} |
class OrdersCustomBatchRequestEntryCancelLineItem { |
- /** |
- * Amount to refund for the cancelation. Optional. If not set, Google will |
- * calculate the default based on the price and tax of the items involved. The |
- * amount must not be larger than the net amount left on the order. |
- */ |
+ /// Amount to refund for the cancelation. Optional. If not set, Google will |
+ /// calculate the default based on the price and tax of the items involved. |
+ /// The amount must not be larger than the net amount left on the order. |
Price amount; |
- /** The ID of the line item to cancel. */ |
+ |
+ /// The ID of the line item to cancel. |
core.String lineItemId; |
- /** The quantity to cancel. */ |
+ |
+ /// The quantity to cancel. |
core.int quantity; |
- /** The reason for the cancellation. */ |
+ |
+ /// The reason for the cancellation. |
core.String reason; |
- /** The explanation of the reason. */ |
+ |
+ /// The explanation of the reason. |
core.String reasonText; |
OrdersCustomBatchRequestEntryCancelLineItem(); |
@@ -2631,7 +2793,8 @@ class OrdersCustomBatchRequestEntryCancelLineItem { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (amount != null) { |
_json["amount"] = (amount).toJson(); |
} |
@@ -2652,11 +2815,13 @@ class OrdersCustomBatchRequestEntryCancelLineItem { |
} |
class OrdersCustomBatchRequestEntryRefund { |
- /** The amount that is refunded. */ |
+ /// The amount that is refunded. |
Price amount; |
- /** The reason for the refund. */ |
+ |
+ /// The reason for the refund. |
core.String reason; |
- /** The explanation of the reason. */ |
+ |
+ /// The explanation of the reason. |
core.String reasonText; |
OrdersCustomBatchRequestEntryRefund(); |
@@ -2674,7 +2839,8 @@ class OrdersCustomBatchRequestEntryRefund { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (amount != null) { |
_json["amount"] = (amount).toJson(); |
} |
@@ -2689,13 +2855,16 @@ class OrdersCustomBatchRequestEntryRefund { |
} |
class OrdersCustomBatchRequestEntryReturnLineItem { |
- /** The ID of the line item to return. */ |
+ /// The ID of the line item to return. |
core.String lineItemId; |
- /** The quantity to return. */ |
+ |
+ /// The quantity to return. |
core.int quantity; |
- /** The reason for the return. */ |
+ |
+ /// The reason for the return. |
core.String reason; |
- /** The explanation of the reason. */ |
+ |
+ /// The explanation of the reason. |
core.String reasonText; |
OrdersCustomBatchRequestEntryReturnLineItem(); |
@@ -2716,7 +2885,8 @@ class OrdersCustomBatchRequestEntryReturnLineItem { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (lineItemId != null) { |
_json["lineItemId"] = lineItemId; |
} |
@@ -2734,13 +2904,16 @@ class OrdersCustomBatchRequestEntryReturnLineItem { |
} |
class OrdersCustomBatchRequestEntryShipLineItems { |
- /** The carrier handling the shipment. */ |
+ /// The carrier handling the shipment. |
core.String carrier; |
- /** Line items to ship. */ |
+ |
+ /// Line items to ship. |
core.List<OrderShipmentLineItemShipment> lineItems; |
- /** The ID of the shipment. */ |
+ |
+ /// The ID of the shipment. |
core.String shipmentId; |
- /** The tracking id for the shipment. */ |
+ |
+ /// The tracking id for the shipment. |
core.String trackingId; |
OrdersCustomBatchRequestEntryShipLineItems(); |
@@ -2750,7 +2923,9 @@ class OrdersCustomBatchRequestEntryShipLineItems { |
carrier = _json["carrier"]; |
} |
if (_json.containsKey("lineItems")) { |
- lineItems = _json["lineItems"].map((value) => new OrderShipmentLineItemShipment.fromJson(value)).toList(); |
+ lineItems = _json["lineItems"] |
+ .map((value) => new OrderShipmentLineItemShipment.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("shipmentId")) { |
shipmentId = _json["shipmentId"]; |
@@ -2761,7 +2936,8 @@ class OrdersCustomBatchRequestEntryShipLineItems { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (carrier != null) { |
_json["carrier"] = carrier; |
} |
@@ -2779,13 +2955,16 @@ class OrdersCustomBatchRequestEntryShipLineItems { |
} |
class OrdersCustomBatchRequestEntryUpdateShipment { |
- /** The carrier handling the shipment. Not updated if missing. */ |
+ /// The carrier handling the shipment. Not updated if missing. |
core.String carrier; |
- /** The ID of the shipment. */ |
+ |
+ /// The ID of the shipment. |
core.String shipmentId; |
- /** New status for the shipment. Not updated if missing. */ |
+ |
+ /// New status for the shipment. Not updated if missing. |
core.String status; |
- /** The tracking id for the shipment. Not updated if missing. */ |
+ |
+ /// The tracking id for the shipment. Not updated if missing. |
core.String trackingId; |
OrdersCustomBatchRequestEntryUpdateShipment(); |
@@ -2806,7 +2985,8 @@ class OrdersCustomBatchRequestEntryUpdateShipment { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (carrier != null) { |
_json["carrier"] = carrier; |
} |
@@ -2824,19 +3004,20 @@ class OrdersCustomBatchRequestEntryUpdateShipment { |
} |
class OrdersCustomBatchResponse { |
- /** The result of the execution of the batch requests. */ |
+ /// The result of the execution of the batch requests. |
core.List<OrdersCustomBatchResponseEntry> entries; |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#ordersCustomBatchResponse". |
- */ |
+ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#ordersCustomBatchResponse". |
core.String kind; |
OrdersCustomBatchResponse(); |
OrdersCustomBatchResponse.fromJson(core.Map _json) { |
if (_json.containsKey("entries")) { |
- entries = _json["entries"].map((value) => new OrdersCustomBatchResponseEntry.fromJson(value)).toList(); |
+ entries = _json["entries"] |
+ .map((value) => new OrdersCustomBatchResponseEntry.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -2844,7 +3025,8 @@ class OrdersCustomBatchResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (entries != null) { |
_json["entries"] = entries.map((value) => (value).toJson()).toList(); |
} |
@@ -2856,24 +3038,22 @@ class OrdersCustomBatchResponse { |
} |
class OrdersCustomBatchResponseEntry { |
- /** The ID of the request entry this entry responds to. */ |
+ /// The ID of the request entry this entry responds to. |
core.int batchId; |
- /** A list of errors defined if and only if the request failed. */ |
+ |
+ /// A list of errors defined if and only if the request failed. |
Errors errors; |
- /** |
- * The status of the execution. Only defined if the method is not get or |
- * getByMerchantOrderId and if the request was successful. |
- */ |
+ |
+ /// The status of the execution. Only defined if the method is not get or |
+ /// getByMerchantOrderId and if the request was successful. |
core.String executionStatus; |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#ordersCustomBatchResponseEntry". |
- */ |
+ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#ordersCustomBatchResponseEntry". |
core.String kind; |
- /** |
- * The retrieved order. Only defined if the method is get and if the request |
- * was successful. |
- */ |
+ |
+ /// The retrieved order. Only defined if the method is get and if the request |
+ /// was successful. |
Order order; |
OrdersCustomBatchResponseEntry(); |
@@ -2897,7 +3077,8 @@ class OrdersCustomBatchResponseEntry { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (batchId != null) { |
_json["batchId"] = batchId; |
} |
@@ -2918,12 +3099,11 @@ class OrdersCustomBatchResponseEntry { |
} |
class OrdersGetByMerchantOrderIdResponse { |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#ordersGetByMerchantOrderIdResponse". |
- */ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#ordersGetByMerchantOrderIdResponse". |
core.String kind; |
- /** The requested order. */ |
+ |
+ /// The requested order. |
Order order; |
OrdersGetByMerchantOrderIdResponse(); |
@@ -2938,7 +3118,8 @@ class OrdersGetByMerchantOrderIdResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2950,12 +3131,11 @@ class OrdersGetByMerchantOrderIdResponse { |
} |
class OrdersGetTestOrderTemplateResponse { |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#ordersGetTestOrderTemplateResponse". |
- */ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#ordersGetTestOrderTemplateResponse". |
core.String kind; |
- /** The requested test order template. */ |
+ |
+ /// The requested test order template. |
TestOrder template; |
OrdersGetTestOrderTemplateResponse(); |
@@ -2970,7 +3150,8 @@ class OrdersGetTestOrderTemplateResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2982,12 +3163,11 @@ class OrdersGetTestOrderTemplateResponse { |
} |
class OrdersListResponse { |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#ordersListResponse". |
- */ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#ordersListResponse". |
core.String kind; |
- /** The token for the retrieval of the next page of orders. */ |
+ |
+ /// The token for the retrieval of the next page of orders. |
core.String nextPageToken; |
core.List<Order> resources; |
@@ -3001,12 +3181,14 @@ class OrdersListResponse { |
nextPageToken = _json["nextPageToken"]; |
} |
if (_json.containsKey("resources")) { |
- resources = _json["resources"].map((value) => new Order.fromJson(value)).toList(); |
+ resources = |
+ _json["resources"].map((value) => new Order.fromJson(value)).toList(); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -3021,15 +3203,16 @@ class OrdersListResponse { |
} |
class OrdersRefundRequest { |
- /** The amount that is refunded. */ |
+ /// The amount that is refunded. |
Price amount; |
- /** |
- * The ID of the operation. Unique across all operations for a given order. |
- */ |
+ |
+ /// The ID of the operation. Unique across all operations for a given order. |
core.String operationId; |
- /** The reason for the refund. */ |
+ |
+ /// The reason for the refund. |
core.String reason; |
- /** The explanation of the reason. */ |
+ |
+ /// The explanation of the reason. |
core.String reasonText; |
OrdersRefundRequest(); |
@@ -3050,7 +3233,8 @@ class OrdersRefundRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (amount != null) { |
_json["amount"] = (amount).toJson(); |
} |
@@ -3068,12 +3252,11 @@ class OrdersRefundRequest { |
} |
class OrdersRefundResponse { |
- /** The status of the execution. */ |
+ /// The status of the execution. |
core.String executionStatus; |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#ordersRefundResponse". |
- */ |
+ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#ordersRefundResponse". |
core.String kind; |
OrdersRefundResponse(); |
@@ -3088,7 +3271,8 @@ class OrdersRefundResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (executionStatus != null) { |
_json["executionStatus"] = executionStatus; |
} |
@@ -3100,17 +3284,19 @@ class OrdersRefundResponse { |
} |
class OrdersReturnLineItemRequest { |
- /** The ID of the line item to return. */ |
+ /// The ID of the line item to return. |
core.String lineItemId; |
- /** |
- * The ID of the operation. Unique across all operations for a given order. |
- */ |
+ |
+ /// The ID of the operation. Unique across all operations for a given order. |
core.String operationId; |
- /** The quantity to return. */ |
+ |
+ /// The quantity to return. |
core.int quantity; |
- /** The reason for the return. */ |
+ |
+ /// The reason for the return. |
core.String reason; |
- /** The explanation of the reason. */ |
+ |
+ /// The explanation of the reason. |
core.String reasonText; |
OrdersReturnLineItemRequest(); |
@@ -3134,7 +3320,8 @@ class OrdersReturnLineItemRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (lineItemId != null) { |
_json["lineItemId"] = lineItemId; |
} |
@@ -3155,12 +3342,11 @@ class OrdersReturnLineItemRequest { |
} |
class OrdersReturnLineItemResponse { |
- /** The status of the execution. */ |
+ /// The status of the execution. |
core.String executionStatus; |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#ordersReturnLineItemResponse". |
- */ |
+ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#ordersReturnLineItemResponse". |
core.String kind; |
OrdersReturnLineItemResponse(); |
@@ -3175,7 +3361,8 @@ class OrdersReturnLineItemResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (executionStatus != null) { |
_json["executionStatus"] = executionStatus; |
} |
@@ -3187,17 +3374,19 @@ class OrdersReturnLineItemResponse { |
} |
class OrdersShipLineItemsRequest { |
- /** The carrier handling the shipment. */ |
+ /// The carrier handling the shipment. |
core.String carrier; |
- /** Line items to ship. */ |
+ |
+ /// Line items to ship. |
core.List<OrderShipmentLineItemShipment> lineItems; |
- /** |
- * The ID of the operation. Unique across all operations for a given order. |
- */ |
+ |
+ /// The ID of the operation. Unique across all operations for a given order. |
core.String operationId; |
- /** The ID of the shipment. */ |
+ |
+ /// The ID of the shipment. |
core.String shipmentId; |
- /** The tracking id for the shipment. */ |
+ |
+ /// The tracking id for the shipment. |
core.String trackingId; |
OrdersShipLineItemsRequest(); |
@@ -3207,7 +3396,9 @@ class OrdersShipLineItemsRequest { |
carrier = _json["carrier"]; |
} |
if (_json.containsKey("lineItems")) { |
- lineItems = _json["lineItems"].map((value) => new OrderShipmentLineItemShipment.fromJson(value)).toList(); |
+ lineItems = _json["lineItems"] |
+ .map((value) => new OrderShipmentLineItemShipment.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("operationId")) { |
operationId = _json["operationId"]; |
@@ -3221,7 +3412,8 @@ class OrdersShipLineItemsRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (carrier != null) { |
_json["carrier"] = carrier; |
} |
@@ -3242,12 +3434,11 @@ class OrdersShipLineItemsRequest { |
} |
class OrdersShipLineItemsResponse { |
- /** The status of the execution. */ |
+ /// The status of the execution. |
core.String executionStatus; |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#ordersShipLineItemsResponse". |
- */ |
+ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#ordersShipLineItemsResponse". |
core.String kind; |
OrdersShipLineItemsResponse(); |
@@ -3262,7 +3453,8 @@ class OrdersShipLineItemsResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (executionStatus != null) { |
_json["executionStatus"] = executionStatus; |
} |
@@ -3274,14 +3466,11 @@ class OrdersShipLineItemsResponse { |
} |
class OrdersUpdateMerchantOrderIdRequest { |
- /** |
- * The merchant order id to be assigned to the order. Must be unique per |
- * merchant. |
- */ |
+ /// The merchant order id to be assigned to the order. Must be unique per |
+ /// merchant. |
core.String merchantOrderId; |
- /** |
- * The ID of the operation. Unique across all operations for a given order. |
- */ |
+ |
+ /// The ID of the operation. Unique across all operations for a given order. |
core.String operationId; |
OrdersUpdateMerchantOrderIdRequest(); |
@@ -3296,7 +3485,8 @@ class OrdersUpdateMerchantOrderIdRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (merchantOrderId != null) { |
_json["merchantOrderId"] = merchantOrderId; |
} |
@@ -3308,12 +3498,11 @@ class OrdersUpdateMerchantOrderIdRequest { |
} |
class OrdersUpdateMerchantOrderIdResponse { |
- /** The status of the execution. */ |
+ /// The status of the execution. |
core.String executionStatus; |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#ordersUpdateMerchantOrderIdResponse". |
- */ |
+ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#ordersUpdateMerchantOrderIdResponse". |
core.String kind; |
OrdersUpdateMerchantOrderIdResponse(); |
@@ -3328,7 +3517,8 @@ class OrdersUpdateMerchantOrderIdResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (executionStatus != null) { |
_json["executionStatus"] = executionStatus; |
} |
@@ -3340,17 +3530,19 @@ class OrdersUpdateMerchantOrderIdResponse { |
} |
class OrdersUpdateShipmentRequest { |
- /** The carrier handling the shipment. Not updated if missing. */ |
+ /// The carrier handling the shipment. Not updated if missing. |
core.String carrier; |
- /** |
- * The ID of the operation. Unique across all operations for a given order. |
- */ |
+ |
+ /// The ID of the operation. Unique across all operations for a given order. |
core.String operationId; |
- /** The ID of the shipment. */ |
+ |
+ /// The ID of the shipment. |
core.String shipmentId; |
- /** New status for the shipment. Not updated if missing. */ |
+ |
+ /// New status for the shipment. Not updated if missing. |
core.String status; |
- /** The tracking id for the shipment. Not updated if missing. */ |
+ |
+ /// The tracking id for the shipment. Not updated if missing. |
core.String trackingId; |
OrdersUpdateShipmentRequest(); |
@@ -3374,7 +3566,8 @@ class OrdersUpdateShipmentRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (carrier != null) { |
_json["carrier"] = carrier; |
} |
@@ -3395,12 +3588,11 @@ class OrdersUpdateShipmentRequest { |
} |
class OrdersUpdateShipmentResponse { |
- /** The status of the execution. */ |
+ /// The status of the execution. |
core.String executionStatus; |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#ordersUpdateShipmentResponse". |
- */ |
+ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#ordersUpdateShipmentResponse". |
core.String kind; |
OrdersUpdateShipmentResponse(); |
@@ -3415,7 +3607,8 @@ class OrdersUpdateShipmentResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (executionStatus != null) { |
_json["executionStatus"] = executionStatus; |
} |
@@ -3427,9 +3620,10 @@ class OrdersUpdateShipmentResponse { |
} |
class Price { |
- /** The currency of the price. */ |
+ /// The currency of the price. |
core.String currency; |
- /** The price represented as a number. */ |
+ |
+ /// The price represented as a number. |
core.String value; |
Price(); |
@@ -3444,7 +3638,8 @@ class Price { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (currency != null) { |
_json["currency"] = currency; |
} |
@@ -3456,31 +3651,33 @@ class Price { |
} |
class TestOrder { |
- /** The details of the customer who placed the order. */ |
+ /// The details of the customer who placed the order. |
TestOrderCustomer customer; |
- /** |
- * Identifies what kind of resource this is. Value: the fixed string |
- * "content#testOrder". |
- */ |
+ |
+ /// Identifies what kind of resource this is. Value: the fixed string |
+ /// "content#testOrder". |
core.String kind; |
- /** Line items that are ordered. At least one line item must be provided. */ |
+ |
+ /// Line items that are ordered. At least one line item must be provided. |
core.List<TestOrderLineItem> lineItems; |
- /** The details of the payment method. */ |
+ |
+ /// The details of the payment method. |
TestOrderPaymentMethod paymentMethod; |
- /** |
- * Identifier of one of the predefined delivery addresses for the delivery. |
- */ |
+ |
+ /// Identifier of one of the predefined delivery addresses for the delivery. |
core.String predefinedDeliveryAddress; |
- /** |
- * The details of the merchant provided promotions applied to the order. More |
- * details about the program are here. |
- */ |
+ |
+ /// The details of the merchant provided promotions applied to the order. |
+ /// More details about the program are here. |
core.List<OrderPromotion> promotions; |
- /** The total cost of shipping for all items. */ |
+ |
+ /// The total cost of shipping for all items. |
Price shippingCost; |
- /** The tax for the total shipping cost. */ |
+ |
+ /// The tax for the total shipping cost. |
Price shippingCostTax; |
- /** The requested shipping option. */ |
+ |
+ /// The requested shipping option. |
core.String shippingOption; |
TestOrder(); |
@@ -3493,16 +3690,21 @@ class TestOrder { |
kind = _json["kind"]; |
} |
if (_json.containsKey("lineItems")) { |
- lineItems = _json["lineItems"].map((value) => new TestOrderLineItem.fromJson(value)).toList(); |
+ lineItems = _json["lineItems"] |
+ .map((value) => new TestOrderLineItem.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("paymentMethod")) { |
- paymentMethod = new TestOrderPaymentMethod.fromJson(_json["paymentMethod"]); |
+ paymentMethod = |
+ new TestOrderPaymentMethod.fromJson(_json["paymentMethod"]); |
} |
if (_json.containsKey("predefinedDeliveryAddress")) { |
predefinedDeliveryAddress = _json["predefinedDeliveryAddress"]; |
} |
if (_json.containsKey("promotions")) { |
- promotions = _json["promotions"].map((value) => new OrderPromotion.fromJson(value)).toList(); |
+ promotions = _json["promotions"] |
+ .map((value) => new OrderPromotion.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("shippingCost")) { |
shippingCost = new Price.fromJson(_json["shippingCost"]); |
@@ -3516,7 +3718,8 @@ class TestOrder { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (customer != null) { |
_json["customer"] = (customer).toJson(); |
} |
@@ -3533,7 +3736,8 @@ class TestOrder { |
_json["predefinedDeliveryAddress"] = predefinedDeliveryAddress; |
} |
if (promotions != null) { |
- _json["promotions"] = promotions.map((value) => (value).toJson()).toList(); |
+ _json["promotions"] = |
+ promotions.map((value) => (value).toJson()).toList(); |
} |
if (shippingCost != null) { |
_json["shippingCost"] = (shippingCost).toJson(); |
@@ -3549,17 +3753,17 @@ class TestOrder { |
} |
class TestOrderCustomer { |
- /** Email address of the customer. */ |
+ /// Email address of the customer. |
core.String email; |
- /** |
- * If set, this indicates the user explicitly chose to opt in or out of |
- * providing marketing rights to the merchant. If unset, this indicates the |
- * user has already made this choice in a previous purchase, and was thus not |
- * shown the marketing right opt in/out checkbox during the checkout flow. |
- * Optional. |
- */ |
+ |
+ /// If set, this indicates the user explicitly chose to opt in or out of |
+ /// providing marketing rights to the merchant. If unset, this indicates the |
+ /// user has already made this choice in a previous purchase, and was thus |
+ /// not shown the marketing right opt in/out checkbox during the checkout |
+ /// flow. Optional. |
core.bool explicitMarketingPreference; |
- /** Full name of the customer. */ |
+ |
+ /// Full name of the customer. |
core.String fullName; |
TestOrderCustomer(); |
@@ -3577,7 +3781,8 @@ class TestOrderCustomer { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (email != null) { |
_json["email"] = email; |
} |
@@ -3592,15 +3797,19 @@ class TestOrderCustomer { |
} |
class TestOrderLineItem { |
- /** Product data from the time of the order placement. */ |
+ /// Product data from the time of the order placement. |
TestOrderLineItemProduct product; |
- /** Number of items ordered. */ |
+ |
+ /// Number of items ordered. |
core.int quantityOrdered; |
- /** Details of the return policy for the line item. */ |
+ |
+ /// Details of the return policy for the line item. |
OrderLineItemReturnInfo returnInfo; |
- /** Details of the requested shipping for the line item. */ |
+ |
+ /// Details of the requested shipping for the line item. |
OrderLineItemShippingDetails shippingDetails; |
- /** Unit tax for the line item. */ |
+ |
+ /// Unit tax for the line item. |
Price unitTax; |
TestOrderLineItem(); |
@@ -3616,7 +3825,8 @@ class TestOrderLineItem { |
returnInfo = new OrderLineItemReturnInfo.fromJson(_json["returnInfo"]); |
} |
if (_json.containsKey("shippingDetails")) { |
- shippingDetails = new OrderLineItemShippingDetails.fromJson(_json["shippingDetails"]); |
+ shippingDetails = |
+ new OrderLineItemShippingDetails.fromJson(_json["shippingDetails"]); |
} |
if (_json.containsKey("unitTax")) { |
unitTax = new Price.fromJson(_json["unitTax"]); |
@@ -3624,7 +3834,8 @@ class TestOrderLineItem { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (product != null) { |
_json["product"] = (product).toJson(); |
} |
@@ -3645,31 +3856,43 @@ class TestOrderLineItem { |
} |
class TestOrderLineItemProduct { |
- /** Brand of the item. */ |
+ /// Brand of the item. |
core.String brand; |
- /** The item's channel. */ |
+ |
+ /// The item's channel. |
core.String channel; |
- /** Condition or state of the item. */ |
+ |
+ /// Condition or state of the item. |
core.String condition; |
- /** The two-letter ISO 639-1 language code for the item. */ |
+ |
+ /// The two-letter ISO 639-1 language code for the item. |
core.String contentLanguage; |
- /** Global Trade Item Number (GTIN) of the item. Optional. */ |
+ |
+ /// Global Trade Item Number (GTIN) of the item. Optional. |
core.String gtin; |
- /** URL of an image of the item. */ |
+ |
+ /// URL of an image of the item. |
core.String imageLink; |
- /** Shared identifier for all variants of the same product. Optional. */ |
+ |
+ /// Shared identifier for all variants of the same product. Optional. |
core.String itemGroupId; |
- /** Manufacturer Part Number (MPN) of the item. Optional. */ |
+ |
+ /// Manufacturer Part Number (MPN) of the item. Optional. |
core.String mpn; |
- /** An identifier of the item. */ |
+ |
+ /// An identifier of the item. |
core.String offerId; |
- /** The price for the product. */ |
+ |
+ /// The price for the product. |
Price price; |
- /** The CLDR territory code of the target country of the product. */ |
+ |
+ /// The CLDR territory code of the target country of the product. |
core.String targetCountry; |
- /** The title of the product. */ |
+ |
+ /// The title of the product. |
core.String title; |
- /** Variant attributes for the item. Optional. */ |
+ |
+ /// Variant attributes for the item. Optional. |
core.List<OrderLineItemProductVariantAttribute> variantAttributes; |
TestOrderLineItemProduct(); |
@@ -3712,12 +3935,16 @@ class TestOrderLineItemProduct { |
title = _json["title"]; |
} |
if (_json.containsKey("variantAttributes")) { |
- variantAttributes = _json["variantAttributes"].map((value) => new OrderLineItemProductVariantAttribute.fromJson(value)).toList(); |
+ variantAttributes = _json["variantAttributes"] |
+ .map((value) => |
+ new OrderLineItemProductVariantAttribute.fromJson(value)) |
+ .toList(); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (brand != null) { |
_json["brand"] = brand; |
} |
@@ -3755,25 +3982,28 @@ class TestOrderLineItemProduct { |
_json["title"] = title; |
} |
if (variantAttributes != null) { |
- _json["variantAttributes"] = variantAttributes.map((value) => (value).toJson()).toList(); |
+ _json["variantAttributes"] = |
+ variantAttributes.map((value) => (value).toJson()).toList(); |
} |
return _json; |
} |
} |
class TestOrderPaymentMethod { |
- /** The card expiration month (January = 1, February = 2 etc.). */ |
+ /// The card expiration month (January = 1, February = 2 etc.). |
core.int expirationMonth; |
- /** The card expiration year (4-digit, e.g. 2015). */ |
+ |
+ /// The card expiration year (4-digit, e.g. 2015). |
core.int expirationYear; |
- /** The last four digits of the card number. */ |
+ |
+ /// The last four digits of the card number. |
core.String lastFourDigits; |
- /** The billing address. */ |
+ |
+ /// The billing address. |
core.String predefinedBillingAddress; |
- /** |
- * The type of instrument. Note that real orders might have different values |
- * than the four values accepted by createTestOrder. |
- */ |
+ |
+ /// The type of instrument. Note that real orders might have different values |
+ /// than the four values accepted by createTestOrder. |
core.String type; |
TestOrderPaymentMethod(); |
@@ -3797,7 +4027,8 @@ class TestOrderPaymentMethod { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (expirationMonth != null) { |
_json["expirationMonth"] = expirationMonth; |
} |