| Index: generated/googleapis/lib/content/v2.dart
|
| diff --git a/generated/googleapis/lib/content/v2.dart b/generated/googleapis/lib/content/v2.dart
|
| index b280ba44f578f91f2beef74e96ea6ab936566360..4f5e71632a28bb3b7504373c00761ccb2913f85b 100644
|
| --- a/generated/googleapis/lib/content/v2.dart
|
| +++ b/generated/googleapis/lib/content/v2.dart
|
| @@ -26,7 +26,6 @@ class ContentApi {
|
| final commons.ApiRequester _requester;
|
|
|
| AccountsResourceApi get accounts => new AccountsResourceApi(_requester);
|
| - AccountshippingResourceApi get accountshipping => new AccountshippingResourceApi(_requester);
|
| AccountstatusesResourceApi get accountstatuses => new AccountstatusesResourceApi(_requester);
|
| AccounttaxResourceApi get accounttax => new AccounttaxResourceApi(_requester);
|
| DatafeedsResourceApi get datafeeds => new DatafeedsResourceApi(_requester);
|
| @@ -442,275 +441,6 @@ class AccountsResourceApi {
|
| }
|
|
|
|
|
| -class AccountshippingResourceApi {
|
| - final commons.ApiRequester _requester;
|
| -
|
| - AccountshippingResourceApi(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 [AccountshippingCustomBatchResponse].
|
| - *
|
| - * 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<AccountshippingCustomBatchResponse> custombatch(AccountshippingCustomBatchRequest request, {core.bool dryRun}) {
|
| - var _url = null;
|
| - var _queryParams = new core.Map();
|
| - var _uploadMedia = null;
|
| - var _uploadOptions = null;
|
| - var _downloadOptions = commons.DownloadOptions.Metadata;
|
| - var _body = null;
|
| -
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| - if (dryRun != null) {
|
| - _queryParams["dryRun"] = ["${dryRun}"];
|
| - }
|
| -
|
| - _url = 'accountshipping/batch';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new AccountshippingCustomBatchResponse.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 or sub-accounts if 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
|
| - * shipping settings.
|
| - *
|
| - * Completes with a [AccountShipping].
|
| - *
|
| - * 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<AccountShipping> get(core.String merchantId, core.String accountId) {
|
| - var _url = null;
|
| - var _queryParams = new core.Map();
|
| - var _uploadMedia = null;
|
| - var _uploadOptions = null;
|
| - var _downloadOptions = commons.DownloadOptions.Metadata;
|
| - var _body = null;
|
| -
|
| - if (merchantId == null) {
|
| - throw new core.ArgumentError("Parameter merchantId is required.");
|
| - }
|
| - if (accountId == null) {
|
| - throw new core.ArgumentError("Parameter accountId is required.");
|
| - }
|
| -
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/accountshipping/' + commons.Escaper.ecapeVariable('$accountId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new AccountShipping.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 [AccountshippingListResponse].
|
| - *
|
| - * 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<AccountshippingListResponse> list(core.String merchantId, {core.int maxResults, core.String pageToken}) {
|
| - var _url = null;
|
| - var _queryParams = new core.Map();
|
| - var _uploadMedia = null;
|
| - var _uploadOptions = null;
|
| - var _downloadOptions = commons.DownloadOptions.Metadata;
|
| - var _body = null;
|
| -
|
| - if (merchantId == null) {
|
| - throw new core.ArgumentError("Parameter merchantId is required.");
|
| - }
|
| - if (maxResults != null) {
|
| - _queryParams["maxResults"] = ["${maxResults}"];
|
| - }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| - }
|
| -
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/accountshipping';
|
| -
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new AccountshippingListResponse.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 or sub-accounts if 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
|
| - * shipping settings.
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [AccountShipping].
|
| - *
|
| - * 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<AccountShipping> patch(AccountShipping request, core.String merchantId, core.String accountId, {core.bool dryRun}) {
|
| - var _url = null;
|
| - var _queryParams = new core.Map();
|
| - var _uploadMedia = null;
|
| - var _uploadOptions = null;
|
| - var _downloadOptions = commons.DownloadOptions.Metadata;
|
| - var _body = null;
|
| -
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| - if (merchantId == null) {
|
| - throw new core.ArgumentError("Parameter merchantId is required.");
|
| - }
|
| - if (accountId == null) {
|
| - throw new core.ArgumentError("Parameter accountId is required.");
|
| - }
|
| - if (dryRun != null) {
|
| - _queryParams["dryRun"] = ["${dryRun}"];
|
| - }
|
| -
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/accountshipping/' + commons.Escaper.ecapeVariable('$accountId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new AccountShipping.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 or sub-accounts if 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
|
| - * shipping settings.
|
| - *
|
| - * [dryRun] - Flag to run the request in dry-run mode.
|
| - *
|
| - * Completes with a [AccountShipping].
|
| - *
|
| - * 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<AccountShipping> update(AccountShipping request, core.String merchantId, core.String accountId, {core.bool dryRun}) {
|
| - var _url = null;
|
| - var _queryParams = new core.Map();
|
| - var _uploadMedia = null;
|
| - var _uploadOptions = null;
|
| - var _downloadOptions = commons.DownloadOptions.Metadata;
|
| - var _body = null;
|
| -
|
| - if (request != null) {
|
| - _body = convert.JSON.encode((request).toJson());
|
| - }
|
| - if (merchantId == null) {
|
| - throw new core.ArgumentError("Parameter merchantId is required.");
|
| - }
|
| - if (accountId == null) {
|
| - throw new core.ArgumentError("Parameter accountId is required.");
|
| - }
|
| - if (dryRun != null) {
|
| - _queryParams["dryRun"] = ["${dryRun}"];
|
| - }
|
| -
|
| - _url = commons.Escaper.ecapeVariable('$merchantId') + '/accountshipping/' + commons.Escaper.ecapeVariable('$accountId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new AccountShipping.fromJson(data));
|
| - }
|
| -
|
| -}
|
| -
|
| -
|
| class AccountstatusesResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| @@ -1845,8 +1575,8 @@ class OrdersResourceApi {
|
| }
|
|
|
| /**
|
| - * Cancels all line items in an order. This method can only be called for
|
| - * non-multi-client accounts.
|
| + * 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.
|
| *
|
| @@ -1895,8 +1625,8 @@ class OrdersResourceApi {
|
| }
|
|
|
| /**
|
| - * Cancels a line item. This method can only be called for non-multi-client
|
| - * accounts.
|
| + * Cancels a line item, making a full refund. This method can only be called
|
| + * for non-multi-client accounts.
|
| *
|
| * [request] - The metadata request object.
|
| *
|
| @@ -3412,630 +3142,24 @@ class AccountIdentifier {
|
| }
|
| }
|
|
|
| -/** The shipping settings of a merchant account. */
|
| -class AccountShipping {
|
| - /** The ID of the account to which these account shipping settings belong. */
|
| +/**
|
| + * 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. */
|
| core.String accountId;
|
| - /** Carrier-based shipping calculations. */
|
| - core.List<AccountShippingCarrierRate> carrierRates;
|
| + /** A list of data quality issues. */
|
| + core.List<AccountStatusDataQualityIssue> dataQualityIssues;
|
| /**
|
| * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accountShipping".
|
| + * "content#accountStatus".
|
| */
|
| core.String kind;
|
| - /** Location groups for shipping. */
|
| - core.List<AccountShippingLocationGroup> locationGroups;
|
| - /** Rate tables definitions. */
|
| - core.List<AccountShippingRateTable> rateTables;
|
| - /** Shipping services describing shipping fees calculation. */
|
| - core.List<AccountShippingShippingService> services;
|
|
|
| - AccountShipping();
|
| + AccountStatus();
|
|
|
| - AccountShipping.fromJson(core.Map _json) {
|
| - if (_json.containsKey("accountId")) {
|
| - accountId = _json["accountId"];
|
| - }
|
| - if (_json.containsKey("carrierRates")) {
|
| - carrierRates = _json["carrierRates"].map((value) => new AccountShippingCarrierRate.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - if (_json.containsKey("locationGroups")) {
|
| - locationGroups = _json["locationGroups"].map((value) => new AccountShippingLocationGroup.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("rateTables")) {
|
| - rateTables = _json["rateTables"].map((value) => new AccountShippingRateTable.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("services")) {
|
| - services = _json["services"].map((value) => new AccountShippingShippingService.fromJson(value)).toList();
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (accountId != null) {
|
| - _json["accountId"] = accountId;
|
| - }
|
| - if (carrierRates != null) {
|
| - _json["carrierRates"] = carrierRates.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| - }
|
| - if (locationGroups != null) {
|
| - _json["locationGroups"] = locationGroups.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (rateTables != null) {
|
| - _json["rateTables"] = rateTables.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (services != null) {
|
| - _json["services"] = services.map((value) => (value).toJson()).toList();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/** A carrier-calculated shipping rate. */
|
| -class AccountShippingCarrierRate {
|
| - /**
|
| - * The carrier that is responsible for the shipping, such as "UPS", "FedEx",
|
| - * or "USPS".
|
| - */
|
| - core.String carrier;
|
| - /** The carrier service, such as "Ground" or "2Day". */
|
| - core.String carrierService;
|
| - /** Additive shipping rate modifier. */
|
| - Price modifierFlatRate;
|
| - /**
|
| - * Multiplicative shipping rate modifier in percent. Represented as a floating
|
| - * point number without the percentage character.
|
| - */
|
| - core.String modifierPercent;
|
| - /** The name of the carrier rate. */
|
| - core.String name;
|
| - /**
|
| - * The sale country for which this carrier rate is valid, represented as a
|
| - * CLDR territory code.
|
| - */
|
| - core.String saleCountry;
|
| - /** Shipping origin represented as a postal code. */
|
| - core.String shippingOrigin;
|
| -
|
| - AccountShippingCarrierRate();
|
| -
|
| - AccountShippingCarrierRate.fromJson(core.Map _json) {
|
| - if (_json.containsKey("carrier")) {
|
| - carrier = _json["carrier"];
|
| - }
|
| - if (_json.containsKey("carrierService")) {
|
| - carrierService = _json["carrierService"];
|
| - }
|
| - if (_json.containsKey("modifierFlatRate")) {
|
| - modifierFlatRate = new Price.fromJson(_json["modifierFlatRate"]);
|
| - }
|
| - if (_json.containsKey("modifierPercent")) {
|
| - modifierPercent = _json["modifierPercent"];
|
| - }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| - }
|
| - if (_json.containsKey("saleCountry")) {
|
| - saleCountry = _json["saleCountry"];
|
| - }
|
| - if (_json.containsKey("shippingOrigin")) {
|
| - shippingOrigin = _json["shippingOrigin"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (carrier != null) {
|
| - _json["carrier"] = carrier;
|
| - }
|
| - if (carrierService != null) {
|
| - _json["carrierService"] = carrierService;
|
| - }
|
| - if (modifierFlatRate != null) {
|
| - _json["modifierFlatRate"] = (modifierFlatRate).toJson();
|
| - }
|
| - if (modifierPercent != null) {
|
| - _json["modifierPercent"] = modifierPercent;
|
| - }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| - }
|
| - if (saleCountry != null) {
|
| - _json["saleCountry"] = saleCountry;
|
| - }
|
| - if (shippingOrigin != null) {
|
| - _json["shippingOrigin"] = shippingOrigin;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -class AccountShippingCondition {
|
| - /**
|
| - * Delivery location in terms of a location group name. A location group with
|
| - * this name must be specified among location groups.
|
| - */
|
| - core.String deliveryLocationGroup;
|
| - /**
|
| - * Delivery location in terms of a location ID. Can be used to represent
|
| - * administrative areas, smaller country subdivisions, or cities.
|
| - */
|
| - core.String deliveryLocationId;
|
| - /** Delivery location in terms of a postal code. */
|
| - core.String deliveryPostalCode;
|
| - /** Delivery location in terms of a postal code range. */
|
| - AccountShippingPostalCodeRange deliveryPostalCodeRange;
|
| - /**
|
| - * Maximum shipping price. Forms an interval between the maximum of smaller
|
| - * prices (exclusive) and this price (inclusive).
|
| - */
|
| - Price priceMax;
|
| - /**
|
| - * Shipping label of the product. The products with the label are matched.
|
| - */
|
| - core.String shippingLabel;
|
| - /**
|
| - * Maximum shipping weight. Forms an interval between the maximum of smaller
|
| - * weight (exclusive) and this weight (inclusive).
|
| - */
|
| - Weight weightMax;
|
| -
|
| - AccountShippingCondition();
|
| -
|
| - AccountShippingCondition.fromJson(core.Map _json) {
|
| - if (_json.containsKey("deliveryLocationGroup")) {
|
| - deliveryLocationGroup = _json["deliveryLocationGroup"];
|
| - }
|
| - if (_json.containsKey("deliveryLocationId")) {
|
| - deliveryLocationId = _json["deliveryLocationId"];
|
| - }
|
| - if (_json.containsKey("deliveryPostalCode")) {
|
| - deliveryPostalCode = _json["deliveryPostalCode"];
|
| - }
|
| - if (_json.containsKey("deliveryPostalCodeRange")) {
|
| - deliveryPostalCodeRange = new AccountShippingPostalCodeRange.fromJson(_json["deliveryPostalCodeRange"]);
|
| - }
|
| - if (_json.containsKey("priceMax")) {
|
| - priceMax = new Price.fromJson(_json["priceMax"]);
|
| - }
|
| - if (_json.containsKey("shippingLabel")) {
|
| - shippingLabel = _json["shippingLabel"];
|
| - }
|
| - if (_json.containsKey("weightMax")) {
|
| - weightMax = new Weight.fromJson(_json["weightMax"]);
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (deliveryLocationGroup != null) {
|
| - _json["deliveryLocationGroup"] = deliveryLocationGroup;
|
| - }
|
| - if (deliveryLocationId != null) {
|
| - _json["deliveryLocationId"] = deliveryLocationId;
|
| - }
|
| - if (deliveryPostalCode != null) {
|
| - _json["deliveryPostalCode"] = deliveryPostalCode;
|
| - }
|
| - if (deliveryPostalCodeRange != null) {
|
| - _json["deliveryPostalCodeRange"] = (deliveryPostalCodeRange).toJson();
|
| - }
|
| - if (priceMax != null) {
|
| - _json["priceMax"] = (priceMax).toJson();
|
| - }
|
| - if (shippingLabel != null) {
|
| - _json["shippingLabel"] = shippingLabel;
|
| - }
|
| - if (weightMax != null) {
|
| - _json["weightMax"] = (weightMax).toJson();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/**
|
| - * A user-defined locations group in a given country. All the locations of the
|
| - * group must be of the same type.
|
| - */
|
| -class AccountShippingLocationGroup {
|
| - /**
|
| - * The CLDR territory code of the country in which this location group is.
|
| - */
|
| - core.String country;
|
| - /**
|
| - * A location ID (also called criteria ID) representing administrative areas,
|
| - * smaller country subdivisions (counties), or cities.
|
| - */
|
| - core.List<core.String> locationIds;
|
| - /** The name of the location group. */
|
| - core.String name;
|
| - /** A postal code range representing a city or a set of cities. */
|
| - core.List<AccountShippingPostalCodeRange> postalCodeRanges;
|
| - /**
|
| - * A postal code representing a city or a set of cities.
|
| - * - A single postal code (e.g., 12345)
|
| - * - A postal code prefix followed by a star (e.g., 1234*)
|
| - */
|
| - core.List<core.String> postalCodes;
|
| -
|
| - AccountShippingLocationGroup();
|
| -
|
| - AccountShippingLocationGroup.fromJson(core.Map _json) {
|
| - if (_json.containsKey("country")) {
|
| - country = _json["country"];
|
| - }
|
| - if (_json.containsKey("locationIds")) {
|
| - locationIds = _json["locationIds"];
|
| - }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| - }
|
| - if (_json.containsKey("postalCodeRanges")) {
|
| - postalCodeRanges = _json["postalCodeRanges"].map((value) => new AccountShippingPostalCodeRange.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("postalCodes")) {
|
| - postalCodes = _json["postalCodes"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (country != null) {
|
| - _json["country"] = country;
|
| - }
|
| - if (locationIds != null) {
|
| - _json["locationIds"] = locationIds;
|
| - }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| - }
|
| - if (postalCodeRanges != null) {
|
| - _json["postalCodeRanges"] = postalCodeRanges.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (postalCodes != null) {
|
| - _json["postalCodes"] = postalCodes;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/**
|
| - * A postal code range, that can be either:
|
| - * - A range of postal codes (e.g., start=12340, end=12359)
|
| - * - A range of postal codes prefixes (e.g., start=1234* end=1235*). Prefixes
|
| - * must be of the same length (e.g., start=12* end=2* is invalid).
|
| - */
|
| -class AccountShippingPostalCodeRange {
|
| - /** The last (inclusive) postal code or prefix of the range. */
|
| - core.String end;
|
| - /** The first (inclusive) postal code or prefix of the range. */
|
| - core.String start;
|
| -
|
| - AccountShippingPostalCodeRange();
|
| -
|
| - AccountShippingPostalCodeRange.fromJson(core.Map _json) {
|
| - if (_json.containsKey("end")) {
|
| - end = _json["end"];
|
| - }
|
| - if (_json.containsKey("start")) {
|
| - start = _json["start"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (end != null) {
|
| - _json["end"] = end;
|
| - }
|
| - if (start != null) {
|
| - _json["start"] = start;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/**
|
| - * A single or bi-dimensional table of shipping rates. Each dimension is defined
|
| - * in terms of consecutive price/weight ranges, delivery locations, or shipping
|
| - * labels.
|
| - */
|
| -class AccountShippingRateTable {
|
| - /**
|
| - * One-dimensional table cells define one condition along the same dimension.
|
| - * Bi-dimensional table cells use two dimensions with respectively M and N
|
| - * distinct values and must contain exactly M * N cells with distinct
|
| - * conditions (for each possible value pairs).
|
| - */
|
| - core.List<AccountShippingRateTableCell> content;
|
| - /** The name of the rate table. */
|
| - core.String name;
|
| - /**
|
| - * The sale country for which this table is valid, represented as a CLDR
|
| - * territory code.
|
| - */
|
| - core.String saleCountry;
|
| -
|
| - AccountShippingRateTable();
|
| -
|
| - AccountShippingRateTable.fromJson(core.Map _json) {
|
| - if (_json.containsKey("content")) {
|
| - content = _json["content"].map((value) => new AccountShippingRateTableCell.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| - }
|
| - if (_json.containsKey("saleCountry")) {
|
| - saleCountry = _json["saleCountry"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (content != null) {
|
| - _json["content"] = content.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| - }
|
| - if (saleCountry != null) {
|
| - _json["saleCountry"] = saleCountry;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -class AccountShippingRateTableCell {
|
| - /**
|
| - * Conditions for which the cell is valid. All cells in a table must use the
|
| - * same dimension or pair of dimensions among price, weight, shipping label or
|
| - * delivery location. If no condition is specified, the cell acts as a
|
| - * catch-all and matches all the elements that are not matched by other cells
|
| - * in this dimension.
|
| - */
|
| - AccountShippingCondition condition;
|
| - /** The rate applicable if the cell conditions are matched. */
|
| - Price rate;
|
| -
|
| - AccountShippingRateTableCell();
|
| -
|
| - AccountShippingRateTableCell.fromJson(core.Map _json) {
|
| - if (_json.containsKey("condition")) {
|
| - condition = new AccountShippingCondition.fromJson(_json["condition"]);
|
| - }
|
| - if (_json.containsKey("rate")) {
|
| - rate = new Price.fromJson(_json["rate"]);
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (condition != null) {
|
| - _json["condition"] = (condition).toJson();
|
| - }
|
| - if (rate != null) {
|
| - _json["rate"] = (rate).toJson();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/** Shipping services provided in a country. */
|
| -class AccountShippingShippingService {
|
| - /** Whether the shipping service is available. */
|
| - core.bool active;
|
| - /** Calculation method for the "simple" case that needs no rules. */
|
| - AccountShippingShippingServiceCalculationMethod calculationMethod;
|
| - /** Decision tree for "complicated" shipping cost calculation. */
|
| - AccountShippingShippingServiceCostRule costRuleTree;
|
| - /**
|
| - * The maximum number of days in transit. Must be a value between 0 and 250
|
| - * included. A value of 0 means same day delivery.
|
| - */
|
| - core.String maxDaysInTransit;
|
| - /**
|
| - * The minimum number of days in transit. Must be a value between 0 and
|
| - * maxDaysIntransit included. A value of 0 means same day delivery.
|
| - */
|
| - core.String minDaysInTransit;
|
| - /** The name of this shipping service. */
|
| - core.String name;
|
| - /**
|
| - * The CLDR territory code of the sale country for which this service can be
|
| - * used.
|
| - */
|
| - core.String saleCountry;
|
| -
|
| - AccountShippingShippingService();
|
| -
|
| - AccountShippingShippingService.fromJson(core.Map _json) {
|
| - if (_json.containsKey("active")) {
|
| - active = _json["active"];
|
| - }
|
| - if (_json.containsKey("calculationMethod")) {
|
| - calculationMethod = new AccountShippingShippingServiceCalculationMethod.fromJson(_json["calculationMethod"]);
|
| - }
|
| - if (_json.containsKey("costRuleTree")) {
|
| - costRuleTree = new AccountShippingShippingServiceCostRule.fromJson(_json["costRuleTree"]);
|
| - }
|
| - if (_json.containsKey("maxDaysInTransit")) {
|
| - maxDaysInTransit = _json["maxDaysInTransit"];
|
| - }
|
| - if (_json.containsKey("minDaysInTransit")) {
|
| - minDaysInTransit = _json["minDaysInTransit"];
|
| - }
|
| - if (_json.containsKey("name")) {
|
| - name = _json["name"];
|
| - }
|
| - if (_json.containsKey("saleCountry")) {
|
| - saleCountry = _json["saleCountry"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (active != null) {
|
| - _json["active"] = active;
|
| - }
|
| - if (calculationMethod != null) {
|
| - _json["calculationMethod"] = (calculationMethod).toJson();
|
| - }
|
| - if (costRuleTree != null) {
|
| - _json["costRuleTree"] = (costRuleTree).toJson();
|
| - }
|
| - if (maxDaysInTransit != null) {
|
| - _json["maxDaysInTransit"] = maxDaysInTransit;
|
| - }
|
| - if (minDaysInTransit != null) {
|
| - _json["minDaysInTransit"] = minDaysInTransit;
|
| - }
|
| - if (name != null) {
|
| - _json["name"] = name;
|
| - }
|
| - if (saleCountry != null) {
|
| - _json["saleCountry"] = saleCountry;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/** Shipping cost calculation method. Exactly one of the field is set. */
|
| -class AccountShippingShippingServiceCalculationMethod {
|
| - /** Name of the carrier rate to use for the calculation. */
|
| - core.String carrierRate;
|
| - /** Delivery is excluded. Valid only within cost rules tree. */
|
| - core.bool excluded;
|
| - /**
|
| - * Fixed price shipping, represented as a floating point number associated
|
| - * with a currency.
|
| - */
|
| - Price flatRate;
|
| - /**
|
| - * Percentage of the price, represented as a floating point number without the
|
| - * percentage character.
|
| - */
|
| - core.String percentageRate;
|
| - /** Name of the rate table to use for the calculation. */
|
| - core.String rateTable;
|
| -
|
| - AccountShippingShippingServiceCalculationMethod();
|
| -
|
| - AccountShippingShippingServiceCalculationMethod.fromJson(core.Map _json) {
|
| - if (_json.containsKey("carrierRate")) {
|
| - carrierRate = _json["carrierRate"];
|
| - }
|
| - if (_json.containsKey("excluded")) {
|
| - excluded = _json["excluded"];
|
| - }
|
| - if (_json.containsKey("flatRate")) {
|
| - flatRate = new Price.fromJson(_json["flatRate"]);
|
| - }
|
| - if (_json.containsKey("percentageRate")) {
|
| - percentageRate = _json["percentageRate"];
|
| - }
|
| - if (_json.containsKey("rateTable")) {
|
| - rateTable = _json["rateTable"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (carrierRate != null) {
|
| - _json["carrierRate"] = carrierRate;
|
| - }
|
| - if (excluded != null) {
|
| - _json["excluded"] = excluded;
|
| - }
|
| - if (flatRate != null) {
|
| - _json["flatRate"] = (flatRate).toJson();
|
| - }
|
| - if (percentageRate != null) {
|
| - _json["percentageRate"] = percentageRate;
|
| - }
|
| - if (rateTable != null) {
|
| - _json["rateTable"] = rateTable;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/**
|
| - * Building block of the cost calculation decision tree.
|
| - * - The tree root should have no condition and no calculation method.
|
| - * - All the children must have a condition on the same dimension. The first
|
| - * child matching a condition is entered, therefore, price and weight conditions
|
| - * form contiguous intervals.
|
| - * - The last child of an element must have no condition and matches all
|
| - * elements not previously matched.
|
| - * - Children and calculation method are mutually exclusive, and exactly one of
|
| - * them must be defined; the root must only have children.
|
| - */
|
| -class AccountShippingShippingServiceCostRule {
|
| - /** Final calculation method to be used only in leaf nodes. */
|
| - AccountShippingShippingServiceCalculationMethod calculationMethod;
|
| - /**
|
| - * Subsequent rules to be applied, only for inner nodes. The last child must
|
| - * not specify a condition and acts as a catch-all.
|
| - */
|
| - core.List<AccountShippingShippingServiceCostRule> children;
|
| - /**
|
| - * Condition for this rule to be applicable. If no condition is specified, the
|
| - * rule acts as a catch-all.
|
| - */
|
| - AccountShippingCondition condition;
|
| -
|
| - AccountShippingShippingServiceCostRule();
|
| -
|
| - AccountShippingShippingServiceCostRule.fromJson(core.Map _json) {
|
| - if (_json.containsKey("calculationMethod")) {
|
| - calculationMethod = new AccountShippingShippingServiceCalculationMethod.fromJson(_json["calculationMethod"]);
|
| - }
|
| - if (_json.containsKey("children")) {
|
| - children = _json["children"].map((value) => new AccountShippingShippingServiceCostRule.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("condition")) {
|
| - condition = new AccountShippingCondition.fromJson(_json["condition"]);
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (calculationMethod != null) {
|
| - _json["calculationMethod"] = (calculationMethod).toJson();
|
| - }
|
| - if (children != null) {
|
| - _json["children"] = children.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (condition != null) {
|
| - _json["condition"] = (condition).toJson();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/**
|
| - * 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. */
|
| - core.String accountId;
|
| - /** A list of data quality issues. */
|
| - core.List<AccountStatusDataQualityIssue> dataQualityIssues;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accountStatus".
|
| - */
|
| - core.String kind;
|
| -
|
| - AccountStatus();
|
| -
|
| - AccountStatus.fromJson(core.Map _json) {
|
| + AccountStatus.fromJson(core.Map _json) {
|
| if (_json.containsKey("accountId")) {
|
| accountId = _json["accountId"];
|
| }
|
| @@ -4589,207 +3713,6 @@ class AccountsListResponse {
|
| }
|
| }
|
|
|
| -class AccountshippingCustomBatchRequest {
|
| - /** The request entries to be processed in the batch. */
|
| - core.List<AccountshippingCustomBatchRequestEntry> entries;
|
| -
|
| - AccountshippingCustomBatchRequest();
|
| -
|
| - AccountshippingCustomBatchRequest.fromJson(core.Map _json) {
|
| - if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new AccountshippingCustomBatchRequestEntry.fromJson(value)).toList();
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (entries != null) {
|
| - _json["entries"] = entries.map((value) => (value).toJson()).toList();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/** A batch entry encoding a single non-batch accountshipping request. */
|
| -class AccountshippingCustomBatchRequestEntry {
|
| - /**
|
| - * The ID of the account for which to get/update account shipping settings.
|
| - */
|
| - core.String accountId;
|
| - /**
|
| - * The account shipping settings to update. Only defined if the method is
|
| - * update.
|
| - */
|
| - AccountShipping accountShipping;
|
| - /** An entry ID, unique within the batch request. */
|
| - core.int batchId;
|
| - /** The ID of the managing account. */
|
| - core.String merchantId;
|
| - core.String method;
|
| -
|
| - AccountshippingCustomBatchRequestEntry();
|
| -
|
| - AccountshippingCustomBatchRequestEntry.fromJson(core.Map _json) {
|
| - if (_json.containsKey("accountId")) {
|
| - accountId = _json["accountId"];
|
| - }
|
| - if (_json.containsKey("accountShipping")) {
|
| - accountShipping = new AccountShipping.fromJson(_json["accountShipping"]);
|
| - }
|
| - if (_json.containsKey("batchId")) {
|
| - batchId = _json["batchId"];
|
| - }
|
| - if (_json.containsKey("merchantId")) {
|
| - merchantId = _json["merchantId"];
|
| - }
|
| - if (_json.containsKey("method")) {
|
| - method = _json["method"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (accountId != null) {
|
| - _json["accountId"] = accountId;
|
| - }
|
| - if (accountShipping != null) {
|
| - _json["accountShipping"] = (accountShipping).toJson();
|
| - }
|
| - if (batchId != null) {
|
| - _json["batchId"] = batchId;
|
| - }
|
| - if (merchantId != null) {
|
| - _json["merchantId"] = merchantId;
|
| - }
|
| - if (method != null) {
|
| - _json["method"] = method;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -class AccountshippingCustomBatchResponse {
|
| - /** The result of the execution of the batch requests. */
|
| - core.List<AccountshippingCustomBatchResponseEntry> entries;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accountshippingCustomBatchResponse".
|
| - */
|
| - core.String kind;
|
| -
|
| - AccountshippingCustomBatchResponse();
|
| -
|
| - AccountshippingCustomBatchResponse.fromJson(core.Map _json) {
|
| - if (_json.containsKey("entries")) {
|
| - entries = _json["entries"].map((value) => new AccountshippingCustomBatchResponseEntry.fromJson(value)).toList();
|
| - }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (entries != null) {
|
| - _json["entries"] = entries.map((value) => (value).toJson()).toList();
|
| - }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -/** A batch entry encoding a single non-batch accountshipping response. */
|
| -class AccountshippingCustomBatchResponseEntry {
|
| - /** The retrieved or updated account shipping settings. */
|
| - AccountShipping accountShipping;
|
| - /** 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. */
|
| - Errors errors;
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accountshippingCustomBatchResponseEntry".
|
| - */
|
| - core.String kind;
|
| -
|
| - AccountshippingCustomBatchResponseEntry();
|
| -
|
| - AccountshippingCustomBatchResponseEntry.fromJson(core.Map _json) {
|
| - if (_json.containsKey("accountShipping")) {
|
| - accountShipping = new AccountShipping.fromJson(_json["accountShipping"]);
|
| - }
|
| - if (_json.containsKey("batchId")) {
|
| - batchId = _json["batchId"];
|
| - }
|
| - if (_json.containsKey("errors")) {
|
| - errors = new Errors.fromJson(_json["errors"]);
|
| - }
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (accountShipping != null) {
|
| - _json["accountShipping"] = (accountShipping).toJson();
|
| - }
|
| - if (batchId != null) {
|
| - _json["batchId"] = batchId;
|
| - }
|
| - if (errors != null) {
|
| - _json["errors"] = (errors).toJson();
|
| - }
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| -class AccountshippingListResponse {
|
| - /**
|
| - * Identifies what kind of resource this is. Value: the fixed string
|
| - * "content#accountshippingListResponse".
|
| - */
|
| - core.String kind;
|
| - /**
|
| - * The token for the retrieval of the next page of account shipping settings.
|
| - */
|
| - core.String nextPageToken;
|
| - core.List<AccountShipping> resources;
|
| -
|
| - AccountshippingListResponse();
|
| -
|
| - AccountshippingListResponse.fromJson(core.Map _json) {
|
| - if (_json.containsKey("kind")) {
|
| - kind = _json["kind"];
|
| - }
|
| - if (_json.containsKey("nextPageToken")) {
|
| - nextPageToken = _json["nextPageToken"];
|
| - }
|
| - if (_json.containsKey("resources")) {
|
| - resources = _json["resources"].map((value) => new AccountShipping.fromJson(value)).toList();
|
| - }
|
| - }
|
| -
|
| - core.Map toJson() {
|
| - var _json = new core.Map();
|
| - if (kind != null) {
|
| - _json["kind"] = kind;
|
| - }
|
| - if (nextPageToken != null) {
|
| - _json["nextPageToken"] = nextPageToken;
|
| - }
|
| - if (resources != null) {
|
| - _json["resources"] = resources.map((value) => (value).toJson()).toList();
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| class AccountstatusesCustomBatchRequest {
|
| /** The request entries to be processed in the batch. */
|
| core.List<AccountstatusesCustomBatchRequestEntry> entries;
|
| @@ -11345,7 +10268,7 @@ class ShippingsettingsCustomBatchRequest {
|
| }
|
| }
|
|
|
| -/** A batch entry encoding a single non-batch accountshipping 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.
|
|
|