| Index: generated/googleapis/lib/content/v2.dart
|
| diff --git a/generated/googleapis/lib/content/v2.dart b/generated/googleapis/lib/content/v2.dart
|
| index bf23b8c2a2e5b5f1791293fe124a5da43e3e5f79..ab425d56bf421487c81422b7169d9c7ea28809ab 100644
|
| --- a/generated/googleapis/lib/content/v2.dart
|
| +++ b/generated/googleapis/lib/content/v2.dart
|
| @@ -9,57 +9,57 @@ 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/v2';
|
|
|
| -/**
|
| - * 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;
|
|
|
| AccountsResourceApi get accounts => new AccountsResourceApi(_requester);
|
| - AccountstatusesResourceApi get accountstatuses => new AccountstatusesResourceApi(_requester);
|
| + AccountstatusesResourceApi get accountstatuses =>
|
| + new AccountstatusesResourceApi(_requester);
|
| AccounttaxResourceApi get accounttax => new AccounttaxResourceApi(_requester);
|
| DatafeedsResourceApi get datafeeds => new DatafeedsResourceApi(_requester);
|
| - DatafeedstatusesResourceApi get datafeedstatuses => new DatafeedstatusesResourceApi(_requester);
|
| + DatafeedstatusesResourceApi get datafeedstatuses =>
|
| + new DatafeedstatusesResourceApi(_requester);
|
| InventoryResourceApi get inventory => new InventoryResourceApi(_requester);
|
| OrdersResourceApi get orders => new OrdersResourceApi(_requester);
|
| ProductsResourceApi get products => new ProductsResourceApi(_requester);
|
| - ProductstatusesResourceApi get productstatuses => new ProductstatusesResourceApi(_requester);
|
| - ShippingsettingsResourceApi get shippingsettings => new ShippingsettingsResourceApi(_requester);
|
| + ProductstatusesResourceApi get productstatuses =>
|
| + new ProductstatusesResourceApi(_requester);
|
| + ShippingsettingsResourceApi get shippingsettings =>
|
| + new ShippingsettingsResourceApi(_requester);
|
|
|
| - ContentApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "content/v2/"}) :
|
| - _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| + ContentApi(http.Client client,
|
| + {core.String rootUrl: "https://www.googleapis.com/",
|
| + core.String servicePath: "content/v2/"})
|
| + : _requester =
|
| + new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| }
|
|
|
| -
|
| class AccountsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - AccountsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Returns information about the authenticated user.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [AccountsAuthInfoResponse].
|
| - *
|
| - * 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.
|
| - */
|
| + AccountsResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Returns information about the authenticated user.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [AccountsAuthInfoResponse].
|
| + ///
|
| + /// 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<AccountsAuthInfoResponse> authinfo() {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -68,43 +68,43 @@ class AccountsResourceApi {
|
| var _downloadOptions = commons.DownloadOptions.Metadata;
|
| var _body = null;
|
|
|
| -
|
| _url = 'accounts/authinfo';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new AccountsAuthInfoResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Claims the website of a Merchant Center sub-account. This method can only
|
| - * be called for accounts to which the managing account has access: either the
|
| - * managing account itself for any Merchant Center account, or any sub-account
|
| - * when the managing account is a multi-client account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [accountId] - The ID of the account whose website is claimed.
|
| - *
|
| - * [overwrite] - Flag to remove any existing claim on the requested website by
|
| - * another account and replace it with a claim from this account.
|
| - *
|
| - * Completes with a [AccountsClaimWebsiteResponse].
|
| - *
|
| - * 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<AccountsClaimWebsiteResponse> claimwebsite(core.String merchantId, core.String accountId, {core.bool overwrite}) {
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new AccountsAuthInfoResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Claims the website of a Merchant Center sub-account. This method can only
|
| + /// be called for accounts to which the managing account has access: either
|
| + /// the managing account itself for any Merchant Center account, or any
|
| + /// sub-account when the managing account is a multi-client account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [accountId] - The ID of the account whose website is claimed.
|
| + ///
|
| + /// [overwrite] - Only available to selected merchants. When set to True,
|
| + /// this flag removes any existing claim on the requested website by another
|
| + /// account and replaces it with a claim from this account.
|
| + ///
|
| + /// Completes with a [AccountsClaimWebsiteResponse].
|
| + ///
|
| + /// 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<AccountsClaimWebsiteResponse> claimwebsite(
|
| + core.String merchantId, core.String accountId,
|
| + {core.bool overwrite}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -122,37 +122,40 @@ class AccountsResourceApi {
|
| _queryParams["overwrite"] = ["${overwrite}"];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/claimwebsite';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new AccountsClaimWebsiteResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Retrieves, inserts, updates, and deletes multiple Merchant Center
|
| - * (sub-)accounts in a single request.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [AccountsCustomBatchResponse].
|
| - *
|
| - * 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<AccountsCustomBatchResponse> custombatch(AccountsCustomBatchRequest request, {core.bool dryRun}) {
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/accounts/' +
|
| + commons.Escaper.ecapeVariable('$accountId') +
|
| + '/claimwebsite';
|
| +
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new AccountsClaimWebsiteResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Retrieves, inserts, updates, and deletes multiple Merchant Center
|
| + /// (sub-)accounts in a single request.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [AccountsCustomBatchResponse].
|
| + ///
|
| + /// 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<AccountsCustomBatchResponse> custombatch(
|
| + AccountsCustomBatchRequest request,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -169,35 +172,37 @@ class AccountsResourceApi {
|
|
|
| _url = 'accounts/batch';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new AccountsCustomBatchResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Deletes a Merchant Center sub-account. This method can only be called for
|
| - * multi-client accounts.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [accountId] - The ID of the account.
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * 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 delete(core.String merchantId, core.String accountId, {core.bool dryRun}) {
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new AccountsCustomBatchResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Deletes a Merchant Center sub-account. This method can only be called for
|
| + /// multi-client accounts.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [accountId] - The ID of the account.
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// [force] - Flag to delete sub-accounts with products. The default value of
|
| + /// false will become active on September 28, 2017.
|
| + ///
|
| + /// 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 delete(core.String merchantId, core.String accountId,
|
| + {core.bool dryRun, core.bool force}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -214,41 +219,43 @@ class AccountsResourceApi {
|
| if (dryRun != null) {
|
| _queryParams["dryRun"] = ["${dryRun}"];
|
| }
|
| + if (force != null) {
|
| + _queryParams["force"] = ["${force}"];
|
| + }
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons.Escaper.ecapeVariable('$accountId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/accounts/' +
|
| + commons.Escaper.ecapeVariable('$accountId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Retrieves a Merchant Center account. This method can only be called for
|
| - * accounts to which the managing account has access: either the managing
|
| - * account itself for any Merchant Center account, or any sub-account when the
|
| - * managing account is a multi-client account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [accountId] - The ID of the account.
|
| - *
|
| - * Completes with a [Account].
|
| - *
|
| - * 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.
|
| - */
|
| + /// Retrieves a Merchant Center account. This method can only be called for
|
| + /// accounts to which the managing account has access: either the managing
|
| + /// account itself for any Merchant Center account, or any sub-account when
|
| + /// the managing account is a multi-client account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [accountId] - The ID of the account.
|
| + ///
|
| + /// Completes with a [Account].
|
| + ///
|
| + /// 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<Account> get(core.String merchantId, core.String accountId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -264,39 +271,39 @@ class AccountsResourceApi {
|
| throw new core.ArgumentError("Parameter accountId is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons.Escaper.ecapeVariable('$accountId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/accounts/' +
|
| + commons.Escaper.ecapeVariable('$accountId');
|
|
|
| - 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 Account.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Creates a Merchant Center sub-account. This method can only be called for
|
| - * multi-client accounts.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [Account].
|
| - *
|
| - * 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<Account> insert(Account request, core.String merchantId, {core.bool dryRun}) {
|
| + /// Creates a Merchant Center sub-account. This method can only be called for
|
| + /// multi-client accounts.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [Account].
|
| + ///
|
| + /// 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<Account> insert(Account request, core.String merchantId,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -316,38 +323,36 @@ class AccountsResourceApi {
|
|
|
| _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts';
|
|
|
| - 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 Account.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists the sub-accounts in your Merchant Center account. This method can
|
| - * only be called for multi-client accounts.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [maxResults] - The maximum number of accounts to return in the response,
|
| - * used for paging.
|
| - *
|
| - * [pageToken] - The token returned by the previous request.
|
| - *
|
| - * Completes with a [AccountsListResponse].
|
| - *
|
| - * 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<AccountsListResponse> list(core.String merchantId, {core.int maxResults, core.String pageToken}) {
|
| + /// Lists the sub-accounts in your Merchant Center account. This method can
|
| + /// only be called for multi-client accounts.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [maxResults] - The maximum number of accounts to return in the response,
|
| + /// used for paging.
|
| + ///
|
| + /// [pageToken] - The token returned by the previous request.
|
| + ///
|
| + /// Completes with a [AccountsListResponse].
|
| + ///
|
| + /// 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<AccountsListResponse> list(core.String merchantId,
|
| + {core.int maxResults, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -367,42 +372,41 @@ class AccountsResourceApi {
|
|
|
| _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts';
|
|
|
| - 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 AccountsListResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates a Merchant Center account. This method can only be called for
|
| - * accounts to which the managing account has access: either the managing
|
| - * account itself for any Merchant Center account, or any sub-account when the
|
| - * managing account is a multi-client account. This method supports patch
|
| - * semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [accountId] - The ID of the account.
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [Account].
|
| - *
|
| - * 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<Account> patch(Account request, core.String merchantId, core.String accountId, {core.bool dryRun}) {
|
| + /// Updates a Merchant Center account. This method can only be called for
|
| + /// accounts to which the managing account has access: either the managing
|
| + /// account itself for any Merchant Center account, or any sub-account when
|
| + /// the managing account is a multi-client account. This method supports
|
| + /// patch semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [accountId] - The ID of the account.
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [Account].
|
| + ///
|
| + /// 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<Account> patch(
|
| + Account request, core.String merchantId, core.String accountId,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -423,43 +427,44 @@ class AccountsResourceApi {
|
| _queryParams["dryRun"] = ["${dryRun}"];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons.Escaper.ecapeVariable('$accountId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/accounts/' +
|
| + commons.Escaper.ecapeVariable('$accountId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Account.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates a Merchant Center account. This method can only be called for
|
| - * accounts to which the managing account has access: either the managing
|
| - * account itself for any Merchant Center account, or any sub-account when the
|
| - * managing account is a multi-client account.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [accountId] - The ID of the account.
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [Account].
|
| - *
|
| - * 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<Account> update(Account request, core.String merchantId, core.String accountId, {core.bool dryRun}) {
|
| + /// Updates a Merchant Center account. This method can only be called for
|
| + /// accounts to which the managing account has access: either the managing
|
| + /// account itself for any Merchant Center account, or any sub-account when
|
| + /// the managing account is a multi-client account.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [accountId] - The ID of the account.
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [Account].
|
| + ///
|
| + /// 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<Account> update(
|
| + Account request, core.String merchantId, core.String accountId,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -480,41 +485,38 @@ class AccountsResourceApi {
|
| _queryParams["dryRun"] = ["${dryRun}"];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons.Escaper.ecapeVariable('$accountId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/accounts/' +
|
| + commons.Escaper.ecapeVariable('$accountId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Account.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class AccountstatusesResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - AccountstatusesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [AccountstatusesCustomBatchResponse].
|
| - *
|
| - * 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<AccountstatusesCustomBatchResponse> custombatch(AccountstatusesCustomBatchRequest request) {
|
| + AccountstatusesResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [AccountstatusesCustomBatchResponse].
|
| + ///
|
| + /// 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<AccountstatusesCustomBatchResponse> custombatch(
|
| + AccountstatusesCustomBatchRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -528,37 +530,36 @@ class AccountstatusesResourceApi {
|
|
|
| _url = 'accountstatuses/batch';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new AccountstatusesCustomBatchResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Retrieves the status of a Merchant Center account. This method can only be
|
| - * called for accounts to which the managing account has access: either the
|
| - * managing account itself for any Merchant Center account, or any sub-account
|
| - * when the managing account is a multi-client account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [accountId] - The ID of the account.
|
| - *
|
| - * Completes with a [AccountStatus].
|
| - *
|
| - * 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<AccountStatus> get(core.String merchantId, core.String accountId) {
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new AccountstatusesCustomBatchResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Retrieves the status of a Merchant Center account. This method can only
|
| + /// be called for accounts to which the managing account has access: either
|
| + /// the managing account itself for any Merchant Center account, or any
|
| + /// sub-account when the managing account is a multi-client account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [accountId] - The ID of the account.
|
| + ///
|
| + /// Completes with a [AccountStatus].
|
| + ///
|
| + /// 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<AccountStatus> get(
|
| + core.String merchantId, core.String accountId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -573,40 +574,40 @@ class AccountstatusesResourceApi {
|
| throw new core.ArgumentError("Parameter accountId is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/accountstatuses/' + commons.Escaper.ecapeVariable('$accountId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/accountstatuses/' +
|
| + commons.Escaper.ecapeVariable('$accountId');
|
|
|
| - 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 AccountStatus.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists the statuses of the sub-accounts in your Merchant Center account.
|
| - * This method can only be called for multi-client accounts.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [maxResults] - The maximum number of account statuses to return in the
|
| - * response, used for paging.
|
| - *
|
| - * [pageToken] - The token returned by the previous request.
|
| - *
|
| - * Completes with a [AccountstatusesListResponse].
|
| - *
|
| - * 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<AccountstatusesListResponse> list(core.String merchantId, {core.int maxResults, core.String pageToken}) {
|
| + /// Lists the statuses of the sub-accounts in your Merchant Center account.
|
| + /// This method can only be called for multi-client accounts.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [maxResults] - The maximum number of account statuses to return in the
|
| + /// response, used for paging.
|
| + ///
|
| + /// [pageToken] - The token returned by the previous request.
|
| + ///
|
| + /// Completes with a [AccountstatusesListResponse].
|
| + ///
|
| + /// 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<AccountstatusesListResponse> list(core.String merchantId,
|
| + {core.int maxResults, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -626,44 +627,41 @@ class AccountstatusesResourceApi {
|
|
|
| _url = commons.Escaper.ecapeVariable('$merchantId') + '/accountstatuses';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new AccountstatusesListResponse.fromJson(data));
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new AccountstatusesListResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class AccounttaxResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - AccounttaxResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Retrieves and updates tax settings of multiple accounts in a single
|
| - * request.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [AccounttaxCustomBatchResponse].
|
| - *
|
| - * 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<AccounttaxCustomBatchResponse> custombatch(AccounttaxCustomBatchRequest request, {core.bool dryRun}) {
|
| + AccounttaxResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Retrieves and updates tax settings of multiple accounts in a single
|
| + /// request.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [AccounttaxCustomBatchResponse].
|
| + ///
|
| + /// 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<AccounttaxCustomBatchResponse> custombatch(
|
| + AccounttaxCustomBatchRequest request,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -680,37 +678,35 @@ class AccounttaxResourceApi {
|
|
|
| _url = 'accounttax/batch';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new AccounttaxCustomBatchResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Retrieves the tax settings of the account. This method can only be called
|
| - * for accounts to which the managing account has access: either the managing
|
| - * account itself for any Merchant Center account, or any sub-account when the
|
| - * managing account is a multi-client account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [accountId] - The ID of the account for which to get/update account tax
|
| - * settings.
|
| - *
|
| - * Completes with a [AccountTax].
|
| - *
|
| - * 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 AccounttaxCustomBatchResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Retrieves the tax settings of the account. This method can only be called
|
| + /// for accounts to which the managing account has access: either the
|
| + /// managing account itself for any Merchant Center account, or any
|
| + /// sub-account when the managing account is a multi-client account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [accountId] - The ID of the account for which to get/update account tax
|
| + /// settings.
|
| + ///
|
| + /// Completes with a [AccountTax].
|
| + ///
|
| + /// 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<AccountTax> get(core.String merchantId, core.String accountId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -726,40 +722,40 @@ class AccounttaxResourceApi {
|
| throw new core.ArgumentError("Parameter accountId is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounttax/' + commons.Escaper.ecapeVariable('$accountId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/accounttax/' +
|
| + commons.Escaper.ecapeVariable('$accountId');
|
|
|
| - 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 AccountTax.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists the tax settings of the sub-accounts in your Merchant Center account.
|
| - * This method can only be called for multi-client accounts.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [maxResults] - The maximum number of tax settings to return in the
|
| - * response, used for paging.
|
| - *
|
| - * [pageToken] - The token returned by the previous request.
|
| - *
|
| - * Completes with a [AccounttaxListResponse].
|
| - *
|
| - * 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<AccounttaxListResponse> list(core.String merchantId, {core.int maxResults, core.String pageToken}) {
|
| + /// Lists the tax settings of the sub-accounts in your Merchant Center
|
| + /// account. This method can only be called for multi-client accounts.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [maxResults] - The maximum number of tax settings to return in the
|
| + /// response, used for paging.
|
| + ///
|
| + /// [pageToken] - The token returned by the previous request.
|
| + ///
|
| + /// Completes with a [AccounttaxListResponse].
|
| + ///
|
| + /// 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<AccounttaxListResponse> list(core.String merchantId,
|
| + {core.int maxResults, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -779,43 +775,42 @@ class AccounttaxResourceApi {
|
|
|
| _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounttax';
|
|
|
| - 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 AccounttaxListResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates the tax settings of the account. This method can only be called for
|
| - * accounts to which the managing account has access: either the managing
|
| - * account itself for any Merchant Center account, or any sub-account when the
|
| - * managing account is a multi-client account. This method supports patch
|
| - * semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [accountId] - The ID of the account for which to get/update account tax
|
| - * settings.
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [AccountTax].
|
| - *
|
| - * 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<AccountTax> patch(AccountTax request, core.String merchantId, core.String accountId, {core.bool dryRun}) {
|
| + /// Updates the tax settings of the account. This method can only be called
|
| + /// for accounts to which the managing account has access: either the
|
| + /// managing account itself for any Merchant Center account, or any
|
| + /// sub-account when the managing account is a multi-client account. This
|
| + /// method supports patch semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [accountId] - The ID of the account for which to get/update account tax
|
| + /// settings.
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [AccountTax].
|
| + ///
|
| + /// 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<AccountTax> patch(
|
| + AccountTax request, core.String merchantId, core.String accountId,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -836,44 +831,45 @@ class AccounttaxResourceApi {
|
| _queryParams["dryRun"] = ["${dryRun}"];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounttax/' + commons.Escaper.ecapeVariable('$accountId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/accounttax/' +
|
| + commons.Escaper.ecapeVariable('$accountId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new AccountTax.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates the tax settings of the account. This method can only be called for
|
| - * accounts to which the managing account has access: either the managing
|
| - * account itself for any Merchant Center account, or any sub-account when the
|
| - * managing account is a multi-client account.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [accountId] - The ID of the account for which to get/update account tax
|
| - * settings.
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [AccountTax].
|
| - *
|
| - * 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<AccountTax> update(AccountTax request, core.String merchantId, core.String accountId, {core.bool dryRun}) {
|
| + /// Updates the tax settings of the account. This method can only be called
|
| + /// for accounts to which the managing account has access: either the
|
| + /// managing account itself for any Merchant Center account, or any
|
| + /// sub-account when the managing account is a multi-client account.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [accountId] - The ID of the account for which to get/update account tax
|
| + /// settings.
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [AccountTax].
|
| + ///
|
| + /// 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<AccountTax> update(
|
| + AccountTax request, core.String merchantId, core.String accountId,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -894,43 +890,41 @@ class AccounttaxResourceApi {
|
| _queryParams["dryRun"] = ["${dryRun}"];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounttax/' + commons.Escaper.ecapeVariable('$accountId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/accounttax/' +
|
| + commons.Escaper.ecapeVariable('$accountId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new AccountTax.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class DatafeedsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - DatafeedsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [DatafeedsCustomBatchResponse].
|
| - *
|
| - * 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<DatafeedsCustomBatchResponse> custombatch(DatafeedsCustomBatchRequest request, {core.bool dryRun}) {
|
| + DatafeedsResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [DatafeedsCustomBatchResponse].
|
| + ///
|
| + /// 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<DatafeedsCustomBatchResponse> custombatch(
|
| + DatafeedsCustomBatchRequest request,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -947,35 +941,34 @@ class DatafeedsResourceApi {
|
|
|
| _url = 'datafeeds/batch';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new DatafeedsCustomBatchResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Deletes a datafeed configuration from your Merchant Center account. This
|
| - * method can only be called for non-multi-client accounts.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - null
|
| - *
|
| - * [datafeedId] - null
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * 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 delete(core.String merchantId, core.String datafeedId, {core.bool dryRun}) {
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new DatafeedsCustomBatchResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Deletes a datafeed configuration from your Merchant Center account. This
|
| + /// method can only be called for non-multi-client accounts.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - null
|
| + ///
|
| + /// [datafeedId] - null
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// 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 delete(core.String merchantId, core.String datafeedId,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -995,36 +988,35 @@ class DatafeedsResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + commons.Escaper.ecapeVariable('$datafeedId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/datafeeds/' +
|
| + commons.Escaper.ecapeVariable('$datafeedId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Retrieves a datafeed configuration from your Merchant Center account. This
|
| - * method can only be called for non-multi-client accounts.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - null
|
| - *
|
| - * [datafeedId] - null
|
| - *
|
| - * Completes with a [Datafeed].
|
| - *
|
| - * 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.
|
| - */
|
| + /// Retrieves a datafeed configuration from your Merchant Center account.
|
| + /// This method can only be called for non-multi-client accounts.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - null
|
| + ///
|
| + /// [datafeedId] - null
|
| + ///
|
| + /// Completes with a [Datafeed].
|
| + ///
|
| + /// 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<Datafeed> get(core.String merchantId, core.String datafeedId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -1040,39 +1032,39 @@ class DatafeedsResourceApi {
|
| throw new core.ArgumentError("Parameter datafeedId is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + commons.Escaper.ecapeVariable('$datafeedId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/datafeeds/' +
|
| + commons.Escaper.ecapeVariable('$datafeedId');
|
|
|
| - 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 Datafeed.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Registers a datafeed configuration with your Merchant Center account. This
|
| - * method can only be called for non-multi-client accounts.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - null
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [Datafeed].
|
| - *
|
| - * 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<Datafeed> insert(Datafeed request, core.String merchantId, {core.bool dryRun}) {
|
| + /// Registers a datafeed configuration with your Merchant Center account.
|
| + /// This method can only be called for non-multi-client accounts.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - null
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [Datafeed].
|
| + ///
|
| + /// 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<Datafeed> insert(Datafeed request, core.String merchantId,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1092,38 +1084,36 @@ class DatafeedsResourceApi {
|
|
|
| _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds';
|
|
|
| - 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 Datafeed.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists the datafeeds 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.
|
| - *
|
| - * [maxResults] - The maximum number of products to return in the response,
|
| - * used for paging.
|
| - *
|
| - * [pageToken] - The token returned by the previous request.
|
| - *
|
| - * Completes with a [DatafeedsListResponse].
|
| - *
|
| - * 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<DatafeedsListResponse> list(core.String merchantId, {core.int maxResults, core.String pageToken}) {
|
| + /// Lists the datafeeds 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.
|
| + ///
|
| + /// [maxResults] - The maximum number of products to return in the response,
|
| + /// used for paging.
|
| + ///
|
| + /// [pageToken] - The token returned by the previous request.
|
| + ///
|
| + /// Completes with a [DatafeedsListResponse].
|
| + ///
|
| + /// 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<DatafeedsListResponse> list(core.String merchantId,
|
| + {core.int maxResults, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1143,40 +1133,39 @@ class DatafeedsResourceApi {
|
|
|
| _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds';
|
|
|
| - 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 DatafeedsListResponse.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates a datafeed configuration of your Merchant Center account. This
|
| - * method can only be called for non-multi-client accounts. This method
|
| - * supports patch semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - null
|
| - *
|
| - * [datafeedId] - null
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [Datafeed].
|
| - *
|
| - * 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<Datafeed> patch(Datafeed request, core.String merchantId, core.String datafeedId, {core.bool dryRun}) {
|
| + /// Updates a datafeed configuration of your Merchant Center account. This
|
| + /// method can only be called for non-multi-client accounts. This method
|
| + /// supports patch semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - null
|
| + ///
|
| + /// [datafeedId] - null
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [Datafeed].
|
| + ///
|
| + /// 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<Datafeed> patch(
|
| + Datafeed request, core.String merchantId, core.String datafeedId,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1197,41 +1186,42 @@ class DatafeedsResourceApi {
|
| _queryParams["dryRun"] = ["${dryRun}"];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + commons.Escaper.ecapeVariable('$datafeedId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/datafeeds/' +
|
| + commons.Escaper.ecapeVariable('$datafeedId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Datafeed.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates a datafeed configuration of your Merchant Center account. This
|
| - * method can only be called for non-multi-client accounts.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - null
|
| - *
|
| - * [datafeedId] - null
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [Datafeed].
|
| - *
|
| - * 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<Datafeed> update(Datafeed request, core.String merchantId, core.String datafeedId, {core.bool dryRun}) {
|
| + /// Updates a datafeed configuration of your Merchant Center account. This
|
| + /// method can only be called for non-multi-client accounts.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - null
|
| + ///
|
| + /// [datafeedId] - null
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [Datafeed].
|
| + ///
|
| + /// 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<Datafeed> update(
|
| + Datafeed request, core.String merchantId, core.String datafeedId,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1252,41 +1242,39 @@ class DatafeedsResourceApi {
|
| _queryParams["dryRun"] = ["${dryRun}"];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + commons.Escaper.ecapeVariable('$datafeedId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/datafeeds/' +
|
| + commons.Escaper.ecapeVariable('$datafeedId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Datafeed.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class DatafeedstatusesResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - DatafeedstatusesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [DatafeedstatusesCustomBatchResponse].
|
| - *
|
| - * 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<DatafeedstatusesCustomBatchResponse> custombatch(DatafeedstatusesCustomBatchRequest request) {
|
| + DatafeedstatusesResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [DatafeedstatusesCustomBatchResponse].
|
| + ///
|
| + /// 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<DatafeedstatusesCustomBatchResponse> custombatch(
|
| + DatafeedstatusesCustomBatchRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1300,35 +1288,34 @@ class DatafeedstatusesResourceApi {
|
|
|
| _url = 'datafeedstatuses/batch';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new DatafeedstatusesCustomBatchResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Retrieves the status of a datafeed from your Merchant Center account. This
|
| - * method can only be called for non-multi-client accounts.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - null
|
| - *
|
| - * [datafeedId] - null
|
| - *
|
| - * Completes with a [DatafeedStatus].
|
| - *
|
| - * 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<DatafeedStatus> get(core.String merchantId, core.String datafeedId) {
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new DatafeedstatusesCustomBatchResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Retrieves the status of a datafeed from your Merchant Center account.
|
| + /// This method can only be called for non-multi-client accounts.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - null
|
| + ///
|
| + /// [datafeedId] - null
|
| + ///
|
| + /// Completes with a [DatafeedStatus].
|
| + ///
|
| + /// 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<DatafeedStatus> get(
|
| + core.String merchantId, core.String datafeedId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1343,40 +1330,40 @@ class DatafeedstatusesResourceApi {
|
| throw new core.ArgumentError("Parameter datafeedId is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeedstatuses/' + commons.Escaper.ecapeVariable('$datafeedId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/datafeedstatuses/' +
|
| + commons.Escaper.ecapeVariable('$datafeedId');
|
|
|
| - 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 DatafeedStatus.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists the statuses of the datafeeds 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.
|
| - *
|
| - * [maxResults] - The maximum number of products to return in the response,
|
| - * used for paging.
|
| - *
|
| - * [pageToken] - The token returned by the previous request.
|
| - *
|
| - * Completes with a [DatafeedstatusesListResponse].
|
| - *
|
| - * 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<DatafeedstatusesListResponse> list(core.String merchantId, {core.int maxResults, core.String pageToken}) {
|
| + /// Lists the statuses of the datafeeds 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.
|
| + ///
|
| + /// [maxResults] - The maximum number of products to return in the response,
|
| + /// used for paging.
|
| + ///
|
| + /// [pageToken] - The token returned by the previous request.
|
| + ///
|
| + /// Completes with a [DatafeedstatusesListResponse].
|
| + ///
|
| + /// 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<DatafeedstatusesListResponse> list(core.String merchantId,
|
| + {core.int maxResults, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1396,45 +1383,42 @@ class DatafeedstatusesResourceApi {
|
|
|
| _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeedstatuses';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new DatafeedstatusesListResponse.fromJson(data));
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new DatafeedstatusesListResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class InventoryResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - InventoryResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Updates price and availability for multiple products or stores in a single
|
| - * request. This operation does not update the expiration date of the
|
| - * products. This method can only be called for non-multi-client accounts.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [InventoryCustomBatchResponse].
|
| - *
|
| - * 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<InventoryCustomBatchResponse> custombatch(InventoryCustomBatchRequest request, {core.bool dryRun}) {
|
| + InventoryResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Updates price and availability for multiple products or stores in a
|
| + /// single request. This operation does not update the expiration date of the
|
| + /// products. This method can only be called for non-multi-client accounts.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [InventoryCustomBatchResponse].
|
| + ///
|
| + /// 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<InventoryCustomBatchResponse> custombatch(
|
| + InventoryCustomBatchRequest request,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1451,45 +1435,45 @@ class InventoryResourceApi {
|
|
|
| _url = 'inventory/batch';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new InventoryCustomBatchResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Updates price and availability of a product in your Merchant Center
|
| - * account. This operation does not update the expiration date of the product.
|
| - * 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.
|
| - *
|
| - * [storeCode] - The code of the store for which to update price and
|
| - * availability. Use online to update price and availability of an online
|
| - * product.
|
| - *
|
| - * [productId] - The ID of the product for which to update price and
|
| - * availability.
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [InventorySetResponse].
|
| - *
|
| - * 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<InventorySetResponse> set(InventorySetRequest request, core.String merchantId, core.String storeCode, core.String productId, {core.bool dryRun}) {
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new InventoryCustomBatchResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Updates price and availability of a product in your Merchant Center
|
| + /// account. This operation does not update the expiration date of the
|
| + /// product. 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.
|
| + ///
|
| + /// [storeCode] - The code of the store for which to update price and
|
| + /// availability. Use online to update price and availability of an online
|
| + /// product.
|
| + ///
|
| + /// [productId] - The ID of the product for which to update price and
|
| + /// availability.
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [InventorySetResponse].
|
| + ///
|
| + /// 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<InventorySetResponse> set(InventorySetRequest request,
|
| + core.String merchantId, core.String storeCode, core.String productId,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1513,48 +1497,49 @@ class InventoryResourceApi {
|
| _queryParams["dryRun"] = ["${dryRun}"];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/inventory/' + commons.Escaper.ecapeVariable('$storeCode') + '/products/' + commons.Escaper.ecapeVariable('$productId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/inventory/' +
|
| + commons.Escaper.ecapeVariable('$storeCode') +
|
| + '/products/' +
|
| + commons.Escaper.ecapeVariable('$productId');
|
|
|
| - 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 InventorySetResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| 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;
|
| @@ -1572,38 +1557,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;
|
| @@ -1618,39 +1605,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;
|
| @@ -1668,39 +1657,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;
|
| @@ -1718,37 +1710,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;
|
| @@ -1765,33 +1759,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;
|
| @@ -1805,34 +1798,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();
|
| @@ -1848,37 +1839,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;
|
| @@ -1893,43 +1884,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;
|
| @@ -1944,71 +1936,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;
|
| @@ -2043,37 +2042,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;
|
| @@ -2091,39 +2088,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;
|
| @@ -2141,39 +2141,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;
|
| @@ -2191,39 +2195,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;
|
| @@ -2241,39 +2249,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;
|
| @@ -2291,46 +2303,46 @@ 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));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ProductsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ProductsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Retrieves, inserts, and deletes multiple products in a single request. This
|
| - * method can only be called for non-multi-client accounts.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [ProductsCustomBatchResponse].
|
| - *
|
| - * 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<ProductsCustomBatchResponse> custombatch(ProductsCustomBatchRequest request, {core.bool dryRun}) {
|
| + ProductsResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Retrieves, inserts, and deletes multiple products in a single request.
|
| + /// This method can only be called for non-multi-client accounts.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [ProductsCustomBatchResponse].
|
| + ///
|
| + /// 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<ProductsCustomBatchResponse> custombatch(
|
| + ProductsCustomBatchRequest request,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2347,35 +2359,34 @@ class ProductsResourceApi {
|
|
|
| _url = 'products/batch';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ProductsCustomBatchResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Deletes a product 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.
|
| - *
|
| - * [productId] - The ID of the product.
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * 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 delete(core.String merchantId, core.String productId, {core.bool dryRun}) {
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new ProductsCustomBatchResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Deletes a product 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.
|
| + ///
|
| + /// [productId] - The ID of the product.
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// 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 delete(core.String merchantId, core.String productId,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2395,36 +2406,35 @@ class ProductsResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/products/' + commons.Escaper.ecapeVariable('$productId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/products/' +
|
| + commons.Escaper.ecapeVariable('$productId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Retrieves a product 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.
|
| - *
|
| - * [productId] - The ID of the product.
|
| - *
|
| - * Completes with a [Product].
|
| - *
|
| - * 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.
|
| - */
|
| + /// Retrieves a product 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.
|
| + ///
|
| + /// [productId] - The ID of the product.
|
| + ///
|
| + /// Completes with a [Product].
|
| + ///
|
| + /// 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<Product> get(core.String merchantId, core.String productId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -2440,41 +2450,41 @@ class ProductsResourceApi {
|
| throw new core.ArgumentError("Parameter productId is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/products/' + commons.Escaper.ecapeVariable('$productId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/products/' +
|
| + commons.Escaper.ecapeVariable('$productId');
|
|
|
| - 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 Product.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Uploads a product to your Merchant Center account. If an item with the same
|
| - * channel, contentLanguage, offerId, and targetCountry already exists, this
|
| - * method updates that entry. 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.
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [Product].
|
| - *
|
| - * 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<Product> insert(Product request, core.String merchantId, {core.bool dryRun}) {
|
| + /// Uploads a product to your Merchant Center account. If an item with the
|
| + /// same channel, contentLanguage, offerId, and targetCountry already exists,
|
| + /// this method updates that entry. 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.
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [Product].
|
| + ///
|
| + /// 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<Product> insert(Product request, core.String merchantId,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2494,42 +2504,42 @@ class ProductsResourceApi {
|
|
|
| _url = commons.Escaper.ecapeVariable('$merchantId') + '/products';
|
|
|
| - 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 Product.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists the products 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.
|
| - *
|
| - * [includeInvalidInsertedItems] - Flag to include the invalid inserted items
|
| - * in the result of the list request. By default the invalid items are not
|
| - * shown (the default value is false).
|
| - *
|
| - * [maxResults] - The maximum number of products to return in the response,
|
| - * used for paging.
|
| - *
|
| - * [pageToken] - The token returned by the previous request.
|
| - *
|
| - * Completes with a [ProductsListResponse].
|
| - *
|
| - * 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<ProductsListResponse> list(core.String merchantId, {core.bool includeInvalidInsertedItems, core.int maxResults, core.String pageToken}) {
|
| + /// Lists the products 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.
|
| + ///
|
| + /// [includeInvalidInsertedItems] - Flag to include the invalid inserted
|
| + /// items in the result of the list request. By default the invalid items are
|
| + /// not shown (the default value is false).
|
| + ///
|
| + /// [maxResults] - The maximum number of products to return in the response,
|
| + /// used for paging.
|
| + ///
|
| + /// [pageToken] - The token returned by the previous request.
|
| + ///
|
| + /// Completes with a [ProductsListResponse].
|
| + ///
|
| + /// 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<ProductsListResponse> list(core.String merchantId,
|
| + {core.bool includeInvalidInsertedItems,
|
| + core.int maxResults,
|
| + core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2541,7 +2551,9 @@ class ProductsResourceApi {
|
| throw new core.ArgumentError("Parameter merchantId is required.");
|
| }
|
| if (includeInvalidInsertedItems != null) {
|
| - _queryParams["includeInvalidInsertedItems"] = ["${includeInvalidInsertedItems}"];
|
| + _queryParams["includeInvalidInsertedItems"] = [
|
| + "${includeInvalidInsertedItems}"
|
| + ];
|
| }
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| @@ -2552,45 +2564,41 @@ class ProductsResourceApi {
|
|
|
| _url = commons.Escaper.ecapeVariable('$merchantId') + '/products';
|
|
|
| - 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 ProductsListResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ProductstatusesResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ProductstatusesResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Gets the statuses of multiple products in a single request. This method can
|
| - * only be called for non-multi-client accounts.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [includeAttributes] - Flag to include full product data in the results of
|
| - * this request. The default value is false.
|
| - *
|
| - * Completes with a [ProductstatusesCustomBatchResponse].
|
| - *
|
| - * 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<ProductstatusesCustomBatchResponse> custombatch(ProductstatusesCustomBatchRequest request, {core.bool includeAttributes}) {
|
| + ProductstatusesResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Gets the statuses of multiple products in a single request. This method
|
| + /// can only be called for non-multi-client accounts.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [includeAttributes] - Flag to include full product data in the results of
|
| + /// this request. The default value is false.
|
| + ///
|
| + /// Completes with a [ProductstatusesCustomBatchResponse].
|
| + ///
|
| + /// 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<ProductstatusesCustomBatchResponse> custombatch(
|
| + ProductstatusesCustomBatchRequest request,
|
| + {core.bool includeAttributes}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2607,38 +2615,37 @@ class ProductstatusesResourceApi {
|
|
|
| _url = 'productstatuses/batch';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ProductstatusesCustomBatchResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Gets the status of a product 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.
|
| - *
|
| - * [productId] - The ID of the product.
|
| - *
|
| - * [includeAttributes] - Flag to include full product data in the result of
|
| - * this get request. The default value is false.
|
| - *
|
| - * Completes with a [ProductStatus].
|
| - *
|
| - * 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<ProductStatus> get(core.String merchantId, core.String productId, {core.bool includeAttributes}) {
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new ProductstatusesCustomBatchResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Gets the status of a product 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.
|
| + ///
|
| + /// [productId] - The ID of the product.
|
| + ///
|
| + /// [includeAttributes] - Flag to include full product data in the result of
|
| + /// this get request. The default value is false.
|
| + ///
|
| + /// Completes with a [ProductStatus].
|
| + ///
|
| + /// 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<ProductStatus> get(core.String merchantId, core.String productId,
|
| + {core.bool includeAttributes}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2656,47 +2663,50 @@ class ProductstatusesResourceApi {
|
| _queryParams["includeAttributes"] = ["${includeAttributes}"];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/productstatuses/' + commons.Escaper.ecapeVariable('$productId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/productstatuses/' +
|
| + commons.Escaper.ecapeVariable('$productId');
|
|
|
| - 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 ProductStatus.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Lists the statuses of the products 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.
|
| - *
|
| - * [includeAttributes] - Flag to include full product data in the results of
|
| - * the list request. The default value is false.
|
| - *
|
| - * [includeInvalidInsertedItems] - Flag to include the invalid inserted items
|
| - * in the result of the list request. By default the invalid items are not
|
| - * shown (the default value is false).
|
| - *
|
| - * [maxResults] - The maximum number of product statuses to return in the
|
| - * response, used for paging.
|
| - *
|
| - * [pageToken] - The token returned by the previous request.
|
| - *
|
| - * Completes with a [ProductstatusesListResponse].
|
| - *
|
| - * 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<ProductstatusesListResponse> list(core.String merchantId, {core.bool includeAttributes, core.bool includeInvalidInsertedItems, core.int maxResults, core.String pageToken}) {
|
| + /// Lists the statuses of the products 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.
|
| + ///
|
| + /// [includeAttributes] - Flag to include full product data in the results of
|
| + /// the list request. The default value is false.
|
| + ///
|
| + /// [includeInvalidInsertedItems] - Flag to include the invalid inserted
|
| + /// items in the result of the list request. By default the invalid items are
|
| + /// not shown (the default value is false).
|
| + ///
|
| + /// [maxResults] - The maximum number of product statuses to return in the
|
| + /// response, used for paging.
|
| + ///
|
| + /// [pageToken] - The token returned by the previous request.
|
| + ///
|
| + /// Completes with a [ProductstatusesListResponse].
|
| + ///
|
| + /// 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<ProductstatusesListResponse> list(core.String merchantId,
|
| + {core.bool includeAttributes,
|
| + core.bool includeInvalidInsertedItems,
|
| + core.int maxResults,
|
| + core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2711,7 +2721,9 @@ class ProductstatusesResourceApi {
|
| _queryParams["includeAttributes"] = ["${includeAttributes}"];
|
| }
|
| if (includeInvalidInsertedItems != null) {
|
| - _queryParams["includeInvalidInsertedItems"] = ["${includeInvalidInsertedItems}"];
|
| + _queryParams["includeInvalidInsertedItems"] = [
|
| + "${includeInvalidInsertedItems}"
|
| + ];
|
| }
|
| if (maxResults != null) {
|
| _queryParams["maxResults"] = ["${maxResults}"];
|
| @@ -2722,44 +2734,42 @@ class ProductstatusesResourceApi {
|
|
|
| _url = commons.Escaper.ecapeVariable('$merchantId') + '/productstatuses';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ProductstatusesListResponse.fromJson(data));
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new ProductstatusesListResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class ShippingsettingsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ShippingsettingsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Retrieves and updates the shipping settings of multiple accounts in a
|
| - * single request.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [ShippingsettingsCustomBatchResponse].
|
| - *
|
| - * 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<ShippingsettingsCustomBatchResponse> custombatch(ShippingsettingsCustomBatchRequest request, {core.bool dryRun}) {
|
| + ShippingsettingsResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Retrieves and updates the shipping settings of multiple accounts in a
|
| + /// single request.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [ShippingsettingsCustomBatchResponse].
|
| + ///
|
| + /// 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<ShippingsettingsCustomBatchResponse> custombatch(
|
| + ShippingsettingsCustomBatchRequest request,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2776,38 +2786,37 @@ class ShippingsettingsResourceApi {
|
|
|
| _url = 'shippingsettings/batch';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ShippingsettingsCustomBatchResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Retrieves the shipping settings of the account. This method can only be
|
| - * called for accounts to which the managing account has access: either the
|
| - * managing account itself for any Merchant Center account, or any sub-account
|
| - * when the managing account is a multi-client account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [accountId] - The ID of the account for which to get/update shipping
|
| - * settings.
|
| - *
|
| - * Completes with a [ShippingSettings].
|
| - *
|
| - * 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<ShippingSettings> get(core.String merchantId, core.String accountId) {
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new ShippingsettingsCustomBatchResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Retrieves the shipping settings of the account. This method can only be
|
| + /// called for accounts to which the managing account has access: either the
|
| + /// managing account itself for any Merchant Center account, or any
|
| + /// sub-account when the managing account is a multi-client account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [accountId] - The ID of the account for which to get/update shipping
|
| + /// settings.
|
| + ///
|
| + /// Completes with a [ShippingSettings].
|
| + ///
|
| + /// 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<ShippingSettings> get(
|
| + core.String merchantId, core.String accountId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2822,35 +2831,35 @@ class ShippingsettingsResourceApi {
|
| throw new core.ArgumentError("Parameter accountId is required.");
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/shippingsettings/' + commons.Escaper.ecapeVariable('$accountId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/shippingsettings/' +
|
| + commons.Escaper.ecapeVariable('$accountId');
|
|
|
| - 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 ShippingSettings.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves supported carriers and carrier services for an account.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the account for which to retrieve the supported
|
| - * carriers.
|
| - *
|
| - * Completes with a [ShippingsettingsGetSupportedCarriersResponse].
|
| - *
|
| - * 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<ShippingsettingsGetSupportedCarriersResponse> getsupportedcarriers(core.String merchantId) {
|
| + /// Retrieves supported carriers and carrier services for an account.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the account for which to retrieve the supported
|
| + /// carriers.
|
| + ///
|
| + /// Completes with a [ShippingsettingsGetSupportedCarriersResponse].
|
| + ///
|
| + /// 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<ShippingsettingsGetSupportedCarriersResponse>
|
| + getsupportedcarriers(core.String merchantId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2864,38 +2873,37 @@ class ShippingsettingsResourceApi {
|
|
|
| _url = commons.Escaper.ecapeVariable('$merchantId') + '/supportedCarriers';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ShippingsettingsGetSupportedCarriersResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Lists the shipping settings of the sub-accounts in your Merchant Center
|
| - * account. This method can only be called for multi-client accounts.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [maxResults] - The maximum number of shipping settings to return in the
|
| - * response, used for paging.
|
| - *
|
| - * [pageToken] - The token returned by the previous request.
|
| - *
|
| - * Completes with a [ShippingsettingsListResponse].
|
| - *
|
| - * 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<ShippingsettingsListResponse> list(core.String merchantId, {core.int maxResults, core.String pageToken}) {
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) =>
|
| + new ShippingsettingsGetSupportedCarriersResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Lists the shipping settings of the sub-accounts in your Merchant Center
|
| + /// account. This method can only be called for multi-client accounts.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [maxResults] - The maximum number of shipping settings to return in the
|
| + /// response, used for paging.
|
| + ///
|
| + /// [pageToken] - The token returned by the previous request.
|
| + ///
|
| + /// Completes with a [ShippingsettingsListResponse].
|
| + ///
|
| + /// 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<ShippingsettingsListResponse> list(core.String merchantId,
|
| + {core.int maxResults, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2915,43 +2923,43 @@ class ShippingsettingsResourceApi {
|
|
|
| _url = commons.Escaper.ecapeVariable('$merchantId') + '/shippingsettings';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new ShippingsettingsListResponse.fromJson(data));
|
| - }
|
| -
|
| - /**
|
| - * Updates the shipping settings of the account. This method can only be
|
| - * called for accounts to which the managing account has access: either the
|
| - * managing account itself for any Merchant Center account, or any sub-account
|
| - * when the managing account is a multi-client account. This method supports
|
| - * patch semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [accountId] - The ID of the account for which to get/update shipping
|
| - * settings.
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [ShippingSettings].
|
| - *
|
| - * 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<ShippingSettings> patch(ShippingSettings request, core.String merchantId, core.String accountId, {core.bool dryRun}) {
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new ShippingsettingsListResponse.fromJson(data));
|
| + }
|
| +
|
| + /// Updates the shipping settings of the account. This method can only be
|
| + /// called for accounts to which the managing account has access: either the
|
| + /// managing account itself for any Merchant Center account, or any
|
| + /// sub-account when the managing account is a multi-client account. This
|
| + /// method supports patch semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [accountId] - The ID of the account for which to get/update shipping
|
| + /// settings.
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [ShippingSettings].
|
| + ///
|
| + /// 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<ShippingSettings> patch(
|
| + ShippingSettings request, core.String merchantId, core.String accountId,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -2972,44 +2980,45 @@ class ShippingsettingsResourceApi {
|
| _queryParams["dryRun"] = ["${dryRun}"];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/shippingsettings/' + commons.Escaper.ecapeVariable('$accountId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/shippingsettings/' +
|
| + commons.Escaper.ecapeVariable('$accountId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ShippingSettings.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates the shipping settings of the account. This method can only be
|
| - * called for accounts to which the managing account has access: either the
|
| - * managing account itself for any Merchant Center account, or any sub-account
|
| - * when the managing account is a multi-client account.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [merchantId] - The ID of the managing account.
|
| - *
|
| - * [accountId] - The ID of the account for which to get/update shipping
|
| - * settings.
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [ShippingSettings].
|
| - *
|
| - * 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<ShippingSettings> update(ShippingSettings request, core.String merchantId, core.String accountId, {core.bool dryRun}) {
|
| + /// Updates the shipping settings of the account. This method can only be
|
| + /// called for accounts to which the managing account has access: either the
|
| + /// managing account itself for any Merchant Center account, or any
|
| + /// sub-account when the managing account is a multi-client account.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [merchantId] - The ID of the managing account.
|
| + ///
|
| + /// [accountId] - The ID of the account for which to get/update shipping
|
| + /// settings.
|
| + ///
|
| + /// [dryRun] - Flag to run the request in dry-run mode.
|
| + ///
|
| + /// Completes with a [ShippingSettings].
|
| + ///
|
| + /// 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<ShippingSettings> update(
|
| + ShippingSettings request, core.String merchantId, core.String accountId,
|
| + {core.bool dryRun}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -3030,55 +3039,53 @@ class ShippingsettingsResourceApi {
|
| _queryParams["dryRun"] = ["${dryRun}"];
|
| }
|
|
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/shippingsettings/' + commons.Escaper.ecapeVariable('$accountId');
|
| + _url = commons.Escaper.ecapeVariable('$merchantId') +
|
| + '/shippingsettings/' +
|
| + commons.Escaper.ecapeVariable('$accountId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ShippingSettings.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| -
|
| -/** Account data. */
|
| +/// Account data.
|
| class Account {
|
| - /** Indicates whether the merchant sells adult content. */
|
| + /// Indicates whether the merchant sells adult content.
|
| core.bool adultContent;
|
| - /**
|
| - * List of linked AdWords accounts that are active or pending approval. To
|
| - * create a new link request, add a new link with status active to the list.
|
| - * It will remain in a pending state until approved or rejected either in the
|
| - * AdWords interface or through the AdWords API. To delete an active link, or
|
| - * to cancel a link request, remove it from the list.
|
| - */
|
| +
|
| + /// List of linked AdWords accounts that are active or pending approval. To
|
| + /// create a new link request, add a new link with status active to the list.
|
| + /// It will remain in a pending state until approved or rejected either in
|
| + /// the AdWords interface or through the AdWords API. To delete an active
|
| + /// link, or to cancel a link request, remove it from the list.
|
| core.List<AccountAdwordsLink> adwordsLinks;
|
| - /** Merchant Center account ID. */
|
| +
|
| + /// Merchant Center account ID.
|
| core.String id;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#account".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#account".
|
| core.String kind;
|
| - /** Display name for the account. */
|
| +
|
| + /// Display name for the account.
|
| core.String name;
|
| - /**
|
| - * URL for individual seller reviews, i.e., reviews for each child account.
|
| - */
|
| +
|
| + /// URL for individual seller reviews, i.e., reviews for each child account.
|
| core.String reviewsUrl;
|
| - /** Client-specific, locally-unique, internal ID for the child account. */
|
| +
|
| + /// Client-specific, locally-unique, internal ID for the child account.
|
| core.String sellerId;
|
| - /**
|
| - * Users with access to the account. Every account (except for subaccounts)
|
| - * must have at least one admin user.
|
| - */
|
| +
|
| + /// Users with access to the account. Every account (except for subaccounts)
|
| + /// must have at least one admin user.
|
| core.List<AccountUser> users;
|
| - /** The merchant's website. */
|
| +
|
| + /// The merchant's website.
|
| core.String websiteUrl;
|
|
|
| Account();
|
| @@ -3088,7 +3095,9 @@ class Account {
|
| adultContent = _json["adultContent"];
|
| }
|
| if (_json.containsKey("adwordsLinks")) {
|
| - adwordsLinks = _json["adwordsLinks"].map((value) => new AccountAdwordsLink.fromJson(value)).toList();
|
| + adwordsLinks = _json["adwordsLinks"]
|
| + .map((value) => new AccountAdwordsLink.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| @@ -3106,7 +3115,9 @@ class Account {
|
| sellerId = _json["sellerId"];
|
| }
|
| if (_json.containsKey("users")) {
|
| - users = _json["users"].map((value) => new AccountUser.fromJson(value)).toList();
|
| + users = _json["users"]
|
| + .map((value) => new AccountUser.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("websiteUrl")) {
|
| websiteUrl = _json["websiteUrl"];
|
| @@ -3114,12 +3125,14 @@ class Account {
|
| }
|
|
|
| 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 (adultContent != null) {
|
| _json["adultContent"] = adultContent;
|
| }
|
| if (adwordsLinks != null) {
|
| - _json["adwordsLinks"] = adwordsLinks.map((value) => (value).toJson()).toList();
|
| + _json["adwordsLinks"] =
|
| + adwordsLinks.map((value) => (value).toJson()).toList();
|
| }
|
| if (id != null) {
|
| _json["id"] = id;
|
| @@ -3147,19 +3160,19 @@ class Account {
|
| }
|
|
|
| class AccountAdwordsLink {
|
| - /** Customer ID of the AdWords account. */
|
| + /// Customer ID of the AdWords account.
|
| core.String adwordsId;
|
| - /**
|
| - * Status of the link between this Merchant Center account and the AdWords
|
| - * account. Upon retrieval, it represents the actual status of the link and
|
| - * can be either active if it was approved in Google AdWords or pending if
|
| - * it's pending approval. Upon insertion, it represents the intended status of
|
| - * the link. Re-uploading a link with status active when it's still pending or
|
| - * with status pending when it's already active will have no effect: the
|
| - * status will remain unchanged. Re-uploading a link with deprecated status
|
| - * inactive is equivalent to not submitting the link at all and will delete
|
| - * the link if it was active or cancel the link request if it was pending.
|
| - */
|
| +
|
| + /// Status of the link between this Merchant Center account and the AdWords
|
| + /// account. Upon retrieval, it represents the actual status of the link and
|
| + /// can be either active if it was approved in Google AdWords or pending if
|
| + /// it's pending approval. Upon insertion, it represents the intended status
|
| + /// of the link. Re-uploading a link with status active when it's still
|
| + /// pending or with status pending when it's already active will have no
|
| + /// effect: the status will remain unchanged. Re-uploading a link with
|
| + /// deprecated status inactive is equivalent to not submitting the link at
|
| + /// all and will delete the link if it was active or cancel the link request
|
| + /// if it was pending.
|
| core.String status;
|
|
|
| AccountAdwordsLink();
|
| @@ -3174,7 +3187,8 @@ class AccountAdwordsLink {
|
| }
|
|
|
| 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 (adwordsId != null) {
|
| _json["adwordsId"] = adwordsId;
|
| }
|
| @@ -3186,12 +3200,11 @@ class AccountAdwordsLink {
|
| }
|
|
|
| class AccountIdentifier {
|
| - /**
|
| - * The aggregator ID, set for aggregators and subaccounts (in that case, it
|
| - * represents the aggregator of the subaccount).
|
| - */
|
| + /// The aggregator ID, set for aggregators and subaccounts (in that case, it
|
| + /// represents the aggregator of the subaccount).
|
| core.String aggregatorId;
|
| - /** The merchant account ID, set for individual accounts and subaccounts. */
|
| +
|
| + /// The merchant account ID, set for individual accounts and subaccounts.
|
| core.String merchantId;
|
|
|
| AccountIdentifier();
|
| @@ -3206,7 +3219,8 @@ class AccountIdentifier {
|
| }
|
|
|
| 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 (aggregatorId != null) {
|
| _json["aggregatorId"] = aggregatorId;
|
| }
|
| @@ -3217,23 +3231,23 @@ class AccountIdentifier {
|
| }
|
| }
|
|
|
| -/**
|
| - * The status of an account, i.e., information about its products, which is
|
| - * computed offline and not returned immediately at insertion time.
|
| - */
|
| +/// The status of an account, i.e., information about its products, which is
|
| +/// computed offline and not returned immediately at insertion time.
|
| class AccountStatus {
|
| - /** The ID of the account for which the status is reported. */
|
| + /// The ID of the account for which the status is reported.
|
| core.String accountId;
|
| - /** A list of account level issues. */
|
| +
|
| + /// A list of account level issues.
|
| core.List<AccountStatusAccountLevelIssue> accountLevelIssues;
|
| - /** A list of data quality issues. */
|
| +
|
| + /// A list of data quality issues.
|
| core.List<AccountStatusDataQualityIssue> dataQualityIssues;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accountStatus".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#accountStatus".
|
| core.String kind;
|
| - /** Whether the account's website is claimed or not. */
|
| +
|
| + /// Whether the account's website is claimed or not.
|
| core.bool websiteClaimed;
|
|
|
| AccountStatus();
|
| @@ -3243,10 +3257,14 @@ class AccountStatus {
|
| accountId = _json["accountId"];
|
| }
|
| if (_json.containsKey("accountLevelIssues")) {
|
| - accountLevelIssues = _json["accountLevelIssues"].map((value) => new AccountStatusAccountLevelIssue.fromJson(value)).toList();
|
| + accountLevelIssues = _json["accountLevelIssues"]
|
| + .map((value) => new AccountStatusAccountLevelIssue.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("dataQualityIssues")) {
|
| - dataQualityIssues = _json["dataQualityIssues"].map((value) => new AccountStatusDataQualityIssue.fromJson(value)).toList();
|
| + dataQualityIssues = _json["dataQualityIssues"]
|
| + .map((value) => new AccountStatusDataQualityIssue.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -3257,15 +3275,18 @@ class AccountStatus {
|
| }
|
|
|
| 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 (accountId != null) {
|
| _json["accountId"] = accountId;
|
| }
|
| if (accountLevelIssues != null) {
|
| - _json["accountLevelIssues"] = accountLevelIssues.map((value) => (value).toJson()).toList();
|
| + _json["accountLevelIssues"] =
|
| + accountLevelIssues.map((value) => (value).toJson()).toList();
|
| }
|
| if (dataQualityIssues != null) {
|
| - _json["dataQualityIssues"] = dataQualityIssues.map((value) => (value).toJson()).toList();
|
| + _json["dataQualityIssues"] =
|
| + dataQualityIssues.map((value) => (value).toJson()).toList();
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| @@ -3278,15 +3299,19 @@ class AccountStatus {
|
| }
|
|
|
| class AccountStatusAccountLevelIssue {
|
| - /** Country for which this issue is reported. */
|
| + /// Country for which this issue is reported.
|
| core.String country;
|
| - /** Additional details about the issue. */
|
| +
|
| + /// Additional details about the issue.
|
| core.String detail;
|
| - /** Issue identifier. */
|
| +
|
| + /// Issue identifier.
|
| core.String id;
|
| - /** Severity of the issue. */
|
| +
|
| + /// Severity of the issue.
|
| core.String severity;
|
| - /** Short description of the issue. */
|
| +
|
| + /// Short description of the issue.
|
| core.String title;
|
|
|
| AccountStatusAccountLevelIssue();
|
| @@ -3310,7 +3335,8 @@ class AccountStatusAccountLevelIssue {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -3331,25 +3357,34 @@ class AccountStatusAccountLevelIssue {
|
| }
|
|
|
| class AccountStatusDataQualityIssue {
|
| - /** Country for which this issue is reported. */
|
| + /// Country for which this issue is reported.
|
| core.String country;
|
| - /** A more detailed description of the issue. */
|
| +
|
| + /// A more detailed description of the issue.
|
| core.String detail;
|
| - /** Actual value displayed on the landing page. */
|
| +
|
| + /// Actual value displayed on the landing page.
|
| core.String displayedValue;
|
| - /** Example items featuring the issue. */
|
| +
|
| + /// Example items featuring the issue.
|
| core.List<AccountStatusExampleItem> exampleItems;
|
| - /** Issue identifier. */
|
| +
|
| + /// Issue identifier.
|
| core.String id;
|
| - /** Last time the account was checked for this issue. */
|
| +
|
| + /// Last time the account was checked for this issue.
|
| core.String lastChecked;
|
| - /** The attribute name that is relevant for the issue. */
|
| +
|
| + /// The attribute name that is relevant for the issue.
|
| core.String location;
|
| - /** Number of items in the account found to have the said issue. */
|
| +
|
| + /// Number of items in the account found to have the said issue.
|
| core.int numItems;
|
| - /** Severity of the problem. */
|
| +
|
| + /// Severity of the problem.
|
| core.String severity;
|
| - /** Submitted value that causes the issue. */
|
| +
|
| + /// Submitted value that causes the issue.
|
| core.String submittedValue;
|
|
|
| AccountStatusDataQualityIssue();
|
| @@ -3365,7 +3400,9 @@ class AccountStatusDataQualityIssue {
|
| displayedValue = _json["displayedValue"];
|
| }
|
| if (_json.containsKey("exampleItems")) {
|
| - exampleItems = _json["exampleItems"].map((value) => new AccountStatusExampleItem.fromJson(value)).toList();
|
| + exampleItems = _json["exampleItems"]
|
| + .map((value) => new AccountStatusExampleItem.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("id")) {
|
| id = _json["id"];
|
| @@ -3388,7 +3425,8 @@ class AccountStatusDataQualityIssue {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -3399,7 +3437,8 @@ class AccountStatusDataQualityIssue {
|
| _json["displayedValue"] = displayedValue;
|
| }
|
| if (exampleItems != null) {
|
| - _json["exampleItems"] = exampleItems.map((value) => (value).toJson()).toList();
|
| + _json["exampleItems"] =
|
| + exampleItems.map((value) => (value).toJson()).toList();
|
| }
|
| if (id != null) {
|
| _json["id"] = id;
|
| @@ -3423,20 +3462,22 @@ class AccountStatusDataQualityIssue {
|
| }
|
| }
|
|
|
| -/**
|
| - * An example of an item that has poor data quality. An item value on the
|
| - * landing page differs from what is submitted, or conflicts with a policy.
|
| - */
|
| +/// An example of an item that has poor data quality. An item value on the
|
| +/// landing page differs from what is submitted, or conflicts with a policy.
|
| class AccountStatusExampleItem {
|
| - /** Unique item ID as specified in the uploaded product data. */
|
| + /// Unique item ID as specified in the uploaded product data.
|
| core.String itemId;
|
| - /** Landing page of the item. */
|
| +
|
| + /// Landing page of the item.
|
| core.String link;
|
| - /** The item value that was submitted. */
|
| +
|
| + /// The item value that was submitted.
|
| core.String submittedValue;
|
| - /** Title of the item. */
|
| +
|
| + /// Title of the item.
|
| core.String title;
|
| - /** The actual value on the landing page. */
|
| +
|
| + /// The actual value on the landing page.
|
| core.String valueOnLandingPage;
|
|
|
| AccountStatusExampleItem();
|
| @@ -3460,7 +3501,8 @@ class AccountStatusExampleItem {
|
| }
|
|
|
| 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 (itemId != null) {
|
| _json["itemId"] = itemId;
|
| }
|
| @@ -3480,19 +3522,17 @@ class AccountStatusExampleItem {
|
| }
|
| }
|
|
|
| -/** The tax settings of a merchant account. */
|
| +/// The tax settings of a merchant account.
|
| class AccountTax {
|
| - /** The ID of the account to which these account tax settings belong. */
|
| + /// The ID of the account to which these account tax settings belong.
|
| core.String accountId;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accountTax".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#accountTax".
|
| core.String kind;
|
| - /**
|
| - * Tax rules. Updating the tax rules will enable US taxes (not reversible).
|
| - * Defining no rules is equivalent to not charging tax at all.
|
| - */
|
| +
|
| + /// Tax rules. Updating the tax rules will enable US taxes (not reversible).
|
| + /// Defining no rules is equivalent to not charging tax at all.
|
| core.List<AccountTaxTaxRule> rules;
|
|
|
| AccountTax();
|
| @@ -3505,12 +3545,15 @@ class AccountTax {
|
| kind = _json["kind"];
|
| }
|
| if (_json.containsKey("rules")) {
|
| - rules = _json["rules"].map((value) => new AccountTaxTaxRule.fromJson(value)).toList();
|
| + rules = _json["rules"]
|
| + .map((value) => new AccountTaxTaxRule.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 (accountId != null) {
|
| _json["accountId"] = accountId;
|
| }
|
| @@ -3524,26 +3567,24 @@ class AccountTax {
|
| }
|
| }
|
|
|
| -/** Tax calculation rule to apply in a state or province (USA only). */
|
| +/// Tax calculation rule to apply in a state or province (USA only).
|
| class AccountTaxTaxRule {
|
| - /** Country code in which tax is applicable. */
|
| + /// Country code in which tax is applicable.
|
| core.String country;
|
| - /**
|
| - * State (or province) is which the tax is applicable, described by its
|
| - * location id (also called criteria id).
|
| - */
|
| +
|
| + /// State (or province) is which the tax is applicable, described by its
|
| + /// location id (also called criteria id).
|
| core.String locationId;
|
| - /**
|
| - * Explicit tax rate in percent, represented as a floating point number
|
| - * without the percentage character. Must not be negative.
|
| - */
|
| +
|
| + /// Explicit tax rate in percent, represented as a floating point number
|
| + /// without the percentage character. Must not be negative.
|
| core.String ratePercent;
|
| - /** If true, shipping charges are also taxed. */
|
| +
|
| + /// If true, shipping charges are also taxed.
|
| core.bool shippingTaxed;
|
| - /**
|
| - * Whether the tax rate is taken from a global tax table or specified
|
| - * explicitly.
|
| - */
|
| +
|
| + /// Whether the tax rate is taken from a global tax table or specified
|
| + /// explicitly.
|
| core.bool useGlobalRate;
|
|
|
| AccountTaxTaxRule();
|
| @@ -3567,7 +3608,8 @@ class AccountTaxTaxRule {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -3588,9 +3630,10 @@ class AccountTaxTaxRule {
|
| }
|
|
|
| class AccountUser {
|
| - /** Whether user is an admin. */
|
| + /// Whether user is an admin.
|
| core.bool admin;
|
| - /** User's email address. */
|
| +
|
| + /// User's email address.
|
| core.String emailAddress;
|
|
|
| AccountUser();
|
| @@ -3605,7 +3648,8 @@ class AccountUser {
|
| }
|
|
|
| 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 (admin != null) {
|
| _json["admin"] = admin;
|
| }
|
| @@ -3617,25 +3661,24 @@ class AccountUser {
|
| }
|
|
|
| class AccountsAuthInfoResponse {
|
| - /**
|
| - * The account identifiers corresponding to the authenticated user.
|
| - * - For an individual account: only the merchant ID is defined
|
| - * - For an aggregator: only the aggregator ID is defined
|
| - * - For a subaccount of an MCA: both the merchant ID and the aggregator ID
|
| - * are defined.
|
| - */
|
| + /// The account identifiers corresponding to the authenticated user.
|
| + /// - For an individual account: only the merchant ID is defined
|
| + /// - For an aggregator: only the aggregator ID is defined
|
| + /// - For a subaccount of an MCA: both the merchant ID and the aggregator ID
|
| + /// are defined.
|
| core.List<AccountIdentifier> accountIdentifiers;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accountsAuthInfoResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#accountsAuthInfoResponse".
|
| core.String kind;
|
|
|
| AccountsAuthInfoResponse();
|
|
|
| AccountsAuthInfoResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("accountIdentifiers")) {
|
| - accountIdentifiers = _json["accountIdentifiers"].map((value) => new AccountIdentifier.fromJson(value)).toList();
|
| + accountIdentifiers = _json["accountIdentifiers"]
|
| + .map((value) => new AccountIdentifier.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -3643,9 +3686,11 @@ class AccountsAuthInfoResponse {
|
| }
|
|
|
| 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 (accountIdentifiers != null) {
|
| - _json["accountIdentifiers"] = accountIdentifiers.map((value) => (value).toJson()).toList();
|
| + _json["accountIdentifiers"] =
|
| + accountIdentifiers.map((value) => (value).toJson()).toList();
|
| }
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| @@ -3655,10 +3700,8 @@ class AccountsAuthInfoResponse {
|
| }
|
|
|
| class AccountsClaimWebsiteResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accountsClaimWebsiteResponse".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#accountsClaimWebsiteResponse".
|
| core.String kind;
|
|
|
| AccountsClaimWebsiteResponse();
|
| @@ -3670,7 +3713,8 @@ class AccountsClaimWebsiteResponse {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -3679,19 +3723,22 @@ class AccountsClaimWebsiteResponse {
|
| }
|
|
|
| class AccountsCustomBatchRequest {
|
| - /** The request entries to be processed in the batch. */
|
| + /// The request entries to be processed in the batch.
|
| core.List<AccountsCustomBatchRequestEntry> entries;
|
|
|
| AccountsCustomBatchRequest();
|
|
|
| AccountsCustomBatchRequest.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new AccountsCustomBatchRequestEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) => new AccountsCustomBatchRequestEntry.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();
|
| }
|
| @@ -3699,27 +3746,29 @@ class AccountsCustomBatchRequest {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch accounts request. */
|
| +/// A batch entry encoding a single non-batch accounts request.
|
| class AccountsCustomBatchRequestEntry {
|
| - /**
|
| - * The account to create or update. Only defined if the method is insert or
|
| - * update.
|
| - */
|
| + /// The account to create or update. Only defined if the method is insert or
|
| + /// update.
|
| Account account;
|
| - /**
|
| - * The ID of the targeted account. Only defined if the method is get, delete
|
| - * or claimwebsite.
|
| - */
|
| +
|
| + /// The ID of the targeted account. Only defined if the method is get, delete
|
| + /// or claimwebsite.
|
| core.String accountId;
|
| - /** An entry ID, unique within the batch request. */
|
| +
|
| + /// An entry ID, unique within the batch request.
|
| core.int batchId;
|
| - /** The ID of the managing account. */
|
| +
|
| + /// Whether the account should be deleted if the account has offers. Only
|
| + /// applicable if the method is delete.
|
| + core.bool force;
|
| +
|
| + /// The ID of the managing account.
|
| core.String merchantId;
|
| core.String method;
|
| - /**
|
| - * Only applicable if the method is claimwebsite. Indicates whether or not to
|
| - * take the claim from another account in case there is a conflict.
|
| - */
|
| +
|
| + /// Only applicable if the method is claimwebsite. Indicates whether or not
|
| + /// to take the claim from another account in case there is a conflict.
|
| core.bool overwrite;
|
|
|
| AccountsCustomBatchRequestEntry();
|
| @@ -3734,6 +3783,9 @@ class AccountsCustomBatchRequestEntry {
|
| if (_json.containsKey("batchId")) {
|
| batchId = _json["batchId"];
|
| }
|
| + if (_json.containsKey("force")) {
|
| + force = _json["force"];
|
| + }
|
| if (_json.containsKey("merchantId")) {
|
| merchantId = _json["merchantId"];
|
| }
|
| @@ -3746,7 +3798,8 @@ class AccountsCustomBatchRequestEntry {
|
| }
|
|
|
| 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 (account != null) {
|
| _json["account"] = (account).toJson();
|
| }
|
| @@ -3756,6 +3809,9 @@ class AccountsCustomBatchRequestEntry {
|
| if (batchId != null) {
|
| _json["batchId"] = batchId;
|
| }
|
| + if (force != null) {
|
| + _json["force"] = force;
|
| + }
|
| if (merchantId != null) {
|
| _json["merchantId"] = merchantId;
|
| }
|
| @@ -3770,19 +3826,20 @@ class AccountsCustomBatchRequestEntry {
|
| }
|
|
|
| class AccountsCustomBatchResponse {
|
| - /** The result of the execution of the batch requests. */
|
| + /// The result of the execution of the batch requests.
|
| core.List<AccountsCustomBatchResponseEntry> entries;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accountsCustomBatchResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#accountsCustomBatchResponse".
|
| core.String kind;
|
|
|
| AccountsCustomBatchResponse();
|
|
|
| AccountsCustomBatchResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new AccountsCustomBatchResponseEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) => new AccountsCustomBatchResponseEntry.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -3790,7 +3847,8 @@ class AccountsCustomBatchResponse {
|
| }
|
|
|
| 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();
|
| }
|
| @@ -3801,21 +3859,20 @@ class AccountsCustomBatchResponse {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch accounts response. */
|
| +/// A batch entry encoding a single non-batch accounts response.
|
| class AccountsCustomBatchResponseEntry {
|
| - /**
|
| - * The retrieved, created, or updated account. Not defined if the method was
|
| - * delete or claimwebsite.
|
| - */
|
| + /// The retrieved, created, or updated account. Not defined if the method was
|
| + /// delete or claimwebsite.
|
| Account account;
|
| - /** 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;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accountsCustomBatchResponseEntry".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#accountsCustomBatchResponseEntry".
|
| core.String kind;
|
|
|
| AccountsCustomBatchResponseEntry();
|
| @@ -3836,7 +3893,8 @@ class AccountsCustomBatchResponseEntry {
|
| }
|
|
|
| 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 (account != null) {
|
| _json["account"] = (account).toJson();
|
| }
|
| @@ -3854,12 +3912,11 @@ class AccountsCustomBatchResponseEntry {
|
| }
|
|
|
| class AccountsListResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accountsListResponse".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#accountsListResponse".
|
| core.String kind;
|
| - /** The token for the retrieval of the next page of accounts. */
|
| +
|
| + /// The token for the retrieval of the next page of accounts.
|
| core.String nextPageToken;
|
| core.List<Account> resources;
|
|
|
| @@ -3873,12 +3930,15 @@ class AccountsListResponse {
|
| nextPageToken = _json["nextPageToken"];
|
| }
|
| if (_json.containsKey("resources")) {
|
| - resources = _json["resources"].map((value) => new Account.fromJson(value)).toList();
|
| + resources = _json["resources"]
|
| + .map((value) => new Account.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;
|
| }
|
| @@ -3893,19 +3953,23 @@ class AccountsListResponse {
|
| }
|
|
|
| class AccountstatusesCustomBatchRequest {
|
| - /** The request entries to be processed in the batch. */
|
| + /// The request entries to be processed in the batch.
|
| core.List<AccountstatusesCustomBatchRequestEntry> entries;
|
|
|
| AccountstatusesCustomBatchRequest();
|
|
|
| AccountstatusesCustomBatchRequest.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new AccountstatusesCustomBatchRequestEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) =>
|
| + new AccountstatusesCustomBatchRequestEntry.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();
|
| }
|
| @@ -3913,15 +3977,18 @@ class AccountstatusesCustomBatchRequest {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch accountstatuses request. */
|
| +/// A batch entry encoding a single non-batch accountstatuses request.
|
| class AccountstatusesCustomBatchRequestEntry {
|
| - /** The ID of the (sub-)account whose status to get. */
|
| + /// The ID of the (sub-)account whose status to get.
|
| core.String accountId;
|
| - /** An entry ID, unique within the batch request. */
|
| +
|
| + /// An entry ID, unique within the batch request.
|
| core.int batchId;
|
| - /** The ID of the managing account. */
|
| +
|
| + /// The ID of the managing account.
|
| core.String merchantId;
|
| - /** The method (get). */
|
| +
|
| + /// The method (get).
|
| core.String method;
|
|
|
| AccountstatusesCustomBatchRequestEntry();
|
| @@ -3942,7 +4009,8 @@ class AccountstatusesCustomBatchRequestEntry {
|
| }
|
|
|
| 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 (accountId != null) {
|
| _json["accountId"] = accountId;
|
| }
|
| @@ -3960,19 +4028,21 @@ class AccountstatusesCustomBatchRequestEntry {
|
| }
|
|
|
| class AccountstatusesCustomBatchResponse {
|
| - /** The result of the execution of the batch requests. */
|
| + /// The result of the execution of the batch requests.
|
| core.List<AccountstatusesCustomBatchResponseEntry> entries;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accountstatusesCustomBatchResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#accountstatusesCustomBatchResponse".
|
| core.String kind;
|
|
|
| AccountstatusesCustomBatchResponse();
|
|
|
| AccountstatusesCustomBatchResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new AccountstatusesCustomBatchResponseEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) =>
|
| + new AccountstatusesCustomBatchResponseEntry.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -3980,7 +4050,8 @@ class AccountstatusesCustomBatchResponse {
|
| }
|
|
|
| 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();
|
| }
|
| @@ -3991,16 +4062,16 @@ class AccountstatusesCustomBatchResponse {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch accountstatuses response. */
|
| +/// A batch entry encoding a single non-batch accountstatuses response.
|
| class AccountstatusesCustomBatchResponseEntry {
|
| - /**
|
| - * The requested account status. Defined if and only if the request was
|
| - * successful.
|
| - */
|
| + /// The requested account status. Defined if and only if the request was
|
| + /// successful.
|
| AccountStatus accountStatus;
|
| - /** 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;
|
|
|
| AccountstatusesCustomBatchResponseEntry();
|
| @@ -4018,7 +4089,8 @@ class AccountstatusesCustomBatchResponseEntry {
|
| }
|
|
|
| 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 (accountStatus != null) {
|
| _json["accountStatus"] = (accountStatus).toJson();
|
| }
|
| @@ -4033,12 +4105,11 @@ class AccountstatusesCustomBatchResponseEntry {
|
| }
|
|
|
| class AccountstatusesListResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accountstatusesListResponse".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#accountstatusesListResponse".
|
| core.String kind;
|
| - /** The token for the retrieval of the next page of account statuses. */
|
| +
|
| + /// The token for the retrieval of the next page of account statuses.
|
| core.String nextPageToken;
|
| core.List<AccountStatus> resources;
|
|
|
| @@ -4052,12 +4123,15 @@ class AccountstatusesListResponse {
|
| nextPageToken = _json["nextPageToken"];
|
| }
|
| if (_json.containsKey("resources")) {
|
| - resources = _json["resources"].map((value) => new AccountStatus.fromJson(value)).toList();
|
| + resources = _json["resources"]
|
| + .map((value) => new AccountStatus.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;
|
| }
|
| @@ -4072,19 +4146,22 @@ class AccountstatusesListResponse {
|
| }
|
|
|
| class AccounttaxCustomBatchRequest {
|
| - /** The request entries to be processed in the batch. */
|
| + /// The request entries to be processed in the batch.
|
| core.List<AccounttaxCustomBatchRequestEntry> entries;
|
|
|
| AccounttaxCustomBatchRequest();
|
|
|
| AccounttaxCustomBatchRequest.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new AccounttaxCustomBatchRequestEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) => new AccounttaxCustomBatchRequestEntry.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();
|
| }
|
| @@ -4092,17 +4169,18 @@ class AccounttaxCustomBatchRequest {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch accounttax request. */
|
| +/// A batch entry encoding a single non-batch accounttax request.
|
| class AccounttaxCustomBatchRequestEntry {
|
| - /** The ID of the account for which to get/update account tax settings. */
|
| + /// The ID of the account for which to get/update account tax settings.
|
| core.String accountId;
|
| - /**
|
| - * The account tax settings to update. Only defined if the method is update.
|
| - */
|
| +
|
| + /// The account tax settings to update. Only defined if the method is update.
|
| AccountTax accountTax;
|
| - /** An entry ID, unique within the batch request. */
|
| +
|
| + /// An entry ID, unique within the batch request.
|
| core.int batchId;
|
| - /** The ID of the managing account. */
|
| +
|
| + /// The ID of the managing account.
|
| core.String merchantId;
|
| core.String method;
|
|
|
| @@ -4127,7 +4205,8 @@ class AccounttaxCustomBatchRequestEntry {
|
| }
|
|
|
| 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 (accountId != null) {
|
| _json["accountId"] = accountId;
|
| }
|
| @@ -4148,19 +4227,21 @@ class AccounttaxCustomBatchRequestEntry {
|
| }
|
|
|
| class AccounttaxCustomBatchResponse {
|
| - /** The result of the execution of the batch requests. */
|
| + /// The result of the execution of the batch requests.
|
| core.List<AccounttaxCustomBatchResponseEntry> entries;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accounttaxCustomBatchResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#accounttaxCustomBatchResponse".
|
| core.String kind;
|
|
|
| AccounttaxCustomBatchResponse();
|
|
|
| AccounttaxCustomBatchResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new AccounttaxCustomBatchResponseEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map(
|
| + (value) => new AccounttaxCustomBatchResponseEntry.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -4168,7 +4249,8 @@ class AccounttaxCustomBatchResponse {
|
| }
|
|
|
| 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();
|
| }
|
| @@ -4179,18 +4261,19 @@ class AccounttaxCustomBatchResponse {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch accounttax response. */
|
| +/// A batch entry encoding a single non-batch accounttax response.
|
| class AccounttaxCustomBatchResponseEntry {
|
| - /** The retrieved or updated account tax settings. */
|
| + /// The retrieved or updated account tax settings.
|
| AccountTax accountTax;
|
| - /** 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;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accounttaxCustomBatchResponseEntry".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#accounttaxCustomBatchResponseEntry".
|
| core.String kind;
|
|
|
| AccounttaxCustomBatchResponseEntry();
|
| @@ -4211,7 +4294,8 @@ class AccounttaxCustomBatchResponseEntry {
|
| }
|
|
|
| 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 (accountTax != null) {
|
| _json["accountTax"] = (accountTax).toJson();
|
| }
|
| @@ -4229,12 +4313,11 @@ class AccounttaxCustomBatchResponseEntry {
|
| }
|
|
|
| class AccounttaxListResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accounttaxListResponse".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#accounttaxListResponse".
|
| core.String kind;
|
| - /** The token for the retrieval of the next page of account tax settings. */
|
| +
|
| + /// The token for the retrieval of the next page of account tax settings.
|
| core.String nextPageToken;
|
| core.List<AccountTax> resources;
|
|
|
| @@ -4248,12 +4331,15 @@ class AccounttaxListResponse {
|
| nextPageToken = _json["nextPageToken"];
|
| }
|
| if (_json.containsKey("resources")) {
|
| - resources = _json["resources"].map((value) => new AccountTax.fromJson(value)).toList();
|
| + resources = _json["resources"]
|
| + .map((value) => new AccountTax.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;
|
| }
|
| @@ -4268,32 +4354,29 @@ class AccounttaxListResponse {
|
| }
|
|
|
| class CarrierRate {
|
| - /**
|
| - * Carrier service, such as "UPS" or "Fedex". The list of supported carriers
|
| - * can be retrieved via the getSupportedCarriers method. Required.
|
| - */
|
| + /// Carrier service, such as "UPS" or "Fedex". The list of supported carriers
|
| + /// can be retrieved via the getSupportedCarriers method. Required.
|
| core.String carrierName;
|
| - /**
|
| - * Carrier service, such as "ground" or "2 days". The list of supported
|
| - * services for a carrier can be retrieved via the getSupportedCarriers
|
| - * method. Required.
|
| - */
|
| +
|
| + /// Carrier service, such as "ground" or "2 days". The list of supported
|
| + /// services for a carrier can be retrieved via the getSupportedCarriers
|
| + /// method. Required.
|
| core.String carrierService;
|
| - /**
|
| - * Additive shipping rate modifier. Can be negative. For example { "value":
|
| - * "1", "currency" : "USD" } adds $1 to the rate, { "value": "-3", "currency"
|
| - * : "USD" } removes $3 from the rate. Optional.
|
| - */
|
| +
|
| + /// Additive shipping rate modifier. Can be negative. For example { "value":
|
| + /// "1", "currency" : "USD" } adds $1 to the rate, { "value": "-3",
|
| + /// "currency" : "USD" } removes $3 from the rate. Optional.
|
| Price flatAdjustment;
|
| - /** Name of the carrier rate. Must be unique per rate group. Required. */
|
| +
|
| + /// Name of the carrier rate. Must be unique per rate group. Required.
|
| core.String name;
|
| - /** Shipping origin for this carrier rate. Required. */
|
| +
|
| + /// Shipping origin for this carrier rate. Required.
|
| core.String originPostalCode;
|
| - /**
|
| - * Multiplicative shipping rate modifier as a number in decimal notation. Can
|
| - * be negative. For example "5.4" increases the rate by 5.4%, "-3" decreases
|
| - * the rate by 3%. Optional.
|
| - */
|
| +
|
| + /// Multiplicative shipping rate modifier as a number in decimal notation.
|
| + /// Can be negative. For example "5.4" increases the rate by 5.4%, "-3"
|
| + /// decreases the rate by 3%. Optional.
|
| core.String percentageAdjustment;
|
|
|
| CarrierRate();
|
| @@ -4320,7 +4403,8 @@ class CarrierRate {
|
| }
|
|
|
| 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 (carrierName != null) {
|
| _json["carrierName"] = carrierName;
|
| }
|
| @@ -4344,14 +4428,14 @@ class CarrierRate {
|
| }
|
|
|
| class CarriersCarrier {
|
| - /** The CLDR country code of the carrier (e.g., "US"). Always present. */
|
| + /// The CLDR country code of the carrier (e.g., "US"). Always present.
|
| core.String country;
|
| - /** The name of the carrier (e.g., "UPS"). Always present. */
|
| +
|
| + /// The name of the carrier (e.g., "UPS"). Always present.
|
| core.String name;
|
| - /**
|
| - * A list of supported services (e.g., "ground") for that carrier. Contains at
|
| - * least one service.
|
| - */
|
| +
|
| + /// A list of supported services (e.g., "ground") for that carrier. Contains
|
| + /// at least one service.
|
| core.List<core.String> services;
|
|
|
| CarriersCarrier();
|
| @@ -4369,7 +4453,8 @@ class CarriersCarrier {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -4383,47 +4468,45 @@ class CarriersCarrier {
|
| }
|
| }
|
|
|
| -/** Datafeed configuration data. */
|
| +/// Datafeed configuration data.
|
| class Datafeed {
|
| - /**
|
| - * The two-letter ISO 639-1 language in which the attributes are defined in
|
| - * the data feed.
|
| - */
|
| + /// The two-letter ISO 639-1 language in which the attributes are defined in
|
| + /// the data feed.
|
| core.String attributeLanguage;
|
| - /**
|
| - * The two-letter ISO 639-1 language of the items in the feed. Must be a valid
|
| - * language for targetCountry.
|
| - */
|
| +
|
| + /// The two-letter ISO 639-1 language of the items in the feed. Must be a
|
| + /// valid language for targetCountry.
|
| core.String contentLanguage;
|
| - /**
|
| - * The type of data feed. For product inventory feeds, only feeds for local
|
| - * stores, not online stores, are supported.
|
| - */
|
| +
|
| + /// The type of data feed. For product inventory feeds, only feeds for local
|
| + /// stores, not online stores, are supported.
|
| core.String contentType;
|
| - /** Fetch schedule for the feed file. */
|
| +
|
| + /// Fetch schedule for the feed file.
|
| DatafeedFetchSchedule fetchSchedule;
|
| - /** The filename of the feed. All feeds must have a unique file name. */
|
| +
|
| + /// The filename of the feed. All feeds must have a unique file name.
|
| core.String fileName;
|
| - /** Format of the feed file. */
|
| +
|
| + /// Format of the feed file.
|
| DatafeedFormat format;
|
| - /** The ID of the data feed. */
|
| +
|
| + /// The ID of the data feed.
|
| core.String id;
|
| - /**
|
| - * The list of intended destinations (corresponds to checked check boxes in
|
| - * Merchant Center).
|
| - */
|
| +
|
| + /// The list of intended destinations (corresponds to checked check boxes in
|
| + /// Merchant Center).
|
| core.List<core.String> intendedDestinations;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#datafeed".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#datafeed".
|
| core.String kind;
|
| - /** A descriptive name of the data feed. */
|
| +
|
| + /// A descriptive name of the data feed.
|
| core.String name;
|
| - /**
|
| - * The country where the items in the feed will be included in the search
|
| - * index, represented as a CLDR territory code.
|
| - */
|
| +
|
| + /// The country where the items in the feed will be included in the search
|
| + /// index, represented as a CLDR territory code.
|
| core.String targetCountry;
|
|
|
| Datafeed();
|
| @@ -4439,7 +4522,8 @@ class Datafeed {
|
| contentType = _json["contentType"];
|
| }
|
| if (_json.containsKey("fetchSchedule")) {
|
| - fetchSchedule = new DatafeedFetchSchedule.fromJson(_json["fetchSchedule"]);
|
| + fetchSchedule =
|
| + new DatafeedFetchSchedule.fromJson(_json["fetchSchedule"]);
|
| }
|
| if (_json.containsKey("fileName")) {
|
| fileName = _json["fileName"];
|
| @@ -4465,7 +4549,8 @@ class Datafeed {
|
| }
|
|
|
| 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 (attributeLanguage != null) {
|
| _json["attributeLanguage"] = attributeLanguage;
|
| }
|
| @@ -4503,39 +4588,39 @@ class Datafeed {
|
| }
|
| }
|
|
|
| -/**
|
| - * The required fields vary based on the frequency of fetching. For a monthly
|
| - * fetch schedule, day_of_month and hour are required. For a weekly fetch
|
| - * schedule, weekday and hour are required. For a daily fetch schedule, only
|
| - * hour is required.
|
| - */
|
| +/// The required fields vary based on the frequency of fetching. For a monthly
|
| +/// fetch schedule, day_of_month and hour are required. For a weekly fetch
|
| +/// schedule, weekday and hour are required. For a daily fetch schedule, only
|
| +/// hour is required.
|
| class DatafeedFetchSchedule {
|
| - /** The day of the month the feed file should be fetched (1-31). */
|
| + /// The day of the month the feed file should be fetched (1-31).
|
| core.int dayOfMonth;
|
| - /**
|
| - * The URL where the feed file can be fetched. Google Merchant Center will
|
| - * support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP
|
| - * protocols, so the value will need to be a valid link using one of those
|
| - * four protocols.
|
| - */
|
| +
|
| + /// The URL where the feed file can be fetched. Google Merchant Center will
|
| + /// support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP
|
| + /// protocols, so the value will need to be a valid link using one of those
|
| + /// four protocols.
|
| core.String fetchUrl;
|
| - /** The hour of the day the feed file should be fetched (0-23). */
|
| +
|
| + /// The hour of the day the feed file should be fetched (0-23).
|
| core.int hour;
|
| - /**
|
| - * The minute of the hour the feed file should be fetched (0-59). Read-only.
|
| - */
|
| +
|
| + /// The minute of the hour the feed file should be fetched (0-59). Read-only.
|
| core.int minuteOfHour;
|
| - /** An optional password for fetch_url. */
|
| +
|
| + /// An optional password for fetch_url.
|
| core.String password;
|
| - /** Whether the scheduled fetch is paused or not. */
|
| +
|
| + /// Whether the scheduled fetch is paused or not.
|
| core.bool paused;
|
| - /**
|
| - * Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
|
| - */
|
| +
|
| + /// Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
|
| core.String timeZone;
|
| - /** An optional user name for fetch_url. */
|
| +
|
| + /// An optional user name for fetch_url.
|
| core.String username;
|
| - /** The day of the week the feed file should be fetched. */
|
| +
|
| + /// The day of the week the feed file should be fetched.
|
| core.String weekday;
|
|
|
| DatafeedFetchSchedule();
|
| @@ -4571,7 +4656,8 @@ class DatafeedFetchSchedule {
|
| }
|
|
|
| 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 (dayOfMonth != null) {
|
| _json["dayOfMonth"] = dayOfMonth;
|
| }
|
| @@ -4604,21 +4690,17 @@ class DatafeedFetchSchedule {
|
| }
|
|
|
| class DatafeedFormat {
|
| - /**
|
| - * Delimiter for the separation of values in a delimiter-separated values
|
| - * feed. If not specified, the delimiter will be auto-detected. Ignored for
|
| - * non-DSV data feeds.
|
| - */
|
| + /// Delimiter for the separation of values in a delimiter-separated values
|
| + /// feed. If not specified, the delimiter will be auto-detected. Ignored for
|
| + /// non-DSV data feeds.
|
| core.String columnDelimiter;
|
| - /**
|
| - * Character encoding scheme of the data feed. If not specified, the encoding
|
| - * will be auto-detected.
|
| - */
|
| +
|
| + /// Character encoding scheme of the data feed. If not specified, the
|
| + /// encoding will be auto-detected.
|
| core.String fileEncoding;
|
| - /**
|
| - * Specifies how double quotes are interpreted. If not specified, the mode
|
| - * will be auto-detected. Ignored for non-DSV data feeds.
|
| - */
|
| +
|
| + /// Specifies how double quotes are interpreted. If not specified, the mode
|
| + /// will be auto-detected. Ignored for non-DSV data feeds.
|
| core.String quotingMode;
|
|
|
| DatafeedFormat();
|
| @@ -4636,7 +4718,8 @@ class DatafeedFormat {
|
| }
|
|
|
| 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 (columnDelimiter != null) {
|
| _json["columnDelimiter"] = columnDelimiter;
|
| }
|
| @@ -4650,29 +4733,32 @@ class DatafeedFormat {
|
| }
|
| }
|
|
|
| -/**
|
| - * The status of a datafeed, i.e., the result of the last retrieval of the
|
| - * datafeed computed asynchronously when the feed processing is finished.
|
| - */
|
| +/// The status of a datafeed, i.e., the result of the last retrieval of the
|
| +/// datafeed computed asynchronously when the feed processing is finished.
|
| class DatafeedStatus {
|
| - /** The ID of the feed for which the status is reported. */
|
| + /// The ID of the feed for which the status is reported.
|
| core.String datafeedId;
|
| - /** The list of errors occurring in the feed. */
|
| +
|
| + /// The list of errors occurring in the feed.
|
| core.List<DatafeedStatusError> errors;
|
| - /** The number of items in the feed that were processed. */
|
| +
|
| + /// The number of items in the feed that were processed.
|
| core.String itemsTotal;
|
| - /** The number of items in the feed that were valid. */
|
| +
|
| + /// The number of items in the feed that were valid.
|
| core.String itemsValid;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#datafeedStatus".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#datafeedStatus".
|
| core.String kind;
|
| - /** The last date at which the feed was uploaded. */
|
| +
|
| + /// The last date at which the feed was uploaded.
|
| core.String lastUploadDate;
|
| - /** The processing status of the feed. */
|
| +
|
| + /// The processing status of the feed.
|
| core.String processingStatus;
|
| - /** The list of errors occurring in the feed. */
|
| +
|
| + /// The list of errors occurring in the feed.
|
| core.List<DatafeedStatusError> warnings;
|
|
|
| DatafeedStatus();
|
| @@ -4682,7 +4768,9 @@ class DatafeedStatus {
|
| datafeedId = _json["datafeedId"];
|
| }
|
| if (_json.containsKey("errors")) {
|
| - errors = _json["errors"].map((value) => new DatafeedStatusError.fromJson(value)).toList();
|
| + errors = _json["errors"]
|
| + .map((value) => new DatafeedStatusError.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("itemsTotal")) {
|
| itemsTotal = _json["itemsTotal"];
|
| @@ -4700,12 +4788,15 @@ class DatafeedStatus {
|
| processingStatus = _json["processingStatus"];
|
| }
|
| if (_json.containsKey("warnings")) {
|
| - warnings = _json["warnings"].map((value) => new DatafeedStatusError.fromJson(value)).toList();
|
| + warnings = _json["warnings"]
|
| + .map((value) => new DatafeedStatusError.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 (datafeedId != null) {
|
| _json["datafeedId"] = datafeedId;
|
| }
|
| @@ -4734,15 +4825,18 @@ class DatafeedStatus {
|
| }
|
| }
|
|
|
| -/** An error occurring in the feed, like "invalid price". */
|
| +/// An error occurring in the feed, like "invalid price".
|
| class DatafeedStatusError {
|
| - /** The code of the error, e.g., "validation/invalid_value". */
|
| + /// The code of the error, e.g., "validation/invalid_value".
|
| core.String code;
|
| - /** The number of occurrences of the error in the feed. */
|
| +
|
| + /// The number of occurrences of the error in the feed.
|
| core.String count;
|
| - /** A list of example occurrences of the error, grouped by product. */
|
| +
|
| + /// A list of example occurrences of the error, grouped by product.
|
| core.List<DatafeedStatusExample> examples;
|
| - /** The error message, e.g., "Invalid price". */
|
| +
|
| + /// The error message, e.g., "Invalid price".
|
| core.String message;
|
|
|
| DatafeedStatusError();
|
| @@ -4755,7 +4849,9 @@ class DatafeedStatusError {
|
| count = _json["count"];
|
| }
|
| if (_json.containsKey("examples")) {
|
| - examples = _json["examples"].map((value) => new DatafeedStatusExample.fromJson(value)).toList();
|
| + examples = _json["examples"]
|
| + .map((value) => new DatafeedStatusExample.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("message")) {
|
| message = _json["message"];
|
| @@ -4763,7 +4859,8 @@ class DatafeedStatusError {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -4780,13 +4877,15 @@ class DatafeedStatusError {
|
| }
|
| }
|
|
|
| -/** An example occurrence for a particular error. */
|
| +/// An example occurrence for a particular error.
|
| class DatafeedStatusExample {
|
| - /** The ID of the example item. */
|
| + /// The ID of the example item.
|
| core.String itemId;
|
| - /** Line number in the data feed where the example is found. */
|
| +
|
| + /// Line number in the data feed where the example is found.
|
| core.String lineNumber;
|
| - /** The problematic value. */
|
| +
|
| + /// The problematic value.
|
| core.String value;
|
|
|
| DatafeedStatusExample();
|
| @@ -4804,7 +4903,8 @@ class DatafeedStatusExample {
|
| }
|
|
|
| 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 (itemId != null) {
|
| _json["itemId"] = itemId;
|
| }
|
| @@ -4819,19 +4919,22 @@ class DatafeedStatusExample {
|
| }
|
|
|
| class DatafeedsCustomBatchRequest {
|
| - /** The request entries to be processed in the batch. */
|
| + /// The request entries to be processed in the batch.
|
| core.List<DatafeedsCustomBatchRequestEntry> entries;
|
|
|
| DatafeedsCustomBatchRequest();
|
|
|
| DatafeedsCustomBatchRequest.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new DatafeedsCustomBatchRequestEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) => new DatafeedsCustomBatchRequestEntry.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();
|
| }
|
| @@ -4839,15 +4942,18 @@ class DatafeedsCustomBatchRequest {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch datafeeds request. */
|
| +/// A batch entry encoding a single non-batch datafeeds request.
|
| class DatafeedsCustomBatchRequestEntry {
|
| - /** An entry ID, unique within the batch request. */
|
| + /// An entry ID, unique within the batch request.
|
| core.int batchId;
|
| - /** The data feed to insert. */
|
| +
|
| + /// The data feed to insert.
|
| Datafeed datafeed;
|
| - /** The ID of the data feed to get or delete. */
|
| +
|
| + /// The ID of the data feed to get or delete.
|
| core.String datafeedId;
|
| - /** The ID of the managing account. */
|
| +
|
| + /// The ID of the managing account.
|
| core.String merchantId;
|
| core.String method;
|
|
|
| @@ -4872,7 +4978,8 @@ class DatafeedsCustomBatchRequestEntry {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -4893,19 +5000,20 @@ class DatafeedsCustomBatchRequestEntry {
|
| }
|
|
|
| class DatafeedsCustomBatchResponse {
|
| - /** The result of the execution of the batch requests. */
|
| + /// The result of the execution of the batch requests.
|
| core.List<DatafeedsCustomBatchResponseEntry> entries;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#datafeedsCustomBatchResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#datafeedsCustomBatchResponse".
|
| core.String kind;
|
|
|
| DatafeedsCustomBatchResponse();
|
|
|
| DatafeedsCustomBatchResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new DatafeedsCustomBatchResponseEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) => new DatafeedsCustomBatchResponseEntry.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -4913,7 +5021,8 @@ class DatafeedsCustomBatchResponse {
|
| }
|
|
|
| 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();
|
| }
|
| @@ -4924,15 +5033,16 @@ class DatafeedsCustomBatchResponse {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch datafeeds response. */
|
| +/// A batch entry encoding a single non-batch datafeeds response.
|
| class DatafeedsCustomBatchResponseEntry {
|
| - /** The ID of the request entry this entry responds to. */
|
| + /// The ID of the request entry this entry responds to.
|
| core.int batchId;
|
| - /**
|
| - * The requested data feed. Defined if and only if the request was successful.
|
| - */
|
| +
|
| + /// The requested data feed. Defined if and only if the request was
|
| + /// successful.
|
| Datafeed datafeed;
|
| - /** 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;
|
|
|
| DatafeedsCustomBatchResponseEntry();
|
| @@ -4950,7 +5060,8 @@ class DatafeedsCustomBatchResponseEntry {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -4965,12 +5076,11 @@ class DatafeedsCustomBatchResponseEntry {
|
| }
|
|
|
| class DatafeedsListResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#datafeedsListResponse".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#datafeedsListResponse".
|
| core.String kind;
|
| - /** The token for the retrieval of the next page of datafeeds. */
|
| +
|
| + /// The token for the retrieval of the next page of datafeeds.
|
| core.String nextPageToken;
|
| core.List<Datafeed> resources;
|
|
|
| @@ -4984,12 +5094,15 @@ class DatafeedsListResponse {
|
| nextPageToken = _json["nextPageToken"];
|
| }
|
| if (_json.containsKey("resources")) {
|
| - resources = _json["resources"].map((value) => new Datafeed.fromJson(value)).toList();
|
| + resources = _json["resources"]
|
| + .map((value) => new Datafeed.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;
|
| }
|
| @@ -5004,19 +5117,23 @@ class DatafeedsListResponse {
|
| }
|
|
|
| class DatafeedstatusesCustomBatchRequest {
|
| - /** The request entries to be processed in the batch. */
|
| + /// The request entries to be processed in the batch.
|
| core.List<DatafeedstatusesCustomBatchRequestEntry> entries;
|
|
|
| DatafeedstatusesCustomBatchRequest();
|
|
|
| DatafeedstatusesCustomBatchRequest.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new DatafeedstatusesCustomBatchRequestEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) =>
|
| + new DatafeedstatusesCustomBatchRequestEntry.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();
|
| }
|
| @@ -5024,13 +5141,15 @@ class DatafeedstatusesCustomBatchRequest {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch datafeedstatuses request. */
|
| +/// A batch entry encoding a single non-batch datafeedstatuses request.
|
| class DatafeedstatusesCustomBatchRequestEntry {
|
| - /** An entry ID, unique within the batch request. */
|
| + /// An entry ID, unique within the batch request.
|
| core.int batchId;
|
| - /** The ID of the data feed to get or delete. */
|
| +
|
| + /// The ID of the data feed to get or delete.
|
| core.String datafeedId;
|
| - /** The ID of the managing account. */
|
| +
|
| + /// The ID of the managing account.
|
| core.String merchantId;
|
| core.String method;
|
|
|
| @@ -5052,7 +5171,8 @@ class DatafeedstatusesCustomBatchRequestEntry {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -5070,19 +5190,21 @@ class DatafeedstatusesCustomBatchRequestEntry {
|
| }
|
|
|
| class DatafeedstatusesCustomBatchResponse {
|
| - /** The result of the execution of the batch requests. */
|
| + /// The result of the execution of the batch requests.
|
| core.List<DatafeedstatusesCustomBatchResponseEntry> entries;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#datafeedstatusesCustomBatchResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#datafeedstatusesCustomBatchResponse".
|
| core.String kind;
|
|
|
| DatafeedstatusesCustomBatchResponse();
|
|
|
| DatafeedstatusesCustomBatchResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new DatafeedstatusesCustomBatchResponseEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) =>
|
| + new DatafeedstatusesCustomBatchResponseEntry.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -5090,7 +5212,8 @@ class DatafeedstatusesCustomBatchResponse {
|
| }
|
|
|
| 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();
|
| }
|
| @@ -5101,16 +5224,16 @@ class DatafeedstatusesCustomBatchResponse {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch datafeedstatuses response. */
|
| +/// A batch entry encoding a single non-batch datafeedstatuses response.
|
| class DatafeedstatusesCustomBatchResponseEntry {
|
| - /** The ID of the request entry this entry responds to. */
|
| + /// The ID of the request entry this entry responds to.
|
| core.int batchId;
|
| - /**
|
| - * The requested data feed status. Defined if and only if the request was
|
| - * successful.
|
| - */
|
| +
|
| + /// The requested data feed status. Defined if and only if the request was
|
| + /// successful.
|
| DatafeedStatus datafeedStatus;
|
| - /** 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;
|
|
|
| DatafeedstatusesCustomBatchResponseEntry();
|
| @@ -5128,7 +5251,8 @@ class DatafeedstatusesCustomBatchResponseEntry {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -5143,12 +5267,11 @@ class DatafeedstatusesCustomBatchResponseEntry {
|
| }
|
|
|
| class DatafeedstatusesListResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#datafeedstatusesListResponse".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#datafeedstatusesListResponse".
|
| core.String kind;
|
| - /** The token for the retrieval of the next page of datafeed statuses. */
|
| +
|
| + /// The token for the retrieval of the next page of datafeed statuses.
|
| core.String nextPageToken;
|
| core.List<DatafeedStatus> resources;
|
|
|
| @@ -5162,12 +5285,15 @@ class DatafeedstatusesListResponse {
|
| nextPageToken = _json["nextPageToken"];
|
| }
|
| if (_json.containsKey("resources")) {
|
| - resources = _json["resources"].map((value) => new DatafeedStatus.fromJson(value)).toList();
|
| + resources = _json["resources"]
|
| + .map((value) => new DatafeedStatus.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;
|
| }
|
| @@ -5182,16 +5308,13 @@ class DatafeedstatusesListResponse {
|
| }
|
|
|
| class DeliveryTime {
|
| - /**
|
| - * Maximum number of business days that is spent in transit. 0 means same day
|
| - * delivery, 1 means next day delivery. Must be greater than or equal to
|
| - * minTransitTimeInDays. Required.
|
| - */
|
| + /// Maximum number of business days that is spent in transit. 0 means same
|
| + /// day delivery, 1 means next day delivery. Must be greater than or equal to
|
| + /// minTransitTimeInDays. Required.
|
| core.int maxTransitTimeInDays;
|
| - /**
|
| - * Minimum number of business days that is spent in transit. 0 means same day
|
| - * delivery, 1 means next day delivery. Required.
|
| - */
|
| +
|
| + /// Minimum number of business days that is spent in transit. 0 means same
|
| + /// day delivery, 1 means next day delivery. Required.
|
| core.int minTransitTimeInDays;
|
|
|
| DeliveryTime();
|
| @@ -5206,7 +5329,8 @@ class DeliveryTime {
|
| }
|
|
|
| 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 (maxTransitTimeInDays != null) {
|
| _json["maxTransitTimeInDays"] = maxTransitTimeInDays;
|
| }
|
| @@ -5217,13 +5341,15 @@ class DeliveryTime {
|
| }
|
| }
|
|
|
| -/** 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();
|
| @@ -5241,7 +5367,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;
|
| }
|
| @@ -5255,13 +5382,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();
|
| @@ -5271,7 +5400,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"];
|
| @@ -5279,7 +5409,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;
|
| }
|
| @@ -5293,51 +5424,47 @@ class Errors {
|
| }
|
| }
|
|
|
| -/**
|
| - * A non-empty list of row or column headers for a table. Exactly one of prices,
|
| - * weights, numItems, postalCodeGroupNames, or locations must be set.
|
| - */
|
| +/// A non-empty list of row or column headers for a table. Exactly one of
|
| +/// prices, weights, numItems, postalCodeGroupNames, or locations must be set.
|
| class Headers {
|
| - /**
|
| - * A list of location ID sets. Must be non-empty. Can only be set if all other
|
| - * fields are not set.
|
| - */
|
| + /// A list of location ID sets. Must be non-empty. Can only be set if all
|
| + /// other fields are not set.
|
| core.List<LocationIdSet> locations;
|
| - /**
|
| - * A list of inclusive number of items upper bounds. The last value can be
|
| - * "infinity". For example ["10", "50", "infinity"] represents the headers "<=
|
| - * 10 items", " 50 items". Must be non-empty. Can only be set if all other
|
| - * fields are not set.
|
| - */
|
| +
|
| + /// A list of inclusive number of items upper bounds. The last value can be
|
| + /// "infinity". For example ["10", "50", "infinity"] represents the headers
|
| + /// "<= 10 items", " 50 items". Must be non-empty. Can only be set if all
|
| + /// other fields are not set.
|
| core.List<core.String> numberOfItems;
|
| - /**
|
| - * A list of postal group names. The last value can be "all other locations".
|
| - * Example: ["zone 1", "zone 2", "all other locations"]. The referred postal
|
| - * code groups must match the delivery country of the service. Must be
|
| - * non-empty. Can only be set if all other fields are not set.
|
| - */
|
| +
|
| + /// A list of postal group names. The last value can be "all other
|
| + /// locations". Example: ["zone 1", "zone 2", "all other locations"]. The
|
| + /// referred postal code groups must match the delivery country of the
|
| + /// service. Must be non-empty. Can only be set if all other fields are not
|
| + /// set.
|
| core.List<core.String> postalCodeGroupNames;
|
| - /**
|
| - * be "infinity". For example [{"value": "10", "currency": "USD"}, {"value":
|
| - * "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]
|
| - * represents the headers "<= $10", " $500". All prices within a service must
|
| - * have the same currency. Must be non-empty. Can only be set if all other
|
| - * fields are not set.
|
| - */
|
| +
|
| + /// be "infinity". For example [{"value": "10", "currency": "USD"}, {"value":
|
| + /// "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]
|
| + /// represents the headers "<= $10", " $500". All prices within a service
|
| + /// must have the same currency. Must be non-empty. Can only be set if all
|
| + /// other fields are not set.
|
| core.List<Price> prices;
|
| - /**
|
| - * be "infinity". For example [{"value": "10", "unit": "kg"}, {"value": "50",
|
| - * "unit": "kg"}, {"value": "infinity", "unit": "kg"}] represents the headers
|
| - * "<= 10kg", " 50kg". All weights within a service must have the same unit.
|
| - * Must be non-empty. Can only be set if all other fields are not set.
|
| - */
|
| +
|
| + /// be "infinity". For example [{"value": "10", "unit": "kg"}, {"value":
|
| + /// "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}] represents the
|
| + /// headers "<= 10kg", " 50kg". All weights within a service must have the
|
| + /// same unit. Must be non-empty. Can only be set if all other fields are not
|
| + /// set.
|
| core.List<Weight> weights;
|
|
|
| Headers();
|
|
|
| Headers.fromJson(core.Map _json) {
|
| if (_json.containsKey("locations")) {
|
| - locations = _json["locations"].map((value) => new LocationIdSet.fromJson(value)).toList();
|
| + locations = _json["locations"]
|
| + .map((value) => new LocationIdSet.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("numberOfItems")) {
|
| numberOfItems = _json["numberOfItems"];
|
| @@ -5346,15 +5473,18 @@ class Headers {
|
| postalCodeGroupNames = _json["postalCodeGroupNames"];
|
| }
|
| if (_json.containsKey("prices")) {
|
| - prices = _json["prices"].map((value) => new Price.fromJson(value)).toList();
|
| + prices =
|
| + _json["prices"].map((value) => new Price.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("weights")) {
|
| - weights = _json["weights"].map((value) => new Weight.fromJson(value)).toList();
|
| + weights =
|
| + _json["weights"].map((value) => new Weight.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 (locations != null) {
|
| _json["locations"] = locations.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -5375,9 +5505,10 @@ class Headers {
|
| }
|
|
|
| class Installment {
|
| - /** The amount the buyer has to pay per month. */
|
| + /// The amount the buyer has to pay per month.
|
| Price amount;
|
| - /** The number of installments the buyer has to pay. */
|
| +
|
| + /// The number of installments the buyer has to pay.
|
| core.String months;
|
|
|
| Installment();
|
| @@ -5392,7 +5523,8 @@ class Installment {
|
| }
|
|
|
| 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();
|
| }
|
| @@ -5404,47 +5536,43 @@ class Installment {
|
| }
|
|
|
| class Inventory {
|
| - /** The availability of the product. */
|
| + /// The availability of the product.
|
| core.String availability;
|
| - /** Number and amount of installments to pay for an item. Brazil only. */
|
| +
|
| + /// Number and amount of installments to pay for an item. Brazil only.
|
| Installment installment;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#inventory".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#inventory".
|
| core.String kind;
|
| - /**
|
| - * Loyalty points that users receive after purchasing the item. Japan only.
|
| - */
|
| +
|
| + /// Loyalty points that users receive after purchasing the item. Japan only.
|
| LoyaltyPoints loyaltyPoints;
|
| - /**
|
| - * Store pickup information. Only supported for local inventory. Not setting
|
| - * pickup means "don't update" while setting it to the empty value ({} in
|
| - * JSON) means "delete". Otherwise, pickupMethod and pickupSla must be set
|
| - * together, unless pickupMethod is "not supported".
|
| - */
|
| +
|
| + /// Store pickup information. Only supported for local inventory. Not setting
|
| + /// pickup means "don't update" while setting it to the empty value ({} in
|
| + /// JSON) means "delete". Otherwise, pickupMethod and pickupSla must be set
|
| + /// together, unless pickupMethod is "not supported".
|
| InventoryPickup pickup;
|
| - /** The price of the product. */
|
| +
|
| + /// The price of the product.
|
| Price price;
|
| - /**
|
| - * The quantity of the product. Must be equal to or greater than zero.
|
| - * Supported only for local products.
|
| - */
|
| +
|
| + /// The quantity of the product. Must be equal to or greater than zero.
|
| + /// Supported only for local products.
|
| core.int quantity;
|
| - /**
|
| - * The sale price of the product. Mandatory if sale_price_effective_date is
|
| - * defined.
|
| - */
|
| +
|
| + /// The sale price of the product. Mandatory if sale_price_effective_date is
|
| + /// defined.
|
| Price salePrice;
|
| - /**
|
| - * A date range represented by a pair of ISO 8601 dates separated by a space,
|
| - * comma, or slash. Both dates might be specified as 'null' if undecided.
|
| - */
|
| +
|
| + /// A date range represented by a pair of ISO 8601 dates separated by a
|
| + /// space, comma, or slash. Both dates might be specified as 'null' if
|
| + /// undecided.
|
| core.String salePriceEffectiveDate;
|
| - /**
|
| - * The quantity of the product that is reserved for sell-on-google ads.
|
| - * Supported only for online products.
|
| - */
|
| +
|
| + /// The quantity of the product that is reserved for sell-on-google ads.
|
| + /// Supported only for online products.
|
| core.int sellOnGoogleQuantity;
|
|
|
| Inventory();
|
| @@ -5483,7 +5611,8 @@ class Inventory {
|
| }
|
|
|
| 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 (availability != null) {
|
| _json["availability"] = availability;
|
| }
|
| @@ -5519,19 +5648,22 @@ class Inventory {
|
| }
|
|
|
| class InventoryCustomBatchRequest {
|
| - /** The request entries to be processed in the batch. */
|
| + /// The request entries to be processed in the batch.
|
| core.List<InventoryCustomBatchRequestEntry> entries;
|
|
|
| InventoryCustomBatchRequest();
|
|
|
| InventoryCustomBatchRequest.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new InventoryCustomBatchRequestEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) => new InventoryCustomBatchRequestEntry.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();
|
| }
|
| @@ -5539,20 +5671,22 @@ class InventoryCustomBatchRequest {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch inventory request. */
|
| +/// A batch entry encoding a single non-batch inventory request.
|
| class InventoryCustomBatchRequestEntry {
|
| - /** An entry ID, unique within the batch request. */
|
| + /// An entry ID, unique within the batch request.
|
| core.int batchId;
|
| - /** Price and availability of the product. */
|
| +
|
| + /// Price and availability of the product.
|
| Inventory inventory;
|
| - /** The ID of the managing account. */
|
| +
|
| + /// The ID of the managing account.
|
| core.String merchantId;
|
| - /** The ID of the product for which to update price and availability. */
|
| +
|
| + /// The ID of the product for which to update price and availability.
|
| core.String productId;
|
| - /**
|
| - * The code of the store for which to update price and availability. Use
|
| - * online to update price and availability of an online product.
|
| - */
|
| +
|
| + /// The code of the store for which to update price and availability. Use
|
| + /// online to update price and availability of an online product.
|
| core.String storeCode;
|
|
|
| InventoryCustomBatchRequestEntry();
|
| @@ -5576,7 +5710,8 @@ class InventoryCustomBatchRequestEntry {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -5597,19 +5732,20 @@ class InventoryCustomBatchRequestEntry {
|
| }
|
|
|
| class InventoryCustomBatchResponse {
|
| - /** The result of the execution of the batch requests. */
|
| + /// The result of the execution of the batch requests.
|
| core.List<InventoryCustomBatchResponseEntry> entries;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#inventoryCustomBatchResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#inventoryCustomBatchResponse".
|
| core.String kind;
|
|
|
| InventoryCustomBatchResponse();
|
|
|
| InventoryCustomBatchResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new InventoryCustomBatchResponseEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) => new InventoryCustomBatchResponseEntry.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -5617,7 +5753,8 @@ class InventoryCustomBatchResponse {
|
| }
|
|
|
| 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();
|
| }
|
| @@ -5628,16 +5765,16 @@ class InventoryCustomBatchResponse {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch inventory response. */
|
| +/// A batch entry encoding a single non-batch inventory response.
|
| class InventoryCustomBatchResponseEntry {
|
| - /** 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;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#inventoryCustomBatchResponseEntry".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#inventoryCustomBatchResponseEntry".
|
| core.String kind;
|
|
|
| InventoryCustomBatchResponseEntry();
|
| @@ -5655,7 +5792,8 @@ class InventoryCustomBatchResponseEntry {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -5670,18 +5808,15 @@ class InventoryCustomBatchResponseEntry {
|
| }
|
|
|
| class InventoryPickup {
|
| - /**
|
| - * Whether store pickup is available for this offer and whether the pickup
|
| - * option should be shown as buy, reserve, or not supported. Only supported
|
| - * for local inventory. Unless the value is "not supported", must be submitted
|
| - * together with pickupSla.
|
| - */
|
| + /// Whether store pickup is available for this offer and whether the pickup
|
| + /// option should be shown as buy, reserve, or not supported. Only supported
|
| + /// for local inventory. Unless the value is "not supported", must be
|
| + /// submitted together with pickupSla.
|
| core.String pickupMethod;
|
| - /**
|
| - * The expected date that an order will be ready for pickup, relative to when
|
| - * the order is placed. Only supported for local inventory. Must be submitted
|
| - * together with pickupMethod.
|
| - */
|
| +
|
| + /// The expected date that an order will be ready for pickup, relative to
|
| + /// when the order is placed. Only supported for local inventory. Must be
|
| + /// submitted together with pickupMethod.
|
| core.String pickupSla;
|
|
|
| InventoryPickup();
|
| @@ -5696,7 +5831,8 @@ class InventoryPickup {
|
| }
|
|
|
| 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 (pickupMethod != null) {
|
| _json["pickupMethod"] = pickupMethod;
|
| }
|
| @@ -5708,42 +5844,39 @@ class InventoryPickup {
|
| }
|
|
|
| class InventorySetRequest {
|
| - /** The availability of the product. */
|
| + /// The availability of the product.
|
| core.String availability;
|
| - /** Number and amount of installments to pay for an item. Brazil only. */
|
| +
|
| + /// Number and amount of installments to pay for an item. Brazil only.
|
| Installment installment;
|
| - /**
|
| - * Loyalty points that users receive after purchasing the item. Japan only.
|
| - */
|
| +
|
| + /// Loyalty points that users receive after purchasing the item. Japan only.
|
| LoyaltyPoints loyaltyPoints;
|
| - /**
|
| - * Store pickup information. Only supported for local inventory. Not setting
|
| - * pickup means "don't update" while setting it to the empty value ({} in
|
| - * JSON) means "delete". Otherwise, pickupMethod and pickupSla must be set
|
| - * together, unless pickupMethod is "not supported".
|
| - */
|
| +
|
| + /// Store pickup information. Only supported for local inventory. Not setting
|
| + /// pickup means "don't update" while setting it to the empty value ({} in
|
| + /// JSON) means "delete". Otherwise, pickupMethod and pickupSla must be set
|
| + /// together, unless pickupMethod is "not supported".
|
| InventoryPickup pickup;
|
| - /** The price of the product. */
|
| +
|
| + /// The price of the product.
|
| Price price;
|
| - /**
|
| - * The quantity of the product. Must be equal to or greater than zero.
|
| - * Supported only for local products.
|
| - */
|
| +
|
| + /// The quantity of the product. Must be equal to or greater than zero.
|
| + /// Supported only for local products.
|
| core.int quantity;
|
| - /**
|
| - * The sale price of the product. Mandatory if sale_price_effective_date is
|
| - * defined.
|
| - */
|
| +
|
| + /// The sale price of the product. Mandatory if sale_price_effective_date is
|
| + /// defined.
|
| Price salePrice;
|
| - /**
|
| - * A date range represented by a pair of ISO 8601 dates separated by a space,
|
| - * comma, or slash. Both dates might be specified as 'null' if undecided.
|
| - */
|
| +
|
| + /// A date range represented by a pair of ISO 8601 dates separated by a
|
| + /// space, comma, or slash. Both dates might be specified as 'null' if
|
| + /// undecided.
|
| core.String salePriceEffectiveDate;
|
| - /**
|
| - * The quantity of the product that is reserved for sell-on-google ads.
|
| - * Supported only for online products.
|
| - */
|
| +
|
| + /// The quantity of the product that is reserved for sell-on-google ads.
|
| + /// Supported only for online products.
|
| core.int sellOnGoogleQuantity;
|
|
|
| InventorySetRequest();
|
| @@ -5779,7 +5912,8 @@ class InventorySetRequest {
|
| }
|
|
|
| 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 (availability != null) {
|
| _json["availability"] = availability;
|
| }
|
| @@ -5812,10 +5946,8 @@ class InventorySetRequest {
|
| }
|
|
|
| class InventorySetResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#inventorySetResponse".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#inventorySetResponse".
|
| core.String kind;
|
|
|
| InventorySetResponse();
|
| @@ -5827,7 +5959,8 @@ class InventorySetResponse {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -5836,10 +5969,8 @@ class InventorySetResponse {
|
| }
|
|
|
| class LocationIdSet {
|
| - /**
|
| - * A non-empty list of location IDs. They must all be of the same location
|
| - * type (e.g., state).
|
| - */
|
| + /// A non-empty list of location IDs. They must all be of the same location
|
| + /// type (e.g., state).
|
| core.List<core.String> locationIds;
|
|
|
| LocationIdSet();
|
| @@ -5851,7 +5982,8 @@ class LocationIdSet {
|
| }
|
|
|
| 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 (locationIds != null) {
|
| _json["locationIds"] = locationIds;
|
| }
|
| @@ -5860,18 +5992,16 @@ class LocationIdSet {
|
| }
|
|
|
| class LoyaltyPoints {
|
| - /**
|
| - * Name of loyalty points program. It is recommended to limit the name to 12
|
| - * full-width characters or 24 Roman characters.
|
| - */
|
| + /// Name of loyalty points program. It is recommended to limit the name to 12
|
| + /// full-width characters or 24 Roman characters.
|
| core.String name;
|
| - /** The retailer's loyalty points in absolute value. */
|
| +
|
| + /// The retailer's loyalty points in absolute value.
|
| core.String pointsValue;
|
| - /**
|
| - * The ratio of a point when converted to currency. Google assumes currency
|
| - * based on Merchant Center settings. If ratio is left out, it defaults to
|
| - * 1.0.
|
| - */
|
| +
|
| + /// The ratio of a point when converted to currency. Google assumes currency
|
| + /// based on Merchant Center settings. If ratio is left out, it defaults to
|
| + /// 1.0.
|
| core.double ratio;
|
|
|
| LoyaltyPoints();
|
| @@ -5889,7 +6019,8 @@ class LoyaltyPoints {
|
| }
|
|
|
| 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 (name != null) {
|
| _json["name"] = name;
|
| }
|
| @@ -5904,54 +6035,66 @@ class LoyaltyPoints {
|
| }
|
|
|
| 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();
|
| @@ -5967,7 +6110,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"];
|
| @@ -5976,7 +6120,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"];
|
| @@ -5997,13 +6143,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"]);
|
| @@ -6020,7 +6172,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;
|
| }
|
| @@ -6061,7 +6214,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();
|
| @@ -6086,31 +6240,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();
|
| @@ -6143,7 +6300,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;
|
| }
|
| @@ -6173,19 +6331,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();
|
| @@ -6209,7 +6370,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;
|
| }
|
| @@ -6230,16 +6392,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();
|
| @@ -6257,7 +6420,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;
|
| }
|
| @@ -6272,9 +6436,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();
|
| @@ -6289,7 +6454,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();
|
| }
|
| @@ -6301,46 +6467,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"];
|
| @@ -6373,10 +6551,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"]);
|
| @@ -6384,9 +6565,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;
|
| @@ -6432,39 +6615,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();
|
| @@ -6513,12 +6708,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;
|
| }
|
| @@ -6562,16 +6761,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();
|
| @@ -6586,7 +6787,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;
|
| }
|
| @@ -6598,11 +6800,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();
|
| @@ -6620,7 +6824,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;
|
| }
|
| @@ -6635,11 +6840,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();
|
| @@ -6657,7 +6864,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;
|
| }
|
| @@ -6672,13 +6880,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();
|
| @@ -6699,7 +6910,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;
|
| }
|
| @@ -6717,17 +6929,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();
|
| @@ -6754,7 +6971,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();
|
| }
|
| @@ -6779,39 +6997,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"];
|
| @@ -6834,7 +7054,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();
|
| }
|
| @@ -6861,24 +7082,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();
|
| @@ -6902,7 +7121,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();
|
| }
|
| @@ -6923,15 +7143,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();
|
| @@ -6955,7 +7179,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;
|
| }
|
| @@ -6976,15 +7201,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();
|
| @@ -7008,7 +7237,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;
|
| }
|
| @@ -7029,22 +7259,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();
|
| @@ -7063,7 +7297,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"];
|
| @@ -7074,7 +7310,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;
|
| }
|
| @@ -7101,9 +7338,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();
|
| @@ -7118,7 +7356,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;
|
| }
|
| @@ -7130,9 +7369,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();
|
| @@ -7144,7 +7381,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;
|
| }
|
| @@ -7153,12 +7391,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();
|
| @@ -7173,7 +7410,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;
|
| }
|
| @@ -7185,10 +7423,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();
|
| @@ -7200,7 +7436,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;
|
| }
|
| @@ -7209,23 +7446,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();
|
| @@ -7252,7 +7490,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();
|
| }
|
| @@ -7276,12 +7515,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();
|
| @@ -7296,7 +7534,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;
|
| }
|
| @@ -7308,13 +7547,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();
|
| @@ -7332,7 +7571,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;
|
| }
|
| @@ -7347,12 +7587,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();
|
| @@ -7367,7 +7606,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;
|
| }
|
| @@ -7379,13 +7619,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();
|
| @@ -7400,7 +7639,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;
|
| }
|
| @@ -7412,12 +7652,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();
|
| @@ -7432,7 +7671,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;
|
| }
|
| @@ -7444,19 +7684,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();
|
| }
|
| @@ -7465,37 +7708,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();
|
| @@ -7505,10 +7754,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"];
|
| @@ -7526,21 +7777,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;
|
| }
|
| @@ -7582,9 +7838,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();
|
| @@ -7599,7 +7856,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;
|
| }
|
| @@ -7611,19 +7869,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();
|
| @@ -7647,7 +7907,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();
|
| }
|
| @@ -7668,11 +7929,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();
|
| @@ -7690,7 +7953,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();
|
| }
|
| @@ -7705,13 +7969,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();
|
| @@ -7732,7 +7999,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;
|
| }
|
| @@ -7750,13 +8018,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();
|
| @@ -7766,7 +8037,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"];
|
| @@ -7777,7 +8050,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;
|
| }
|
| @@ -7795,13 +8069,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();
|
| @@ -7822,7 +8099,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;
|
| }
|
| @@ -7840,19 +8118,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"];
|
| @@ -7860,7 +8139,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();
|
| }
|
| @@ -7872,24 +8152,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();
|
| @@ -7913,7 +8191,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;
|
| }
|
| @@ -7934,12 +8213,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();
|
| @@ -7954,7 +8232,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;
|
| }
|
| @@ -7966,12 +8245,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();
|
| @@ -7986,7 +8264,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;
|
| }
|
| @@ -7998,12 +8277,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;
|
|
|
| @@ -8017,12 +8295,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;
|
| }
|
| @@ -8037,15 +8317,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();
|
| @@ -8066,7 +8347,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();
|
| }
|
| @@ -8084,12 +8366,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();
|
| @@ -8104,7 +8385,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;
|
| }
|
| @@ -8116,17 +8398,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();
|
| @@ -8150,7 +8434,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;
|
| }
|
| @@ -8171,12 +8456,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();
|
| @@ -8191,7 +8475,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;
|
| }
|
| @@ -8203,17 +8488,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();
|
| @@ -8223,7 +8510,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"];
|
| @@ -8237,7 +8526,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;
|
| }
|
| @@ -8258,12 +8548,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();
|
| @@ -8278,7 +8567,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;
|
| }
|
| @@ -8290,14 +8580,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();
|
| @@ -8312,7 +8599,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;
|
| }
|
| @@ -8324,12 +8612,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();
|
| @@ -8344,7 +8631,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;
|
| }
|
| @@ -8356,17 +8644,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();
|
| @@ -8390,7 +8680,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;
|
| }
|
| @@ -8411,12 +8702,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();
|
| @@ -8431,7 +8721,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;
|
| }
|
| @@ -8443,14 +8734,14 @@ class OrdersUpdateShipmentResponse {
|
| }
|
|
|
| class PostalCodeGroup {
|
| - /**
|
| - * The CLDR territory code of the country the postal code group applies to.
|
| - * Required.
|
| - */
|
| + /// The CLDR territory code of the country the postal code group applies to.
|
| + /// Required.
|
| core.String country;
|
| - /** The name of the postal code group, referred to in headers. Required. */
|
| +
|
| + /// The name of the postal code group, referred to in headers. Required.
|
| core.String name;
|
| - /** A range of postal codes. Required. */
|
| +
|
| + /// A range of postal codes. Required.
|
| core.List<PostalCodeRange> postalCodeRanges;
|
|
|
| PostalCodeGroup();
|
| @@ -8463,12 +8754,15 @@ class PostalCodeGroup {
|
| name = _json["name"];
|
| }
|
| if (_json.containsKey("postalCodeRanges")) {
|
| - postalCodeRanges = _json["postalCodeRanges"].map((value) => new PostalCodeRange.fromJson(value)).toList();
|
| + postalCodeRanges = _json["postalCodeRanges"]
|
| + .map((value) => new PostalCodeRange.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 (country != null) {
|
| _json["country"] = country;
|
| }
|
| @@ -8476,28 +8770,26 @@ class PostalCodeGroup {
|
| _json["name"] = name;
|
| }
|
| if (postalCodeRanges != null) {
|
| - _json["postalCodeRanges"] = postalCodeRanges.map((value) => (value).toJson()).toList();
|
| + _json["postalCodeRanges"] =
|
| + postalCodeRanges.map((value) => (value).toJson()).toList();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| class PostalCodeRange {
|
| - /**
|
| - * A postal code or a pattern of the form prefix* denoting the inclusive lower
|
| - * bound of the range defining the area. Examples values: "94108", "9410*",
|
| - * "9*". Required.
|
| - */
|
| + /// A postal code or a pattern of the form prefix* denoting the inclusive
|
| + /// lower bound of the range defining the area. Examples values: "94108",
|
| + /// "9410*", "9*". Required.
|
| core.String postalCodeRangeBegin;
|
| - /**
|
| - * A postal code or a pattern of the form prefix* denoting the inclusive upper
|
| - * bound of the range defining the area. It must have the same length as
|
| - * postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then
|
| - * postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a
|
| - * pattern then postalCodeRangeEnd must be a pattern with the same prefix
|
| - * length. Optional: if not set, then the area is defined as being all the
|
| - * postal codes matching postalCodeRangeBegin.
|
| - */
|
| +
|
| + /// A postal code or a pattern of the form prefix* denoting the inclusive
|
| + /// upper bound of the range defining the area. It must have the same length
|
| + /// as postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then
|
| + /// postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is
|
| + /// a pattern then postalCodeRangeEnd must be a pattern with the same prefix
|
| + /// length. Optional: if not set, then the area is defined as being all the
|
| + /// postal codes matching postalCodeRangeBegin.
|
| core.String postalCodeRangeEnd;
|
|
|
| PostalCodeRange();
|
| @@ -8512,7 +8804,8 @@ class PostalCodeRange {
|
| }
|
|
|
| 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 (postalCodeRangeBegin != null) {
|
| _json["postalCodeRangeBegin"] = postalCodeRangeBegin;
|
| }
|
| @@ -8524,9 +8817,10 @@ class PostalCodeRange {
|
| }
|
|
|
| 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();
|
| @@ -8541,7 +8835,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;
|
| }
|
| @@ -8552,204 +8847,249 @@ class Price {
|
| }
|
| }
|
|
|
| -/** Product data. */
|
| +/// Product data.
|
| class Product {
|
| - /** Additional URLs of images of the item. */
|
| + /// Additional URLs of images of the item.
|
| core.List<core.String> additionalImageLinks;
|
| - /**
|
| - * Additional categories of the item (formatted as in products feed
|
| - * specification).
|
| - */
|
| +
|
| + /// Additional categories of the item (formatted as in products feed
|
| + /// specification).
|
| core.List<core.String> additionalProductTypes;
|
| - /** Set to true if the item is targeted towards adults. */
|
| +
|
| + /// Set to true if the item is targeted towards adults.
|
| core.bool adult;
|
| - /**
|
| - * Used to group items in an arbitrary way. Only for CPA%, discouraged
|
| - * otherwise.
|
| - */
|
| +
|
| + /// Used to group items in an arbitrary way. Only for CPA%, discouraged
|
| + /// otherwise.
|
| core.String adwordsGrouping;
|
| - /** Similar to adwords_grouping, but only works on CPC. */
|
| +
|
| + /// Similar to adwords_grouping, but only works on CPC.
|
| core.List<core.String> adwordsLabels;
|
| - /**
|
| - * Allows advertisers to override the item URL when the product is shown
|
| - * within the context of Product Ads.
|
| - */
|
| +
|
| + /// Allows advertisers to override the item URL when the product is shown
|
| + /// within the context of Product Ads.
|
| core.String adwordsRedirect;
|
| - /** Target age group of the item. */
|
| +
|
| + /// Target age group of the item.
|
| core.String ageGroup;
|
| - /** Specifies the intended aspects for the product. */
|
| +
|
| + /// Specifies the intended aspects for the product.
|
| core.List<ProductAspect> aspects;
|
| - /** Availability status of the item. */
|
| +
|
| + /// Availability status of the item.
|
| core.String availability;
|
| - /**
|
| - * The day a pre-ordered product becomes available for delivery, in ISO 8601
|
| - * format.
|
| - */
|
| +
|
| + /// The day a pre-ordered product becomes available for delivery, in ISO 8601
|
| + /// format.
|
| core.String availabilityDate;
|
| - /** 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;
|
| - /** Color of the item. */
|
| +
|
| + /// Color of the item.
|
| core.String color;
|
| - /** 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;
|
| - /**
|
| - * A list of custom (merchant-provided) attributes. It can also be used for
|
| - * submitting any attribute of the feed specification in its generic form
|
| - * (e.g., { "name": "size type", "type": "text", "value": "regular" }). This
|
| - * is useful for submitting attributes not explicitly exposed by the API.
|
| - */
|
| +
|
| + /// A list of custom (merchant-provided) attributes. It can also be used for
|
| + /// submitting any attribute of the feed specification in its generic form
|
| + /// (e.g., { "name": "size type", "type": "text", "value": "regular" }). This
|
| + /// is useful for submitting attributes not explicitly exposed by the API.
|
| core.List<ProductCustomAttribute> customAttributes;
|
| - /** A list of custom (merchant-provided) custom attribute groups. */
|
| +
|
| + /// A list of custom (merchant-provided) custom attribute groups.
|
| core.List<ProductCustomGroup> customGroups;
|
| - /** Custom label 0 for custom grouping of items in a Shopping campaign. */
|
| +
|
| + /// Custom label 0 for custom grouping of items in a Shopping campaign.
|
| core.String customLabel0;
|
| - /** Custom label 1 for custom grouping of items in a Shopping campaign. */
|
| +
|
| + /// Custom label 1 for custom grouping of items in a Shopping campaign.
|
| core.String customLabel1;
|
| - /** Custom label 2 for custom grouping of items in a Shopping campaign. */
|
| +
|
| + /// Custom label 2 for custom grouping of items in a Shopping campaign.
|
| core.String customLabel2;
|
| - /** Custom label 3 for custom grouping of items in a Shopping campaign. */
|
| +
|
| + /// Custom label 3 for custom grouping of items in a Shopping campaign.
|
| core.String customLabel3;
|
| - /** Custom label 4 for custom grouping of items in a Shopping campaign. */
|
| +
|
| + /// Custom label 4 for custom grouping of items in a Shopping campaign.
|
| core.String customLabel4;
|
| - /** Description of the item. */
|
| +
|
| + /// Description of the item.
|
| core.String description;
|
| - /** Specifies the intended destinations for the product. */
|
| +
|
| + /// Specifies the intended destinations for the product.
|
| core.List<ProductDestination> destinations;
|
| - /** An identifier for an item for dynamic remarketing campaigns. */
|
| +
|
| + /// An identifier for an item for dynamic remarketing campaigns.
|
| core.String displayAdsId;
|
| - /**
|
| - * URL directly to your item's landing page for dynamic remarketing campaigns.
|
| - */
|
| +
|
| + /// URL directly to your item's landing page for dynamic remarketing
|
| + /// campaigns.
|
| core.String displayAdsLink;
|
| - /** Advertiser-specified recommendations. */
|
| +
|
| + /// Advertiser-specified recommendations.
|
| core.List<core.String> displayAdsSimilarIds;
|
| - /** Title of an item for dynamic remarketing campaigns. */
|
| +
|
| + /// Title of an item for dynamic remarketing campaigns.
|
| core.String displayAdsTitle;
|
| - /** Offer margin for dynamic remarketing campaigns. */
|
| +
|
| + /// Offer margin for dynamic remarketing campaigns.
|
| core.double displayAdsValue;
|
| - /** The energy efficiency class as defined in EU directive 2010/30/EU. */
|
| +
|
| + /// The energy efficiency class as defined in EU directive 2010/30/EU.
|
| core.String energyEfficiencyClass;
|
| - /**
|
| - * Date on which the item should expire, as specified upon insertion, in ISO
|
| - * 8601 format. The actual expiration date in Google Shopping is exposed in
|
| - * productstatuses as googleExpirationDate and might be earlier if
|
| - * expirationDate is too far in the future.
|
| - */
|
| +
|
| + /// Date on which the item should expire, as specified upon insertion, in ISO
|
| + /// 8601 format. The actual expiration date in Google Shopping is exposed in
|
| + /// productstatuses as googleExpirationDate and might be earlier if
|
| + /// expirationDate is too far in the future.
|
| core.String expirationDate;
|
| - /** Target gender of the item. */
|
| +
|
| + /// Target gender of the item.
|
| core.String gender;
|
| - /** Google's category of the item (see Google product taxonomy). */
|
| +
|
| + /// Google's category of the item (see Google product taxonomy).
|
| core.String googleProductCategory;
|
| - /** 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;
|
| - /**
|
| - * False when the item does not have unique product identifiers appropriate to
|
| - * its category, such as GTIN, MPN, and brand. Required according to the
|
| - * Unique Product Identifier Rules for all target countries except for Canada.
|
| - */
|
| +
|
| + /// False when the item does not have unique product identifiers appropriate
|
| + /// to its category, such as GTIN, MPN, and brand. Required according to the
|
| + /// Unique Product Identifier Rules for all target countries except for
|
| + /// Canada.
|
| core.bool identifierExists;
|
| - /** URL of an image of the item. */
|
| +
|
| + /// URL of an image of the item.
|
| core.String imageLink;
|
| - /** Number and amount of installments to pay for an item. Brazil only. */
|
| +
|
| + /// Number and amount of installments to pay for an item. Brazil only.
|
| Installment installment;
|
| - /**
|
| - * Whether the item is a merchant-defined bundle. A bundle is a custom
|
| - * grouping of different products sold by a merchant for a single price.
|
| - */
|
| +
|
| + /// Whether the item is a merchant-defined bundle. A bundle is a custom
|
| + /// grouping of different products sold by a merchant for a single price.
|
| core.bool isBundle;
|
| - /** Shared identifier for all variants of the same product. */
|
| +
|
| + /// Shared identifier for all variants of the same product.
|
| core.String itemGroupId;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#product".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#product".
|
| core.String kind;
|
| - /** URL directly linking to your item's page on your website. */
|
| +
|
| + /// URL directly linking to your item's page on your website.
|
| core.String link;
|
| - /**
|
| - * Loyalty points that users receive after purchasing the item. Japan only.
|
| - */
|
| +
|
| + /// Loyalty points that users receive after purchasing the item. Japan only.
|
| LoyaltyPoints loyaltyPoints;
|
| - /** The material of which the item is made. */
|
| +
|
| + /// The material of which the item is made.
|
| core.String material;
|
| - /** Maximal product handling time (in business days). */
|
| +
|
| + /// Maximal product handling time (in business days).
|
| core.String maxHandlingTime;
|
| - /** Minimal product handling time (in business days). */
|
| +
|
| + /// Minimal product handling time (in business days).
|
| core.String minHandlingTime;
|
| - /** Link to a mobile-optimized version of the landing page. */
|
| +
|
| + /// Link to a mobile-optimized version of the landing page.
|
| core.String mobileLink;
|
| - /** Manufacturer Part Number (MPN) of the item. */
|
| +
|
| + /// Manufacturer Part Number (MPN) of the item.
|
| core.String mpn;
|
| - /** The number of identical products in a merchant-defined multipack. */
|
| +
|
| + /// The number of identical products in a merchant-defined multipack.
|
| core.String multipack;
|
| - /**
|
| - * An identifier of the item. Leading and trailing whitespaces are stripped
|
| - * and multiple whitespaces are replaced by a single whitespace upon
|
| - * submission. Only valid unicode characters are accepted. See the products
|
| - * feed specification for details.
|
| - */
|
| +
|
| + /// An identifier of the item. Leading and trailing whitespaces are stripped
|
| + /// and multiple whitespaces are replaced by a single whitespace upon
|
| + /// submission. Only valid unicode characters are accepted. See the products
|
| + /// feed specification for details.
|
| core.String offerId;
|
| - /** Whether an item is available for purchase only online. */
|
| +
|
| + /// Whether an item is available for purchase only online.
|
| core.bool onlineOnly;
|
| - /** The item's pattern (e.g. polka dots). */
|
| +
|
| + /// The item's pattern (e.g. polka dots).
|
| core.String pattern;
|
| - /** Price of the item. */
|
| +
|
| + /// Price of the item.
|
| Price price;
|
| - /**
|
| - * Your category of the item (formatted as in products feed specification).
|
| - */
|
| +
|
| + /// Your category of the item (formatted as in products feed specification).
|
| core.String productType;
|
| - /** The unique ID of a promotion. */
|
| +
|
| + /// The unique ID of a promotion.
|
| core.List<core.String> promotionIds;
|
| - /** Advertised sale price of the item. */
|
| +
|
| + /// Advertised sale price of the item.
|
| Price salePrice;
|
| - /**
|
| - * Date range during which the item is on sale (see products feed
|
| - * specification).
|
| - */
|
| +
|
| + /// Date range during which the item is on sale (see products feed
|
| + /// specification).
|
| core.String salePriceEffectiveDate;
|
| - /** The quantity of the product that is reserved for sell-on-google ads. */
|
| +
|
| + /// The quantity of the product that is reserved for sell-on-google ads.
|
| core.String sellOnGoogleQuantity;
|
| - /** Shipping rules. */
|
| +
|
| + /// Shipping rules.
|
| core.List<ProductShipping> shipping;
|
| - /** Height of the item for shipping. */
|
| +
|
| + /// Height of the item for shipping.
|
| ProductShippingDimension shippingHeight;
|
| - /**
|
| - * The shipping label of the product, used to group product in account-level
|
| - * shipping rules.
|
| - */
|
| +
|
| + /// The shipping label of the product, used to group product in account-level
|
| + /// shipping rules.
|
| core.String shippingLabel;
|
| - /** Length of the item for shipping. */
|
| +
|
| + /// Length of the item for shipping.
|
| ProductShippingDimension shippingLength;
|
| - /** Weight of the item for shipping. */
|
| +
|
| + /// Weight of the item for shipping.
|
| ProductShippingWeight shippingWeight;
|
| - /** Width of the item for shipping. */
|
| +
|
| + /// Width of the item for shipping.
|
| ProductShippingDimension shippingWidth;
|
| - /** System in which the size is specified. Recommended for apparel items. */
|
| +
|
| + /// System in which the size is specified. Recommended for apparel items.
|
| core.String sizeSystem;
|
| - /** The cut of the item. Recommended for apparel items. */
|
| +
|
| + /// The cut of the item. Recommended for apparel items.
|
| core.String sizeType;
|
| - /** Size of the item. */
|
| +
|
| + /// Size of the item.
|
| core.List<core.String> sizes;
|
| - /** The CLDR territory code for the item. */
|
| +
|
| + /// The CLDR territory code for the item.
|
| core.String targetCountry;
|
| - /** Tax information. */
|
| +
|
| + /// Tax information.
|
| core.List<ProductTax> taxes;
|
| - /** Title of the item. */
|
| +
|
| + /// Title of the item.
|
| core.String title;
|
| - /** The preference of the denominator of the unit price. */
|
| +
|
| + /// The preference of the denominator of the unit price.
|
| ProductUnitPricingBaseMeasure unitPricingBaseMeasure;
|
| - /** The measure and dimension of an item. */
|
| +
|
| + /// The measure and dimension of an item.
|
| ProductUnitPricingMeasure unitPricingMeasure;
|
| - /** The read-only list of intended destinations which passed validation. */
|
| +
|
| + /// The read-only list of intended destinations which passed validation.
|
| core.List<core.String> validatedDestinations;
|
| - /** Read-only warnings. */
|
| +
|
| + /// Read-only warnings.
|
| core.List<Error> warnings;
|
|
|
| Product();
|
| @@ -8777,7 +9117,9 @@ class Product {
|
| ageGroup = _json["ageGroup"];
|
| }
|
| if (_json.containsKey("aspects")) {
|
| - aspects = _json["aspects"].map((value) => new ProductAspect.fromJson(value)).toList();
|
| + aspects = _json["aspects"]
|
| + .map((value) => new ProductAspect.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("availability")) {
|
| availability = _json["availability"];
|
| @@ -8801,10 +9143,14 @@ class Product {
|
| contentLanguage = _json["contentLanguage"];
|
| }
|
| if (_json.containsKey("customAttributes")) {
|
| - customAttributes = _json["customAttributes"].map((value) => new ProductCustomAttribute.fromJson(value)).toList();
|
| + customAttributes = _json["customAttributes"]
|
| + .map((value) => new ProductCustomAttribute.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("customGroups")) {
|
| - customGroups = _json["customGroups"].map((value) => new ProductCustomGroup.fromJson(value)).toList();
|
| + customGroups = _json["customGroups"]
|
| + .map((value) => new ProductCustomGroup.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("customLabel0")) {
|
| customLabel0 = _json["customLabel0"];
|
| @@ -8825,7 +9171,9 @@ class Product {
|
| description = _json["description"];
|
| }
|
| if (_json.containsKey("destinations")) {
|
| - destinations = _json["destinations"].map((value) => new ProductDestination.fromJson(value)).toList();
|
| + destinations = _json["destinations"]
|
| + .map((value) => new ProductDestination.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("displayAdsId")) {
|
| displayAdsId = _json["displayAdsId"];
|
| @@ -8930,22 +9278,28 @@ class Product {
|
| sellOnGoogleQuantity = _json["sellOnGoogleQuantity"];
|
| }
|
| if (_json.containsKey("shipping")) {
|
| - shipping = _json["shipping"].map((value) => new ProductShipping.fromJson(value)).toList();
|
| + shipping = _json["shipping"]
|
| + .map((value) => new ProductShipping.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("shippingHeight")) {
|
| - shippingHeight = new ProductShippingDimension.fromJson(_json["shippingHeight"]);
|
| + shippingHeight =
|
| + new ProductShippingDimension.fromJson(_json["shippingHeight"]);
|
| }
|
| if (_json.containsKey("shippingLabel")) {
|
| shippingLabel = _json["shippingLabel"];
|
| }
|
| if (_json.containsKey("shippingLength")) {
|
| - shippingLength = new ProductShippingDimension.fromJson(_json["shippingLength"]);
|
| + shippingLength =
|
| + new ProductShippingDimension.fromJson(_json["shippingLength"]);
|
| }
|
| if (_json.containsKey("shippingWeight")) {
|
| - shippingWeight = new ProductShippingWeight.fromJson(_json["shippingWeight"]);
|
| + shippingWeight =
|
| + new ProductShippingWeight.fromJson(_json["shippingWeight"]);
|
| }
|
| if (_json.containsKey("shippingWidth")) {
|
| - shippingWidth = new ProductShippingDimension.fromJson(_json["shippingWidth"]);
|
| + shippingWidth =
|
| + new ProductShippingDimension.fromJson(_json["shippingWidth"]);
|
| }
|
| if (_json.containsKey("sizeSystem")) {
|
| sizeSystem = _json["sizeSystem"];
|
| @@ -8960,27 +9314,33 @@ class Product {
|
| targetCountry = _json["targetCountry"];
|
| }
|
| if (_json.containsKey("taxes")) {
|
| - taxes = _json["taxes"].map((value) => new ProductTax.fromJson(value)).toList();
|
| + taxes = _json["taxes"]
|
| + .map((value) => new ProductTax.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("title")) {
|
| title = _json["title"];
|
| }
|
| if (_json.containsKey("unitPricingBaseMeasure")) {
|
| - unitPricingBaseMeasure = new ProductUnitPricingBaseMeasure.fromJson(_json["unitPricingBaseMeasure"]);
|
| + unitPricingBaseMeasure = new ProductUnitPricingBaseMeasure.fromJson(
|
| + _json["unitPricingBaseMeasure"]);
|
| }
|
| if (_json.containsKey("unitPricingMeasure")) {
|
| - unitPricingMeasure = new ProductUnitPricingMeasure.fromJson(_json["unitPricingMeasure"]);
|
| + unitPricingMeasure =
|
| + new ProductUnitPricingMeasure.fromJson(_json["unitPricingMeasure"]);
|
| }
|
| if (_json.containsKey("validatedDestinations")) {
|
| validatedDestinations = _json["validatedDestinations"];
|
| }
|
| if (_json.containsKey("warnings")) {
|
| - warnings = _json["warnings"].map((value) => new Error.fromJson(value)).toList();
|
| + warnings =
|
| + _json["warnings"].map((value) => new Error.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 (additionalImageLinks != null) {
|
| _json["additionalImageLinks"] = additionalImageLinks;
|
| }
|
| @@ -9027,10 +9387,12 @@ class Product {
|
| _json["contentLanguage"] = contentLanguage;
|
| }
|
| if (customAttributes != null) {
|
| - _json["customAttributes"] = customAttributes.map((value) => (value).toJson()).toList();
|
| + _json["customAttributes"] =
|
| + customAttributes.map((value) => (value).toJson()).toList();
|
| }
|
| if (customGroups != null) {
|
| - _json["customGroups"] = customGroups.map((value) => (value).toJson()).toList();
|
| + _json["customGroups"] =
|
| + customGroups.map((value) => (value).toJson()).toList();
|
| }
|
| if (customLabel0 != null) {
|
| _json["customLabel0"] = customLabel0;
|
| @@ -9051,7 +9413,8 @@ class Product {
|
| _json["description"] = description;
|
| }
|
| if (destinations != null) {
|
| - _json["destinations"] = destinations.map((value) => (value).toJson()).toList();
|
| + _json["destinations"] =
|
| + destinations.map((value) => (value).toJson()).toList();
|
| }
|
| if (displayAdsId != null) {
|
| _json["displayAdsId"] = displayAdsId;
|
| @@ -9208,11 +9571,13 @@ class Product {
|
| }
|
|
|
| class ProductAspect {
|
| - /** The name of the aspect. */
|
| + /// The name of the aspect.
|
| core.String aspectName;
|
| - /** The name of the destination. Leave out to apply to all destinations. */
|
| +
|
| + /// The name of the destination. Leave out to apply to all destinations.
|
| core.String destinationName;
|
| - /** Whether the aspect is required, excluded or should be validated. */
|
| +
|
| + /// Whether the aspect is required, excluded or should be validated.
|
| core.String intention;
|
|
|
| ProductAspect();
|
| @@ -9230,7 +9595,8 @@ class ProductAspect {
|
| }
|
|
|
| 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 (aspectName != null) {
|
| _json["aspectName"] = aspectName;
|
| }
|
| @@ -9245,19 +9611,18 @@ class ProductAspect {
|
| }
|
|
|
| class ProductCustomAttribute {
|
| - /**
|
| - * The name of the attribute. Underscores will be replaced by spaces upon
|
| - * insertion.
|
| - */
|
| + /// The name of the attribute. Underscores will be replaced by spaces upon
|
| + /// insertion.
|
| core.String name;
|
| - /** The type of the attribute. */
|
| +
|
| + /// The type of the attribute.
|
| core.String type;
|
| - /**
|
| - * Free-form unit of the attribute. Unit can only be used for values of type
|
| - * INT or FLOAT.
|
| - */
|
| +
|
| + /// Free-form unit of the attribute. Unit can only be used for values of type
|
| + /// INT or FLOAT.
|
| core.String unit;
|
| - /** The value of the attribute. */
|
| +
|
| + /// The value of the attribute.
|
| core.String value;
|
|
|
| ProductCustomAttribute();
|
| @@ -9278,7 +9643,8 @@ class ProductCustomAttribute {
|
| }
|
|
|
| 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 (name != null) {
|
| _json["name"] = name;
|
| }
|
| @@ -9296,19 +9662,20 @@ class ProductCustomAttribute {
|
| }
|
|
|
| class ProductCustomGroup {
|
| - /** The sub-attributes. */
|
| + /// The sub-attributes.
|
| core.List<ProductCustomAttribute> attributes;
|
| - /**
|
| - * The name of the group. Underscores will be replaced by spaces upon
|
| - * insertion.
|
| - */
|
| +
|
| + /// The name of the group. Underscores will be replaced by spaces upon
|
| + /// insertion.
|
| core.String name;
|
|
|
| ProductCustomGroup();
|
|
|
| ProductCustomGroup.fromJson(core.Map _json) {
|
| if (_json.containsKey("attributes")) {
|
| - attributes = _json["attributes"].map((value) => new ProductCustomAttribute.fromJson(value)).toList();
|
| + attributes = _json["attributes"]
|
| + .map((value) => new ProductCustomAttribute.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| @@ -9316,9 +9683,11 @@ class ProductCustomGroup {
|
| }
|
|
|
| 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 (attributes != null) {
|
| - _json["attributes"] = attributes.map((value) => (value).toJson()).toList();
|
| + _json["attributes"] =
|
| + attributes.map((value) => (value).toJson()).toList();
|
| }
|
| if (name != null) {
|
| _json["name"] = name;
|
| @@ -9328,9 +9697,10 @@ class ProductCustomGroup {
|
| }
|
|
|
| class ProductDestination {
|
| - /** The name of the destination. */
|
| + /// The name of the destination.
|
| core.String destinationName;
|
| - /** Whether the destination is required, excluded or should be validated. */
|
| +
|
| + /// Whether the destination is required, excluded or should be validated.
|
| core.String intention;
|
|
|
| ProductDestination();
|
| @@ -9345,7 +9715,8 @@ class ProductDestination {
|
| }
|
|
|
| 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 (destinationName != null) {
|
| _json["destinationName"] = destinationName;
|
| }
|
| @@ -9357,29 +9728,29 @@ class ProductDestination {
|
| }
|
|
|
| class ProductShipping {
|
| - /** The CLDR territory code of the country to which an item will ship. */
|
| + /// The CLDR territory code of the country to which an item will ship.
|
| core.String country;
|
| - /**
|
| - * The location where the shipping is applicable, represented by a location
|
| - * group name.
|
| - */
|
| +
|
| + /// The location where the shipping is applicable, represented by a location
|
| + /// group name.
|
| core.String locationGroupName;
|
| - /**
|
| - * The numeric id of a location that the shipping rate applies to as defined
|
| - * in the AdWords API.
|
| - */
|
| +
|
| + /// The numeric id of a location that the shipping rate applies to as defined
|
| + /// in the AdWords API.
|
| core.String locationId;
|
| - /**
|
| - * The postal code range that the shipping rate applies to, represented by a
|
| - * postal code, a postal code prefix followed by a * wildcard, a range between
|
| - * two postal codes or two postal code prefixes of equal length.
|
| - */
|
| +
|
| + /// The postal code range that the shipping rate applies to, represented by a
|
| + /// postal code, a postal code prefix followed by a * wildcard, a range
|
| + /// between two postal codes or two postal code prefixes of equal length.
|
| core.String postalCode;
|
| - /** Fixed shipping price, represented as a number. */
|
| +
|
| + /// Fixed shipping price, represented as a number.
|
| Price price;
|
| - /** The geographic region to which a shipping rate applies. */
|
| +
|
| + /// The geographic region to which a shipping rate applies.
|
| core.String region;
|
| - /** A free-form description of the service class or delivery speed. */
|
| +
|
| + /// A free-form description of the service class or delivery speed.
|
| core.String service;
|
|
|
| ProductShipping();
|
| @@ -9409,7 +9780,8 @@ class ProductShipping {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -9436,18 +9808,15 @@ class ProductShipping {
|
| }
|
|
|
| class ProductShippingDimension {
|
| - /**
|
| - * The unit of value.
|
| - *
|
| - * Acceptable values are:
|
| - * - "cm"
|
| - * - "in"
|
| - */
|
| + /// The unit of value.
|
| + ///
|
| + /// Acceptable values are:
|
| + /// - "cm"
|
| + /// - "in"
|
| core.String unit;
|
| - /**
|
| - * The dimension of the product used to calculate the shipping cost of the
|
| - * item.
|
| - */
|
| +
|
| + /// The dimension of the product used to calculate the shipping cost of the
|
| + /// item.
|
| core.double value;
|
|
|
| ProductShippingDimension();
|
| @@ -9462,7 +9831,8 @@ class ProductShippingDimension {
|
| }
|
|
|
| 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 (unit != null) {
|
| _json["unit"] = unit;
|
| }
|
| @@ -9474,11 +9844,11 @@ class ProductShippingDimension {
|
| }
|
|
|
| class ProductShippingWeight {
|
| - /** The unit of value. */
|
| + /// The unit of value.
|
| core.String unit;
|
| - /**
|
| - * The weight of the product used to calculate the shipping cost of the item.
|
| - */
|
| +
|
| + /// The weight of the product used to calculate the shipping cost of the
|
| + /// item.
|
| core.double value;
|
|
|
| ProductShippingWeight();
|
| @@ -9493,7 +9863,8 @@ class ProductShippingWeight {
|
| }
|
|
|
| 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 (unit != null) {
|
| _json["unit"] = unit;
|
| }
|
| @@ -9504,33 +9875,38 @@ class ProductShippingWeight {
|
| }
|
| }
|
|
|
| -/**
|
| - * The status of a product, i.e., information about a product computed
|
| - * asynchronously by the data quality analysis.
|
| - */
|
| +/// The status of a product, i.e., information about a product computed
|
| +/// asynchronously by the data quality analysis.
|
| class ProductStatus {
|
| - /** 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;
|
| - /** A list of data quality issues associated with the product. */
|
| +
|
| + /// A list of data quality issues associated with the product.
|
| core.List<ProductStatusDataQualityIssue> dataQualityIssues;
|
| - /** The intended destinations for the product. */
|
| +
|
| + /// The intended destinations for the product.
|
| core.List<ProductStatusDestinationStatus> destinationStatuses;
|
| - /** Date on which the item expires in Google Shopping, in ISO 8601 format. */
|
| +
|
| + /// Date on which the item expires in Google Shopping, in ISO 8601 format.
|
| core.String googleExpirationDate;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#productStatus".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#productStatus".
|
| core.String kind;
|
| - /** Date on which the item has been last updated, in ISO 8601 format. */
|
| +
|
| + /// Date on which the item has been last updated, in ISO 8601 format.
|
| core.String lastUpdateDate;
|
| - /** The link to the product. */
|
| +
|
| + /// The link to the product.
|
| core.String link;
|
| - /** Product data after applying all the join inputs. */
|
| +
|
| + /// Product data after applying all the join inputs.
|
| Product product;
|
| - /** The id of the product for which status is reported. */
|
| +
|
| + /// The id of the product for which status is reported.
|
| core.String productId;
|
| - /** The title of the product. */
|
| +
|
| + /// The title of the product.
|
| core.String title;
|
|
|
| ProductStatus();
|
| @@ -9540,10 +9916,14 @@ class ProductStatus {
|
| creationDate = _json["creationDate"];
|
| }
|
| if (_json.containsKey("dataQualityIssues")) {
|
| - dataQualityIssues = _json["dataQualityIssues"].map((value) => new ProductStatusDataQualityIssue.fromJson(value)).toList();
|
| + dataQualityIssues = _json["dataQualityIssues"]
|
| + .map((value) => new ProductStatusDataQualityIssue.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("destinationStatuses")) {
|
| - destinationStatuses = _json["destinationStatuses"].map((value) => new ProductStatusDestinationStatus.fromJson(value)).toList();
|
| + destinationStatuses = _json["destinationStatuses"]
|
| + .map((value) => new ProductStatusDestinationStatus.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("googleExpirationDate")) {
|
| googleExpirationDate = _json["googleExpirationDate"];
|
| @@ -9569,15 +9949,18 @@ class ProductStatus {
|
| }
|
|
|
| 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 (creationDate != null) {
|
| _json["creationDate"] = creationDate;
|
| }
|
| if (dataQualityIssues != null) {
|
| - _json["dataQualityIssues"] = dataQualityIssues.map((value) => (value).toJson()).toList();
|
| + _json["dataQualityIssues"] =
|
| + dataQualityIssues.map((value) => (value).toJson()).toList();
|
| }
|
| if (destinationStatuses != null) {
|
| - _json["destinationStatuses"] = destinationStatuses.map((value) => (value).toJson()).toList();
|
| + _json["destinationStatuses"] =
|
| + destinationStatuses.map((value) => (value).toJson()).toList();
|
| }
|
| if (googleExpirationDate != null) {
|
| _json["googleExpirationDate"] = googleExpirationDate;
|
| @@ -9605,21 +9988,28 @@ class ProductStatus {
|
| }
|
|
|
| class ProductStatusDataQualityIssue {
|
| - /** A more detailed error string. */
|
| + /// A more detailed error string.
|
| core.String detail;
|
| - /** The fetch status for landing_page_errors. */
|
| +
|
| + /// The fetch status for landing_page_errors.
|
| core.String fetchStatus;
|
| - /** The id of the data quality issue. */
|
| +
|
| + /// The id of the data quality issue.
|
| core.String id;
|
| - /** The attribute name that is relevant for the issue. */
|
| +
|
| + /// The attribute name that is relevant for the issue.
|
| core.String location;
|
| - /** The severity of the data quality issue. */
|
| +
|
| + /// The severity of the data quality issue.
|
| core.String severity;
|
| - /** The time stamp of the data quality issue. */
|
| +
|
| + /// The time stamp of the data quality issue.
|
| core.String timestamp;
|
| - /** The value of that attribute that was found on the landing page */
|
| +
|
| + /// The value of that attribute that was found on the landing page
|
| core.String valueOnLandingPage;
|
| - /** The value the attribute had at time of evaluation. */
|
| +
|
| + /// The value the attribute had at time of evaluation.
|
| core.String valueProvided;
|
|
|
| ProductStatusDataQualityIssue();
|
| @@ -9652,7 +10042,8 @@ class ProductStatusDataQualityIssue {
|
| }
|
|
|
| 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 (detail != null) {
|
| _json["detail"] = detail;
|
| }
|
| @@ -9682,14 +10073,14 @@ class ProductStatusDataQualityIssue {
|
| }
|
|
|
| class ProductStatusDestinationStatus {
|
| - /** The destination's approval status. */
|
| + /// The destination's approval status.
|
| core.String approvalStatus;
|
| - /** The name of the destination */
|
| +
|
| + /// The name of the destination
|
| core.String destination;
|
| - /**
|
| - * Whether the destination is required, excluded, selected by default or
|
| - * should be validated.
|
| - */
|
| +
|
| + /// Whether the destination is required, excluded, selected by default or
|
| + /// should be validated.
|
| core.String intention;
|
|
|
| ProductStatusDestinationStatus();
|
| @@ -9707,7 +10098,8 @@ class ProductStatusDestinationStatus {
|
| }
|
|
|
| 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 (approvalStatus != null) {
|
| _json["approvalStatus"] = approvalStatus;
|
| }
|
| @@ -9722,28 +10114,27 @@ class ProductStatusDestinationStatus {
|
| }
|
|
|
| class ProductTax {
|
| - /**
|
| - * The country within which the item is taxed, specified as a CLDR territory
|
| - * code.
|
| - */
|
| + /// The country within which the item is taxed, specified as a CLDR territory
|
| + /// code.
|
| core.String country;
|
| - /**
|
| - * The numeric id of a location that the tax rate applies to as defined in the
|
| - * AdWords API.
|
| - */
|
| +
|
| + /// The numeric id of a location that the tax rate applies to as defined in
|
| + /// the AdWords API.
|
| core.String locationId;
|
| - /**
|
| - * The postal code range that the tax rate applies to, represented by a ZIP
|
| - * code, a ZIP code prefix using * wildcard, a range between two ZIP codes or
|
| - * two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460,
|
| - * 94*-95*.
|
| - */
|
| +
|
| + /// The postal code range that the tax rate applies to, represented by a ZIP
|
| + /// code, a ZIP code prefix using * wildcard, a range between two ZIP codes
|
| + /// or two ZIP code prefixes of equal length. Examples: 94114, 94*,
|
| + /// 94002-95460, 94*-95*.
|
| core.String postalCode;
|
| - /** The percentage of tax rate that applies to the item price. */
|
| +
|
| + /// The percentage of tax rate that applies to the item price.
|
| core.double rate;
|
| - /** The geographic region to which the tax rate applies. */
|
| +
|
| + /// The geographic region to which the tax rate applies.
|
| core.String region;
|
| - /** Set to true if tax is charged on shipping. */
|
| +
|
| + /// Set to true if tax is charged on shipping.
|
| core.bool taxShip;
|
|
|
| ProductTax();
|
| @@ -9770,7 +10161,8 @@ class ProductTax {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -9794,9 +10186,10 @@ class ProductTax {
|
| }
|
|
|
| class ProductUnitPricingBaseMeasure {
|
| - /** The unit of the denominator. */
|
| + /// The unit of the denominator.
|
| core.String unit;
|
| - /** The denominator of the unit price. */
|
| +
|
| + /// The denominator of the unit price.
|
| core.String value;
|
|
|
| ProductUnitPricingBaseMeasure();
|
| @@ -9811,7 +10204,8 @@ class ProductUnitPricingBaseMeasure {
|
| }
|
|
|
| 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 (unit != null) {
|
| _json["unit"] = unit;
|
| }
|
| @@ -9823,9 +10217,10 @@ class ProductUnitPricingBaseMeasure {
|
| }
|
|
|
| class ProductUnitPricingMeasure {
|
| - /** The unit of the measure. */
|
| + /// The unit of the measure.
|
| core.String unit;
|
| - /** The measure of an item. */
|
| +
|
| + /// The measure of an item.
|
| core.double value;
|
|
|
| ProductUnitPricingMeasure();
|
| @@ -9840,7 +10235,8 @@ class ProductUnitPricingMeasure {
|
| }
|
|
|
| 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 (unit != null) {
|
| _json["unit"] = unit;
|
| }
|
| @@ -9852,19 +10248,22 @@ class ProductUnitPricingMeasure {
|
| }
|
|
|
| class ProductsCustomBatchRequest {
|
| - /** The request entries to be processed in the batch. */
|
| + /// The request entries to be processed in the batch.
|
| core.List<ProductsCustomBatchRequestEntry> entries;
|
|
|
| ProductsCustomBatchRequest();
|
|
|
| ProductsCustomBatchRequest.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new ProductsCustomBatchRequestEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) => new ProductsCustomBatchRequestEntry.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();
|
| }
|
| @@ -9872,19 +10271,20 @@ class ProductsCustomBatchRequest {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch products request. */
|
| +/// A batch entry encoding a single non-batch products request.
|
| class ProductsCustomBatchRequestEntry {
|
| - /** An entry ID, unique within the batch request. */
|
| + /// An entry ID, unique within the batch request.
|
| core.int batchId;
|
| - /** The ID of the managing account. */
|
| +
|
| + /// The ID of the managing account.
|
| core.String merchantId;
|
| core.String method;
|
| - /** The product to insert. Only required if the method is insert. */
|
| +
|
| + /// The product to insert. Only required if the method is insert.
|
| Product product;
|
| - /**
|
| - * The ID of the product to get or delete. Only defined if the method is get
|
| - * or delete.
|
| - */
|
| +
|
| + /// The ID of the product to get or delete. Only defined if the method is get
|
| + /// or delete.
|
| core.String productId;
|
|
|
| ProductsCustomBatchRequestEntry();
|
| @@ -9908,7 +10308,8 @@ class ProductsCustomBatchRequestEntry {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -9929,19 +10330,20 @@ class ProductsCustomBatchRequestEntry {
|
| }
|
|
|
| class ProductsCustomBatchResponse {
|
| - /** The result of the execution of the batch requests. */
|
| + /// The result of the execution of the batch requests.
|
| core.List<ProductsCustomBatchResponseEntry> entries;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#productsCustomBatchResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#productsCustomBatchResponse".
|
| core.String kind;
|
|
|
| ProductsCustomBatchResponse();
|
|
|
| ProductsCustomBatchResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new ProductsCustomBatchResponseEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) => new ProductsCustomBatchResponseEntry.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -9949,7 +10351,8 @@ class ProductsCustomBatchResponse {
|
| }
|
|
|
| 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();
|
| }
|
| @@ -9960,21 +10363,20 @@ class ProductsCustomBatchResponse {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch products response. */
|
| +/// A batch entry encoding a single non-batch products response.
|
| class ProductsCustomBatchResponseEntry {
|
| - /** 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;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#productsCustomBatchResponseEntry".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#productsCustomBatchResponseEntry".
|
| core.String kind;
|
| - /**
|
| - * The inserted product. Only defined if the method is insert and if the
|
| - * request was successful.
|
| - */
|
| +
|
| + /// The inserted product. Only defined if the method is insert and if the
|
| + /// request was successful.
|
| Product product;
|
|
|
| ProductsCustomBatchResponseEntry();
|
| @@ -9995,7 +10397,8 @@ class ProductsCustomBatchResponseEntry {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -10013,12 +10416,11 @@ class ProductsCustomBatchResponseEntry {
|
| }
|
|
|
| class ProductsListResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#productsListResponse".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#productsListResponse".
|
| core.String kind;
|
| - /** The token for the retrieval of the next page of products. */
|
| +
|
| + /// The token for the retrieval of the next page of products.
|
| core.String nextPageToken;
|
| core.List<Product> resources;
|
|
|
| @@ -10032,12 +10434,15 @@ class ProductsListResponse {
|
| nextPageToken = _json["nextPageToken"];
|
| }
|
| if (_json.containsKey("resources")) {
|
| - resources = _json["resources"].map((value) => new Product.fromJson(value)).toList();
|
| + resources = _json["resources"]
|
| + .map((value) => new Product.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;
|
| }
|
| @@ -10052,19 +10457,23 @@ class ProductsListResponse {
|
| }
|
|
|
| class ProductstatusesCustomBatchRequest {
|
| - /** The request entries to be processed in the batch. */
|
| + /// The request entries to be processed in the batch.
|
| core.List<ProductstatusesCustomBatchRequestEntry> entries;
|
|
|
| ProductstatusesCustomBatchRequest();
|
|
|
| ProductstatusesCustomBatchRequest.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new ProductstatusesCustomBatchRequestEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) =>
|
| + new ProductstatusesCustomBatchRequestEntry.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();
|
| }
|
| @@ -10072,15 +10481,17 @@ class ProductstatusesCustomBatchRequest {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch productstatuses request. */
|
| +/// A batch entry encoding a single non-batch productstatuses request.
|
| class ProductstatusesCustomBatchRequestEntry {
|
| - /** An entry ID, unique within the batch request. */
|
| + /// An entry ID, unique within the batch request.
|
| core.int batchId;
|
| core.bool includeAttributes;
|
| - /** The ID of the managing account. */
|
| +
|
| + /// The ID of the managing account.
|
| core.String merchantId;
|
| core.String method;
|
| - /** The ID of the product whose status to get. */
|
| +
|
| + /// The ID of the product whose status to get.
|
| core.String productId;
|
|
|
| ProductstatusesCustomBatchRequestEntry();
|
| @@ -10104,7 +10515,8 @@ class ProductstatusesCustomBatchRequestEntry {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -10125,19 +10537,21 @@ class ProductstatusesCustomBatchRequestEntry {
|
| }
|
|
|
| class ProductstatusesCustomBatchResponse {
|
| - /** The result of the execution of the batch requests. */
|
| + /// The result of the execution of the batch requests.
|
| core.List<ProductstatusesCustomBatchResponseEntry> entries;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#productstatusesCustomBatchResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#productstatusesCustomBatchResponse".
|
| core.String kind;
|
|
|
| ProductstatusesCustomBatchResponse();
|
|
|
| ProductstatusesCustomBatchResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new ProductstatusesCustomBatchResponseEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) =>
|
| + new ProductstatusesCustomBatchResponseEntry.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -10145,7 +10559,8 @@ class ProductstatusesCustomBatchResponse {
|
| }
|
|
|
| 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();
|
| }
|
| @@ -10156,20 +10571,19 @@ class ProductstatusesCustomBatchResponse {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch productstatuses response. */
|
| +/// A batch entry encoding a single non-batch productstatuses response.
|
| class ProductstatusesCustomBatchResponseEntry {
|
| - /** 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, if the request failed. */
|
| +
|
| + /// A list of errors, if the request failed.
|
| Errors errors;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#productstatusesCustomBatchResponseEntry".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#productstatusesCustomBatchResponseEntry".
|
| core.String kind;
|
| - /**
|
| - * The requested product status. Only defined if the request was successful.
|
| - */
|
| +
|
| + /// The requested product status. Only defined if the request was successful.
|
| ProductStatus productStatus;
|
|
|
| ProductstatusesCustomBatchResponseEntry();
|
| @@ -10190,7 +10604,8 @@ class ProductstatusesCustomBatchResponseEntry {
|
| }
|
|
|
| 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;
|
| }
|
| @@ -10208,12 +10623,11 @@ class ProductstatusesCustomBatchResponseEntry {
|
| }
|
|
|
| class ProductstatusesListResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#productstatusesListResponse".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#productstatusesListResponse".
|
| core.String kind;
|
| - /** The token for the retrieval of the next page of products statuses. */
|
| +
|
| + /// The token for the retrieval of the next page of products statuses.
|
| core.String nextPageToken;
|
| core.List<ProductStatus> resources;
|
|
|
| @@ -10227,12 +10641,15 @@ class ProductstatusesListResponse {
|
| nextPageToken = _json["nextPageToken"];
|
| }
|
| if (_json.containsKey("resources")) {
|
| - resources = _json["resources"].map((value) => new ProductStatus.fromJson(value)).toList();
|
| + resources = _json["resources"]
|
| + .map((value) => new ProductStatus.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;
|
| }
|
| @@ -10247,32 +10664,26 @@ class ProductstatusesListResponse {
|
| }
|
|
|
| class RateGroup {
|
| - /**
|
| - * A list of shipping labels defining the products to which this rate group
|
| - * applies to. This is a disjunction: only one of the labels has to match for
|
| - * the rate group to apply. May only be empty for the last rate group of a
|
| - * service. Required.
|
| - */
|
| + /// A list of shipping labels defining the products to which this rate group
|
| + /// applies to. This is a disjunction: only one of the labels has to match
|
| + /// for the rate group to apply. May only be empty for the last rate group of
|
| + /// a service. Required.
|
| core.List<core.String> applicableShippingLabels;
|
| - /**
|
| - * A list of carrier rates that can be referred to by mainTable or
|
| - * singleValue.
|
| - */
|
| +
|
| + /// A list of carrier rates that can be referred to by mainTable or
|
| + /// singleValue.
|
| core.List<CarrierRate> carrierRates;
|
| - /**
|
| - * A table defining the rate group, when singleValue is not expressive enough.
|
| - * Can only be set if singleValue is not set.
|
| - */
|
| +
|
| + /// A table defining the rate group, when singleValue is not expressive
|
| + /// enough. Can only be set if singleValue is not set.
|
| Table mainTable;
|
| - /**
|
| - * The value of the rate group (e.g. flat rate $10). Can only be set if
|
| - * mainTable and subtables are not set.
|
| - */
|
| +
|
| + /// The value of the rate group (e.g. flat rate $10). Can only be set if
|
| + /// mainTable and subtables are not set.
|
| Value singleValue;
|
| - /**
|
| - * A list of subtables referred to by mainTable. Can only be set if mainTable
|
| - * is set.
|
| - */
|
| +
|
| + /// A list of subtables referred to by mainTable. Can only be set if
|
| + /// mainTable is set.
|
| core.List<Table> subtables;
|
|
|
| RateGroup();
|
| @@ -10282,7 +10693,9 @@ class RateGroup {
|
| applicableShippingLabels = _json["applicableShippingLabels"];
|
| }
|
| if (_json.containsKey("carrierRates")) {
|
| - carrierRates = _json["carrierRates"].map((value) => new CarrierRate.fromJson(value)).toList();
|
| + carrierRates = _json["carrierRates"]
|
| + .map((value) => new CarrierRate.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("mainTable")) {
|
| mainTable = new Table.fromJson(_json["mainTable"]);
|
| @@ -10291,17 +10704,20 @@ class RateGroup {
|
| singleValue = new Value.fromJson(_json["singleValue"]);
|
| }
|
| if (_json.containsKey("subtables")) {
|
| - subtables = _json["subtables"].map((value) => new Table.fromJson(value)).toList();
|
| + subtables =
|
| + _json["subtables"].map((value) => new Table.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 (applicableShippingLabels != null) {
|
| _json["applicableShippingLabels"] = applicableShippingLabels;
|
| }
|
| if (carrierRates != null) {
|
| - _json["carrierRates"] = carrierRates.map((value) => (value).toJson()).toList();
|
| + _json["carrierRates"] =
|
| + carrierRates.map((value) => (value).toJson()).toList();
|
| }
|
| if (mainTable != null) {
|
| _json["mainTable"] = (mainTable).toJson();
|
| @@ -10317,11 +10733,9 @@ class RateGroup {
|
| }
|
|
|
| class Row {
|
| - /**
|
| - * The list of cells that constitute the row. Must have the same length as
|
| - * columnHeaders for two-dimensional tables, a length of 1 for one-dimensional
|
| - * tables. Required.
|
| - */
|
| + /// The list of cells that constitute the row. Must have the same length as
|
| + /// columnHeaders for two-dimensional tables, a length of 1 for
|
| + /// one-dimensional tables. Required.
|
| core.List<Value> cells;
|
|
|
| Row();
|
| @@ -10333,7 +10747,8 @@ class Row {
|
| }
|
|
|
| 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 (cells != null) {
|
| _json["cells"] = cells.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -10342,35 +10757,33 @@ class Row {
|
| }
|
|
|
| class Service {
|
| - /**
|
| - * A boolean exposing the active status of the shipping service. Required.
|
| - */
|
| + /// A boolean exposing the active status of the shipping service. Required.
|
| core.bool active;
|
| - /**
|
| - * The CLDR code of the currency to which this service applies. Must match
|
| - * that of the prices in rate groups.
|
| - */
|
| +
|
| + /// The CLDR code of the currency to which this service applies. Must match
|
| + /// that of the prices in rate groups.
|
| core.String currency;
|
| - /**
|
| - * The CLDR territory code of the country to which the service applies.
|
| - * Required.
|
| - */
|
| +
|
| + /// The CLDR territory code of the country to which the service applies.
|
| + /// Required.
|
| core.String deliveryCountry;
|
| - /**
|
| - * Time spent in various aspects from order to the delivery of the product.
|
| - * Required.
|
| - */
|
| +
|
| + /// Time spent in various aspects from order to the delivery of the product.
|
| + /// Required.
|
| DeliveryTime deliveryTime;
|
| - /**
|
| - * Free-form name of the service. Must be unique within target account.
|
| - * Required.
|
| - */
|
| +
|
| + /// Minimum order value for this service. If set, indicates that customers
|
| + /// will have to spend at least this amount. All prices within a service must
|
| + /// have the same currency.
|
| + Price minimumOrderValue;
|
| +
|
| + /// Free-form name of the service. Must be unique within target account.
|
| + /// Required.
|
| core.String name;
|
| - /**
|
| - * Shipping rate group definitions. Only the last one is allowed to have an
|
| - * empty applicableShippingLabels, which means "everything else". The other
|
| - * applicableShippingLabels must not overlap.
|
| - */
|
| +
|
| + /// Shipping rate group definitions. Only the last one is allowed to have an
|
| + /// empty applicableShippingLabels, which means "everything else". The other
|
| + /// applicableShippingLabels must not overlap.
|
| core.List<RateGroup> rateGroups;
|
|
|
| Service();
|
| @@ -10388,16 +10801,22 @@ class Service {
|
| if (_json.containsKey("deliveryTime")) {
|
| deliveryTime = new DeliveryTime.fromJson(_json["deliveryTime"]);
|
| }
|
| + if (_json.containsKey("minimumOrderValue")) {
|
| + minimumOrderValue = new Price.fromJson(_json["minimumOrderValue"]);
|
| + }
|
| if (_json.containsKey("name")) {
|
| name = _json["name"];
|
| }
|
| if (_json.containsKey("rateGroups")) {
|
| - rateGroups = _json["rateGroups"].map((value) => new RateGroup.fromJson(value)).toList();
|
| + rateGroups = _json["rateGroups"]
|
| + .map((value) => new RateGroup.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 (active != null) {
|
| _json["active"] = active;
|
| }
|
| @@ -10410,28 +10829,31 @@ class Service {
|
| if (deliveryTime != null) {
|
| _json["deliveryTime"] = (deliveryTime).toJson();
|
| }
|
| + if (minimumOrderValue != null) {
|
| + _json["minimumOrderValue"] = (minimumOrderValue).toJson();
|
| + }
|
| if (name != null) {
|
| _json["name"] = name;
|
| }
|
| if (rateGroups != null) {
|
| - _json["rateGroups"] = rateGroups.map((value) => (value).toJson()).toList();
|
| + _json["rateGroups"] =
|
| + rateGroups.map((value) => (value).toJson()).toList();
|
| }
|
| return _json;
|
| }
|
| }
|
|
|
| -/** The merchant account's shipping settings. */
|
| +/// The merchant account's shipping settings.
|
| class ShippingSettings {
|
| - /**
|
| - * The ID of the account to which these account shipping settings belong.
|
| - * Ignored upon update, always present in get request responses.
|
| - */
|
| + /// The ID of the account to which these account shipping settings belong.
|
| + /// Ignored upon update, always present in get request responses.
|
| core.String accountId;
|
| - /**
|
| - * A list of postal code groups that can be referred to in services. Optional.
|
| - */
|
| +
|
| + /// A list of postal code groups that can be referred to in services.
|
| + /// Optional.
|
| core.List<PostalCodeGroup> postalCodeGroups;
|
| - /** The target account's list of services. Optional. */
|
| +
|
| + /// The target account's list of services. Optional.
|
| core.List<Service> services;
|
|
|
| ShippingSettings();
|
| @@ -10441,20 +10863,26 @@ class ShippingSettings {
|
| accountId = _json["accountId"];
|
| }
|
| if (_json.containsKey("postalCodeGroups")) {
|
| - postalCodeGroups = _json["postalCodeGroups"].map((value) => new PostalCodeGroup.fromJson(value)).toList();
|
| + postalCodeGroups = _json["postalCodeGroups"]
|
| + .map((value) => new PostalCodeGroup.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("services")) {
|
| - services = _json["services"].map((value) => new Service.fromJson(value)).toList();
|
| + services = _json["services"]
|
| + .map((value) => new Service.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 (accountId != null) {
|
| _json["accountId"] = accountId;
|
| }
|
| if (postalCodeGroups != null) {
|
| - _json["postalCodeGroups"] = postalCodeGroups.map((value) => (value).toJson()).toList();
|
| + _json["postalCodeGroups"] =
|
| + postalCodeGroups.map((value) => (value).toJson()).toList();
|
| }
|
| if (services != null) {
|
| _json["services"] = services.map((value) => (value).toJson()).toList();
|
| @@ -10464,19 +10892,23 @@ class ShippingSettings {
|
| }
|
|
|
| class ShippingsettingsCustomBatchRequest {
|
| - /** The request entries to be processed in the batch. */
|
| + /// The request entries to be processed in the batch.
|
| core.List<ShippingsettingsCustomBatchRequestEntry> entries;
|
|
|
| ShippingsettingsCustomBatchRequest();
|
|
|
| ShippingsettingsCustomBatchRequest.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new ShippingsettingsCustomBatchRequestEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) =>
|
| + new ShippingsettingsCustomBatchRequestEntry.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();
|
| }
|
| @@ -10484,21 +10916,20 @@ class ShippingsettingsCustomBatchRequest {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch shippingsettings request. */
|
| +/// A batch entry encoding a single non-batch shippingsettings request.
|
| class ShippingsettingsCustomBatchRequestEntry {
|
| - /**
|
| - * The ID of the account for which to get/update account shipping settings.
|
| - */
|
| + /// The ID of the account for which to get/update account shipping settings.
|
| core.String accountId;
|
| - /** An entry ID, unique within the batch request. */
|
| +
|
| + /// An entry ID, unique within the batch request.
|
| core.int batchId;
|
| - /** The ID of the managing account. */
|
| +
|
| + /// The ID of the managing account.
|
| core.String merchantId;
|
| core.String method;
|
| - /**
|
| - * The account shipping settings to update. Only defined if the method is
|
| - * update.
|
| - */
|
| +
|
| + /// The account shipping settings to update. Only defined if the method is
|
| + /// update.
|
| ShippingSettings shippingSettings;
|
|
|
| ShippingsettingsCustomBatchRequestEntry();
|
| @@ -10517,12 +10948,14 @@ class ShippingsettingsCustomBatchRequestEntry {
|
| method = _json["method"];
|
| }
|
| if (_json.containsKey("shippingSettings")) {
|
| - shippingSettings = new ShippingSettings.fromJson(_json["shippingSettings"]);
|
| + shippingSettings =
|
| + new ShippingSettings.fromJson(_json["shippingSettings"]);
|
| }
|
| }
|
|
|
| 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 (accountId != null) {
|
| _json["accountId"] = accountId;
|
| }
|
| @@ -10543,19 +10976,21 @@ class ShippingsettingsCustomBatchRequestEntry {
|
| }
|
|
|
| class ShippingsettingsCustomBatchResponse {
|
| - /** The result of the execution of the batch requests. */
|
| + /// The result of the execution of the batch requests.
|
| core.List<ShippingsettingsCustomBatchResponseEntry> entries;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#shippingsettingsCustomBatchResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#shippingsettingsCustomBatchResponse".
|
| core.String kind;
|
|
|
| ShippingsettingsCustomBatchResponse();
|
|
|
| ShippingsettingsCustomBatchResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new ShippingsettingsCustomBatchResponseEntry.fromJson(value)).toList();
|
| + entries = _json["entries"]
|
| + .map((value) =>
|
| + new ShippingsettingsCustomBatchResponseEntry.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -10563,7 +10998,8 @@ class ShippingsettingsCustomBatchResponse {
|
| }
|
|
|
| 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();
|
| }
|
| @@ -10574,18 +11010,19 @@ class ShippingsettingsCustomBatchResponse {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch shipping settings response. */
|
| +/// A batch entry encoding a single non-batch shipping settings response.
|
| class ShippingsettingsCustomBatchResponseEntry {
|
| - /** The ID of the request entry to which this entry responds. */
|
| + /// The ID of the request entry to which this entry responds.
|
| 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;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#shippingsettingsCustomBatchResponseEntry".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#shippingsettingsCustomBatchResponseEntry".
|
| core.String kind;
|
| - /** The retrieved or updated account shipping settings. */
|
| +
|
| + /// The retrieved or updated account shipping settings.
|
| ShippingSettings shippingSettings;
|
|
|
| ShippingsettingsCustomBatchResponseEntry();
|
| @@ -10601,12 +11038,14 @@ class ShippingsettingsCustomBatchResponseEntry {
|
| kind = _json["kind"];
|
| }
|
| if (_json.containsKey("shippingSettings")) {
|
| - shippingSettings = new ShippingSettings.fromJson(_json["shippingSettings"]);
|
| + shippingSettings =
|
| + new ShippingSettings.fromJson(_json["shippingSettings"]);
|
| }
|
| }
|
|
|
| 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;
|
| }
|
| @@ -10624,19 +11063,20 @@ class ShippingsettingsCustomBatchResponseEntry {
|
| }
|
|
|
| class ShippingsettingsGetSupportedCarriersResponse {
|
| - /** A list of supported carriers. May be empty. */
|
| + /// A list of supported carriers. May be empty.
|
| core.List<CarriersCarrier> carriers;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#shippingsettingsGetSupportedCarriersResponse".
|
| - */
|
| +
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#shippingsettingsGetSupportedCarriersResponse".
|
| core.String kind;
|
|
|
| ShippingsettingsGetSupportedCarriersResponse();
|
|
|
| ShippingsettingsGetSupportedCarriersResponse.fromJson(core.Map _json) {
|
| if (_json.containsKey("carriers")) {
|
| - carriers = _json["carriers"].map((value) => new CarriersCarrier.fromJson(value)).toList();
|
| + carriers = _json["carriers"]
|
| + .map((value) => new CarriersCarrier.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -10644,7 +11084,8 @@ class ShippingsettingsGetSupportedCarriersResponse {
|
| }
|
|
|
| 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 (carriers != null) {
|
| _json["carriers"] = carriers.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -10656,12 +11097,11 @@ class ShippingsettingsGetSupportedCarriersResponse {
|
| }
|
|
|
| class ShippingsettingsListResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#shippingsettingsListResponse".
|
| - */
|
| + /// Identifies what kind of resource this is. Value: the fixed string
|
| + /// "content#shippingsettingsListResponse".
|
| core.String kind;
|
| - /** The token for the retrieval of the next page of shipping settings. */
|
| +
|
| + /// The token for the retrieval of the next page of shipping settings.
|
| core.String nextPageToken;
|
| core.List<ShippingSettings> resources;
|
|
|
| @@ -10675,12 +11115,15 @@ class ShippingsettingsListResponse {
|
| nextPageToken = _json["nextPageToken"];
|
| }
|
| if (_json.containsKey("resources")) {
|
| - resources = _json["resources"].map((value) => new ShippingSettings.fromJson(value)).toList();
|
| + resources = _json["resources"]
|
| + .map((value) => new ShippingSettings.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;
|
| }
|
| @@ -10695,19 +11138,18 @@ class ShippingsettingsListResponse {
|
| }
|
|
|
| class Table {
|
| - /**
|
| - * Headers of the table's columns. Optional: if not set then the table has
|
| - * only one dimension.
|
| - */
|
| + /// Headers of the table's columns. Optional: if not set then the table has
|
| + /// only one dimension.
|
| Headers columnHeaders;
|
| - /** Name of the table. Required for subtables, ignored for the main table. */
|
| +
|
| + /// Name of the table. Required for subtables, ignored for the main table.
|
| core.String name;
|
| - /** Headers of the table's rows. Required. */
|
| +
|
| + /// Headers of the table's rows. Required.
|
| Headers rowHeaders;
|
| - /**
|
| - * The list of rows that constitute the table. Must have the same length as
|
| - * rowHeaders. Required.
|
| - */
|
| +
|
| + /// The list of rows that constitute the table. Must have the same length as
|
| + /// rowHeaders. Required.
|
| core.List<Row> rows;
|
|
|
| Table();
|
| @@ -10728,7 +11170,8 @@ class Table {
|
| }
|
|
|
| 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 (columnHeaders != null) {
|
| _json["columnHeaders"] = (columnHeaders).toJson();
|
| }
|
| @@ -10746,31 +11189,33 @@ class Table {
|
| }
|
|
|
| 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();
|
| @@ -10783,16 +11228,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"]);
|
| @@ -10806,7 +11256,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();
|
| }
|
| @@ -10823,7 +11274,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();
|
| @@ -10839,17 +11291,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();
|
| @@ -10867,7 +11319,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;
|
| }
|
| @@ -10882,15 +11335,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();
|
| @@ -10906,7 +11363,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"]);
|
| @@ -10914,7 +11372,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();
|
| }
|
| @@ -10935,31 +11394,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();
|
| @@ -11002,12 +11473,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;
|
| }
|
| @@ -11045,25 +11520,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();
|
| @@ -11087,7 +11565,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;
|
| }
|
| @@ -11107,33 +11586,27 @@ class TestOrderPaymentMethod {
|
| }
|
| }
|
|
|
| -/**
|
| - * The single value of a rate group or the value of a rate group table's cell.
|
| - * Exactly one of noShipping, flatRate, pricePercentage, carrierRateName,
|
| - * subtableName must be set.
|
| - */
|
| +/// The single value of a rate group or the value of a rate group table's cell.
|
| +/// Exactly one of noShipping, flatRate, pricePercentage, carrierRateName,
|
| +/// subtableName must be set.
|
| class Value {
|
| - /**
|
| - * The name of a carrier rate referring to a carrier rate defined in the same
|
| - * rate group. Can only be set if all other fields are not set.
|
| - */
|
| + /// The name of a carrier rate referring to a carrier rate defined in the
|
| + /// same rate group. Can only be set if all other fields are not set.
|
| core.String carrierRateName;
|
| - /** A flat rate. Can only be set if all other fields are not set. */
|
| +
|
| + /// A flat rate. Can only be set if all other fields are not set.
|
| Price flatRate;
|
| - /**
|
| - * If true, then the product can't ship. Must be true when set, can only be
|
| - * set if all other fields are not set.
|
| - */
|
| +
|
| + /// If true, then the product can't ship. Must be true when set, can only be
|
| + /// set if all other fields are not set.
|
| core.bool noShipping;
|
| - /**
|
| - * A percentage of the price represented as a number in decimal notation
|
| - * (e.g., "5.4"). Can only be set if all other fields are not set.
|
| - */
|
| +
|
| + /// A percentage of the price represented as a number in decimal notation
|
| + /// (e.g., "5.4"). Can only be set if all other fields are not set.
|
| core.String pricePercentage;
|
| - /**
|
| - * The name of a subtable. Can only be set in table cells (i.e., not for
|
| - * single values), and only if all other fields are not set.
|
| - */
|
| +
|
| + /// The name of a subtable. Can only be set in table cells (i.e., not for
|
| + /// single values), and only if all other fields are not set.
|
| core.String subtableName;
|
|
|
| Value();
|
| @@ -11157,7 +11630,8 @@ class Value {
|
| }
|
|
|
| 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 (carrierRateName != null) {
|
| _json["carrierRateName"] = carrierRateName;
|
| }
|
| @@ -11178,9 +11652,10 @@ class Value {
|
| }
|
|
|
| class Weight {
|
| - /** The weight unit. */
|
| + /// The weight unit.
|
| core.String unit;
|
| - /** The weight represented as a number. */
|
| +
|
| + /// The weight represented as a number.
|
| core.String value;
|
|
|
| Weight();
|
| @@ -11195,7 +11670,8 @@ class Weight {
|
| }
|
|
|
| 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 (unit != null) {
|
| _json["unit"] = unit;
|
| }
|
|
|