Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Side by Side Diff: generated/googleapis/lib/content/v2.dart

Issue 2281923002: Api-roll 41: 2016-08-26 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/compute/v1.dart ('k') | generated/googleapis/lib/datastore/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.content.v2; 3 library googleapis.content.v2;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
(...skipping 17 matching lines...) Expand all
28 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); 28 AccountsResourceApi get accounts => new AccountsResourceApi(_requester);
29 AccountshippingResourceApi get accountshipping => new AccountshippingResourceA pi(_requester); 29 AccountshippingResourceApi get accountshipping => new AccountshippingResourceA pi(_requester);
30 AccountstatusesResourceApi get accountstatuses => new AccountstatusesResourceA pi(_requester); 30 AccountstatusesResourceApi get accountstatuses => new AccountstatusesResourceA pi(_requester);
31 AccounttaxResourceApi get accounttax => new AccounttaxResourceApi(_requester); 31 AccounttaxResourceApi get accounttax => new AccounttaxResourceApi(_requester);
32 DatafeedsResourceApi get datafeeds => new DatafeedsResourceApi(_requester); 32 DatafeedsResourceApi get datafeeds => new DatafeedsResourceApi(_requester);
33 DatafeedstatusesResourceApi get datafeedstatuses => new DatafeedstatusesResour ceApi(_requester); 33 DatafeedstatusesResourceApi get datafeedstatuses => new DatafeedstatusesResour ceApi(_requester);
34 InventoryResourceApi get inventory => new InventoryResourceApi(_requester); 34 InventoryResourceApi get inventory => new InventoryResourceApi(_requester);
35 OrdersResourceApi get orders => new OrdersResourceApi(_requester); 35 OrdersResourceApi get orders => new OrdersResourceApi(_requester);
36 ProductsResourceApi get products => new ProductsResourceApi(_requester); 36 ProductsResourceApi get products => new ProductsResourceApi(_requester);
37 ProductstatusesResourceApi get productstatuses => new ProductstatusesResourceA pi(_requester); 37 ProductstatusesResourceApi get productstatuses => new ProductstatusesResourceA pi(_requester);
38 ShippingsettingsResourceApi get shippingsettings => new ShippingsettingsResour ceApi(_requester);
38 39
39 ContentApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c om/", core.String servicePath: "content/v2/"}) : 40 ContentApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c om/", core.String servicePath: "content/v2/"}) :
40 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 41 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
41 } 42 }
42 43
43 44
44 class AccountsResourceApi { 45 class AccountsResourceApi {
45 final commons.ApiRequester _requester; 46 final commons.ApiRequester _requester;
46 47
47 AccountsResourceApi(commons.ApiRequester client) : 48 AccountsResourceApi(commons.ApiRequester client) :
(...skipping 2809 matching lines...) Expand 10 before | Expand all | Expand 10 after
2857 queryParams: _queryParams, 2858 queryParams: _queryParams,
2858 uploadOptions: _uploadOptions, 2859 uploadOptions: _uploadOptions,
2859 uploadMedia: _uploadMedia, 2860 uploadMedia: _uploadMedia,
2860 downloadOptions: _downloadOptions); 2861 downloadOptions: _downloadOptions);
2861 return _response.then((data) => new ProductstatusesListResponse.fromJson(dat a)); 2862 return _response.then((data) => new ProductstatusesListResponse.fromJson(dat a));
2862 } 2863 }
2863 2864
2864 } 2865 }
2865 2866
2866 2867
2868 class ShippingsettingsResourceApi {
2869 final commons.ApiRequester _requester;
2870
2871 ShippingsettingsResourceApi(commons.ApiRequester client) :
2872 _requester = client;
2873
2874 /**
2875 * Retrieves and updates the shipping settings of multiple accounts in a
2876 * single request.
2877 *
2878 * [request] - The metadata request object.
2879 *
2880 * Request parameters:
2881 *
2882 * [dryRun] - Flag to run the request in dry-run mode.
2883 *
2884 * Completes with a [ShippingsettingsCustomBatchResponse].
2885 *
2886 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2887 * error.
2888 *
2889 * If the used [http.Client] completes with an error when making a REST call,
2890 * this method will complete with the same error.
2891 */
2892 async.Future<ShippingsettingsCustomBatchResponse> custombatch(Shippingsettings CustomBatchRequest request, {core.bool dryRun}) {
2893 var _url = null;
2894 var _queryParams = new core.Map();
2895 var _uploadMedia = null;
2896 var _uploadOptions = null;
2897 var _downloadOptions = commons.DownloadOptions.Metadata;
2898 var _body = null;
2899
2900 if (request != null) {
2901 _body = convert.JSON.encode((request).toJson());
2902 }
2903 if (dryRun != null) {
2904 _queryParams["dryRun"] = ["${dryRun}"];
2905 }
2906
2907 _url = 'shippingsettings/batch';
2908
2909 var _response = _requester.request(_url,
2910 "POST",
2911 body: _body,
2912 queryParams: _queryParams,
2913 uploadOptions: _uploadOptions,
2914 uploadMedia: _uploadMedia,
2915 downloadOptions: _downloadOptions);
2916 return _response.then((data) => new ShippingsettingsCustomBatchResponse.from Json(data));
2917 }
2918
2919 /**
2920 * Retrieves the shipping settings of the account.
2921 *
2922 * Request parameters:
2923 *
2924 * [merchantId] - The ID of the managing account.
2925 *
2926 * [accountId] - The ID of the account for which to get/update shipping
2927 * settings.
2928 *
2929 * Completes with a [ShippingSettings].
2930 *
2931 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2932 * error.
2933 *
2934 * If the used [http.Client] completes with an error when making a REST call,
2935 * this method will complete with the same error.
2936 */
2937 async.Future<ShippingSettings> get(core.String merchantId, core.String account Id) {
2938 var _url = null;
2939 var _queryParams = new core.Map();
2940 var _uploadMedia = null;
2941 var _uploadOptions = null;
2942 var _downloadOptions = commons.DownloadOptions.Metadata;
2943 var _body = null;
2944
2945 if (merchantId == null) {
2946 throw new core.ArgumentError("Parameter merchantId is required.");
2947 }
2948 if (accountId == null) {
2949 throw new core.ArgumentError("Parameter accountId is required.");
2950 }
2951
2952 _url = commons.Escaper.ecapeVariable('$merchantId') + '/shippingsettings/' + commons.Escaper.ecapeVariable('$accountId');
2953
2954 var _response = _requester.request(_url,
2955 "GET",
2956 body: _body,
2957 queryParams: _queryParams,
2958 uploadOptions: _uploadOptions,
2959 uploadMedia: _uploadMedia,
2960 downloadOptions: _downloadOptions);
2961 return _response.then((data) => new ShippingSettings.fromJson(data));
2962 }
2963
2964 /**
2965 * Retrieves supported carriers and carrier services for an account.
2966 *
2967 * Request parameters:
2968 *
2969 * [merchantId] - The ID of the account for which to retrieve the supported
2970 * carriers.
2971 *
2972 * Completes with a [ShippingsettingsGetSupportedCarriersResponse].
2973 *
2974 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2975 * error.
2976 *
2977 * If the used [http.Client] completes with an error when making a REST call,
2978 * this method will complete with the same error.
2979 */
2980 async.Future<ShippingsettingsGetSupportedCarriersResponse> getsupportedcarrier s(core.String merchantId) {
2981 var _url = null;
2982 var _queryParams = new core.Map();
2983 var _uploadMedia = null;
2984 var _uploadOptions = null;
2985 var _downloadOptions = commons.DownloadOptions.Metadata;
2986 var _body = null;
2987
2988 if (merchantId == null) {
2989 throw new core.ArgumentError("Parameter merchantId is required.");
2990 }
2991
2992 _url = commons.Escaper.ecapeVariable('$merchantId') + '/supportedCarriers';
2993
2994 var _response = _requester.request(_url,
2995 "GET",
2996 body: _body,
2997 queryParams: _queryParams,
2998 uploadOptions: _uploadOptions,
2999 uploadMedia: _uploadMedia,
3000 downloadOptions: _downloadOptions);
3001 return _response.then((data) => new ShippingsettingsGetSupportedCarriersResp onse.fromJson(data));
3002 }
3003
3004 /**
3005 * Lists the shipping settings of the sub-accounts in your Merchant Center
3006 * account.
3007 *
3008 * Request parameters:
3009 *
3010 * [merchantId] - The ID of the managing account.
3011 *
3012 * [maxResults] - The maximum number of shipping settings to return in the
3013 * response, used for paging.
3014 *
3015 * [pageToken] - The token returned by the previous request.
3016 *
3017 * Completes with a [ShippingsettingsListResponse].
3018 *
3019 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3020 * error.
3021 *
3022 * If the used [http.Client] completes with an error when making a REST call,
3023 * this method will complete with the same error.
3024 */
3025 async.Future<ShippingsettingsListResponse> list(core.String merchantId, {core. int maxResults, core.String pageToken}) {
3026 var _url = null;
3027 var _queryParams = new core.Map();
3028 var _uploadMedia = null;
3029 var _uploadOptions = null;
3030 var _downloadOptions = commons.DownloadOptions.Metadata;
3031 var _body = null;
3032
3033 if (merchantId == null) {
3034 throw new core.ArgumentError("Parameter merchantId is required.");
3035 }
3036 if (maxResults != null) {
3037 _queryParams["maxResults"] = ["${maxResults}"];
3038 }
3039 if (pageToken != null) {
3040 _queryParams["pageToken"] = [pageToken];
3041 }
3042
3043 _url = commons.Escaper.ecapeVariable('$merchantId') + '/shippingsettings';
3044
3045 var _response = _requester.request(_url,
3046 "GET",
3047 body: _body,
3048 queryParams: _queryParams,
3049 uploadOptions: _uploadOptions,
3050 uploadMedia: _uploadMedia,
3051 downloadOptions: _downloadOptions);
3052 return _response.then((data) => new ShippingsettingsListResponse.fromJson(da ta));
3053 }
3054
3055 /**
3056 * Updates the shipping settings of the account. This method supports patch
3057 * semantics.
3058 *
3059 * [request] - The metadata request object.
3060 *
3061 * Request parameters:
3062 *
3063 * [merchantId] - The ID of the managing account.
3064 *
3065 * [accountId] - The ID of the account for which to get/update shipping
3066 * settings.
3067 *
3068 * [dryRun] - Flag to run the request in dry-run mode.
3069 *
3070 * Completes with a [ShippingSettings].
3071 *
3072 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3073 * error.
3074 *
3075 * If the used [http.Client] completes with an error when making a REST call,
3076 * this method will complete with the same error.
3077 */
3078 async.Future<ShippingSettings> patch(ShippingSettings request, core.String mer chantId, core.String accountId, {core.bool dryRun}) {
3079 var _url = null;
3080 var _queryParams = new core.Map();
3081 var _uploadMedia = null;
3082 var _uploadOptions = null;
3083 var _downloadOptions = commons.DownloadOptions.Metadata;
3084 var _body = null;
3085
3086 if (request != null) {
3087 _body = convert.JSON.encode((request).toJson());
3088 }
3089 if (merchantId == null) {
3090 throw new core.ArgumentError("Parameter merchantId is required.");
3091 }
3092 if (accountId == null) {
3093 throw new core.ArgumentError("Parameter accountId is required.");
3094 }
3095 if (dryRun != null) {
3096 _queryParams["dryRun"] = ["${dryRun}"];
3097 }
3098
3099 _url = commons.Escaper.ecapeVariable('$merchantId') + '/shippingsettings/' + commons.Escaper.ecapeVariable('$accountId');
3100
3101 var _response = _requester.request(_url,
3102 "PATCH",
3103 body: _body,
3104 queryParams: _queryParams,
3105 uploadOptions: _uploadOptions,
3106 uploadMedia: _uploadMedia,
3107 downloadOptions: _downloadOptions);
3108 return _response.then((data) => new ShippingSettings.fromJson(data));
3109 }
3110
3111 /**
3112 * Updates the shipping settings of the account.
3113 *
3114 * [request] - The metadata request object.
3115 *
3116 * Request parameters:
3117 *
3118 * [merchantId] - The ID of the managing account.
3119 *
3120 * [accountId] - The ID of the account for which to get/update shipping
3121 * settings.
3122 *
3123 * [dryRun] - Flag to run the request in dry-run mode.
3124 *
3125 * Completes with a [ShippingSettings].
3126 *
3127 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3128 * error.
3129 *
3130 * If the used [http.Client] completes with an error when making a REST call,
3131 * this method will complete with the same error.
3132 */
3133 async.Future<ShippingSettings> update(ShippingSettings request, core.String me rchantId, core.String accountId, {core.bool dryRun}) {
3134 var _url = null;
3135 var _queryParams = new core.Map();
3136 var _uploadMedia = null;
3137 var _uploadOptions = null;
3138 var _downloadOptions = commons.DownloadOptions.Metadata;
3139 var _body = null;
3140
3141 if (request != null) {
3142 _body = convert.JSON.encode((request).toJson());
3143 }
3144 if (merchantId == null) {
3145 throw new core.ArgumentError("Parameter merchantId is required.");
3146 }
3147 if (accountId == null) {
3148 throw new core.ArgumentError("Parameter accountId is required.");
3149 }
3150 if (dryRun != null) {
3151 _queryParams["dryRun"] = ["${dryRun}"];
3152 }
3153
3154 _url = commons.Escaper.ecapeVariable('$merchantId') + '/shippingsettings/' + commons.Escaper.ecapeVariable('$accountId');
3155
3156 var _response = _requester.request(_url,
3157 "PUT",
3158 body: _body,
3159 queryParams: _queryParams,
3160 uploadOptions: _uploadOptions,
3161 uploadMedia: _uploadMedia,
3162 downloadOptions: _downloadOptions);
3163 return _response.then((data) => new ShippingSettings.fromJson(data));
3164 }
3165
3166 }
3167
3168
2867 3169
2868 /** Account data. */ 3170 /** Account data. */
2869 class Account { 3171 class Account {
2870 /** Indicates whether the merchant sells adult content. */ 3172 /** Indicates whether the merchant sells adult content. */
2871 core.bool adultContent; 3173 core.bool adultContent;
2872 /** 3174 /**
2873 * List of linked AdWords accounts, active or pending approval. To create a 3175 * List of linked AdWords accounts, active or pending approval. To create a
2874 * new link request, add a new link with status active to the list. It will 3176 * new link request, add a new link with status active to the list. It will
2875 * remain is state pending until approved or rejected in the AdWords 3177 * remain is state pending until approved or rejected in the AdWords
2876 * interface. To delete an active link or to cancel a link request, remove it 3178 * interface. To delete an active link or to cancel a link request, remove it
(...skipping 1889 matching lines...) Expand 10 before | Expand all | Expand 10 after
4766 if (nextPageToken != null) { 5068 if (nextPageToken != null) {
4767 _json["nextPageToken"] = nextPageToken; 5069 _json["nextPageToken"] = nextPageToken;
4768 } 5070 }
4769 if (resources != null) { 5071 if (resources != null) {
4770 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 5072 _json["resources"] = resources.map((value) => (value).toJson()).toList();
4771 } 5073 }
4772 return _json; 5074 return _json;
4773 } 5075 }
4774 } 5076 }
4775 5077
5078 class CarrierRate {
5079 /**
5080 * Carrier service, such as "UPS" or "Fedex". The list of supported carriers
5081 * can be retrieved via the getSupportedCarriers method. Required.
5082 */
5083 core.String carrierName;
5084 /**
5085 * Carrier service, such as "ground" or "2 days". The list of supported
5086 * services for a carrier can be retrieved via the getSupportedCarriers
5087 * method. Required.
5088 */
5089 core.String carrierService;
5090 /**
5091 * Additive shipping rate modifier. Can be negative. For example { "value":
5092 * "1", "currency" : "USD" } adds $1 to the rate, { "value": "-3", "currency"
5093 * : "USD" } removes $3 from the rate. Optional.
5094 */
5095 Price flatAdjustment;
5096 /** Name of the carrier rate. Must be unique per rate group. Required. */
5097 core.String name;
5098 /** Shipping origin for this carrier rate. Required. */
5099 core.String originPostalCode;
5100 /**
5101 * Multiplicative shipping rate modifier as a number in decimal notation. Can
5102 * be negative. For example "5.4" increases the rate by 5.4%, "-3" decreases
5103 * the rate by 3%. Optional.
5104 */
5105 core.String percentageAdjustment;
5106
5107 CarrierRate();
5108
5109 CarrierRate.fromJson(core.Map _json) {
5110 if (_json.containsKey("carrierName")) {
5111 carrierName = _json["carrierName"];
5112 }
5113 if (_json.containsKey("carrierService")) {
5114 carrierService = _json["carrierService"];
5115 }
5116 if (_json.containsKey("flatAdjustment")) {
5117 flatAdjustment = new Price.fromJson(_json["flatAdjustment"]);
5118 }
5119 if (_json.containsKey("name")) {
5120 name = _json["name"];
5121 }
5122 if (_json.containsKey("originPostalCode")) {
5123 originPostalCode = _json["originPostalCode"];
5124 }
5125 if (_json.containsKey("percentageAdjustment")) {
5126 percentageAdjustment = _json["percentageAdjustment"];
5127 }
5128 }
5129
5130 core.Map toJson() {
5131 var _json = new core.Map();
5132 if (carrierName != null) {
5133 _json["carrierName"] = carrierName;
5134 }
5135 if (carrierService != null) {
5136 _json["carrierService"] = carrierService;
5137 }
5138 if (flatAdjustment != null) {
5139 _json["flatAdjustment"] = (flatAdjustment).toJson();
5140 }
5141 if (name != null) {
5142 _json["name"] = name;
5143 }
5144 if (originPostalCode != null) {
5145 _json["originPostalCode"] = originPostalCode;
5146 }
5147 if (percentageAdjustment != null) {
5148 _json["percentageAdjustment"] = percentageAdjustment;
5149 }
5150 return _json;
5151 }
5152 }
5153
5154 class CarriersCarrier {
5155 /** The CLDR country code of the carrier (e.g., "US"). Always present. */
5156 core.String country;
5157 /** The name of the carrier (e.g., "UPS"). Always present. */
5158 core.String name;
5159 /**
5160 * A list of supported services (e.g., "ground") for that carrier. Contains at
5161 * least one service.
5162 */
5163 core.List<core.String> services;
5164
5165 CarriersCarrier();
5166
5167 CarriersCarrier.fromJson(core.Map _json) {
5168 if (_json.containsKey("country")) {
5169 country = _json["country"];
5170 }
5171 if (_json.containsKey("name")) {
5172 name = _json["name"];
5173 }
5174 if (_json.containsKey("services")) {
5175 services = _json["services"];
5176 }
5177 }
5178
5179 core.Map toJson() {
5180 var _json = new core.Map();
5181 if (country != null) {
5182 _json["country"] = country;
5183 }
5184 if (name != null) {
5185 _json["name"] = name;
5186 }
5187 if (services != null) {
5188 _json["services"] = services;
5189 }
5190 return _json;
5191 }
5192 }
5193
4776 /** Datafeed data. */ 5194 /** Datafeed data. */
4777 class Datafeed { 5195 class Datafeed {
4778 /** 5196 /**
4779 * The two-letter ISO 639-1 language in which the attributes are defined in 5197 * The two-letter ISO 639-1 language in which the attributes are defined in
4780 * the data feed. 5198 * the data feed.
4781 */ 5199 */
4782 core.String attributeLanguage; 5200 core.String attributeLanguage;
4783 /** 5201 /**
4784 * The two-letter ISO 639-1 language of the items in the feed. Must be a valid 5202 * The two-letter ISO 639-1 language of the items in the feed. Must be a valid
4785 * language for targetCountry. 5203 * language for targetCountry.
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
5553 if (nextPageToken != null) { 5971 if (nextPageToken != null) {
5554 _json["nextPageToken"] = nextPageToken; 5972 _json["nextPageToken"] = nextPageToken;
5555 } 5973 }
5556 if (resources != null) { 5974 if (resources != null) {
5557 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 5975 _json["resources"] = resources.map((value) => (value).toJson()).toList();
5558 } 5976 }
5559 return _json; 5977 return _json;
5560 } 5978 }
5561 } 5979 }
5562 5980
5981 class DeliveryTime {
5982 /**
5983 * Maximum number of business days that is spent in transit. 0 means same day
5984 * delivery, 1 means next day delivery. Must be greater than or equal to
5985 * minTransitTimeInDays. Required.
5986 */
5987 core.int maxTransitTimeInDays;
5988 /**
5989 * Minimum number of business days that is spent in transit. 0 means same day
5990 * delivery, 1 means next day delivery. Required.
5991 */
5992 core.int minTransitTimeInDays;
5993
5994 DeliveryTime();
5995
5996 DeliveryTime.fromJson(core.Map _json) {
5997 if (_json.containsKey("maxTransitTimeInDays")) {
5998 maxTransitTimeInDays = _json["maxTransitTimeInDays"];
5999 }
6000 if (_json.containsKey("minTransitTimeInDays")) {
6001 minTransitTimeInDays = _json["minTransitTimeInDays"];
6002 }
6003 }
6004
6005 core.Map toJson() {
6006 var _json = new core.Map();
6007 if (maxTransitTimeInDays != null) {
6008 _json["maxTransitTimeInDays"] = maxTransitTimeInDays;
6009 }
6010 if (minTransitTimeInDays != null) {
6011 _json["minTransitTimeInDays"] = minTransitTimeInDays;
6012 }
6013 return _json;
6014 }
6015 }
6016
5563 /** An error returned by the API. */ 6017 /** An error returned by the API. */
5564 class Error { 6018 class Error {
5565 /** The domain of the error. */ 6019 /** The domain of the error. */
5566 core.String domain; 6020 core.String domain;
5567 /** A description of the error. */ 6021 /** A description of the error. */
5568 core.String message; 6022 core.String message;
5569 /** The error code. */ 6023 /** The error code. */
5570 core.String reason; 6024 core.String reason;
5571 6025
5572 Error(); 6026 Error();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
5629 if (errors != null) { 6083 if (errors != null) {
5630 _json["errors"] = errors.map((value) => (value).toJson()).toList(); 6084 _json["errors"] = errors.map((value) => (value).toJson()).toList();
5631 } 6085 }
5632 if (message != null) { 6086 if (message != null) {
5633 _json["message"] = message; 6087 _json["message"] = message;
5634 } 6088 }
5635 return _json; 6089 return _json;
5636 } 6090 }
5637 } 6091 }
5638 6092
6093 /**
6094 * A non-empty list of row or column headers for a table. Exactly one of prices,
6095 * weights, numItems, postalCodeGroupNames, or locations must be set.
6096 */
6097 class Headers {
6098 /**
6099 * A list of location ID sets. Must be non-empty. Can only be set if all other
6100 * fields are not set.
6101 */
6102 core.List<LocationIdSet> locations;
6103 /**
6104 * A list of inclusive number of items upper bounds. The last value can be
6105 * "infinity". For example ["10", "50", "infinity"] represents the headers "<=
6106 * 10 items", " 50 items". Must be non-empty. Can only be set if all other
6107 * fields are not set.
6108 */
6109 core.List<core.String> numberOfItems;
6110 /**
6111 * A list of postal group names. The last value can be "all other locations".
6112 * Example: ["zone 1", "zone 2", "all other locations"]. The referred postal
6113 * code groups must match the delivery country of the service. Must be
6114 * non-empty. Can only be set if all other fields are not set.
6115 */
6116 core.List<core.String> postalCodeGroupNames;
6117 /**
6118 * be "infinity". For example [{"value": "10", "currency": "USD"}, {"value":
6119 * "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]
6120 * represents the headers "<= $10", " $500". All prices within a service must
6121 * have the same currency. Must be non-empty. Can only be set if all other
6122 * fields are not set.
6123 */
6124 core.List<Price> prices;
6125 /**
6126 * be "infinity". For example [{"value": "10", "unit": "kg"}, {"value": "50",
6127 * "unit": "kg"}, {"value": "infinity", "unit": "kg"}] represents the headers
6128 * "<= 10kg", " 50kg". All weights within a service must have the same unit.
6129 * Must be non-empty. Can only be set if all other fields are not set.
6130 */
6131 core.List<Weight> weights;
6132
6133 Headers();
6134
6135 Headers.fromJson(core.Map _json) {
6136 if (_json.containsKey("locations")) {
6137 locations = _json["locations"].map((value) => new LocationIdSet.fromJson(v alue)).toList();
6138 }
6139 if (_json.containsKey("numberOfItems")) {
6140 numberOfItems = _json["numberOfItems"];
6141 }
6142 if (_json.containsKey("postalCodeGroupNames")) {
6143 postalCodeGroupNames = _json["postalCodeGroupNames"];
6144 }
6145 if (_json.containsKey("prices")) {
6146 prices = _json["prices"].map((value) => new Price.fromJson(value)).toList( );
6147 }
6148 if (_json.containsKey("weights")) {
6149 weights = _json["weights"].map((value) => new Weight.fromJson(value)).toLi st();
6150 }
6151 }
6152
6153 core.Map toJson() {
6154 var _json = new core.Map();
6155 if (locations != null) {
6156 _json["locations"] = locations.map((value) => (value).toJson()).toList();
6157 }
6158 if (numberOfItems != null) {
6159 _json["numberOfItems"] = numberOfItems;
6160 }
6161 if (postalCodeGroupNames != null) {
6162 _json["postalCodeGroupNames"] = postalCodeGroupNames;
6163 }
6164 if (prices != null) {
6165 _json["prices"] = prices.map((value) => (value).toJson()).toList();
6166 }
6167 if (weights != null) {
6168 _json["weights"] = weights.map((value) => (value).toJson()).toList();
6169 }
6170 return _json;
6171 }
6172 }
6173
5639 class Installment { 6174 class Installment {
5640 /** The amount the buyer has to pay per month. */ 6175 /** The amount the buyer has to pay per month. */
5641 Price amount; 6176 Price amount;
5642 /** The number of installments the buyer has to pay. */ 6177 /** The number of installments the buyer has to pay. */
5643 core.String months; 6178 core.String months;
5644 6179
5645 Installment(); 6180 Installment();
5646 6181
5647 Installment.fromJson(core.Map _json) { 6182 Installment.fromJson(core.Map _json) {
5648 if (_json.containsKey("amount")) { 6183 if (_json.containsKey("amount")) {
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
6024 } 6559 }
6025 } 6560 }
6026 6561
6027 core.Map toJson() { 6562 core.Map toJson() {
6028 var _json = new core.Map(); 6563 var _json = new core.Map();
6029 if (kind != null) { 6564 if (kind != null) {
6030 _json["kind"] = kind; 6565 _json["kind"] = kind;
6031 } 6566 }
6032 return _json; 6567 return _json;
6033 } 6568 }
6569 }
6570
6571 class LocationIdSet {
6572 /**
6573 * A non-empty list of location IDs. They must all be of the same location
6574 * type (e.g., state).
6575 */
6576 core.List<core.String> locationIds;
6577
6578 LocationIdSet();
6579
6580 LocationIdSet.fromJson(core.Map _json) {
6581 if (_json.containsKey("locationIds")) {
6582 locationIds = _json["locationIds"];
6583 }
6584 }
6585
6586 core.Map toJson() {
6587 var _json = new core.Map();
6588 if (locationIds != null) {
6589 _json["locationIds"] = locationIds;
6590 }
6591 return _json;
6592 }
6034 } 6593 }
6035 6594
6036 class LoyaltyPoints { 6595 class LoyaltyPoints {
6037 /** 6596 /**
6038 * Name of loyalty points program. It is recommended to limit the name to 12 6597 * Name of loyalty points program. It is recommended to limit the name to 12
6039 * full-width characters or 24 Roman characters. 6598 * full-width characters or 24 Roman characters.
6040 */ 6599 */
6041 core.String name; 6600 core.String name;
6042 /** The retailer's loyalty points in absolute value. */ 6601 /** The retailer's loyalty points in absolute value. */
6043 core.String pointsValue; 6602 core.String pointsValue;
(...skipping 2558 matching lines...) Expand 10 before | Expand all | Expand 10 after
8602 if (executionStatus != null) { 9161 if (executionStatus != null) {
8603 _json["executionStatus"] = executionStatus; 9162 _json["executionStatus"] = executionStatus;
8604 } 9163 }
8605 if (kind != null) { 9164 if (kind != null) {
8606 _json["kind"] = kind; 9165 _json["kind"] = kind;
8607 } 9166 }
8608 return _json; 9167 return _json;
8609 } 9168 }
8610 } 9169 }
8611 9170
9171 class PostalCodeGroup {
9172 /**
9173 * The CLDR territory code of the country the postal code group applies to.
9174 * Required.
9175 */
9176 core.String country;
9177 /** The name of the postal code group, referred to in headers. Required. */
9178 core.String name;
9179 /** A range of postal codes. Required. */
9180 core.List<PostalCodeRange> postalCodeRanges;
9181
9182 PostalCodeGroup();
9183
9184 PostalCodeGroup.fromJson(core.Map _json) {
9185 if (_json.containsKey("country")) {
9186 country = _json["country"];
9187 }
9188 if (_json.containsKey("name")) {
9189 name = _json["name"];
9190 }
9191 if (_json.containsKey("postalCodeRanges")) {
9192 postalCodeRanges = _json["postalCodeRanges"].map((value) => new PostalCode Range.fromJson(value)).toList();
9193 }
9194 }
9195
9196 core.Map toJson() {
9197 var _json = new core.Map();
9198 if (country != null) {
9199 _json["country"] = country;
9200 }
9201 if (name != null) {
9202 _json["name"] = name;
9203 }
9204 if (postalCodeRanges != null) {
9205 _json["postalCodeRanges"] = postalCodeRanges.map((value) => (value).toJson ()).toList();
9206 }
9207 return _json;
9208 }
9209 }
9210
9211 class PostalCodeRange {
9212 /**
9213 * A postal code or a pattern of the form prefix* denoting the inclusive lower
9214 * bound of the range defining the area. Examples values: "94108", "9410*",
9215 * "9*". Required.
9216 */
9217 core.String postalCodeRangeBegin;
9218 /**
9219 * A postal code or a pattern of the form prefix* denoting the inclusive upper
9220 * bound of the range defining the area. It must have the same length as
9221 * postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then
9222 * postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a
9223 * pattern then postalCodeRangeEnd must be a pattern with the same prefix
9224 * length. Optional: if not set, then the area is defined as being all the
9225 * postal codes matching postalCodeRangeBegin.
9226 */
9227 core.String postalCodeRangeEnd;
9228
9229 PostalCodeRange();
9230
9231 PostalCodeRange.fromJson(core.Map _json) {
9232 if (_json.containsKey("postalCodeRangeBegin")) {
9233 postalCodeRangeBegin = _json["postalCodeRangeBegin"];
9234 }
9235 if (_json.containsKey("postalCodeRangeEnd")) {
9236 postalCodeRangeEnd = _json["postalCodeRangeEnd"];
9237 }
9238 }
9239
9240 core.Map toJson() {
9241 var _json = new core.Map();
9242 if (postalCodeRangeBegin != null) {
9243 _json["postalCodeRangeBegin"] = postalCodeRangeBegin;
9244 }
9245 if (postalCodeRangeEnd != null) {
9246 _json["postalCodeRangeEnd"] = postalCodeRangeEnd;
9247 }
9248 return _json;
9249 }
9250 }
9251
8612 class Price { 9252 class Price {
8613 /** The currency of the price. */ 9253 /** The currency of the price. */
8614 core.String currency; 9254 core.String currency;
8615 /** The price represented as a number. */ 9255 /** The price represented as a number. */
8616 core.String value; 9256 core.String value;
8617 9257
8618 Price(); 9258 Price();
8619 9259
8620 Price.fromJson(core.Map _json) { 9260 Price.fromJson(core.Map _json) {
8621 if (_json.containsKey("currency")) { 9261 if (_json.containsKey("currency")) {
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
9404 core.String intention; 10044 core.String intention;
9405 10045
9406 ProductDestination(); 10046 ProductDestination();
9407 10047
9408 ProductDestination.fromJson(core.Map _json) { 10048 ProductDestination.fromJson(core.Map _json) {
9409 if (_json.containsKey("destinationName")) { 10049 if (_json.containsKey("destinationName")) {
9410 destinationName = _json["destinationName"]; 10050 destinationName = _json["destinationName"];
9411 } 10051 }
9412 if (_json.containsKey("intention")) { 10052 if (_json.containsKey("intention")) {
9413 intention = _json["intention"]; 10053 intention = _json["intention"];
10054 }
10055 }
10056
10057 core.Map toJson() {
10058 var _json = new core.Map();
10059 if (destinationName != null) {
10060 _json["destinationName"] = destinationName;
10061 }
10062 if (intention != null) {
10063 _json["intention"] = intention;
10064 }
10065 return _json;
10066 }
10067 }
10068
10069 class ProductShipping {
10070 /** The CLDR territory code of the country to which an item will ship. */
10071 core.String country;
10072 /**
10073 * The location where the shipping is applicable, represented by a location
10074 * group name.
10075 */
10076 core.String locationGroupName;
10077 /**
10078 * The numeric id of a location that the shipping rate applies to as defined
10079 * in the AdWords API.
10080 */
10081 core.String locationId;
10082 /**
10083 * The postal code range that the shipping rate applies to, represented by a
10084 * postal code, a postal code prefix followed by a * wildcard, a range between
10085 * two postal codes or two postal code prefixes of equal length.
10086 */
10087 core.String postalCode;
10088 /** Fixed shipping price, represented as a number. */
10089 Price price;
10090 /**
10091 * The geographic region to which a shipping rate applies (e.g. zip code).
10092 */
10093 core.String region;
10094 /** A free-form description of the service class or delivery speed. */
10095 core.String service;
10096
10097 ProductShipping();
10098
10099 ProductShipping.fromJson(core.Map _json) {
10100 if (_json.containsKey("country")) {
10101 country = _json["country"];
10102 }
10103 if (_json.containsKey("locationGroupName")) {
10104 locationGroupName = _json["locationGroupName"];
10105 }
10106 if (_json.containsKey("locationId")) {
10107 locationId = _json["locationId"];
10108 }
10109 if (_json.containsKey("postalCode")) {
10110 postalCode = _json["postalCode"];
10111 }
10112 if (_json.containsKey("price")) {
10113 price = new Price.fromJson(_json["price"]);
10114 }
10115 if (_json.containsKey("region")) {
10116 region = _json["region"];
10117 }
10118 if (_json.containsKey("service")) {
10119 service = _json["service"];
10120 }
10121 }
10122
10123 core.Map toJson() {
10124 var _json = new core.Map();
10125 if (country != null) {
10126 _json["country"] = country;
10127 }
10128 if (locationGroupName != null) {
10129 _json["locationGroupName"] = locationGroupName;
10130 }
10131 if (locationId != null) {
10132 _json["locationId"] = locationId;
10133 }
10134 if (postalCode != null) {
10135 _json["postalCode"] = postalCode;
10136 }
10137 if (price != null) {
10138 _json["price"] = (price).toJson();
10139 }
10140 if (region != null) {
10141 _json["region"] = region;
10142 }
10143 if (service != null) {
10144 _json["service"] = service;
10145 }
10146 return _json;
10147 }
10148 }
10149
10150 class ProductShippingDimension {
10151 /**
10152 * The unit of value.
10153 *
10154 * Acceptable values are:
10155 * - "cm"
10156 * - "in"
10157 */
10158 core.String unit;
10159 /**
10160 * The dimension of the product used to calculate the shipping cost of the
10161 * item.
10162 */
10163 core.double value;
10164
10165 ProductShippingDimension();
10166
10167 ProductShippingDimension.fromJson(core.Map _json) {
10168 if (_json.containsKey("unit")) {
10169 unit = _json["unit"];
10170 }
10171 if (_json.containsKey("value")) {
10172 value = _json["value"];
10173 }
10174 }
10175
10176 core.Map toJson() {
10177 var _json = new core.Map();
10178 if (unit != null) {
10179 _json["unit"] = unit;
10180 }
10181 if (value != null) {
10182 _json["value"] = value;
10183 }
10184 return _json;
10185 }
10186 }
10187
10188 class ProductShippingWeight {
10189 /** The unit of value. */
10190 core.String unit;
10191 /**
10192 * The weight of the product used to calculate the shipping cost of the item.
10193 */
10194 core.double value;
10195
10196 ProductShippingWeight();
10197
10198 ProductShippingWeight.fromJson(core.Map _json) {
10199 if (_json.containsKey("unit")) {
10200 unit = _json["unit"];
10201 }
10202 if (_json.containsKey("value")) {
10203 value = _json["value"];
10204 }
10205 }
10206
10207 core.Map toJson() {
10208 var _json = new core.Map();
10209 if (unit != null) {
10210 _json["unit"] = unit;
10211 }
10212 if (value != null) {
10213 _json["value"] = value;
10214 }
10215 return _json;
10216 }
10217 }
10218
10219 /**
10220 * The status of a product, i.e., information about a product computed
10221 * asynchronously by the data quality analysis.
10222 */
10223 class ProductStatus {
10224 /** Date on which the item has been created, in ISO 8601 format. */
10225 core.String creationDate;
10226 /** A list of data quality issues associated with the product. */
10227 core.List<ProductStatusDataQualityIssue> dataQualityIssues;
10228 /** The intended destinations for the product. */
10229 core.List<ProductStatusDestinationStatus> destinationStatuses;
10230 /** Date on which the item expires in Google Shopping, in ISO 8601 format. */
10231 core.String googleExpirationDate;
10232 /**
10233 * Identifies what kind of resource this is. Value: the fixed string
10234 * "content#productStatus".
10235 */
10236 core.String kind;
10237 /** Date on which the item has been last updated, in ISO 8601 format. */
10238 core.String lastUpdateDate;
10239 /** The link to the product. */
10240 core.String link;
10241 /** The id of the product for which status is reported. */
10242 core.String productId;
10243 /** The title of the product. */
10244 core.String title;
10245
10246 ProductStatus();
10247
10248 ProductStatus.fromJson(core.Map _json) {
10249 if (_json.containsKey("creationDate")) {
10250 creationDate = _json["creationDate"];
10251 }
10252 if (_json.containsKey("dataQualityIssues")) {
10253 dataQualityIssues = _json["dataQualityIssues"].map((value) => new ProductS tatusDataQualityIssue.fromJson(value)).toList();
10254 }
10255 if (_json.containsKey("destinationStatuses")) {
10256 destinationStatuses = _json["destinationStatuses"].map((value) => new Prod uctStatusDestinationStatus.fromJson(value)).toList();
10257 }
10258 if (_json.containsKey("googleExpirationDate")) {
10259 googleExpirationDate = _json["googleExpirationDate"];
10260 }
10261 if (_json.containsKey("kind")) {
10262 kind = _json["kind"];
10263 }
10264 if (_json.containsKey("lastUpdateDate")) {
10265 lastUpdateDate = _json["lastUpdateDate"];
10266 }
10267 if (_json.containsKey("link")) {
10268 link = _json["link"];
10269 }
10270 if (_json.containsKey("productId")) {
10271 productId = _json["productId"];
10272 }
10273 if (_json.containsKey("title")) {
10274 title = _json["title"];
10275 }
10276 }
10277
10278 core.Map toJson() {
10279 var _json = new core.Map();
10280 if (creationDate != null) {
10281 _json["creationDate"] = creationDate;
10282 }
10283 if (dataQualityIssues != null) {
10284 _json["dataQualityIssues"] = dataQualityIssues.map((value) => (value).toJs on()).toList();
10285 }
10286 if (destinationStatuses != null) {
10287 _json["destinationStatuses"] = destinationStatuses.map((value) => (value). toJson()).toList();
10288 }
10289 if (googleExpirationDate != null) {
10290 _json["googleExpirationDate"] = googleExpirationDate;
10291 }
10292 if (kind != null) {
10293 _json["kind"] = kind;
10294 }
10295 if (lastUpdateDate != null) {
10296 _json["lastUpdateDate"] = lastUpdateDate;
10297 }
10298 if (link != null) {
10299 _json["link"] = link;
10300 }
10301 if (productId != null) {
10302 _json["productId"] = productId;
10303 }
10304 if (title != null) {
10305 _json["title"] = title;
10306 }
10307 return _json;
10308 }
10309 }
10310
10311 class ProductStatusDataQualityIssue {
10312 /** A more detailed error string. */
10313 core.String detail;
10314 /** The fetch status for landing_page_errors. */
10315 core.String fetchStatus;
10316 /** The id of the data quality issue. */
10317 core.String id;
10318 /** The attribute name that is relevant for the issue. */
10319 core.String location;
10320 /** The severity of the data quality issue. */
10321 core.String severity;
10322 /** The time stamp of the data quality issue. */
10323 core.String timestamp;
10324 /** The value of that attribute that was found on the landing page */
10325 core.String valueOnLandingPage;
10326 /** The value the attribute had at time of evaluation. */
10327 core.String valueProvided;
10328
10329 ProductStatusDataQualityIssue();
10330
10331 ProductStatusDataQualityIssue.fromJson(core.Map _json) {
10332 if (_json.containsKey("detail")) {
10333 detail = _json["detail"];
10334 }
10335 if (_json.containsKey("fetchStatus")) {
10336 fetchStatus = _json["fetchStatus"];
10337 }
10338 if (_json.containsKey("id")) {
10339 id = _json["id"];
10340 }
10341 if (_json.containsKey("location")) {
10342 location = _json["location"];
10343 }
10344 if (_json.containsKey("severity")) {
10345 severity = _json["severity"];
10346 }
10347 if (_json.containsKey("timestamp")) {
10348 timestamp = _json["timestamp"];
10349 }
10350 if (_json.containsKey("valueOnLandingPage")) {
10351 valueOnLandingPage = _json["valueOnLandingPage"];
10352 }
10353 if (_json.containsKey("valueProvided")) {
10354 valueProvided = _json["valueProvided"];
10355 }
10356 }
10357
10358 core.Map toJson() {
10359 var _json = new core.Map();
10360 if (detail != null) {
10361 _json["detail"] = detail;
10362 }
10363 if (fetchStatus != null) {
10364 _json["fetchStatus"] = fetchStatus;
10365 }
10366 if (id != null) {
10367 _json["id"] = id;
10368 }
10369 if (location != null) {
10370 _json["location"] = location;
10371 }
10372 if (severity != null) {
10373 _json["severity"] = severity;
10374 }
10375 if (timestamp != null) {
10376 _json["timestamp"] = timestamp;
10377 }
10378 if (valueOnLandingPage != null) {
10379 _json["valueOnLandingPage"] = valueOnLandingPage;
10380 }
10381 if (valueProvided != null) {
10382 _json["valueProvided"] = valueProvided;
10383 }
10384 return _json;
10385 }
10386 }
10387
10388 class ProductStatusDestinationStatus {
10389 /** The destination's approval status. */
10390 core.String approvalStatus;
10391 /** The name of the destination */
10392 core.String destination;
10393 /**
10394 * Whether the destination is required, excluded, selected by default or
10395 * should be validated.
10396 */
10397 core.String intention;
10398
10399 ProductStatusDestinationStatus();
10400
10401 ProductStatusDestinationStatus.fromJson(core.Map _json) {
10402 if (_json.containsKey("approvalStatus")) {
10403 approvalStatus = _json["approvalStatus"];
10404 }
10405 if (_json.containsKey("destination")) {
10406 destination = _json["destination"];
10407 }
10408 if (_json.containsKey("intention")) {
10409 intention = _json["intention"];
9414 } 10410 }
9415 } 10411 }
9416 10412
9417 core.Map toJson() { 10413 core.Map toJson() {
9418 var _json = new core.Map(); 10414 var _json = new core.Map();
9419 if (destinationName != null) { 10415 if (approvalStatus != null) {
9420 _json["destinationName"] = destinationName; 10416 _json["approvalStatus"] = approvalStatus;
10417 }
10418 if (destination != null) {
10419 _json["destination"] = destination;
9421 } 10420 }
9422 if (intention != null) { 10421 if (intention != null) {
9423 _json["intention"] = intention; 10422 _json["intention"] = intention;
9424 } 10423 }
9425 return _json; 10424 return _json;
9426 } 10425 }
9427 } 10426 }
9428 10427
9429 class ProductShipping { 10428 class ProductTax {
9430 /** The CLDR territory code of the country to which an item will ship. */ 10429 /**
10430 * The country within which the item is taxed, specified as a CLDR territory
10431 * code.
10432 */
9431 core.String country; 10433 core.String country;
9432 /** 10434 /**
9433 * The location where the shipping is applicable, represented by a location 10435 * The numeric id of a location that the tax rate applies to as defined in the
9434 * group name. 10436 * AdWords API.
9435 */
9436 core.String locationGroupName;
9437 /**
9438 * The numeric id of a location that the shipping rate applies to as defined
9439 * in the AdWords API.
9440 */ 10437 */
9441 core.String locationId; 10438 core.String locationId;
9442 /** 10439 /**
9443 * The postal code range that the shipping rate applies to, represented by a 10440 * The postal code range that the tax rate applies to, represented by a ZIP
9444 * postal code, a postal code prefix followed by a * wildcard, a range between 10441 * code, a ZIP code prefix using * wildcard, a range between two ZIP codes or
9445 * two postal codes or two postal code prefixes of equal length. 10442 * two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460,
10443 * 94*-95*.
9446 */ 10444 */
9447 core.String postalCode; 10445 core.String postalCode;
9448 /** Fixed shipping price, represented as a number. */ 10446 /** The percentage of tax rate that applies to the item price. */
9449 Price price; 10447 core.double rate;
9450 /** 10448 /** The geographic region to which the tax rate applies. */
9451 * The geographic region to which a shipping rate applies (e.g. zip code).
9452 */
9453 core.String region; 10449 core.String region;
9454 /** A free-form description of the service class or delivery speed. */ 10450 /** Set to true if tax is charged on shipping. */
9455 core.String service; 10451 core.bool taxShip;
9456 10452
9457 ProductShipping(); 10453 ProductTax();
9458 10454
9459 ProductShipping.fromJson(core.Map _json) { 10455 ProductTax.fromJson(core.Map _json) {
9460 if (_json.containsKey("country")) { 10456 if (_json.containsKey("country")) {
9461 country = _json["country"]; 10457 country = _json["country"];
9462 } 10458 }
9463 if (_json.containsKey("locationGroupName")) {
9464 locationGroupName = _json["locationGroupName"];
9465 }
9466 if (_json.containsKey("locationId")) { 10459 if (_json.containsKey("locationId")) {
9467 locationId = _json["locationId"]; 10460 locationId = _json["locationId"];
9468 } 10461 }
9469 if (_json.containsKey("postalCode")) { 10462 if (_json.containsKey("postalCode")) {
9470 postalCode = _json["postalCode"]; 10463 postalCode = _json["postalCode"];
9471 } 10464 }
9472 if (_json.containsKey("price")) { 10465 if (_json.containsKey("rate")) {
9473 price = new Price.fromJson(_json["price"]); 10466 rate = _json["rate"];
9474 } 10467 }
9475 if (_json.containsKey("region")) { 10468 if (_json.containsKey("region")) {
9476 region = _json["region"]; 10469 region = _json["region"];
9477 } 10470 }
9478 if (_json.containsKey("service")) { 10471 if (_json.containsKey("taxShip")) {
9479 service = _json["service"]; 10472 taxShip = _json["taxShip"];
9480 } 10473 }
9481 } 10474 }
9482 10475
9483 core.Map toJson() { 10476 core.Map toJson() {
9484 var _json = new core.Map(); 10477 var _json = new core.Map();
9485 if (country != null) { 10478 if (country != null) {
9486 _json["country"] = country; 10479 _json["country"] = country;
9487 } 10480 }
9488 if (locationGroupName != null) {
9489 _json["locationGroupName"] = locationGroupName;
9490 }
9491 if (locationId != null) {
9492 _json["locationId"] = locationId;
9493 }
9494 if (postalCode != null) {
9495 _json["postalCode"] = postalCode;
9496 }
9497 if (price != null) {
9498 _json["price"] = (price).toJson();
9499 }
9500 if (region != null) {
9501 _json["region"] = region;
9502 }
9503 if (service != null) {
9504 _json["service"] = service;
9505 }
9506 return _json;
9507 }
9508 }
9509
9510 class ProductShippingDimension {
9511 /**
9512 * The unit of value.
9513 *
9514 * Acceptable values are:
9515 * - "cm"
9516 * - "in"
9517 */
9518 core.String unit;
9519 /**
9520 * The dimension of the product used to calculate the shipping cost of the
9521 * item.
9522 */
9523 core.double value;
9524
9525 ProductShippingDimension();
9526
9527 ProductShippingDimension.fromJson(core.Map _json) {
9528 if (_json.containsKey("unit")) {
9529 unit = _json["unit"];
9530 }
9531 if (_json.containsKey("value")) {
9532 value = _json["value"];
9533 }
9534 }
9535
9536 core.Map toJson() {
9537 var _json = new core.Map();
9538 if (unit != null) {
9539 _json["unit"] = unit;
9540 }
9541 if (value != null) {
9542 _json["value"] = value;
9543 }
9544 return _json;
9545 }
9546 }
9547
9548 class ProductShippingWeight {
9549 /** The unit of value. */
9550 core.String unit;
9551 /**
9552 * The weight of the product used to calculate the shipping cost of the item.
9553 */
9554 core.double value;
9555
9556 ProductShippingWeight();
9557
9558 ProductShippingWeight.fromJson(core.Map _json) {
9559 if (_json.containsKey("unit")) {
9560 unit = _json["unit"];
9561 }
9562 if (_json.containsKey("value")) {
9563 value = _json["value"];
9564 }
9565 }
9566
9567 core.Map toJson() {
9568 var _json = new core.Map();
9569 if (unit != null) {
9570 _json["unit"] = unit;
9571 }
9572 if (value != null) {
9573 _json["value"] = value;
9574 }
9575 return _json;
9576 }
9577 }
9578
9579 /**
9580 * The status of a product, i.e., information about a product computed
9581 * asynchronously by the data quality analysis.
9582 */
9583 class ProductStatus {
9584 /** Date on which the item has been created, in ISO 8601 format. */
9585 core.String creationDate;
9586 /** A list of data quality issues associated with the product. */
9587 core.List<ProductStatusDataQualityIssue> dataQualityIssues;
9588 /** The intended destinations for the product. */
9589 core.List<ProductStatusDestinationStatus> destinationStatuses;
9590 /** Date on which the item expires in Google Shopping, in ISO 8601 format. */
9591 core.String googleExpirationDate;
9592 /**
9593 * Identifies what kind of resource this is. Value: the fixed string
9594 * "content#productStatus".
9595 */
9596 core.String kind;
9597 /** Date on which the item has been last updated, in ISO 8601 format. */
9598 core.String lastUpdateDate;
9599 /** The link to the product. */
9600 core.String link;
9601 /** The id of the product for which status is reported. */
9602 core.String productId;
9603 /** The title of the product. */
9604 core.String title;
9605
9606 ProductStatus();
9607
9608 ProductStatus.fromJson(core.Map _json) {
9609 if (_json.containsKey("creationDate")) {
9610 creationDate = _json["creationDate"];
9611 }
9612 if (_json.containsKey("dataQualityIssues")) {
9613 dataQualityIssues = _json["dataQualityIssues"].map((value) => new ProductS tatusDataQualityIssue.fromJson(value)).toList();
9614 }
9615 if (_json.containsKey("destinationStatuses")) {
9616 destinationStatuses = _json["destinationStatuses"].map((value) => new Prod uctStatusDestinationStatus.fromJson(value)).toList();
9617 }
9618 if (_json.containsKey("googleExpirationDate")) {
9619 googleExpirationDate = _json["googleExpirationDate"];
9620 }
9621 if (_json.containsKey("kind")) {
9622 kind = _json["kind"];
9623 }
9624 if (_json.containsKey("lastUpdateDate")) {
9625 lastUpdateDate = _json["lastUpdateDate"];
9626 }
9627 if (_json.containsKey("link")) {
9628 link = _json["link"];
9629 }
9630 if (_json.containsKey("productId")) {
9631 productId = _json["productId"];
9632 }
9633 if (_json.containsKey("title")) {
9634 title = _json["title"];
9635 }
9636 }
9637
9638 core.Map toJson() {
9639 var _json = new core.Map();
9640 if (creationDate != null) {
9641 _json["creationDate"] = creationDate;
9642 }
9643 if (dataQualityIssues != null) {
9644 _json["dataQualityIssues"] = dataQualityIssues.map((value) => (value).toJs on()).toList();
9645 }
9646 if (destinationStatuses != null) {
9647 _json["destinationStatuses"] = destinationStatuses.map((value) => (value). toJson()).toList();
9648 }
9649 if (googleExpirationDate != null) {
9650 _json["googleExpirationDate"] = googleExpirationDate;
9651 }
9652 if (kind != null) {
9653 _json["kind"] = kind;
9654 }
9655 if (lastUpdateDate != null) {
9656 _json["lastUpdateDate"] = lastUpdateDate;
9657 }
9658 if (link != null) {
9659 _json["link"] = link;
9660 }
9661 if (productId != null) {
9662 _json["productId"] = productId;
9663 }
9664 if (title != null) {
9665 _json["title"] = title;
9666 }
9667 return _json;
9668 }
9669 }
9670
9671 class ProductStatusDataQualityIssue {
9672 /** A more detailed error string. */
9673 core.String detail;
9674 /** The fetch status for landing_page_errors. */
9675 core.String fetchStatus;
9676 /** The id of the data quality issue. */
9677 core.String id;
9678 /** The attribute name that is relevant for the issue. */
9679 core.String location;
9680 /** The severity of the data quality issue. */
9681 core.String severity;
9682 /** The time stamp of the data quality issue. */
9683 core.String timestamp;
9684 /** The value of that attribute that was found on the landing page */
9685 core.String valueOnLandingPage;
9686 /** The value the attribute had at time of evaluation. */
9687 core.String valueProvided;
9688
9689 ProductStatusDataQualityIssue();
9690
9691 ProductStatusDataQualityIssue.fromJson(core.Map _json) {
9692 if (_json.containsKey("detail")) {
9693 detail = _json["detail"];
9694 }
9695 if (_json.containsKey("fetchStatus")) {
9696 fetchStatus = _json["fetchStatus"];
9697 }
9698 if (_json.containsKey("id")) {
9699 id = _json["id"];
9700 }
9701 if (_json.containsKey("location")) {
9702 location = _json["location"];
9703 }
9704 if (_json.containsKey("severity")) {
9705 severity = _json["severity"];
9706 }
9707 if (_json.containsKey("timestamp")) {
9708 timestamp = _json["timestamp"];
9709 }
9710 if (_json.containsKey("valueOnLandingPage")) {
9711 valueOnLandingPage = _json["valueOnLandingPage"];
9712 }
9713 if (_json.containsKey("valueProvided")) {
9714 valueProvided = _json["valueProvided"];
9715 }
9716 }
9717
9718 core.Map toJson() {
9719 var _json = new core.Map();
9720 if (detail != null) {
9721 _json["detail"] = detail;
9722 }
9723 if (fetchStatus != null) {
9724 _json["fetchStatus"] = fetchStatus;
9725 }
9726 if (id != null) {
9727 _json["id"] = id;
9728 }
9729 if (location != null) {
9730 _json["location"] = location;
9731 }
9732 if (severity != null) {
9733 _json["severity"] = severity;
9734 }
9735 if (timestamp != null) {
9736 _json["timestamp"] = timestamp;
9737 }
9738 if (valueOnLandingPage != null) {
9739 _json["valueOnLandingPage"] = valueOnLandingPage;
9740 }
9741 if (valueProvided != null) {
9742 _json["valueProvided"] = valueProvided;
9743 }
9744 return _json;
9745 }
9746 }
9747
9748 class ProductStatusDestinationStatus {
9749 /** The destination's approval status. */
9750 core.String approvalStatus;
9751 /** The name of the destination */
9752 core.String destination;
9753 /**
9754 * Whether the destination is required, excluded, selected by default or
9755 * should be validated.
9756 */
9757 core.String intention;
9758
9759 ProductStatusDestinationStatus();
9760
9761 ProductStatusDestinationStatus.fromJson(core.Map _json) {
9762 if (_json.containsKey("approvalStatus")) {
9763 approvalStatus = _json["approvalStatus"];
9764 }
9765 if (_json.containsKey("destination")) {
9766 destination = _json["destination"];
9767 }
9768 if (_json.containsKey("intention")) {
9769 intention = _json["intention"];
9770 }
9771 }
9772
9773 core.Map toJson() {
9774 var _json = new core.Map();
9775 if (approvalStatus != null) {
9776 _json["approvalStatus"] = approvalStatus;
9777 }
9778 if (destination != null) {
9779 _json["destination"] = destination;
9780 }
9781 if (intention != null) {
9782 _json["intention"] = intention;
9783 }
9784 return _json;
9785 }
9786 }
9787
9788 class ProductTax {
9789 /**
9790 * The country within which the item is taxed, specified as a CLDR territory
9791 * code.
9792 */
9793 core.String country;
9794 /**
9795 * The numeric id of a location that the tax rate applies to as defined in the
9796 * AdWords API.
9797 */
9798 core.String locationId;
9799 /**
9800 * The postal code range that the tax rate applies to, represented by a ZIP
9801 * code, a ZIP code prefix using * wildcard, a range between two ZIP codes or
9802 * two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460,
9803 * 94*-95*.
9804 */
9805 core.String postalCode;
9806 /** The percentage of tax rate that applies to the item price. */
9807 core.double rate;
9808 /** The geographic region to which the tax rate applies. */
9809 core.String region;
9810 /** Set to true if tax is charged on shipping. */
9811 core.bool taxShip;
9812
9813 ProductTax();
9814
9815 ProductTax.fromJson(core.Map _json) {
9816 if (_json.containsKey("country")) {
9817 country = _json["country"];
9818 }
9819 if (_json.containsKey("locationId")) {
9820 locationId = _json["locationId"];
9821 }
9822 if (_json.containsKey("postalCode")) {
9823 postalCode = _json["postalCode"];
9824 }
9825 if (_json.containsKey("rate")) {
9826 rate = _json["rate"];
9827 }
9828 if (_json.containsKey("region")) {
9829 region = _json["region"];
9830 }
9831 if (_json.containsKey("taxShip")) {
9832 taxShip = _json["taxShip"];
9833 }
9834 }
9835
9836 core.Map toJson() {
9837 var _json = new core.Map();
9838 if (country != null) {
9839 _json["country"] = country;
9840 }
9841 if (locationId != null) { 10481 if (locationId != null) {
9842 _json["locationId"] = locationId; 10482 _json["locationId"] = locationId;
9843 } 10483 }
9844 if (postalCode != null) { 10484 if (postalCode != null) {
9845 _json["postalCode"] = postalCode; 10485 _json["postalCode"] = postalCode;
9846 } 10486 }
9847 if (rate != null) { 10487 if (rate != null) {
9848 _json["rate"] = rate; 10488 _json["rate"] = rate;
9849 } 10489 }
9850 if (region != null) { 10490 if (region != null) {
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
10120 core.List<ProductstatusesCustomBatchRequestEntry> entries; 10760 core.List<ProductstatusesCustomBatchRequestEntry> entries;
10121 10761
10122 ProductstatusesCustomBatchRequest(); 10762 ProductstatusesCustomBatchRequest();
10123 10763
10124 ProductstatusesCustomBatchRequest.fromJson(core.Map _json) { 10764 ProductstatusesCustomBatchRequest.fromJson(core.Map _json) {
10125 if (_json.containsKey("entries")) { 10765 if (_json.containsKey("entries")) {
10126 entries = _json["entries"].map((value) => new ProductstatusesCustomBatchRe questEntry.fromJson(value)).toList(); 10766 entries = _json["entries"].map((value) => new ProductstatusesCustomBatchRe questEntry.fromJson(value)).toList();
10127 } 10767 }
10128 } 10768 }
10129 10769
10770 core.Map toJson() {
10771 var _json = new core.Map();
10772 if (entries != null) {
10773 _json["entries"] = entries.map((value) => (value).toJson()).toList();
10774 }
10775 return _json;
10776 }
10777 }
10778
10779 /** A batch entry encoding a single non-batch productstatuses request. */
10780 class ProductstatusesCustomBatchRequestEntry {
10781 /** An entry ID, unique within the batch request. */
10782 core.int batchId;
10783 /** The ID of the managing account. */
10784 core.String merchantId;
10785 core.String method;
10786 /** The ID of the product whose status to get. */
10787 core.String productId;
10788
10789 ProductstatusesCustomBatchRequestEntry();
10790
10791 ProductstatusesCustomBatchRequestEntry.fromJson(core.Map _json) {
10792 if (_json.containsKey("batchId")) {
10793 batchId = _json["batchId"];
10794 }
10795 if (_json.containsKey("merchantId")) {
10796 merchantId = _json["merchantId"];
10797 }
10798 if (_json.containsKey("method")) {
10799 method = _json["method"];
10800 }
10801 if (_json.containsKey("productId")) {
10802 productId = _json["productId"];
10803 }
10804 }
10805
10806 core.Map toJson() {
10807 var _json = new core.Map();
10808 if (batchId != null) {
10809 _json["batchId"] = batchId;
10810 }
10811 if (merchantId != null) {
10812 _json["merchantId"] = merchantId;
10813 }
10814 if (method != null) {
10815 _json["method"] = method;
10816 }
10817 if (productId != null) {
10818 _json["productId"] = productId;
10819 }
10820 return _json;
10821 }
10822 }
10823
10824 class ProductstatusesCustomBatchResponse {
10825 /** The result of the execution of the batch requests. */
10826 core.List<ProductstatusesCustomBatchResponseEntry> entries;
10827 /**
10828 * Identifies what kind of resource this is. Value: the fixed string
10829 * "content#productstatusesCustomBatchResponse".
10830 */
10831 core.String kind;
10832
10833 ProductstatusesCustomBatchResponse();
10834
10835 ProductstatusesCustomBatchResponse.fromJson(core.Map _json) {
10836 if (_json.containsKey("entries")) {
10837 entries = _json["entries"].map((value) => new ProductstatusesCustomBatchRe sponseEntry.fromJson(value)).toList();
10838 }
10839 if (_json.containsKey("kind")) {
10840 kind = _json["kind"];
10841 }
10842 }
10843
10844 core.Map toJson() {
10845 var _json = new core.Map();
10846 if (entries != null) {
10847 _json["entries"] = entries.map((value) => (value).toJson()).toList();
10848 }
10849 if (kind != null) {
10850 _json["kind"] = kind;
10851 }
10852 return _json;
10853 }
10854 }
10855
10856 /** A batch entry encoding a single non-batch productstatuses response. */
10857 class ProductstatusesCustomBatchResponseEntry {
10858 /** The ID of the request entry this entry responds to. */
10859 core.int batchId;
10860 /** A list of errors, if the request failed. */
10861 Errors errors;
10862 /**
10863 * Identifies what kind of resource this is. Value: the fixed string
10864 * "content#productstatusesCustomBatchResponseEntry".
10865 */
10866 core.String kind;
10867 /**
10868 * The requested product status. Only defined if the request was successful.
10869 */
10870 ProductStatus productStatus;
10871
10872 ProductstatusesCustomBatchResponseEntry();
10873
10874 ProductstatusesCustomBatchResponseEntry.fromJson(core.Map _json) {
10875 if (_json.containsKey("batchId")) {
10876 batchId = _json["batchId"];
10877 }
10878 if (_json.containsKey("errors")) {
10879 errors = new Errors.fromJson(_json["errors"]);
10880 }
10881 if (_json.containsKey("kind")) {
10882 kind = _json["kind"];
10883 }
10884 if (_json.containsKey("productStatus")) {
10885 productStatus = new ProductStatus.fromJson(_json["productStatus"]);
10886 }
10887 }
10888
10889 core.Map toJson() {
10890 var _json = new core.Map();
10891 if (batchId != null) {
10892 _json["batchId"] = batchId;
10893 }
10894 if (errors != null) {
10895 _json["errors"] = (errors).toJson();
10896 }
10897 if (kind != null) {
10898 _json["kind"] = kind;
10899 }
10900 if (productStatus != null) {
10901 _json["productStatus"] = (productStatus).toJson();
10902 }
10903 return _json;
10904 }
10905 }
10906
10907 class ProductstatusesListResponse {
10908 /**
10909 * Identifies what kind of resource this is. Value: the fixed string
10910 * "content#productstatusesListResponse".
10911 */
10912 core.String kind;
10913 /** The token for the retrieval of the next page of products statuses. */
10914 core.String nextPageToken;
10915 core.List<ProductStatus> resources;
10916
10917 ProductstatusesListResponse();
10918
10919 ProductstatusesListResponse.fromJson(core.Map _json) {
10920 if (_json.containsKey("kind")) {
10921 kind = _json["kind"];
10922 }
10923 if (_json.containsKey("nextPageToken")) {
10924 nextPageToken = _json["nextPageToken"];
10925 }
10926 if (_json.containsKey("resources")) {
10927 resources = _json["resources"].map((value) => new ProductStatus.fromJson(v alue)).toList();
10928 }
10929 }
10930
10931 core.Map toJson() {
10932 var _json = new core.Map();
10933 if (kind != null) {
10934 _json["kind"] = kind;
10935 }
10936 if (nextPageToken != null) {
10937 _json["nextPageToken"] = nextPageToken;
10938 }
10939 if (resources != null) {
10940 _json["resources"] = resources.map((value) => (value).toJson()).toList();
10941 }
10942 return _json;
10943 }
10944 }
10945
10946 class RateGroup {
10947 /**
10948 * A list of shipping labels defining the products to which this rate group
10949 * applies to. This is a disjunction: only one of the labels has to match for
10950 * the rate group to apply. May only be empty for the last rate group of a
10951 * service. Required.
10952 */
10953 core.List<core.String> applicableShippingLabels;
10954 /**
10955 * A list of carrier rates that can be referred to by mainTable or
10956 * singleValue.
10957 */
10958 core.List<CarrierRate> carrierRates;
10959 /**
10960 * A table defining the rate group, when singleValue is not expressive enough.
10961 * Can only be set if singleValue is not set.
10962 */
10963 Table mainTable;
10964 /**
10965 * The value of the rate group (e.g. flat rate $10). Can only be set if
10966 * mainTable and subtables are not set.
10967 */
10968 Value singleValue;
10969 /**
10970 * A list of subtables referred to by mainTable. Can only be set if mainTable
10971 * is set.
10972 */
10973 core.List<Table> subtables;
10974
10975 RateGroup();
10976
10977 RateGroup.fromJson(core.Map _json) {
10978 if (_json.containsKey("applicableShippingLabels")) {
10979 applicableShippingLabels = _json["applicableShippingLabels"];
10980 }
10981 if (_json.containsKey("carrierRates")) {
10982 carrierRates = _json["carrierRates"].map((value) => new CarrierRate.fromJs on(value)).toList();
10983 }
10984 if (_json.containsKey("mainTable")) {
10985 mainTable = new Table.fromJson(_json["mainTable"]);
10986 }
10987 if (_json.containsKey("singleValue")) {
10988 singleValue = new Value.fromJson(_json["singleValue"]);
10989 }
10990 if (_json.containsKey("subtables")) {
10991 subtables = _json["subtables"].map((value) => new Table.fromJson(value)).t oList();
10992 }
10993 }
10994
10995 core.Map toJson() {
10996 var _json = new core.Map();
10997 if (applicableShippingLabels != null) {
10998 _json["applicableShippingLabels"] = applicableShippingLabels;
10999 }
11000 if (carrierRates != null) {
11001 _json["carrierRates"] = carrierRates.map((value) => (value).toJson()).toLi st();
11002 }
11003 if (mainTable != null) {
11004 _json["mainTable"] = (mainTable).toJson();
11005 }
11006 if (singleValue != null) {
11007 _json["singleValue"] = (singleValue).toJson();
11008 }
11009 if (subtables != null) {
11010 _json["subtables"] = subtables.map((value) => (value).toJson()).toList();
11011 }
11012 return _json;
11013 }
11014 }
11015
11016 class Row {
11017 /**
11018 * The list of cells that constitute the row. Must have the same length as
11019 * columnHeaders for two-dimensional tables, a length of 1 for one-dimensional
11020 * tables. Required.
11021 */
11022 core.List<Value> cells;
11023
11024 Row();
11025
11026 Row.fromJson(core.Map _json) {
11027 if (_json.containsKey("cells")) {
11028 cells = _json["cells"].map((value) => new Value.fromJson(value)).toList();
11029 }
11030 }
11031
11032 core.Map toJson() {
11033 var _json = new core.Map();
11034 if (cells != null) {
11035 _json["cells"] = cells.map((value) => (value).toJson()).toList();
11036 }
11037 return _json;
11038 }
11039 }
11040
11041 class Service {
11042 /**
11043 * A boolean exposing the active status of the shipping service. Required.
11044 */
11045 core.bool active;
11046 /**
11047 * The CLDR code of the currency to which this service applies. Must match
11048 * that of the prices in rate groups.
11049 */
11050 core.String currency;
11051 /**
11052 * The CLDR territory code of the country to which the service applies.
11053 * Required.
11054 */
11055 core.String deliveryCountry;
11056 /**
11057 * Time spent in various aspects from order to the delivery of the product.
11058 * Required.
11059 */
11060 DeliveryTime deliveryTime;
11061 /**
11062 * Free-form name of the service. Must be unique within target account.
11063 * Required.
11064 */
11065 core.String name;
11066 /**
11067 * Shipping rate group definitions. Only the last one is allowed to have an
11068 * empty applicableShippingLabels, which means "everything else". The other
11069 * applicableShippingLabels must not overlap.
11070 */
11071 core.List<RateGroup> rateGroups;
11072
11073 Service();
11074
11075 Service.fromJson(core.Map _json) {
11076 if (_json.containsKey("active")) {
11077 active = _json["active"];
11078 }
11079 if (_json.containsKey("currency")) {
11080 currency = _json["currency"];
11081 }
11082 if (_json.containsKey("deliveryCountry")) {
11083 deliveryCountry = _json["deliveryCountry"];
11084 }
11085 if (_json.containsKey("deliveryTime")) {
11086 deliveryTime = new DeliveryTime.fromJson(_json["deliveryTime"]);
11087 }
11088 if (_json.containsKey("name")) {
11089 name = _json["name"];
11090 }
11091 if (_json.containsKey("rateGroups")) {
11092 rateGroups = _json["rateGroups"].map((value) => new RateGroup.fromJson(val ue)).toList();
11093 }
11094 }
11095
11096 core.Map toJson() {
11097 var _json = new core.Map();
11098 if (active != null) {
11099 _json["active"] = active;
11100 }
11101 if (currency != null) {
11102 _json["currency"] = currency;
11103 }
11104 if (deliveryCountry != null) {
11105 _json["deliveryCountry"] = deliveryCountry;
11106 }
11107 if (deliveryTime != null) {
11108 _json["deliveryTime"] = (deliveryTime).toJson();
11109 }
11110 if (name != null) {
11111 _json["name"] = name;
11112 }
11113 if (rateGroups != null) {
11114 _json["rateGroups"] = rateGroups.map((value) => (value).toJson()).toList() ;
11115 }
11116 return _json;
11117 }
11118 }
11119
11120 /** The merchant account's shipping settings. */
11121 class ShippingSettings {
11122 /**
11123 * The ID of the account to which these account shipping settings belong.
11124 * Ignored upon update, always present in get request responses.
11125 */
11126 core.String accountId;
11127 /**
11128 * A list of postal code groups that can be referred to in services. Optional.
11129 */
11130 core.List<PostalCodeGroup> postalCodeGroups;
11131 /** The target account's list of services. Optional. */
11132 core.List<Service> services;
11133
11134 ShippingSettings();
11135
11136 ShippingSettings.fromJson(core.Map _json) {
11137 if (_json.containsKey("accountId")) {
11138 accountId = _json["accountId"];
11139 }
11140 if (_json.containsKey("postalCodeGroups")) {
11141 postalCodeGroups = _json["postalCodeGroups"].map((value) => new PostalCode Group.fromJson(value)).toList();
11142 }
11143 if (_json.containsKey("services")) {
11144 services = _json["services"].map((value) => new Service.fromJson(value)).t oList();
11145 }
11146 }
11147
11148 core.Map toJson() {
11149 var _json = new core.Map();
11150 if (accountId != null) {
11151 _json["accountId"] = accountId;
11152 }
11153 if (postalCodeGroups != null) {
11154 _json["postalCodeGroups"] = postalCodeGroups.map((value) => (value).toJson ()).toList();
11155 }
11156 if (services != null) {
11157 _json["services"] = services.map((value) => (value).toJson()).toList();
11158 }
11159 return _json;
11160 }
11161 }
11162
11163 class ShippingsettingsCustomBatchRequest {
11164 /** The request entries to be processed in the batch. */
11165 core.List<ShippingsettingsCustomBatchRequestEntry> entries;
11166
11167 ShippingsettingsCustomBatchRequest();
11168
11169 ShippingsettingsCustomBatchRequest.fromJson(core.Map _json) {
11170 if (_json.containsKey("entries")) {
11171 entries = _json["entries"].map((value) => new ShippingsettingsCustomBatchR equestEntry.fromJson(value)).toList();
11172 }
11173 }
11174
10130 core.Map toJson() { 11175 core.Map toJson() {
10131 var _json = new core.Map(); 11176 var _json = new core.Map();
10132 if (entries != null) { 11177 if (entries != null) {
10133 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 11178 _json["entries"] = entries.map((value) => (value).toJson()).toList();
10134 } 11179 }
10135 return _json; 11180 return _json;
10136 } 11181 }
10137 } 11182 }
10138 11183
10139 /** A batch entry encoding a single non-batch productstatuses request. */ 11184 /** A batch entry encoding a single non-batch accountshipping request. */
10140 class ProductstatusesCustomBatchRequestEntry { 11185 class ShippingsettingsCustomBatchRequestEntry {
11186 /**
11187 * The ID of the account for which to get/update account shipping settings.
11188 */
11189 core.String accountId;
10141 /** An entry ID, unique within the batch request. */ 11190 /** An entry ID, unique within the batch request. */
10142 core.int batchId; 11191 core.int batchId;
10143 /** The ID of the managing account. */ 11192 /** The ID of the managing account. */
10144 core.String merchantId; 11193 core.String merchantId;
10145 core.String method; 11194 core.String method;
10146 /** The ID of the product whose status to get. */ 11195 /**
10147 core.String productId; 11196 * The account shipping settings to update. Only defined if the method is
11197 * update.
11198 */
11199 ShippingSettings shippingSettings;
10148 11200
10149 ProductstatusesCustomBatchRequestEntry(); 11201 ShippingsettingsCustomBatchRequestEntry();
10150 11202
10151 ProductstatusesCustomBatchRequestEntry.fromJson(core.Map _json) { 11203 ShippingsettingsCustomBatchRequestEntry.fromJson(core.Map _json) {
11204 if (_json.containsKey("accountId")) {
11205 accountId = _json["accountId"];
11206 }
10152 if (_json.containsKey("batchId")) { 11207 if (_json.containsKey("batchId")) {
10153 batchId = _json["batchId"]; 11208 batchId = _json["batchId"];
10154 } 11209 }
10155 if (_json.containsKey("merchantId")) { 11210 if (_json.containsKey("merchantId")) {
10156 merchantId = _json["merchantId"]; 11211 merchantId = _json["merchantId"];
10157 } 11212 }
10158 if (_json.containsKey("method")) { 11213 if (_json.containsKey("method")) {
10159 method = _json["method"]; 11214 method = _json["method"];
10160 } 11215 }
10161 if (_json.containsKey("productId")) { 11216 if (_json.containsKey("shippingSettings")) {
10162 productId = _json["productId"]; 11217 shippingSettings = new ShippingSettings.fromJson(_json["shippingSettings"] );
10163 } 11218 }
10164 } 11219 }
10165 11220
10166 core.Map toJson() { 11221 core.Map toJson() {
10167 var _json = new core.Map(); 11222 var _json = new core.Map();
11223 if (accountId != null) {
11224 _json["accountId"] = accountId;
11225 }
10168 if (batchId != null) { 11226 if (batchId != null) {
10169 _json["batchId"] = batchId; 11227 _json["batchId"] = batchId;
10170 } 11228 }
10171 if (merchantId != null) { 11229 if (merchantId != null) {
10172 _json["merchantId"] = merchantId; 11230 _json["merchantId"] = merchantId;
10173 } 11231 }
10174 if (method != null) { 11232 if (method != null) {
10175 _json["method"] = method; 11233 _json["method"] = method;
10176 } 11234 }
10177 if (productId != null) { 11235 if (shippingSettings != null) {
10178 _json["productId"] = productId; 11236 _json["shippingSettings"] = (shippingSettings).toJson();
10179 } 11237 }
10180 return _json; 11238 return _json;
10181 } 11239 }
10182 } 11240 }
10183 11241
10184 class ProductstatusesCustomBatchResponse { 11242 class ShippingsettingsCustomBatchResponse {
10185 /** The result of the execution of the batch requests. */ 11243 /** The result of the execution of the batch requests. */
10186 core.List<ProductstatusesCustomBatchResponseEntry> entries; 11244 core.List<ShippingsettingsCustomBatchResponseEntry> entries;
10187 /** 11245 /**
10188 * Identifies what kind of resource this is. Value: the fixed string 11246 * Identifies what kind of resource this is. Value: the fixed string
10189 * "content#productstatusesCustomBatchResponse". 11247 * "content#shippingsettingsCustomBatchResponse".
10190 */ 11248 */
10191 core.String kind; 11249 core.String kind;
10192 11250
10193 ProductstatusesCustomBatchResponse(); 11251 ShippingsettingsCustomBatchResponse();
10194 11252
10195 ProductstatusesCustomBatchResponse.fromJson(core.Map _json) { 11253 ShippingsettingsCustomBatchResponse.fromJson(core.Map _json) {
10196 if (_json.containsKey("entries")) { 11254 if (_json.containsKey("entries")) {
10197 entries = _json["entries"].map((value) => new ProductstatusesCustomBatchRe sponseEntry.fromJson(value)).toList(); 11255 entries = _json["entries"].map((value) => new ShippingsettingsCustomBatchR esponseEntry.fromJson(value)).toList();
10198 } 11256 }
10199 if (_json.containsKey("kind")) { 11257 if (_json.containsKey("kind")) {
10200 kind = _json["kind"]; 11258 kind = _json["kind"];
10201 } 11259 }
10202 } 11260 }
10203 11261
10204 core.Map toJson() { 11262 core.Map toJson() {
10205 var _json = new core.Map(); 11263 var _json = new core.Map();
10206 if (entries != null) { 11264 if (entries != null) {
10207 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 11265 _json["entries"] = entries.map((value) => (value).toJson()).toList();
10208 } 11266 }
10209 if (kind != null) { 11267 if (kind != null) {
10210 _json["kind"] = kind; 11268 _json["kind"] = kind;
10211 } 11269 }
10212 return _json; 11270 return _json;
10213 } 11271 }
10214 } 11272 }
10215 11273
10216 /** A batch entry encoding a single non-batch productstatuses response. */ 11274 /** A batch entry encoding a single non-batch shipping settings response. */
10217 class ProductstatusesCustomBatchResponseEntry { 11275 class ShippingsettingsCustomBatchResponseEntry {
10218 /** The ID of the request entry this entry responds to. */ 11276 /** The ID of the request entry to which this entry responds. */
10219 core.int batchId; 11277 core.int batchId;
10220 /** A list of errors, if the request failed. */ 11278 /** A list of errors defined if, and only if, the request failed. */
10221 Errors errors; 11279 Errors errors;
10222 /** 11280 /**
10223 * Identifies what kind of resource this is. Value: the fixed string 11281 * Identifies what kind of resource this is. Value: the fixed string
10224 * "content#productstatusesCustomBatchResponseEntry". 11282 * "content#shippingsettingsCustomBatchResponseEntry".
10225 */ 11283 */
10226 core.String kind; 11284 core.String kind;
10227 /** 11285 /** The retrieved or updated account shipping settings. */
10228 * The requested product status. Only defined if the request was successful. 11286 ShippingSettings shippingSettings;
10229 */
10230 ProductStatus productStatus;
10231 11287
10232 ProductstatusesCustomBatchResponseEntry(); 11288 ShippingsettingsCustomBatchResponseEntry();
10233 11289
10234 ProductstatusesCustomBatchResponseEntry.fromJson(core.Map _json) { 11290 ShippingsettingsCustomBatchResponseEntry.fromJson(core.Map _json) {
10235 if (_json.containsKey("batchId")) { 11291 if (_json.containsKey("batchId")) {
10236 batchId = _json["batchId"]; 11292 batchId = _json["batchId"];
10237 } 11293 }
10238 if (_json.containsKey("errors")) { 11294 if (_json.containsKey("errors")) {
10239 errors = new Errors.fromJson(_json["errors"]); 11295 errors = new Errors.fromJson(_json["errors"]);
10240 } 11296 }
10241 if (_json.containsKey("kind")) { 11297 if (_json.containsKey("kind")) {
10242 kind = _json["kind"]; 11298 kind = _json["kind"];
10243 } 11299 }
10244 if (_json.containsKey("productStatus")) { 11300 if (_json.containsKey("shippingSettings")) {
10245 productStatus = new ProductStatus.fromJson(_json["productStatus"]); 11301 shippingSettings = new ShippingSettings.fromJson(_json["shippingSettings"] );
10246 } 11302 }
10247 } 11303 }
10248 11304
10249 core.Map toJson() { 11305 core.Map toJson() {
10250 var _json = new core.Map(); 11306 var _json = new core.Map();
10251 if (batchId != null) { 11307 if (batchId != null) {
10252 _json["batchId"] = batchId; 11308 _json["batchId"] = batchId;
10253 } 11309 }
10254 if (errors != null) { 11310 if (errors != null) {
10255 _json["errors"] = (errors).toJson(); 11311 _json["errors"] = (errors).toJson();
10256 } 11312 }
10257 if (kind != null) { 11313 if (kind != null) {
10258 _json["kind"] = kind; 11314 _json["kind"] = kind;
10259 } 11315 }
10260 if (productStatus != null) { 11316 if (shippingSettings != null) {
10261 _json["productStatus"] = (productStatus).toJson(); 11317 _json["shippingSettings"] = (shippingSettings).toJson();
10262 } 11318 }
10263 return _json; 11319 return _json;
10264 } 11320 }
10265 } 11321 }
10266 11322
10267 class ProductstatusesListResponse { 11323 class ShippingsettingsGetSupportedCarriersResponse {
11324 /** A list of supported carriers. May be empty. */
11325 core.List<CarriersCarrier> carriers;
10268 /** 11326 /**
10269 * Identifies what kind of resource this is. Value: the fixed string 11327 * Identifies what kind of resource this is. Value: the fixed string
10270 * "content#productstatusesListResponse". 11328 * "content#shippingsettingsGetSupportedCarriersResponse".
10271 */ 11329 */
10272 core.String kind; 11330 core.String kind;
10273 /** The token for the retrieval of the next page of products statuses. */
10274 core.String nextPageToken;
10275 core.List<ProductStatus> resources;
10276 11331
10277 ProductstatusesListResponse(); 11332 ShippingsettingsGetSupportedCarriersResponse();
10278 11333
10279 ProductstatusesListResponse.fromJson(core.Map _json) { 11334 ShippingsettingsGetSupportedCarriersResponse.fromJson(core.Map _json) {
11335 if (_json.containsKey("carriers")) {
11336 carriers = _json["carriers"].map((value) => new CarriersCarrier.fromJson(v alue)).toList();
11337 }
10280 if (_json.containsKey("kind")) { 11338 if (_json.containsKey("kind")) {
10281 kind = _json["kind"]; 11339 kind = _json["kind"];
10282 } 11340 }
11341 }
11342
11343 core.Map toJson() {
11344 var _json = new core.Map();
11345 if (carriers != null) {
11346 _json["carriers"] = carriers.map((value) => (value).toJson()).toList();
11347 }
11348 if (kind != null) {
11349 _json["kind"] = kind;
11350 }
11351 return _json;
11352 }
11353 }
11354
11355 class ShippingsettingsListResponse {
11356 /**
11357 * Identifies what kind of resource this is. Value: the fixed string
11358 * "content#shippingsettingsListResponse".
11359 */
11360 core.String kind;
11361 /** The token for the retrieval of the next page of shipping settings. */
11362 core.String nextPageToken;
11363 core.List<ShippingSettings> resources;
11364
11365 ShippingsettingsListResponse();
11366
11367 ShippingsettingsListResponse.fromJson(core.Map _json) {
11368 if (_json.containsKey("kind")) {
11369 kind = _json["kind"];
11370 }
10283 if (_json.containsKey("nextPageToken")) { 11371 if (_json.containsKey("nextPageToken")) {
10284 nextPageToken = _json["nextPageToken"]; 11372 nextPageToken = _json["nextPageToken"];
10285 } 11373 }
10286 if (_json.containsKey("resources")) { 11374 if (_json.containsKey("resources")) {
10287 resources = _json["resources"].map((value) => new ProductStatus.fromJson(v alue)).toList(); 11375 resources = _json["resources"].map((value) => new ShippingSettings.fromJso n(value)).toList();
10288 } 11376 }
10289 } 11377 }
10290 11378
10291 core.Map toJson() { 11379 core.Map toJson() {
10292 var _json = new core.Map(); 11380 var _json = new core.Map();
10293 if (kind != null) { 11381 if (kind != null) {
10294 _json["kind"] = kind; 11382 _json["kind"] = kind;
10295 } 11383 }
10296 if (nextPageToken != null) { 11384 if (nextPageToken != null) {
10297 _json["nextPageToken"] = nextPageToken; 11385 _json["nextPageToken"] = nextPageToken;
10298 } 11386 }
10299 if (resources != null) { 11387 if (resources != null) {
10300 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 11388 _json["resources"] = resources.map((value) => (value).toJson()).toList();
10301 } 11389 }
10302 return _json; 11390 return _json;
10303 } 11391 }
10304 } 11392 }
10305 11393
11394 class Table {
11395 /**
11396 * Headers of the table's columns. Optional: if not set then the table has
11397 * only one dimension.
11398 */
11399 Headers columnHeaders;
11400 /** Name of the table. Required for subtables, ignored for the main table. */
11401 core.String name;
11402 /** Headers of the table's rows. Required. */
11403 Headers rowHeaders;
11404 /**
11405 * The list of rows that constitute the table. Must have the same length as
11406 * rowHeaders. Required.
11407 */
11408 core.List<Row> rows;
11409
11410 Table();
11411
11412 Table.fromJson(core.Map _json) {
11413 if (_json.containsKey("columnHeaders")) {
11414 columnHeaders = new Headers.fromJson(_json["columnHeaders"]);
11415 }
11416 if (_json.containsKey("name")) {
11417 name = _json["name"];
11418 }
11419 if (_json.containsKey("rowHeaders")) {
11420 rowHeaders = new Headers.fromJson(_json["rowHeaders"]);
11421 }
11422 if (_json.containsKey("rows")) {
11423 rows = _json["rows"].map((value) => new Row.fromJson(value)).toList();
11424 }
11425 }
11426
11427 core.Map toJson() {
11428 var _json = new core.Map();
11429 if (columnHeaders != null) {
11430 _json["columnHeaders"] = (columnHeaders).toJson();
11431 }
11432 if (name != null) {
11433 _json["name"] = name;
11434 }
11435 if (rowHeaders != null) {
11436 _json["rowHeaders"] = (rowHeaders).toJson();
11437 }
11438 if (rows != null) {
11439 _json["rows"] = rows.map((value) => (value).toJson()).toList();
11440 }
11441 return _json;
11442 }
11443 }
11444
10306 class TestOrder { 11445 class TestOrder {
10307 /** The details of the customer who placed the order. */ 11446 /** The details of the customer who placed the order. */
10308 TestOrderCustomer customer; 11447 TestOrderCustomer customer;
10309 /** 11448 /**
10310 * Identifies what kind of resource this is. Value: the fixed string 11449 * Identifies what kind of resource this is. Value: the fixed string
10311 * "content#testOrder". 11450 * "content#testOrder".
10312 */ 11451 */
10313 core.String kind; 11452 core.String kind;
10314 /** Line items that are ordered. At least one line item must be provided. */ 11453 /** Line items that are ordered. At least one line item must be provided. */
10315 core.List<TestOrderLineItem> lineItems; 11454 core.List<TestOrderLineItem> lineItems;
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
10658 if (predefinedBillingAddress != null) { 11797 if (predefinedBillingAddress != null) {
10659 _json["predefinedBillingAddress"] = predefinedBillingAddress; 11798 _json["predefinedBillingAddress"] = predefinedBillingAddress;
10660 } 11799 }
10661 if (type != null) { 11800 if (type != null) {
10662 _json["type"] = type; 11801 _json["type"] = type;
10663 } 11802 }
10664 return _json; 11803 return _json;
10665 } 11804 }
10666 } 11805 }
10667 11806
11807 /**
11808 * The single value of a rate group or the value of a rate group table's cell.
11809 * Exactly one of noShipping, flatRate, pricePercentage, carrierRateName,
11810 * subtableName must be set.
11811 */
11812 class Value {
11813 /**
11814 * The name of a carrier rate referring to a carrier rate defined in the same
11815 * rate group. Can only be set if all other fields are not set.
11816 */
11817 core.String carrierRateName;
11818 /** A flat rate. Can only be set if all other fields are not set. */
11819 Price flatRate;
11820 /**
11821 * If true, then the product can't ship. Must be true when set, can only be
11822 * set if all other fields are not set.
11823 */
11824 core.bool noShipping;
11825 /**
11826 * A percentage of the price represented as a number in decimal notation
11827 * (e.g., "5.4"). Can only be set if all other fields are not set.
11828 */
11829 core.String pricePercentage;
11830 /**
11831 * The name of a subtable. Can only be set in table cells (i.e., not for
11832 * single values), and only if all other fields are not set.
11833 */
11834 core.String subtableName;
11835
11836 Value();
11837
11838 Value.fromJson(core.Map _json) {
11839 if (_json.containsKey("carrierRateName")) {
11840 carrierRateName = _json["carrierRateName"];
11841 }
11842 if (_json.containsKey("flatRate")) {
11843 flatRate = new Price.fromJson(_json["flatRate"]);
11844 }
11845 if (_json.containsKey("noShipping")) {
11846 noShipping = _json["noShipping"];
11847 }
11848 if (_json.containsKey("pricePercentage")) {
11849 pricePercentage = _json["pricePercentage"];
11850 }
11851 if (_json.containsKey("subtableName")) {
11852 subtableName = _json["subtableName"];
11853 }
11854 }
11855
11856 core.Map toJson() {
11857 var _json = new core.Map();
11858 if (carrierRateName != null) {
11859 _json["carrierRateName"] = carrierRateName;
11860 }
11861 if (flatRate != null) {
11862 _json["flatRate"] = (flatRate).toJson();
11863 }
11864 if (noShipping != null) {
11865 _json["noShipping"] = noShipping;
11866 }
11867 if (pricePercentage != null) {
11868 _json["pricePercentage"] = pricePercentage;
11869 }
11870 if (subtableName != null) {
11871 _json["subtableName"] = subtableName;
11872 }
11873 return _json;
11874 }
11875 }
11876
10668 class Weight { 11877 class Weight {
10669 /** The weight unit. */ 11878 /** The weight unit. */
10670 core.String unit; 11879 core.String unit;
10671 /** The weight represented as a number. */ 11880 /** The weight represented as a number. */
10672 core.String value; 11881 core.String value;
10673 11882
10674 Weight(); 11883 Weight();
10675 11884
10676 Weight.fromJson(core.Map _json) { 11885 Weight.fromJson(core.Map _json) {
10677 if (_json.containsKey("unit")) { 11886 if (_json.containsKey("unit")) {
10678 unit = _json["unit"]; 11887 unit = _json["unit"];
10679 } 11888 }
10680 if (_json.containsKey("value")) { 11889 if (_json.containsKey("value")) {
10681 value = _json["value"]; 11890 value = _json["value"];
10682 } 11891 }
10683 } 11892 }
10684 11893
10685 core.Map toJson() { 11894 core.Map toJson() {
10686 var _json = new core.Map(); 11895 var _json = new core.Map();
10687 if (unit != null) { 11896 if (unit != null) {
10688 _json["unit"] = unit; 11897 _json["unit"] = unit;
10689 } 11898 }
10690 if (value != null) { 11899 if (value != null) {
10691 _json["value"] = value; 11900 _json["value"] = value;
10692 } 11901 }
10693 return _json; 11902 return _json;
10694 } 11903 }
10695 } 11904 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/compute/v1.dart ('k') | generated/googleapis/lib/datastore/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698