OLD | NEW |
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; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
13 ApiRequestError, DetailedApiRequestError; | 13 show ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client content/v2'; | 15 const core.String USER_AGENT = 'dart-api-client content/v2'; |
16 | 16 |
17 /** | 17 /// Manages product items, inventory, and Merchant Center accounts for Google |
18 * Manages product items, inventory, and Merchant Center accounts for Google | 18 /// Shopping. |
19 * Shopping. | |
20 */ | |
21 class ContentApi { | 19 class ContentApi { |
22 /** Manage your product listings and accounts for Google Shopping */ | 20 /// Manage your product listings and accounts for Google Shopping |
23 static const ContentScope = "https://www.googleapis.com/auth/content"; | 21 static const ContentScope = "https://www.googleapis.com/auth/content"; |
24 | 22 |
25 | |
26 final commons.ApiRequester _requester; | 23 final commons.ApiRequester _requester; |
27 | 24 |
28 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); | 25 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); |
29 AccountstatusesResourceApi get accountstatuses => new AccountstatusesResourceA
pi(_requester); | 26 AccountstatusesResourceApi get accountstatuses => |
| 27 new AccountstatusesResourceApi(_requester); |
30 AccounttaxResourceApi get accounttax => new AccounttaxResourceApi(_requester); | 28 AccounttaxResourceApi get accounttax => new AccounttaxResourceApi(_requester); |
31 DatafeedsResourceApi get datafeeds => new DatafeedsResourceApi(_requester); | 29 DatafeedsResourceApi get datafeeds => new DatafeedsResourceApi(_requester); |
32 DatafeedstatusesResourceApi get datafeedstatuses => new DatafeedstatusesResour
ceApi(_requester); | 30 DatafeedstatusesResourceApi get datafeedstatuses => |
| 31 new DatafeedstatusesResourceApi(_requester); |
33 InventoryResourceApi get inventory => new InventoryResourceApi(_requester); | 32 InventoryResourceApi get inventory => new InventoryResourceApi(_requester); |
34 OrdersResourceApi get orders => new OrdersResourceApi(_requester); | 33 OrdersResourceApi get orders => new OrdersResourceApi(_requester); |
35 ProductsResourceApi get products => new ProductsResourceApi(_requester); | 34 ProductsResourceApi get products => new ProductsResourceApi(_requester); |
36 ProductstatusesResourceApi get productstatuses => new ProductstatusesResourceA
pi(_requester); | 35 ProductstatusesResourceApi get productstatuses => |
37 ShippingsettingsResourceApi get shippingsettings => new ShippingsettingsResour
ceApi(_requester); | 36 new ProductstatusesResourceApi(_requester); |
| 37 ShippingsettingsResourceApi get shippingsettings => |
| 38 new ShippingsettingsResourceApi(_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, |
40 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 41 {core.String rootUrl: "https://www.googleapis.com/", |
| 42 core.String servicePath: "content/v2/"}) |
| 43 : _requester = |
| 44 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
41 } | 45 } |
42 | 46 |
43 | |
44 class AccountsResourceApi { | 47 class AccountsResourceApi { |
45 final commons.ApiRequester _requester; | 48 final commons.ApiRequester _requester; |
46 | 49 |
47 AccountsResourceApi(commons.ApiRequester client) : | 50 AccountsResourceApi(commons.ApiRequester client) : _requester = client; |
48 _requester = client; | |
49 | 51 |
50 /** | 52 /// Returns information about the authenticated user. |
51 * Returns information about the authenticated user. | 53 /// |
52 * | 54 /// Request parameters: |
53 * Request parameters: | 55 /// |
54 * | 56 /// Completes with a [AccountsAuthInfoResponse]. |
55 * Completes with a [AccountsAuthInfoResponse]. | 57 /// |
56 * | 58 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
57 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 59 /// an error. |
58 * error. | 60 /// |
59 * | 61 /// If the used [http.Client] completes with an error when making a REST |
60 * If the used [http.Client] completes with an error when making a REST call, | 62 /// call, this method will complete with the same error. |
61 * this method will complete with the same error. | |
62 */ | |
63 async.Future<AccountsAuthInfoResponse> authinfo() { | 63 async.Future<AccountsAuthInfoResponse> authinfo() { |
64 var _url = null; | 64 var _url = null; |
65 var _queryParams = new core.Map(); | 65 var _queryParams = new core.Map(); |
66 var _uploadMedia = null; | 66 var _uploadMedia = null; |
67 var _uploadOptions = null; | 67 var _uploadOptions = null; |
68 var _downloadOptions = commons.DownloadOptions.Metadata; | 68 var _downloadOptions = commons.DownloadOptions.Metadata; |
69 var _body = null; | 69 var _body = null; |
70 | 70 |
71 | |
72 _url = 'accounts/authinfo'; | 71 _url = 'accounts/authinfo'; |
73 | 72 |
74 var _response = _requester.request(_url, | 73 var _response = _requester.request(_url, "GET", |
75 "GET", | 74 body: _body, |
76 body: _body, | 75 queryParams: _queryParams, |
77 queryParams: _queryParams, | 76 uploadOptions: _uploadOptions, |
78 uploadOptions: _uploadOptions, | 77 uploadMedia: _uploadMedia, |
79 uploadMedia: _uploadMedia, | 78 downloadOptions: _downloadOptions); |
80 downloadOptions: _downloadOptions); | 79 return _response |
81 return _response.then((data) => new AccountsAuthInfoResponse.fromJson(data))
; | 80 .then((data) => new AccountsAuthInfoResponse.fromJson(data)); |
82 } | 81 } |
83 | 82 |
84 /** | 83 /// Claims the website of a Merchant Center sub-account. This method can only |
85 * Claims the website of a Merchant Center sub-account. This method can only | 84 /// be called for accounts to which the managing account has access: either |
86 * be called for accounts to which the managing account has access: either the | 85 /// the managing account itself for any Merchant Center account, or any |
87 * managing account itself for any Merchant Center account, or any sub-account | 86 /// sub-account when the managing account is a multi-client account. |
88 * when the managing account is a multi-client account. | 87 /// |
89 * | 88 /// Request parameters: |
90 * Request parameters: | 89 /// |
91 * | 90 /// [merchantId] - The ID of the managing account. |
92 * [merchantId] - The ID of the managing account. | 91 /// |
93 * | 92 /// [accountId] - The ID of the account whose website is claimed. |
94 * [accountId] - The ID of the account whose website is claimed. | 93 /// |
95 * | 94 /// [overwrite] - Only available to selected merchants. When set to True, |
96 * [overwrite] - Flag to remove any existing claim on the requested website by | 95 /// this flag removes any existing claim on the requested website by another |
97 * another account and replace it with a claim from this account. | 96 /// account and replaces it with a claim from this account. |
98 * | 97 /// |
99 * Completes with a [AccountsClaimWebsiteResponse]. | 98 /// Completes with a [AccountsClaimWebsiteResponse]. |
100 * | 99 /// |
101 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 100 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
102 * error. | 101 /// an error. |
103 * | 102 /// |
104 * If the used [http.Client] completes with an error when making a REST call, | 103 /// If the used [http.Client] completes with an error when making a REST |
105 * this method will complete with the same error. | 104 /// call, this method will complete with the same error. |
106 */ | 105 async.Future<AccountsClaimWebsiteResponse> claimwebsite( |
107 async.Future<AccountsClaimWebsiteResponse> claimwebsite(core.String merchantId
, core.String accountId, {core.bool overwrite}) { | 106 core.String merchantId, core.String accountId, |
| 107 {core.bool overwrite}) { |
108 var _url = null; | 108 var _url = null; |
109 var _queryParams = new core.Map(); | 109 var _queryParams = new core.Map(); |
110 var _uploadMedia = null; | 110 var _uploadMedia = null; |
111 var _uploadOptions = null; | 111 var _uploadOptions = null; |
112 var _downloadOptions = commons.DownloadOptions.Metadata; | 112 var _downloadOptions = commons.DownloadOptions.Metadata; |
113 var _body = null; | 113 var _body = null; |
114 | 114 |
115 if (merchantId == null) { | 115 if (merchantId == null) { |
116 throw new core.ArgumentError("Parameter merchantId is required."); | 116 throw new core.ArgumentError("Parameter merchantId is required."); |
117 } | 117 } |
118 if (accountId == null) { | 118 if (accountId == null) { |
119 throw new core.ArgumentError("Parameter accountId is required."); | 119 throw new core.ArgumentError("Parameter accountId is required."); |
120 } | 120 } |
121 if (overwrite != null) { | 121 if (overwrite != null) { |
122 _queryParams["overwrite"] = ["${overwrite}"]; | 122 _queryParams["overwrite"] = ["${overwrite}"]; |
123 } | 123 } |
124 | 124 |
125 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons
.Escaper.ecapeVariable('$accountId') + '/claimwebsite'; | 125 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 126 '/accounts/' + |
| 127 commons.Escaper.ecapeVariable('$accountId') + |
| 128 '/claimwebsite'; |
126 | 129 |
127 var _response = _requester.request(_url, | 130 var _response = _requester.request(_url, "POST", |
128 "POST", | 131 body: _body, |
129 body: _body, | 132 queryParams: _queryParams, |
130 queryParams: _queryParams, | 133 uploadOptions: _uploadOptions, |
131 uploadOptions: _uploadOptions, | 134 uploadMedia: _uploadMedia, |
132 uploadMedia: _uploadMedia, | 135 downloadOptions: _downloadOptions); |
133 downloadOptions: _downloadOptions); | 136 return _response |
134 return _response.then((data) => new AccountsClaimWebsiteResponse.fromJson(da
ta)); | 137 .then((data) => new AccountsClaimWebsiteResponse.fromJson(data)); |
135 } | 138 } |
136 | 139 |
137 /** | 140 /// Retrieves, inserts, updates, and deletes multiple Merchant Center |
138 * Retrieves, inserts, updates, and deletes multiple Merchant Center | 141 /// (sub-)accounts in a single request. |
139 * (sub-)accounts in a single request. | 142 /// |
140 * | 143 /// [request] - The metadata request object. |
141 * [request] - The metadata request object. | 144 /// |
142 * | 145 /// Request parameters: |
143 * Request parameters: | 146 /// |
144 * | 147 /// [dryRun] - Flag to run the request in dry-run mode. |
145 * [dryRun] - Flag to run the request in dry-run mode. | 148 /// |
146 * | 149 /// Completes with a [AccountsCustomBatchResponse]. |
147 * Completes with a [AccountsCustomBatchResponse]. | 150 /// |
148 * | 151 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
149 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 152 /// an error. |
150 * error. | 153 /// |
151 * | 154 /// If the used [http.Client] completes with an error when making a REST |
152 * If the used [http.Client] completes with an error when making a REST call, | 155 /// call, this method will complete with the same error. |
153 * this method will complete with the same error. | 156 async.Future<AccountsCustomBatchResponse> custombatch( |
154 */ | 157 AccountsCustomBatchRequest request, |
155 async.Future<AccountsCustomBatchResponse> custombatch(AccountsCustomBatchReque
st request, {core.bool dryRun}) { | 158 {core.bool dryRun}) { |
156 var _url = null; | 159 var _url = null; |
157 var _queryParams = new core.Map(); | 160 var _queryParams = new core.Map(); |
158 var _uploadMedia = null; | 161 var _uploadMedia = null; |
159 var _uploadOptions = null; | 162 var _uploadOptions = null; |
160 var _downloadOptions = commons.DownloadOptions.Metadata; | 163 var _downloadOptions = commons.DownloadOptions.Metadata; |
161 var _body = null; | 164 var _body = null; |
162 | 165 |
163 if (request != null) { | 166 if (request != null) { |
164 _body = convert.JSON.encode((request).toJson()); | 167 _body = convert.JSON.encode((request).toJson()); |
165 } | 168 } |
166 if (dryRun != null) { | 169 if (dryRun != null) { |
167 _queryParams["dryRun"] = ["${dryRun}"]; | 170 _queryParams["dryRun"] = ["${dryRun}"]; |
168 } | 171 } |
169 | 172 |
170 _url = 'accounts/batch'; | 173 _url = 'accounts/batch'; |
171 | 174 |
172 var _response = _requester.request(_url, | 175 var _response = _requester.request(_url, "POST", |
173 "POST", | 176 body: _body, |
174 body: _body, | 177 queryParams: _queryParams, |
175 queryParams: _queryParams, | 178 uploadOptions: _uploadOptions, |
176 uploadOptions: _uploadOptions, | 179 uploadMedia: _uploadMedia, |
177 uploadMedia: _uploadMedia, | 180 downloadOptions: _downloadOptions); |
178 downloadOptions: _downloadOptions); | 181 return _response |
179 return _response.then((data) => new AccountsCustomBatchResponse.fromJson(dat
a)); | 182 .then((data) => new AccountsCustomBatchResponse.fromJson(data)); |
180 } | 183 } |
181 | 184 |
182 /** | 185 /// Deletes a Merchant Center sub-account. This method can only be called for |
183 * Deletes a Merchant Center sub-account. This method can only be called for | 186 /// multi-client accounts. |
184 * multi-client accounts. | 187 /// |
185 * | 188 /// Request parameters: |
186 * Request parameters: | 189 /// |
187 * | 190 /// [merchantId] - The ID of the managing account. |
188 * [merchantId] - The ID of the managing account. | 191 /// |
189 * | 192 /// [accountId] - The ID of the account. |
190 * [accountId] - The ID of the account. | 193 /// |
191 * | 194 /// [dryRun] - Flag to run the request in dry-run mode. |
192 * [dryRun] - Flag to run the request in dry-run mode. | 195 /// |
193 * | 196 /// [force] - Flag to delete sub-accounts with products. The default value of |
194 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 197 /// false will become active on September 28, 2017. |
195 * error. | 198 /// |
196 * | 199 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
197 * If the used [http.Client] completes with an error when making a REST call, | 200 /// an error. |
198 * this method will complete with the same error. | 201 /// |
199 */ | 202 /// If the used [http.Client] completes with an error when making a REST |
200 async.Future delete(core.String merchantId, core.String accountId, {core.bool
dryRun}) { | 203 /// call, this method will complete with the same error. |
| 204 async.Future delete(core.String merchantId, core.String accountId, |
| 205 {core.bool dryRun, core.bool force}) { |
201 var _url = null; | 206 var _url = null; |
202 var _queryParams = new core.Map(); | 207 var _queryParams = new core.Map(); |
203 var _uploadMedia = null; | 208 var _uploadMedia = null; |
204 var _uploadOptions = null; | 209 var _uploadOptions = null; |
205 var _downloadOptions = commons.DownloadOptions.Metadata; | 210 var _downloadOptions = commons.DownloadOptions.Metadata; |
206 var _body = null; | 211 var _body = null; |
207 | 212 |
208 if (merchantId == null) { | 213 if (merchantId == null) { |
209 throw new core.ArgumentError("Parameter merchantId is required."); | 214 throw new core.ArgumentError("Parameter merchantId is required."); |
210 } | 215 } |
211 if (accountId == null) { | 216 if (accountId == null) { |
212 throw new core.ArgumentError("Parameter accountId is required."); | 217 throw new core.ArgumentError("Parameter accountId is required."); |
213 } | 218 } |
214 if (dryRun != null) { | 219 if (dryRun != null) { |
215 _queryParams["dryRun"] = ["${dryRun}"]; | 220 _queryParams["dryRun"] = ["${dryRun}"]; |
216 } | 221 } |
| 222 if (force != null) { |
| 223 _queryParams["force"] = ["${force}"]; |
| 224 } |
217 | 225 |
218 _downloadOptions = null; | 226 _downloadOptions = null; |
219 | 227 |
220 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons
.Escaper.ecapeVariable('$accountId'); | 228 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 229 '/accounts/' + |
| 230 commons.Escaper.ecapeVariable('$accountId'); |
221 | 231 |
222 var _response = _requester.request(_url, | 232 var _response = _requester.request(_url, "DELETE", |
223 "DELETE", | 233 body: _body, |
224 body: _body, | 234 queryParams: _queryParams, |
225 queryParams: _queryParams, | 235 uploadOptions: _uploadOptions, |
226 uploadOptions: _uploadOptions, | 236 uploadMedia: _uploadMedia, |
227 uploadMedia: _uploadMedia, | 237 downloadOptions: _downloadOptions); |
228 downloadOptions: _downloadOptions); | |
229 return _response.then((data) => null); | 238 return _response.then((data) => null); |
230 } | 239 } |
231 | 240 |
232 /** | 241 /// Retrieves a Merchant Center account. This method can only be called for |
233 * Retrieves a Merchant Center account. This method can only be called for | 242 /// accounts to which the managing account has access: either the managing |
234 * accounts to which the managing account has access: either the managing | 243 /// account itself for any Merchant Center account, or any sub-account when |
235 * account itself for any Merchant Center account, or any sub-account when the | 244 /// the managing account is a multi-client account. |
236 * managing account is a multi-client account. | 245 /// |
237 * | 246 /// Request parameters: |
238 * Request parameters: | 247 /// |
239 * | 248 /// [merchantId] - The ID of the managing account. |
240 * [merchantId] - The ID of the managing account. | 249 /// |
241 * | 250 /// [accountId] - The ID of the account. |
242 * [accountId] - The ID of the account. | 251 /// |
243 * | 252 /// Completes with a [Account]. |
244 * Completes with a [Account]. | 253 /// |
245 * | 254 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
246 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 255 /// an error. |
247 * error. | 256 /// |
248 * | 257 /// If the used [http.Client] completes with an error when making a REST |
249 * If the used [http.Client] completes with an error when making a REST call, | 258 /// call, this method will complete with the same error. |
250 * this method will complete with the same error. | |
251 */ | |
252 async.Future<Account> get(core.String merchantId, core.String accountId) { | 259 async.Future<Account> get(core.String merchantId, core.String accountId) { |
253 var _url = null; | 260 var _url = null; |
254 var _queryParams = new core.Map(); | 261 var _queryParams = new core.Map(); |
255 var _uploadMedia = null; | 262 var _uploadMedia = null; |
256 var _uploadOptions = null; | 263 var _uploadOptions = null; |
257 var _downloadOptions = commons.DownloadOptions.Metadata; | 264 var _downloadOptions = commons.DownloadOptions.Metadata; |
258 var _body = null; | 265 var _body = null; |
259 | 266 |
260 if (merchantId == null) { | 267 if (merchantId == null) { |
261 throw new core.ArgumentError("Parameter merchantId is required."); | 268 throw new core.ArgumentError("Parameter merchantId is required."); |
262 } | 269 } |
263 if (accountId == null) { | 270 if (accountId == null) { |
264 throw new core.ArgumentError("Parameter accountId is required."); | 271 throw new core.ArgumentError("Parameter accountId is required."); |
265 } | 272 } |
266 | 273 |
267 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons
.Escaper.ecapeVariable('$accountId'); | 274 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 275 '/accounts/' + |
| 276 commons.Escaper.ecapeVariable('$accountId'); |
268 | 277 |
269 var _response = _requester.request(_url, | 278 var _response = _requester.request(_url, "GET", |
270 "GET", | 279 body: _body, |
271 body: _body, | 280 queryParams: _queryParams, |
272 queryParams: _queryParams, | 281 uploadOptions: _uploadOptions, |
273 uploadOptions: _uploadOptions, | 282 uploadMedia: _uploadMedia, |
274 uploadMedia: _uploadMedia, | 283 downloadOptions: _downloadOptions); |
275 downloadOptions: _downloadOptions); | |
276 return _response.then((data) => new Account.fromJson(data)); | 284 return _response.then((data) => new Account.fromJson(data)); |
277 } | 285 } |
278 | 286 |
279 /** | 287 /// Creates a Merchant Center sub-account. This method can only be called for |
280 * Creates a Merchant Center sub-account. This method can only be called for | 288 /// multi-client accounts. |
281 * multi-client accounts. | 289 /// |
282 * | 290 /// [request] - The metadata request object. |
283 * [request] - The metadata request object. | 291 /// |
284 * | 292 /// Request parameters: |
285 * Request parameters: | 293 /// |
286 * | 294 /// [merchantId] - The ID of the managing account. |
287 * [merchantId] - The ID of the managing account. | 295 /// |
288 * | 296 /// [dryRun] - Flag to run the request in dry-run mode. |
289 * [dryRun] - Flag to run the request in dry-run mode. | 297 /// |
290 * | 298 /// Completes with a [Account]. |
291 * Completes with a [Account]. | 299 /// |
292 * | 300 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
293 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 301 /// an error. |
294 * error. | 302 /// |
295 * | 303 /// If the used [http.Client] completes with an error when making a REST |
296 * If the used [http.Client] completes with an error when making a REST call, | 304 /// call, this method will complete with the same error. |
297 * this method will complete with the same error. | 305 async.Future<Account> insert(Account request, core.String merchantId, |
298 */ | 306 {core.bool dryRun}) { |
299 async.Future<Account> insert(Account request, core.String merchantId, {core.bo
ol dryRun}) { | |
300 var _url = null; | 307 var _url = null; |
301 var _queryParams = new core.Map(); | 308 var _queryParams = new core.Map(); |
302 var _uploadMedia = null; | 309 var _uploadMedia = null; |
303 var _uploadOptions = null; | 310 var _uploadOptions = null; |
304 var _downloadOptions = commons.DownloadOptions.Metadata; | 311 var _downloadOptions = commons.DownloadOptions.Metadata; |
305 var _body = null; | 312 var _body = null; |
306 | 313 |
307 if (request != null) { | 314 if (request != null) { |
308 _body = convert.JSON.encode((request).toJson()); | 315 _body = convert.JSON.encode((request).toJson()); |
309 } | 316 } |
310 if (merchantId == null) { | 317 if (merchantId == null) { |
311 throw new core.ArgumentError("Parameter merchantId is required."); | 318 throw new core.ArgumentError("Parameter merchantId is required."); |
312 } | 319 } |
313 if (dryRun != null) { | 320 if (dryRun != null) { |
314 _queryParams["dryRun"] = ["${dryRun}"]; | 321 _queryParams["dryRun"] = ["${dryRun}"]; |
315 } | 322 } |
316 | 323 |
317 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts'; | 324 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts'; |
318 | 325 |
319 var _response = _requester.request(_url, | 326 var _response = _requester.request(_url, "POST", |
320 "POST", | 327 body: _body, |
321 body: _body, | 328 queryParams: _queryParams, |
322 queryParams: _queryParams, | 329 uploadOptions: _uploadOptions, |
323 uploadOptions: _uploadOptions, | 330 uploadMedia: _uploadMedia, |
324 uploadMedia: _uploadMedia, | 331 downloadOptions: _downloadOptions); |
325 downloadOptions: _downloadOptions); | |
326 return _response.then((data) => new Account.fromJson(data)); | 332 return _response.then((data) => new Account.fromJson(data)); |
327 } | 333 } |
328 | 334 |
329 /** | 335 /// Lists the sub-accounts in your Merchant Center account. This method can |
330 * Lists the sub-accounts in your Merchant Center account. This method can | 336 /// only be called for multi-client accounts. |
331 * only be called for multi-client accounts. | 337 /// |
332 * | 338 /// Request parameters: |
333 * Request parameters: | 339 /// |
334 * | 340 /// [merchantId] - The ID of the managing account. |
335 * [merchantId] - The ID of the managing account. | 341 /// |
336 * | 342 /// [maxResults] - The maximum number of accounts to return in the response, |
337 * [maxResults] - The maximum number of accounts to return in the response, | 343 /// used for paging. |
338 * used for paging. | 344 /// |
339 * | 345 /// [pageToken] - The token returned by the previous request. |
340 * [pageToken] - The token returned by the previous request. | 346 /// |
341 * | 347 /// Completes with a [AccountsListResponse]. |
342 * Completes with a [AccountsListResponse]. | 348 /// |
343 * | 349 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
344 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 350 /// an error. |
345 * error. | 351 /// |
346 * | 352 /// If the used [http.Client] completes with an error when making a REST |
347 * If the used [http.Client] completes with an error when making a REST call, | 353 /// call, this method will complete with the same error. |
348 * this method will complete with the same error. | 354 async.Future<AccountsListResponse> list(core.String merchantId, |
349 */ | 355 {core.int maxResults, core.String pageToken}) { |
350 async.Future<AccountsListResponse> list(core.String merchantId, {core.int maxR
esults, core.String pageToken}) { | |
351 var _url = null; | 356 var _url = null; |
352 var _queryParams = new core.Map(); | 357 var _queryParams = new core.Map(); |
353 var _uploadMedia = null; | 358 var _uploadMedia = null; |
354 var _uploadOptions = null; | 359 var _uploadOptions = null; |
355 var _downloadOptions = commons.DownloadOptions.Metadata; | 360 var _downloadOptions = commons.DownloadOptions.Metadata; |
356 var _body = null; | 361 var _body = null; |
357 | 362 |
358 if (merchantId == null) { | 363 if (merchantId == null) { |
359 throw new core.ArgumentError("Parameter merchantId is required."); | 364 throw new core.ArgumentError("Parameter merchantId is required."); |
360 } | 365 } |
361 if (maxResults != null) { | 366 if (maxResults != null) { |
362 _queryParams["maxResults"] = ["${maxResults}"]; | 367 _queryParams["maxResults"] = ["${maxResults}"]; |
363 } | 368 } |
364 if (pageToken != null) { | 369 if (pageToken != null) { |
365 _queryParams["pageToken"] = [pageToken]; | 370 _queryParams["pageToken"] = [pageToken]; |
366 } | 371 } |
367 | 372 |
368 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts'; | 373 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts'; |
369 | 374 |
370 var _response = _requester.request(_url, | 375 var _response = _requester.request(_url, "GET", |
371 "GET", | 376 body: _body, |
372 body: _body, | 377 queryParams: _queryParams, |
373 queryParams: _queryParams, | 378 uploadOptions: _uploadOptions, |
374 uploadOptions: _uploadOptions, | 379 uploadMedia: _uploadMedia, |
375 uploadMedia: _uploadMedia, | 380 downloadOptions: _downloadOptions); |
376 downloadOptions: _downloadOptions); | |
377 return _response.then((data) => new AccountsListResponse.fromJson(data)); | 381 return _response.then((data) => new AccountsListResponse.fromJson(data)); |
378 } | 382 } |
379 | 383 |
380 /** | 384 /// Updates a Merchant Center account. This method can only be called for |
381 * Updates a Merchant Center account. This method can only be called for | 385 /// accounts to which the managing account has access: either the managing |
382 * accounts to which the managing account has access: either the managing | 386 /// account itself for any Merchant Center account, or any sub-account when |
383 * account itself for any Merchant Center account, or any sub-account when the | 387 /// the managing account is a multi-client account. This method supports |
384 * managing account is a multi-client account. This method supports patch | 388 /// patch semantics. |
385 * semantics. | 389 /// |
386 * | 390 /// [request] - The metadata request object. |
387 * [request] - The metadata request object. | 391 /// |
388 * | 392 /// Request parameters: |
389 * Request parameters: | 393 /// |
390 * | 394 /// [merchantId] - The ID of the managing account. |
391 * [merchantId] - The ID of the managing account. | 395 /// |
392 * | 396 /// [accountId] - The ID of the account. |
393 * [accountId] - The ID of the account. | 397 /// |
394 * | 398 /// [dryRun] - Flag to run the request in dry-run mode. |
395 * [dryRun] - Flag to run the request in dry-run mode. | 399 /// |
396 * | 400 /// Completes with a [Account]. |
397 * Completes with a [Account]. | 401 /// |
398 * | 402 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
399 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 403 /// an error. |
400 * error. | 404 /// |
401 * | 405 /// If the used [http.Client] completes with an error when making a REST |
402 * If the used [http.Client] completes with an error when making a REST call, | 406 /// call, this method will complete with the same error. |
403 * this method will complete with the same error. | 407 async.Future<Account> patch( |
404 */ | 408 Account request, core.String merchantId, core.String accountId, |
405 async.Future<Account> patch(Account request, core.String merchantId, core.Stri
ng accountId, {core.bool dryRun}) { | 409 {core.bool dryRun}) { |
406 var _url = null; | 410 var _url = null; |
407 var _queryParams = new core.Map(); | 411 var _queryParams = new core.Map(); |
408 var _uploadMedia = null; | 412 var _uploadMedia = null; |
409 var _uploadOptions = null; | 413 var _uploadOptions = null; |
410 var _downloadOptions = commons.DownloadOptions.Metadata; | 414 var _downloadOptions = commons.DownloadOptions.Metadata; |
411 var _body = null; | 415 var _body = null; |
412 | 416 |
413 if (request != null) { | 417 if (request != null) { |
414 _body = convert.JSON.encode((request).toJson()); | 418 _body = convert.JSON.encode((request).toJson()); |
415 } | 419 } |
416 if (merchantId == null) { | 420 if (merchantId == null) { |
417 throw new core.ArgumentError("Parameter merchantId is required."); | 421 throw new core.ArgumentError("Parameter merchantId is required."); |
418 } | 422 } |
419 if (accountId == null) { | 423 if (accountId == null) { |
420 throw new core.ArgumentError("Parameter accountId is required."); | 424 throw new core.ArgumentError("Parameter accountId is required."); |
421 } | 425 } |
422 if (dryRun != null) { | 426 if (dryRun != null) { |
423 _queryParams["dryRun"] = ["${dryRun}"]; | 427 _queryParams["dryRun"] = ["${dryRun}"]; |
424 } | 428 } |
425 | 429 |
426 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons
.Escaper.ecapeVariable('$accountId'); | 430 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 431 '/accounts/' + |
| 432 commons.Escaper.ecapeVariable('$accountId'); |
427 | 433 |
428 var _response = _requester.request(_url, | 434 var _response = _requester.request(_url, "PATCH", |
429 "PATCH", | 435 body: _body, |
430 body: _body, | 436 queryParams: _queryParams, |
431 queryParams: _queryParams, | 437 uploadOptions: _uploadOptions, |
432 uploadOptions: _uploadOptions, | 438 uploadMedia: _uploadMedia, |
433 uploadMedia: _uploadMedia, | 439 downloadOptions: _downloadOptions); |
434 downloadOptions: _downloadOptions); | |
435 return _response.then((data) => new Account.fromJson(data)); | 440 return _response.then((data) => new Account.fromJson(data)); |
436 } | 441 } |
437 | 442 |
438 /** | 443 /// Updates a Merchant Center account. This method can only be called for |
439 * Updates a Merchant Center account. This method can only be called for | 444 /// accounts to which the managing account has access: either the managing |
440 * accounts to which the managing account has access: either the managing | 445 /// account itself for any Merchant Center account, or any sub-account when |
441 * account itself for any Merchant Center account, or any sub-account when the | 446 /// the managing account is a multi-client account. |
442 * managing account is a multi-client account. | 447 /// |
443 * | 448 /// [request] - The metadata request object. |
444 * [request] - The metadata request object. | 449 /// |
445 * | 450 /// Request parameters: |
446 * Request parameters: | 451 /// |
447 * | 452 /// [merchantId] - The ID of the managing account. |
448 * [merchantId] - The ID of the managing account. | 453 /// |
449 * | 454 /// [accountId] - The ID of the account. |
450 * [accountId] - The ID of the account. | 455 /// |
451 * | 456 /// [dryRun] - Flag to run the request in dry-run mode. |
452 * [dryRun] - Flag to run the request in dry-run mode. | 457 /// |
453 * | 458 /// Completes with a [Account]. |
454 * Completes with a [Account]. | 459 /// |
455 * | 460 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
456 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 461 /// an error. |
457 * error. | 462 /// |
458 * | 463 /// If the used [http.Client] completes with an error when making a REST |
459 * If the used [http.Client] completes with an error when making a REST call, | 464 /// call, this method will complete with the same error. |
460 * this method will complete with the same error. | 465 async.Future<Account> update( |
461 */ | 466 Account request, core.String merchantId, core.String accountId, |
462 async.Future<Account> update(Account request, core.String merchantId, core.Str
ing accountId, {core.bool dryRun}) { | 467 {core.bool dryRun}) { |
463 var _url = null; | 468 var _url = null; |
464 var _queryParams = new core.Map(); | 469 var _queryParams = new core.Map(); |
465 var _uploadMedia = null; | 470 var _uploadMedia = null; |
466 var _uploadOptions = null; | 471 var _uploadOptions = null; |
467 var _downloadOptions = commons.DownloadOptions.Metadata; | 472 var _downloadOptions = commons.DownloadOptions.Metadata; |
468 var _body = null; | 473 var _body = null; |
469 | 474 |
470 if (request != null) { | 475 if (request != null) { |
471 _body = convert.JSON.encode((request).toJson()); | 476 _body = convert.JSON.encode((request).toJson()); |
472 } | 477 } |
473 if (merchantId == null) { | 478 if (merchantId == null) { |
474 throw new core.ArgumentError("Parameter merchantId is required."); | 479 throw new core.ArgumentError("Parameter merchantId is required."); |
475 } | 480 } |
476 if (accountId == null) { | 481 if (accountId == null) { |
477 throw new core.ArgumentError("Parameter accountId is required."); | 482 throw new core.ArgumentError("Parameter accountId is required."); |
478 } | 483 } |
479 if (dryRun != null) { | 484 if (dryRun != null) { |
480 _queryParams["dryRun"] = ["${dryRun}"]; | 485 _queryParams["dryRun"] = ["${dryRun}"]; |
481 } | 486 } |
482 | 487 |
483 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons
.Escaper.ecapeVariable('$accountId'); | 488 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 489 '/accounts/' + |
| 490 commons.Escaper.ecapeVariable('$accountId'); |
484 | 491 |
485 var _response = _requester.request(_url, | 492 var _response = _requester.request(_url, "PUT", |
486 "PUT", | 493 body: _body, |
487 body: _body, | 494 queryParams: _queryParams, |
488 queryParams: _queryParams, | 495 uploadOptions: _uploadOptions, |
489 uploadOptions: _uploadOptions, | 496 uploadMedia: _uploadMedia, |
490 uploadMedia: _uploadMedia, | 497 downloadOptions: _downloadOptions); |
491 downloadOptions: _downloadOptions); | |
492 return _response.then((data) => new Account.fromJson(data)); | 498 return _response.then((data) => new Account.fromJson(data)); |
493 } | 499 } |
494 | |
495 } | 500 } |
496 | 501 |
497 | |
498 class AccountstatusesResourceApi { | 502 class AccountstatusesResourceApi { |
499 final commons.ApiRequester _requester; | 503 final commons.ApiRequester _requester; |
500 | 504 |
501 AccountstatusesResourceApi(commons.ApiRequester client) : | 505 AccountstatusesResourceApi(commons.ApiRequester client) : _requester = client; |
502 _requester = client; | |
503 | 506 |
504 /** | 507 /// [request] - The metadata request object. |
505 * [request] - The metadata request object. | 508 /// |
506 * | 509 /// Request parameters: |
507 * Request parameters: | 510 /// |
508 * | 511 /// Completes with a [AccountstatusesCustomBatchResponse]. |
509 * Completes with a [AccountstatusesCustomBatchResponse]. | 512 /// |
510 * | 513 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
511 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 514 /// an error. |
512 * error. | 515 /// |
513 * | 516 /// If the used [http.Client] completes with an error when making a REST |
514 * If the used [http.Client] completes with an error when making a REST call, | 517 /// call, this method will complete with the same error. |
515 * this method will complete with the same error. | 518 async.Future<AccountstatusesCustomBatchResponse> custombatch( |
516 */ | 519 AccountstatusesCustomBatchRequest request) { |
517 async.Future<AccountstatusesCustomBatchResponse> custombatch(AccountstatusesCu
stomBatchRequest request) { | |
518 var _url = null; | 520 var _url = null; |
519 var _queryParams = new core.Map(); | 521 var _queryParams = new core.Map(); |
520 var _uploadMedia = null; | 522 var _uploadMedia = null; |
521 var _uploadOptions = null; | 523 var _uploadOptions = null; |
522 var _downloadOptions = commons.DownloadOptions.Metadata; | 524 var _downloadOptions = commons.DownloadOptions.Metadata; |
523 var _body = null; | 525 var _body = null; |
524 | 526 |
525 if (request != null) { | 527 if (request != null) { |
526 _body = convert.JSON.encode((request).toJson()); | 528 _body = convert.JSON.encode((request).toJson()); |
527 } | 529 } |
528 | 530 |
529 _url = 'accountstatuses/batch'; | 531 _url = 'accountstatuses/batch'; |
530 | 532 |
531 var _response = _requester.request(_url, | 533 var _response = _requester.request(_url, "POST", |
532 "POST", | 534 body: _body, |
533 body: _body, | 535 queryParams: _queryParams, |
534 queryParams: _queryParams, | 536 uploadOptions: _uploadOptions, |
535 uploadOptions: _uploadOptions, | 537 uploadMedia: _uploadMedia, |
536 uploadMedia: _uploadMedia, | 538 downloadOptions: _downloadOptions); |
537 downloadOptions: _downloadOptions); | 539 return _response |
538 return _response.then((data) => new AccountstatusesCustomBatchResponse.fromJ
son(data)); | 540 .then((data) => new AccountstatusesCustomBatchResponse.fromJson(data)); |
539 } | 541 } |
540 | 542 |
541 /** | 543 /// Retrieves the status of a Merchant Center account. This method can only |
542 * Retrieves the status of a Merchant Center account. This method can only be | 544 /// be called for accounts to which the managing account has access: either |
543 * called for accounts to which the managing account has access: either the | 545 /// the managing account itself for any Merchant Center account, or any |
544 * managing account itself for any Merchant Center account, or any sub-account | 546 /// sub-account when the managing account is a multi-client account. |
545 * when the managing account is a multi-client account. | 547 /// |
546 * | 548 /// Request parameters: |
547 * Request parameters: | 549 /// |
548 * | 550 /// [merchantId] - The ID of the managing account. |
549 * [merchantId] - The ID of the managing account. | 551 /// |
550 * | 552 /// [accountId] - The ID of the account. |
551 * [accountId] - The ID of the account. | 553 /// |
552 * | 554 /// Completes with a [AccountStatus]. |
553 * Completes with a [AccountStatus]. | 555 /// |
554 * | 556 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
555 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 557 /// an error. |
556 * error. | 558 /// |
557 * | 559 /// If the used [http.Client] completes with an error when making a REST |
558 * If the used [http.Client] completes with an error when making a REST call, | 560 /// call, this method will complete with the same error. |
559 * this method will complete with the same error. | 561 async.Future<AccountStatus> get( |
560 */ | 562 core.String merchantId, core.String accountId) { |
561 async.Future<AccountStatus> get(core.String merchantId, core.String accountId)
{ | |
562 var _url = null; | 563 var _url = null; |
563 var _queryParams = new core.Map(); | 564 var _queryParams = new core.Map(); |
564 var _uploadMedia = null; | 565 var _uploadMedia = null; |
565 var _uploadOptions = null; | 566 var _uploadOptions = null; |
566 var _downloadOptions = commons.DownloadOptions.Metadata; | 567 var _downloadOptions = commons.DownloadOptions.Metadata; |
567 var _body = null; | 568 var _body = null; |
568 | 569 |
569 if (merchantId == null) { | 570 if (merchantId == null) { |
570 throw new core.ArgumentError("Parameter merchantId is required."); | 571 throw new core.ArgumentError("Parameter merchantId is required."); |
571 } | 572 } |
572 if (accountId == null) { | 573 if (accountId == null) { |
573 throw new core.ArgumentError("Parameter accountId is required."); | 574 throw new core.ArgumentError("Parameter accountId is required."); |
574 } | 575 } |
575 | 576 |
576 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accountstatuses/' +
commons.Escaper.ecapeVariable('$accountId'); | 577 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 578 '/accountstatuses/' + |
| 579 commons.Escaper.ecapeVariable('$accountId'); |
577 | 580 |
578 var _response = _requester.request(_url, | 581 var _response = _requester.request(_url, "GET", |
579 "GET", | 582 body: _body, |
580 body: _body, | 583 queryParams: _queryParams, |
581 queryParams: _queryParams, | 584 uploadOptions: _uploadOptions, |
582 uploadOptions: _uploadOptions, | 585 uploadMedia: _uploadMedia, |
583 uploadMedia: _uploadMedia, | 586 downloadOptions: _downloadOptions); |
584 downloadOptions: _downloadOptions); | |
585 return _response.then((data) => new AccountStatus.fromJson(data)); | 587 return _response.then((data) => new AccountStatus.fromJson(data)); |
586 } | 588 } |
587 | 589 |
588 /** | 590 /// Lists the statuses of the sub-accounts in your Merchant Center account. |
589 * Lists the statuses of the sub-accounts in your Merchant Center account. | 591 /// This method can only be called for multi-client accounts. |
590 * This method can only be called for multi-client accounts. | 592 /// |
591 * | 593 /// Request parameters: |
592 * Request parameters: | 594 /// |
593 * | 595 /// [merchantId] - The ID of the managing account. |
594 * [merchantId] - The ID of the managing account. | 596 /// |
595 * | 597 /// [maxResults] - The maximum number of account statuses to return in the |
596 * [maxResults] - The maximum number of account statuses to return in the | 598 /// response, used for paging. |
597 * response, used for paging. | 599 /// |
598 * | 600 /// [pageToken] - The token returned by the previous request. |
599 * [pageToken] - The token returned by the previous request. | 601 /// |
600 * | 602 /// Completes with a [AccountstatusesListResponse]. |
601 * Completes with a [AccountstatusesListResponse]. | 603 /// |
602 * | 604 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
603 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 605 /// an error. |
604 * error. | 606 /// |
605 * | 607 /// If the used [http.Client] completes with an error when making a REST |
606 * If the used [http.Client] completes with an error when making a REST call, | 608 /// call, this method will complete with the same error. |
607 * this method will complete with the same error. | 609 async.Future<AccountstatusesListResponse> list(core.String merchantId, |
608 */ | 610 {core.int maxResults, core.String pageToken}) { |
609 async.Future<AccountstatusesListResponse> list(core.String merchantId, {core.i
nt maxResults, core.String pageToken}) { | |
610 var _url = null; | 611 var _url = null; |
611 var _queryParams = new core.Map(); | 612 var _queryParams = new core.Map(); |
612 var _uploadMedia = null; | 613 var _uploadMedia = null; |
613 var _uploadOptions = null; | 614 var _uploadOptions = null; |
614 var _downloadOptions = commons.DownloadOptions.Metadata; | 615 var _downloadOptions = commons.DownloadOptions.Metadata; |
615 var _body = null; | 616 var _body = null; |
616 | 617 |
617 if (merchantId == null) { | 618 if (merchantId == null) { |
618 throw new core.ArgumentError("Parameter merchantId is required."); | 619 throw new core.ArgumentError("Parameter merchantId is required."); |
619 } | 620 } |
620 if (maxResults != null) { | 621 if (maxResults != null) { |
621 _queryParams["maxResults"] = ["${maxResults}"]; | 622 _queryParams["maxResults"] = ["${maxResults}"]; |
622 } | 623 } |
623 if (pageToken != null) { | 624 if (pageToken != null) { |
624 _queryParams["pageToken"] = [pageToken]; | 625 _queryParams["pageToken"] = [pageToken]; |
625 } | 626 } |
626 | 627 |
627 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accountstatuses'; | 628 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accountstatuses'; |
628 | 629 |
629 var _response = _requester.request(_url, | 630 var _response = _requester.request(_url, "GET", |
630 "GET", | 631 body: _body, |
631 body: _body, | 632 queryParams: _queryParams, |
632 queryParams: _queryParams, | 633 uploadOptions: _uploadOptions, |
633 uploadOptions: _uploadOptions, | 634 uploadMedia: _uploadMedia, |
634 uploadMedia: _uploadMedia, | 635 downloadOptions: _downloadOptions); |
635 downloadOptions: _downloadOptions); | 636 return _response |
636 return _response.then((data) => new AccountstatusesListResponse.fromJson(dat
a)); | 637 .then((data) => new AccountstatusesListResponse.fromJson(data)); |
637 } | 638 } |
638 | |
639 } | 639 } |
640 | 640 |
641 | |
642 class AccounttaxResourceApi { | 641 class AccounttaxResourceApi { |
643 final commons.ApiRequester _requester; | 642 final commons.ApiRequester _requester; |
644 | 643 |
645 AccounttaxResourceApi(commons.ApiRequester client) : | 644 AccounttaxResourceApi(commons.ApiRequester client) : _requester = client; |
646 _requester = client; | |
647 | 645 |
648 /** | 646 /// Retrieves and updates tax settings of multiple accounts in a single |
649 * Retrieves and updates tax settings of multiple accounts in a single | 647 /// request. |
650 * request. | 648 /// |
651 * | 649 /// [request] - The metadata request object. |
652 * [request] - The metadata request object. | 650 /// |
653 * | 651 /// Request parameters: |
654 * Request parameters: | 652 /// |
655 * | 653 /// [dryRun] - Flag to run the request in dry-run mode. |
656 * [dryRun] - Flag to run the request in dry-run mode. | 654 /// |
657 * | 655 /// Completes with a [AccounttaxCustomBatchResponse]. |
658 * Completes with a [AccounttaxCustomBatchResponse]. | 656 /// |
659 * | 657 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
660 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 658 /// an error. |
661 * error. | 659 /// |
662 * | 660 /// If the used [http.Client] completes with an error when making a REST |
663 * If the used [http.Client] completes with an error when making a REST call, | 661 /// call, this method will complete with the same error. |
664 * this method will complete with the same error. | 662 async.Future<AccounttaxCustomBatchResponse> custombatch( |
665 */ | 663 AccounttaxCustomBatchRequest request, |
666 async.Future<AccounttaxCustomBatchResponse> custombatch(AccounttaxCustomBatchR
equest request, {core.bool dryRun}) { | 664 {core.bool dryRun}) { |
667 var _url = null; | 665 var _url = null; |
668 var _queryParams = new core.Map(); | 666 var _queryParams = new core.Map(); |
669 var _uploadMedia = null; | 667 var _uploadMedia = null; |
670 var _uploadOptions = null; | 668 var _uploadOptions = null; |
671 var _downloadOptions = commons.DownloadOptions.Metadata; | 669 var _downloadOptions = commons.DownloadOptions.Metadata; |
672 var _body = null; | 670 var _body = null; |
673 | 671 |
674 if (request != null) { | 672 if (request != null) { |
675 _body = convert.JSON.encode((request).toJson()); | 673 _body = convert.JSON.encode((request).toJson()); |
676 } | 674 } |
677 if (dryRun != null) { | 675 if (dryRun != null) { |
678 _queryParams["dryRun"] = ["${dryRun}"]; | 676 _queryParams["dryRun"] = ["${dryRun}"]; |
679 } | 677 } |
680 | 678 |
681 _url = 'accounttax/batch'; | 679 _url = 'accounttax/batch'; |
682 | 680 |
683 var _response = _requester.request(_url, | 681 var _response = _requester.request(_url, "POST", |
684 "POST", | 682 body: _body, |
685 body: _body, | 683 queryParams: _queryParams, |
686 queryParams: _queryParams, | 684 uploadOptions: _uploadOptions, |
687 uploadOptions: _uploadOptions, | 685 uploadMedia: _uploadMedia, |
688 uploadMedia: _uploadMedia, | 686 downloadOptions: _downloadOptions); |
689 downloadOptions: _downloadOptions); | 687 return _response |
690 return _response.then((data) => new AccounttaxCustomBatchResponse.fromJson(d
ata)); | 688 .then((data) => new AccounttaxCustomBatchResponse.fromJson(data)); |
691 } | 689 } |
692 | 690 |
693 /** | 691 /// Retrieves the tax settings of the account. This method can only be called |
694 * Retrieves the tax settings of the account. This method can only be called | 692 /// for accounts to which the managing account has access: either the |
695 * for accounts to which the managing account has access: either the managing | 693 /// managing account itself for any Merchant Center account, or any |
696 * account itself for any Merchant Center account, or any sub-account when the | 694 /// sub-account when the managing account is a multi-client account. |
697 * managing account is a multi-client account. | 695 /// |
698 * | 696 /// Request parameters: |
699 * Request parameters: | 697 /// |
700 * | 698 /// [merchantId] - The ID of the managing account. |
701 * [merchantId] - The ID of the managing account. | 699 /// |
702 * | 700 /// [accountId] - The ID of the account for which to get/update account tax |
703 * [accountId] - The ID of the account for which to get/update account tax | 701 /// settings. |
704 * settings. | 702 /// |
705 * | 703 /// Completes with a [AccountTax]. |
706 * Completes with a [AccountTax]. | 704 /// |
707 * | 705 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
708 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 706 /// an error. |
709 * error. | 707 /// |
710 * | 708 /// If the used [http.Client] completes with an error when making a REST |
711 * If the used [http.Client] completes with an error when making a REST call, | 709 /// call, this method will complete with the same error. |
712 * this method will complete with the same error. | |
713 */ | |
714 async.Future<AccountTax> get(core.String merchantId, core.String accountId) { | 710 async.Future<AccountTax> get(core.String merchantId, core.String accountId) { |
715 var _url = null; | 711 var _url = null; |
716 var _queryParams = new core.Map(); | 712 var _queryParams = new core.Map(); |
717 var _uploadMedia = null; | 713 var _uploadMedia = null; |
718 var _uploadOptions = null; | 714 var _uploadOptions = null; |
719 var _downloadOptions = commons.DownloadOptions.Metadata; | 715 var _downloadOptions = commons.DownloadOptions.Metadata; |
720 var _body = null; | 716 var _body = null; |
721 | 717 |
722 if (merchantId == null) { | 718 if (merchantId == null) { |
723 throw new core.ArgumentError("Parameter merchantId is required."); | 719 throw new core.ArgumentError("Parameter merchantId is required."); |
724 } | 720 } |
725 if (accountId == null) { | 721 if (accountId == null) { |
726 throw new core.ArgumentError("Parameter accountId is required."); | 722 throw new core.ArgumentError("Parameter accountId is required."); |
727 } | 723 } |
728 | 724 |
729 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounttax/' + commo
ns.Escaper.ecapeVariable('$accountId'); | 725 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 726 '/accounttax/' + |
| 727 commons.Escaper.ecapeVariable('$accountId'); |
730 | 728 |
731 var _response = _requester.request(_url, | 729 var _response = _requester.request(_url, "GET", |
732 "GET", | 730 body: _body, |
733 body: _body, | 731 queryParams: _queryParams, |
734 queryParams: _queryParams, | 732 uploadOptions: _uploadOptions, |
735 uploadOptions: _uploadOptions, | 733 uploadMedia: _uploadMedia, |
736 uploadMedia: _uploadMedia, | 734 downloadOptions: _downloadOptions); |
737 downloadOptions: _downloadOptions); | |
738 return _response.then((data) => new AccountTax.fromJson(data)); | 735 return _response.then((data) => new AccountTax.fromJson(data)); |
739 } | 736 } |
740 | 737 |
741 /** | 738 /// Lists the tax settings of the sub-accounts in your Merchant Center |
742 * Lists the tax settings of the sub-accounts in your Merchant Center account. | 739 /// account. This method can only be called for multi-client accounts. |
743 * This method can only be called for multi-client accounts. | 740 /// |
744 * | 741 /// Request parameters: |
745 * Request parameters: | 742 /// |
746 * | 743 /// [merchantId] - The ID of the managing account. |
747 * [merchantId] - The ID of the managing account. | 744 /// |
748 * | 745 /// [maxResults] - The maximum number of tax settings to return in the |
749 * [maxResults] - The maximum number of tax settings to return in the | 746 /// response, used for paging. |
750 * response, used for paging. | 747 /// |
751 * | 748 /// [pageToken] - The token returned by the previous request. |
752 * [pageToken] - The token returned by the previous request. | 749 /// |
753 * | 750 /// Completes with a [AccounttaxListResponse]. |
754 * Completes with a [AccounttaxListResponse]. | 751 /// |
755 * | 752 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
756 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 753 /// an error. |
757 * error. | 754 /// |
758 * | 755 /// If the used [http.Client] completes with an error when making a REST |
759 * If the used [http.Client] completes with an error when making a REST call, | 756 /// call, this method will complete with the same error. |
760 * this method will complete with the same error. | 757 async.Future<AccounttaxListResponse> list(core.String merchantId, |
761 */ | 758 {core.int maxResults, core.String pageToken}) { |
762 async.Future<AccounttaxListResponse> list(core.String merchantId, {core.int ma
xResults, core.String pageToken}) { | |
763 var _url = null; | 759 var _url = null; |
764 var _queryParams = new core.Map(); | 760 var _queryParams = new core.Map(); |
765 var _uploadMedia = null; | 761 var _uploadMedia = null; |
766 var _uploadOptions = null; | 762 var _uploadOptions = null; |
767 var _downloadOptions = commons.DownloadOptions.Metadata; | 763 var _downloadOptions = commons.DownloadOptions.Metadata; |
768 var _body = null; | 764 var _body = null; |
769 | 765 |
770 if (merchantId == null) { | 766 if (merchantId == null) { |
771 throw new core.ArgumentError("Parameter merchantId is required."); | 767 throw new core.ArgumentError("Parameter merchantId is required."); |
772 } | 768 } |
773 if (maxResults != null) { | 769 if (maxResults != null) { |
774 _queryParams["maxResults"] = ["${maxResults}"]; | 770 _queryParams["maxResults"] = ["${maxResults}"]; |
775 } | 771 } |
776 if (pageToken != null) { | 772 if (pageToken != null) { |
777 _queryParams["pageToken"] = [pageToken]; | 773 _queryParams["pageToken"] = [pageToken]; |
778 } | 774 } |
779 | 775 |
780 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounttax'; | 776 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounttax'; |
781 | 777 |
782 var _response = _requester.request(_url, | 778 var _response = _requester.request(_url, "GET", |
783 "GET", | 779 body: _body, |
784 body: _body, | 780 queryParams: _queryParams, |
785 queryParams: _queryParams, | 781 uploadOptions: _uploadOptions, |
786 uploadOptions: _uploadOptions, | 782 uploadMedia: _uploadMedia, |
787 uploadMedia: _uploadMedia, | 783 downloadOptions: _downloadOptions); |
788 downloadOptions: _downloadOptions); | |
789 return _response.then((data) => new AccounttaxListResponse.fromJson(data)); | 784 return _response.then((data) => new AccounttaxListResponse.fromJson(data)); |
790 } | 785 } |
791 | 786 |
792 /** | 787 /// Updates the tax settings of the account. This method can only be called |
793 * Updates the tax settings of the account. This method can only be called for | 788 /// for accounts to which the managing account has access: either the |
794 * accounts to which the managing account has access: either the managing | 789 /// managing account itself for any Merchant Center account, or any |
795 * account itself for any Merchant Center account, or any sub-account when the | 790 /// sub-account when the managing account is a multi-client account. This |
796 * managing account is a multi-client account. This method supports patch | 791 /// method supports patch semantics. |
797 * semantics. | 792 /// |
798 * | 793 /// [request] - The metadata request object. |
799 * [request] - The metadata request object. | 794 /// |
800 * | 795 /// Request parameters: |
801 * Request parameters: | 796 /// |
802 * | 797 /// [merchantId] - The ID of the managing account. |
803 * [merchantId] - The ID of the managing account. | 798 /// |
804 * | 799 /// [accountId] - The ID of the account for which to get/update account tax |
805 * [accountId] - The ID of the account for which to get/update account tax | 800 /// settings. |
806 * settings. | 801 /// |
807 * | 802 /// [dryRun] - Flag to run the request in dry-run mode. |
808 * [dryRun] - Flag to run the request in dry-run mode. | 803 /// |
809 * | 804 /// Completes with a [AccountTax]. |
810 * Completes with a [AccountTax]. | 805 /// |
811 * | 806 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
812 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 807 /// an error. |
813 * error. | 808 /// |
814 * | 809 /// If the used [http.Client] completes with an error when making a REST |
815 * If the used [http.Client] completes with an error when making a REST call, | 810 /// call, this method will complete with the same error. |
816 * this method will complete with the same error. | 811 async.Future<AccountTax> patch( |
817 */ | 812 AccountTax request, core.String merchantId, core.String accountId, |
818 async.Future<AccountTax> patch(AccountTax request, core.String merchantId, cor
e.String accountId, {core.bool dryRun}) { | 813 {core.bool dryRun}) { |
819 var _url = null; | 814 var _url = null; |
820 var _queryParams = new core.Map(); | 815 var _queryParams = new core.Map(); |
821 var _uploadMedia = null; | 816 var _uploadMedia = null; |
822 var _uploadOptions = null; | 817 var _uploadOptions = null; |
823 var _downloadOptions = commons.DownloadOptions.Metadata; | 818 var _downloadOptions = commons.DownloadOptions.Metadata; |
824 var _body = null; | 819 var _body = null; |
825 | 820 |
826 if (request != null) { | 821 if (request != null) { |
827 _body = convert.JSON.encode((request).toJson()); | 822 _body = convert.JSON.encode((request).toJson()); |
828 } | 823 } |
829 if (merchantId == null) { | 824 if (merchantId == null) { |
830 throw new core.ArgumentError("Parameter merchantId is required."); | 825 throw new core.ArgumentError("Parameter merchantId is required."); |
831 } | 826 } |
832 if (accountId == null) { | 827 if (accountId == null) { |
833 throw new core.ArgumentError("Parameter accountId is required."); | 828 throw new core.ArgumentError("Parameter accountId is required."); |
834 } | 829 } |
835 if (dryRun != null) { | 830 if (dryRun != null) { |
836 _queryParams["dryRun"] = ["${dryRun}"]; | 831 _queryParams["dryRun"] = ["${dryRun}"]; |
837 } | 832 } |
838 | 833 |
839 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounttax/' + commo
ns.Escaper.ecapeVariable('$accountId'); | 834 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 835 '/accounttax/' + |
| 836 commons.Escaper.ecapeVariable('$accountId'); |
840 | 837 |
841 var _response = _requester.request(_url, | 838 var _response = _requester.request(_url, "PATCH", |
842 "PATCH", | 839 body: _body, |
843 body: _body, | 840 queryParams: _queryParams, |
844 queryParams: _queryParams, | 841 uploadOptions: _uploadOptions, |
845 uploadOptions: _uploadOptions, | 842 uploadMedia: _uploadMedia, |
846 uploadMedia: _uploadMedia, | 843 downloadOptions: _downloadOptions); |
847 downloadOptions: _downloadOptions); | |
848 return _response.then((data) => new AccountTax.fromJson(data)); | 844 return _response.then((data) => new AccountTax.fromJson(data)); |
849 } | 845 } |
850 | 846 |
851 /** | 847 /// Updates the tax settings of the account. This method can only be called |
852 * Updates the tax settings of the account. This method can only be called for | 848 /// for accounts to which the managing account has access: either the |
853 * accounts to which the managing account has access: either the managing | 849 /// managing account itself for any Merchant Center account, or any |
854 * account itself for any Merchant Center account, or any sub-account when the | 850 /// sub-account when the managing account is a multi-client account. |
855 * managing account is a multi-client account. | 851 /// |
856 * | 852 /// [request] - The metadata request object. |
857 * [request] - The metadata request object. | 853 /// |
858 * | 854 /// Request parameters: |
859 * Request parameters: | 855 /// |
860 * | 856 /// [merchantId] - The ID of the managing account. |
861 * [merchantId] - The ID of the managing account. | 857 /// |
862 * | 858 /// [accountId] - The ID of the account for which to get/update account tax |
863 * [accountId] - The ID of the account for which to get/update account tax | 859 /// settings. |
864 * settings. | 860 /// |
865 * | 861 /// [dryRun] - Flag to run the request in dry-run mode. |
866 * [dryRun] - Flag to run the request in dry-run mode. | 862 /// |
867 * | 863 /// Completes with a [AccountTax]. |
868 * Completes with a [AccountTax]. | 864 /// |
869 * | 865 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
870 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 866 /// an error. |
871 * error. | 867 /// |
872 * | 868 /// If the used [http.Client] completes with an error when making a REST |
873 * If the used [http.Client] completes with an error when making a REST call, | 869 /// call, this method will complete with the same error. |
874 * this method will complete with the same error. | 870 async.Future<AccountTax> update( |
875 */ | 871 AccountTax request, core.String merchantId, core.String accountId, |
876 async.Future<AccountTax> update(AccountTax request, core.String merchantId, co
re.String accountId, {core.bool dryRun}) { | 872 {core.bool dryRun}) { |
877 var _url = null; | 873 var _url = null; |
878 var _queryParams = new core.Map(); | 874 var _queryParams = new core.Map(); |
879 var _uploadMedia = null; | 875 var _uploadMedia = null; |
880 var _uploadOptions = null; | 876 var _uploadOptions = null; |
881 var _downloadOptions = commons.DownloadOptions.Metadata; | 877 var _downloadOptions = commons.DownloadOptions.Metadata; |
882 var _body = null; | 878 var _body = null; |
883 | 879 |
884 if (request != null) { | 880 if (request != null) { |
885 _body = convert.JSON.encode((request).toJson()); | 881 _body = convert.JSON.encode((request).toJson()); |
886 } | 882 } |
887 if (merchantId == null) { | 883 if (merchantId == null) { |
888 throw new core.ArgumentError("Parameter merchantId is required."); | 884 throw new core.ArgumentError("Parameter merchantId is required."); |
889 } | 885 } |
890 if (accountId == null) { | 886 if (accountId == null) { |
891 throw new core.ArgumentError("Parameter accountId is required."); | 887 throw new core.ArgumentError("Parameter accountId is required."); |
892 } | 888 } |
893 if (dryRun != null) { | 889 if (dryRun != null) { |
894 _queryParams["dryRun"] = ["${dryRun}"]; | 890 _queryParams["dryRun"] = ["${dryRun}"]; |
895 } | 891 } |
896 | 892 |
897 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounttax/' + commo
ns.Escaper.ecapeVariable('$accountId'); | 893 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 894 '/accounttax/' + |
| 895 commons.Escaper.ecapeVariable('$accountId'); |
898 | 896 |
899 var _response = _requester.request(_url, | 897 var _response = _requester.request(_url, "PUT", |
900 "PUT", | 898 body: _body, |
901 body: _body, | 899 queryParams: _queryParams, |
902 queryParams: _queryParams, | 900 uploadOptions: _uploadOptions, |
903 uploadOptions: _uploadOptions, | 901 uploadMedia: _uploadMedia, |
904 uploadMedia: _uploadMedia, | 902 downloadOptions: _downloadOptions); |
905 downloadOptions: _downloadOptions); | |
906 return _response.then((data) => new AccountTax.fromJson(data)); | 903 return _response.then((data) => new AccountTax.fromJson(data)); |
907 } | 904 } |
908 | |
909 } | 905 } |
910 | 906 |
911 | |
912 class DatafeedsResourceApi { | 907 class DatafeedsResourceApi { |
913 final commons.ApiRequester _requester; | 908 final commons.ApiRequester _requester; |
914 | 909 |
915 DatafeedsResourceApi(commons.ApiRequester client) : | 910 DatafeedsResourceApi(commons.ApiRequester client) : _requester = client; |
916 _requester = client; | |
917 | 911 |
918 /** | 912 /// [request] - The metadata request object. |
919 * [request] - The metadata request object. | 913 /// |
920 * | 914 /// Request parameters: |
921 * Request parameters: | 915 /// |
922 * | 916 /// [dryRun] - Flag to run the request in dry-run mode. |
923 * [dryRun] - Flag to run the request in dry-run mode. | 917 /// |
924 * | 918 /// Completes with a [DatafeedsCustomBatchResponse]. |
925 * Completes with a [DatafeedsCustomBatchResponse]. | 919 /// |
926 * | 920 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
927 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 921 /// an error. |
928 * error. | 922 /// |
929 * | 923 /// If the used [http.Client] completes with an error when making a REST |
930 * If the used [http.Client] completes with an error when making a REST call, | 924 /// call, this method will complete with the same error. |
931 * this method will complete with the same error. | 925 async.Future<DatafeedsCustomBatchResponse> custombatch( |
932 */ | 926 DatafeedsCustomBatchRequest request, |
933 async.Future<DatafeedsCustomBatchResponse> custombatch(DatafeedsCustomBatchReq
uest request, {core.bool dryRun}) { | 927 {core.bool dryRun}) { |
934 var _url = null; | 928 var _url = null; |
935 var _queryParams = new core.Map(); | 929 var _queryParams = new core.Map(); |
936 var _uploadMedia = null; | 930 var _uploadMedia = null; |
937 var _uploadOptions = null; | 931 var _uploadOptions = null; |
938 var _downloadOptions = commons.DownloadOptions.Metadata; | 932 var _downloadOptions = commons.DownloadOptions.Metadata; |
939 var _body = null; | 933 var _body = null; |
940 | 934 |
941 if (request != null) { | 935 if (request != null) { |
942 _body = convert.JSON.encode((request).toJson()); | 936 _body = convert.JSON.encode((request).toJson()); |
943 } | 937 } |
944 if (dryRun != null) { | 938 if (dryRun != null) { |
945 _queryParams["dryRun"] = ["${dryRun}"]; | 939 _queryParams["dryRun"] = ["${dryRun}"]; |
946 } | 940 } |
947 | 941 |
948 _url = 'datafeeds/batch'; | 942 _url = 'datafeeds/batch'; |
949 | 943 |
950 var _response = _requester.request(_url, | 944 var _response = _requester.request(_url, "POST", |
951 "POST", | 945 body: _body, |
952 body: _body, | 946 queryParams: _queryParams, |
953 queryParams: _queryParams, | 947 uploadOptions: _uploadOptions, |
954 uploadOptions: _uploadOptions, | 948 uploadMedia: _uploadMedia, |
955 uploadMedia: _uploadMedia, | 949 downloadOptions: _downloadOptions); |
956 downloadOptions: _downloadOptions); | 950 return _response |
957 return _response.then((data) => new DatafeedsCustomBatchResponse.fromJson(da
ta)); | 951 .then((data) => new DatafeedsCustomBatchResponse.fromJson(data)); |
958 } | 952 } |
959 | 953 |
960 /** | 954 /// Deletes a datafeed configuration from your Merchant Center account. This |
961 * Deletes a datafeed configuration from your Merchant Center account. This | 955 /// method can only be called for non-multi-client accounts. |
962 * method can only be called for non-multi-client accounts. | 956 /// |
963 * | 957 /// Request parameters: |
964 * Request parameters: | 958 /// |
965 * | 959 /// [merchantId] - null |
966 * [merchantId] - null | 960 /// |
967 * | 961 /// [datafeedId] - null |
968 * [datafeedId] - null | 962 /// |
969 * | 963 /// [dryRun] - Flag to run the request in dry-run mode. |
970 * [dryRun] - Flag to run the request in dry-run mode. | 964 /// |
971 * | 965 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
972 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 966 /// an error. |
973 * error. | 967 /// |
974 * | 968 /// If the used [http.Client] completes with an error when making a REST |
975 * If the used [http.Client] completes with an error when making a REST call, | 969 /// call, this method will complete with the same error. |
976 * this method will complete with the same error. | 970 async.Future delete(core.String merchantId, core.String datafeedId, |
977 */ | 971 {core.bool dryRun}) { |
978 async.Future delete(core.String merchantId, core.String datafeedId, {core.bool
dryRun}) { | |
979 var _url = null; | 972 var _url = null; |
980 var _queryParams = new core.Map(); | 973 var _queryParams = new core.Map(); |
981 var _uploadMedia = null; | 974 var _uploadMedia = null; |
982 var _uploadOptions = null; | 975 var _uploadOptions = null; |
983 var _downloadOptions = commons.DownloadOptions.Metadata; | 976 var _downloadOptions = commons.DownloadOptions.Metadata; |
984 var _body = null; | 977 var _body = null; |
985 | 978 |
986 if (merchantId == null) { | 979 if (merchantId == null) { |
987 throw new core.ArgumentError("Parameter merchantId is required."); | 980 throw new core.ArgumentError("Parameter merchantId is required."); |
988 } | 981 } |
989 if (datafeedId == null) { | 982 if (datafeedId == null) { |
990 throw new core.ArgumentError("Parameter datafeedId is required."); | 983 throw new core.ArgumentError("Parameter datafeedId is required."); |
991 } | 984 } |
992 if (dryRun != null) { | 985 if (dryRun != null) { |
993 _queryParams["dryRun"] = ["${dryRun}"]; | 986 _queryParams["dryRun"] = ["${dryRun}"]; |
994 } | 987 } |
995 | 988 |
996 _downloadOptions = null; | 989 _downloadOptions = null; |
997 | 990 |
998 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + common
s.Escaper.ecapeVariable('$datafeedId'); | 991 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 992 '/datafeeds/' + |
| 993 commons.Escaper.ecapeVariable('$datafeedId'); |
999 | 994 |
1000 var _response = _requester.request(_url, | 995 var _response = _requester.request(_url, "DELETE", |
1001 "DELETE", | 996 body: _body, |
1002 body: _body, | 997 queryParams: _queryParams, |
1003 queryParams: _queryParams, | 998 uploadOptions: _uploadOptions, |
1004 uploadOptions: _uploadOptions, | 999 uploadMedia: _uploadMedia, |
1005 uploadMedia: _uploadMedia, | 1000 downloadOptions: _downloadOptions); |
1006 downloadOptions: _downloadOptions); | |
1007 return _response.then((data) => null); | 1001 return _response.then((data) => null); |
1008 } | 1002 } |
1009 | 1003 |
1010 /** | 1004 /// Retrieves a datafeed configuration from your Merchant Center account. |
1011 * Retrieves a datafeed configuration from your Merchant Center account. This | 1005 /// This method can only be called for non-multi-client accounts. |
1012 * method can only be called for non-multi-client accounts. | 1006 /// |
1013 * | 1007 /// Request parameters: |
1014 * Request parameters: | 1008 /// |
1015 * | 1009 /// [merchantId] - null |
1016 * [merchantId] - null | 1010 /// |
1017 * | 1011 /// [datafeedId] - null |
1018 * [datafeedId] - null | 1012 /// |
1019 * | 1013 /// Completes with a [Datafeed]. |
1020 * Completes with a [Datafeed]. | 1014 /// |
1021 * | 1015 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1022 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1016 /// an error. |
1023 * error. | 1017 /// |
1024 * | 1018 /// If the used [http.Client] completes with an error when making a REST |
1025 * If the used [http.Client] completes with an error when making a REST call, | 1019 /// call, this method will complete with the same error. |
1026 * this method will complete with the same error. | |
1027 */ | |
1028 async.Future<Datafeed> get(core.String merchantId, core.String datafeedId) { | 1020 async.Future<Datafeed> get(core.String merchantId, core.String datafeedId) { |
1029 var _url = null; | 1021 var _url = null; |
1030 var _queryParams = new core.Map(); | 1022 var _queryParams = new core.Map(); |
1031 var _uploadMedia = null; | 1023 var _uploadMedia = null; |
1032 var _uploadOptions = null; | 1024 var _uploadOptions = null; |
1033 var _downloadOptions = commons.DownloadOptions.Metadata; | 1025 var _downloadOptions = commons.DownloadOptions.Metadata; |
1034 var _body = null; | 1026 var _body = null; |
1035 | 1027 |
1036 if (merchantId == null) { | 1028 if (merchantId == null) { |
1037 throw new core.ArgumentError("Parameter merchantId is required."); | 1029 throw new core.ArgumentError("Parameter merchantId is required."); |
1038 } | 1030 } |
1039 if (datafeedId == null) { | 1031 if (datafeedId == null) { |
1040 throw new core.ArgumentError("Parameter datafeedId is required."); | 1032 throw new core.ArgumentError("Parameter datafeedId is required."); |
1041 } | 1033 } |
1042 | 1034 |
1043 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + common
s.Escaper.ecapeVariable('$datafeedId'); | 1035 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 1036 '/datafeeds/' + |
| 1037 commons.Escaper.ecapeVariable('$datafeedId'); |
1044 | 1038 |
1045 var _response = _requester.request(_url, | 1039 var _response = _requester.request(_url, "GET", |
1046 "GET", | 1040 body: _body, |
1047 body: _body, | 1041 queryParams: _queryParams, |
1048 queryParams: _queryParams, | 1042 uploadOptions: _uploadOptions, |
1049 uploadOptions: _uploadOptions, | 1043 uploadMedia: _uploadMedia, |
1050 uploadMedia: _uploadMedia, | 1044 downloadOptions: _downloadOptions); |
1051 downloadOptions: _downloadOptions); | |
1052 return _response.then((data) => new Datafeed.fromJson(data)); | 1045 return _response.then((data) => new Datafeed.fromJson(data)); |
1053 } | 1046 } |
1054 | 1047 |
1055 /** | 1048 /// Registers a datafeed configuration with your Merchant Center account. |
1056 * Registers a datafeed configuration with your Merchant Center account. This | 1049 /// This method can only be called for non-multi-client accounts. |
1057 * method can only be called for non-multi-client accounts. | 1050 /// |
1058 * | 1051 /// [request] - The metadata request object. |
1059 * [request] - The metadata request object. | 1052 /// |
1060 * | 1053 /// Request parameters: |
1061 * Request parameters: | 1054 /// |
1062 * | 1055 /// [merchantId] - null |
1063 * [merchantId] - null | 1056 /// |
1064 * | 1057 /// [dryRun] - Flag to run the request in dry-run mode. |
1065 * [dryRun] - Flag to run the request in dry-run mode. | 1058 /// |
1066 * | 1059 /// Completes with a [Datafeed]. |
1067 * Completes with a [Datafeed]. | 1060 /// |
1068 * | 1061 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1069 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1062 /// an error. |
1070 * error. | 1063 /// |
1071 * | 1064 /// If the used [http.Client] completes with an error when making a REST |
1072 * If the used [http.Client] completes with an error when making a REST call, | 1065 /// call, this method will complete with the same error. |
1073 * this method will complete with the same error. | 1066 async.Future<Datafeed> insert(Datafeed request, core.String merchantId, |
1074 */ | 1067 {core.bool dryRun}) { |
1075 async.Future<Datafeed> insert(Datafeed request, core.String merchantId, {core.
bool dryRun}) { | |
1076 var _url = null; | 1068 var _url = null; |
1077 var _queryParams = new core.Map(); | 1069 var _queryParams = new core.Map(); |
1078 var _uploadMedia = null; | 1070 var _uploadMedia = null; |
1079 var _uploadOptions = null; | 1071 var _uploadOptions = null; |
1080 var _downloadOptions = commons.DownloadOptions.Metadata; | 1072 var _downloadOptions = commons.DownloadOptions.Metadata; |
1081 var _body = null; | 1073 var _body = null; |
1082 | 1074 |
1083 if (request != null) { | 1075 if (request != null) { |
1084 _body = convert.JSON.encode((request).toJson()); | 1076 _body = convert.JSON.encode((request).toJson()); |
1085 } | 1077 } |
1086 if (merchantId == null) { | 1078 if (merchantId == null) { |
1087 throw new core.ArgumentError("Parameter merchantId is required."); | 1079 throw new core.ArgumentError("Parameter merchantId is required."); |
1088 } | 1080 } |
1089 if (dryRun != null) { | 1081 if (dryRun != null) { |
1090 _queryParams["dryRun"] = ["${dryRun}"]; | 1082 _queryParams["dryRun"] = ["${dryRun}"]; |
1091 } | 1083 } |
1092 | 1084 |
1093 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds'; | 1085 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds'; |
1094 | 1086 |
1095 var _response = _requester.request(_url, | 1087 var _response = _requester.request(_url, "POST", |
1096 "POST", | 1088 body: _body, |
1097 body: _body, | 1089 queryParams: _queryParams, |
1098 queryParams: _queryParams, | 1090 uploadOptions: _uploadOptions, |
1099 uploadOptions: _uploadOptions, | 1091 uploadMedia: _uploadMedia, |
1100 uploadMedia: _uploadMedia, | 1092 downloadOptions: _downloadOptions); |
1101 downloadOptions: _downloadOptions); | |
1102 return _response.then((data) => new Datafeed.fromJson(data)); | 1093 return _response.then((data) => new Datafeed.fromJson(data)); |
1103 } | 1094 } |
1104 | 1095 |
1105 /** | 1096 /// Lists the datafeeds in your Merchant Center account. This method can only |
1106 * Lists the datafeeds in your Merchant Center account. This method can only | 1097 /// be called for non-multi-client accounts. |
1107 * be called for non-multi-client accounts. | 1098 /// |
1108 * | 1099 /// Request parameters: |
1109 * Request parameters: | 1100 /// |
1110 * | 1101 /// [merchantId] - The ID of the managing account. |
1111 * [merchantId] - The ID of the managing account. | 1102 /// |
1112 * | 1103 /// [maxResults] - The maximum number of products to return in the response, |
1113 * [maxResults] - The maximum number of products to return in the response, | 1104 /// used for paging. |
1114 * used for paging. | 1105 /// |
1115 * | 1106 /// [pageToken] - The token returned by the previous request. |
1116 * [pageToken] - The token returned by the previous request. | 1107 /// |
1117 * | 1108 /// Completes with a [DatafeedsListResponse]. |
1118 * Completes with a [DatafeedsListResponse]. | 1109 /// |
1119 * | 1110 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1120 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1111 /// an error. |
1121 * error. | 1112 /// |
1122 * | 1113 /// If the used [http.Client] completes with an error when making a REST |
1123 * If the used [http.Client] completes with an error when making a REST call, | 1114 /// call, this method will complete with the same error. |
1124 * this method will complete with the same error. | 1115 async.Future<DatafeedsListResponse> list(core.String merchantId, |
1125 */ | 1116 {core.int maxResults, core.String pageToken}) { |
1126 async.Future<DatafeedsListResponse> list(core.String merchantId, {core.int max
Results, core.String pageToken}) { | |
1127 var _url = null; | 1117 var _url = null; |
1128 var _queryParams = new core.Map(); | 1118 var _queryParams = new core.Map(); |
1129 var _uploadMedia = null; | 1119 var _uploadMedia = null; |
1130 var _uploadOptions = null; | 1120 var _uploadOptions = null; |
1131 var _downloadOptions = commons.DownloadOptions.Metadata; | 1121 var _downloadOptions = commons.DownloadOptions.Metadata; |
1132 var _body = null; | 1122 var _body = null; |
1133 | 1123 |
1134 if (merchantId == null) { | 1124 if (merchantId == null) { |
1135 throw new core.ArgumentError("Parameter merchantId is required."); | 1125 throw new core.ArgumentError("Parameter merchantId is required."); |
1136 } | 1126 } |
1137 if (maxResults != null) { | 1127 if (maxResults != null) { |
1138 _queryParams["maxResults"] = ["${maxResults}"]; | 1128 _queryParams["maxResults"] = ["${maxResults}"]; |
1139 } | 1129 } |
1140 if (pageToken != null) { | 1130 if (pageToken != null) { |
1141 _queryParams["pageToken"] = [pageToken]; | 1131 _queryParams["pageToken"] = [pageToken]; |
1142 } | 1132 } |
1143 | 1133 |
1144 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds'; | 1134 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds'; |
1145 | 1135 |
1146 var _response = _requester.request(_url, | 1136 var _response = _requester.request(_url, "GET", |
1147 "GET", | 1137 body: _body, |
1148 body: _body, | 1138 queryParams: _queryParams, |
1149 queryParams: _queryParams, | 1139 uploadOptions: _uploadOptions, |
1150 uploadOptions: _uploadOptions, | 1140 uploadMedia: _uploadMedia, |
1151 uploadMedia: _uploadMedia, | 1141 downloadOptions: _downloadOptions); |
1152 downloadOptions: _downloadOptions); | |
1153 return _response.then((data) => new DatafeedsListResponse.fromJson(data)); | 1142 return _response.then((data) => new DatafeedsListResponse.fromJson(data)); |
1154 } | 1143 } |
1155 | 1144 |
1156 /** | 1145 /// Updates a datafeed configuration of your Merchant Center account. This |
1157 * Updates a datafeed configuration of your Merchant Center account. This | 1146 /// method can only be called for non-multi-client accounts. This method |
1158 * method can only be called for non-multi-client accounts. This method | 1147 /// supports patch semantics. |
1159 * supports patch semantics. | 1148 /// |
1160 * | 1149 /// [request] - The metadata request object. |
1161 * [request] - The metadata request object. | 1150 /// |
1162 * | 1151 /// Request parameters: |
1163 * Request parameters: | 1152 /// |
1164 * | 1153 /// [merchantId] - null |
1165 * [merchantId] - null | 1154 /// |
1166 * | 1155 /// [datafeedId] - null |
1167 * [datafeedId] - null | 1156 /// |
1168 * | 1157 /// [dryRun] - Flag to run the request in dry-run mode. |
1169 * [dryRun] - Flag to run the request in dry-run mode. | 1158 /// |
1170 * | 1159 /// Completes with a [Datafeed]. |
1171 * Completes with a [Datafeed]. | 1160 /// |
1172 * | 1161 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1173 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1162 /// an error. |
1174 * error. | 1163 /// |
1175 * | 1164 /// If the used [http.Client] completes with an error when making a REST |
1176 * If the used [http.Client] completes with an error when making a REST call, | 1165 /// call, this method will complete with the same error. |
1177 * this method will complete with the same error. | 1166 async.Future<Datafeed> patch( |
1178 */ | 1167 Datafeed request, core.String merchantId, core.String datafeedId, |
1179 async.Future<Datafeed> patch(Datafeed request, core.String merchantId, core.St
ring datafeedId, {core.bool dryRun}) { | 1168 {core.bool dryRun}) { |
1180 var _url = null; | 1169 var _url = null; |
1181 var _queryParams = new core.Map(); | 1170 var _queryParams = new core.Map(); |
1182 var _uploadMedia = null; | 1171 var _uploadMedia = null; |
1183 var _uploadOptions = null; | 1172 var _uploadOptions = null; |
1184 var _downloadOptions = commons.DownloadOptions.Metadata; | 1173 var _downloadOptions = commons.DownloadOptions.Metadata; |
1185 var _body = null; | 1174 var _body = null; |
1186 | 1175 |
1187 if (request != null) { | 1176 if (request != null) { |
1188 _body = convert.JSON.encode((request).toJson()); | 1177 _body = convert.JSON.encode((request).toJson()); |
1189 } | 1178 } |
1190 if (merchantId == null) { | 1179 if (merchantId == null) { |
1191 throw new core.ArgumentError("Parameter merchantId is required."); | 1180 throw new core.ArgumentError("Parameter merchantId is required."); |
1192 } | 1181 } |
1193 if (datafeedId == null) { | 1182 if (datafeedId == null) { |
1194 throw new core.ArgumentError("Parameter datafeedId is required."); | 1183 throw new core.ArgumentError("Parameter datafeedId is required."); |
1195 } | 1184 } |
1196 if (dryRun != null) { | 1185 if (dryRun != null) { |
1197 _queryParams["dryRun"] = ["${dryRun}"]; | 1186 _queryParams["dryRun"] = ["${dryRun}"]; |
1198 } | 1187 } |
1199 | 1188 |
1200 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + common
s.Escaper.ecapeVariable('$datafeedId'); | 1189 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 1190 '/datafeeds/' + |
| 1191 commons.Escaper.ecapeVariable('$datafeedId'); |
1201 | 1192 |
1202 var _response = _requester.request(_url, | 1193 var _response = _requester.request(_url, "PATCH", |
1203 "PATCH", | 1194 body: _body, |
1204 body: _body, | 1195 queryParams: _queryParams, |
1205 queryParams: _queryParams, | 1196 uploadOptions: _uploadOptions, |
1206 uploadOptions: _uploadOptions, | 1197 uploadMedia: _uploadMedia, |
1207 uploadMedia: _uploadMedia, | 1198 downloadOptions: _downloadOptions); |
1208 downloadOptions: _downloadOptions); | |
1209 return _response.then((data) => new Datafeed.fromJson(data)); | 1199 return _response.then((data) => new Datafeed.fromJson(data)); |
1210 } | 1200 } |
1211 | 1201 |
1212 /** | 1202 /// Updates a datafeed configuration of your Merchant Center account. This |
1213 * Updates a datafeed configuration of your Merchant Center account. This | 1203 /// method can only be called for non-multi-client accounts. |
1214 * method can only be called for non-multi-client accounts. | 1204 /// |
1215 * | 1205 /// [request] - The metadata request object. |
1216 * [request] - The metadata request object. | 1206 /// |
1217 * | 1207 /// Request parameters: |
1218 * Request parameters: | 1208 /// |
1219 * | 1209 /// [merchantId] - null |
1220 * [merchantId] - null | 1210 /// |
1221 * | 1211 /// [datafeedId] - null |
1222 * [datafeedId] - null | 1212 /// |
1223 * | 1213 /// [dryRun] - Flag to run the request in dry-run mode. |
1224 * [dryRun] - Flag to run the request in dry-run mode. | 1214 /// |
1225 * | 1215 /// Completes with a [Datafeed]. |
1226 * Completes with a [Datafeed]. | 1216 /// |
1227 * | 1217 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1228 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1218 /// an error. |
1229 * error. | 1219 /// |
1230 * | 1220 /// If the used [http.Client] completes with an error when making a REST |
1231 * If the used [http.Client] completes with an error when making a REST call, | 1221 /// call, this method will complete with the same error. |
1232 * this method will complete with the same error. | 1222 async.Future<Datafeed> update( |
1233 */ | 1223 Datafeed request, core.String merchantId, core.String datafeedId, |
1234 async.Future<Datafeed> update(Datafeed request, core.String merchantId, core.S
tring datafeedId, {core.bool dryRun}) { | 1224 {core.bool dryRun}) { |
1235 var _url = null; | 1225 var _url = null; |
1236 var _queryParams = new core.Map(); | 1226 var _queryParams = new core.Map(); |
1237 var _uploadMedia = null; | 1227 var _uploadMedia = null; |
1238 var _uploadOptions = null; | 1228 var _uploadOptions = null; |
1239 var _downloadOptions = commons.DownloadOptions.Metadata; | 1229 var _downloadOptions = commons.DownloadOptions.Metadata; |
1240 var _body = null; | 1230 var _body = null; |
1241 | 1231 |
1242 if (request != null) { | 1232 if (request != null) { |
1243 _body = convert.JSON.encode((request).toJson()); | 1233 _body = convert.JSON.encode((request).toJson()); |
1244 } | 1234 } |
1245 if (merchantId == null) { | 1235 if (merchantId == null) { |
1246 throw new core.ArgumentError("Parameter merchantId is required."); | 1236 throw new core.ArgumentError("Parameter merchantId is required."); |
1247 } | 1237 } |
1248 if (datafeedId == null) { | 1238 if (datafeedId == null) { |
1249 throw new core.ArgumentError("Parameter datafeedId is required."); | 1239 throw new core.ArgumentError("Parameter datafeedId is required."); |
1250 } | 1240 } |
1251 if (dryRun != null) { | 1241 if (dryRun != null) { |
1252 _queryParams["dryRun"] = ["${dryRun}"]; | 1242 _queryParams["dryRun"] = ["${dryRun}"]; |
1253 } | 1243 } |
1254 | 1244 |
1255 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + common
s.Escaper.ecapeVariable('$datafeedId'); | 1245 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 1246 '/datafeeds/' + |
| 1247 commons.Escaper.ecapeVariable('$datafeedId'); |
1256 | 1248 |
1257 var _response = _requester.request(_url, | 1249 var _response = _requester.request(_url, "PUT", |
1258 "PUT", | 1250 body: _body, |
1259 body: _body, | 1251 queryParams: _queryParams, |
1260 queryParams: _queryParams, | 1252 uploadOptions: _uploadOptions, |
1261 uploadOptions: _uploadOptions, | 1253 uploadMedia: _uploadMedia, |
1262 uploadMedia: _uploadMedia, | 1254 downloadOptions: _downloadOptions); |
1263 downloadOptions: _downloadOptions); | |
1264 return _response.then((data) => new Datafeed.fromJson(data)); | 1255 return _response.then((data) => new Datafeed.fromJson(data)); |
1265 } | 1256 } |
1266 | |
1267 } | 1257 } |
1268 | 1258 |
1269 | |
1270 class DatafeedstatusesResourceApi { | 1259 class DatafeedstatusesResourceApi { |
1271 final commons.ApiRequester _requester; | 1260 final commons.ApiRequester _requester; |
1272 | 1261 |
1273 DatafeedstatusesResourceApi(commons.ApiRequester client) : | 1262 DatafeedstatusesResourceApi(commons.ApiRequester client) |
1274 _requester = client; | 1263 : _requester = client; |
1275 | 1264 |
1276 /** | 1265 /// [request] - The metadata request object. |
1277 * [request] - The metadata request object. | 1266 /// |
1278 * | 1267 /// Request parameters: |
1279 * Request parameters: | 1268 /// |
1280 * | 1269 /// Completes with a [DatafeedstatusesCustomBatchResponse]. |
1281 * Completes with a [DatafeedstatusesCustomBatchResponse]. | 1270 /// |
1282 * | 1271 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1283 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1272 /// an error. |
1284 * error. | 1273 /// |
1285 * | 1274 /// If the used [http.Client] completes with an error when making a REST |
1286 * If the used [http.Client] completes with an error when making a REST call, | 1275 /// call, this method will complete with the same error. |
1287 * this method will complete with the same error. | 1276 async.Future<DatafeedstatusesCustomBatchResponse> custombatch( |
1288 */ | 1277 DatafeedstatusesCustomBatchRequest request) { |
1289 async.Future<DatafeedstatusesCustomBatchResponse> custombatch(Datafeedstatuses
CustomBatchRequest request) { | |
1290 var _url = null; | 1278 var _url = null; |
1291 var _queryParams = new core.Map(); | 1279 var _queryParams = new core.Map(); |
1292 var _uploadMedia = null; | 1280 var _uploadMedia = null; |
1293 var _uploadOptions = null; | 1281 var _uploadOptions = null; |
1294 var _downloadOptions = commons.DownloadOptions.Metadata; | 1282 var _downloadOptions = commons.DownloadOptions.Metadata; |
1295 var _body = null; | 1283 var _body = null; |
1296 | 1284 |
1297 if (request != null) { | 1285 if (request != null) { |
1298 _body = convert.JSON.encode((request).toJson()); | 1286 _body = convert.JSON.encode((request).toJson()); |
1299 } | 1287 } |
1300 | 1288 |
1301 _url = 'datafeedstatuses/batch'; | 1289 _url = 'datafeedstatuses/batch'; |
1302 | 1290 |
1303 var _response = _requester.request(_url, | 1291 var _response = _requester.request(_url, "POST", |
1304 "POST", | 1292 body: _body, |
1305 body: _body, | 1293 queryParams: _queryParams, |
1306 queryParams: _queryParams, | 1294 uploadOptions: _uploadOptions, |
1307 uploadOptions: _uploadOptions, | 1295 uploadMedia: _uploadMedia, |
1308 uploadMedia: _uploadMedia, | 1296 downloadOptions: _downloadOptions); |
1309 downloadOptions: _downloadOptions); | 1297 return _response |
1310 return _response.then((data) => new DatafeedstatusesCustomBatchResponse.from
Json(data)); | 1298 .then((data) => new DatafeedstatusesCustomBatchResponse.fromJson(data)); |
1311 } | 1299 } |
1312 | 1300 |
1313 /** | 1301 /// Retrieves the status of a datafeed from your Merchant Center account. |
1314 * Retrieves the status of a datafeed from your Merchant Center account. This | 1302 /// This method can only be called for non-multi-client accounts. |
1315 * method can only be called for non-multi-client accounts. | 1303 /// |
1316 * | 1304 /// Request parameters: |
1317 * Request parameters: | 1305 /// |
1318 * | 1306 /// [merchantId] - null |
1319 * [merchantId] - null | 1307 /// |
1320 * | 1308 /// [datafeedId] - null |
1321 * [datafeedId] - null | 1309 /// |
1322 * | 1310 /// Completes with a [DatafeedStatus]. |
1323 * Completes with a [DatafeedStatus]. | 1311 /// |
1324 * | 1312 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1325 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1313 /// an error. |
1326 * error. | 1314 /// |
1327 * | 1315 /// If the used [http.Client] completes with an error when making a REST |
1328 * If the used [http.Client] completes with an error when making a REST call, | 1316 /// call, this method will complete with the same error. |
1329 * this method will complete with the same error. | 1317 async.Future<DatafeedStatus> get( |
1330 */ | 1318 core.String merchantId, core.String datafeedId) { |
1331 async.Future<DatafeedStatus> get(core.String merchantId, core.String datafeedI
d) { | |
1332 var _url = null; | 1319 var _url = null; |
1333 var _queryParams = new core.Map(); | 1320 var _queryParams = new core.Map(); |
1334 var _uploadMedia = null; | 1321 var _uploadMedia = null; |
1335 var _uploadOptions = null; | 1322 var _uploadOptions = null; |
1336 var _downloadOptions = commons.DownloadOptions.Metadata; | 1323 var _downloadOptions = commons.DownloadOptions.Metadata; |
1337 var _body = null; | 1324 var _body = null; |
1338 | 1325 |
1339 if (merchantId == null) { | 1326 if (merchantId == null) { |
1340 throw new core.ArgumentError("Parameter merchantId is required."); | 1327 throw new core.ArgumentError("Parameter merchantId is required."); |
1341 } | 1328 } |
1342 if (datafeedId == null) { | 1329 if (datafeedId == null) { |
1343 throw new core.ArgumentError("Parameter datafeedId is required."); | 1330 throw new core.ArgumentError("Parameter datafeedId is required."); |
1344 } | 1331 } |
1345 | 1332 |
1346 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeedstatuses/' +
commons.Escaper.ecapeVariable('$datafeedId'); | 1333 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 1334 '/datafeedstatuses/' + |
| 1335 commons.Escaper.ecapeVariable('$datafeedId'); |
1347 | 1336 |
1348 var _response = _requester.request(_url, | 1337 var _response = _requester.request(_url, "GET", |
1349 "GET", | 1338 body: _body, |
1350 body: _body, | 1339 queryParams: _queryParams, |
1351 queryParams: _queryParams, | 1340 uploadOptions: _uploadOptions, |
1352 uploadOptions: _uploadOptions, | 1341 uploadMedia: _uploadMedia, |
1353 uploadMedia: _uploadMedia, | 1342 downloadOptions: _downloadOptions); |
1354 downloadOptions: _downloadOptions); | |
1355 return _response.then((data) => new DatafeedStatus.fromJson(data)); | 1343 return _response.then((data) => new DatafeedStatus.fromJson(data)); |
1356 } | 1344 } |
1357 | 1345 |
1358 /** | 1346 /// Lists the statuses of the datafeeds in your Merchant Center account. This |
1359 * Lists the statuses of the datafeeds in your Merchant Center account. This | 1347 /// method can only be called for non-multi-client accounts. |
1360 * method can only be called for non-multi-client accounts. | 1348 /// |
1361 * | 1349 /// Request parameters: |
1362 * Request parameters: | 1350 /// |
1363 * | 1351 /// [merchantId] - The ID of the managing account. |
1364 * [merchantId] - The ID of the managing account. | 1352 /// |
1365 * | 1353 /// [maxResults] - The maximum number of products to return in the response, |
1366 * [maxResults] - The maximum number of products to return in the response, | 1354 /// used for paging. |
1367 * used for paging. | 1355 /// |
1368 * | 1356 /// [pageToken] - The token returned by the previous request. |
1369 * [pageToken] - The token returned by the previous request. | 1357 /// |
1370 * | 1358 /// Completes with a [DatafeedstatusesListResponse]. |
1371 * Completes with a [DatafeedstatusesListResponse]. | 1359 /// |
1372 * | 1360 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1373 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1361 /// an error. |
1374 * error. | 1362 /// |
1375 * | 1363 /// If the used [http.Client] completes with an error when making a REST |
1376 * If the used [http.Client] completes with an error when making a REST call, | 1364 /// call, this method will complete with the same error. |
1377 * this method will complete with the same error. | 1365 async.Future<DatafeedstatusesListResponse> list(core.String merchantId, |
1378 */ | 1366 {core.int maxResults, core.String pageToken}) { |
1379 async.Future<DatafeedstatusesListResponse> list(core.String merchantId, {core.
int maxResults, core.String pageToken}) { | |
1380 var _url = null; | 1367 var _url = null; |
1381 var _queryParams = new core.Map(); | 1368 var _queryParams = new core.Map(); |
1382 var _uploadMedia = null; | 1369 var _uploadMedia = null; |
1383 var _uploadOptions = null; | 1370 var _uploadOptions = null; |
1384 var _downloadOptions = commons.DownloadOptions.Metadata; | 1371 var _downloadOptions = commons.DownloadOptions.Metadata; |
1385 var _body = null; | 1372 var _body = null; |
1386 | 1373 |
1387 if (merchantId == null) { | 1374 if (merchantId == null) { |
1388 throw new core.ArgumentError("Parameter merchantId is required."); | 1375 throw new core.ArgumentError("Parameter merchantId is required."); |
1389 } | 1376 } |
1390 if (maxResults != null) { | 1377 if (maxResults != null) { |
1391 _queryParams["maxResults"] = ["${maxResults}"]; | 1378 _queryParams["maxResults"] = ["${maxResults}"]; |
1392 } | 1379 } |
1393 if (pageToken != null) { | 1380 if (pageToken != null) { |
1394 _queryParams["pageToken"] = [pageToken]; | 1381 _queryParams["pageToken"] = [pageToken]; |
1395 } | 1382 } |
1396 | 1383 |
1397 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeedstatuses'; | 1384 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeedstatuses'; |
1398 | 1385 |
1399 var _response = _requester.request(_url, | 1386 var _response = _requester.request(_url, "GET", |
1400 "GET", | 1387 body: _body, |
1401 body: _body, | 1388 queryParams: _queryParams, |
1402 queryParams: _queryParams, | 1389 uploadOptions: _uploadOptions, |
1403 uploadOptions: _uploadOptions, | 1390 uploadMedia: _uploadMedia, |
1404 uploadMedia: _uploadMedia, | 1391 downloadOptions: _downloadOptions); |
1405 downloadOptions: _downloadOptions); | 1392 return _response |
1406 return _response.then((data) => new DatafeedstatusesListResponse.fromJson(da
ta)); | 1393 .then((data) => new DatafeedstatusesListResponse.fromJson(data)); |
1407 } | 1394 } |
1408 | |
1409 } | 1395 } |
1410 | 1396 |
1411 | |
1412 class InventoryResourceApi { | 1397 class InventoryResourceApi { |
1413 final commons.ApiRequester _requester; | 1398 final commons.ApiRequester _requester; |
1414 | 1399 |
1415 InventoryResourceApi(commons.ApiRequester client) : | 1400 InventoryResourceApi(commons.ApiRequester client) : _requester = client; |
1416 _requester = client; | |
1417 | 1401 |
1418 /** | 1402 /// Updates price and availability for multiple products or stores in a |
1419 * Updates price and availability for multiple products or stores in a single | 1403 /// single request. This operation does not update the expiration date of the |
1420 * request. This operation does not update the expiration date of the | 1404 /// products. This method can only be called for non-multi-client accounts. |
1421 * products. This method can only be called for non-multi-client accounts. | 1405 /// |
1422 * | 1406 /// [request] - The metadata request object. |
1423 * [request] - The metadata request object. | 1407 /// |
1424 * | 1408 /// Request parameters: |
1425 * Request parameters: | 1409 /// |
1426 * | 1410 /// [dryRun] - Flag to run the request in dry-run mode. |
1427 * [dryRun] - Flag to run the request in dry-run mode. | 1411 /// |
1428 * | 1412 /// Completes with a [InventoryCustomBatchResponse]. |
1429 * Completes with a [InventoryCustomBatchResponse]. | 1413 /// |
1430 * | 1414 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1431 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1415 /// an error. |
1432 * error. | 1416 /// |
1433 * | 1417 /// If the used [http.Client] completes with an error when making a REST |
1434 * If the used [http.Client] completes with an error when making a REST call, | 1418 /// call, this method will complete with the same error. |
1435 * this method will complete with the same error. | 1419 async.Future<InventoryCustomBatchResponse> custombatch( |
1436 */ | 1420 InventoryCustomBatchRequest request, |
1437 async.Future<InventoryCustomBatchResponse> custombatch(InventoryCustomBatchReq
uest request, {core.bool dryRun}) { | 1421 {core.bool dryRun}) { |
1438 var _url = null; | 1422 var _url = null; |
1439 var _queryParams = new core.Map(); | 1423 var _queryParams = new core.Map(); |
1440 var _uploadMedia = null; | 1424 var _uploadMedia = null; |
1441 var _uploadOptions = null; | 1425 var _uploadOptions = null; |
1442 var _downloadOptions = commons.DownloadOptions.Metadata; | 1426 var _downloadOptions = commons.DownloadOptions.Metadata; |
1443 var _body = null; | 1427 var _body = null; |
1444 | 1428 |
1445 if (request != null) { | 1429 if (request != null) { |
1446 _body = convert.JSON.encode((request).toJson()); | 1430 _body = convert.JSON.encode((request).toJson()); |
1447 } | 1431 } |
1448 if (dryRun != null) { | 1432 if (dryRun != null) { |
1449 _queryParams["dryRun"] = ["${dryRun}"]; | 1433 _queryParams["dryRun"] = ["${dryRun}"]; |
1450 } | 1434 } |
1451 | 1435 |
1452 _url = 'inventory/batch'; | 1436 _url = 'inventory/batch'; |
1453 | 1437 |
1454 var _response = _requester.request(_url, | 1438 var _response = _requester.request(_url, "POST", |
1455 "POST", | 1439 body: _body, |
1456 body: _body, | 1440 queryParams: _queryParams, |
1457 queryParams: _queryParams, | 1441 uploadOptions: _uploadOptions, |
1458 uploadOptions: _uploadOptions, | 1442 uploadMedia: _uploadMedia, |
1459 uploadMedia: _uploadMedia, | 1443 downloadOptions: _downloadOptions); |
1460 downloadOptions: _downloadOptions); | 1444 return _response |
1461 return _response.then((data) => new InventoryCustomBatchResponse.fromJson(da
ta)); | 1445 .then((data) => new InventoryCustomBatchResponse.fromJson(data)); |
1462 } | 1446 } |
1463 | 1447 |
1464 /** | 1448 /// Updates price and availability of a product in your Merchant Center |
1465 * Updates price and availability of a product in your Merchant Center | 1449 /// account. This operation does not update the expiration date of the |
1466 * account. This operation does not update the expiration date of the product. | 1450 /// product. This method can only be called for non-multi-client accounts. |
1467 * This method can only be called for non-multi-client accounts. | 1451 /// |
1468 * | 1452 /// [request] - The metadata request object. |
1469 * [request] - The metadata request object. | 1453 /// |
1470 * | 1454 /// Request parameters: |
1471 * Request parameters: | 1455 /// |
1472 * | 1456 /// [merchantId] - The ID of the managing account. |
1473 * [merchantId] - The ID of the managing account. | 1457 /// |
1474 * | 1458 /// [storeCode] - The code of the store for which to update price and |
1475 * [storeCode] - The code of the store for which to update price and | 1459 /// availability. Use online to update price and availability of an online |
1476 * availability. Use online to update price and availability of an online | 1460 /// product. |
1477 * product. | 1461 /// |
1478 * | 1462 /// [productId] - The ID of the product for which to update price and |
1479 * [productId] - The ID of the product for which to update price and | 1463 /// availability. |
1480 * availability. | 1464 /// |
1481 * | 1465 /// [dryRun] - Flag to run the request in dry-run mode. |
1482 * [dryRun] - Flag to run the request in dry-run mode. | 1466 /// |
1483 * | 1467 /// Completes with a [InventorySetResponse]. |
1484 * Completes with a [InventorySetResponse]. | 1468 /// |
1485 * | 1469 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1486 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1470 /// an error. |
1487 * error. | 1471 /// |
1488 * | 1472 /// If the used [http.Client] completes with an error when making a REST |
1489 * If the used [http.Client] completes with an error when making a REST call, | 1473 /// call, this method will complete with the same error. |
1490 * this method will complete with the same error. | 1474 async.Future<InventorySetResponse> set(InventorySetRequest request, |
1491 */ | 1475 core.String merchantId, core.String storeCode, core.String productId, |
1492 async.Future<InventorySetResponse> set(InventorySetRequest request, core.Strin
g merchantId, core.String storeCode, core.String productId, {core.bool dryRun})
{ | 1476 {core.bool dryRun}) { |
1493 var _url = null; | 1477 var _url = null; |
1494 var _queryParams = new core.Map(); | 1478 var _queryParams = new core.Map(); |
1495 var _uploadMedia = null; | 1479 var _uploadMedia = null; |
1496 var _uploadOptions = null; | 1480 var _uploadOptions = null; |
1497 var _downloadOptions = commons.DownloadOptions.Metadata; | 1481 var _downloadOptions = commons.DownloadOptions.Metadata; |
1498 var _body = null; | 1482 var _body = null; |
1499 | 1483 |
1500 if (request != null) { | 1484 if (request != null) { |
1501 _body = convert.JSON.encode((request).toJson()); | 1485 _body = convert.JSON.encode((request).toJson()); |
1502 } | 1486 } |
1503 if (merchantId == null) { | 1487 if (merchantId == null) { |
1504 throw new core.ArgumentError("Parameter merchantId is required."); | 1488 throw new core.ArgumentError("Parameter merchantId is required."); |
1505 } | 1489 } |
1506 if (storeCode == null) { | 1490 if (storeCode == null) { |
1507 throw new core.ArgumentError("Parameter storeCode is required."); | 1491 throw new core.ArgumentError("Parameter storeCode is required."); |
1508 } | 1492 } |
1509 if (productId == null) { | 1493 if (productId == null) { |
1510 throw new core.ArgumentError("Parameter productId is required."); | 1494 throw new core.ArgumentError("Parameter productId is required."); |
1511 } | 1495 } |
1512 if (dryRun != null) { | 1496 if (dryRun != null) { |
1513 _queryParams["dryRun"] = ["${dryRun}"]; | 1497 _queryParams["dryRun"] = ["${dryRun}"]; |
1514 } | 1498 } |
1515 | 1499 |
1516 _url = commons.Escaper.ecapeVariable('$merchantId') + '/inventory/' + common
s.Escaper.ecapeVariable('$storeCode') + '/products/' + commons.Escaper.ecapeVari
able('$productId'); | 1500 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 1501 '/inventory/' + |
| 1502 commons.Escaper.ecapeVariable('$storeCode') + |
| 1503 '/products/' + |
| 1504 commons.Escaper.ecapeVariable('$productId'); |
1517 | 1505 |
1518 var _response = _requester.request(_url, | 1506 var _response = _requester.request(_url, "POST", |
1519 "POST", | 1507 body: _body, |
1520 body: _body, | 1508 queryParams: _queryParams, |
1521 queryParams: _queryParams, | 1509 uploadOptions: _uploadOptions, |
1522 uploadOptions: _uploadOptions, | 1510 uploadMedia: _uploadMedia, |
1523 uploadMedia: _uploadMedia, | 1511 downloadOptions: _downloadOptions); |
1524 downloadOptions: _downloadOptions); | |
1525 return _response.then((data) => new InventorySetResponse.fromJson(data)); | 1512 return _response.then((data) => new InventorySetResponse.fromJson(data)); |
1526 } | 1513 } |
1527 | |
1528 } | 1514 } |
1529 | 1515 |
1530 | |
1531 class OrdersResourceApi { | 1516 class OrdersResourceApi { |
1532 final commons.ApiRequester _requester; | 1517 final commons.ApiRequester _requester; |
1533 | 1518 |
1534 OrdersResourceApi(commons.ApiRequester client) : | 1519 OrdersResourceApi(commons.ApiRequester client) : _requester = client; |
1535 _requester = client; | |
1536 | 1520 |
1537 /** | 1521 /// Marks an order as acknowledged. This method can only be called for |
1538 * Marks an order as acknowledged. This method can only be called for | 1522 /// non-multi-client accounts. |
1539 * non-multi-client accounts. | 1523 /// |
1540 * | 1524 /// [request] - The metadata request object. |
1541 * [request] - The metadata request object. | 1525 /// |
1542 * | 1526 /// Request parameters: |
1543 * Request parameters: | 1527 /// |
1544 * | 1528 /// [merchantId] - The ID of the managing account. |
1545 * [merchantId] - The ID of the managing account. | 1529 /// |
1546 * | 1530 /// [orderId] - The ID of the order. |
1547 * [orderId] - The ID of the order. | 1531 /// |
1548 * | 1532 /// Completes with a [OrdersAcknowledgeResponse]. |
1549 * Completes with a [OrdersAcknowledgeResponse]. | 1533 /// |
1550 * | 1534 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1551 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1535 /// an error. |
1552 * error. | 1536 /// |
1553 * | 1537 /// If the used [http.Client] completes with an error when making a REST |
1554 * If the used [http.Client] completes with an error when making a REST call, | 1538 /// call, this method will complete with the same error. |
1555 * this method will complete with the same error. | 1539 async.Future<OrdersAcknowledgeResponse> acknowledge( |
1556 */ | 1540 OrdersAcknowledgeRequest request, |
1557 async.Future<OrdersAcknowledgeResponse> acknowledge(OrdersAcknowledgeRequest r
equest, core.String merchantId, core.String orderId) { | 1541 core.String merchantId, |
| 1542 core.String orderId) { |
1558 var _url = null; | 1543 var _url = null; |
1559 var _queryParams = new core.Map(); | 1544 var _queryParams = new core.Map(); |
1560 var _uploadMedia = null; | 1545 var _uploadMedia = null; |
1561 var _uploadOptions = null; | 1546 var _uploadOptions = null; |
1562 var _downloadOptions = commons.DownloadOptions.Metadata; | 1547 var _downloadOptions = commons.DownloadOptions.Metadata; |
1563 var _body = null; | 1548 var _body = null; |
1564 | 1549 |
1565 if (request != null) { | 1550 if (request != null) { |
1566 _body = convert.JSON.encode((request).toJson()); | 1551 _body = convert.JSON.encode((request).toJson()); |
1567 } | 1552 } |
1568 if (merchantId == null) { | 1553 if (merchantId == null) { |
1569 throw new core.ArgumentError("Parameter merchantId is required."); | 1554 throw new core.ArgumentError("Parameter merchantId is required."); |
1570 } | 1555 } |
1571 if (orderId == null) { | 1556 if (orderId == null) { |
1572 throw new core.ArgumentError("Parameter orderId is required."); | 1557 throw new core.ArgumentError("Parameter orderId is required."); |
1573 } | 1558 } |
1574 | 1559 |
1575 _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.E
scaper.ecapeVariable('$orderId') + '/acknowledge'; | 1560 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 1561 '/orders/' + |
| 1562 commons.Escaper.ecapeVariable('$orderId') + |
| 1563 '/acknowledge'; |
1576 | 1564 |
1577 var _response = _requester.request(_url, | 1565 var _response = _requester.request(_url, "POST", |
1578 "POST", | 1566 body: _body, |
1579 body: _body, | 1567 queryParams: _queryParams, |
1580 queryParams: _queryParams, | 1568 uploadOptions: _uploadOptions, |
1581 uploadOptions: _uploadOptions, | 1569 uploadMedia: _uploadMedia, |
1582 uploadMedia: _uploadMedia, | 1570 downloadOptions: _downloadOptions); |
1583 downloadOptions: _downloadOptions); | 1571 return _response |
1584 return _response.then((data) => new OrdersAcknowledgeResponse.fromJson(data)
); | 1572 .then((data) => new OrdersAcknowledgeResponse.fromJson(data)); |
1585 } | 1573 } |
1586 | 1574 |
1587 /** | 1575 /// Sandbox only. Moves a test order from state "inProgress" to state |
1588 * Sandbox only. Moves a test order from state "inProgress" to state | 1576 /// "pendingShipment". This method can only be called for non-multi-client |
1589 * "pendingShipment". This method can only be called for non-multi-client | 1577 /// accounts. |
1590 * accounts. | 1578 /// |
1591 * | 1579 /// Request parameters: |
1592 * Request parameters: | 1580 /// |
1593 * | 1581 /// [merchantId] - The ID of the managing account. |
1594 * [merchantId] - The ID of the managing account. | 1582 /// |
1595 * | 1583 /// [orderId] - The ID of the test order to modify. |
1596 * [orderId] - The ID of the test order to modify. | 1584 /// |
1597 * | 1585 /// Completes with a [OrdersAdvanceTestOrderResponse]. |
1598 * Completes with a [OrdersAdvanceTestOrderResponse]. | 1586 /// |
1599 * | 1587 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1600 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1588 /// an error. |
1601 * error. | 1589 /// |
1602 * | 1590 /// If the used [http.Client] completes with an error when making a REST |
1603 * If the used [http.Client] completes with an error when making a REST call, | 1591 /// call, this method will complete with the same error. |
1604 * this method will complete with the same error. | 1592 async.Future<OrdersAdvanceTestOrderResponse> advancetestorder( |
1605 */ | 1593 core.String merchantId, core.String orderId) { |
1606 async.Future<OrdersAdvanceTestOrderResponse> advancetestorder(core.String merc
hantId, core.String orderId) { | |
1607 var _url = null; | 1594 var _url = null; |
1608 var _queryParams = new core.Map(); | 1595 var _queryParams = new core.Map(); |
1609 var _uploadMedia = null; | 1596 var _uploadMedia = null; |
1610 var _uploadOptions = null; | 1597 var _uploadOptions = null; |
1611 var _downloadOptions = commons.DownloadOptions.Metadata; | 1598 var _downloadOptions = commons.DownloadOptions.Metadata; |
1612 var _body = null; | 1599 var _body = null; |
1613 | 1600 |
1614 if (merchantId == null) { | 1601 if (merchantId == null) { |
1615 throw new core.ArgumentError("Parameter merchantId is required."); | 1602 throw new core.ArgumentError("Parameter merchantId is required."); |
1616 } | 1603 } |
1617 if (orderId == null) { | 1604 if (orderId == null) { |
1618 throw new core.ArgumentError("Parameter orderId is required."); | 1605 throw new core.ArgumentError("Parameter orderId is required."); |
1619 } | 1606 } |
1620 | 1607 |
1621 _url = commons.Escaper.ecapeVariable('$merchantId') + '/testorders/' + commo
ns.Escaper.ecapeVariable('$orderId') + '/advance'; | 1608 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 1609 '/testorders/' + |
| 1610 commons.Escaper.ecapeVariable('$orderId') + |
| 1611 '/advance'; |
1622 | 1612 |
1623 var _response = _requester.request(_url, | 1613 var _response = _requester.request(_url, "POST", |
1624 "POST", | 1614 body: _body, |
1625 body: _body, | 1615 queryParams: _queryParams, |
1626 queryParams: _queryParams, | 1616 uploadOptions: _uploadOptions, |
1627 uploadOptions: _uploadOptions, | 1617 uploadMedia: _uploadMedia, |
1628 uploadMedia: _uploadMedia, | 1618 downloadOptions: _downloadOptions); |
1629 downloadOptions: _downloadOptions); | 1619 return _response |
1630 return _response.then((data) => new OrdersAdvanceTestOrderResponse.fromJson(
data)); | 1620 .then((data) => new OrdersAdvanceTestOrderResponse.fromJson(data)); |
1631 } | 1621 } |
1632 | 1622 |
1633 /** | 1623 /// Cancels all line items in an order, making a full refund. This method can |
1634 * Cancels all line items in an order, making a full refund. This method can | 1624 /// only be called for non-multi-client accounts. |
1635 * only be called for non-multi-client accounts. | 1625 /// |
1636 * | 1626 /// [request] - The metadata request object. |
1637 * [request] - The metadata request object. | 1627 /// |
1638 * | 1628 /// Request parameters: |
1639 * Request parameters: | 1629 /// |
1640 * | 1630 /// [merchantId] - The ID of the managing account. |
1641 * [merchantId] - The ID of the managing account. | 1631 /// |
1642 * | 1632 /// [orderId] - The ID of the order to cancel. |
1643 * [orderId] - The ID of the order to cancel. | 1633 /// |
1644 * | 1634 /// Completes with a [OrdersCancelResponse]. |
1645 * Completes with a [OrdersCancelResponse]. | 1635 /// |
1646 * | 1636 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1647 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1637 /// an error. |
1648 * error. | 1638 /// |
1649 * | 1639 /// If the used [http.Client] completes with an error when making a REST |
1650 * If the used [http.Client] completes with an error when making a REST call, | 1640 /// call, this method will complete with the same error. |
1651 * this method will complete with the same error. | 1641 async.Future<OrdersCancelResponse> cancel(OrdersCancelRequest request, |
1652 */ | 1642 core.String merchantId, core.String orderId) { |
1653 async.Future<OrdersCancelResponse> cancel(OrdersCancelRequest request, core.St
ring merchantId, core.String orderId) { | |
1654 var _url = null; | 1643 var _url = null; |
1655 var _queryParams = new core.Map(); | 1644 var _queryParams = new core.Map(); |
1656 var _uploadMedia = null; | 1645 var _uploadMedia = null; |
1657 var _uploadOptions = null; | 1646 var _uploadOptions = null; |
1658 var _downloadOptions = commons.DownloadOptions.Metadata; | 1647 var _downloadOptions = commons.DownloadOptions.Metadata; |
1659 var _body = null; | 1648 var _body = null; |
1660 | 1649 |
1661 if (request != null) { | 1650 if (request != null) { |
1662 _body = convert.JSON.encode((request).toJson()); | 1651 _body = convert.JSON.encode((request).toJson()); |
1663 } | 1652 } |
1664 if (merchantId == null) { | 1653 if (merchantId == null) { |
1665 throw new core.ArgumentError("Parameter merchantId is required."); | 1654 throw new core.ArgumentError("Parameter merchantId is required."); |
1666 } | 1655 } |
1667 if (orderId == null) { | 1656 if (orderId == null) { |
1668 throw new core.ArgumentError("Parameter orderId is required."); | 1657 throw new core.ArgumentError("Parameter orderId is required."); |
1669 } | 1658 } |
1670 | 1659 |
1671 _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.E
scaper.ecapeVariable('$orderId') + '/cancel'; | 1660 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 1661 '/orders/' + |
| 1662 commons.Escaper.ecapeVariable('$orderId') + |
| 1663 '/cancel'; |
1672 | 1664 |
1673 var _response = _requester.request(_url, | 1665 var _response = _requester.request(_url, "POST", |
1674 "POST", | 1666 body: _body, |
1675 body: _body, | 1667 queryParams: _queryParams, |
1676 queryParams: _queryParams, | 1668 uploadOptions: _uploadOptions, |
1677 uploadOptions: _uploadOptions, | 1669 uploadMedia: _uploadMedia, |
1678 uploadMedia: _uploadMedia, | 1670 downloadOptions: _downloadOptions); |
1679 downloadOptions: _downloadOptions); | |
1680 return _response.then((data) => new OrdersCancelResponse.fromJson(data)); | 1671 return _response.then((data) => new OrdersCancelResponse.fromJson(data)); |
1681 } | 1672 } |
1682 | 1673 |
1683 /** | 1674 /// Cancels a line item, making a full refund. This method can only be called |
1684 * Cancels a line item, making a full refund. This method can only be called | 1675 /// for non-multi-client accounts. |
1685 * for non-multi-client accounts. | 1676 /// |
1686 * | 1677 /// [request] - The metadata request object. |
1687 * [request] - The metadata request object. | 1678 /// |
1688 * | 1679 /// Request parameters: |
1689 * Request parameters: | 1680 /// |
1690 * | 1681 /// [merchantId] - The ID of the managing account. |
1691 * [merchantId] - The ID of the managing account. | 1682 /// |
1692 * | 1683 /// [orderId] - The ID of the order. |
1693 * [orderId] - The ID of the order. | 1684 /// |
1694 * | 1685 /// Completes with a [OrdersCancelLineItemResponse]. |
1695 * Completes with a [OrdersCancelLineItemResponse]. | 1686 /// |
1696 * | 1687 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1697 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1688 /// an error. |
1698 * error. | 1689 /// |
1699 * | 1690 /// If the used [http.Client] completes with an error when making a REST |
1700 * If the used [http.Client] completes with an error when making a REST call, | 1691 /// call, this method will complete with the same error. |
1701 * this method will complete with the same error. | 1692 async.Future<OrdersCancelLineItemResponse> cancellineitem( |
1702 */ | 1693 OrdersCancelLineItemRequest request, |
1703 async.Future<OrdersCancelLineItemResponse> cancellineitem(OrdersCancelLineItem
Request request, core.String merchantId, core.String orderId) { | 1694 core.String merchantId, |
| 1695 core.String orderId) { |
1704 var _url = null; | 1696 var _url = null; |
1705 var _queryParams = new core.Map(); | 1697 var _queryParams = new core.Map(); |
1706 var _uploadMedia = null; | 1698 var _uploadMedia = null; |
1707 var _uploadOptions = null; | 1699 var _uploadOptions = null; |
1708 var _downloadOptions = commons.DownloadOptions.Metadata; | 1700 var _downloadOptions = commons.DownloadOptions.Metadata; |
1709 var _body = null; | 1701 var _body = null; |
1710 | 1702 |
1711 if (request != null) { | 1703 if (request != null) { |
1712 _body = convert.JSON.encode((request).toJson()); | 1704 _body = convert.JSON.encode((request).toJson()); |
1713 } | 1705 } |
1714 if (merchantId == null) { | 1706 if (merchantId == null) { |
1715 throw new core.ArgumentError("Parameter merchantId is required."); | 1707 throw new core.ArgumentError("Parameter merchantId is required."); |
1716 } | 1708 } |
1717 if (orderId == null) { | 1709 if (orderId == null) { |
1718 throw new core.ArgumentError("Parameter orderId is required."); | 1710 throw new core.ArgumentError("Parameter orderId is required."); |
1719 } | 1711 } |
1720 | 1712 |
1721 _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.E
scaper.ecapeVariable('$orderId') + '/cancelLineItem'; | 1713 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 1714 '/orders/' + |
| 1715 commons.Escaper.ecapeVariable('$orderId') + |
| 1716 '/cancelLineItem'; |
1722 | 1717 |
1723 var _response = _requester.request(_url, | 1718 var _response = _requester.request(_url, "POST", |
1724 "POST", | 1719 body: _body, |
1725 body: _body, | 1720 queryParams: _queryParams, |
1726 queryParams: _queryParams, | 1721 uploadOptions: _uploadOptions, |
1727 uploadOptions: _uploadOptions, | 1722 uploadMedia: _uploadMedia, |
1728 uploadMedia: _uploadMedia, | 1723 downloadOptions: _downloadOptions); |
1729 downloadOptions: _downloadOptions); | 1724 return _response |
1730 return _response.then((data) => new OrdersCancelLineItemResponse.fromJson(da
ta)); | 1725 .then((data) => new OrdersCancelLineItemResponse.fromJson(data)); |
1731 } | 1726 } |
1732 | 1727 |
1733 /** | 1728 /// Sandbox only. Creates a test order. This method can only be called for |
1734 * Sandbox only. Creates a test order. This method can only be called for | 1729 /// non-multi-client accounts. |
1735 * non-multi-client accounts. | 1730 /// |
1736 * | 1731 /// [request] - The metadata request object. |
1737 * [request] - The metadata request object. | 1732 /// |
1738 * | 1733 /// Request parameters: |
1739 * Request parameters: | 1734 /// |
1740 * | 1735 /// [merchantId] - The ID of the managing account. |
1741 * [merchantId] - The ID of the managing account. | 1736 /// |
1742 * | 1737 /// Completes with a [OrdersCreateTestOrderResponse]. |
1743 * Completes with a [OrdersCreateTestOrderResponse]. | 1738 /// |
1744 * | 1739 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1745 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1740 /// an error. |
1746 * error. | 1741 /// |
1747 * | 1742 /// If the used [http.Client] completes with an error when making a REST |
1748 * If the used [http.Client] completes with an error when making a REST call, | 1743 /// call, this method will complete with the same error. |
1749 * this method will complete with the same error. | 1744 async.Future<OrdersCreateTestOrderResponse> createtestorder( |
1750 */ | 1745 OrdersCreateTestOrderRequest request, core.String merchantId) { |
1751 async.Future<OrdersCreateTestOrderResponse> createtestorder(OrdersCreateTestOr
derRequest request, core.String merchantId) { | |
1752 var _url = null; | 1746 var _url = null; |
1753 var _queryParams = new core.Map(); | 1747 var _queryParams = new core.Map(); |
1754 var _uploadMedia = null; | 1748 var _uploadMedia = null; |
1755 var _uploadOptions = null; | 1749 var _uploadOptions = null; |
1756 var _downloadOptions = commons.DownloadOptions.Metadata; | 1750 var _downloadOptions = commons.DownloadOptions.Metadata; |
1757 var _body = null; | 1751 var _body = null; |
1758 | 1752 |
1759 if (request != null) { | 1753 if (request != null) { |
1760 _body = convert.JSON.encode((request).toJson()); | 1754 _body = convert.JSON.encode((request).toJson()); |
1761 } | 1755 } |
1762 if (merchantId == null) { | 1756 if (merchantId == null) { |
1763 throw new core.ArgumentError("Parameter merchantId is required."); | 1757 throw new core.ArgumentError("Parameter merchantId is required."); |
1764 } | 1758 } |
1765 | 1759 |
1766 _url = commons.Escaper.ecapeVariable('$merchantId') + '/testorders'; | 1760 _url = commons.Escaper.ecapeVariable('$merchantId') + '/testorders'; |
1767 | 1761 |
1768 var _response = _requester.request(_url, | 1762 var _response = _requester.request(_url, "POST", |
1769 "POST", | 1763 body: _body, |
1770 body: _body, | 1764 queryParams: _queryParams, |
1771 queryParams: _queryParams, | 1765 uploadOptions: _uploadOptions, |
1772 uploadOptions: _uploadOptions, | 1766 uploadMedia: _uploadMedia, |
1773 uploadMedia: _uploadMedia, | 1767 downloadOptions: _downloadOptions); |
1774 downloadOptions: _downloadOptions); | 1768 return _response |
1775 return _response.then((data) => new OrdersCreateTestOrderResponse.fromJson(d
ata)); | 1769 .then((data) => new OrdersCreateTestOrderResponse.fromJson(data)); |
1776 } | 1770 } |
1777 | 1771 |
1778 /** | 1772 /// Retrieves or modifies multiple orders in a single request. This method |
1779 * Retrieves or modifies multiple orders in a single request. This method can | 1773 /// can only be called for non-multi-client accounts. |
1780 * only be called for non-multi-client accounts. | 1774 /// |
1781 * | 1775 /// [request] - The metadata request object. |
1782 * [request] - The metadata request object. | 1776 /// |
1783 * | 1777 /// Request parameters: |
1784 * Request parameters: | 1778 /// |
1785 * | 1779 /// Completes with a [OrdersCustomBatchResponse]. |
1786 * Completes with a [OrdersCustomBatchResponse]. | 1780 /// |
1787 * | 1781 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1788 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1782 /// an error. |
1789 * error. | 1783 /// |
1790 * | 1784 /// If the used [http.Client] completes with an error when making a REST |
1791 * If the used [http.Client] completes with an error when making a REST call, | 1785 /// call, this method will complete with the same error. |
1792 * this method will complete with the same error. | 1786 async.Future<OrdersCustomBatchResponse> custombatch( |
1793 */ | 1787 OrdersCustomBatchRequest request) { |
1794 async.Future<OrdersCustomBatchResponse> custombatch(OrdersCustomBatchRequest r
equest) { | |
1795 var _url = null; | 1788 var _url = null; |
1796 var _queryParams = new core.Map(); | 1789 var _queryParams = new core.Map(); |
1797 var _uploadMedia = null; | 1790 var _uploadMedia = null; |
1798 var _uploadOptions = null; | 1791 var _uploadOptions = null; |
1799 var _downloadOptions = commons.DownloadOptions.Metadata; | 1792 var _downloadOptions = commons.DownloadOptions.Metadata; |
1800 var _body = null; | 1793 var _body = null; |
1801 | 1794 |
1802 if (request != null) { | 1795 if (request != null) { |
1803 _body = convert.JSON.encode((request).toJson()); | 1796 _body = convert.JSON.encode((request).toJson()); |
1804 } | 1797 } |
1805 | 1798 |
1806 _url = 'orders/batch'; | 1799 _url = 'orders/batch'; |
1807 | 1800 |
1808 var _response = _requester.request(_url, | 1801 var _response = _requester.request(_url, "POST", |
1809 "POST", | 1802 body: _body, |
1810 body: _body, | 1803 queryParams: _queryParams, |
1811 queryParams: _queryParams, | 1804 uploadOptions: _uploadOptions, |
1812 uploadOptions: _uploadOptions, | 1805 uploadMedia: _uploadMedia, |
1813 uploadMedia: _uploadMedia, | 1806 downloadOptions: _downloadOptions); |
1814 downloadOptions: _downloadOptions); | 1807 return _response |
1815 return _response.then((data) => new OrdersCustomBatchResponse.fromJson(data)
); | 1808 .then((data) => new OrdersCustomBatchResponse.fromJson(data)); |
1816 } | 1809 } |
1817 | 1810 |
1818 /** | 1811 /// Retrieves an order from your Merchant Center account. This method can |
1819 * Retrieves an order from your Merchant Center account. This method can only | 1812 /// only be called for non-multi-client accounts. |
1820 * be called for non-multi-client accounts. | 1813 /// |
1821 * | 1814 /// Request parameters: |
1822 * Request parameters: | 1815 /// |
1823 * | 1816 /// [merchantId] - The ID of the managing account. |
1824 * [merchantId] - The ID of the managing account. | 1817 /// |
1825 * | 1818 /// [orderId] - The ID of the order. |
1826 * [orderId] - The ID of the order. | 1819 /// |
1827 * | 1820 /// Completes with a [Order]. |
1828 * Completes with a [Order]. | 1821 /// |
1829 * | 1822 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1830 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1823 /// an error. |
1831 * error. | 1824 /// |
1832 * | 1825 /// If the used [http.Client] completes with an error when making a REST |
1833 * If the used [http.Client] completes with an error when making a REST call, | 1826 /// call, this method will complete with the same error. |
1834 * this method will complete with the same error. | |
1835 */ | |
1836 async.Future<Order> get(core.String merchantId, core.String orderId) { | 1827 async.Future<Order> get(core.String merchantId, core.String orderId) { |
1837 var _url = null; | 1828 var _url = null; |
1838 var _queryParams = new core.Map(); | 1829 var _queryParams = new core.Map(); |
1839 var _uploadMedia = null; | 1830 var _uploadMedia = null; |
1840 var _uploadOptions = null; | 1831 var _uploadOptions = null; |
1841 var _downloadOptions = commons.DownloadOptions.Metadata; | 1832 var _downloadOptions = commons.DownloadOptions.Metadata; |
1842 var _body = null; | 1833 var _body = null; |
1843 | 1834 |
1844 if (merchantId == null) { | 1835 if (merchantId == null) { |
1845 throw new core.ArgumentError("Parameter merchantId is required."); | 1836 throw new core.ArgumentError("Parameter merchantId is required."); |
1846 } | 1837 } |
1847 if (orderId == null) { | 1838 if (orderId == null) { |
1848 throw new core.ArgumentError("Parameter orderId is required."); | 1839 throw new core.ArgumentError("Parameter orderId is required."); |
1849 } | 1840 } |
1850 | 1841 |
1851 _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.E
scaper.ecapeVariable('$orderId'); | 1842 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 1843 '/orders/' + |
| 1844 commons.Escaper.ecapeVariable('$orderId'); |
1852 | 1845 |
1853 var _response = _requester.request(_url, | 1846 var _response = _requester.request(_url, "GET", |
1854 "GET", | 1847 body: _body, |
1855 body: _body, | 1848 queryParams: _queryParams, |
1856 queryParams: _queryParams, | 1849 uploadOptions: _uploadOptions, |
1857 uploadOptions: _uploadOptions, | 1850 uploadMedia: _uploadMedia, |
1858 uploadMedia: _uploadMedia, | 1851 downloadOptions: _downloadOptions); |
1859 downloadOptions: _downloadOptions); | |
1860 return _response.then((data) => new Order.fromJson(data)); | 1852 return _response.then((data) => new Order.fromJson(data)); |
1861 } | 1853 } |
1862 | 1854 |
1863 /** | 1855 /// Retrieves an order using merchant order id. This method can only be |
1864 * Retrieves an order using merchant order id. This method can only be called | 1856 /// called for non-multi-client accounts. |
1865 * for non-multi-client accounts. | 1857 /// |
1866 * | 1858 /// Request parameters: |
1867 * Request parameters: | 1859 /// |
1868 * | 1860 /// [merchantId] - The ID of the managing account. |
1869 * [merchantId] - The ID of the managing account. | 1861 /// |
1870 * | 1862 /// [merchantOrderId] - The merchant order id to be looked for. |
1871 * [merchantOrderId] - The merchant order id to be looked for. | 1863 /// |
1872 * | 1864 /// Completes with a [OrdersGetByMerchantOrderIdResponse]. |
1873 * Completes with a [OrdersGetByMerchantOrderIdResponse]. | 1865 /// |
1874 * | 1866 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1875 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1867 /// an error. |
1876 * error. | 1868 /// |
1877 * | 1869 /// If the used [http.Client] completes with an error when making a REST |
1878 * If the used [http.Client] completes with an error when making a REST call, | 1870 /// call, this method will complete with the same error. |
1879 * this method will complete with the same error. | 1871 async.Future<OrdersGetByMerchantOrderIdResponse> getbymerchantorderid( |
1880 */ | 1872 core.String merchantId, core.String merchantOrderId) { |
1881 async.Future<OrdersGetByMerchantOrderIdResponse> getbymerchantorderid(core.Str
ing merchantId, core.String merchantOrderId) { | |
1882 var _url = null; | 1873 var _url = null; |
1883 var _queryParams = new core.Map(); | 1874 var _queryParams = new core.Map(); |
1884 var _uploadMedia = null; | 1875 var _uploadMedia = null; |
1885 var _uploadOptions = null; | 1876 var _uploadOptions = null; |
1886 var _downloadOptions = commons.DownloadOptions.Metadata; | 1877 var _downloadOptions = commons.DownloadOptions.Metadata; |
1887 var _body = null; | 1878 var _body = null; |
1888 | 1879 |
1889 if (merchantId == null) { | 1880 if (merchantId == null) { |
1890 throw new core.ArgumentError("Parameter merchantId is required."); | 1881 throw new core.ArgumentError("Parameter merchantId is required."); |
1891 } | 1882 } |
1892 if (merchantOrderId == null) { | 1883 if (merchantOrderId == null) { |
1893 throw new core.ArgumentError("Parameter merchantOrderId is required."); | 1884 throw new core.ArgumentError("Parameter merchantOrderId is required."); |
1894 } | 1885 } |
1895 | 1886 |
1896 _url = commons.Escaper.ecapeVariable('$merchantId') + '/ordersbymerchantid/'
+ commons.Escaper.ecapeVariable('$merchantOrderId'); | 1887 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 1888 '/ordersbymerchantid/' + |
| 1889 commons.Escaper.ecapeVariable('$merchantOrderId'); |
1897 | 1890 |
1898 var _response = _requester.request(_url, | 1891 var _response = _requester.request(_url, "GET", |
1899 "GET", | 1892 body: _body, |
1900 body: _body, | 1893 queryParams: _queryParams, |
1901 queryParams: _queryParams, | 1894 uploadOptions: _uploadOptions, |
1902 uploadOptions: _uploadOptions, | 1895 uploadMedia: _uploadMedia, |
1903 uploadMedia: _uploadMedia, | 1896 downloadOptions: _downloadOptions); |
1904 downloadOptions: _downloadOptions); | 1897 return _response |
1905 return _response.then((data) => new OrdersGetByMerchantOrderIdResponse.fromJ
son(data)); | 1898 .then((data) => new OrdersGetByMerchantOrderIdResponse.fromJson(data)); |
1906 } | 1899 } |
1907 | 1900 |
1908 /** | 1901 /// Sandbox only. Retrieves an order template that can be used to quickly |
1909 * Sandbox only. Retrieves an order template that can be used to quickly | 1902 /// create a new order in sandbox. This method can only be called for |
1910 * create a new order in sandbox. This method can only be called for | 1903 /// non-multi-client accounts. |
1911 * non-multi-client accounts. | 1904 /// |
1912 * | 1905 /// Request parameters: |
1913 * Request parameters: | 1906 /// |
1914 * | 1907 /// [merchantId] - The ID of the managing account. |
1915 * [merchantId] - The ID of the managing account. | 1908 /// |
1916 * | 1909 /// [templateName] - The name of the template to retrieve. |
1917 * [templateName] - The name of the template to retrieve. | 1910 /// Possible string values are: |
1918 * Possible string values are: | 1911 /// - "template1" |
1919 * - "template1" | 1912 /// - "template1a" |
1920 * - "template1a" | 1913 /// - "template1b" |
1921 * - "template1b" | 1914 /// - "template2" |
1922 * - "template2" | 1915 /// |
1923 * | 1916 /// Completes with a [OrdersGetTestOrderTemplateResponse]. |
1924 * Completes with a [OrdersGetTestOrderTemplateResponse]. | 1917 /// |
1925 * | 1918 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1926 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1919 /// an error. |
1927 * error. | 1920 /// |
1928 * | 1921 /// If the used [http.Client] completes with an error when making a REST |
1929 * If the used [http.Client] completes with an error when making a REST call, | 1922 /// call, this method will complete with the same error. |
1930 * this method will complete with the same error. | 1923 async.Future<OrdersGetTestOrderTemplateResponse> gettestordertemplate( |
1931 */ | 1924 core.String merchantId, core.String templateName) { |
1932 async.Future<OrdersGetTestOrderTemplateResponse> gettestordertemplate(core.Str
ing merchantId, core.String templateName) { | |
1933 var _url = null; | 1925 var _url = null; |
1934 var _queryParams = new core.Map(); | 1926 var _queryParams = new core.Map(); |
1935 var _uploadMedia = null; | 1927 var _uploadMedia = null; |
1936 var _uploadOptions = null; | 1928 var _uploadOptions = null; |
1937 var _downloadOptions = commons.DownloadOptions.Metadata; | 1929 var _downloadOptions = commons.DownloadOptions.Metadata; |
1938 var _body = null; | 1930 var _body = null; |
1939 | 1931 |
1940 if (merchantId == null) { | 1932 if (merchantId == null) { |
1941 throw new core.ArgumentError("Parameter merchantId is required."); | 1933 throw new core.ArgumentError("Parameter merchantId is required."); |
1942 } | 1934 } |
1943 if (templateName == null) { | 1935 if (templateName == null) { |
1944 throw new core.ArgumentError("Parameter templateName is required."); | 1936 throw new core.ArgumentError("Parameter templateName is required."); |
1945 } | 1937 } |
1946 | 1938 |
1947 _url = commons.Escaper.ecapeVariable('$merchantId') + '/testordertemplates/'
+ commons.Escaper.ecapeVariable('$templateName'); | 1939 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 1940 '/testordertemplates/' + |
| 1941 commons.Escaper.ecapeVariable('$templateName'); |
1948 | 1942 |
1949 var _response = _requester.request(_url, | 1943 var _response = _requester.request(_url, "GET", |
1950 "GET", | 1944 body: _body, |
1951 body: _body, | 1945 queryParams: _queryParams, |
1952 queryParams: _queryParams, | 1946 uploadOptions: _uploadOptions, |
1953 uploadOptions: _uploadOptions, | 1947 uploadMedia: _uploadMedia, |
1954 uploadMedia: _uploadMedia, | 1948 downloadOptions: _downloadOptions); |
1955 downloadOptions: _downloadOptions); | 1949 return _response |
1956 return _response.then((data) => new OrdersGetTestOrderTemplateResponse.fromJ
son(data)); | 1950 .then((data) => new OrdersGetTestOrderTemplateResponse.fromJson(data)); |
1957 } | 1951 } |
1958 | 1952 |
1959 /** | 1953 /// Lists the orders in your Merchant Center account. This method can only be |
1960 * Lists the orders in your Merchant Center account. This method can only be | 1954 /// called for non-multi-client accounts. |
1961 * called for non-multi-client accounts. | 1955 /// |
1962 * | 1956 /// Request parameters: |
1963 * Request parameters: | 1957 /// |
1964 * | 1958 /// [merchantId] - The ID of the managing account. |
1965 * [merchantId] - The ID of the managing account. | 1959 /// |
1966 * | 1960 /// [acknowledged] - Obtains orders that match the acknowledgement status. |
1967 * [acknowledged] - Obtains orders that match the acknowledgement status. When | 1961 /// When set to true, obtains orders that have been acknowledged. When false, |
1968 * set to true, obtains orders that have been acknowledged. When false, | 1962 /// obtains orders that have not been acknowledged. |
1969 * obtains orders that have not been acknowledged. | 1963 /// We recommend using this filter set to false, in conjunction with the |
1970 * We recommend using this filter set to false, in conjunction with the | 1964 /// acknowledge call, such that only un-acknowledged orders are returned. |
1971 * acknowledge call, such that only un-acknowledged orders are returned. | 1965 /// |
1972 * | 1966 /// [maxResults] - The maximum number of orders to return in the response, |
1973 * [maxResults] - The maximum number of orders to return in the response, used | 1967 /// used for paging. The default value is 25 orders per page, and the maximum |
1974 * for paging. The default value is 25 orders per page, and the maximum | 1968 /// allowed value is 250 orders per page. |
1975 * allowed value is 250 orders per page. | 1969 /// Known issue: All List calls will return all Orders without limit |
1976 * Known issue: All List calls will return all Orders without limit regardless | 1970 /// regardless of the value of this field. |
1977 * of the value of this field. | 1971 /// |
1978 * | 1972 /// [orderBy] - The ordering of the returned list. The only supported value |
1979 * [orderBy] - The ordering of the returned list. The only supported value are | 1973 /// are placedDate desc and placedDate asc for now, which returns orders |
1980 * placedDate desc and placedDate asc for now, which returns orders sorted by | 1974 /// sorted by placement date. "placedDate desc" stands for listing orders by |
1981 * placement date. "placedDate desc" stands for listing orders by placement | 1975 /// placement date, from oldest to most recent. "placedDate asc" stands for |
1982 * date, from oldest to most recent. "placedDate asc" stands for listing | 1976 /// listing orders by placement date, from most recent to oldest. In future |
1983 * orders by placement date, from most recent to oldest. In future releases | 1977 /// releases we'll support other sorting criteria. |
1984 * we'll support other sorting criteria. | 1978 /// Possible string values are: |
1985 * Possible string values are: | 1979 /// - "placedDate asc" |
1986 * - "placedDate asc" | 1980 /// - "placedDate desc" |
1987 * - "placedDate desc" | 1981 /// |
1988 * | 1982 /// [pageToken] - The token returned by the previous request. |
1989 * [pageToken] - The token returned by the previous request. | 1983 /// |
1990 * | 1984 /// [placedDateEnd] - Obtains orders placed before this date (exclusively), |
1991 * [placedDateEnd] - Obtains orders placed before this date (exclusively), in | 1985 /// in ISO 8601 format. |
1992 * ISO 8601 format. | 1986 /// |
1993 * | 1987 /// [placedDateStart] - Obtains orders placed after this date (inclusively), |
1994 * [placedDateStart] - Obtains orders placed after this date (inclusively), in | 1988 /// in ISO 8601 format. |
1995 * ISO 8601 format. | 1989 /// |
1996 * | 1990 /// [statuses] - Obtains orders that match any of the specified statuses. |
1997 * [statuses] - Obtains orders that match any of the specified statuses. | 1991 /// Multiple values can be specified with comma separation. Additionally, |
1998 * Multiple values can be specified with comma separation. Additionally, | 1992 /// please note that active is a shortcut for pendingShipment and |
1999 * please note that active is a shortcut for pendingShipment and | 1993 /// partiallyShipped, and completed is a shortcut for shipped , |
2000 * partiallyShipped, and completed is a shortcut for shipped , | 1994 /// partiallyDelivered, delivered, partiallyReturned, returned, and canceled. |
2001 * partiallyDelivered, delivered, partiallyReturned, returned, and canceled. | 1995 /// |
2002 * | 1996 /// Completes with a [OrdersListResponse]. |
2003 * Completes with a [OrdersListResponse]. | 1997 /// |
2004 * | 1998 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2005 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1999 /// an error. |
2006 * error. | 2000 /// |
2007 * | 2001 /// If the used [http.Client] completes with an error when making a REST |
2008 * If the used [http.Client] completes with an error when making a REST call, | 2002 /// call, this method will complete with the same error. |
2009 * this method will complete with the same error. | 2003 async.Future<OrdersListResponse> list(core.String merchantId, |
2010 */ | 2004 {core.bool acknowledged, |
2011 async.Future<OrdersListResponse> list(core.String merchantId, {core.bool ackno
wledged, core.int maxResults, core.String orderBy, core.String pageToken, core.S
tring placedDateEnd, core.String placedDateStart, core.List<core.String> statuse
s}) { | 2005 core.int maxResults, |
| 2006 core.String orderBy, |
| 2007 core.String pageToken, |
| 2008 core.String placedDateEnd, |
| 2009 core.String placedDateStart, |
| 2010 core.List<core.String> statuses}) { |
2012 var _url = null; | 2011 var _url = null; |
2013 var _queryParams = new core.Map(); | 2012 var _queryParams = new core.Map(); |
2014 var _uploadMedia = null; | 2013 var _uploadMedia = null; |
2015 var _uploadOptions = null; | 2014 var _uploadOptions = null; |
2016 var _downloadOptions = commons.DownloadOptions.Metadata; | 2015 var _downloadOptions = commons.DownloadOptions.Metadata; |
2017 var _body = null; | 2016 var _body = null; |
2018 | 2017 |
2019 if (merchantId == null) { | 2018 if (merchantId == null) { |
2020 throw new core.ArgumentError("Parameter merchantId is required."); | 2019 throw new core.ArgumentError("Parameter merchantId is required."); |
2021 } | 2020 } |
(...skipping 14 matching lines...) Expand all Loading... |
2036 } | 2035 } |
2037 if (placedDateStart != null) { | 2036 if (placedDateStart != null) { |
2038 _queryParams["placedDateStart"] = [placedDateStart]; | 2037 _queryParams["placedDateStart"] = [placedDateStart]; |
2039 } | 2038 } |
2040 if (statuses != null) { | 2039 if (statuses != null) { |
2041 _queryParams["statuses"] = statuses; | 2040 _queryParams["statuses"] = statuses; |
2042 } | 2041 } |
2043 | 2042 |
2044 _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders'; | 2043 _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders'; |
2045 | 2044 |
2046 var _response = _requester.request(_url, | 2045 var _response = _requester.request(_url, "GET", |
2047 "GET", | 2046 body: _body, |
2048 body: _body, | 2047 queryParams: _queryParams, |
2049 queryParams: _queryParams, | 2048 uploadOptions: _uploadOptions, |
2050 uploadOptions: _uploadOptions, | 2049 uploadMedia: _uploadMedia, |
2051 uploadMedia: _uploadMedia, | 2050 downloadOptions: _downloadOptions); |
2052 downloadOptions: _downloadOptions); | |
2053 return _response.then((data) => new OrdersListResponse.fromJson(data)); | 2051 return _response.then((data) => new OrdersListResponse.fromJson(data)); |
2054 } | 2052 } |
2055 | 2053 |
2056 /** | 2054 /// Refund a portion of the order, up to the full amount paid. This method |
2057 * Refund a portion of the order, up to the full amount paid. This method can | 2055 /// can only be called for non-multi-client accounts. |
2058 * only be called for non-multi-client accounts. | 2056 /// |
2059 * | 2057 /// [request] - The metadata request object. |
2060 * [request] - The metadata request object. | 2058 /// |
2061 * | 2059 /// Request parameters: |
2062 * Request parameters: | 2060 /// |
2063 * | 2061 /// [merchantId] - The ID of the managing account. |
2064 * [merchantId] - The ID of the managing account. | 2062 /// |
2065 * | 2063 /// [orderId] - The ID of the order to refund. |
2066 * [orderId] - The ID of the order to refund. | 2064 /// |
2067 * | 2065 /// Completes with a [OrdersRefundResponse]. |
2068 * Completes with a [OrdersRefundResponse]. | 2066 /// |
2069 * | 2067 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2070 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2068 /// an error. |
2071 * error. | 2069 /// |
2072 * | 2070 /// If the used [http.Client] completes with an error when making a REST |
2073 * If the used [http.Client] completes with an error when making a REST call, | 2071 /// call, this method will complete with the same error. |
2074 * this method will complete with the same error. | 2072 async.Future<OrdersRefundResponse> refund(OrdersRefundRequest request, |
2075 */ | 2073 core.String merchantId, core.String orderId) { |
2076 async.Future<OrdersRefundResponse> refund(OrdersRefundRequest request, core.St
ring merchantId, core.String orderId) { | |
2077 var _url = null; | 2074 var _url = null; |
2078 var _queryParams = new core.Map(); | 2075 var _queryParams = new core.Map(); |
2079 var _uploadMedia = null; | 2076 var _uploadMedia = null; |
2080 var _uploadOptions = null; | 2077 var _uploadOptions = null; |
2081 var _downloadOptions = commons.DownloadOptions.Metadata; | 2078 var _downloadOptions = commons.DownloadOptions.Metadata; |
2082 var _body = null; | 2079 var _body = null; |
2083 | 2080 |
2084 if (request != null) { | 2081 if (request != null) { |
2085 _body = convert.JSON.encode((request).toJson()); | 2082 _body = convert.JSON.encode((request).toJson()); |
2086 } | 2083 } |
2087 if (merchantId == null) { | 2084 if (merchantId == null) { |
2088 throw new core.ArgumentError("Parameter merchantId is required."); | 2085 throw new core.ArgumentError("Parameter merchantId is required."); |
2089 } | 2086 } |
2090 if (orderId == null) { | 2087 if (orderId == null) { |
2091 throw new core.ArgumentError("Parameter orderId is required."); | 2088 throw new core.ArgumentError("Parameter orderId is required."); |
2092 } | 2089 } |
2093 | 2090 |
2094 _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.E
scaper.ecapeVariable('$orderId') + '/refund'; | 2091 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 2092 '/orders/' + |
| 2093 commons.Escaper.ecapeVariable('$orderId') + |
| 2094 '/refund'; |
2095 | 2095 |
2096 var _response = _requester.request(_url, | 2096 var _response = _requester.request(_url, "POST", |
2097 "POST", | 2097 body: _body, |
2098 body: _body, | 2098 queryParams: _queryParams, |
2099 queryParams: _queryParams, | 2099 uploadOptions: _uploadOptions, |
2100 uploadOptions: _uploadOptions, | 2100 uploadMedia: _uploadMedia, |
2101 uploadMedia: _uploadMedia, | 2101 downloadOptions: _downloadOptions); |
2102 downloadOptions: _downloadOptions); | |
2103 return _response.then((data) => new OrdersRefundResponse.fromJson(data)); | 2102 return _response.then((data) => new OrdersRefundResponse.fromJson(data)); |
2104 } | 2103 } |
2105 | 2104 |
2106 /** | 2105 /// Returns a line item. This method can only be called for non-multi-client |
2107 * Returns a line item. This method can only be called for non-multi-client | 2106 /// accounts. |
2108 * accounts. | 2107 /// |
2109 * | 2108 /// [request] - The metadata request object. |
2110 * [request] - The metadata request object. | 2109 /// |
2111 * | 2110 /// Request parameters: |
2112 * Request parameters: | 2111 /// |
2113 * | 2112 /// [merchantId] - The ID of the managing account. |
2114 * [merchantId] - The ID of the managing account. | 2113 /// |
2115 * | 2114 /// [orderId] - The ID of the order. |
2116 * [orderId] - The ID of the order. | 2115 /// |
2117 * | 2116 /// Completes with a [OrdersReturnLineItemResponse]. |
2118 * Completes with a [OrdersReturnLineItemResponse]. | 2117 /// |
2119 * | 2118 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2120 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2119 /// an error. |
2121 * error. | 2120 /// |
2122 * | 2121 /// If the used [http.Client] completes with an error when making a REST |
2123 * If the used [http.Client] completes with an error when making a REST call, | 2122 /// call, this method will complete with the same error. |
2124 * this method will complete with the same error. | 2123 async.Future<OrdersReturnLineItemResponse> returnlineitem( |
2125 */ | 2124 OrdersReturnLineItemRequest request, |
2126 async.Future<OrdersReturnLineItemResponse> returnlineitem(OrdersReturnLineItem
Request request, core.String merchantId, core.String orderId) { | 2125 core.String merchantId, |
| 2126 core.String orderId) { |
2127 var _url = null; | 2127 var _url = null; |
2128 var _queryParams = new core.Map(); | 2128 var _queryParams = new core.Map(); |
2129 var _uploadMedia = null; | 2129 var _uploadMedia = null; |
2130 var _uploadOptions = null; | 2130 var _uploadOptions = null; |
2131 var _downloadOptions = commons.DownloadOptions.Metadata; | 2131 var _downloadOptions = commons.DownloadOptions.Metadata; |
2132 var _body = null; | 2132 var _body = null; |
2133 | 2133 |
2134 if (request != null) { | 2134 if (request != null) { |
2135 _body = convert.JSON.encode((request).toJson()); | 2135 _body = convert.JSON.encode((request).toJson()); |
2136 } | 2136 } |
2137 if (merchantId == null) { | 2137 if (merchantId == null) { |
2138 throw new core.ArgumentError("Parameter merchantId is required."); | 2138 throw new core.ArgumentError("Parameter merchantId is required."); |
2139 } | 2139 } |
2140 if (orderId == null) { | 2140 if (orderId == null) { |
2141 throw new core.ArgumentError("Parameter orderId is required."); | 2141 throw new core.ArgumentError("Parameter orderId is required."); |
2142 } | 2142 } |
2143 | 2143 |
2144 _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.E
scaper.ecapeVariable('$orderId') + '/returnLineItem'; | 2144 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 2145 '/orders/' + |
| 2146 commons.Escaper.ecapeVariable('$orderId') + |
| 2147 '/returnLineItem'; |
2145 | 2148 |
2146 var _response = _requester.request(_url, | 2149 var _response = _requester.request(_url, "POST", |
2147 "POST", | 2150 body: _body, |
2148 body: _body, | 2151 queryParams: _queryParams, |
2149 queryParams: _queryParams, | 2152 uploadOptions: _uploadOptions, |
2150 uploadOptions: _uploadOptions, | 2153 uploadMedia: _uploadMedia, |
2151 uploadMedia: _uploadMedia, | 2154 downloadOptions: _downloadOptions); |
2152 downloadOptions: _downloadOptions); | 2155 return _response |
2153 return _response.then((data) => new OrdersReturnLineItemResponse.fromJson(da
ta)); | 2156 .then((data) => new OrdersReturnLineItemResponse.fromJson(data)); |
2154 } | 2157 } |
2155 | 2158 |
2156 /** | 2159 /// Marks line item(s) as shipped. This method can only be called for |
2157 * Marks line item(s) as shipped. This method can only be called for | 2160 /// non-multi-client accounts. |
2158 * non-multi-client accounts. | 2161 /// |
2159 * | 2162 /// [request] - The metadata request object. |
2160 * [request] - The metadata request object. | 2163 /// |
2161 * | 2164 /// Request parameters: |
2162 * Request parameters: | 2165 /// |
2163 * | 2166 /// [merchantId] - The ID of the managing account. |
2164 * [merchantId] - The ID of the managing account. | 2167 /// |
2165 * | 2168 /// [orderId] - The ID of the order. |
2166 * [orderId] - The ID of the order. | 2169 /// |
2167 * | 2170 /// Completes with a [OrdersShipLineItemsResponse]. |
2168 * Completes with a [OrdersShipLineItemsResponse]. | 2171 /// |
2169 * | 2172 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2170 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2173 /// an error. |
2171 * error. | 2174 /// |
2172 * | 2175 /// If the used [http.Client] completes with an error when making a REST |
2173 * If the used [http.Client] completes with an error when making a REST call, | 2176 /// call, this method will complete with the same error. |
2174 * this method will complete with the same error. | 2177 async.Future<OrdersShipLineItemsResponse> shiplineitems( |
2175 */ | 2178 OrdersShipLineItemsRequest request, |
2176 async.Future<OrdersShipLineItemsResponse> shiplineitems(OrdersShipLineItemsReq
uest request, core.String merchantId, core.String orderId) { | 2179 core.String merchantId, |
| 2180 core.String orderId) { |
2177 var _url = null; | 2181 var _url = null; |
2178 var _queryParams = new core.Map(); | 2182 var _queryParams = new core.Map(); |
2179 var _uploadMedia = null; | 2183 var _uploadMedia = null; |
2180 var _uploadOptions = null; | 2184 var _uploadOptions = null; |
2181 var _downloadOptions = commons.DownloadOptions.Metadata; | 2185 var _downloadOptions = commons.DownloadOptions.Metadata; |
2182 var _body = null; | 2186 var _body = null; |
2183 | 2187 |
2184 if (request != null) { | 2188 if (request != null) { |
2185 _body = convert.JSON.encode((request).toJson()); | 2189 _body = convert.JSON.encode((request).toJson()); |
2186 } | 2190 } |
2187 if (merchantId == null) { | 2191 if (merchantId == null) { |
2188 throw new core.ArgumentError("Parameter merchantId is required."); | 2192 throw new core.ArgumentError("Parameter merchantId is required."); |
2189 } | 2193 } |
2190 if (orderId == null) { | 2194 if (orderId == null) { |
2191 throw new core.ArgumentError("Parameter orderId is required."); | 2195 throw new core.ArgumentError("Parameter orderId is required."); |
2192 } | 2196 } |
2193 | 2197 |
2194 _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.E
scaper.ecapeVariable('$orderId') + '/shipLineItems'; | 2198 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 2199 '/orders/' + |
| 2200 commons.Escaper.ecapeVariable('$orderId') + |
| 2201 '/shipLineItems'; |
2195 | 2202 |
2196 var _response = _requester.request(_url, | 2203 var _response = _requester.request(_url, "POST", |
2197 "POST", | 2204 body: _body, |
2198 body: _body, | 2205 queryParams: _queryParams, |
2199 queryParams: _queryParams, | 2206 uploadOptions: _uploadOptions, |
2200 uploadOptions: _uploadOptions, | 2207 uploadMedia: _uploadMedia, |
2201 uploadMedia: _uploadMedia, | 2208 downloadOptions: _downloadOptions); |
2202 downloadOptions: _downloadOptions); | 2209 return _response |
2203 return _response.then((data) => new OrdersShipLineItemsResponse.fromJson(dat
a)); | 2210 .then((data) => new OrdersShipLineItemsResponse.fromJson(data)); |
2204 } | 2211 } |
2205 | 2212 |
2206 /** | 2213 /// Updates the merchant order ID for a given order. This method can only be |
2207 * Updates the merchant order ID for a given order. This method can only be | 2214 /// called for non-multi-client accounts. |
2208 * called for non-multi-client accounts. | 2215 /// |
2209 * | 2216 /// [request] - The metadata request object. |
2210 * [request] - The metadata request object. | 2217 /// |
2211 * | 2218 /// Request parameters: |
2212 * Request parameters: | 2219 /// |
2213 * | 2220 /// [merchantId] - The ID of the managing account. |
2214 * [merchantId] - The ID of the managing account. | 2221 /// |
2215 * | 2222 /// [orderId] - The ID of the order. |
2216 * [orderId] - The ID of the order. | 2223 /// |
2217 * | 2224 /// Completes with a [OrdersUpdateMerchantOrderIdResponse]. |
2218 * Completes with a [OrdersUpdateMerchantOrderIdResponse]. | 2225 /// |
2219 * | 2226 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2220 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2227 /// an error. |
2221 * error. | 2228 /// |
2222 * | 2229 /// If the used [http.Client] completes with an error when making a REST |
2223 * If the used [http.Client] completes with an error when making a REST call, | 2230 /// call, this method will complete with the same error. |
2224 * this method will complete with the same error. | 2231 async.Future<OrdersUpdateMerchantOrderIdResponse> updatemerchantorderid( |
2225 */ | 2232 OrdersUpdateMerchantOrderIdRequest request, |
2226 async.Future<OrdersUpdateMerchantOrderIdResponse> updatemerchantorderid(Orders
UpdateMerchantOrderIdRequest request, core.String merchantId, core.String orderI
d) { | 2233 core.String merchantId, |
| 2234 core.String orderId) { |
2227 var _url = null; | 2235 var _url = null; |
2228 var _queryParams = new core.Map(); | 2236 var _queryParams = new core.Map(); |
2229 var _uploadMedia = null; | 2237 var _uploadMedia = null; |
2230 var _uploadOptions = null; | 2238 var _uploadOptions = null; |
2231 var _downloadOptions = commons.DownloadOptions.Metadata; | 2239 var _downloadOptions = commons.DownloadOptions.Metadata; |
2232 var _body = null; | 2240 var _body = null; |
2233 | 2241 |
2234 if (request != null) { | 2242 if (request != null) { |
2235 _body = convert.JSON.encode((request).toJson()); | 2243 _body = convert.JSON.encode((request).toJson()); |
2236 } | 2244 } |
2237 if (merchantId == null) { | 2245 if (merchantId == null) { |
2238 throw new core.ArgumentError("Parameter merchantId is required."); | 2246 throw new core.ArgumentError("Parameter merchantId is required."); |
2239 } | 2247 } |
2240 if (orderId == null) { | 2248 if (orderId == null) { |
2241 throw new core.ArgumentError("Parameter orderId is required."); | 2249 throw new core.ArgumentError("Parameter orderId is required."); |
2242 } | 2250 } |
2243 | 2251 |
2244 _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.E
scaper.ecapeVariable('$orderId') + '/updateMerchantOrderId'; | 2252 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 2253 '/orders/' + |
| 2254 commons.Escaper.ecapeVariable('$orderId') + |
| 2255 '/updateMerchantOrderId'; |
2245 | 2256 |
2246 var _response = _requester.request(_url, | 2257 var _response = _requester.request(_url, "POST", |
2247 "POST", | 2258 body: _body, |
2248 body: _body, | 2259 queryParams: _queryParams, |
2249 queryParams: _queryParams, | 2260 uploadOptions: _uploadOptions, |
2250 uploadOptions: _uploadOptions, | 2261 uploadMedia: _uploadMedia, |
2251 uploadMedia: _uploadMedia, | 2262 downloadOptions: _downloadOptions); |
2252 downloadOptions: _downloadOptions); | 2263 return _response |
2253 return _response.then((data) => new OrdersUpdateMerchantOrderIdResponse.from
Json(data)); | 2264 .then((data) => new OrdersUpdateMerchantOrderIdResponse.fromJson(data)); |
2254 } | 2265 } |
2255 | 2266 |
2256 /** | 2267 /// Updates a shipment's status, carrier, and/or tracking ID. This method can |
2257 * Updates a shipment's status, carrier, and/or tracking ID. This method can | 2268 /// only be called for non-multi-client accounts. |
2258 * only be called for non-multi-client accounts. | 2269 /// |
2259 * | 2270 /// [request] - The metadata request object. |
2260 * [request] - The metadata request object. | 2271 /// |
2261 * | 2272 /// Request parameters: |
2262 * Request parameters: | 2273 /// |
2263 * | 2274 /// [merchantId] - The ID of the managing account. |
2264 * [merchantId] - The ID of the managing account. | 2275 /// |
2265 * | 2276 /// [orderId] - The ID of the order. |
2266 * [orderId] - The ID of the order. | 2277 /// |
2267 * | 2278 /// Completes with a [OrdersUpdateShipmentResponse]. |
2268 * Completes with a [OrdersUpdateShipmentResponse]. | 2279 /// |
2269 * | 2280 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2270 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2281 /// an error. |
2271 * error. | 2282 /// |
2272 * | 2283 /// If the used [http.Client] completes with an error when making a REST |
2273 * If the used [http.Client] completes with an error when making a REST call, | 2284 /// call, this method will complete with the same error. |
2274 * this method will complete with the same error. | 2285 async.Future<OrdersUpdateShipmentResponse> updateshipment( |
2275 */ | 2286 OrdersUpdateShipmentRequest request, |
2276 async.Future<OrdersUpdateShipmentResponse> updateshipment(OrdersUpdateShipment
Request request, core.String merchantId, core.String orderId) { | 2287 core.String merchantId, |
| 2288 core.String orderId) { |
2277 var _url = null; | 2289 var _url = null; |
2278 var _queryParams = new core.Map(); | 2290 var _queryParams = new core.Map(); |
2279 var _uploadMedia = null; | 2291 var _uploadMedia = null; |
2280 var _uploadOptions = null; | 2292 var _uploadOptions = null; |
2281 var _downloadOptions = commons.DownloadOptions.Metadata; | 2293 var _downloadOptions = commons.DownloadOptions.Metadata; |
2282 var _body = null; | 2294 var _body = null; |
2283 | 2295 |
2284 if (request != null) { | 2296 if (request != null) { |
2285 _body = convert.JSON.encode((request).toJson()); | 2297 _body = convert.JSON.encode((request).toJson()); |
2286 } | 2298 } |
2287 if (merchantId == null) { | 2299 if (merchantId == null) { |
2288 throw new core.ArgumentError("Parameter merchantId is required."); | 2300 throw new core.ArgumentError("Parameter merchantId is required."); |
2289 } | 2301 } |
2290 if (orderId == null) { | 2302 if (orderId == null) { |
2291 throw new core.ArgumentError("Parameter orderId is required."); | 2303 throw new core.ArgumentError("Parameter orderId is required."); |
2292 } | 2304 } |
2293 | 2305 |
2294 _url = commons.Escaper.ecapeVariable('$merchantId') + '/orders/' + commons.E
scaper.ecapeVariable('$orderId') + '/updateShipment'; | 2306 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 2307 '/orders/' + |
| 2308 commons.Escaper.ecapeVariable('$orderId') + |
| 2309 '/updateShipment'; |
2295 | 2310 |
2296 var _response = _requester.request(_url, | 2311 var _response = _requester.request(_url, "POST", |
2297 "POST", | 2312 body: _body, |
2298 body: _body, | 2313 queryParams: _queryParams, |
2299 queryParams: _queryParams, | 2314 uploadOptions: _uploadOptions, |
2300 uploadOptions: _uploadOptions, | 2315 uploadMedia: _uploadMedia, |
2301 uploadMedia: _uploadMedia, | 2316 downloadOptions: _downloadOptions); |
2302 downloadOptions: _downloadOptions); | 2317 return _response |
2303 return _response.then((data) => new OrdersUpdateShipmentResponse.fromJson(da
ta)); | 2318 .then((data) => new OrdersUpdateShipmentResponse.fromJson(data)); |
2304 } | 2319 } |
2305 | |
2306 } | 2320 } |
2307 | 2321 |
2308 | |
2309 class ProductsResourceApi { | 2322 class ProductsResourceApi { |
2310 final commons.ApiRequester _requester; | 2323 final commons.ApiRequester _requester; |
2311 | 2324 |
2312 ProductsResourceApi(commons.ApiRequester client) : | 2325 ProductsResourceApi(commons.ApiRequester client) : _requester = client; |
2313 _requester = client; | |
2314 | 2326 |
2315 /** | 2327 /// Retrieves, inserts, and deletes multiple products in a single request. |
2316 * Retrieves, inserts, and deletes multiple products in a single request. This | 2328 /// This method can only be called for non-multi-client accounts. |
2317 * method can only be called for non-multi-client accounts. | 2329 /// |
2318 * | 2330 /// [request] - The metadata request object. |
2319 * [request] - The metadata request object. | 2331 /// |
2320 * | 2332 /// Request parameters: |
2321 * Request parameters: | 2333 /// |
2322 * | 2334 /// [dryRun] - Flag to run the request in dry-run mode. |
2323 * [dryRun] - Flag to run the request in dry-run mode. | 2335 /// |
2324 * | 2336 /// Completes with a [ProductsCustomBatchResponse]. |
2325 * Completes with a [ProductsCustomBatchResponse]. | 2337 /// |
2326 * | 2338 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2327 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2339 /// an error. |
2328 * error. | 2340 /// |
2329 * | 2341 /// If the used [http.Client] completes with an error when making a REST |
2330 * If the used [http.Client] completes with an error when making a REST call, | 2342 /// call, this method will complete with the same error. |
2331 * this method will complete with the same error. | 2343 async.Future<ProductsCustomBatchResponse> custombatch( |
2332 */ | 2344 ProductsCustomBatchRequest request, |
2333 async.Future<ProductsCustomBatchResponse> custombatch(ProductsCustomBatchReque
st request, {core.bool dryRun}) { | 2345 {core.bool dryRun}) { |
2334 var _url = null; | 2346 var _url = null; |
2335 var _queryParams = new core.Map(); | 2347 var _queryParams = new core.Map(); |
2336 var _uploadMedia = null; | 2348 var _uploadMedia = null; |
2337 var _uploadOptions = null; | 2349 var _uploadOptions = null; |
2338 var _downloadOptions = commons.DownloadOptions.Metadata; | 2350 var _downloadOptions = commons.DownloadOptions.Metadata; |
2339 var _body = null; | 2351 var _body = null; |
2340 | 2352 |
2341 if (request != null) { | 2353 if (request != null) { |
2342 _body = convert.JSON.encode((request).toJson()); | 2354 _body = convert.JSON.encode((request).toJson()); |
2343 } | 2355 } |
2344 if (dryRun != null) { | 2356 if (dryRun != null) { |
2345 _queryParams["dryRun"] = ["${dryRun}"]; | 2357 _queryParams["dryRun"] = ["${dryRun}"]; |
2346 } | 2358 } |
2347 | 2359 |
2348 _url = 'products/batch'; | 2360 _url = 'products/batch'; |
2349 | 2361 |
2350 var _response = _requester.request(_url, | 2362 var _response = _requester.request(_url, "POST", |
2351 "POST", | 2363 body: _body, |
2352 body: _body, | 2364 queryParams: _queryParams, |
2353 queryParams: _queryParams, | 2365 uploadOptions: _uploadOptions, |
2354 uploadOptions: _uploadOptions, | 2366 uploadMedia: _uploadMedia, |
2355 uploadMedia: _uploadMedia, | 2367 downloadOptions: _downloadOptions); |
2356 downloadOptions: _downloadOptions); | 2368 return _response |
2357 return _response.then((data) => new ProductsCustomBatchResponse.fromJson(dat
a)); | 2369 .then((data) => new ProductsCustomBatchResponse.fromJson(data)); |
2358 } | 2370 } |
2359 | 2371 |
2360 /** | 2372 /// Deletes a product from your Merchant Center account. This method can only |
2361 * Deletes a product from your Merchant Center account. This method can only | 2373 /// be called for non-multi-client accounts. |
2362 * be called for non-multi-client accounts. | 2374 /// |
2363 * | 2375 /// Request parameters: |
2364 * Request parameters: | 2376 /// |
2365 * | 2377 /// [merchantId] - The ID of the managing account. |
2366 * [merchantId] - The ID of the managing account. | 2378 /// |
2367 * | 2379 /// [productId] - The ID of the product. |
2368 * [productId] - The ID of the product. | 2380 /// |
2369 * | 2381 /// [dryRun] - Flag to run the request in dry-run mode. |
2370 * [dryRun] - Flag to run the request in dry-run mode. | 2382 /// |
2371 * | 2383 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2372 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2384 /// an error. |
2373 * error. | 2385 /// |
2374 * | 2386 /// If the used [http.Client] completes with an error when making a REST |
2375 * If the used [http.Client] completes with an error when making a REST call, | 2387 /// call, this method will complete with the same error. |
2376 * this method will complete with the same error. | 2388 async.Future delete(core.String merchantId, core.String productId, |
2377 */ | 2389 {core.bool dryRun}) { |
2378 async.Future delete(core.String merchantId, core.String productId, {core.bool
dryRun}) { | |
2379 var _url = null; | 2390 var _url = null; |
2380 var _queryParams = new core.Map(); | 2391 var _queryParams = new core.Map(); |
2381 var _uploadMedia = null; | 2392 var _uploadMedia = null; |
2382 var _uploadOptions = null; | 2393 var _uploadOptions = null; |
2383 var _downloadOptions = commons.DownloadOptions.Metadata; | 2394 var _downloadOptions = commons.DownloadOptions.Metadata; |
2384 var _body = null; | 2395 var _body = null; |
2385 | 2396 |
2386 if (merchantId == null) { | 2397 if (merchantId == null) { |
2387 throw new core.ArgumentError("Parameter merchantId is required."); | 2398 throw new core.ArgumentError("Parameter merchantId is required."); |
2388 } | 2399 } |
2389 if (productId == null) { | 2400 if (productId == null) { |
2390 throw new core.ArgumentError("Parameter productId is required."); | 2401 throw new core.ArgumentError("Parameter productId is required."); |
2391 } | 2402 } |
2392 if (dryRun != null) { | 2403 if (dryRun != null) { |
2393 _queryParams["dryRun"] = ["${dryRun}"]; | 2404 _queryParams["dryRun"] = ["${dryRun}"]; |
2394 } | 2405 } |
2395 | 2406 |
2396 _downloadOptions = null; | 2407 _downloadOptions = null; |
2397 | 2408 |
2398 _url = commons.Escaper.ecapeVariable('$merchantId') + '/products/' + commons
.Escaper.ecapeVariable('$productId'); | 2409 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 2410 '/products/' + |
| 2411 commons.Escaper.ecapeVariable('$productId'); |
2399 | 2412 |
2400 var _response = _requester.request(_url, | 2413 var _response = _requester.request(_url, "DELETE", |
2401 "DELETE", | 2414 body: _body, |
2402 body: _body, | 2415 queryParams: _queryParams, |
2403 queryParams: _queryParams, | 2416 uploadOptions: _uploadOptions, |
2404 uploadOptions: _uploadOptions, | 2417 uploadMedia: _uploadMedia, |
2405 uploadMedia: _uploadMedia, | 2418 downloadOptions: _downloadOptions); |
2406 downloadOptions: _downloadOptions); | |
2407 return _response.then((data) => null); | 2419 return _response.then((data) => null); |
2408 } | 2420 } |
2409 | 2421 |
2410 /** | 2422 /// Retrieves a product from your Merchant Center account. This method can |
2411 * Retrieves a product from your Merchant Center account. This method can only | 2423 /// only be called for non-multi-client accounts. |
2412 * be called for non-multi-client accounts. | 2424 /// |
2413 * | 2425 /// Request parameters: |
2414 * Request parameters: | 2426 /// |
2415 * | 2427 /// [merchantId] - The ID of the managing account. |
2416 * [merchantId] - The ID of the managing account. | 2428 /// |
2417 * | 2429 /// [productId] - The ID of the product. |
2418 * [productId] - The ID of the product. | 2430 /// |
2419 * | 2431 /// Completes with a [Product]. |
2420 * Completes with a [Product]. | 2432 /// |
2421 * | 2433 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2422 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2434 /// an error. |
2423 * error. | 2435 /// |
2424 * | 2436 /// If the used [http.Client] completes with an error when making a REST |
2425 * If the used [http.Client] completes with an error when making a REST call, | 2437 /// call, this method will complete with the same error. |
2426 * this method will complete with the same error. | |
2427 */ | |
2428 async.Future<Product> get(core.String merchantId, core.String productId) { | 2438 async.Future<Product> get(core.String merchantId, core.String productId) { |
2429 var _url = null; | 2439 var _url = null; |
2430 var _queryParams = new core.Map(); | 2440 var _queryParams = new core.Map(); |
2431 var _uploadMedia = null; | 2441 var _uploadMedia = null; |
2432 var _uploadOptions = null; | 2442 var _uploadOptions = null; |
2433 var _downloadOptions = commons.DownloadOptions.Metadata; | 2443 var _downloadOptions = commons.DownloadOptions.Metadata; |
2434 var _body = null; | 2444 var _body = null; |
2435 | 2445 |
2436 if (merchantId == null) { | 2446 if (merchantId == null) { |
2437 throw new core.ArgumentError("Parameter merchantId is required."); | 2447 throw new core.ArgumentError("Parameter merchantId is required."); |
2438 } | 2448 } |
2439 if (productId == null) { | 2449 if (productId == null) { |
2440 throw new core.ArgumentError("Parameter productId is required."); | 2450 throw new core.ArgumentError("Parameter productId is required."); |
2441 } | 2451 } |
2442 | 2452 |
2443 _url = commons.Escaper.ecapeVariable('$merchantId') + '/products/' + commons
.Escaper.ecapeVariable('$productId'); | 2453 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 2454 '/products/' + |
| 2455 commons.Escaper.ecapeVariable('$productId'); |
2444 | 2456 |
2445 var _response = _requester.request(_url, | 2457 var _response = _requester.request(_url, "GET", |
2446 "GET", | 2458 body: _body, |
2447 body: _body, | 2459 queryParams: _queryParams, |
2448 queryParams: _queryParams, | 2460 uploadOptions: _uploadOptions, |
2449 uploadOptions: _uploadOptions, | 2461 uploadMedia: _uploadMedia, |
2450 uploadMedia: _uploadMedia, | 2462 downloadOptions: _downloadOptions); |
2451 downloadOptions: _downloadOptions); | |
2452 return _response.then((data) => new Product.fromJson(data)); | 2463 return _response.then((data) => new Product.fromJson(data)); |
2453 } | 2464 } |
2454 | 2465 |
2455 /** | 2466 /// Uploads a product to your Merchant Center account. If an item with the |
2456 * Uploads a product to your Merchant Center account. If an item with the same | 2467 /// same channel, contentLanguage, offerId, and targetCountry already exists, |
2457 * channel, contentLanguage, offerId, and targetCountry already exists, this | 2468 /// this method updates that entry. This method can only be called for |
2458 * method updates that entry. This method can only be called for | 2469 /// non-multi-client accounts. |
2459 * non-multi-client accounts. | 2470 /// |
2460 * | 2471 /// [request] - The metadata request object. |
2461 * [request] - The metadata request object. | 2472 /// |
2462 * | 2473 /// Request parameters: |
2463 * Request parameters: | 2474 /// |
2464 * | 2475 /// [merchantId] - The ID of the managing account. |
2465 * [merchantId] - The ID of the managing account. | 2476 /// |
2466 * | 2477 /// [dryRun] - Flag to run the request in dry-run mode. |
2467 * [dryRun] - Flag to run the request in dry-run mode. | 2478 /// |
2468 * | 2479 /// Completes with a [Product]. |
2469 * Completes with a [Product]. | 2480 /// |
2470 * | 2481 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2471 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2482 /// an error. |
2472 * error. | 2483 /// |
2473 * | 2484 /// If the used [http.Client] completes with an error when making a REST |
2474 * If the used [http.Client] completes with an error when making a REST call, | 2485 /// call, this method will complete with the same error. |
2475 * this method will complete with the same error. | 2486 async.Future<Product> insert(Product request, core.String merchantId, |
2476 */ | 2487 {core.bool dryRun}) { |
2477 async.Future<Product> insert(Product request, core.String merchantId, {core.bo
ol dryRun}) { | |
2478 var _url = null; | 2488 var _url = null; |
2479 var _queryParams = new core.Map(); | 2489 var _queryParams = new core.Map(); |
2480 var _uploadMedia = null; | 2490 var _uploadMedia = null; |
2481 var _uploadOptions = null; | 2491 var _uploadOptions = null; |
2482 var _downloadOptions = commons.DownloadOptions.Metadata; | 2492 var _downloadOptions = commons.DownloadOptions.Metadata; |
2483 var _body = null; | 2493 var _body = null; |
2484 | 2494 |
2485 if (request != null) { | 2495 if (request != null) { |
2486 _body = convert.JSON.encode((request).toJson()); | 2496 _body = convert.JSON.encode((request).toJson()); |
2487 } | 2497 } |
2488 if (merchantId == null) { | 2498 if (merchantId == null) { |
2489 throw new core.ArgumentError("Parameter merchantId is required."); | 2499 throw new core.ArgumentError("Parameter merchantId is required."); |
2490 } | 2500 } |
2491 if (dryRun != null) { | 2501 if (dryRun != null) { |
2492 _queryParams["dryRun"] = ["${dryRun}"]; | 2502 _queryParams["dryRun"] = ["${dryRun}"]; |
2493 } | 2503 } |
2494 | 2504 |
2495 _url = commons.Escaper.ecapeVariable('$merchantId') + '/products'; | 2505 _url = commons.Escaper.ecapeVariable('$merchantId') + '/products'; |
2496 | 2506 |
2497 var _response = _requester.request(_url, | 2507 var _response = _requester.request(_url, "POST", |
2498 "POST", | 2508 body: _body, |
2499 body: _body, | 2509 queryParams: _queryParams, |
2500 queryParams: _queryParams, | 2510 uploadOptions: _uploadOptions, |
2501 uploadOptions: _uploadOptions, | 2511 uploadMedia: _uploadMedia, |
2502 uploadMedia: _uploadMedia, | 2512 downloadOptions: _downloadOptions); |
2503 downloadOptions: _downloadOptions); | |
2504 return _response.then((data) => new Product.fromJson(data)); | 2513 return _response.then((data) => new Product.fromJson(data)); |
2505 } | 2514 } |
2506 | 2515 |
2507 /** | 2516 /// Lists the products in your Merchant Center account. This method can only |
2508 * Lists the products in your Merchant Center account. This method can only be | 2517 /// be called for non-multi-client accounts. |
2509 * called for non-multi-client accounts. | 2518 /// |
2510 * | 2519 /// Request parameters: |
2511 * Request parameters: | 2520 /// |
2512 * | 2521 /// [merchantId] - The ID of the managing account. |
2513 * [merchantId] - The ID of the managing account. | 2522 /// |
2514 * | 2523 /// [includeInvalidInsertedItems] - Flag to include the invalid inserted |
2515 * [includeInvalidInsertedItems] - Flag to include the invalid inserted items | 2524 /// items in the result of the list request. By default the invalid items are |
2516 * in the result of the list request. By default the invalid items are not | 2525 /// not shown (the default value is false). |
2517 * shown (the default value is false). | 2526 /// |
2518 * | 2527 /// [maxResults] - The maximum number of products to return in the response, |
2519 * [maxResults] - The maximum number of products to return in the response, | 2528 /// used for paging. |
2520 * used for paging. | 2529 /// |
2521 * | 2530 /// [pageToken] - The token returned by the previous request. |
2522 * [pageToken] - The token returned by the previous request. | 2531 /// |
2523 * | 2532 /// Completes with a [ProductsListResponse]. |
2524 * Completes with a [ProductsListResponse]. | 2533 /// |
2525 * | 2534 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2526 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2535 /// an error. |
2527 * error. | 2536 /// |
2528 * | 2537 /// If the used [http.Client] completes with an error when making a REST |
2529 * If the used [http.Client] completes with an error when making a REST call, | 2538 /// call, this method will complete with the same error. |
2530 * this method will complete with the same error. | 2539 async.Future<ProductsListResponse> list(core.String merchantId, |
2531 */ | 2540 {core.bool includeInvalidInsertedItems, |
2532 async.Future<ProductsListResponse> list(core.String merchantId, {core.bool inc
ludeInvalidInsertedItems, core.int maxResults, core.String pageToken}) { | 2541 core.int maxResults, |
| 2542 core.String pageToken}) { |
2533 var _url = null; | 2543 var _url = null; |
2534 var _queryParams = new core.Map(); | 2544 var _queryParams = new core.Map(); |
2535 var _uploadMedia = null; | 2545 var _uploadMedia = null; |
2536 var _uploadOptions = null; | 2546 var _uploadOptions = null; |
2537 var _downloadOptions = commons.DownloadOptions.Metadata; | 2547 var _downloadOptions = commons.DownloadOptions.Metadata; |
2538 var _body = null; | 2548 var _body = null; |
2539 | 2549 |
2540 if (merchantId == null) { | 2550 if (merchantId == null) { |
2541 throw new core.ArgumentError("Parameter merchantId is required."); | 2551 throw new core.ArgumentError("Parameter merchantId is required."); |
2542 } | 2552 } |
2543 if (includeInvalidInsertedItems != null) { | 2553 if (includeInvalidInsertedItems != null) { |
2544 _queryParams["includeInvalidInsertedItems"] = ["${includeInvalidInsertedIt
ems}"]; | 2554 _queryParams["includeInvalidInsertedItems"] = [ |
| 2555 "${includeInvalidInsertedItems}" |
| 2556 ]; |
2545 } | 2557 } |
2546 if (maxResults != null) { | 2558 if (maxResults != null) { |
2547 _queryParams["maxResults"] = ["${maxResults}"]; | 2559 _queryParams["maxResults"] = ["${maxResults}"]; |
2548 } | 2560 } |
2549 if (pageToken != null) { | 2561 if (pageToken != null) { |
2550 _queryParams["pageToken"] = [pageToken]; | 2562 _queryParams["pageToken"] = [pageToken]; |
2551 } | 2563 } |
2552 | 2564 |
2553 _url = commons.Escaper.ecapeVariable('$merchantId') + '/products'; | 2565 _url = commons.Escaper.ecapeVariable('$merchantId') + '/products'; |
2554 | 2566 |
2555 var _response = _requester.request(_url, | 2567 var _response = _requester.request(_url, "GET", |
2556 "GET", | 2568 body: _body, |
2557 body: _body, | 2569 queryParams: _queryParams, |
2558 queryParams: _queryParams, | 2570 uploadOptions: _uploadOptions, |
2559 uploadOptions: _uploadOptions, | 2571 uploadMedia: _uploadMedia, |
2560 uploadMedia: _uploadMedia, | 2572 downloadOptions: _downloadOptions); |
2561 downloadOptions: _downloadOptions); | |
2562 return _response.then((data) => new ProductsListResponse.fromJson(data)); | 2573 return _response.then((data) => new ProductsListResponse.fromJson(data)); |
2563 } | 2574 } |
2564 | |
2565 } | 2575 } |
2566 | 2576 |
2567 | |
2568 class ProductstatusesResourceApi { | 2577 class ProductstatusesResourceApi { |
2569 final commons.ApiRequester _requester; | 2578 final commons.ApiRequester _requester; |
2570 | 2579 |
2571 ProductstatusesResourceApi(commons.ApiRequester client) : | 2580 ProductstatusesResourceApi(commons.ApiRequester client) : _requester = client; |
2572 _requester = client; | |
2573 | 2581 |
2574 /** | 2582 /// Gets the statuses of multiple products in a single request. This method |
2575 * Gets the statuses of multiple products in a single request. This method can | 2583 /// can only be called for non-multi-client accounts. |
2576 * only be called for non-multi-client accounts. | 2584 /// |
2577 * | 2585 /// [request] - The metadata request object. |
2578 * [request] - The metadata request object. | 2586 /// |
2579 * | 2587 /// Request parameters: |
2580 * Request parameters: | 2588 /// |
2581 * | 2589 /// [includeAttributes] - Flag to include full product data in the results of |
2582 * [includeAttributes] - Flag to include full product data in the results of | 2590 /// this request. The default value is false. |
2583 * this request. The default value is false. | 2591 /// |
2584 * | 2592 /// Completes with a [ProductstatusesCustomBatchResponse]. |
2585 * Completes with a [ProductstatusesCustomBatchResponse]. | 2593 /// |
2586 * | 2594 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2587 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2595 /// an error. |
2588 * error. | 2596 /// |
2589 * | 2597 /// If the used [http.Client] completes with an error when making a REST |
2590 * If the used [http.Client] completes with an error when making a REST call, | 2598 /// call, this method will complete with the same error. |
2591 * this method will complete with the same error. | 2599 async.Future<ProductstatusesCustomBatchResponse> custombatch( |
2592 */ | 2600 ProductstatusesCustomBatchRequest request, |
2593 async.Future<ProductstatusesCustomBatchResponse> custombatch(ProductstatusesCu
stomBatchRequest request, {core.bool includeAttributes}) { | 2601 {core.bool includeAttributes}) { |
2594 var _url = null; | 2602 var _url = null; |
2595 var _queryParams = new core.Map(); | 2603 var _queryParams = new core.Map(); |
2596 var _uploadMedia = null; | 2604 var _uploadMedia = null; |
2597 var _uploadOptions = null; | 2605 var _uploadOptions = null; |
2598 var _downloadOptions = commons.DownloadOptions.Metadata; | 2606 var _downloadOptions = commons.DownloadOptions.Metadata; |
2599 var _body = null; | 2607 var _body = null; |
2600 | 2608 |
2601 if (request != null) { | 2609 if (request != null) { |
2602 _body = convert.JSON.encode((request).toJson()); | 2610 _body = convert.JSON.encode((request).toJson()); |
2603 } | 2611 } |
2604 if (includeAttributes != null) { | 2612 if (includeAttributes != null) { |
2605 _queryParams["includeAttributes"] = ["${includeAttributes}"]; | 2613 _queryParams["includeAttributes"] = ["${includeAttributes}"]; |
2606 } | 2614 } |
2607 | 2615 |
2608 _url = 'productstatuses/batch'; | 2616 _url = 'productstatuses/batch'; |
2609 | 2617 |
2610 var _response = _requester.request(_url, | 2618 var _response = _requester.request(_url, "POST", |
2611 "POST", | 2619 body: _body, |
2612 body: _body, | 2620 queryParams: _queryParams, |
2613 queryParams: _queryParams, | 2621 uploadOptions: _uploadOptions, |
2614 uploadOptions: _uploadOptions, | 2622 uploadMedia: _uploadMedia, |
2615 uploadMedia: _uploadMedia, | 2623 downloadOptions: _downloadOptions); |
2616 downloadOptions: _downloadOptions); | 2624 return _response |
2617 return _response.then((data) => new ProductstatusesCustomBatchResponse.fromJ
son(data)); | 2625 .then((data) => new ProductstatusesCustomBatchResponse.fromJson(data)); |
2618 } | 2626 } |
2619 | 2627 |
2620 /** | 2628 /// Gets the status of a product from your Merchant Center account. This |
2621 * Gets the status of a product from your Merchant Center account. This method | 2629 /// method can only be called for non-multi-client accounts. |
2622 * can only be called for non-multi-client accounts. | 2630 /// |
2623 * | 2631 /// Request parameters: |
2624 * Request parameters: | 2632 /// |
2625 * | 2633 /// [merchantId] - The ID of the managing account. |
2626 * [merchantId] - The ID of the managing account. | 2634 /// |
2627 * | 2635 /// [productId] - The ID of the product. |
2628 * [productId] - The ID of the product. | 2636 /// |
2629 * | 2637 /// [includeAttributes] - Flag to include full product data in the result of |
2630 * [includeAttributes] - Flag to include full product data in the result of | 2638 /// this get request. The default value is false. |
2631 * this get request. The default value is false. | 2639 /// |
2632 * | 2640 /// Completes with a [ProductStatus]. |
2633 * Completes with a [ProductStatus]. | 2641 /// |
2634 * | 2642 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2635 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2643 /// an error. |
2636 * error. | 2644 /// |
2637 * | 2645 /// If the used [http.Client] completes with an error when making a REST |
2638 * If the used [http.Client] completes with an error when making a REST call, | 2646 /// call, this method will complete with the same error. |
2639 * this method will complete with the same error. | 2647 async.Future<ProductStatus> get(core.String merchantId, core.String productId, |
2640 */ | 2648 {core.bool includeAttributes}) { |
2641 async.Future<ProductStatus> get(core.String merchantId, core.String productId,
{core.bool includeAttributes}) { | |
2642 var _url = null; | 2649 var _url = null; |
2643 var _queryParams = new core.Map(); | 2650 var _queryParams = new core.Map(); |
2644 var _uploadMedia = null; | 2651 var _uploadMedia = null; |
2645 var _uploadOptions = null; | 2652 var _uploadOptions = null; |
2646 var _downloadOptions = commons.DownloadOptions.Metadata; | 2653 var _downloadOptions = commons.DownloadOptions.Metadata; |
2647 var _body = null; | 2654 var _body = null; |
2648 | 2655 |
2649 if (merchantId == null) { | 2656 if (merchantId == null) { |
2650 throw new core.ArgumentError("Parameter merchantId is required."); | 2657 throw new core.ArgumentError("Parameter merchantId is required."); |
2651 } | 2658 } |
2652 if (productId == null) { | 2659 if (productId == null) { |
2653 throw new core.ArgumentError("Parameter productId is required."); | 2660 throw new core.ArgumentError("Parameter productId is required."); |
2654 } | 2661 } |
2655 if (includeAttributes != null) { | 2662 if (includeAttributes != null) { |
2656 _queryParams["includeAttributes"] = ["${includeAttributes}"]; | 2663 _queryParams["includeAttributes"] = ["${includeAttributes}"]; |
2657 } | 2664 } |
2658 | 2665 |
2659 _url = commons.Escaper.ecapeVariable('$merchantId') + '/productstatuses/' +
commons.Escaper.ecapeVariable('$productId'); | 2666 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 2667 '/productstatuses/' + |
| 2668 commons.Escaper.ecapeVariable('$productId'); |
2660 | 2669 |
2661 var _response = _requester.request(_url, | 2670 var _response = _requester.request(_url, "GET", |
2662 "GET", | 2671 body: _body, |
2663 body: _body, | 2672 queryParams: _queryParams, |
2664 queryParams: _queryParams, | 2673 uploadOptions: _uploadOptions, |
2665 uploadOptions: _uploadOptions, | 2674 uploadMedia: _uploadMedia, |
2666 uploadMedia: _uploadMedia, | 2675 downloadOptions: _downloadOptions); |
2667 downloadOptions: _downloadOptions); | |
2668 return _response.then((data) => new ProductStatus.fromJson(data)); | 2676 return _response.then((data) => new ProductStatus.fromJson(data)); |
2669 } | 2677 } |
2670 | 2678 |
2671 /** | 2679 /// Lists the statuses of the products in your Merchant Center account. This |
2672 * Lists the statuses of the products in your Merchant Center account. This | 2680 /// method can only be called for non-multi-client accounts. |
2673 * method can only be called for non-multi-client accounts. | 2681 /// |
2674 * | 2682 /// Request parameters: |
2675 * Request parameters: | 2683 /// |
2676 * | 2684 /// [merchantId] - The ID of the managing account. |
2677 * [merchantId] - The ID of the managing account. | 2685 /// |
2678 * | 2686 /// [includeAttributes] - Flag to include full product data in the results of |
2679 * [includeAttributes] - Flag to include full product data in the results of | 2687 /// the list request. The default value is false. |
2680 * the list request. The default value is false. | 2688 /// |
2681 * | 2689 /// [includeInvalidInsertedItems] - Flag to include the invalid inserted |
2682 * [includeInvalidInsertedItems] - Flag to include the invalid inserted items | 2690 /// items in the result of the list request. By default the invalid items are |
2683 * in the result of the list request. By default the invalid items are not | 2691 /// not shown (the default value is false). |
2684 * shown (the default value is false). | 2692 /// |
2685 * | 2693 /// [maxResults] - The maximum number of product statuses to return in the |
2686 * [maxResults] - The maximum number of product statuses to return in the | 2694 /// response, used for paging. |
2687 * response, used for paging. | 2695 /// |
2688 * | 2696 /// [pageToken] - The token returned by the previous request. |
2689 * [pageToken] - The token returned by the previous request. | 2697 /// |
2690 * | 2698 /// Completes with a [ProductstatusesListResponse]. |
2691 * Completes with a [ProductstatusesListResponse]. | 2699 /// |
2692 * | 2700 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2693 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2701 /// an error. |
2694 * error. | 2702 /// |
2695 * | 2703 /// If the used [http.Client] completes with an error when making a REST |
2696 * If the used [http.Client] completes with an error when making a REST call, | 2704 /// call, this method will complete with the same error. |
2697 * this method will complete with the same error. | 2705 async.Future<ProductstatusesListResponse> list(core.String merchantId, |
2698 */ | 2706 {core.bool includeAttributes, |
2699 async.Future<ProductstatusesListResponse> list(core.String merchantId, {core.b
ool includeAttributes, core.bool includeInvalidInsertedItems, core.int maxResult
s, core.String pageToken}) { | 2707 core.bool includeInvalidInsertedItems, |
| 2708 core.int maxResults, |
| 2709 core.String pageToken}) { |
2700 var _url = null; | 2710 var _url = null; |
2701 var _queryParams = new core.Map(); | 2711 var _queryParams = new core.Map(); |
2702 var _uploadMedia = null; | 2712 var _uploadMedia = null; |
2703 var _uploadOptions = null; | 2713 var _uploadOptions = null; |
2704 var _downloadOptions = commons.DownloadOptions.Metadata; | 2714 var _downloadOptions = commons.DownloadOptions.Metadata; |
2705 var _body = null; | 2715 var _body = null; |
2706 | 2716 |
2707 if (merchantId == null) { | 2717 if (merchantId == null) { |
2708 throw new core.ArgumentError("Parameter merchantId is required."); | 2718 throw new core.ArgumentError("Parameter merchantId is required."); |
2709 } | 2719 } |
2710 if (includeAttributes != null) { | 2720 if (includeAttributes != null) { |
2711 _queryParams["includeAttributes"] = ["${includeAttributes}"]; | 2721 _queryParams["includeAttributes"] = ["${includeAttributes}"]; |
2712 } | 2722 } |
2713 if (includeInvalidInsertedItems != null) { | 2723 if (includeInvalidInsertedItems != null) { |
2714 _queryParams["includeInvalidInsertedItems"] = ["${includeInvalidInsertedIt
ems}"]; | 2724 _queryParams["includeInvalidInsertedItems"] = [ |
| 2725 "${includeInvalidInsertedItems}" |
| 2726 ]; |
2715 } | 2727 } |
2716 if (maxResults != null) { | 2728 if (maxResults != null) { |
2717 _queryParams["maxResults"] = ["${maxResults}"]; | 2729 _queryParams["maxResults"] = ["${maxResults}"]; |
2718 } | 2730 } |
2719 if (pageToken != null) { | 2731 if (pageToken != null) { |
2720 _queryParams["pageToken"] = [pageToken]; | 2732 _queryParams["pageToken"] = [pageToken]; |
2721 } | 2733 } |
2722 | 2734 |
2723 _url = commons.Escaper.ecapeVariable('$merchantId') + '/productstatuses'; | 2735 _url = commons.Escaper.ecapeVariable('$merchantId') + '/productstatuses'; |
2724 | 2736 |
2725 var _response = _requester.request(_url, | 2737 var _response = _requester.request(_url, "GET", |
2726 "GET", | 2738 body: _body, |
2727 body: _body, | 2739 queryParams: _queryParams, |
2728 queryParams: _queryParams, | 2740 uploadOptions: _uploadOptions, |
2729 uploadOptions: _uploadOptions, | 2741 uploadMedia: _uploadMedia, |
2730 uploadMedia: _uploadMedia, | 2742 downloadOptions: _downloadOptions); |
2731 downloadOptions: _downloadOptions); | 2743 return _response |
2732 return _response.then((data) => new ProductstatusesListResponse.fromJson(dat
a)); | 2744 .then((data) => new ProductstatusesListResponse.fromJson(data)); |
2733 } | 2745 } |
2734 | |
2735 } | 2746 } |
2736 | 2747 |
2737 | |
2738 class ShippingsettingsResourceApi { | 2748 class ShippingsettingsResourceApi { |
2739 final commons.ApiRequester _requester; | 2749 final commons.ApiRequester _requester; |
2740 | 2750 |
2741 ShippingsettingsResourceApi(commons.ApiRequester client) : | 2751 ShippingsettingsResourceApi(commons.ApiRequester client) |
2742 _requester = client; | 2752 : _requester = client; |
2743 | 2753 |
2744 /** | 2754 /// Retrieves and updates the shipping settings of multiple accounts in a |
2745 * Retrieves and updates the shipping settings of multiple accounts in a | 2755 /// single request. |
2746 * single request. | 2756 /// |
2747 * | 2757 /// [request] - The metadata request object. |
2748 * [request] - The metadata request object. | 2758 /// |
2749 * | 2759 /// Request parameters: |
2750 * Request parameters: | 2760 /// |
2751 * | 2761 /// [dryRun] - Flag to run the request in dry-run mode. |
2752 * [dryRun] - Flag to run the request in dry-run mode. | 2762 /// |
2753 * | 2763 /// Completes with a [ShippingsettingsCustomBatchResponse]. |
2754 * Completes with a [ShippingsettingsCustomBatchResponse]. | 2764 /// |
2755 * | 2765 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2756 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2766 /// an error. |
2757 * error. | 2767 /// |
2758 * | 2768 /// If the used [http.Client] completes with an error when making a REST |
2759 * If the used [http.Client] completes with an error when making a REST call, | 2769 /// call, this method will complete with the same error. |
2760 * this method will complete with the same error. | 2770 async.Future<ShippingsettingsCustomBatchResponse> custombatch( |
2761 */ | 2771 ShippingsettingsCustomBatchRequest request, |
2762 async.Future<ShippingsettingsCustomBatchResponse> custombatch(Shippingsettings
CustomBatchRequest request, {core.bool dryRun}) { | 2772 {core.bool dryRun}) { |
2763 var _url = null; | 2773 var _url = null; |
2764 var _queryParams = new core.Map(); | 2774 var _queryParams = new core.Map(); |
2765 var _uploadMedia = null; | 2775 var _uploadMedia = null; |
2766 var _uploadOptions = null; | 2776 var _uploadOptions = null; |
2767 var _downloadOptions = commons.DownloadOptions.Metadata; | 2777 var _downloadOptions = commons.DownloadOptions.Metadata; |
2768 var _body = null; | 2778 var _body = null; |
2769 | 2779 |
2770 if (request != null) { | 2780 if (request != null) { |
2771 _body = convert.JSON.encode((request).toJson()); | 2781 _body = convert.JSON.encode((request).toJson()); |
2772 } | 2782 } |
2773 if (dryRun != null) { | 2783 if (dryRun != null) { |
2774 _queryParams["dryRun"] = ["${dryRun}"]; | 2784 _queryParams["dryRun"] = ["${dryRun}"]; |
2775 } | 2785 } |
2776 | 2786 |
2777 _url = 'shippingsettings/batch'; | 2787 _url = 'shippingsettings/batch'; |
2778 | 2788 |
2779 var _response = _requester.request(_url, | 2789 var _response = _requester.request(_url, "POST", |
2780 "POST", | 2790 body: _body, |
2781 body: _body, | 2791 queryParams: _queryParams, |
2782 queryParams: _queryParams, | 2792 uploadOptions: _uploadOptions, |
2783 uploadOptions: _uploadOptions, | 2793 uploadMedia: _uploadMedia, |
2784 uploadMedia: _uploadMedia, | 2794 downloadOptions: _downloadOptions); |
2785 downloadOptions: _downloadOptions); | 2795 return _response |
2786 return _response.then((data) => new ShippingsettingsCustomBatchResponse.from
Json(data)); | 2796 .then((data) => new ShippingsettingsCustomBatchResponse.fromJson(data)); |
2787 } | 2797 } |
2788 | 2798 |
2789 /** | 2799 /// Retrieves the shipping settings of the account. This method can only be |
2790 * Retrieves the shipping settings of the account. This method can only be | 2800 /// called for accounts to which the managing account has access: either the |
2791 * called for accounts to which the managing account has access: either the | 2801 /// managing account itself for any Merchant Center account, or any |
2792 * managing account itself for any Merchant Center account, or any sub-account | 2802 /// sub-account when the managing account is a multi-client account. |
2793 * when the managing account is a multi-client account. | 2803 /// |
2794 * | 2804 /// Request parameters: |
2795 * Request parameters: | 2805 /// |
2796 * | 2806 /// [merchantId] - The ID of the managing account. |
2797 * [merchantId] - The ID of the managing account. | 2807 /// |
2798 * | 2808 /// [accountId] - The ID of the account for which to get/update shipping |
2799 * [accountId] - The ID of the account for which to get/update shipping | 2809 /// settings. |
2800 * settings. | 2810 /// |
2801 * | 2811 /// Completes with a [ShippingSettings]. |
2802 * Completes with a [ShippingSettings]. | 2812 /// |
2803 * | 2813 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2804 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2814 /// an error. |
2805 * error. | 2815 /// |
2806 * | 2816 /// If the used [http.Client] completes with an error when making a REST |
2807 * If the used [http.Client] completes with an error when making a REST call, | 2817 /// call, this method will complete with the same error. |
2808 * this method will complete with the same error. | 2818 async.Future<ShippingSettings> get( |
2809 */ | 2819 core.String merchantId, core.String accountId) { |
2810 async.Future<ShippingSettings> get(core.String merchantId, core.String account
Id) { | |
2811 var _url = null; | 2820 var _url = null; |
2812 var _queryParams = new core.Map(); | 2821 var _queryParams = new core.Map(); |
2813 var _uploadMedia = null; | 2822 var _uploadMedia = null; |
2814 var _uploadOptions = null; | 2823 var _uploadOptions = null; |
2815 var _downloadOptions = commons.DownloadOptions.Metadata; | 2824 var _downloadOptions = commons.DownloadOptions.Metadata; |
2816 var _body = null; | 2825 var _body = null; |
2817 | 2826 |
2818 if (merchantId == null) { | 2827 if (merchantId == null) { |
2819 throw new core.ArgumentError("Parameter merchantId is required."); | 2828 throw new core.ArgumentError("Parameter merchantId is required."); |
2820 } | 2829 } |
2821 if (accountId == null) { | 2830 if (accountId == null) { |
2822 throw new core.ArgumentError("Parameter accountId is required."); | 2831 throw new core.ArgumentError("Parameter accountId is required."); |
2823 } | 2832 } |
2824 | 2833 |
2825 _url = commons.Escaper.ecapeVariable('$merchantId') + '/shippingsettings/' +
commons.Escaper.ecapeVariable('$accountId'); | 2834 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 2835 '/shippingsettings/' + |
| 2836 commons.Escaper.ecapeVariable('$accountId'); |
2826 | 2837 |
2827 var _response = _requester.request(_url, | 2838 var _response = _requester.request(_url, "GET", |
2828 "GET", | 2839 body: _body, |
2829 body: _body, | 2840 queryParams: _queryParams, |
2830 queryParams: _queryParams, | 2841 uploadOptions: _uploadOptions, |
2831 uploadOptions: _uploadOptions, | 2842 uploadMedia: _uploadMedia, |
2832 uploadMedia: _uploadMedia, | 2843 downloadOptions: _downloadOptions); |
2833 downloadOptions: _downloadOptions); | |
2834 return _response.then((data) => new ShippingSettings.fromJson(data)); | 2844 return _response.then((data) => new ShippingSettings.fromJson(data)); |
2835 } | 2845 } |
2836 | 2846 |
2837 /** | 2847 /// Retrieves supported carriers and carrier services for an account. |
2838 * Retrieves supported carriers and carrier services for an account. | 2848 /// |
2839 * | 2849 /// Request parameters: |
2840 * Request parameters: | 2850 /// |
2841 * | 2851 /// [merchantId] - The ID of the account for which to retrieve the supported |
2842 * [merchantId] - The ID of the account for which to retrieve the supported | 2852 /// carriers. |
2843 * carriers. | 2853 /// |
2844 * | 2854 /// Completes with a [ShippingsettingsGetSupportedCarriersResponse]. |
2845 * Completes with a [ShippingsettingsGetSupportedCarriersResponse]. | 2855 /// |
2846 * | 2856 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2847 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2857 /// an error. |
2848 * error. | 2858 /// |
2849 * | 2859 /// If the used [http.Client] completes with an error when making a REST |
2850 * If the used [http.Client] completes with an error when making a REST call, | 2860 /// call, this method will complete with the same error. |
2851 * this method will complete with the same error. | 2861 async.Future<ShippingsettingsGetSupportedCarriersResponse> |
2852 */ | 2862 getsupportedcarriers(core.String merchantId) { |
2853 async.Future<ShippingsettingsGetSupportedCarriersResponse> getsupportedcarrier
s(core.String merchantId) { | |
2854 var _url = null; | 2863 var _url = null; |
2855 var _queryParams = new core.Map(); | 2864 var _queryParams = new core.Map(); |
2856 var _uploadMedia = null; | 2865 var _uploadMedia = null; |
2857 var _uploadOptions = null; | 2866 var _uploadOptions = null; |
2858 var _downloadOptions = commons.DownloadOptions.Metadata; | 2867 var _downloadOptions = commons.DownloadOptions.Metadata; |
2859 var _body = null; | 2868 var _body = null; |
2860 | 2869 |
2861 if (merchantId == null) { | 2870 if (merchantId == null) { |
2862 throw new core.ArgumentError("Parameter merchantId is required."); | 2871 throw new core.ArgumentError("Parameter merchantId is required."); |
2863 } | 2872 } |
2864 | 2873 |
2865 _url = commons.Escaper.ecapeVariable('$merchantId') + '/supportedCarriers'; | 2874 _url = commons.Escaper.ecapeVariable('$merchantId') + '/supportedCarriers'; |
2866 | 2875 |
2867 var _response = _requester.request(_url, | 2876 var _response = _requester.request(_url, "GET", |
2868 "GET", | 2877 body: _body, |
2869 body: _body, | 2878 queryParams: _queryParams, |
2870 queryParams: _queryParams, | 2879 uploadOptions: _uploadOptions, |
2871 uploadOptions: _uploadOptions, | 2880 uploadMedia: _uploadMedia, |
2872 uploadMedia: _uploadMedia, | 2881 downloadOptions: _downloadOptions); |
2873 downloadOptions: _downloadOptions); | 2882 return _response.then((data) => |
2874 return _response.then((data) => new ShippingsettingsGetSupportedCarriersResp
onse.fromJson(data)); | 2883 new ShippingsettingsGetSupportedCarriersResponse.fromJson(data)); |
2875 } | 2884 } |
2876 | 2885 |
2877 /** | 2886 /// Lists the shipping settings of the sub-accounts in your Merchant Center |
2878 * Lists the shipping settings of the sub-accounts in your Merchant Center | 2887 /// account. This method can only be called for multi-client accounts. |
2879 * account. This method can only be called for multi-client accounts. | 2888 /// |
2880 * | 2889 /// Request parameters: |
2881 * Request parameters: | 2890 /// |
2882 * | 2891 /// [merchantId] - The ID of the managing account. |
2883 * [merchantId] - The ID of the managing account. | 2892 /// |
2884 * | 2893 /// [maxResults] - The maximum number of shipping settings to return in the |
2885 * [maxResults] - The maximum number of shipping settings to return in the | 2894 /// response, used for paging. |
2886 * response, used for paging. | 2895 /// |
2887 * | 2896 /// [pageToken] - The token returned by the previous request. |
2888 * [pageToken] - The token returned by the previous request. | 2897 /// |
2889 * | 2898 /// Completes with a [ShippingsettingsListResponse]. |
2890 * Completes with a [ShippingsettingsListResponse]. | 2899 /// |
2891 * | 2900 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2892 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2901 /// an error. |
2893 * error. | 2902 /// |
2894 * | 2903 /// If the used [http.Client] completes with an error when making a REST |
2895 * If the used [http.Client] completes with an error when making a REST call, | 2904 /// call, this method will complete with the same error. |
2896 * this method will complete with the same error. | 2905 async.Future<ShippingsettingsListResponse> list(core.String merchantId, |
2897 */ | 2906 {core.int maxResults, core.String pageToken}) { |
2898 async.Future<ShippingsettingsListResponse> list(core.String merchantId, {core.
int maxResults, core.String pageToken}) { | |
2899 var _url = null; | 2907 var _url = null; |
2900 var _queryParams = new core.Map(); | 2908 var _queryParams = new core.Map(); |
2901 var _uploadMedia = null; | 2909 var _uploadMedia = null; |
2902 var _uploadOptions = null; | 2910 var _uploadOptions = null; |
2903 var _downloadOptions = commons.DownloadOptions.Metadata; | 2911 var _downloadOptions = commons.DownloadOptions.Metadata; |
2904 var _body = null; | 2912 var _body = null; |
2905 | 2913 |
2906 if (merchantId == null) { | 2914 if (merchantId == null) { |
2907 throw new core.ArgumentError("Parameter merchantId is required."); | 2915 throw new core.ArgumentError("Parameter merchantId is required."); |
2908 } | 2916 } |
2909 if (maxResults != null) { | 2917 if (maxResults != null) { |
2910 _queryParams["maxResults"] = ["${maxResults}"]; | 2918 _queryParams["maxResults"] = ["${maxResults}"]; |
2911 } | 2919 } |
2912 if (pageToken != null) { | 2920 if (pageToken != null) { |
2913 _queryParams["pageToken"] = [pageToken]; | 2921 _queryParams["pageToken"] = [pageToken]; |
2914 } | 2922 } |
2915 | 2923 |
2916 _url = commons.Escaper.ecapeVariable('$merchantId') + '/shippingsettings'; | 2924 _url = commons.Escaper.ecapeVariable('$merchantId') + '/shippingsettings'; |
2917 | 2925 |
2918 var _response = _requester.request(_url, | 2926 var _response = _requester.request(_url, "GET", |
2919 "GET", | 2927 body: _body, |
2920 body: _body, | 2928 queryParams: _queryParams, |
2921 queryParams: _queryParams, | 2929 uploadOptions: _uploadOptions, |
2922 uploadOptions: _uploadOptions, | 2930 uploadMedia: _uploadMedia, |
2923 uploadMedia: _uploadMedia, | 2931 downloadOptions: _downloadOptions); |
2924 downloadOptions: _downloadOptions); | 2932 return _response |
2925 return _response.then((data) => new ShippingsettingsListResponse.fromJson(da
ta)); | 2933 .then((data) => new ShippingsettingsListResponse.fromJson(data)); |
2926 } | 2934 } |
2927 | 2935 |
2928 /** | 2936 /// Updates the shipping settings of the account. This method can only be |
2929 * Updates the shipping settings of the account. This method can only be | 2937 /// called for accounts to which the managing account has access: either the |
2930 * called for accounts to which the managing account has access: either the | 2938 /// managing account itself for any Merchant Center account, or any |
2931 * managing account itself for any Merchant Center account, or any sub-account | 2939 /// sub-account when the managing account is a multi-client account. This |
2932 * when the managing account is a multi-client account. This method supports | 2940 /// method supports patch semantics. |
2933 * patch semantics. | 2941 /// |
2934 * | 2942 /// [request] - The metadata request object. |
2935 * [request] - The metadata request object. | 2943 /// |
2936 * | 2944 /// Request parameters: |
2937 * Request parameters: | 2945 /// |
2938 * | 2946 /// [merchantId] - The ID of the managing account. |
2939 * [merchantId] - The ID of the managing account. | 2947 /// |
2940 * | 2948 /// [accountId] - The ID of the account for which to get/update shipping |
2941 * [accountId] - The ID of the account for which to get/update shipping | 2949 /// settings. |
2942 * settings. | 2950 /// |
2943 * | 2951 /// [dryRun] - Flag to run the request in dry-run mode. |
2944 * [dryRun] - Flag to run the request in dry-run mode. | 2952 /// |
2945 * | 2953 /// Completes with a [ShippingSettings]. |
2946 * Completes with a [ShippingSettings]. | 2954 /// |
2947 * | 2955 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2948 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2956 /// an error. |
2949 * error. | 2957 /// |
2950 * | 2958 /// If the used [http.Client] completes with an error when making a REST |
2951 * If the used [http.Client] completes with an error when making a REST call, | 2959 /// call, this method will complete with the same error. |
2952 * this method will complete with the same error. | 2960 async.Future<ShippingSettings> patch( |
2953 */ | 2961 ShippingSettings request, core.String merchantId, core.String accountId, |
2954 async.Future<ShippingSettings> patch(ShippingSettings request, core.String mer
chantId, core.String accountId, {core.bool dryRun}) { | 2962 {core.bool dryRun}) { |
2955 var _url = null; | 2963 var _url = null; |
2956 var _queryParams = new core.Map(); | 2964 var _queryParams = new core.Map(); |
2957 var _uploadMedia = null; | 2965 var _uploadMedia = null; |
2958 var _uploadOptions = null; | 2966 var _uploadOptions = null; |
2959 var _downloadOptions = commons.DownloadOptions.Metadata; | 2967 var _downloadOptions = commons.DownloadOptions.Metadata; |
2960 var _body = null; | 2968 var _body = null; |
2961 | 2969 |
2962 if (request != null) { | 2970 if (request != null) { |
2963 _body = convert.JSON.encode((request).toJson()); | 2971 _body = convert.JSON.encode((request).toJson()); |
2964 } | 2972 } |
2965 if (merchantId == null) { | 2973 if (merchantId == null) { |
2966 throw new core.ArgumentError("Parameter merchantId is required."); | 2974 throw new core.ArgumentError("Parameter merchantId is required."); |
2967 } | 2975 } |
2968 if (accountId == null) { | 2976 if (accountId == null) { |
2969 throw new core.ArgumentError("Parameter accountId is required."); | 2977 throw new core.ArgumentError("Parameter accountId is required."); |
2970 } | 2978 } |
2971 if (dryRun != null) { | 2979 if (dryRun != null) { |
2972 _queryParams["dryRun"] = ["${dryRun}"]; | 2980 _queryParams["dryRun"] = ["${dryRun}"]; |
2973 } | 2981 } |
2974 | 2982 |
2975 _url = commons.Escaper.ecapeVariable('$merchantId') + '/shippingsettings/' +
commons.Escaper.ecapeVariable('$accountId'); | 2983 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 2984 '/shippingsettings/' + |
| 2985 commons.Escaper.ecapeVariable('$accountId'); |
2976 | 2986 |
2977 var _response = _requester.request(_url, | 2987 var _response = _requester.request(_url, "PATCH", |
2978 "PATCH", | 2988 body: _body, |
2979 body: _body, | 2989 queryParams: _queryParams, |
2980 queryParams: _queryParams, | 2990 uploadOptions: _uploadOptions, |
2981 uploadOptions: _uploadOptions, | 2991 uploadMedia: _uploadMedia, |
2982 uploadMedia: _uploadMedia, | 2992 downloadOptions: _downloadOptions); |
2983 downloadOptions: _downloadOptions); | |
2984 return _response.then((data) => new ShippingSettings.fromJson(data)); | 2993 return _response.then((data) => new ShippingSettings.fromJson(data)); |
2985 } | 2994 } |
2986 | 2995 |
2987 /** | 2996 /// Updates the shipping settings of the account. This method can only be |
2988 * Updates the shipping settings of the account. This method can only be | 2997 /// called for accounts to which the managing account has access: either the |
2989 * called for accounts to which the managing account has access: either the | 2998 /// managing account itself for any Merchant Center account, or any |
2990 * managing account itself for any Merchant Center account, or any sub-account | 2999 /// sub-account when the managing account is a multi-client account. |
2991 * when the managing account is a multi-client account. | 3000 /// |
2992 * | 3001 /// [request] - The metadata request object. |
2993 * [request] - The metadata request object. | 3002 /// |
2994 * | 3003 /// Request parameters: |
2995 * Request parameters: | 3004 /// |
2996 * | 3005 /// [merchantId] - The ID of the managing account. |
2997 * [merchantId] - The ID of the managing account. | 3006 /// |
2998 * | 3007 /// [accountId] - The ID of the account for which to get/update shipping |
2999 * [accountId] - The ID of the account for which to get/update shipping | 3008 /// settings. |
3000 * settings. | 3009 /// |
3001 * | 3010 /// [dryRun] - Flag to run the request in dry-run mode. |
3002 * [dryRun] - Flag to run the request in dry-run mode. | 3011 /// |
3003 * | 3012 /// Completes with a [ShippingSettings]. |
3004 * Completes with a [ShippingSettings]. | 3013 /// |
3005 * | 3014 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
3006 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3015 /// an error. |
3007 * error. | 3016 /// |
3008 * | 3017 /// If the used [http.Client] completes with an error when making a REST |
3009 * If the used [http.Client] completes with an error when making a REST call, | 3018 /// call, this method will complete with the same error. |
3010 * this method will complete with the same error. | 3019 async.Future<ShippingSettings> update( |
3011 */ | 3020 ShippingSettings request, core.String merchantId, core.String accountId, |
3012 async.Future<ShippingSettings> update(ShippingSettings request, core.String me
rchantId, core.String accountId, {core.bool dryRun}) { | 3021 {core.bool dryRun}) { |
3013 var _url = null; | 3022 var _url = null; |
3014 var _queryParams = new core.Map(); | 3023 var _queryParams = new core.Map(); |
3015 var _uploadMedia = null; | 3024 var _uploadMedia = null; |
3016 var _uploadOptions = null; | 3025 var _uploadOptions = null; |
3017 var _downloadOptions = commons.DownloadOptions.Metadata; | 3026 var _downloadOptions = commons.DownloadOptions.Metadata; |
3018 var _body = null; | 3027 var _body = null; |
3019 | 3028 |
3020 if (request != null) { | 3029 if (request != null) { |
3021 _body = convert.JSON.encode((request).toJson()); | 3030 _body = convert.JSON.encode((request).toJson()); |
3022 } | 3031 } |
3023 if (merchantId == null) { | 3032 if (merchantId == null) { |
3024 throw new core.ArgumentError("Parameter merchantId is required."); | 3033 throw new core.ArgumentError("Parameter merchantId is required."); |
3025 } | 3034 } |
3026 if (accountId == null) { | 3035 if (accountId == null) { |
3027 throw new core.ArgumentError("Parameter accountId is required."); | 3036 throw new core.ArgumentError("Parameter accountId is required."); |
3028 } | 3037 } |
3029 if (dryRun != null) { | 3038 if (dryRun != null) { |
3030 _queryParams["dryRun"] = ["${dryRun}"]; | 3039 _queryParams["dryRun"] = ["${dryRun}"]; |
3031 } | 3040 } |
3032 | 3041 |
3033 _url = commons.Escaper.ecapeVariable('$merchantId') + '/shippingsettings/' +
commons.Escaper.ecapeVariable('$accountId'); | 3042 _url = commons.Escaper.ecapeVariable('$merchantId') + |
| 3043 '/shippingsettings/' + |
| 3044 commons.Escaper.ecapeVariable('$accountId'); |
3034 | 3045 |
3035 var _response = _requester.request(_url, | 3046 var _response = _requester.request(_url, "PUT", |
3036 "PUT", | 3047 body: _body, |
3037 body: _body, | 3048 queryParams: _queryParams, |
3038 queryParams: _queryParams, | 3049 uploadOptions: _uploadOptions, |
3039 uploadOptions: _uploadOptions, | 3050 uploadMedia: _uploadMedia, |
3040 uploadMedia: _uploadMedia, | 3051 downloadOptions: _downloadOptions); |
3041 downloadOptions: _downloadOptions); | |
3042 return _response.then((data) => new ShippingSettings.fromJson(data)); | 3052 return _response.then((data) => new ShippingSettings.fromJson(data)); |
3043 } | 3053 } |
3044 | |
3045 } | 3054 } |
3046 | 3055 |
| 3056 /// Account data. |
| 3057 class Account { |
| 3058 /// Indicates whether the merchant sells adult content. |
| 3059 core.bool adultContent; |
3047 | 3060 |
| 3061 /// List of linked AdWords accounts that are active or pending approval. To |
| 3062 /// create a new link request, add a new link with status active to the list. |
| 3063 /// It will remain in a pending state until approved or rejected either in |
| 3064 /// the AdWords interface or through the AdWords API. To delete an active |
| 3065 /// link, or to cancel a link request, remove it from the list. |
| 3066 core.List<AccountAdwordsLink> adwordsLinks; |
3048 | 3067 |
3049 /** Account data. */ | 3068 /// Merchant Center account ID. |
3050 class Account { | |
3051 /** Indicates whether the merchant sells adult content. */ | |
3052 core.bool adultContent; | |
3053 /** | |
3054 * List of linked AdWords accounts that are active or pending approval. To | |
3055 * create a new link request, add a new link with status active to the list. | |
3056 * It will remain in a pending state until approved or rejected either in the | |
3057 * AdWords interface or through the AdWords API. To delete an active link, or | |
3058 * to cancel a link request, remove it from the list. | |
3059 */ | |
3060 core.List<AccountAdwordsLink> adwordsLinks; | |
3061 /** Merchant Center account ID. */ | |
3062 core.String id; | 3069 core.String id; |
3063 /** | 3070 |
3064 * Identifies what kind of resource this is. Value: the fixed string | 3071 /// Identifies what kind of resource this is. Value: the fixed string |
3065 * "content#account". | 3072 /// "content#account". |
3066 */ | |
3067 core.String kind; | 3073 core.String kind; |
3068 /** Display name for the account. */ | 3074 |
| 3075 /// Display name for the account. |
3069 core.String name; | 3076 core.String name; |
3070 /** | 3077 |
3071 * URL for individual seller reviews, i.e., reviews for each child account. | 3078 /// URL for individual seller reviews, i.e., reviews for each child account. |
3072 */ | |
3073 core.String reviewsUrl; | 3079 core.String reviewsUrl; |
3074 /** Client-specific, locally-unique, internal ID for the child account. */ | 3080 |
| 3081 /// Client-specific, locally-unique, internal ID for the child account. |
3075 core.String sellerId; | 3082 core.String sellerId; |
3076 /** | 3083 |
3077 * Users with access to the account. Every account (except for subaccounts) | 3084 /// Users with access to the account. Every account (except for subaccounts) |
3078 * must have at least one admin user. | 3085 /// must have at least one admin user. |
3079 */ | |
3080 core.List<AccountUser> users; | 3086 core.List<AccountUser> users; |
3081 /** The merchant's website. */ | 3087 |
| 3088 /// The merchant's website. |
3082 core.String websiteUrl; | 3089 core.String websiteUrl; |
3083 | 3090 |
3084 Account(); | 3091 Account(); |
3085 | 3092 |
3086 Account.fromJson(core.Map _json) { | 3093 Account.fromJson(core.Map _json) { |
3087 if (_json.containsKey("adultContent")) { | 3094 if (_json.containsKey("adultContent")) { |
3088 adultContent = _json["adultContent"]; | 3095 adultContent = _json["adultContent"]; |
3089 } | 3096 } |
3090 if (_json.containsKey("adwordsLinks")) { | 3097 if (_json.containsKey("adwordsLinks")) { |
3091 adwordsLinks = _json["adwordsLinks"].map((value) => new AccountAdwordsLink
.fromJson(value)).toList(); | 3098 adwordsLinks = _json["adwordsLinks"] |
| 3099 .map((value) => new AccountAdwordsLink.fromJson(value)) |
| 3100 .toList(); |
3092 } | 3101 } |
3093 if (_json.containsKey("id")) { | 3102 if (_json.containsKey("id")) { |
3094 id = _json["id"]; | 3103 id = _json["id"]; |
3095 } | 3104 } |
3096 if (_json.containsKey("kind")) { | 3105 if (_json.containsKey("kind")) { |
3097 kind = _json["kind"]; | 3106 kind = _json["kind"]; |
3098 } | 3107 } |
3099 if (_json.containsKey("name")) { | 3108 if (_json.containsKey("name")) { |
3100 name = _json["name"]; | 3109 name = _json["name"]; |
3101 } | 3110 } |
3102 if (_json.containsKey("reviewsUrl")) { | 3111 if (_json.containsKey("reviewsUrl")) { |
3103 reviewsUrl = _json["reviewsUrl"]; | 3112 reviewsUrl = _json["reviewsUrl"]; |
3104 } | 3113 } |
3105 if (_json.containsKey("sellerId")) { | 3114 if (_json.containsKey("sellerId")) { |
3106 sellerId = _json["sellerId"]; | 3115 sellerId = _json["sellerId"]; |
3107 } | 3116 } |
3108 if (_json.containsKey("users")) { | 3117 if (_json.containsKey("users")) { |
3109 users = _json["users"].map((value) => new AccountUser.fromJson(value)).toL
ist(); | 3118 users = _json["users"] |
| 3119 .map((value) => new AccountUser.fromJson(value)) |
| 3120 .toList(); |
3110 } | 3121 } |
3111 if (_json.containsKey("websiteUrl")) { | 3122 if (_json.containsKey("websiteUrl")) { |
3112 websiteUrl = _json["websiteUrl"]; | 3123 websiteUrl = _json["websiteUrl"]; |
3113 } | 3124 } |
3114 } | 3125 } |
3115 | 3126 |
3116 core.Map<core.String, core.Object> toJson() { | 3127 core.Map<core.String, core.Object> toJson() { |
3117 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3128 final core.Map<core.String, core.Object> _json = |
| 3129 new core.Map<core.String, core.Object>(); |
3118 if (adultContent != null) { | 3130 if (adultContent != null) { |
3119 _json["adultContent"] = adultContent; | 3131 _json["adultContent"] = adultContent; |
3120 } | 3132 } |
3121 if (adwordsLinks != null) { | 3133 if (adwordsLinks != null) { |
3122 _json["adwordsLinks"] = adwordsLinks.map((value) => (value).toJson()).toLi
st(); | 3134 _json["adwordsLinks"] = |
| 3135 adwordsLinks.map((value) => (value).toJson()).toList(); |
3123 } | 3136 } |
3124 if (id != null) { | 3137 if (id != null) { |
3125 _json["id"] = id; | 3138 _json["id"] = id; |
3126 } | 3139 } |
3127 if (kind != null) { | 3140 if (kind != null) { |
3128 _json["kind"] = kind; | 3141 _json["kind"] = kind; |
3129 } | 3142 } |
3130 if (name != null) { | 3143 if (name != null) { |
3131 _json["name"] = name; | 3144 _json["name"] = name; |
3132 } | 3145 } |
3133 if (reviewsUrl != null) { | 3146 if (reviewsUrl != null) { |
3134 _json["reviewsUrl"] = reviewsUrl; | 3147 _json["reviewsUrl"] = reviewsUrl; |
3135 } | 3148 } |
3136 if (sellerId != null) { | 3149 if (sellerId != null) { |
3137 _json["sellerId"] = sellerId; | 3150 _json["sellerId"] = sellerId; |
3138 } | 3151 } |
3139 if (users != null) { | 3152 if (users != null) { |
3140 _json["users"] = users.map((value) => (value).toJson()).toList(); | 3153 _json["users"] = users.map((value) => (value).toJson()).toList(); |
3141 } | 3154 } |
3142 if (websiteUrl != null) { | 3155 if (websiteUrl != null) { |
3143 _json["websiteUrl"] = websiteUrl; | 3156 _json["websiteUrl"] = websiteUrl; |
3144 } | 3157 } |
3145 return _json; | 3158 return _json; |
3146 } | 3159 } |
3147 } | 3160 } |
3148 | 3161 |
3149 class AccountAdwordsLink { | 3162 class AccountAdwordsLink { |
3150 /** Customer ID of the AdWords account. */ | 3163 /// Customer ID of the AdWords account. |
3151 core.String adwordsId; | 3164 core.String adwordsId; |
3152 /** | 3165 |
3153 * Status of the link between this Merchant Center account and the AdWords | 3166 /// Status of the link between this Merchant Center account and the AdWords |
3154 * account. Upon retrieval, it represents the actual status of the link and | 3167 /// account. Upon retrieval, it represents the actual status of the link and |
3155 * can be either active if it was approved in Google AdWords or pending if | 3168 /// can be either active if it was approved in Google AdWords or pending if |
3156 * it's pending approval. Upon insertion, it represents the intended status of | 3169 /// it's pending approval. Upon insertion, it represents the intended status |
3157 * the link. Re-uploading a link with status active when it's still pending or | 3170 /// of the link. Re-uploading a link with status active when it's still |
3158 * with status pending when it's already active will have no effect: the | 3171 /// pending or with status pending when it's already active will have no |
3159 * status will remain unchanged. Re-uploading a link with deprecated status | 3172 /// effect: the status will remain unchanged. Re-uploading a link with |
3160 * inactive is equivalent to not submitting the link at all and will delete | 3173 /// deprecated status inactive is equivalent to not submitting the link at |
3161 * the link if it was active or cancel the link request if it was pending. | 3174 /// all and will delete the link if it was active or cancel the link request |
3162 */ | 3175 /// if it was pending. |
3163 core.String status; | 3176 core.String status; |
3164 | 3177 |
3165 AccountAdwordsLink(); | 3178 AccountAdwordsLink(); |
3166 | 3179 |
3167 AccountAdwordsLink.fromJson(core.Map _json) { | 3180 AccountAdwordsLink.fromJson(core.Map _json) { |
3168 if (_json.containsKey("adwordsId")) { | 3181 if (_json.containsKey("adwordsId")) { |
3169 adwordsId = _json["adwordsId"]; | 3182 adwordsId = _json["adwordsId"]; |
3170 } | 3183 } |
3171 if (_json.containsKey("status")) { | 3184 if (_json.containsKey("status")) { |
3172 status = _json["status"]; | 3185 status = _json["status"]; |
3173 } | 3186 } |
3174 } | 3187 } |
3175 | 3188 |
3176 core.Map<core.String, core.Object> toJson() { | 3189 core.Map<core.String, core.Object> toJson() { |
3177 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3190 final core.Map<core.String, core.Object> _json = |
| 3191 new core.Map<core.String, core.Object>(); |
3178 if (adwordsId != null) { | 3192 if (adwordsId != null) { |
3179 _json["adwordsId"] = adwordsId; | 3193 _json["adwordsId"] = adwordsId; |
3180 } | 3194 } |
3181 if (status != null) { | 3195 if (status != null) { |
3182 _json["status"] = status; | 3196 _json["status"] = status; |
3183 } | 3197 } |
3184 return _json; | 3198 return _json; |
3185 } | 3199 } |
3186 } | 3200 } |
3187 | 3201 |
3188 class AccountIdentifier { | 3202 class AccountIdentifier { |
3189 /** | 3203 /// The aggregator ID, set for aggregators and subaccounts (in that case, it |
3190 * The aggregator ID, set for aggregators and subaccounts (in that case, it | 3204 /// represents the aggregator of the subaccount). |
3191 * represents the aggregator of the subaccount). | |
3192 */ | |
3193 core.String aggregatorId; | 3205 core.String aggregatorId; |
3194 /** The merchant account ID, set for individual accounts and subaccounts. */ | 3206 |
| 3207 /// The merchant account ID, set for individual accounts and subaccounts. |
3195 core.String merchantId; | 3208 core.String merchantId; |
3196 | 3209 |
3197 AccountIdentifier(); | 3210 AccountIdentifier(); |
3198 | 3211 |
3199 AccountIdentifier.fromJson(core.Map _json) { | 3212 AccountIdentifier.fromJson(core.Map _json) { |
3200 if (_json.containsKey("aggregatorId")) { | 3213 if (_json.containsKey("aggregatorId")) { |
3201 aggregatorId = _json["aggregatorId"]; | 3214 aggregatorId = _json["aggregatorId"]; |
3202 } | 3215 } |
3203 if (_json.containsKey("merchantId")) { | 3216 if (_json.containsKey("merchantId")) { |
3204 merchantId = _json["merchantId"]; | 3217 merchantId = _json["merchantId"]; |
3205 } | 3218 } |
3206 } | 3219 } |
3207 | 3220 |
3208 core.Map<core.String, core.Object> toJson() { | 3221 core.Map<core.String, core.Object> toJson() { |
3209 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3222 final core.Map<core.String, core.Object> _json = |
| 3223 new core.Map<core.String, core.Object>(); |
3210 if (aggregatorId != null) { | 3224 if (aggregatorId != null) { |
3211 _json["aggregatorId"] = aggregatorId; | 3225 _json["aggregatorId"] = aggregatorId; |
3212 } | 3226 } |
3213 if (merchantId != null) { | 3227 if (merchantId != null) { |
3214 _json["merchantId"] = merchantId; | 3228 _json["merchantId"] = merchantId; |
3215 } | 3229 } |
3216 return _json; | 3230 return _json; |
3217 } | 3231 } |
3218 } | 3232 } |
3219 | 3233 |
3220 /** | 3234 /// The status of an account, i.e., information about its products, which is |
3221 * The status of an account, i.e., information about its products, which is | 3235 /// computed offline and not returned immediately at insertion time. |
3222 * computed offline and not returned immediately at insertion time. | |
3223 */ | |
3224 class AccountStatus { | 3236 class AccountStatus { |
3225 /** The ID of the account for which the status is reported. */ | 3237 /// The ID of the account for which the status is reported. |
3226 core.String accountId; | 3238 core.String accountId; |
3227 /** A list of account level issues. */ | 3239 |
| 3240 /// A list of account level issues. |
3228 core.List<AccountStatusAccountLevelIssue> accountLevelIssues; | 3241 core.List<AccountStatusAccountLevelIssue> accountLevelIssues; |
3229 /** A list of data quality issues. */ | 3242 |
| 3243 /// A list of data quality issues. |
3230 core.List<AccountStatusDataQualityIssue> dataQualityIssues; | 3244 core.List<AccountStatusDataQualityIssue> dataQualityIssues; |
3231 /** | 3245 |
3232 * Identifies what kind of resource this is. Value: the fixed string | 3246 /// Identifies what kind of resource this is. Value: the fixed string |
3233 * "content#accountStatus". | 3247 /// "content#accountStatus". |
3234 */ | |
3235 core.String kind; | 3248 core.String kind; |
3236 /** Whether the account's website is claimed or not. */ | 3249 |
| 3250 /// Whether the account's website is claimed or not. |
3237 core.bool websiteClaimed; | 3251 core.bool websiteClaimed; |
3238 | 3252 |
3239 AccountStatus(); | 3253 AccountStatus(); |
3240 | 3254 |
3241 AccountStatus.fromJson(core.Map _json) { | 3255 AccountStatus.fromJson(core.Map _json) { |
3242 if (_json.containsKey("accountId")) { | 3256 if (_json.containsKey("accountId")) { |
3243 accountId = _json["accountId"]; | 3257 accountId = _json["accountId"]; |
3244 } | 3258 } |
3245 if (_json.containsKey("accountLevelIssues")) { | 3259 if (_json.containsKey("accountLevelIssues")) { |
3246 accountLevelIssues = _json["accountLevelIssues"].map((value) => new Accoun
tStatusAccountLevelIssue.fromJson(value)).toList(); | 3260 accountLevelIssues = _json["accountLevelIssues"] |
| 3261 .map((value) => new AccountStatusAccountLevelIssue.fromJson(value)) |
| 3262 .toList(); |
3247 } | 3263 } |
3248 if (_json.containsKey("dataQualityIssues")) { | 3264 if (_json.containsKey("dataQualityIssues")) { |
3249 dataQualityIssues = _json["dataQualityIssues"].map((value) => new AccountS
tatusDataQualityIssue.fromJson(value)).toList(); | 3265 dataQualityIssues = _json["dataQualityIssues"] |
| 3266 .map((value) => new AccountStatusDataQualityIssue.fromJson(value)) |
| 3267 .toList(); |
3250 } | 3268 } |
3251 if (_json.containsKey("kind")) { | 3269 if (_json.containsKey("kind")) { |
3252 kind = _json["kind"]; | 3270 kind = _json["kind"]; |
3253 } | 3271 } |
3254 if (_json.containsKey("websiteClaimed")) { | 3272 if (_json.containsKey("websiteClaimed")) { |
3255 websiteClaimed = _json["websiteClaimed"]; | 3273 websiteClaimed = _json["websiteClaimed"]; |
3256 } | 3274 } |
3257 } | 3275 } |
3258 | 3276 |
3259 core.Map<core.String, core.Object> toJson() { | 3277 core.Map<core.String, core.Object> toJson() { |
3260 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3278 final core.Map<core.String, core.Object> _json = |
| 3279 new core.Map<core.String, core.Object>(); |
3261 if (accountId != null) { | 3280 if (accountId != null) { |
3262 _json["accountId"] = accountId; | 3281 _json["accountId"] = accountId; |
3263 } | 3282 } |
3264 if (accountLevelIssues != null) { | 3283 if (accountLevelIssues != null) { |
3265 _json["accountLevelIssues"] = accountLevelIssues.map((value) => (value).to
Json()).toList(); | 3284 _json["accountLevelIssues"] = |
| 3285 accountLevelIssues.map((value) => (value).toJson()).toList(); |
3266 } | 3286 } |
3267 if (dataQualityIssues != null) { | 3287 if (dataQualityIssues != null) { |
3268 _json["dataQualityIssues"] = dataQualityIssues.map((value) => (value).toJs
on()).toList(); | 3288 _json["dataQualityIssues"] = |
| 3289 dataQualityIssues.map((value) => (value).toJson()).toList(); |
3269 } | 3290 } |
3270 if (kind != null) { | 3291 if (kind != null) { |
3271 _json["kind"] = kind; | 3292 _json["kind"] = kind; |
3272 } | 3293 } |
3273 if (websiteClaimed != null) { | 3294 if (websiteClaimed != null) { |
3274 _json["websiteClaimed"] = websiteClaimed; | 3295 _json["websiteClaimed"] = websiteClaimed; |
3275 } | 3296 } |
3276 return _json; | 3297 return _json; |
3277 } | 3298 } |
3278 } | 3299 } |
3279 | 3300 |
3280 class AccountStatusAccountLevelIssue { | 3301 class AccountStatusAccountLevelIssue { |
3281 /** Country for which this issue is reported. */ | 3302 /// Country for which this issue is reported. |
3282 core.String country; | 3303 core.String country; |
3283 /** Additional details about the issue. */ | 3304 |
| 3305 /// Additional details about the issue. |
3284 core.String detail; | 3306 core.String detail; |
3285 /** Issue identifier. */ | 3307 |
| 3308 /// Issue identifier. |
3286 core.String id; | 3309 core.String id; |
3287 /** Severity of the issue. */ | 3310 |
| 3311 /// Severity of the issue. |
3288 core.String severity; | 3312 core.String severity; |
3289 /** Short description of the issue. */ | 3313 |
| 3314 /// Short description of the issue. |
3290 core.String title; | 3315 core.String title; |
3291 | 3316 |
3292 AccountStatusAccountLevelIssue(); | 3317 AccountStatusAccountLevelIssue(); |
3293 | 3318 |
3294 AccountStatusAccountLevelIssue.fromJson(core.Map _json) { | 3319 AccountStatusAccountLevelIssue.fromJson(core.Map _json) { |
3295 if (_json.containsKey("country")) { | 3320 if (_json.containsKey("country")) { |
3296 country = _json["country"]; | 3321 country = _json["country"]; |
3297 } | 3322 } |
3298 if (_json.containsKey("detail")) { | 3323 if (_json.containsKey("detail")) { |
3299 detail = _json["detail"]; | 3324 detail = _json["detail"]; |
3300 } | 3325 } |
3301 if (_json.containsKey("id")) { | 3326 if (_json.containsKey("id")) { |
3302 id = _json["id"]; | 3327 id = _json["id"]; |
3303 } | 3328 } |
3304 if (_json.containsKey("severity")) { | 3329 if (_json.containsKey("severity")) { |
3305 severity = _json["severity"]; | 3330 severity = _json["severity"]; |
3306 } | 3331 } |
3307 if (_json.containsKey("title")) { | 3332 if (_json.containsKey("title")) { |
3308 title = _json["title"]; | 3333 title = _json["title"]; |
3309 } | 3334 } |
3310 } | 3335 } |
3311 | 3336 |
3312 core.Map<core.String, core.Object> toJson() { | 3337 core.Map<core.String, core.Object> toJson() { |
3313 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3338 final core.Map<core.String, core.Object> _json = |
| 3339 new core.Map<core.String, core.Object>(); |
3314 if (country != null) { | 3340 if (country != null) { |
3315 _json["country"] = country; | 3341 _json["country"] = country; |
3316 } | 3342 } |
3317 if (detail != null) { | 3343 if (detail != null) { |
3318 _json["detail"] = detail; | 3344 _json["detail"] = detail; |
3319 } | 3345 } |
3320 if (id != null) { | 3346 if (id != null) { |
3321 _json["id"] = id; | 3347 _json["id"] = id; |
3322 } | 3348 } |
3323 if (severity != null) { | 3349 if (severity != null) { |
3324 _json["severity"] = severity; | 3350 _json["severity"] = severity; |
3325 } | 3351 } |
3326 if (title != null) { | 3352 if (title != null) { |
3327 _json["title"] = title; | 3353 _json["title"] = title; |
3328 } | 3354 } |
3329 return _json; | 3355 return _json; |
3330 } | 3356 } |
3331 } | 3357 } |
3332 | 3358 |
3333 class AccountStatusDataQualityIssue { | 3359 class AccountStatusDataQualityIssue { |
3334 /** Country for which this issue is reported. */ | 3360 /// Country for which this issue is reported. |
3335 core.String country; | 3361 core.String country; |
3336 /** A more detailed description of the issue. */ | 3362 |
| 3363 /// A more detailed description of the issue. |
3337 core.String detail; | 3364 core.String detail; |
3338 /** Actual value displayed on the landing page. */ | 3365 |
| 3366 /// Actual value displayed on the landing page. |
3339 core.String displayedValue; | 3367 core.String displayedValue; |
3340 /** Example items featuring the issue. */ | 3368 |
| 3369 /// Example items featuring the issue. |
3341 core.List<AccountStatusExampleItem> exampleItems; | 3370 core.List<AccountStatusExampleItem> exampleItems; |
3342 /** Issue identifier. */ | 3371 |
| 3372 /// Issue identifier. |
3343 core.String id; | 3373 core.String id; |
3344 /** Last time the account was checked for this issue. */ | 3374 |
| 3375 /// Last time the account was checked for this issue. |
3345 core.String lastChecked; | 3376 core.String lastChecked; |
3346 /** The attribute name that is relevant for the issue. */ | 3377 |
| 3378 /// The attribute name that is relevant for the issue. |
3347 core.String location; | 3379 core.String location; |
3348 /** Number of items in the account found to have the said issue. */ | 3380 |
| 3381 /// Number of items in the account found to have the said issue. |
3349 core.int numItems; | 3382 core.int numItems; |
3350 /** Severity of the problem. */ | 3383 |
| 3384 /// Severity of the problem. |
3351 core.String severity; | 3385 core.String severity; |
3352 /** Submitted value that causes the issue. */ | 3386 |
| 3387 /// Submitted value that causes the issue. |
3353 core.String submittedValue; | 3388 core.String submittedValue; |
3354 | 3389 |
3355 AccountStatusDataQualityIssue(); | 3390 AccountStatusDataQualityIssue(); |
3356 | 3391 |
3357 AccountStatusDataQualityIssue.fromJson(core.Map _json) { | 3392 AccountStatusDataQualityIssue.fromJson(core.Map _json) { |
3358 if (_json.containsKey("country")) { | 3393 if (_json.containsKey("country")) { |
3359 country = _json["country"]; | 3394 country = _json["country"]; |
3360 } | 3395 } |
3361 if (_json.containsKey("detail")) { | 3396 if (_json.containsKey("detail")) { |
3362 detail = _json["detail"]; | 3397 detail = _json["detail"]; |
3363 } | 3398 } |
3364 if (_json.containsKey("displayedValue")) { | 3399 if (_json.containsKey("displayedValue")) { |
3365 displayedValue = _json["displayedValue"]; | 3400 displayedValue = _json["displayedValue"]; |
3366 } | 3401 } |
3367 if (_json.containsKey("exampleItems")) { | 3402 if (_json.containsKey("exampleItems")) { |
3368 exampleItems = _json["exampleItems"].map((value) => new AccountStatusExamp
leItem.fromJson(value)).toList(); | 3403 exampleItems = _json["exampleItems"] |
| 3404 .map((value) => new AccountStatusExampleItem.fromJson(value)) |
| 3405 .toList(); |
3369 } | 3406 } |
3370 if (_json.containsKey("id")) { | 3407 if (_json.containsKey("id")) { |
3371 id = _json["id"]; | 3408 id = _json["id"]; |
3372 } | 3409 } |
3373 if (_json.containsKey("lastChecked")) { | 3410 if (_json.containsKey("lastChecked")) { |
3374 lastChecked = _json["lastChecked"]; | 3411 lastChecked = _json["lastChecked"]; |
3375 } | 3412 } |
3376 if (_json.containsKey("location")) { | 3413 if (_json.containsKey("location")) { |
3377 location = _json["location"]; | 3414 location = _json["location"]; |
3378 } | 3415 } |
3379 if (_json.containsKey("numItems")) { | 3416 if (_json.containsKey("numItems")) { |
3380 numItems = _json["numItems"]; | 3417 numItems = _json["numItems"]; |
3381 } | 3418 } |
3382 if (_json.containsKey("severity")) { | 3419 if (_json.containsKey("severity")) { |
3383 severity = _json["severity"]; | 3420 severity = _json["severity"]; |
3384 } | 3421 } |
3385 if (_json.containsKey("submittedValue")) { | 3422 if (_json.containsKey("submittedValue")) { |
3386 submittedValue = _json["submittedValue"]; | 3423 submittedValue = _json["submittedValue"]; |
3387 } | 3424 } |
3388 } | 3425 } |
3389 | 3426 |
3390 core.Map<core.String, core.Object> toJson() { | 3427 core.Map<core.String, core.Object> toJson() { |
3391 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3428 final core.Map<core.String, core.Object> _json = |
| 3429 new core.Map<core.String, core.Object>(); |
3392 if (country != null) { | 3430 if (country != null) { |
3393 _json["country"] = country; | 3431 _json["country"] = country; |
3394 } | 3432 } |
3395 if (detail != null) { | 3433 if (detail != null) { |
3396 _json["detail"] = detail; | 3434 _json["detail"] = detail; |
3397 } | 3435 } |
3398 if (displayedValue != null) { | 3436 if (displayedValue != null) { |
3399 _json["displayedValue"] = displayedValue; | 3437 _json["displayedValue"] = displayedValue; |
3400 } | 3438 } |
3401 if (exampleItems != null) { | 3439 if (exampleItems != null) { |
3402 _json["exampleItems"] = exampleItems.map((value) => (value).toJson()).toLi
st(); | 3440 _json["exampleItems"] = |
| 3441 exampleItems.map((value) => (value).toJson()).toList(); |
3403 } | 3442 } |
3404 if (id != null) { | 3443 if (id != null) { |
3405 _json["id"] = id; | 3444 _json["id"] = id; |
3406 } | 3445 } |
3407 if (lastChecked != null) { | 3446 if (lastChecked != null) { |
3408 _json["lastChecked"] = lastChecked; | 3447 _json["lastChecked"] = lastChecked; |
3409 } | 3448 } |
3410 if (location != null) { | 3449 if (location != null) { |
3411 _json["location"] = location; | 3450 _json["location"] = location; |
3412 } | 3451 } |
3413 if (numItems != null) { | 3452 if (numItems != null) { |
3414 _json["numItems"] = numItems; | 3453 _json["numItems"] = numItems; |
3415 } | 3454 } |
3416 if (severity != null) { | 3455 if (severity != null) { |
3417 _json["severity"] = severity; | 3456 _json["severity"] = severity; |
3418 } | 3457 } |
3419 if (submittedValue != null) { | 3458 if (submittedValue != null) { |
3420 _json["submittedValue"] = submittedValue; | 3459 _json["submittedValue"] = submittedValue; |
3421 } | 3460 } |
3422 return _json; | 3461 return _json; |
3423 } | 3462 } |
3424 } | 3463 } |
3425 | 3464 |
3426 /** | 3465 /// An example of an item that has poor data quality. An item value on the |
3427 * An example of an item that has poor data quality. An item value on the | 3466 /// landing page differs from what is submitted, or conflicts with a policy. |
3428 * landing page differs from what is submitted, or conflicts with a policy. | |
3429 */ | |
3430 class AccountStatusExampleItem { | 3467 class AccountStatusExampleItem { |
3431 /** Unique item ID as specified in the uploaded product data. */ | 3468 /// Unique item ID as specified in the uploaded product data. |
3432 core.String itemId; | 3469 core.String itemId; |
3433 /** Landing page of the item. */ | 3470 |
| 3471 /// Landing page of the item. |
3434 core.String link; | 3472 core.String link; |
3435 /** The item value that was submitted. */ | 3473 |
| 3474 /// The item value that was submitted. |
3436 core.String submittedValue; | 3475 core.String submittedValue; |
3437 /** Title of the item. */ | 3476 |
| 3477 /// Title of the item. |
3438 core.String title; | 3478 core.String title; |
3439 /** The actual value on the landing page. */ | 3479 |
| 3480 /// The actual value on the landing page. |
3440 core.String valueOnLandingPage; | 3481 core.String valueOnLandingPage; |
3441 | 3482 |
3442 AccountStatusExampleItem(); | 3483 AccountStatusExampleItem(); |
3443 | 3484 |
3444 AccountStatusExampleItem.fromJson(core.Map _json) { | 3485 AccountStatusExampleItem.fromJson(core.Map _json) { |
3445 if (_json.containsKey("itemId")) { | 3486 if (_json.containsKey("itemId")) { |
3446 itemId = _json["itemId"]; | 3487 itemId = _json["itemId"]; |
3447 } | 3488 } |
3448 if (_json.containsKey("link")) { | 3489 if (_json.containsKey("link")) { |
3449 link = _json["link"]; | 3490 link = _json["link"]; |
3450 } | 3491 } |
3451 if (_json.containsKey("submittedValue")) { | 3492 if (_json.containsKey("submittedValue")) { |
3452 submittedValue = _json["submittedValue"]; | 3493 submittedValue = _json["submittedValue"]; |
3453 } | 3494 } |
3454 if (_json.containsKey("title")) { | 3495 if (_json.containsKey("title")) { |
3455 title = _json["title"]; | 3496 title = _json["title"]; |
3456 } | 3497 } |
3457 if (_json.containsKey("valueOnLandingPage")) { | 3498 if (_json.containsKey("valueOnLandingPage")) { |
3458 valueOnLandingPage = _json["valueOnLandingPage"]; | 3499 valueOnLandingPage = _json["valueOnLandingPage"]; |
3459 } | 3500 } |
3460 } | 3501 } |
3461 | 3502 |
3462 core.Map<core.String, core.Object> toJson() { | 3503 core.Map<core.String, core.Object> toJson() { |
3463 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3504 final core.Map<core.String, core.Object> _json = |
| 3505 new core.Map<core.String, core.Object>(); |
3464 if (itemId != null) { | 3506 if (itemId != null) { |
3465 _json["itemId"] = itemId; | 3507 _json["itemId"] = itemId; |
3466 } | 3508 } |
3467 if (link != null) { | 3509 if (link != null) { |
3468 _json["link"] = link; | 3510 _json["link"] = link; |
3469 } | 3511 } |
3470 if (submittedValue != null) { | 3512 if (submittedValue != null) { |
3471 _json["submittedValue"] = submittedValue; | 3513 _json["submittedValue"] = submittedValue; |
3472 } | 3514 } |
3473 if (title != null) { | 3515 if (title != null) { |
3474 _json["title"] = title; | 3516 _json["title"] = title; |
3475 } | 3517 } |
3476 if (valueOnLandingPage != null) { | 3518 if (valueOnLandingPage != null) { |
3477 _json["valueOnLandingPage"] = valueOnLandingPage; | 3519 _json["valueOnLandingPage"] = valueOnLandingPage; |
3478 } | 3520 } |
3479 return _json; | 3521 return _json; |
3480 } | 3522 } |
3481 } | 3523 } |
3482 | 3524 |
3483 /** The tax settings of a merchant account. */ | 3525 /// The tax settings of a merchant account. |
3484 class AccountTax { | 3526 class AccountTax { |
3485 /** The ID of the account to which these account tax settings belong. */ | 3527 /// The ID of the account to which these account tax settings belong. |
3486 core.String accountId; | 3528 core.String accountId; |
3487 /** | 3529 |
3488 * Identifies what kind of resource this is. Value: the fixed string | 3530 /// Identifies what kind of resource this is. Value: the fixed string |
3489 * "content#accountTax". | 3531 /// "content#accountTax". |
3490 */ | |
3491 core.String kind; | 3532 core.String kind; |
3492 /** | 3533 |
3493 * Tax rules. Updating the tax rules will enable US taxes (not reversible). | 3534 /// Tax rules. Updating the tax rules will enable US taxes (not reversible). |
3494 * Defining no rules is equivalent to not charging tax at all. | 3535 /// Defining no rules is equivalent to not charging tax at all. |
3495 */ | |
3496 core.List<AccountTaxTaxRule> rules; | 3536 core.List<AccountTaxTaxRule> rules; |
3497 | 3537 |
3498 AccountTax(); | 3538 AccountTax(); |
3499 | 3539 |
3500 AccountTax.fromJson(core.Map _json) { | 3540 AccountTax.fromJson(core.Map _json) { |
3501 if (_json.containsKey("accountId")) { | 3541 if (_json.containsKey("accountId")) { |
3502 accountId = _json["accountId"]; | 3542 accountId = _json["accountId"]; |
3503 } | 3543 } |
3504 if (_json.containsKey("kind")) { | 3544 if (_json.containsKey("kind")) { |
3505 kind = _json["kind"]; | 3545 kind = _json["kind"]; |
3506 } | 3546 } |
3507 if (_json.containsKey("rules")) { | 3547 if (_json.containsKey("rules")) { |
3508 rules = _json["rules"].map((value) => new AccountTaxTaxRule.fromJson(value
)).toList(); | 3548 rules = _json["rules"] |
| 3549 .map((value) => new AccountTaxTaxRule.fromJson(value)) |
| 3550 .toList(); |
3509 } | 3551 } |
3510 } | 3552 } |
3511 | 3553 |
3512 core.Map<core.String, core.Object> toJson() { | 3554 core.Map<core.String, core.Object> toJson() { |
3513 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3555 final core.Map<core.String, core.Object> _json = |
| 3556 new core.Map<core.String, core.Object>(); |
3514 if (accountId != null) { | 3557 if (accountId != null) { |
3515 _json["accountId"] = accountId; | 3558 _json["accountId"] = accountId; |
3516 } | 3559 } |
3517 if (kind != null) { | 3560 if (kind != null) { |
3518 _json["kind"] = kind; | 3561 _json["kind"] = kind; |
3519 } | 3562 } |
3520 if (rules != null) { | 3563 if (rules != null) { |
3521 _json["rules"] = rules.map((value) => (value).toJson()).toList(); | 3564 _json["rules"] = rules.map((value) => (value).toJson()).toList(); |
3522 } | 3565 } |
3523 return _json; | 3566 return _json; |
3524 } | 3567 } |
3525 } | 3568 } |
3526 | 3569 |
3527 /** Tax calculation rule to apply in a state or province (USA only). */ | 3570 /// Tax calculation rule to apply in a state or province (USA only). |
3528 class AccountTaxTaxRule { | 3571 class AccountTaxTaxRule { |
3529 /** Country code in which tax is applicable. */ | 3572 /// Country code in which tax is applicable. |
3530 core.String country; | 3573 core.String country; |
3531 /** | 3574 |
3532 * State (or province) is which the tax is applicable, described by its | 3575 /// State (or province) is which the tax is applicable, described by its |
3533 * location id (also called criteria id). | 3576 /// location id (also called criteria id). |
3534 */ | |
3535 core.String locationId; | 3577 core.String locationId; |
3536 /** | 3578 |
3537 * Explicit tax rate in percent, represented as a floating point number | 3579 /// Explicit tax rate in percent, represented as a floating point number |
3538 * without the percentage character. Must not be negative. | 3580 /// without the percentage character. Must not be negative. |
3539 */ | |
3540 core.String ratePercent; | 3581 core.String ratePercent; |
3541 /** If true, shipping charges are also taxed. */ | 3582 |
| 3583 /// If true, shipping charges are also taxed. |
3542 core.bool shippingTaxed; | 3584 core.bool shippingTaxed; |
3543 /** | 3585 |
3544 * Whether the tax rate is taken from a global tax table or specified | 3586 /// Whether the tax rate is taken from a global tax table or specified |
3545 * explicitly. | 3587 /// explicitly. |
3546 */ | |
3547 core.bool useGlobalRate; | 3588 core.bool useGlobalRate; |
3548 | 3589 |
3549 AccountTaxTaxRule(); | 3590 AccountTaxTaxRule(); |
3550 | 3591 |
3551 AccountTaxTaxRule.fromJson(core.Map _json) { | 3592 AccountTaxTaxRule.fromJson(core.Map _json) { |
3552 if (_json.containsKey("country")) { | 3593 if (_json.containsKey("country")) { |
3553 country = _json["country"]; | 3594 country = _json["country"]; |
3554 } | 3595 } |
3555 if (_json.containsKey("locationId")) { | 3596 if (_json.containsKey("locationId")) { |
3556 locationId = _json["locationId"]; | 3597 locationId = _json["locationId"]; |
3557 } | 3598 } |
3558 if (_json.containsKey("ratePercent")) { | 3599 if (_json.containsKey("ratePercent")) { |
3559 ratePercent = _json["ratePercent"]; | 3600 ratePercent = _json["ratePercent"]; |
3560 } | 3601 } |
3561 if (_json.containsKey("shippingTaxed")) { | 3602 if (_json.containsKey("shippingTaxed")) { |
3562 shippingTaxed = _json["shippingTaxed"]; | 3603 shippingTaxed = _json["shippingTaxed"]; |
3563 } | 3604 } |
3564 if (_json.containsKey("useGlobalRate")) { | 3605 if (_json.containsKey("useGlobalRate")) { |
3565 useGlobalRate = _json["useGlobalRate"]; | 3606 useGlobalRate = _json["useGlobalRate"]; |
3566 } | 3607 } |
3567 } | 3608 } |
3568 | 3609 |
3569 core.Map<core.String, core.Object> toJson() { | 3610 core.Map<core.String, core.Object> toJson() { |
3570 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3611 final core.Map<core.String, core.Object> _json = |
| 3612 new core.Map<core.String, core.Object>(); |
3571 if (country != null) { | 3613 if (country != null) { |
3572 _json["country"] = country; | 3614 _json["country"] = country; |
3573 } | 3615 } |
3574 if (locationId != null) { | 3616 if (locationId != null) { |
3575 _json["locationId"] = locationId; | 3617 _json["locationId"] = locationId; |
3576 } | 3618 } |
3577 if (ratePercent != null) { | 3619 if (ratePercent != null) { |
3578 _json["ratePercent"] = ratePercent; | 3620 _json["ratePercent"] = ratePercent; |
3579 } | 3621 } |
3580 if (shippingTaxed != null) { | 3622 if (shippingTaxed != null) { |
3581 _json["shippingTaxed"] = shippingTaxed; | 3623 _json["shippingTaxed"] = shippingTaxed; |
3582 } | 3624 } |
3583 if (useGlobalRate != null) { | 3625 if (useGlobalRate != null) { |
3584 _json["useGlobalRate"] = useGlobalRate; | 3626 _json["useGlobalRate"] = useGlobalRate; |
3585 } | 3627 } |
3586 return _json; | 3628 return _json; |
3587 } | 3629 } |
3588 } | 3630 } |
3589 | 3631 |
3590 class AccountUser { | 3632 class AccountUser { |
3591 /** Whether user is an admin. */ | 3633 /// Whether user is an admin. |
3592 core.bool admin; | 3634 core.bool admin; |
3593 /** User's email address. */ | 3635 |
| 3636 /// User's email address. |
3594 core.String emailAddress; | 3637 core.String emailAddress; |
3595 | 3638 |
3596 AccountUser(); | 3639 AccountUser(); |
3597 | 3640 |
3598 AccountUser.fromJson(core.Map _json) { | 3641 AccountUser.fromJson(core.Map _json) { |
3599 if (_json.containsKey("admin")) { | 3642 if (_json.containsKey("admin")) { |
3600 admin = _json["admin"]; | 3643 admin = _json["admin"]; |
3601 } | 3644 } |
3602 if (_json.containsKey("emailAddress")) { | 3645 if (_json.containsKey("emailAddress")) { |
3603 emailAddress = _json["emailAddress"]; | 3646 emailAddress = _json["emailAddress"]; |
3604 } | 3647 } |
3605 } | 3648 } |
3606 | 3649 |
3607 core.Map<core.String, core.Object> toJson() { | 3650 core.Map<core.String, core.Object> toJson() { |
3608 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3651 final core.Map<core.String, core.Object> _json = |
| 3652 new core.Map<core.String, core.Object>(); |
3609 if (admin != null) { | 3653 if (admin != null) { |
3610 _json["admin"] = admin; | 3654 _json["admin"] = admin; |
3611 } | 3655 } |
3612 if (emailAddress != null) { | 3656 if (emailAddress != null) { |
3613 _json["emailAddress"] = emailAddress; | 3657 _json["emailAddress"] = emailAddress; |
3614 } | 3658 } |
3615 return _json; | 3659 return _json; |
3616 } | 3660 } |
3617 } | 3661 } |
3618 | 3662 |
3619 class AccountsAuthInfoResponse { | 3663 class AccountsAuthInfoResponse { |
3620 /** | 3664 /// The account identifiers corresponding to the authenticated user. |
3621 * The account identifiers corresponding to the authenticated user. | 3665 /// - For an individual account: only the merchant ID is defined |
3622 * - For an individual account: only the merchant ID is defined | 3666 /// - For an aggregator: only the aggregator ID is defined |
3623 * - For an aggregator: only the aggregator ID is defined | 3667 /// - For a subaccount of an MCA: both the merchant ID and the aggregator ID |
3624 * - For a subaccount of an MCA: both the merchant ID and the aggregator ID | 3668 /// are defined. |
3625 * are defined. | |
3626 */ | |
3627 core.List<AccountIdentifier> accountIdentifiers; | 3669 core.List<AccountIdentifier> accountIdentifiers; |
3628 /** | 3670 |
3629 * Identifies what kind of resource this is. Value: the fixed string | 3671 /// Identifies what kind of resource this is. Value: the fixed string |
3630 * "content#accountsAuthInfoResponse". | 3672 /// "content#accountsAuthInfoResponse". |
3631 */ | |
3632 core.String kind; | 3673 core.String kind; |
3633 | 3674 |
3634 AccountsAuthInfoResponse(); | 3675 AccountsAuthInfoResponse(); |
3635 | 3676 |
3636 AccountsAuthInfoResponse.fromJson(core.Map _json) { | 3677 AccountsAuthInfoResponse.fromJson(core.Map _json) { |
3637 if (_json.containsKey("accountIdentifiers")) { | 3678 if (_json.containsKey("accountIdentifiers")) { |
3638 accountIdentifiers = _json["accountIdentifiers"].map((value) => new Accoun
tIdentifier.fromJson(value)).toList(); | 3679 accountIdentifiers = _json["accountIdentifiers"] |
| 3680 .map((value) => new AccountIdentifier.fromJson(value)) |
| 3681 .toList(); |
3639 } | 3682 } |
3640 if (_json.containsKey("kind")) { | 3683 if (_json.containsKey("kind")) { |
3641 kind = _json["kind"]; | 3684 kind = _json["kind"]; |
3642 } | 3685 } |
3643 } | 3686 } |
3644 | 3687 |
3645 core.Map<core.String, core.Object> toJson() { | 3688 core.Map<core.String, core.Object> toJson() { |
3646 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3689 final core.Map<core.String, core.Object> _json = |
| 3690 new core.Map<core.String, core.Object>(); |
3647 if (accountIdentifiers != null) { | 3691 if (accountIdentifiers != null) { |
3648 _json["accountIdentifiers"] = accountIdentifiers.map((value) => (value).to
Json()).toList(); | 3692 _json["accountIdentifiers"] = |
| 3693 accountIdentifiers.map((value) => (value).toJson()).toList(); |
3649 } | 3694 } |
3650 if (kind != null) { | 3695 if (kind != null) { |
3651 _json["kind"] = kind; | 3696 _json["kind"] = kind; |
3652 } | 3697 } |
3653 return _json; | 3698 return _json; |
3654 } | 3699 } |
3655 } | 3700 } |
3656 | 3701 |
3657 class AccountsClaimWebsiteResponse { | 3702 class AccountsClaimWebsiteResponse { |
3658 /** | 3703 /// Identifies what kind of resource this is. Value: the fixed string |
3659 * Identifies what kind of resource this is. Value: the fixed string | 3704 /// "content#accountsClaimWebsiteResponse". |
3660 * "content#accountsClaimWebsiteResponse". | |
3661 */ | |
3662 core.String kind; | 3705 core.String kind; |
3663 | 3706 |
3664 AccountsClaimWebsiteResponse(); | 3707 AccountsClaimWebsiteResponse(); |
3665 | 3708 |
3666 AccountsClaimWebsiteResponse.fromJson(core.Map _json) { | 3709 AccountsClaimWebsiteResponse.fromJson(core.Map _json) { |
3667 if (_json.containsKey("kind")) { | 3710 if (_json.containsKey("kind")) { |
3668 kind = _json["kind"]; | 3711 kind = _json["kind"]; |
3669 } | 3712 } |
3670 } | 3713 } |
3671 | 3714 |
3672 core.Map<core.String, core.Object> toJson() { | 3715 core.Map<core.String, core.Object> toJson() { |
3673 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3716 final core.Map<core.String, core.Object> _json = |
| 3717 new core.Map<core.String, core.Object>(); |
3674 if (kind != null) { | 3718 if (kind != null) { |
3675 _json["kind"] = kind; | 3719 _json["kind"] = kind; |
3676 } | 3720 } |
3677 return _json; | 3721 return _json; |
3678 } | 3722 } |
3679 } | 3723 } |
3680 | 3724 |
3681 class AccountsCustomBatchRequest { | 3725 class AccountsCustomBatchRequest { |
3682 /** The request entries to be processed in the batch. */ | 3726 /// The request entries to be processed in the batch. |
3683 core.List<AccountsCustomBatchRequestEntry> entries; | 3727 core.List<AccountsCustomBatchRequestEntry> entries; |
3684 | 3728 |
3685 AccountsCustomBatchRequest(); | 3729 AccountsCustomBatchRequest(); |
3686 | 3730 |
3687 AccountsCustomBatchRequest.fromJson(core.Map _json) { | 3731 AccountsCustomBatchRequest.fromJson(core.Map _json) { |
3688 if (_json.containsKey("entries")) { | 3732 if (_json.containsKey("entries")) { |
3689 entries = _json["entries"].map((value) => new AccountsCustomBatchRequestEn
try.fromJson(value)).toList(); | 3733 entries = _json["entries"] |
| 3734 .map((value) => new AccountsCustomBatchRequestEntry.fromJson(value)) |
| 3735 .toList(); |
3690 } | 3736 } |
3691 } | 3737 } |
3692 | 3738 |
3693 core.Map<core.String, core.Object> toJson() { | 3739 core.Map<core.String, core.Object> toJson() { |
3694 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3740 final core.Map<core.String, core.Object> _json = |
| 3741 new core.Map<core.String, core.Object>(); |
3695 if (entries != null) { | 3742 if (entries != null) { |
3696 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 3743 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
3697 } | 3744 } |
3698 return _json; | 3745 return _json; |
3699 } | 3746 } |
3700 } | 3747 } |
3701 | 3748 |
3702 /** A batch entry encoding a single non-batch accounts request. */ | 3749 /// A batch entry encoding a single non-batch accounts request. |
3703 class AccountsCustomBatchRequestEntry { | 3750 class AccountsCustomBatchRequestEntry { |
3704 /** | 3751 /// The account to create or update. Only defined if the method is insert or |
3705 * The account to create or update. Only defined if the method is insert or | 3752 /// update. |
3706 * update. | |
3707 */ | |
3708 Account account; | 3753 Account account; |
3709 /** | 3754 |
3710 * The ID of the targeted account. Only defined if the method is get, delete | 3755 /// The ID of the targeted account. Only defined if the method is get, delete |
3711 * or claimwebsite. | 3756 /// or claimwebsite. |
3712 */ | |
3713 core.String accountId; | 3757 core.String accountId; |
3714 /** An entry ID, unique within the batch request. */ | 3758 |
| 3759 /// An entry ID, unique within the batch request. |
3715 core.int batchId; | 3760 core.int batchId; |
3716 /** The ID of the managing account. */ | 3761 |
| 3762 /// Whether the account should be deleted if the account has offers. Only |
| 3763 /// applicable if the method is delete. |
| 3764 core.bool force; |
| 3765 |
| 3766 /// The ID of the managing account. |
3717 core.String merchantId; | 3767 core.String merchantId; |
3718 core.String method; | 3768 core.String method; |
3719 /** | 3769 |
3720 * Only applicable if the method is claimwebsite. Indicates whether or not to | 3770 /// Only applicable if the method is claimwebsite. Indicates whether or not |
3721 * take the claim from another account in case there is a conflict. | 3771 /// to take the claim from another account in case there is a conflict. |
3722 */ | |
3723 core.bool overwrite; | 3772 core.bool overwrite; |
3724 | 3773 |
3725 AccountsCustomBatchRequestEntry(); | 3774 AccountsCustomBatchRequestEntry(); |
3726 | 3775 |
3727 AccountsCustomBatchRequestEntry.fromJson(core.Map _json) { | 3776 AccountsCustomBatchRequestEntry.fromJson(core.Map _json) { |
3728 if (_json.containsKey("account")) { | 3777 if (_json.containsKey("account")) { |
3729 account = new Account.fromJson(_json["account"]); | 3778 account = new Account.fromJson(_json["account"]); |
3730 } | 3779 } |
3731 if (_json.containsKey("accountId")) { | 3780 if (_json.containsKey("accountId")) { |
3732 accountId = _json["accountId"]; | 3781 accountId = _json["accountId"]; |
3733 } | 3782 } |
3734 if (_json.containsKey("batchId")) { | 3783 if (_json.containsKey("batchId")) { |
3735 batchId = _json["batchId"]; | 3784 batchId = _json["batchId"]; |
3736 } | 3785 } |
| 3786 if (_json.containsKey("force")) { |
| 3787 force = _json["force"]; |
| 3788 } |
3737 if (_json.containsKey("merchantId")) { | 3789 if (_json.containsKey("merchantId")) { |
3738 merchantId = _json["merchantId"]; | 3790 merchantId = _json["merchantId"]; |
3739 } | 3791 } |
3740 if (_json.containsKey("method")) { | 3792 if (_json.containsKey("method")) { |
3741 method = _json["method"]; | 3793 method = _json["method"]; |
3742 } | 3794 } |
3743 if (_json.containsKey("overwrite")) { | 3795 if (_json.containsKey("overwrite")) { |
3744 overwrite = _json["overwrite"]; | 3796 overwrite = _json["overwrite"]; |
3745 } | 3797 } |
3746 } | 3798 } |
3747 | 3799 |
3748 core.Map<core.String, core.Object> toJson() { | 3800 core.Map<core.String, core.Object> toJson() { |
3749 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3801 final core.Map<core.String, core.Object> _json = |
| 3802 new core.Map<core.String, core.Object>(); |
3750 if (account != null) { | 3803 if (account != null) { |
3751 _json["account"] = (account).toJson(); | 3804 _json["account"] = (account).toJson(); |
3752 } | 3805 } |
3753 if (accountId != null) { | 3806 if (accountId != null) { |
3754 _json["accountId"] = accountId; | 3807 _json["accountId"] = accountId; |
3755 } | 3808 } |
3756 if (batchId != null) { | 3809 if (batchId != null) { |
3757 _json["batchId"] = batchId; | 3810 _json["batchId"] = batchId; |
3758 } | 3811 } |
| 3812 if (force != null) { |
| 3813 _json["force"] = force; |
| 3814 } |
3759 if (merchantId != null) { | 3815 if (merchantId != null) { |
3760 _json["merchantId"] = merchantId; | 3816 _json["merchantId"] = merchantId; |
3761 } | 3817 } |
3762 if (method != null) { | 3818 if (method != null) { |
3763 _json["method"] = method; | 3819 _json["method"] = method; |
3764 } | 3820 } |
3765 if (overwrite != null) { | 3821 if (overwrite != null) { |
3766 _json["overwrite"] = overwrite; | 3822 _json["overwrite"] = overwrite; |
3767 } | 3823 } |
3768 return _json; | 3824 return _json; |
3769 } | 3825 } |
3770 } | 3826 } |
3771 | 3827 |
3772 class AccountsCustomBatchResponse { | 3828 class AccountsCustomBatchResponse { |
3773 /** The result of the execution of the batch requests. */ | 3829 /// The result of the execution of the batch requests. |
3774 core.List<AccountsCustomBatchResponseEntry> entries; | 3830 core.List<AccountsCustomBatchResponseEntry> entries; |
3775 /** | 3831 |
3776 * Identifies what kind of resource this is. Value: the fixed string | 3832 /// Identifies what kind of resource this is. Value: the fixed string |
3777 * "content#accountsCustomBatchResponse". | 3833 /// "content#accountsCustomBatchResponse". |
3778 */ | |
3779 core.String kind; | 3834 core.String kind; |
3780 | 3835 |
3781 AccountsCustomBatchResponse(); | 3836 AccountsCustomBatchResponse(); |
3782 | 3837 |
3783 AccountsCustomBatchResponse.fromJson(core.Map _json) { | 3838 AccountsCustomBatchResponse.fromJson(core.Map _json) { |
3784 if (_json.containsKey("entries")) { | 3839 if (_json.containsKey("entries")) { |
3785 entries = _json["entries"].map((value) => new AccountsCustomBatchResponseE
ntry.fromJson(value)).toList(); | 3840 entries = _json["entries"] |
| 3841 .map((value) => new AccountsCustomBatchResponseEntry.fromJson(value)) |
| 3842 .toList(); |
3786 } | 3843 } |
3787 if (_json.containsKey("kind")) { | 3844 if (_json.containsKey("kind")) { |
3788 kind = _json["kind"]; | 3845 kind = _json["kind"]; |
3789 } | 3846 } |
3790 } | 3847 } |
3791 | 3848 |
3792 core.Map<core.String, core.Object> toJson() { | 3849 core.Map<core.String, core.Object> toJson() { |
3793 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3850 final core.Map<core.String, core.Object> _json = |
| 3851 new core.Map<core.String, core.Object>(); |
3794 if (entries != null) { | 3852 if (entries != null) { |
3795 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 3853 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
3796 } | 3854 } |
3797 if (kind != null) { | 3855 if (kind != null) { |
3798 _json["kind"] = kind; | 3856 _json["kind"] = kind; |
3799 } | 3857 } |
3800 return _json; | 3858 return _json; |
3801 } | 3859 } |
3802 } | 3860 } |
3803 | 3861 |
3804 /** A batch entry encoding a single non-batch accounts response. */ | 3862 /// A batch entry encoding a single non-batch accounts response. |
3805 class AccountsCustomBatchResponseEntry { | 3863 class AccountsCustomBatchResponseEntry { |
3806 /** | 3864 /// The retrieved, created, or updated account. Not defined if the method was |
3807 * The retrieved, created, or updated account. Not defined if the method was | 3865 /// delete or claimwebsite. |
3808 * delete or claimwebsite. | |
3809 */ | |
3810 Account account; | 3866 Account account; |
3811 /** The ID of the request entry this entry responds to. */ | 3867 |
| 3868 /// The ID of the request entry this entry responds to. |
3812 core.int batchId; | 3869 core.int batchId; |
3813 /** A list of errors defined if and only if the request failed. */ | 3870 |
| 3871 /// A list of errors defined if and only if the request failed. |
3814 Errors errors; | 3872 Errors errors; |
3815 /** | 3873 |
3816 * Identifies what kind of resource this is. Value: the fixed string | 3874 /// Identifies what kind of resource this is. Value: the fixed string |
3817 * "content#accountsCustomBatchResponseEntry". | 3875 /// "content#accountsCustomBatchResponseEntry". |
3818 */ | |
3819 core.String kind; | 3876 core.String kind; |
3820 | 3877 |
3821 AccountsCustomBatchResponseEntry(); | 3878 AccountsCustomBatchResponseEntry(); |
3822 | 3879 |
3823 AccountsCustomBatchResponseEntry.fromJson(core.Map _json) { | 3880 AccountsCustomBatchResponseEntry.fromJson(core.Map _json) { |
3824 if (_json.containsKey("account")) { | 3881 if (_json.containsKey("account")) { |
3825 account = new Account.fromJson(_json["account"]); | 3882 account = new Account.fromJson(_json["account"]); |
3826 } | 3883 } |
3827 if (_json.containsKey("batchId")) { | 3884 if (_json.containsKey("batchId")) { |
3828 batchId = _json["batchId"]; | 3885 batchId = _json["batchId"]; |
3829 } | 3886 } |
3830 if (_json.containsKey("errors")) { | 3887 if (_json.containsKey("errors")) { |
3831 errors = new Errors.fromJson(_json["errors"]); | 3888 errors = new Errors.fromJson(_json["errors"]); |
3832 } | 3889 } |
3833 if (_json.containsKey("kind")) { | 3890 if (_json.containsKey("kind")) { |
3834 kind = _json["kind"]; | 3891 kind = _json["kind"]; |
3835 } | 3892 } |
3836 } | 3893 } |
3837 | 3894 |
3838 core.Map<core.String, core.Object> toJson() { | 3895 core.Map<core.String, core.Object> toJson() { |
3839 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3896 final core.Map<core.String, core.Object> _json = |
| 3897 new core.Map<core.String, core.Object>(); |
3840 if (account != null) { | 3898 if (account != null) { |
3841 _json["account"] = (account).toJson(); | 3899 _json["account"] = (account).toJson(); |
3842 } | 3900 } |
3843 if (batchId != null) { | 3901 if (batchId != null) { |
3844 _json["batchId"] = batchId; | 3902 _json["batchId"] = batchId; |
3845 } | 3903 } |
3846 if (errors != null) { | 3904 if (errors != null) { |
3847 _json["errors"] = (errors).toJson(); | 3905 _json["errors"] = (errors).toJson(); |
3848 } | 3906 } |
3849 if (kind != null) { | 3907 if (kind != null) { |
3850 _json["kind"] = kind; | 3908 _json["kind"] = kind; |
3851 } | 3909 } |
3852 return _json; | 3910 return _json; |
3853 } | 3911 } |
3854 } | 3912 } |
3855 | 3913 |
3856 class AccountsListResponse { | 3914 class AccountsListResponse { |
3857 /** | 3915 /// Identifies what kind of resource this is. Value: the fixed string |
3858 * Identifies what kind of resource this is. Value: the fixed string | 3916 /// "content#accountsListResponse". |
3859 * "content#accountsListResponse". | |
3860 */ | |
3861 core.String kind; | 3917 core.String kind; |
3862 /** The token for the retrieval of the next page of accounts. */ | 3918 |
| 3919 /// The token for the retrieval of the next page of accounts. |
3863 core.String nextPageToken; | 3920 core.String nextPageToken; |
3864 core.List<Account> resources; | 3921 core.List<Account> resources; |
3865 | 3922 |
3866 AccountsListResponse(); | 3923 AccountsListResponse(); |
3867 | 3924 |
3868 AccountsListResponse.fromJson(core.Map _json) { | 3925 AccountsListResponse.fromJson(core.Map _json) { |
3869 if (_json.containsKey("kind")) { | 3926 if (_json.containsKey("kind")) { |
3870 kind = _json["kind"]; | 3927 kind = _json["kind"]; |
3871 } | 3928 } |
3872 if (_json.containsKey("nextPageToken")) { | 3929 if (_json.containsKey("nextPageToken")) { |
3873 nextPageToken = _json["nextPageToken"]; | 3930 nextPageToken = _json["nextPageToken"]; |
3874 } | 3931 } |
3875 if (_json.containsKey("resources")) { | 3932 if (_json.containsKey("resources")) { |
3876 resources = _json["resources"].map((value) => new Account.fromJson(value))
.toList(); | 3933 resources = _json["resources"] |
| 3934 .map((value) => new Account.fromJson(value)) |
| 3935 .toList(); |
3877 } | 3936 } |
3878 } | 3937 } |
3879 | 3938 |
3880 core.Map<core.String, core.Object> toJson() { | 3939 core.Map<core.String, core.Object> toJson() { |
3881 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3940 final core.Map<core.String, core.Object> _json = |
| 3941 new core.Map<core.String, core.Object>(); |
3882 if (kind != null) { | 3942 if (kind != null) { |
3883 _json["kind"] = kind; | 3943 _json["kind"] = kind; |
3884 } | 3944 } |
3885 if (nextPageToken != null) { | 3945 if (nextPageToken != null) { |
3886 _json["nextPageToken"] = nextPageToken; | 3946 _json["nextPageToken"] = nextPageToken; |
3887 } | 3947 } |
3888 if (resources != null) { | 3948 if (resources != null) { |
3889 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 3949 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
3890 } | 3950 } |
3891 return _json; | 3951 return _json; |
3892 } | 3952 } |
3893 } | 3953 } |
3894 | 3954 |
3895 class AccountstatusesCustomBatchRequest { | 3955 class AccountstatusesCustomBatchRequest { |
3896 /** The request entries to be processed in the batch. */ | 3956 /// The request entries to be processed in the batch. |
3897 core.List<AccountstatusesCustomBatchRequestEntry> entries; | 3957 core.List<AccountstatusesCustomBatchRequestEntry> entries; |
3898 | 3958 |
3899 AccountstatusesCustomBatchRequest(); | 3959 AccountstatusesCustomBatchRequest(); |
3900 | 3960 |
3901 AccountstatusesCustomBatchRequest.fromJson(core.Map _json) { | 3961 AccountstatusesCustomBatchRequest.fromJson(core.Map _json) { |
3902 if (_json.containsKey("entries")) { | 3962 if (_json.containsKey("entries")) { |
3903 entries = _json["entries"].map((value) => new AccountstatusesCustomBatchRe
questEntry.fromJson(value)).toList(); | 3963 entries = _json["entries"] |
| 3964 .map((value) => |
| 3965 new AccountstatusesCustomBatchRequestEntry.fromJson(value)) |
| 3966 .toList(); |
3904 } | 3967 } |
3905 } | 3968 } |
3906 | 3969 |
3907 core.Map<core.String, core.Object> toJson() { | 3970 core.Map<core.String, core.Object> toJson() { |
3908 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3971 final core.Map<core.String, core.Object> _json = |
| 3972 new core.Map<core.String, core.Object>(); |
3909 if (entries != null) { | 3973 if (entries != null) { |
3910 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 3974 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
3911 } | 3975 } |
3912 return _json; | 3976 return _json; |
3913 } | 3977 } |
3914 } | 3978 } |
3915 | 3979 |
3916 /** A batch entry encoding a single non-batch accountstatuses request. */ | 3980 /// A batch entry encoding a single non-batch accountstatuses request. |
3917 class AccountstatusesCustomBatchRequestEntry { | 3981 class AccountstatusesCustomBatchRequestEntry { |
3918 /** The ID of the (sub-)account whose status to get. */ | 3982 /// The ID of the (sub-)account whose status to get. |
3919 core.String accountId; | 3983 core.String accountId; |
3920 /** An entry ID, unique within the batch request. */ | 3984 |
| 3985 /// An entry ID, unique within the batch request. |
3921 core.int batchId; | 3986 core.int batchId; |
3922 /** The ID of the managing account. */ | 3987 |
| 3988 /// The ID of the managing account. |
3923 core.String merchantId; | 3989 core.String merchantId; |
3924 /** The method (get). */ | 3990 |
| 3991 /// The method (get). |
3925 core.String method; | 3992 core.String method; |
3926 | 3993 |
3927 AccountstatusesCustomBatchRequestEntry(); | 3994 AccountstatusesCustomBatchRequestEntry(); |
3928 | 3995 |
3929 AccountstatusesCustomBatchRequestEntry.fromJson(core.Map _json) { | 3996 AccountstatusesCustomBatchRequestEntry.fromJson(core.Map _json) { |
3930 if (_json.containsKey("accountId")) { | 3997 if (_json.containsKey("accountId")) { |
3931 accountId = _json["accountId"]; | 3998 accountId = _json["accountId"]; |
3932 } | 3999 } |
3933 if (_json.containsKey("batchId")) { | 4000 if (_json.containsKey("batchId")) { |
3934 batchId = _json["batchId"]; | 4001 batchId = _json["batchId"]; |
3935 } | 4002 } |
3936 if (_json.containsKey("merchantId")) { | 4003 if (_json.containsKey("merchantId")) { |
3937 merchantId = _json["merchantId"]; | 4004 merchantId = _json["merchantId"]; |
3938 } | 4005 } |
3939 if (_json.containsKey("method")) { | 4006 if (_json.containsKey("method")) { |
3940 method = _json["method"]; | 4007 method = _json["method"]; |
3941 } | 4008 } |
3942 } | 4009 } |
3943 | 4010 |
3944 core.Map<core.String, core.Object> toJson() { | 4011 core.Map<core.String, core.Object> toJson() { |
3945 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4012 final core.Map<core.String, core.Object> _json = |
| 4013 new core.Map<core.String, core.Object>(); |
3946 if (accountId != null) { | 4014 if (accountId != null) { |
3947 _json["accountId"] = accountId; | 4015 _json["accountId"] = accountId; |
3948 } | 4016 } |
3949 if (batchId != null) { | 4017 if (batchId != null) { |
3950 _json["batchId"] = batchId; | 4018 _json["batchId"] = batchId; |
3951 } | 4019 } |
3952 if (merchantId != null) { | 4020 if (merchantId != null) { |
3953 _json["merchantId"] = merchantId; | 4021 _json["merchantId"] = merchantId; |
3954 } | 4022 } |
3955 if (method != null) { | 4023 if (method != null) { |
3956 _json["method"] = method; | 4024 _json["method"] = method; |
3957 } | 4025 } |
3958 return _json; | 4026 return _json; |
3959 } | 4027 } |
3960 } | 4028 } |
3961 | 4029 |
3962 class AccountstatusesCustomBatchResponse { | 4030 class AccountstatusesCustomBatchResponse { |
3963 /** The result of the execution of the batch requests. */ | 4031 /// The result of the execution of the batch requests. |
3964 core.List<AccountstatusesCustomBatchResponseEntry> entries; | 4032 core.List<AccountstatusesCustomBatchResponseEntry> entries; |
3965 /** | 4033 |
3966 * Identifies what kind of resource this is. Value: the fixed string | 4034 /// Identifies what kind of resource this is. Value: the fixed string |
3967 * "content#accountstatusesCustomBatchResponse". | 4035 /// "content#accountstatusesCustomBatchResponse". |
3968 */ | |
3969 core.String kind; | 4036 core.String kind; |
3970 | 4037 |
3971 AccountstatusesCustomBatchResponse(); | 4038 AccountstatusesCustomBatchResponse(); |
3972 | 4039 |
3973 AccountstatusesCustomBatchResponse.fromJson(core.Map _json) { | 4040 AccountstatusesCustomBatchResponse.fromJson(core.Map _json) { |
3974 if (_json.containsKey("entries")) { | 4041 if (_json.containsKey("entries")) { |
3975 entries = _json["entries"].map((value) => new AccountstatusesCustomBatchRe
sponseEntry.fromJson(value)).toList(); | 4042 entries = _json["entries"] |
| 4043 .map((value) => |
| 4044 new AccountstatusesCustomBatchResponseEntry.fromJson(value)) |
| 4045 .toList(); |
3976 } | 4046 } |
3977 if (_json.containsKey("kind")) { | 4047 if (_json.containsKey("kind")) { |
3978 kind = _json["kind"]; | 4048 kind = _json["kind"]; |
3979 } | 4049 } |
3980 } | 4050 } |
3981 | 4051 |
3982 core.Map<core.String, core.Object> toJson() { | 4052 core.Map<core.String, core.Object> toJson() { |
3983 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4053 final core.Map<core.String, core.Object> _json = |
| 4054 new core.Map<core.String, core.Object>(); |
3984 if (entries != null) { | 4055 if (entries != null) { |
3985 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 4056 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
3986 } | 4057 } |
3987 if (kind != null) { | 4058 if (kind != null) { |
3988 _json["kind"] = kind; | 4059 _json["kind"] = kind; |
3989 } | 4060 } |
3990 return _json; | 4061 return _json; |
3991 } | 4062 } |
3992 } | 4063 } |
3993 | 4064 |
3994 /** A batch entry encoding a single non-batch accountstatuses response. */ | 4065 /// A batch entry encoding a single non-batch accountstatuses response. |
3995 class AccountstatusesCustomBatchResponseEntry { | 4066 class AccountstatusesCustomBatchResponseEntry { |
3996 /** | 4067 /// The requested account status. Defined if and only if the request was |
3997 * The requested account status. Defined if and only if the request was | 4068 /// successful. |
3998 * successful. | |
3999 */ | |
4000 AccountStatus accountStatus; | 4069 AccountStatus accountStatus; |
4001 /** The ID of the request entry this entry responds to. */ | 4070 |
| 4071 /// The ID of the request entry this entry responds to. |
4002 core.int batchId; | 4072 core.int batchId; |
4003 /** A list of errors defined if and only if the request failed. */ | 4073 |
| 4074 /// A list of errors defined if and only if the request failed. |
4004 Errors errors; | 4075 Errors errors; |
4005 | 4076 |
4006 AccountstatusesCustomBatchResponseEntry(); | 4077 AccountstatusesCustomBatchResponseEntry(); |
4007 | 4078 |
4008 AccountstatusesCustomBatchResponseEntry.fromJson(core.Map _json) { | 4079 AccountstatusesCustomBatchResponseEntry.fromJson(core.Map _json) { |
4009 if (_json.containsKey("accountStatus")) { | 4080 if (_json.containsKey("accountStatus")) { |
4010 accountStatus = new AccountStatus.fromJson(_json["accountStatus"]); | 4081 accountStatus = new AccountStatus.fromJson(_json["accountStatus"]); |
4011 } | 4082 } |
4012 if (_json.containsKey("batchId")) { | 4083 if (_json.containsKey("batchId")) { |
4013 batchId = _json["batchId"]; | 4084 batchId = _json["batchId"]; |
4014 } | 4085 } |
4015 if (_json.containsKey("errors")) { | 4086 if (_json.containsKey("errors")) { |
4016 errors = new Errors.fromJson(_json["errors"]); | 4087 errors = new Errors.fromJson(_json["errors"]); |
4017 } | 4088 } |
4018 } | 4089 } |
4019 | 4090 |
4020 core.Map<core.String, core.Object> toJson() { | 4091 core.Map<core.String, core.Object> toJson() { |
4021 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4092 final core.Map<core.String, core.Object> _json = |
| 4093 new core.Map<core.String, core.Object>(); |
4022 if (accountStatus != null) { | 4094 if (accountStatus != null) { |
4023 _json["accountStatus"] = (accountStatus).toJson(); | 4095 _json["accountStatus"] = (accountStatus).toJson(); |
4024 } | 4096 } |
4025 if (batchId != null) { | 4097 if (batchId != null) { |
4026 _json["batchId"] = batchId; | 4098 _json["batchId"] = batchId; |
4027 } | 4099 } |
4028 if (errors != null) { | 4100 if (errors != null) { |
4029 _json["errors"] = (errors).toJson(); | 4101 _json["errors"] = (errors).toJson(); |
4030 } | 4102 } |
4031 return _json; | 4103 return _json; |
4032 } | 4104 } |
4033 } | 4105 } |
4034 | 4106 |
4035 class AccountstatusesListResponse { | 4107 class AccountstatusesListResponse { |
4036 /** | 4108 /// Identifies what kind of resource this is. Value: the fixed string |
4037 * Identifies what kind of resource this is. Value: the fixed string | 4109 /// "content#accountstatusesListResponse". |
4038 * "content#accountstatusesListResponse". | |
4039 */ | |
4040 core.String kind; | 4110 core.String kind; |
4041 /** The token for the retrieval of the next page of account statuses. */ | 4111 |
| 4112 /// The token for the retrieval of the next page of account statuses. |
4042 core.String nextPageToken; | 4113 core.String nextPageToken; |
4043 core.List<AccountStatus> resources; | 4114 core.List<AccountStatus> resources; |
4044 | 4115 |
4045 AccountstatusesListResponse(); | 4116 AccountstatusesListResponse(); |
4046 | 4117 |
4047 AccountstatusesListResponse.fromJson(core.Map _json) { | 4118 AccountstatusesListResponse.fromJson(core.Map _json) { |
4048 if (_json.containsKey("kind")) { | 4119 if (_json.containsKey("kind")) { |
4049 kind = _json["kind"]; | 4120 kind = _json["kind"]; |
4050 } | 4121 } |
4051 if (_json.containsKey("nextPageToken")) { | 4122 if (_json.containsKey("nextPageToken")) { |
4052 nextPageToken = _json["nextPageToken"]; | 4123 nextPageToken = _json["nextPageToken"]; |
4053 } | 4124 } |
4054 if (_json.containsKey("resources")) { | 4125 if (_json.containsKey("resources")) { |
4055 resources = _json["resources"].map((value) => new AccountStatus.fromJson(v
alue)).toList(); | 4126 resources = _json["resources"] |
| 4127 .map((value) => new AccountStatus.fromJson(value)) |
| 4128 .toList(); |
4056 } | 4129 } |
4057 } | 4130 } |
4058 | 4131 |
4059 core.Map<core.String, core.Object> toJson() { | 4132 core.Map<core.String, core.Object> toJson() { |
4060 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4133 final core.Map<core.String, core.Object> _json = |
| 4134 new core.Map<core.String, core.Object>(); |
4061 if (kind != null) { | 4135 if (kind != null) { |
4062 _json["kind"] = kind; | 4136 _json["kind"] = kind; |
4063 } | 4137 } |
4064 if (nextPageToken != null) { | 4138 if (nextPageToken != null) { |
4065 _json["nextPageToken"] = nextPageToken; | 4139 _json["nextPageToken"] = nextPageToken; |
4066 } | 4140 } |
4067 if (resources != null) { | 4141 if (resources != null) { |
4068 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 4142 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
4069 } | 4143 } |
4070 return _json; | 4144 return _json; |
4071 } | 4145 } |
4072 } | 4146 } |
4073 | 4147 |
4074 class AccounttaxCustomBatchRequest { | 4148 class AccounttaxCustomBatchRequest { |
4075 /** The request entries to be processed in the batch. */ | 4149 /// The request entries to be processed in the batch. |
4076 core.List<AccounttaxCustomBatchRequestEntry> entries; | 4150 core.List<AccounttaxCustomBatchRequestEntry> entries; |
4077 | 4151 |
4078 AccounttaxCustomBatchRequest(); | 4152 AccounttaxCustomBatchRequest(); |
4079 | 4153 |
4080 AccounttaxCustomBatchRequest.fromJson(core.Map _json) { | 4154 AccounttaxCustomBatchRequest.fromJson(core.Map _json) { |
4081 if (_json.containsKey("entries")) { | 4155 if (_json.containsKey("entries")) { |
4082 entries = _json["entries"].map((value) => new AccounttaxCustomBatchRequest
Entry.fromJson(value)).toList(); | 4156 entries = _json["entries"] |
| 4157 .map((value) => new AccounttaxCustomBatchRequestEntry.fromJson(value)) |
| 4158 .toList(); |
4083 } | 4159 } |
4084 } | 4160 } |
4085 | 4161 |
4086 core.Map<core.String, core.Object> toJson() { | 4162 core.Map<core.String, core.Object> toJson() { |
4087 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4163 final core.Map<core.String, core.Object> _json = |
| 4164 new core.Map<core.String, core.Object>(); |
4088 if (entries != null) { | 4165 if (entries != null) { |
4089 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 4166 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
4090 } | 4167 } |
4091 return _json; | 4168 return _json; |
4092 } | 4169 } |
4093 } | 4170 } |
4094 | 4171 |
4095 /** A batch entry encoding a single non-batch accounttax request. */ | 4172 /// A batch entry encoding a single non-batch accounttax request. |
4096 class AccounttaxCustomBatchRequestEntry { | 4173 class AccounttaxCustomBatchRequestEntry { |
4097 /** The ID of the account for which to get/update account tax settings. */ | 4174 /// The ID of the account for which to get/update account tax settings. |
4098 core.String accountId; | 4175 core.String accountId; |
4099 /** | 4176 |
4100 * The account tax settings to update. Only defined if the method is update. | 4177 /// The account tax settings to update. Only defined if the method is update. |
4101 */ | |
4102 AccountTax accountTax; | 4178 AccountTax accountTax; |
4103 /** An entry ID, unique within the batch request. */ | 4179 |
| 4180 /// An entry ID, unique within the batch request. |
4104 core.int batchId; | 4181 core.int batchId; |
4105 /** The ID of the managing account. */ | 4182 |
| 4183 /// The ID of the managing account. |
4106 core.String merchantId; | 4184 core.String merchantId; |
4107 core.String method; | 4185 core.String method; |
4108 | 4186 |
4109 AccounttaxCustomBatchRequestEntry(); | 4187 AccounttaxCustomBatchRequestEntry(); |
4110 | 4188 |
4111 AccounttaxCustomBatchRequestEntry.fromJson(core.Map _json) { | 4189 AccounttaxCustomBatchRequestEntry.fromJson(core.Map _json) { |
4112 if (_json.containsKey("accountId")) { | 4190 if (_json.containsKey("accountId")) { |
4113 accountId = _json["accountId"]; | 4191 accountId = _json["accountId"]; |
4114 } | 4192 } |
4115 if (_json.containsKey("accountTax")) { | 4193 if (_json.containsKey("accountTax")) { |
4116 accountTax = new AccountTax.fromJson(_json["accountTax"]); | 4194 accountTax = new AccountTax.fromJson(_json["accountTax"]); |
4117 } | 4195 } |
4118 if (_json.containsKey("batchId")) { | 4196 if (_json.containsKey("batchId")) { |
4119 batchId = _json["batchId"]; | 4197 batchId = _json["batchId"]; |
4120 } | 4198 } |
4121 if (_json.containsKey("merchantId")) { | 4199 if (_json.containsKey("merchantId")) { |
4122 merchantId = _json["merchantId"]; | 4200 merchantId = _json["merchantId"]; |
4123 } | 4201 } |
4124 if (_json.containsKey("method")) { | 4202 if (_json.containsKey("method")) { |
4125 method = _json["method"]; | 4203 method = _json["method"]; |
4126 } | 4204 } |
4127 } | 4205 } |
4128 | 4206 |
4129 core.Map<core.String, core.Object> toJson() { | 4207 core.Map<core.String, core.Object> toJson() { |
4130 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4208 final core.Map<core.String, core.Object> _json = |
| 4209 new core.Map<core.String, core.Object>(); |
4131 if (accountId != null) { | 4210 if (accountId != null) { |
4132 _json["accountId"] = accountId; | 4211 _json["accountId"] = accountId; |
4133 } | 4212 } |
4134 if (accountTax != null) { | 4213 if (accountTax != null) { |
4135 _json["accountTax"] = (accountTax).toJson(); | 4214 _json["accountTax"] = (accountTax).toJson(); |
4136 } | 4215 } |
4137 if (batchId != null) { | 4216 if (batchId != null) { |
4138 _json["batchId"] = batchId; | 4217 _json["batchId"] = batchId; |
4139 } | 4218 } |
4140 if (merchantId != null) { | 4219 if (merchantId != null) { |
4141 _json["merchantId"] = merchantId; | 4220 _json["merchantId"] = merchantId; |
4142 } | 4221 } |
4143 if (method != null) { | 4222 if (method != null) { |
4144 _json["method"] = method; | 4223 _json["method"] = method; |
4145 } | 4224 } |
4146 return _json; | 4225 return _json; |
4147 } | 4226 } |
4148 } | 4227 } |
4149 | 4228 |
4150 class AccounttaxCustomBatchResponse { | 4229 class AccounttaxCustomBatchResponse { |
4151 /** The result of the execution of the batch requests. */ | 4230 /// The result of the execution of the batch requests. |
4152 core.List<AccounttaxCustomBatchResponseEntry> entries; | 4231 core.List<AccounttaxCustomBatchResponseEntry> entries; |
4153 /** | 4232 |
4154 * Identifies what kind of resource this is. Value: the fixed string | 4233 /// Identifies what kind of resource this is. Value: the fixed string |
4155 * "content#accounttaxCustomBatchResponse". | 4234 /// "content#accounttaxCustomBatchResponse". |
4156 */ | |
4157 core.String kind; | 4235 core.String kind; |
4158 | 4236 |
4159 AccounttaxCustomBatchResponse(); | 4237 AccounttaxCustomBatchResponse(); |
4160 | 4238 |
4161 AccounttaxCustomBatchResponse.fromJson(core.Map _json) { | 4239 AccounttaxCustomBatchResponse.fromJson(core.Map _json) { |
4162 if (_json.containsKey("entries")) { | 4240 if (_json.containsKey("entries")) { |
4163 entries = _json["entries"].map((value) => new AccounttaxCustomBatchRespons
eEntry.fromJson(value)).toList(); | 4241 entries = _json["entries"] |
| 4242 .map( |
| 4243 (value) => new AccounttaxCustomBatchResponseEntry.fromJson(value)) |
| 4244 .toList(); |
4164 } | 4245 } |
4165 if (_json.containsKey("kind")) { | 4246 if (_json.containsKey("kind")) { |
4166 kind = _json["kind"]; | 4247 kind = _json["kind"]; |
4167 } | 4248 } |
4168 } | 4249 } |
4169 | 4250 |
4170 core.Map<core.String, core.Object> toJson() { | 4251 core.Map<core.String, core.Object> toJson() { |
4171 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4252 final core.Map<core.String, core.Object> _json = |
| 4253 new core.Map<core.String, core.Object>(); |
4172 if (entries != null) { | 4254 if (entries != null) { |
4173 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 4255 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
4174 } | 4256 } |
4175 if (kind != null) { | 4257 if (kind != null) { |
4176 _json["kind"] = kind; | 4258 _json["kind"] = kind; |
4177 } | 4259 } |
4178 return _json; | 4260 return _json; |
4179 } | 4261 } |
4180 } | 4262 } |
4181 | 4263 |
4182 /** A batch entry encoding a single non-batch accounttax response. */ | 4264 /// A batch entry encoding a single non-batch accounttax response. |
4183 class AccounttaxCustomBatchResponseEntry { | 4265 class AccounttaxCustomBatchResponseEntry { |
4184 /** The retrieved or updated account tax settings. */ | 4266 /// The retrieved or updated account tax settings. |
4185 AccountTax accountTax; | 4267 AccountTax accountTax; |
4186 /** The ID of the request entry this entry responds to. */ | 4268 |
| 4269 /// The ID of the request entry this entry responds to. |
4187 core.int batchId; | 4270 core.int batchId; |
4188 /** A list of errors defined if and only if the request failed. */ | 4271 |
| 4272 /// A list of errors defined if and only if the request failed. |
4189 Errors errors; | 4273 Errors errors; |
4190 /** | 4274 |
4191 * Identifies what kind of resource this is. Value: the fixed string | 4275 /// Identifies what kind of resource this is. Value: the fixed string |
4192 * "content#accounttaxCustomBatchResponseEntry". | 4276 /// "content#accounttaxCustomBatchResponseEntry". |
4193 */ | |
4194 core.String kind; | 4277 core.String kind; |
4195 | 4278 |
4196 AccounttaxCustomBatchResponseEntry(); | 4279 AccounttaxCustomBatchResponseEntry(); |
4197 | 4280 |
4198 AccounttaxCustomBatchResponseEntry.fromJson(core.Map _json) { | 4281 AccounttaxCustomBatchResponseEntry.fromJson(core.Map _json) { |
4199 if (_json.containsKey("accountTax")) { | 4282 if (_json.containsKey("accountTax")) { |
4200 accountTax = new AccountTax.fromJson(_json["accountTax"]); | 4283 accountTax = new AccountTax.fromJson(_json["accountTax"]); |
4201 } | 4284 } |
4202 if (_json.containsKey("batchId")) { | 4285 if (_json.containsKey("batchId")) { |
4203 batchId = _json["batchId"]; | 4286 batchId = _json["batchId"]; |
4204 } | 4287 } |
4205 if (_json.containsKey("errors")) { | 4288 if (_json.containsKey("errors")) { |
4206 errors = new Errors.fromJson(_json["errors"]); | 4289 errors = new Errors.fromJson(_json["errors"]); |
4207 } | 4290 } |
4208 if (_json.containsKey("kind")) { | 4291 if (_json.containsKey("kind")) { |
4209 kind = _json["kind"]; | 4292 kind = _json["kind"]; |
4210 } | 4293 } |
4211 } | 4294 } |
4212 | 4295 |
4213 core.Map<core.String, core.Object> toJson() { | 4296 core.Map<core.String, core.Object> toJson() { |
4214 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4297 final core.Map<core.String, core.Object> _json = |
| 4298 new core.Map<core.String, core.Object>(); |
4215 if (accountTax != null) { | 4299 if (accountTax != null) { |
4216 _json["accountTax"] = (accountTax).toJson(); | 4300 _json["accountTax"] = (accountTax).toJson(); |
4217 } | 4301 } |
4218 if (batchId != null) { | 4302 if (batchId != null) { |
4219 _json["batchId"] = batchId; | 4303 _json["batchId"] = batchId; |
4220 } | 4304 } |
4221 if (errors != null) { | 4305 if (errors != null) { |
4222 _json["errors"] = (errors).toJson(); | 4306 _json["errors"] = (errors).toJson(); |
4223 } | 4307 } |
4224 if (kind != null) { | 4308 if (kind != null) { |
4225 _json["kind"] = kind; | 4309 _json["kind"] = kind; |
4226 } | 4310 } |
4227 return _json; | 4311 return _json; |
4228 } | 4312 } |
4229 } | 4313 } |
4230 | 4314 |
4231 class AccounttaxListResponse { | 4315 class AccounttaxListResponse { |
4232 /** | 4316 /// Identifies what kind of resource this is. Value: the fixed string |
4233 * Identifies what kind of resource this is. Value: the fixed string | 4317 /// "content#accounttaxListResponse". |
4234 * "content#accounttaxListResponse". | |
4235 */ | |
4236 core.String kind; | 4318 core.String kind; |
4237 /** The token for the retrieval of the next page of account tax settings. */ | 4319 |
| 4320 /// The token for the retrieval of the next page of account tax settings. |
4238 core.String nextPageToken; | 4321 core.String nextPageToken; |
4239 core.List<AccountTax> resources; | 4322 core.List<AccountTax> resources; |
4240 | 4323 |
4241 AccounttaxListResponse(); | 4324 AccounttaxListResponse(); |
4242 | 4325 |
4243 AccounttaxListResponse.fromJson(core.Map _json) { | 4326 AccounttaxListResponse.fromJson(core.Map _json) { |
4244 if (_json.containsKey("kind")) { | 4327 if (_json.containsKey("kind")) { |
4245 kind = _json["kind"]; | 4328 kind = _json["kind"]; |
4246 } | 4329 } |
4247 if (_json.containsKey("nextPageToken")) { | 4330 if (_json.containsKey("nextPageToken")) { |
4248 nextPageToken = _json["nextPageToken"]; | 4331 nextPageToken = _json["nextPageToken"]; |
4249 } | 4332 } |
4250 if (_json.containsKey("resources")) { | 4333 if (_json.containsKey("resources")) { |
4251 resources = _json["resources"].map((value) => new AccountTax.fromJson(valu
e)).toList(); | 4334 resources = _json["resources"] |
| 4335 .map((value) => new AccountTax.fromJson(value)) |
| 4336 .toList(); |
4252 } | 4337 } |
4253 } | 4338 } |
4254 | 4339 |
4255 core.Map<core.String, core.Object> toJson() { | 4340 core.Map<core.String, core.Object> toJson() { |
4256 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4341 final core.Map<core.String, core.Object> _json = |
| 4342 new core.Map<core.String, core.Object>(); |
4257 if (kind != null) { | 4343 if (kind != null) { |
4258 _json["kind"] = kind; | 4344 _json["kind"] = kind; |
4259 } | 4345 } |
4260 if (nextPageToken != null) { | 4346 if (nextPageToken != null) { |
4261 _json["nextPageToken"] = nextPageToken; | 4347 _json["nextPageToken"] = nextPageToken; |
4262 } | 4348 } |
4263 if (resources != null) { | 4349 if (resources != null) { |
4264 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 4350 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
4265 } | 4351 } |
4266 return _json; | 4352 return _json; |
4267 } | 4353 } |
4268 } | 4354 } |
4269 | 4355 |
4270 class CarrierRate { | 4356 class CarrierRate { |
4271 /** | 4357 /// Carrier service, such as "UPS" or "Fedex". The list of supported carriers |
4272 * Carrier service, such as "UPS" or "Fedex". The list of supported carriers | 4358 /// can be retrieved via the getSupportedCarriers method. Required. |
4273 * can be retrieved via the getSupportedCarriers method. Required. | |
4274 */ | |
4275 core.String carrierName; | 4359 core.String carrierName; |
4276 /** | 4360 |
4277 * Carrier service, such as "ground" or "2 days". The list of supported | 4361 /// Carrier service, such as "ground" or "2 days". The list of supported |
4278 * services for a carrier can be retrieved via the getSupportedCarriers | 4362 /// services for a carrier can be retrieved via the getSupportedCarriers |
4279 * method. Required. | 4363 /// method. Required. |
4280 */ | |
4281 core.String carrierService; | 4364 core.String carrierService; |
4282 /** | 4365 |
4283 * Additive shipping rate modifier. Can be negative. For example { "value": | 4366 /// Additive shipping rate modifier. Can be negative. For example { "value": |
4284 * "1", "currency" : "USD" } adds $1 to the rate, { "value": "-3", "currency" | 4367 /// "1", "currency" : "USD" } adds $1 to the rate, { "value": "-3", |
4285 * : "USD" } removes $3 from the rate. Optional. | 4368 /// "currency" : "USD" } removes $3 from the rate. Optional. |
4286 */ | |
4287 Price flatAdjustment; | 4369 Price flatAdjustment; |
4288 /** Name of the carrier rate. Must be unique per rate group. Required. */ | 4370 |
| 4371 /// Name of the carrier rate. Must be unique per rate group. Required. |
4289 core.String name; | 4372 core.String name; |
4290 /** Shipping origin for this carrier rate. Required. */ | 4373 |
| 4374 /// Shipping origin for this carrier rate. Required. |
4291 core.String originPostalCode; | 4375 core.String originPostalCode; |
4292 /** | 4376 |
4293 * Multiplicative shipping rate modifier as a number in decimal notation. Can | 4377 /// Multiplicative shipping rate modifier as a number in decimal notation. |
4294 * be negative. For example "5.4" increases the rate by 5.4%, "-3" decreases | 4378 /// Can be negative. For example "5.4" increases the rate by 5.4%, "-3" |
4295 * the rate by 3%. Optional. | 4379 /// decreases the rate by 3%. Optional. |
4296 */ | |
4297 core.String percentageAdjustment; | 4380 core.String percentageAdjustment; |
4298 | 4381 |
4299 CarrierRate(); | 4382 CarrierRate(); |
4300 | 4383 |
4301 CarrierRate.fromJson(core.Map _json) { | 4384 CarrierRate.fromJson(core.Map _json) { |
4302 if (_json.containsKey("carrierName")) { | 4385 if (_json.containsKey("carrierName")) { |
4303 carrierName = _json["carrierName"]; | 4386 carrierName = _json["carrierName"]; |
4304 } | 4387 } |
4305 if (_json.containsKey("carrierService")) { | 4388 if (_json.containsKey("carrierService")) { |
4306 carrierService = _json["carrierService"]; | 4389 carrierService = _json["carrierService"]; |
4307 } | 4390 } |
4308 if (_json.containsKey("flatAdjustment")) { | 4391 if (_json.containsKey("flatAdjustment")) { |
4309 flatAdjustment = new Price.fromJson(_json["flatAdjustment"]); | 4392 flatAdjustment = new Price.fromJson(_json["flatAdjustment"]); |
4310 } | 4393 } |
4311 if (_json.containsKey("name")) { | 4394 if (_json.containsKey("name")) { |
4312 name = _json["name"]; | 4395 name = _json["name"]; |
4313 } | 4396 } |
4314 if (_json.containsKey("originPostalCode")) { | 4397 if (_json.containsKey("originPostalCode")) { |
4315 originPostalCode = _json["originPostalCode"]; | 4398 originPostalCode = _json["originPostalCode"]; |
4316 } | 4399 } |
4317 if (_json.containsKey("percentageAdjustment")) { | 4400 if (_json.containsKey("percentageAdjustment")) { |
4318 percentageAdjustment = _json["percentageAdjustment"]; | 4401 percentageAdjustment = _json["percentageAdjustment"]; |
4319 } | 4402 } |
4320 } | 4403 } |
4321 | 4404 |
4322 core.Map<core.String, core.Object> toJson() { | 4405 core.Map<core.String, core.Object> toJson() { |
4323 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4406 final core.Map<core.String, core.Object> _json = |
| 4407 new core.Map<core.String, core.Object>(); |
4324 if (carrierName != null) { | 4408 if (carrierName != null) { |
4325 _json["carrierName"] = carrierName; | 4409 _json["carrierName"] = carrierName; |
4326 } | 4410 } |
4327 if (carrierService != null) { | 4411 if (carrierService != null) { |
4328 _json["carrierService"] = carrierService; | 4412 _json["carrierService"] = carrierService; |
4329 } | 4413 } |
4330 if (flatAdjustment != null) { | 4414 if (flatAdjustment != null) { |
4331 _json["flatAdjustment"] = (flatAdjustment).toJson(); | 4415 _json["flatAdjustment"] = (flatAdjustment).toJson(); |
4332 } | 4416 } |
4333 if (name != null) { | 4417 if (name != null) { |
4334 _json["name"] = name; | 4418 _json["name"] = name; |
4335 } | 4419 } |
4336 if (originPostalCode != null) { | 4420 if (originPostalCode != null) { |
4337 _json["originPostalCode"] = originPostalCode; | 4421 _json["originPostalCode"] = originPostalCode; |
4338 } | 4422 } |
4339 if (percentageAdjustment != null) { | 4423 if (percentageAdjustment != null) { |
4340 _json["percentageAdjustment"] = percentageAdjustment; | 4424 _json["percentageAdjustment"] = percentageAdjustment; |
4341 } | 4425 } |
4342 return _json; | 4426 return _json; |
4343 } | 4427 } |
4344 } | 4428 } |
4345 | 4429 |
4346 class CarriersCarrier { | 4430 class CarriersCarrier { |
4347 /** The CLDR country code of the carrier (e.g., "US"). Always present. */ | 4431 /// The CLDR country code of the carrier (e.g., "US"). Always present. |
4348 core.String country; | 4432 core.String country; |
4349 /** The name of the carrier (e.g., "UPS"). Always present. */ | 4433 |
| 4434 /// The name of the carrier (e.g., "UPS"). Always present. |
4350 core.String name; | 4435 core.String name; |
4351 /** | 4436 |
4352 * A list of supported services (e.g., "ground") for that carrier. Contains at | 4437 /// A list of supported services (e.g., "ground") for that carrier. Contains |
4353 * least one service. | 4438 /// at least one service. |
4354 */ | |
4355 core.List<core.String> services; | 4439 core.List<core.String> services; |
4356 | 4440 |
4357 CarriersCarrier(); | 4441 CarriersCarrier(); |
4358 | 4442 |
4359 CarriersCarrier.fromJson(core.Map _json) { | 4443 CarriersCarrier.fromJson(core.Map _json) { |
4360 if (_json.containsKey("country")) { | 4444 if (_json.containsKey("country")) { |
4361 country = _json["country"]; | 4445 country = _json["country"]; |
4362 } | 4446 } |
4363 if (_json.containsKey("name")) { | 4447 if (_json.containsKey("name")) { |
4364 name = _json["name"]; | 4448 name = _json["name"]; |
4365 } | 4449 } |
4366 if (_json.containsKey("services")) { | 4450 if (_json.containsKey("services")) { |
4367 services = _json["services"]; | 4451 services = _json["services"]; |
4368 } | 4452 } |
4369 } | 4453 } |
4370 | 4454 |
4371 core.Map<core.String, core.Object> toJson() { | 4455 core.Map<core.String, core.Object> toJson() { |
4372 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4456 final core.Map<core.String, core.Object> _json = |
| 4457 new core.Map<core.String, core.Object>(); |
4373 if (country != null) { | 4458 if (country != null) { |
4374 _json["country"] = country; | 4459 _json["country"] = country; |
4375 } | 4460 } |
4376 if (name != null) { | 4461 if (name != null) { |
4377 _json["name"] = name; | 4462 _json["name"] = name; |
4378 } | 4463 } |
4379 if (services != null) { | 4464 if (services != null) { |
4380 _json["services"] = services; | 4465 _json["services"] = services; |
4381 } | 4466 } |
4382 return _json; | 4467 return _json; |
4383 } | 4468 } |
4384 } | 4469 } |
4385 | 4470 |
4386 /** Datafeed configuration data. */ | 4471 /// Datafeed configuration data. |
4387 class Datafeed { | 4472 class Datafeed { |
4388 /** | 4473 /// The two-letter ISO 639-1 language in which the attributes are defined in |
4389 * The two-letter ISO 639-1 language in which the attributes are defined in | 4474 /// the data feed. |
4390 * the data feed. | |
4391 */ | |
4392 core.String attributeLanguage; | 4475 core.String attributeLanguage; |
4393 /** | 4476 |
4394 * The two-letter ISO 639-1 language of the items in the feed. Must be a valid | 4477 /// The two-letter ISO 639-1 language of the items in the feed. Must be a |
4395 * language for targetCountry. | 4478 /// valid language for targetCountry. |
4396 */ | |
4397 core.String contentLanguage; | 4479 core.String contentLanguage; |
4398 /** | 4480 |
4399 * The type of data feed. For product inventory feeds, only feeds for local | 4481 /// The type of data feed. For product inventory feeds, only feeds for local |
4400 * stores, not online stores, are supported. | 4482 /// stores, not online stores, are supported. |
4401 */ | |
4402 core.String contentType; | 4483 core.String contentType; |
4403 /** Fetch schedule for the feed file. */ | 4484 |
| 4485 /// Fetch schedule for the feed file. |
4404 DatafeedFetchSchedule fetchSchedule; | 4486 DatafeedFetchSchedule fetchSchedule; |
4405 /** The filename of the feed. All feeds must have a unique file name. */ | 4487 |
| 4488 /// The filename of the feed. All feeds must have a unique file name. |
4406 core.String fileName; | 4489 core.String fileName; |
4407 /** Format of the feed file. */ | 4490 |
| 4491 /// Format of the feed file. |
4408 DatafeedFormat format; | 4492 DatafeedFormat format; |
4409 /** The ID of the data feed. */ | 4493 |
| 4494 /// The ID of the data feed. |
4410 core.String id; | 4495 core.String id; |
4411 /** | 4496 |
4412 * The list of intended destinations (corresponds to checked check boxes in | 4497 /// The list of intended destinations (corresponds to checked check boxes in |
4413 * Merchant Center). | 4498 /// Merchant Center). |
4414 */ | |
4415 core.List<core.String> intendedDestinations; | 4499 core.List<core.String> intendedDestinations; |
4416 /** | 4500 |
4417 * Identifies what kind of resource this is. Value: the fixed string | 4501 /// Identifies what kind of resource this is. Value: the fixed string |
4418 * "content#datafeed". | 4502 /// "content#datafeed". |
4419 */ | |
4420 core.String kind; | 4503 core.String kind; |
4421 /** A descriptive name of the data feed. */ | 4504 |
| 4505 /// A descriptive name of the data feed. |
4422 core.String name; | 4506 core.String name; |
4423 /** | 4507 |
4424 * The country where the items in the feed will be included in the search | 4508 /// The country where the items in the feed will be included in the search |
4425 * index, represented as a CLDR territory code. | 4509 /// index, represented as a CLDR territory code. |
4426 */ | |
4427 core.String targetCountry; | 4510 core.String targetCountry; |
4428 | 4511 |
4429 Datafeed(); | 4512 Datafeed(); |
4430 | 4513 |
4431 Datafeed.fromJson(core.Map _json) { | 4514 Datafeed.fromJson(core.Map _json) { |
4432 if (_json.containsKey("attributeLanguage")) { | 4515 if (_json.containsKey("attributeLanguage")) { |
4433 attributeLanguage = _json["attributeLanguage"]; | 4516 attributeLanguage = _json["attributeLanguage"]; |
4434 } | 4517 } |
4435 if (_json.containsKey("contentLanguage")) { | 4518 if (_json.containsKey("contentLanguage")) { |
4436 contentLanguage = _json["contentLanguage"]; | 4519 contentLanguage = _json["contentLanguage"]; |
4437 } | 4520 } |
4438 if (_json.containsKey("contentType")) { | 4521 if (_json.containsKey("contentType")) { |
4439 contentType = _json["contentType"]; | 4522 contentType = _json["contentType"]; |
4440 } | 4523 } |
4441 if (_json.containsKey("fetchSchedule")) { | 4524 if (_json.containsKey("fetchSchedule")) { |
4442 fetchSchedule = new DatafeedFetchSchedule.fromJson(_json["fetchSchedule"])
; | 4525 fetchSchedule = |
| 4526 new DatafeedFetchSchedule.fromJson(_json["fetchSchedule"]); |
4443 } | 4527 } |
4444 if (_json.containsKey("fileName")) { | 4528 if (_json.containsKey("fileName")) { |
4445 fileName = _json["fileName"]; | 4529 fileName = _json["fileName"]; |
4446 } | 4530 } |
4447 if (_json.containsKey("format")) { | 4531 if (_json.containsKey("format")) { |
4448 format = new DatafeedFormat.fromJson(_json["format"]); | 4532 format = new DatafeedFormat.fromJson(_json["format"]); |
4449 } | 4533 } |
4450 if (_json.containsKey("id")) { | 4534 if (_json.containsKey("id")) { |
4451 id = _json["id"]; | 4535 id = _json["id"]; |
4452 } | 4536 } |
4453 if (_json.containsKey("intendedDestinations")) { | 4537 if (_json.containsKey("intendedDestinations")) { |
4454 intendedDestinations = _json["intendedDestinations"]; | 4538 intendedDestinations = _json["intendedDestinations"]; |
4455 } | 4539 } |
4456 if (_json.containsKey("kind")) { | 4540 if (_json.containsKey("kind")) { |
4457 kind = _json["kind"]; | 4541 kind = _json["kind"]; |
4458 } | 4542 } |
4459 if (_json.containsKey("name")) { | 4543 if (_json.containsKey("name")) { |
4460 name = _json["name"]; | 4544 name = _json["name"]; |
4461 } | 4545 } |
4462 if (_json.containsKey("targetCountry")) { | 4546 if (_json.containsKey("targetCountry")) { |
4463 targetCountry = _json["targetCountry"]; | 4547 targetCountry = _json["targetCountry"]; |
4464 } | 4548 } |
4465 } | 4549 } |
4466 | 4550 |
4467 core.Map<core.String, core.Object> toJson() { | 4551 core.Map<core.String, core.Object> toJson() { |
4468 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4552 final core.Map<core.String, core.Object> _json = |
| 4553 new core.Map<core.String, core.Object>(); |
4469 if (attributeLanguage != null) { | 4554 if (attributeLanguage != null) { |
4470 _json["attributeLanguage"] = attributeLanguage; | 4555 _json["attributeLanguage"] = attributeLanguage; |
4471 } | 4556 } |
4472 if (contentLanguage != null) { | 4557 if (contentLanguage != null) { |
4473 _json["contentLanguage"] = contentLanguage; | 4558 _json["contentLanguage"] = contentLanguage; |
4474 } | 4559 } |
4475 if (contentType != null) { | 4560 if (contentType != null) { |
4476 _json["contentType"] = contentType; | 4561 _json["contentType"] = contentType; |
4477 } | 4562 } |
4478 if (fetchSchedule != null) { | 4563 if (fetchSchedule != null) { |
(...skipping 17 matching lines...) Expand all Loading... |
4496 if (name != null) { | 4581 if (name != null) { |
4497 _json["name"] = name; | 4582 _json["name"] = name; |
4498 } | 4583 } |
4499 if (targetCountry != null) { | 4584 if (targetCountry != null) { |
4500 _json["targetCountry"] = targetCountry; | 4585 _json["targetCountry"] = targetCountry; |
4501 } | 4586 } |
4502 return _json; | 4587 return _json; |
4503 } | 4588 } |
4504 } | 4589 } |
4505 | 4590 |
4506 /** | 4591 /// The required fields vary based on the frequency of fetching. For a monthly |
4507 * The required fields vary based on the frequency of fetching. For a monthly | 4592 /// fetch schedule, day_of_month and hour are required. For a weekly fetch |
4508 * fetch schedule, day_of_month and hour are required. For a weekly fetch | 4593 /// schedule, weekday and hour are required. For a daily fetch schedule, only |
4509 * schedule, weekday and hour are required. For a daily fetch schedule, only | 4594 /// hour is required. |
4510 * hour is required. | |
4511 */ | |
4512 class DatafeedFetchSchedule { | 4595 class DatafeedFetchSchedule { |
4513 /** The day of the month the feed file should be fetched (1-31). */ | 4596 /// The day of the month the feed file should be fetched (1-31). |
4514 core.int dayOfMonth; | 4597 core.int dayOfMonth; |
4515 /** | 4598 |
4516 * The URL where the feed file can be fetched. Google Merchant Center will | 4599 /// The URL where the feed file can be fetched. Google Merchant Center will |
4517 * support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP | 4600 /// support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP |
4518 * protocols, so the value will need to be a valid link using one of those | 4601 /// protocols, so the value will need to be a valid link using one of those |
4519 * four protocols. | 4602 /// four protocols. |
4520 */ | |
4521 core.String fetchUrl; | 4603 core.String fetchUrl; |
4522 /** The hour of the day the feed file should be fetched (0-23). */ | 4604 |
| 4605 /// The hour of the day the feed file should be fetched (0-23). |
4523 core.int hour; | 4606 core.int hour; |
4524 /** | 4607 |
4525 * The minute of the hour the feed file should be fetched (0-59). Read-only. | 4608 /// The minute of the hour the feed file should be fetched (0-59). Read-only. |
4526 */ | |
4527 core.int minuteOfHour; | 4609 core.int minuteOfHour; |
4528 /** An optional password for fetch_url. */ | 4610 |
| 4611 /// An optional password for fetch_url. |
4529 core.String password; | 4612 core.String password; |
4530 /** Whether the scheduled fetch is paused or not. */ | 4613 |
| 4614 /// Whether the scheduled fetch is paused or not. |
4531 core.bool paused; | 4615 core.bool paused; |
4532 /** | 4616 |
4533 * Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". | 4617 /// Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". |
4534 */ | |
4535 core.String timeZone; | 4618 core.String timeZone; |
4536 /** An optional user name for fetch_url. */ | 4619 |
| 4620 /// An optional user name for fetch_url. |
4537 core.String username; | 4621 core.String username; |
4538 /** The day of the week the feed file should be fetched. */ | 4622 |
| 4623 /// The day of the week the feed file should be fetched. |
4539 core.String weekday; | 4624 core.String weekday; |
4540 | 4625 |
4541 DatafeedFetchSchedule(); | 4626 DatafeedFetchSchedule(); |
4542 | 4627 |
4543 DatafeedFetchSchedule.fromJson(core.Map _json) { | 4628 DatafeedFetchSchedule.fromJson(core.Map _json) { |
4544 if (_json.containsKey("dayOfMonth")) { | 4629 if (_json.containsKey("dayOfMonth")) { |
4545 dayOfMonth = _json["dayOfMonth"]; | 4630 dayOfMonth = _json["dayOfMonth"]; |
4546 } | 4631 } |
4547 if (_json.containsKey("fetchUrl")) { | 4632 if (_json.containsKey("fetchUrl")) { |
4548 fetchUrl = _json["fetchUrl"]; | 4633 fetchUrl = _json["fetchUrl"]; |
(...skipping 15 matching lines...) Expand all Loading... |
4564 } | 4649 } |
4565 if (_json.containsKey("username")) { | 4650 if (_json.containsKey("username")) { |
4566 username = _json["username"]; | 4651 username = _json["username"]; |
4567 } | 4652 } |
4568 if (_json.containsKey("weekday")) { | 4653 if (_json.containsKey("weekday")) { |
4569 weekday = _json["weekday"]; | 4654 weekday = _json["weekday"]; |
4570 } | 4655 } |
4571 } | 4656 } |
4572 | 4657 |
4573 core.Map<core.String, core.Object> toJson() { | 4658 core.Map<core.String, core.Object> toJson() { |
4574 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4659 final core.Map<core.String, core.Object> _json = |
| 4660 new core.Map<core.String, core.Object>(); |
4575 if (dayOfMonth != null) { | 4661 if (dayOfMonth != null) { |
4576 _json["dayOfMonth"] = dayOfMonth; | 4662 _json["dayOfMonth"] = dayOfMonth; |
4577 } | 4663 } |
4578 if (fetchUrl != null) { | 4664 if (fetchUrl != null) { |
4579 _json["fetchUrl"] = fetchUrl; | 4665 _json["fetchUrl"] = fetchUrl; |
4580 } | 4666 } |
4581 if (hour != null) { | 4667 if (hour != null) { |
4582 _json["hour"] = hour; | 4668 _json["hour"] = hour; |
4583 } | 4669 } |
4584 if (minuteOfHour != null) { | 4670 if (minuteOfHour != null) { |
(...skipping 12 matching lines...) Expand all Loading... |
4597 _json["username"] = username; | 4683 _json["username"] = username; |
4598 } | 4684 } |
4599 if (weekday != null) { | 4685 if (weekday != null) { |
4600 _json["weekday"] = weekday; | 4686 _json["weekday"] = weekday; |
4601 } | 4687 } |
4602 return _json; | 4688 return _json; |
4603 } | 4689 } |
4604 } | 4690 } |
4605 | 4691 |
4606 class DatafeedFormat { | 4692 class DatafeedFormat { |
4607 /** | 4693 /// Delimiter for the separation of values in a delimiter-separated values |
4608 * Delimiter for the separation of values in a delimiter-separated values | 4694 /// feed. If not specified, the delimiter will be auto-detected. Ignored for |
4609 * feed. If not specified, the delimiter will be auto-detected. Ignored for | 4695 /// non-DSV data feeds. |
4610 * non-DSV data feeds. | |
4611 */ | |
4612 core.String columnDelimiter; | 4696 core.String columnDelimiter; |
4613 /** | 4697 |
4614 * Character encoding scheme of the data feed. If not specified, the encoding | 4698 /// Character encoding scheme of the data feed. If not specified, the |
4615 * will be auto-detected. | 4699 /// encoding will be auto-detected. |
4616 */ | |
4617 core.String fileEncoding; | 4700 core.String fileEncoding; |
4618 /** | 4701 |
4619 * Specifies how double quotes are interpreted. If not specified, the mode | 4702 /// Specifies how double quotes are interpreted. If not specified, the mode |
4620 * will be auto-detected. Ignored for non-DSV data feeds. | 4703 /// will be auto-detected. Ignored for non-DSV data feeds. |
4621 */ | |
4622 core.String quotingMode; | 4704 core.String quotingMode; |
4623 | 4705 |
4624 DatafeedFormat(); | 4706 DatafeedFormat(); |
4625 | 4707 |
4626 DatafeedFormat.fromJson(core.Map _json) { | 4708 DatafeedFormat.fromJson(core.Map _json) { |
4627 if (_json.containsKey("columnDelimiter")) { | 4709 if (_json.containsKey("columnDelimiter")) { |
4628 columnDelimiter = _json["columnDelimiter"]; | 4710 columnDelimiter = _json["columnDelimiter"]; |
4629 } | 4711 } |
4630 if (_json.containsKey("fileEncoding")) { | 4712 if (_json.containsKey("fileEncoding")) { |
4631 fileEncoding = _json["fileEncoding"]; | 4713 fileEncoding = _json["fileEncoding"]; |
4632 } | 4714 } |
4633 if (_json.containsKey("quotingMode")) { | 4715 if (_json.containsKey("quotingMode")) { |
4634 quotingMode = _json["quotingMode"]; | 4716 quotingMode = _json["quotingMode"]; |
4635 } | 4717 } |
4636 } | 4718 } |
4637 | 4719 |
4638 core.Map<core.String, core.Object> toJson() { | 4720 core.Map<core.String, core.Object> toJson() { |
4639 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4721 final core.Map<core.String, core.Object> _json = |
| 4722 new core.Map<core.String, core.Object>(); |
4640 if (columnDelimiter != null) { | 4723 if (columnDelimiter != null) { |
4641 _json["columnDelimiter"] = columnDelimiter; | 4724 _json["columnDelimiter"] = columnDelimiter; |
4642 } | 4725 } |
4643 if (fileEncoding != null) { | 4726 if (fileEncoding != null) { |
4644 _json["fileEncoding"] = fileEncoding; | 4727 _json["fileEncoding"] = fileEncoding; |
4645 } | 4728 } |
4646 if (quotingMode != null) { | 4729 if (quotingMode != null) { |
4647 _json["quotingMode"] = quotingMode; | 4730 _json["quotingMode"] = quotingMode; |
4648 } | 4731 } |
4649 return _json; | 4732 return _json; |
4650 } | 4733 } |
4651 } | 4734 } |
4652 | 4735 |
4653 /** | 4736 /// The status of a datafeed, i.e., the result of the last retrieval of the |
4654 * The status of a datafeed, i.e., the result of the last retrieval of the | 4737 /// datafeed computed asynchronously when the feed processing is finished. |
4655 * datafeed computed asynchronously when the feed processing is finished. | |
4656 */ | |
4657 class DatafeedStatus { | 4738 class DatafeedStatus { |
4658 /** The ID of the feed for which the status is reported. */ | 4739 /// The ID of the feed for which the status is reported. |
4659 core.String datafeedId; | 4740 core.String datafeedId; |
4660 /** The list of errors occurring in the feed. */ | 4741 |
| 4742 /// The list of errors occurring in the feed. |
4661 core.List<DatafeedStatusError> errors; | 4743 core.List<DatafeedStatusError> errors; |
4662 /** The number of items in the feed that were processed. */ | 4744 |
| 4745 /// The number of items in the feed that were processed. |
4663 core.String itemsTotal; | 4746 core.String itemsTotal; |
4664 /** The number of items in the feed that were valid. */ | 4747 |
| 4748 /// The number of items in the feed that were valid. |
4665 core.String itemsValid; | 4749 core.String itemsValid; |
4666 /** | 4750 |
4667 * Identifies what kind of resource this is. Value: the fixed string | 4751 /// Identifies what kind of resource this is. Value: the fixed string |
4668 * "content#datafeedStatus". | 4752 /// "content#datafeedStatus". |
4669 */ | |
4670 core.String kind; | 4753 core.String kind; |
4671 /** The last date at which the feed was uploaded. */ | 4754 |
| 4755 /// The last date at which the feed was uploaded. |
4672 core.String lastUploadDate; | 4756 core.String lastUploadDate; |
4673 /** The processing status of the feed. */ | 4757 |
| 4758 /// The processing status of the feed. |
4674 core.String processingStatus; | 4759 core.String processingStatus; |
4675 /** The list of errors occurring in the feed. */ | 4760 |
| 4761 /// The list of errors occurring in the feed. |
4676 core.List<DatafeedStatusError> warnings; | 4762 core.List<DatafeedStatusError> warnings; |
4677 | 4763 |
4678 DatafeedStatus(); | 4764 DatafeedStatus(); |
4679 | 4765 |
4680 DatafeedStatus.fromJson(core.Map _json) { | 4766 DatafeedStatus.fromJson(core.Map _json) { |
4681 if (_json.containsKey("datafeedId")) { | 4767 if (_json.containsKey("datafeedId")) { |
4682 datafeedId = _json["datafeedId"]; | 4768 datafeedId = _json["datafeedId"]; |
4683 } | 4769 } |
4684 if (_json.containsKey("errors")) { | 4770 if (_json.containsKey("errors")) { |
4685 errors = _json["errors"].map((value) => new DatafeedStatusError.fromJson(v
alue)).toList(); | 4771 errors = _json["errors"] |
| 4772 .map((value) => new DatafeedStatusError.fromJson(value)) |
| 4773 .toList(); |
4686 } | 4774 } |
4687 if (_json.containsKey("itemsTotal")) { | 4775 if (_json.containsKey("itemsTotal")) { |
4688 itemsTotal = _json["itemsTotal"]; | 4776 itemsTotal = _json["itemsTotal"]; |
4689 } | 4777 } |
4690 if (_json.containsKey("itemsValid")) { | 4778 if (_json.containsKey("itemsValid")) { |
4691 itemsValid = _json["itemsValid"]; | 4779 itemsValid = _json["itemsValid"]; |
4692 } | 4780 } |
4693 if (_json.containsKey("kind")) { | 4781 if (_json.containsKey("kind")) { |
4694 kind = _json["kind"]; | 4782 kind = _json["kind"]; |
4695 } | 4783 } |
4696 if (_json.containsKey("lastUploadDate")) { | 4784 if (_json.containsKey("lastUploadDate")) { |
4697 lastUploadDate = _json["lastUploadDate"]; | 4785 lastUploadDate = _json["lastUploadDate"]; |
4698 } | 4786 } |
4699 if (_json.containsKey("processingStatus")) { | 4787 if (_json.containsKey("processingStatus")) { |
4700 processingStatus = _json["processingStatus"]; | 4788 processingStatus = _json["processingStatus"]; |
4701 } | 4789 } |
4702 if (_json.containsKey("warnings")) { | 4790 if (_json.containsKey("warnings")) { |
4703 warnings = _json["warnings"].map((value) => new DatafeedStatusError.fromJs
on(value)).toList(); | 4791 warnings = _json["warnings"] |
| 4792 .map((value) => new DatafeedStatusError.fromJson(value)) |
| 4793 .toList(); |
4704 } | 4794 } |
4705 } | 4795 } |
4706 | 4796 |
4707 core.Map<core.String, core.Object> toJson() { | 4797 core.Map<core.String, core.Object> toJson() { |
4708 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4798 final core.Map<core.String, core.Object> _json = |
| 4799 new core.Map<core.String, core.Object>(); |
4709 if (datafeedId != null) { | 4800 if (datafeedId != null) { |
4710 _json["datafeedId"] = datafeedId; | 4801 _json["datafeedId"] = datafeedId; |
4711 } | 4802 } |
4712 if (errors != null) { | 4803 if (errors != null) { |
4713 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 4804 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
4714 } | 4805 } |
4715 if (itemsTotal != null) { | 4806 if (itemsTotal != null) { |
4716 _json["itemsTotal"] = itemsTotal; | 4807 _json["itemsTotal"] = itemsTotal; |
4717 } | 4808 } |
4718 if (itemsValid != null) { | 4809 if (itemsValid != null) { |
4719 _json["itemsValid"] = itemsValid; | 4810 _json["itemsValid"] = itemsValid; |
4720 } | 4811 } |
4721 if (kind != null) { | 4812 if (kind != null) { |
4722 _json["kind"] = kind; | 4813 _json["kind"] = kind; |
4723 } | 4814 } |
4724 if (lastUploadDate != null) { | 4815 if (lastUploadDate != null) { |
4725 _json["lastUploadDate"] = lastUploadDate; | 4816 _json["lastUploadDate"] = lastUploadDate; |
4726 } | 4817 } |
4727 if (processingStatus != null) { | 4818 if (processingStatus != null) { |
4728 _json["processingStatus"] = processingStatus; | 4819 _json["processingStatus"] = processingStatus; |
4729 } | 4820 } |
4730 if (warnings != null) { | 4821 if (warnings != null) { |
4731 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); | 4822 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); |
4732 } | 4823 } |
4733 return _json; | 4824 return _json; |
4734 } | 4825 } |
4735 } | 4826 } |
4736 | 4827 |
4737 /** An error occurring in the feed, like "invalid price". */ | 4828 /// An error occurring in the feed, like "invalid price". |
4738 class DatafeedStatusError { | 4829 class DatafeedStatusError { |
4739 /** The code of the error, e.g., "validation/invalid_value". */ | 4830 /// The code of the error, e.g., "validation/invalid_value". |
4740 core.String code; | 4831 core.String code; |
4741 /** The number of occurrences of the error in the feed. */ | 4832 |
| 4833 /// The number of occurrences of the error in the feed. |
4742 core.String count; | 4834 core.String count; |
4743 /** A list of example occurrences of the error, grouped by product. */ | 4835 |
| 4836 /// A list of example occurrences of the error, grouped by product. |
4744 core.List<DatafeedStatusExample> examples; | 4837 core.List<DatafeedStatusExample> examples; |
4745 /** The error message, e.g., "Invalid price". */ | 4838 |
| 4839 /// The error message, e.g., "Invalid price". |
4746 core.String message; | 4840 core.String message; |
4747 | 4841 |
4748 DatafeedStatusError(); | 4842 DatafeedStatusError(); |
4749 | 4843 |
4750 DatafeedStatusError.fromJson(core.Map _json) { | 4844 DatafeedStatusError.fromJson(core.Map _json) { |
4751 if (_json.containsKey("code")) { | 4845 if (_json.containsKey("code")) { |
4752 code = _json["code"]; | 4846 code = _json["code"]; |
4753 } | 4847 } |
4754 if (_json.containsKey("count")) { | 4848 if (_json.containsKey("count")) { |
4755 count = _json["count"]; | 4849 count = _json["count"]; |
4756 } | 4850 } |
4757 if (_json.containsKey("examples")) { | 4851 if (_json.containsKey("examples")) { |
4758 examples = _json["examples"].map((value) => new DatafeedStatusExample.from
Json(value)).toList(); | 4852 examples = _json["examples"] |
| 4853 .map((value) => new DatafeedStatusExample.fromJson(value)) |
| 4854 .toList(); |
4759 } | 4855 } |
4760 if (_json.containsKey("message")) { | 4856 if (_json.containsKey("message")) { |
4761 message = _json["message"]; | 4857 message = _json["message"]; |
4762 } | 4858 } |
4763 } | 4859 } |
4764 | 4860 |
4765 core.Map<core.String, core.Object> toJson() { | 4861 core.Map<core.String, core.Object> toJson() { |
4766 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4862 final core.Map<core.String, core.Object> _json = |
| 4863 new core.Map<core.String, core.Object>(); |
4767 if (code != null) { | 4864 if (code != null) { |
4768 _json["code"] = code; | 4865 _json["code"] = code; |
4769 } | 4866 } |
4770 if (count != null) { | 4867 if (count != null) { |
4771 _json["count"] = count; | 4868 _json["count"] = count; |
4772 } | 4869 } |
4773 if (examples != null) { | 4870 if (examples != null) { |
4774 _json["examples"] = examples.map((value) => (value).toJson()).toList(); | 4871 _json["examples"] = examples.map((value) => (value).toJson()).toList(); |
4775 } | 4872 } |
4776 if (message != null) { | 4873 if (message != null) { |
4777 _json["message"] = message; | 4874 _json["message"] = message; |
4778 } | 4875 } |
4779 return _json; | 4876 return _json; |
4780 } | 4877 } |
4781 } | 4878 } |
4782 | 4879 |
4783 /** An example occurrence for a particular error. */ | 4880 /// An example occurrence for a particular error. |
4784 class DatafeedStatusExample { | 4881 class DatafeedStatusExample { |
4785 /** The ID of the example item. */ | 4882 /// The ID of the example item. |
4786 core.String itemId; | 4883 core.String itemId; |
4787 /** Line number in the data feed where the example is found. */ | 4884 |
| 4885 /// Line number in the data feed where the example is found. |
4788 core.String lineNumber; | 4886 core.String lineNumber; |
4789 /** The problematic value. */ | 4887 |
| 4888 /// The problematic value. |
4790 core.String value; | 4889 core.String value; |
4791 | 4890 |
4792 DatafeedStatusExample(); | 4891 DatafeedStatusExample(); |
4793 | 4892 |
4794 DatafeedStatusExample.fromJson(core.Map _json) { | 4893 DatafeedStatusExample.fromJson(core.Map _json) { |
4795 if (_json.containsKey("itemId")) { | 4894 if (_json.containsKey("itemId")) { |
4796 itemId = _json["itemId"]; | 4895 itemId = _json["itemId"]; |
4797 } | 4896 } |
4798 if (_json.containsKey("lineNumber")) { | 4897 if (_json.containsKey("lineNumber")) { |
4799 lineNumber = _json["lineNumber"]; | 4898 lineNumber = _json["lineNumber"]; |
4800 } | 4899 } |
4801 if (_json.containsKey("value")) { | 4900 if (_json.containsKey("value")) { |
4802 value = _json["value"]; | 4901 value = _json["value"]; |
4803 } | 4902 } |
4804 } | 4903 } |
4805 | 4904 |
4806 core.Map<core.String, core.Object> toJson() { | 4905 core.Map<core.String, core.Object> toJson() { |
4807 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4906 final core.Map<core.String, core.Object> _json = |
| 4907 new core.Map<core.String, core.Object>(); |
4808 if (itemId != null) { | 4908 if (itemId != null) { |
4809 _json["itemId"] = itemId; | 4909 _json["itemId"] = itemId; |
4810 } | 4910 } |
4811 if (lineNumber != null) { | 4911 if (lineNumber != null) { |
4812 _json["lineNumber"] = lineNumber; | 4912 _json["lineNumber"] = lineNumber; |
4813 } | 4913 } |
4814 if (value != null) { | 4914 if (value != null) { |
4815 _json["value"] = value; | 4915 _json["value"] = value; |
4816 } | 4916 } |
4817 return _json; | 4917 return _json; |
4818 } | 4918 } |
4819 } | 4919 } |
4820 | 4920 |
4821 class DatafeedsCustomBatchRequest { | 4921 class DatafeedsCustomBatchRequest { |
4822 /** The request entries to be processed in the batch. */ | 4922 /// The request entries to be processed in the batch. |
4823 core.List<DatafeedsCustomBatchRequestEntry> entries; | 4923 core.List<DatafeedsCustomBatchRequestEntry> entries; |
4824 | 4924 |
4825 DatafeedsCustomBatchRequest(); | 4925 DatafeedsCustomBatchRequest(); |
4826 | 4926 |
4827 DatafeedsCustomBatchRequest.fromJson(core.Map _json) { | 4927 DatafeedsCustomBatchRequest.fromJson(core.Map _json) { |
4828 if (_json.containsKey("entries")) { | 4928 if (_json.containsKey("entries")) { |
4829 entries = _json["entries"].map((value) => new DatafeedsCustomBatchRequestE
ntry.fromJson(value)).toList(); | 4929 entries = _json["entries"] |
| 4930 .map((value) => new DatafeedsCustomBatchRequestEntry.fromJson(value)) |
| 4931 .toList(); |
4830 } | 4932 } |
4831 } | 4933 } |
4832 | 4934 |
4833 core.Map<core.String, core.Object> toJson() { | 4935 core.Map<core.String, core.Object> toJson() { |
4834 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4936 final core.Map<core.String, core.Object> _json = |
| 4937 new core.Map<core.String, core.Object>(); |
4835 if (entries != null) { | 4938 if (entries != null) { |
4836 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 4939 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
4837 } | 4940 } |
4838 return _json; | 4941 return _json; |
4839 } | 4942 } |
4840 } | 4943 } |
4841 | 4944 |
4842 /** A batch entry encoding a single non-batch datafeeds request. */ | 4945 /// A batch entry encoding a single non-batch datafeeds request. |
4843 class DatafeedsCustomBatchRequestEntry { | 4946 class DatafeedsCustomBatchRequestEntry { |
4844 /** An entry ID, unique within the batch request. */ | 4947 /// An entry ID, unique within the batch request. |
4845 core.int batchId; | 4948 core.int batchId; |
4846 /** The data feed to insert. */ | 4949 |
| 4950 /// The data feed to insert. |
4847 Datafeed datafeed; | 4951 Datafeed datafeed; |
4848 /** The ID of the data feed to get or delete. */ | 4952 |
| 4953 /// The ID of the data feed to get or delete. |
4849 core.String datafeedId; | 4954 core.String datafeedId; |
4850 /** The ID of the managing account. */ | 4955 |
| 4956 /// The ID of the managing account. |
4851 core.String merchantId; | 4957 core.String merchantId; |
4852 core.String method; | 4958 core.String method; |
4853 | 4959 |
4854 DatafeedsCustomBatchRequestEntry(); | 4960 DatafeedsCustomBatchRequestEntry(); |
4855 | 4961 |
4856 DatafeedsCustomBatchRequestEntry.fromJson(core.Map _json) { | 4962 DatafeedsCustomBatchRequestEntry.fromJson(core.Map _json) { |
4857 if (_json.containsKey("batchId")) { | 4963 if (_json.containsKey("batchId")) { |
4858 batchId = _json["batchId"]; | 4964 batchId = _json["batchId"]; |
4859 } | 4965 } |
4860 if (_json.containsKey("datafeed")) { | 4966 if (_json.containsKey("datafeed")) { |
4861 datafeed = new Datafeed.fromJson(_json["datafeed"]); | 4967 datafeed = new Datafeed.fromJson(_json["datafeed"]); |
4862 } | 4968 } |
4863 if (_json.containsKey("datafeedId")) { | 4969 if (_json.containsKey("datafeedId")) { |
4864 datafeedId = _json["datafeedId"]; | 4970 datafeedId = _json["datafeedId"]; |
4865 } | 4971 } |
4866 if (_json.containsKey("merchantId")) { | 4972 if (_json.containsKey("merchantId")) { |
4867 merchantId = _json["merchantId"]; | 4973 merchantId = _json["merchantId"]; |
4868 } | 4974 } |
4869 if (_json.containsKey("method")) { | 4975 if (_json.containsKey("method")) { |
4870 method = _json["method"]; | 4976 method = _json["method"]; |
4871 } | 4977 } |
4872 } | 4978 } |
4873 | 4979 |
4874 core.Map<core.String, core.Object> toJson() { | 4980 core.Map<core.String, core.Object> toJson() { |
4875 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4981 final core.Map<core.String, core.Object> _json = |
| 4982 new core.Map<core.String, core.Object>(); |
4876 if (batchId != null) { | 4983 if (batchId != null) { |
4877 _json["batchId"] = batchId; | 4984 _json["batchId"] = batchId; |
4878 } | 4985 } |
4879 if (datafeed != null) { | 4986 if (datafeed != null) { |
4880 _json["datafeed"] = (datafeed).toJson(); | 4987 _json["datafeed"] = (datafeed).toJson(); |
4881 } | 4988 } |
4882 if (datafeedId != null) { | 4989 if (datafeedId != null) { |
4883 _json["datafeedId"] = datafeedId; | 4990 _json["datafeedId"] = datafeedId; |
4884 } | 4991 } |
4885 if (merchantId != null) { | 4992 if (merchantId != null) { |
4886 _json["merchantId"] = merchantId; | 4993 _json["merchantId"] = merchantId; |
4887 } | 4994 } |
4888 if (method != null) { | 4995 if (method != null) { |
4889 _json["method"] = method; | 4996 _json["method"] = method; |
4890 } | 4997 } |
4891 return _json; | 4998 return _json; |
4892 } | 4999 } |
4893 } | 5000 } |
4894 | 5001 |
4895 class DatafeedsCustomBatchResponse { | 5002 class DatafeedsCustomBatchResponse { |
4896 /** The result of the execution of the batch requests. */ | 5003 /// The result of the execution of the batch requests. |
4897 core.List<DatafeedsCustomBatchResponseEntry> entries; | 5004 core.List<DatafeedsCustomBatchResponseEntry> entries; |
4898 /** | 5005 |
4899 * Identifies what kind of resource this is. Value: the fixed string | 5006 /// Identifies what kind of resource this is. Value: the fixed string |
4900 * "content#datafeedsCustomBatchResponse". | 5007 /// "content#datafeedsCustomBatchResponse". |
4901 */ | |
4902 core.String kind; | 5008 core.String kind; |
4903 | 5009 |
4904 DatafeedsCustomBatchResponse(); | 5010 DatafeedsCustomBatchResponse(); |
4905 | 5011 |
4906 DatafeedsCustomBatchResponse.fromJson(core.Map _json) { | 5012 DatafeedsCustomBatchResponse.fromJson(core.Map _json) { |
4907 if (_json.containsKey("entries")) { | 5013 if (_json.containsKey("entries")) { |
4908 entries = _json["entries"].map((value) => new DatafeedsCustomBatchResponse
Entry.fromJson(value)).toList(); | 5014 entries = _json["entries"] |
| 5015 .map((value) => new DatafeedsCustomBatchResponseEntry.fromJson(value)) |
| 5016 .toList(); |
4909 } | 5017 } |
4910 if (_json.containsKey("kind")) { | 5018 if (_json.containsKey("kind")) { |
4911 kind = _json["kind"]; | 5019 kind = _json["kind"]; |
4912 } | 5020 } |
4913 } | 5021 } |
4914 | 5022 |
4915 core.Map<core.String, core.Object> toJson() { | 5023 core.Map<core.String, core.Object> toJson() { |
4916 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5024 final core.Map<core.String, core.Object> _json = |
| 5025 new core.Map<core.String, core.Object>(); |
4917 if (entries != null) { | 5026 if (entries != null) { |
4918 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 5027 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
4919 } | 5028 } |
4920 if (kind != null) { | 5029 if (kind != null) { |
4921 _json["kind"] = kind; | 5030 _json["kind"] = kind; |
4922 } | 5031 } |
4923 return _json; | 5032 return _json; |
4924 } | 5033 } |
4925 } | 5034 } |
4926 | 5035 |
4927 /** A batch entry encoding a single non-batch datafeeds response. */ | 5036 /// A batch entry encoding a single non-batch datafeeds response. |
4928 class DatafeedsCustomBatchResponseEntry { | 5037 class DatafeedsCustomBatchResponseEntry { |
4929 /** The ID of the request entry this entry responds to. */ | 5038 /// The ID of the request entry this entry responds to. |
4930 core.int batchId; | 5039 core.int batchId; |
4931 /** | 5040 |
4932 * The requested data feed. Defined if and only if the request was successful. | 5041 /// The requested data feed. Defined if and only if the request was |
4933 */ | 5042 /// successful. |
4934 Datafeed datafeed; | 5043 Datafeed datafeed; |
4935 /** A list of errors defined if and only if the request failed. */ | 5044 |
| 5045 /// A list of errors defined if and only if the request failed. |
4936 Errors errors; | 5046 Errors errors; |
4937 | 5047 |
4938 DatafeedsCustomBatchResponseEntry(); | 5048 DatafeedsCustomBatchResponseEntry(); |
4939 | 5049 |
4940 DatafeedsCustomBatchResponseEntry.fromJson(core.Map _json) { | 5050 DatafeedsCustomBatchResponseEntry.fromJson(core.Map _json) { |
4941 if (_json.containsKey("batchId")) { | 5051 if (_json.containsKey("batchId")) { |
4942 batchId = _json["batchId"]; | 5052 batchId = _json["batchId"]; |
4943 } | 5053 } |
4944 if (_json.containsKey("datafeed")) { | 5054 if (_json.containsKey("datafeed")) { |
4945 datafeed = new Datafeed.fromJson(_json["datafeed"]); | 5055 datafeed = new Datafeed.fromJson(_json["datafeed"]); |
4946 } | 5056 } |
4947 if (_json.containsKey("errors")) { | 5057 if (_json.containsKey("errors")) { |
4948 errors = new Errors.fromJson(_json["errors"]); | 5058 errors = new Errors.fromJson(_json["errors"]); |
4949 } | 5059 } |
4950 } | 5060 } |
4951 | 5061 |
4952 core.Map<core.String, core.Object> toJson() { | 5062 core.Map<core.String, core.Object> toJson() { |
4953 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5063 final core.Map<core.String, core.Object> _json = |
| 5064 new core.Map<core.String, core.Object>(); |
4954 if (batchId != null) { | 5065 if (batchId != null) { |
4955 _json["batchId"] = batchId; | 5066 _json["batchId"] = batchId; |
4956 } | 5067 } |
4957 if (datafeed != null) { | 5068 if (datafeed != null) { |
4958 _json["datafeed"] = (datafeed).toJson(); | 5069 _json["datafeed"] = (datafeed).toJson(); |
4959 } | 5070 } |
4960 if (errors != null) { | 5071 if (errors != null) { |
4961 _json["errors"] = (errors).toJson(); | 5072 _json["errors"] = (errors).toJson(); |
4962 } | 5073 } |
4963 return _json; | 5074 return _json; |
4964 } | 5075 } |
4965 } | 5076 } |
4966 | 5077 |
4967 class DatafeedsListResponse { | 5078 class DatafeedsListResponse { |
4968 /** | 5079 /// Identifies what kind of resource this is. Value: the fixed string |
4969 * Identifies what kind of resource this is. Value: the fixed string | 5080 /// "content#datafeedsListResponse". |
4970 * "content#datafeedsListResponse". | |
4971 */ | |
4972 core.String kind; | 5081 core.String kind; |
4973 /** The token for the retrieval of the next page of datafeeds. */ | 5082 |
| 5083 /// The token for the retrieval of the next page of datafeeds. |
4974 core.String nextPageToken; | 5084 core.String nextPageToken; |
4975 core.List<Datafeed> resources; | 5085 core.List<Datafeed> resources; |
4976 | 5086 |
4977 DatafeedsListResponse(); | 5087 DatafeedsListResponse(); |
4978 | 5088 |
4979 DatafeedsListResponse.fromJson(core.Map _json) { | 5089 DatafeedsListResponse.fromJson(core.Map _json) { |
4980 if (_json.containsKey("kind")) { | 5090 if (_json.containsKey("kind")) { |
4981 kind = _json["kind"]; | 5091 kind = _json["kind"]; |
4982 } | 5092 } |
4983 if (_json.containsKey("nextPageToken")) { | 5093 if (_json.containsKey("nextPageToken")) { |
4984 nextPageToken = _json["nextPageToken"]; | 5094 nextPageToken = _json["nextPageToken"]; |
4985 } | 5095 } |
4986 if (_json.containsKey("resources")) { | 5096 if (_json.containsKey("resources")) { |
4987 resources = _json["resources"].map((value) => new Datafeed.fromJson(value)
).toList(); | 5097 resources = _json["resources"] |
| 5098 .map((value) => new Datafeed.fromJson(value)) |
| 5099 .toList(); |
4988 } | 5100 } |
4989 } | 5101 } |
4990 | 5102 |
4991 core.Map<core.String, core.Object> toJson() { | 5103 core.Map<core.String, core.Object> toJson() { |
4992 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5104 final core.Map<core.String, core.Object> _json = |
| 5105 new core.Map<core.String, core.Object>(); |
4993 if (kind != null) { | 5106 if (kind != null) { |
4994 _json["kind"] = kind; | 5107 _json["kind"] = kind; |
4995 } | 5108 } |
4996 if (nextPageToken != null) { | 5109 if (nextPageToken != null) { |
4997 _json["nextPageToken"] = nextPageToken; | 5110 _json["nextPageToken"] = nextPageToken; |
4998 } | 5111 } |
4999 if (resources != null) { | 5112 if (resources != null) { |
5000 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 5113 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
5001 } | 5114 } |
5002 return _json; | 5115 return _json; |
5003 } | 5116 } |
5004 } | 5117 } |
5005 | 5118 |
5006 class DatafeedstatusesCustomBatchRequest { | 5119 class DatafeedstatusesCustomBatchRequest { |
5007 /** The request entries to be processed in the batch. */ | 5120 /// The request entries to be processed in the batch. |
5008 core.List<DatafeedstatusesCustomBatchRequestEntry> entries; | 5121 core.List<DatafeedstatusesCustomBatchRequestEntry> entries; |
5009 | 5122 |
5010 DatafeedstatusesCustomBatchRequest(); | 5123 DatafeedstatusesCustomBatchRequest(); |
5011 | 5124 |
5012 DatafeedstatusesCustomBatchRequest.fromJson(core.Map _json) { | 5125 DatafeedstatusesCustomBatchRequest.fromJson(core.Map _json) { |
5013 if (_json.containsKey("entries")) { | 5126 if (_json.containsKey("entries")) { |
5014 entries = _json["entries"].map((value) => new DatafeedstatusesCustomBatchR
equestEntry.fromJson(value)).toList(); | 5127 entries = _json["entries"] |
| 5128 .map((value) => |
| 5129 new DatafeedstatusesCustomBatchRequestEntry.fromJson(value)) |
| 5130 .toList(); |
5015 } | 5131 } |
5016 } | 5132 } |
5017 | 5133 |
5018 core.Map<core.String, core.Object> toJson() { | 5134 core.Map<core.String, core.Object> toJson() { |
5019 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5135 final core.Map<core.String, core.Object> _json = |
| 5136 new core.Map<core.String, core.Object>(); |
5020 if (entries != null) { | 5137 if (entries != null) { |
5021 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 5138 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
5022 } | 5139 } |
5023 return _json; | 5140 return _json; |
5024 } | 5141 } |
5025 } | 5142 } |
5026 | 5143 |
5027 /** A batch entry encoding a single non-batch datafeedstatuses request. */ | 5144 /// A batch entry encoding a single non-batch datafeedstatuses request. |
5028 class DatafeedstatusesCustomBatchRequestEntry { | 5145 class DatafeedstatusesCustomBatchRequestEntry { |
5029 /** An entry ID, unique within the batch request. */ | 5146 /// An entry ID, unique within the batch request. |
5030 core.int batchId; | 5147 core.int batchId; |
5031 /** The ID of the data feed to get or delete. */ | 5148 |
| 5149 /// The ID of the data feed to get or delete. |
5032 core.String datafeedId; | 5150 core.String datafeedId; |
5033 /** The ID of the managing account. */ | 5151 |
| 5152 /// The ID of the managing account. |
5034 core.String merchantId; | 5153 core.String merchantId; |
5035 core.String method; | 5154 core.String method; |
5036 | 5155 |
5037 DatafeedstatusesCustomBatchRequestEntry(); | 5156 DatafeedstatusesCustomBatchRequestEntry(); |
5038 | 5157 |
5039 DatafeedstatusesCustomBatchRequestEntry.fromJson(core.Map _json) { | 5158 DatafeedstatusesCustomBatchRequestEntry.fromJson(core.Map _json) { |
5040 if (_json.containsKey("batchId")) { | 5159 if (_json.containsKey("batchId")) { |
5041 batchId = _json["batchId"]; | 5160 batchId = _json["batchId"]; |
5042 } | 5161 } |
5043 if (_json.containsKey("datafeedId")) { | 5162 if (_json.containsKey("datafeedId")) { |
5044 datafeedId = _json["datafeedId"]; | 5163 datafeedId = _json["datafeedId"]; |
5045 } | 5164 } |
5046 if (_json.containsKey("merchantId")) { | 5165 if (_json.containsKey("merchantId")) { |
5047 merchantId = _json["merchantId"]; | 5166 merchantId = _json["merchantId"]; |
5048 } | 5167 } |
5049 if (_json.containsKey("method")) { | 5168 if (_json.containsKey("method")) { |
5050 method = _json["method"]; | 5169 method = _json["method"]; |
5051 } | 5170 } |
5052 } | 5171 } |
5053 | 5172 |
5054 core.Map<core.String, core.Object> toJson() { | 5173 core.Map<core.String, core.Object> toJson() { |
5055 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5174 final core.Map<core.String, core.Object> _json = |
| 5175 new core.Map<core.String, core.Object>(); |
5056 if (batchId != null) { | 5176 if (batchId != null) { |
5057 _json["batchId"] = batchId; | 5177 _json["batchId"] = batchId; |
5058 } | 5178 } |
5059 if (datafeedId != null) { | 5179 if (datafeedId != null) { |
5060 _json["datafeedId"] = datafeedId; | 5180 _json["datafeedId"] = datafeedId; |
5061 } | 5181 } |
5062 if (merchantId != null) { | 5182 if (merchantId != null) { |
5063 _json["merchantId"] = merchantId; | 5183 _json["merchantId"] = merchantId; |
5064 } | 5184 } |
5065 if (method != null) { | 5185 if (method != null) { |
5066 _json["method"] = method; | 5186 _json["method"] = method; |
5067 } | 5187 } |
5068 return _json; | 5188 return _json; |
5069 } | 5189 } |
5070 } | 5190 } |
5071 | 5191 |
5072 class DatafeedstatusesCustomBatchResponse { | 5192 class DatafeedstatusesCustomBatchResponse { |
5073 /** The result of the execution of the batch requests. */ | 5193 /// The result of the execution of the batch requests. |
5074 core.List<DatafeedstatusesCustomBatchResponseEntry> entries; | 5194 core.List<DatafeedstatusesCustomBatchResponseEntry> entries; |
5075 /** | 5195 |
5076 * Identifies what kind of resource this is. Value: the fixed string | 5196 /// Identifies what kind of resource this is. Value: the fixed string |
5077 * "content#datafeedstatusesCustomBatchResponse". | 5197 /// "content#datafeedstatusesCustomBatchResponse". |
5078 */ | |
5079 core.String kind; | 5198 core.String kind; |
5080 | 5199 |
5081 DatafeedstatusesCustomBatchResponse(); | 5200 DatafeedstatusesCustomBatchResponse(); |
5082 | 5201 |
5083 DatafeedstatusesCustomBatchResponse.fromJson(core.Map _json) { | 5202 DatafeedstatusesCustomBatchResponse.fromJson(core.Map _json) { |
5084 if (_json.containsKey("entries")) { | 5203 if (_json.containsKey("entries")) { |
5085 entries = _json["entries"].map((value) => new DatafeedstatusesCustomBatchR
esponseEntry.fromJson(value)).toList(); | 5204 entries = _json["entries"] |
| 5205 .map((value) => |
| 5206 new DatafeedstatusesCustomBatchResponseEntry.fromJson(value)) |
| 5207 .toList(); |
5086 } | 5208 } |
5087 if (_json.containsKey("kind")) { | 5209 if (_json.containsKey("kind")) { |
5088 kind = _json["kind"]; | 5210 kind = _json["kind"]; |
5089 } | 5211 } |
5090 } | 5212 } |
5091 | 5213 |
5092 core.Map<core.String, core.Object> toJson() { | 5214 core.Map<core.String, core.Object> toJson() { |
5093 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5215 final core.Map<core.String, core.Object> _json = |
| 5216 new core.Map<core.String, core.Object>(); |
5094 if (entries != null) { | 5217 if (entries != null) { |
5095 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 5218 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
5096 } | 5219 } |
5097 if (kind != null) { | 5220 if (kind != null) { |
5098 _json["kind"] = kind; | 5221 _json["kind"] = kind; |
5099 } | 5222 } |
5100 return _json; | 5223 return _json; |
5101 } | 5224 } |
5102 } | 5225 } |
5103 | 5226 |
5104 /** A batch entry encoding a single non-batch datafeedstatuses response. */ | 5227 /// A batch entry encoding a single non-batch datafeedstatuses response. |
5105 class DatafeedstatusesCustomBatchResponseEntry { | 5228 class DatafeedstatusesCustomBatchResponseEntry { |
5106 /** The ID of the request entry this entry responds to. */ | 5229 /// The ID of the request entry this entry responds to. |
5107 core.int batchId; | 5230 core.int batchId; |
5108 /** | 5231 |
5109 * The requested data feed status. Defined if and only if the request was | 5232 /// The requested data feed status. Defined if and only if the request was |
5110 * successful. | 5233 /// successful. |
5111 */ | |
5112 DatafeedStatus datafeedStatus; | 5234 DatafeedStatus datafeedStatus; |
5113 /** A list of errors defined if and only if the request failed. */ | 5235 |
| 5236 /// A list of errors defined if and only if the request failed. |
5114 Errors errors; | 5237 Errors errors; |
5115 | 5238 |
5116 DatafeedstatusesCustomBatchResponseEntry(); | 5239 DatafeedstatusesCustomBatchResponseEntry(); |
5117 | 5240 |
5118 DatafeedstatusesCustomBatchResponseEntry.fromJson(core.Map _json) { | 5241 DatafeedstatusesCustomBatchResponseEntry.fromJson(core.Map _json) { |
5119 if (_json.containsKey("batchId")) { | 5242 if (_json.containsKey("batchId")) { |
5120 batchId = _json["batchId"]; | 5243 batchId = _json["batchId"]; |
5121 } | 5244 } |
5122 if (_json.containsKey("datafeedStatus")) { | 5245 if (_json.containsKey("datafeedStatus")) { |
5123 datafeedStatus = new DatafeedStatus.fromJson(_json["datafeedStatus"]); | 5246 datafeedStatus = new DatafeedStatus.fromJson(_json["datafeedStatus"]); |
5124 } | 5247 } |
5125 if (_json.containsKey("errors")) { | 5248 if (_json.containsKey("errors")) { |
5126 errors = new Errors.fromJson(_json["errors"]); | 5249 errors = new Errors.fromJson(_json["errors"]); |
5127 } | 5250 } |
5128 } | 5251 } |
5129 | 5252 |
5130 core.Map<core.String, core.Object> toJson() { | 5253 core.Map<core.String, core.Object> toJson() { |
5131 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5254 final core.Map<core.String, core.Object> _json = |
| 5255 new core.Map<core.String, core.Object>(); |
5132 if (batchId != null) { | 5256 if (batchId != null) { |
5133 _json["batchId"] = batchId; | 5257 _json["batchId"] = batchId; |
5134 } | 5258 } |
5135 if (datafeedStatus != null) { | 5259 if (datafeedStatus != null) { |
5136 _json["datafeedStatus"] = (datafeedStatus).toJson(); | 5260 _json["datafeedStatus"] = (datafeedStatus).toJson(); |
5137 } | 5261 } |
5138 if (errors != null) { | 5262 if (errors != null) { |
5139 _json["errors"] = (errors).toJson(); | 5263 _json["errors"] = (errors).toJson(); |
5140 } | 5264 } |
5141 return _json; | 5265 return _json; |
5142 } | 5266 } |
5143 } | 5267 } |
5144 | 5268 |
5145 class DatafeedstatusesListResponse { | 5269 class DatafeedstatusesListResponse { |
5146 /** | 5270 /// Identifies what kind of resource this is. Value: the fixed string |
5147 * Identifies what kind of resource this is. Value: the fixed string | 5271 /// "content#datafeedstatusesListResponse". |
5148 * "content#datafeedstatusesListResponse". | |
5149 */ | |
5150 core.String kind; | 5272 core.String kind; |
5151 /** The token for the retrieval of the next page of datafeed statuses. */ | 5273 |
| 5274 /// The token for the retrieval of the next page of datafeed statuses. |
5152 core.String nextPageToken; | 5275 core.String nextPageToken; |
5153 core.List<DatafeedStatus> resources; | 5276 core.List<DatafeedStatus> resources; |
5154 | 5277 |
5155 DatafeedstatusesListResponse(); | 5278 DatafeedstatusesListResponse(); |
5156 | 5279 |
5157 DatafeedstatusesListResponse.fromJson(core.Map _json) { | 5280 DatafeedstatusesListResponse.fromJson(core.Map _json) { |
5158 if (_json.containsKey("kind")) { | 5281 if (_json.containsKey("kind")) { |
5159 kind = _json["kind"]; | 5282 kind = _json["kind"]; |
5160 } | 5283 } |
5161 if (_json.containsKey("nextPageToken")) { | 5284 if (_json.containsKey("nextPageToken")) { |
5162 nextPageToken = _json["nextPageToken"]; | 5285 nextPageToken = _json["nextPageToken"]; |
5163 } | 5286 } |
5164 if (_json.containsKey("resources")) { | 5287 if (_json.containsKey("resources")) { |
5165 resources = _json["resources"].map((value) => new DatafeedStatus.fromJson(
value)).toList(); | 5288 resources = _json["resources"] |
| 5289 .map((value) => new DatafeedStatus.fromJson(value)) |
| 5290 .toList(); |
5166 } | 5291 } |
5167 } | 5292 } |
5168 | 5293 |
5169 core.Map<core.String, core.Object> toJson() { | 5294 core.Map<core.String, core.Object> toJson() { |
5170 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5295 final core.Map<core.String, core.Object> _json = |
| 5296 new core.Map<core.String, core.Object>(); |
5171 if (kind != null) { | 5297 if (kind != null) { |
5172 _json["kind"] = kind; | 5298 _json["kind"] = kind; |
5173 } | 5299 } |
5174 if (nextPageToken != null) { | 5300 if (nextPageToken != null) { |
5175 _json["nextPageToken"] = nextPageToken; | 5301 _json["nextPageToken"] = nextPageToken; |
5176 } | 5302 } |
5177 if (resources != null) { | 5303 if (resources != null) { |
5178 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 5304 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
5179 } | 5305 } |
5180 return _json; | 5306 return _json; |
5181 } | 5307 } |
5182 } | 5308 } |
5183 | 5309 |
5184 class DeliveryTime { | 5310 class DeliveryTime { |
5185 /** | 5311 /// Maximum number of business days that is spent in transit. 0 means same |
5186 * Maximum number of business days that is spent in transit. 0 means same day | 5312 /// day delivery, 1 means next day delivery. Must be greater than or equal to |
5187 * delivery, 1 means next day delivery. Must be greater than or equal to | 5313 /// minTransitTimeInDays. Required. |
5188 * minTransitTimeInDays. Required. | |
5189 */ | |
5190 core.int maxTransitTimeInDays; | 5314 core.int maxTransitTimeInDays; |
5191 /** | 5315 |
5192 * Minimum number of business days that is spent in transit. 0 means same day | 5316 /// Minimum number of business days that is spent in transit. 0 means same |
5193 * delivery, 1 means next day delivery. Required. | 5317 /// day delivery, 1 means next day delivery. Required. |
5194 */ | |
5195 core.int minTransitTimeInDays; | 5318 core.int minTransitTimeInDays; |
5196 | 5319 |
5197 DeliveryTime(); | 5320 DeliveryTime(); |
5198 | 5321 |
5199 DeliveryTime.fromJson(core.Map _json) { | 5322 DeliveryTime.fromJson(core.Map _json) { |
5200 if (_json.containsKey("maxTransitTimeInDays")) { | 5323 if (_json.containsKey("maxTransitTimeInDays")) { |
5201 maxTransitTimeInDays = _json["maxTransitTimeInDays"]; | 5324 maxTransitTimeInDays = _json["maxTransitTimeInDays"]; |
5202 } | 5325 } |
5203 if (_json.containsKey("minTransitTimeInDays")) { | 5326 if (_json.containsKey("minTransitTimeInDays")) { |
5204 minTransitTimeInDays = _json["minTransitTimeInDays"]; | 5327 minTransitTimeInDays = _json["minTransitTimeInDays"]; |
5205 } | 5328 } |
5206 } | 5329 } |
5207 | 5330 |
5208 core.Map<core.String, core.Object> toJson() { | 5331 core.Map<core.String, core.Object> toJson() { |
5209 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5332 final core.Map<core.String, core.Object> _json = |
| 5333 new core.Map<core.String, core.Object>(); |
5210 if (maxTransitTimeInDays != null) { | 5334 if (maxTransitTimeInDays != null) { |
5211 _json["maxTransitTimeInDays"] = maxTransitTimeInDays; | 5335 _json["maxTransitTimeInDays"] = maxTransitTimeInDays; |
5212 } | 5336 } |
5213 if (minTransitTimeInDays != null) { | 5337 if (minTransitTimeInDays != null) { |
5214 _json["minTransitTimeInDays"] = minTransitTimeInDays; | 5338 _json["minTransitTimeInDays"] = minTransitTimeInDays; |
5215 } | 5339 } |
5216 return _json; | 5340 return _json; |
5217 } | 5341 } |
5218 } | 5342 } |
5219 | 5343 |
5220 /** An error returned by the API. */ | 5344 /// An error returned by the API. |
5221 class Error { | 5345 class Error { |
5222 /** The domain of the error. */ | 5346 /// The domain of the error. |
5223 core.String domain; | 5347 core.String domain; |
5224 /** A description of the error. */ | 5348 |
| 5349 /// A description of the error. |
5225 core.String message; | 5350 core.String message; |
5226 /** The error code. */ | 5351 |
| 5352 /// The error code. |
5227 core.String reason; | 5353 core.String reason; |
5228 | 5354 |
5229 Error(); | 5355 Error(); |
5230 | 5356 |
5231 Error.fromJson(core.Map _json) { | 5357 Error.fromJson(core.Map _json) { |
5232 if (_json.containsKey("domain")) { | 5358 if (_json.containsKey("domain")) { |
5233 domain = _json["domain"]; | 5359 domain = _json["domain"]; |
5234 } | 5360 } |
5235 if (_json.containsKey("message")) { | 5361 if (_json.containsKey("message")) { |
5236 message = _json["message"]; | 5362 message = _json["message"]; |
5237 } | 5363 } |
5238 if (_json.containsKey("reason")) { | 5364 if (_json.containsKey("reason")) { |
5239 reason = _json["reason"]; | 5365 reason = _json["reason"]; |
5240 } | 5366 } |
5241 } | 5367 } |
5242 | 5368 |
5243 core.Map<core.String, core.Object> toJson() { | 5369 core.Map<core.String, core.Object> toJson() { |
5244 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5370 final core.Map<core.String, core.Object> _json = |
| 5371 new core.Map<core.String, core.Object>(); |
5245 if (domain != null) { | 5372 if (domain != null) { |
5246 _json["domain"] = domain; | 5373 _json["domain"] = domain; |
5247 } | 5374 } |
5248 if (message != null) { | 5375 if (message != null) { |
5249 _json["message"] = message; | 5376 _json["message"] = message; |
5250 } | 5377 } |
5251 if (reason != null) { | 5378 if (reason != null) { |
5252 _json["reason"] = reason; | 5379 _json["reason"] = reason; |
5253 } | 5380 } |
5254 return _json; | 5381 return _json; |
5255 } | 5382 } |
5256 } | 5383 } |
5257 | 5384 |
5258 /** A list of errors returned by a failed batch entry. */ | 5385 /// A list of errors returned by a failed batch entry. |
5259 class Errors { | 5386 class Errors { |
5260 /** The HTTP status of the first error in errors. */ | 5387 /// The HTTP status of the first error in errors. |
5261 core.int code; | 5388 core.int code; |
5262 /** A list of errors. */ | 5389 |
| 5390 /// A list of errors. |
5263 core.List<Error> errors; | 5391 core.List<Error> errors; |
5264 /** The message of the first error in errors. */ | 5392 |
| 5393 /// The message of the first error in errors. |
5265 core.String message; | 5394 core.String message; |
5266 | 5395 |
5267 Errors(); | 5396 Errors(); |
5268 | 5397 |
5269 Errors.fromJson(core.Map _json) { | 5398 Errors.fromJson(core.Map _json) { |
5270 if (_json.containsKey("code")) { | 5399 if (_json.containsKey("code")) { |
5271 code = _json["code"]; | 5400 code = _json["code"]; |
5272 } | 5401 } |
5273 if (_json.containsKey("errors")) { | 5402 if (_json.containsKey("errors")) { |
5274 errors = _json["errors"].map((value) => new Error.fromJson(value)).toList(
); | 5403 errors = |
| 5404 _json["errors"].map((value) => new Error.fromJson(value)).toList(); |
5275 } | 5405 } |
5276 if (_json.containsKey("message")) { | 5406 if (_json.containsKey("message")) { |
5277 message = _json["message"]; | 5407 message = _json["message"]; |
5278 } | 5408 } |
5279 } | 5409 } |
5280 | 5410 |
5281 core.Map<core.String, core.Object> toJson() { | 5411 core.Map<core.String, core.Object> toJson() { |
5282 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5412 final core.Map<core.String, core.Object> _json = |
| 5413 new core.Map<core.String, core.Object>(); |
5283 if (code != null) { | 5414 if (code != null) { |
5284 _json["code"] = code; | 5415 _json["code"] = code; |
5285 } | 5416 } |
5286 if (errors != null) { | 5417 if (errors != null) { |
5287 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 5418 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
5288 } | 5419 } |
5289 if (message != null) { | 5420 if (message != null) { |
5290 _json["message"] = message; | 5421 _json["message"] = message; |
5291 } | 5422 } |
5292 return _json; | 5423 return _json; |
5293 } | 5424 } |
5294 } | 5425 } |
5295 | 5426 |
5296 /** | 5427 /// A non-empty list of row or column headers for a table. Exactly one of |
5297 * A non-empty list of row or column headers for a table. Exactly one of prices, | 5428 /// prices, weights, numItems, postalCodeGroupNames, or locations must be set. |
5298 * weights, numItems, postalCodeGroupNames, or locations must be set. | |
5299 */ | |
5300 class Headers { | 5429 class Headers { |
5301 /** | 5430 /// A list of location ID sets. Must be non-empty. Can only be set if all |
5302 * A list of location ID sets. Must be non-empty. Can only be set if all other | 5431 /// other fields are not set. |
5303 * fields are not set. | |
5304 */ | |
5305 core.List<LocationIdSet> locations; | 5432 core.List<LocationIdSet> locations; |
5306 /** | 5433 |
5307 * A list of inclusive number of items upper bounds. The last value can be | 5434 /// A list of inclusive number of items upper bounds. The last value can be |
5308 * "infinity". For example ["10", "50", "infinity"] represents the headers "<= | 5435 /// "infinity". For example ["10", "50", "infinity"] represents the headers |
5309 * 10 items", " 50 items". Must be non-empty. Can only be set if all other | 5436 /// "<= 10 items", " 50 items". Must be non-empty. Can only be set if all |
5310 * fields are not set. | 5437 /// other fields are not set. |
5311 */ | |
5312 core.List<core.String> numberOfItems; | 5438 core.List<core.String> numberOfItems; |
5313 /** | 5439 |
5314 * A list of postal group names. The last value can be "all other locations". | 5440 /// A list of postal group names. The last value can be "all other |
5315 * Example: ["zone 1", "zone 2", "all other locations"]. The referred postal | 5441 /// locations". Example: ["zone 1", "zone 2", "all other locations"]. The |
5316 * code groups must match the delivery country of the service. Must be | 5442 /// referred postal code groups must match the delivery country of the |
5317 * non-empty. Can only be set if all other fields are not set. | 5443 /// service. Must be non-empty. Can only be set if all other fields are not |
5318 */ | 5444 /// set. |
5319 core.List<core.String> postalCodeGroupNames; | 5445 core.List<core.String> postalCodeGroupNames; |
5320 /** | 5446 |
5321 * be "infinity". For example [{"value": "10", "currency": "USD"}, {"value": | 5447 /// be "infinity". For example [{"value": "10", "currency": "USD"}, {"value": |
5322 * "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}] | 5448 /// "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}] |
5323 * represents the headers "<= $10", " $500". All prices within a service must | 5449 /// represents the headers "<= $10", " $500". All prices within a service |
5324 * have the same currency. Must be non-empty. Can only be set if all other | 5450 /// must have the same currency. Must be non-empty. Can only be set if all |
5325 * fields are not set. | 5451 /// other fields are not set. |
5326 */ | |
5327 core.List<Price> prices; | 5452 core.List<Price> prices; |
5328 /** | 5453 |
5329 * be "infinity". For example [{"value": "10", "unit": "kg"}, {"value": "50", | 5454 /// be "infinity". For example [{"value": "10", "unit": "kg"}, {"value": |
5330 * "unit": "kg"}, {"value": "infinity", "unit": "kg"}] represents the headers | 5455 /// "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}] represents the |
5331 * "<= 10kg", " 50kg". All weights within a service must have the same unit. | 5456 /// headers "<= 10kg", " 50kg". All weights within a service must have the |
5332 * Must be non-empty. Can only be set if all other fields are not set. | 5457 /// same unit. Must be non-empty. Can only be set if all other fields are not |
5333 */ | 5458 /// set. |
5334 core.List<Weight> weights; | 5459 core.List<Weight> weights; |
5335 | 5460 |
5336 Headers(); | 5461 Headers(); |
5337 | 5462 |
5338 Headers.fromJson(core.Map _json) { | 5463 Headers.fromJson(core.Map _json) { |
5339 if (_json.containsKey("locations")) { | 5464 if (_json.containsKey("locations")) { |
5340 locations = _json["locations"].map((value) => new LocationIdSet.fromJson(v
alue)).toList(); | 5465 locations = _json["locations"] |
| 5466 .map((value) => new LocationIdSet.fromJson(value)) |
| 5467 .toList(); |
5341 } | 5468 } |
5342 if (_json.containsKey("numberOfItems")) { | 5469 if (_json.containsKey("numberOfItems")) { |
5343 numberOfItems = _json["numberOfItems"]; | 5470 numberOfItems = _json["numberOfItems"]; |
5344 } | 5471 } |
5345 if (_json.containsKey("postalCodeGroupNames")) { | 5472 if (_json.containsKey("postalCodeGroupNames")) { |
5346 postalCodeGroupNames = _json["postalCodeGroupNames"]; | 5473 postalCodeGroupNames = _json["postalCodeGroupNames"]; |
5347 } | 5474 } |
5348 if (_json.containsKey("prices")) { | 5475 if (_json.containsKey("prices")) { |
5349 prices = _json["prices"].map((value) => new Price.fromJson(value)).toList(
); | 5476 prices = |
| 5477 _json["prices"].map((value) => new Price.fromJson(value)).toList(); |
5350 } | 5478 } |
5351 if (_json.containsKey("weights")) { | 5479 if (_json.containsKey("weights")) { |
5352 weights = _json["weights"].map((value) => new Weight.fromJson(value)).toLi
st(); | 5480 weights = |
| 5481 _json["weights"].map((value) => new Weight.fromJson(value)).toList(); |
5353 } | 5482 } |
5354 } | 5483 } |
5355 | 5484 |
5356 core.Map<core.String, core.Object> toJson() { | 5485 core.Map<core.String, core.Object> toJson() { |
5357 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5486 final core.Map<core.String, core.Object> _json = |
| 5487 new core.Map<core.String, core.Object>(); |
5358 if (locations != null) { | 5488 if (locations != null) { |
5359 _json["locations"] = locations.map((value) => (value).toJson()).toList(); | 5489 _json["locations"] = locations.map((value) => (value).toJson()).toList(); |
5360 } | 5490 } |
5361 if (numberOfItems != null) { | 5491 if (numberOfItems != null) { |
5362 _json["numberOfItems"] = numberOfItems; | 5492 _json["numberOfItems"] = numberOfItems; |
5363 } | 5493 } |
5364 if (postalCodeGroupNames != null) { | 5494 if (postalCodeGroupNames != null) { |
5365 _json["postalCodeGroupNames"] = postalCodeGroupNames; | 5495 _json["postalCodeGroupNames"] = postalCodeGroupNames; |
5366 } | 5496 } |
5367 if (prices != null) { | 5497 if (prices != null) { |
5368 _json["prices"] = prices.map((value) => (value).toJson()).toList(); | 5498 _json["prices"] = prices.map((value) => (value).toJson()).toList(); |
5369 } | 5499 } |
5370 if (weights != null) { | 5500 if (weights != null) { |
5371 _json["weights"] = weights.map((value) => (value).toJson()).toList(); | 5501 _json["weights"] = weights.map((value) => (value).toJson()).toList(); |
5372 } | 5502 } |
5373 return _json; | 5503 return _json; |
5374 } | 5504 } |
5375 } | 5505 } |
5376 | 5506 |
5377 class Installment { | 5507 class Installment { |
5378 /** The amount the buyer has to pay per month. */ | 5508 /// The amount the buyer has to pay per month. |
5379 Price amount; | 5509 Price amount; |
5380 /** The number of installments the buyer has to pay. */ | 5510 |
| 5511 /// The number of installments the buyer has to pay. |
5381 core.String months; | 5512 core.String months; |
5382 | 5513 |
5383 Installment(); | 5514 Installment(); |
5384 | 5515 |
5385 Installment.fromJson(core.Map _json) { | 5516 Installment.fromJson(core.Map _json) { |
5386 if (_json.containsKey("amount")) { | 5517 if (_json.containsKey("amount")) { |
5387 amount = new Price.fromJson(_json["amount"]); | 5518 amount = new Price.fromJson(_json["amount"]); |
5388 } | 5519 } |
5389 if (_json.containsKey("months")) { | 5520 if (_json.containsKey("months")) { |
5390 months = _json["months"]; | 5521 months = _json["months"]; |
5391 } | 5522 } |
5392 } | 5523 } |
5393 | 5524 |
5394 core.Map<core.String, core.Object> toJson() { | 5525 core.Map<core.String, core.Object> toJson() { |
5395 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5526 final core.Map<core.String, core.Object> _json = |
| 5527 new core.Map<core.String, core.Object>(); |
5396 if (amount != null) { | 5528 if (amount != null) { |
5397 _json["amount"] = (amount).toJson(); | 5529 _json["amount"] = (amount).toJson(); |
5398 } | 5530 } |
5399 if (months != null) { | 5531 if (months != null) { |
5400 _json["months"] = months; | 5532 _json["months"] = months; |
5401 } | 5533 } |
5402 return _json; | 5534 return _json; |
5403 } | 5535 } |
5404 } | 5536 } |
5405 | 5537 |
5406 class Inventory { | 5538 class Inventory { |
5407 /** The availability of the product. */ | 5539 /// The availability of the product. |
5408 core.String availability; | 5540 core.String availability; |
5409 /** Number and amount of installments to pay for an item. Brazil only. */ | 5541 |
| 5542 /// Number and amount of installments to pay for an item. Brazil only. |
5410 Installment installment; | 5543 Installment installment; |
5411 /** | 5544 |
5412 * Identifies what kind of resource this is. Value: the fixed string | 5545 /// Identifies what kind of resource this is. Value: the fixed string |
5413 * "content#inventory". | 5546 /// "content#inventory". |
5414 */ | |
5415 core.String kind; | 5547 core.String kind; |
5416 /** | 5548 |
5417 * Loyalty points that users receive after purchasing the item. Japan only. | 5549 /// Loyalty points that users receive after purchasing the item. Japan only. |
5418 */ | |
5419 LoyaltyPoints loyaltyPoints; | 5550 LoyaltyPoints loyaltyPoints; |
5420 /** | 5551 |
5421 * Store pickup information. Only supported for local inventory. Not setting | 5552 /// Store pickup information. Only supported for local inventory. Not setting |
5422 * pickup means "don't update" while setting it to the empty value ({} in | 5553 /// pickup means "don't update" while setting it to the empty value ({} in |
5423 * JSON) means "delete". Otherwise, pickupMethod and pickupSla must be set | 5554 /// JSON) means "delete". Otherwise, pickupMethod and pickupSla must be set |
5424 * together, unless pickupMethod is "not supported". | 5555 /// together, unless pickupMethod is "not supported". |
5425 */ | |
5426 InventoryPickup pickup; | 5556 InventoryPickup pickup; |
5427 /** The price of the product. */ | 5557 |
| 5558 /// The price of the product. |
5428 Price price; | 5559 Price price; |
5429 /** | 5560 |
5430 * The quantity of the product. Must be equal to or greater than zero. | 5561 /// The quantity of the product. Must be equal to or greater than zero. |
5431 * Supported only for local products. | 5562 /// Supported only for local products. |
5432 */ | |
5433 core.int quantity; | 5563 core.int quantity; |
5434 /** | 5564 |
5435 * The sale price of the product. Mandatory if sale_price_effective_date is | 5565 /// The sale price of the product. Mandatory if sale_price_effective_date is |
5436 * defined. | 5566 /// defined. |
5437 */ | |
5438 Price salePrice; | 5567 Price salePrice; |
5439 /** | 5568 |
5440 * A date range represented by a pair of ISO 8601 dates separated by a space, | 5569 /// A date range represented by a pair of ISO 8601 dates separated by a |
5441 * comma, or slash. Both dates might be specified as 'null' if undecided. | 5570 /// space, comma, or slash. Both dates might be specified as 'null' if |
5442 */ | 5571 /// undecided. |
5443 core.String salePriceEffectiveDate; | 5572 core.String salePriceEffectiveDate; |
5444 /** | 5573 |
5445 * The quantity of the product that is reserved for sell-on-google ads. | 5574 /// The quantity of the product that is reserved for sell-on-google ads. |
5446 * Supported only for online products. | 5575 /// Supported only for online products. |
5447 */ | |
5448 core.int sellOnGoogleQuantity; | 5576 core.int sellOnGoogleQuantity; |
5449 | 5577 |
5450 Inventory(); | 5578 Inventory(); |
5451 | 5579 |
5452 Inventory.fromJson(core.Map _json) { | 5580 Inventory.fromJson(core.Map _json) { |
5453 if (_json.containsKey("availability")) { | 5581 if (_json.containsKey("availability")) { |
5454 availability = _json["availability"]; | 5582 availability = _json["availability"]; |
5455 } | 5583 } |
5456 if (_json.containsKey("installment")) { | 5584 if (_json.containsKey("installment")) { |
5457 installment = new Installment.fromJson(_json["installment"]); | 5585 installment = new Installment.fromJson(_json["installment"]); |
(...skipping 18 matching lines...) Expand all Loading... |
5476 } | 5604 } |
5477 if (_json.containsKey("salePriceEffectiveDate")) { | 5605 if (_json.containsKey("salePriceEffectiveDate")) { |
5478 salePriceEffectiveDate = _json["salePriceEffectiveDate"]; | 5606 salePriceEffectiveDate = _json["salePriceEffectiveDate"]; |
5479 } | 5607 } |
5480 if (_json.containsKey("sellOnGoogleQuantity")) { | 5608 if (_json.containsKey("sellOnGoogleQuantity")) { |
5481 sellOnGoogleQuantity = _json["sellOnGoogleQuantity"]; | 5609 sellOnGoogleQuantity = _json["sellOnGoogleQuantity"]; |
5482 } | 5610 } |
5483 } | 5611 } |
5484 | 5612 |
5485 core.Map<core.String, core.Object> toJson() { | 5613 core.Map<core.String, core.Object> toJson() { |
5486 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5614 final core.Map<core.String, core.Object> _json = |
| 5615 new core.Map<core.String, core.Object>(); |
5487 if (availability != null) { | 5616 if (availability != null) { |
5488 _json["availability"] = availability; | 5617 _json["availability"] = availability; |
5489 } | 5618 } |
5490 if (installment != null) { | 5619 if (installment != null) { |
5491 _json["installment"] = (installment).toJson(); | 5620 _json["installment"] = (installment).toJson(); |
5492 } | 5621 } |
5493 if (kind != null) { | 5622 if (kind != null) { |
5494 _json["kind"] = kind; | 5623 _json["kind"] = kind; |
5495 } | 5624 } |
5496 if (loyaltyPoints != null) { | 5625 if (loyaltyPoints != null) { |
(...skipping 15 matching lines...) Expand all Loading... |
5512 _json["salePriceEffectiveDate"] = salePriceEffectiveDate; | 5641 _json["salePriceEffectiveDate"] = salePriceEffectiveDate; |
5513 } | 5642 } |
5514 if (sellOnGoogleQuantity != null) { | 5643 if (sellOnGoogleQuantity != null) { |
5515 _json["sellOnGoogleQuantity"] = sellOnGoogleQuantity; | 5644 _json["sellOnGoogleQuantity"] = sellOnGoogleQuantity; |
5516 } | 5645 } |
5517 return _json; | 5646 return _json; |
5518 } | 5647 } |
5519 } | 5648 } |
5520 | 5649 |
5521 class InventoryCustomBatchRequest { | 5650 class InventoryCustomBatchRequest { |
5522 /** The request entries to be processed in the batch. */ | 5651 /// The request entries to be processed in the batch. |
5523 core.List<InventoryCustomBatchRequestEntry> entries; | 5652 core.List<InventoryCustomBatchRequestEntry> entries; |
5524 | 5653 |
5525 InventoryCustomBatchRequest(); | 5654 InventoryCustomBatchRequest(); |
5526 | 5655 |
5527 InventoryCustomBatchRequest.fromJson(core.Map _json) { | 5656 InventoryCustomBatchRequest.fromJson(core.Map _json) { |
5528 if (_json.containsKey("entries")) { | 5657 if (_json.containsKey("entries")) { |
5529 entries = _json["entries"].map((value) => new InventoryCustomBatchRequestE
ntry.fromJson(value)).toList(); | 5658 entries = _json["entries"] |
| 5659 .map((value) => new InventoryCustomBatchRequestEntry.fromJson(value)) |
| 5660 .toList(); |
5530 } | 5661 } |
5531 } | 5662 } |
5532 | 5663 |
5533 core.Map<core.String, core.Object> toJson() { | 5664 core.Map<core.String, core.Object> toJson() { |
5534 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5665 final core.Map<core.String, core.Object> _json = |
| 5666 new core.Map<core.String, core.Object>(); |
5535 if (entries != null) { | 5667 if (entries != null) { |
5536 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 5668 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
5537 } | 5669 } |
5538 return _json; | 5670 return _json; |
5539 } | 5671 } |
5540 } | 5672 } |
5541 | 5673 |
5542 /** A batch entry encoding a single non-batch inventory request. */ | 5674 /// A batch entry encoding a single non-batch inventory request. |
5543 class InventoryCustomBatchRequestEntry { | 5675 class InventoryCustomBatchRequestEntry { |
5544 /** An entry ID, unique within the batch request. */ | 5676 /// An entry ID, unique within the batch request. |
5545 core.int batchId; | 5677 core.int batchId; |
5546 /** Price and availability of the product. */ | 5678 |
| 5679 /// Price and availability of the product. |
5547 Inventory inventory; | 5680 Inventory inventory; |
5548 /** The ID of the managing account. */ | 5681 |
| 5682 /// The ID of the managing account. |
5549 core.String merchantId; | 5683 core.String merchantId; |
5550 /** The ID of the product for which to update price and availability. */ | 5684 |
| 5685 /// The ID of the product for which to update price and availability. |
5551 core.String productId; | 5686 core.String productId; |
5552 /** | 5687 |
5553 * The code of the store for which to update price and availability. Use | 5688 /// The code of the store for which to update price and availability. Use |
5554 * online to update price and availability of an online product. | 5689 /// online to update price and availability of an online product. |
5555 */ | |
5556 core.String storeCode; | 5690 core.String storeCode; |
5557 | 5691 |
5558 InventoryCustomBatchRequestEntry(); | 5692 InventoryCustomBatchRequestEntry(); |
5559 | 5693 |
5560 InventoryCustomBatchRequestEntry.fromJson(core.Map _json) { | 5694 InventoryCustomBatchRequestEntry.fromJson(core.Map _json) { |
5561 if (_json.containsKey("batchId")) { | 5695 if (_json.containsKey("batchId")) { |
5562 batchId = _json["batchId"]; | 5696 batchId = _json["batchId"]; |
5563 } | 5697 } |
5564 if (_json.containsKey("inventory")) { | 5698 if (_json.containsKey("inventory")) { |
5565 inventory = new Inventory.fromJson(_json["inventory"]); | 5699 inventory = new Inventory.fromJson(_json["inventory"]); |
5566 } | 5700 } |
5567 if (_json.containsKey("merchantId")) { | 5701 if (_json.containsKey("merchantId")) { |
5568 merchantId = _json["merchantId"]; | 5702 merchantId = _json["merchantId"]; |
5569 } | 5703 } |
5570 if (_json.containsKey("productId")) { | 5704 if (_json.containsKey("productId")) { |
5571 productId = _json["productId"]; | 5705 productId = _json["productId"]; |
5572 } | 5706 } |
5573 if (_json.containsKey("storeCode")) { | 5707 if (_json.containsKey("storeCode")) { |
5574 storeCode = _json["storeCode"]; | 5708 storeCode = _json["storeCode"]; |
5575 } | 5709 } |
5576 } | 5710 } |
5577 | 5711 |
5578 core.Map<core.String, core.Object> toJson() { | 5712 core.Map<core.String, core.Object> toJson() { |
5579 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5713 final core.Map<core.String, core.Object> _json = |
| 5714 new core.Map<core.String, core.Object>(); |
5580 if (batchId != null) { | 5715 if (batchId != null) { |
5581 _json["batchId"] = batchId; | 5716 _json["batchId"] = batchId; |
5582 } | 5717 } |
5583 if (inventory != null) { | 5718 if (inventory != null) { |
5584 _json["inventory"] = (inventory).toJson(); | 5719 _json["inventory"] = (inventory).toJson(); |
5585 } | 5720 } |
5586 if (merchantId != null) { | 5721 if (merchantId != null) { |
5587 _json["merchantId"] = merchantId; | 5722 _json["merchantId"] = merchantId; |
5588 } | 5723 } |
5589 if (productId != null) { | 5724 if (productId != null) { |
5590 _json["productId"] = productId; | 5725 _json["productId"] = productId; |
5591 } | 5726 } |
5592 if (storeCode != null) { | 5727 if (storeCode != null) { |
5593 _json["storeCode"] = storeCode; | 5728 _json["storeCode"] = storeCode; |
5594 } | 5729 } |
5595 return _json; | 5730 return _json; |
5596 } | 5731 } |
5597 } | 5732 } |
5598 | 5733 |
5599 class InventoryCustomBatchResponse { | 5734 class InventoryCustomBatchResponse { |
5600 /** The result of the execution of the batch requests. */ | 5735 /// The result of the execution of the batch requests. |
5601 core.List<InventoryCustomBatchResponseEntry> entries; | 5736 core.List<InventoryCustomBatchResponseEntry> entries; |
5602 /** | 5737 |
5603 * Identifies what kind of resource this is. Value: the fixed string | 5738 /// Identifies what kind of resource this is. Value: the fixed string |
5604 * "content#inventoryCustomBatchResponse". | 5739 /// "content#inventoryCustomBatchResponse". |
5605 */ | |
5606 core.String kind; | 5740 core.String kind; |
5607 | 5741 |
5608 InventoryCustomBatchResponse(); | 5742 InventoryCustomBatchResponse(); |
5609 | 5743 |
5610 InventoryCustomBatchResponse.fromJson(core.Map _json) { | 5744 InventoryCustomBatchResponse.fromJson(core.Map _json) { |
5611 if (_json.containsKey("entries")) { | 5745 if (_json.containsKey("entries")) { |
5612 entries = _json["entries"].map((value) => new InventoryCustomBatchResponse
Entry.fromJson(value)).toList(); | 5746 entries = _json["entries"] |
| 5747 .map((value) => new InventoryCustomBatchResponseEntry.fromJson(value)) |
| 5748 .toList(); |
5613 } | 5749 } |
5614 if (_json.containsKey("kind")) { | 5750 if (_json.containsKey("kind")) { |
5615 kind = _json["kind"]; | 5751 kind = _json["kind"]; |
5616 } | 5752 } |
5617 } | 5753 } |
5618 | 5754 |
5619 core.Map<core.String, core.Object> toJson() { | 5755 core.Map<core.String, core.Object> toJson() { |
5620 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5756 final core.Map<core.String, core.Object> _json = |
| 5757 new core.Map<core.String, core.Object>(); |
5621 if (entries != null) { | 5758 if (entries != null) { |
5622 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 5759 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
5623 } | 5760 } |
5624 if (kind != null) { | 5761 if (kind != null) { |
5625 _json["kind"] = kind; | 5762 _json["kind"] = kind; |
5626 } | 5763 } |
5627 return _json; | 5764 return _json; |
5628 } | 5765 } |
5629 } | 5766 } |
5630 | 5767 |
5631 /** A batch entry encoding a single non-batch inventory response. */ | 5768 /// A batch entry encoding a single non-batch inventory response. |
5632 class InventoryCustomBatchResponseEntry { | 5769 class InventoryCustomBatchResponseEntry { |
5633 /** The ID of the request entry this entry responds to. */ | 5770 /// The ID of the request entry this entry responds to. |
5634 core.int batchId; | 5771 core.int batchId; |
5635 /** A list of errors defined if and only if the request failed. */ | 5772 |
| 5773 /// A list of errors defined if and only if the request failed. |
5636 Errors errors; | 5774 Errors errors; |
5637 /** | 5775 |
5638 * Identifies what kind of resource this is. Value: the fixed string | 5776 /// Identifies what kind of resource this is. Value: the fixed string |
5639 * "content#inventoryCustomBatchResponseEntry". | 5777 /// "content#inventoryCustomBatchResponseEntry". |
5640 */ | |
5641 core.String kind; | 5778 core.String kind; |
5642 | 5779 |
5643 InventoryCustomBatchResponseEntry(); | 5780 InventoryCustomBatchResponseEntry(); |
5644 | 5781 |
5645 InventoryCustomBatchResponseEntry.fromJson(core.Map _json) { | 5782 InventoryCustomBatchResponseEntry.fromJson(core.Map _json) { |
5646 if (_json.containsKey("batchId")) { | 5783 if (_json.containsKey("batchId")) { |
5647 batchId = _json["batchId"]; | 5784 batchId = _json["batchId"]; |
5648 } | 5785 } |
5649 if (_json.containsKey("errors")) { | 5786 if (_json.containsKey("errors")) { |
5650 errors = new Errors.fromJson(_json["errors"]); | 5787 errors = new Errors.fromJson(_json["errors"]); |
5651 } | 5788 } |
5652 if (_json.containsKey("kind")) { | 5789 if (_json.containsKey("kind")) { |
5653 kind = _json["kind"]; | 5790 kind = _json["kind"]; |
5654 } | 5791 } |
5655 } | 5792 } |
5656 | 5793 |
5657 core.Map<core.String, core.Object> toJson() { | 5794 core.Map<core.String, core.Object> toJson() { |
5658 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5795 final core.Map<core.String, core.Object> _json = |
| 5796 new core.Map<core.String, core.Object>(); |
5659 if (batchId != null) { | 5797 if (batchId != null) { |
5660 _json["batchId"] = batchId; | 5798 _json["batchId"] = batchId; |
5661 } | 5799 } |
5662 if (errors != null) { | 5800 if (errors != null) { |
5663 _json["errors"] = (errors).toJson(); | 5801 _json["errors"] = (errors).toJson(); |
5664 } | 5802 } |
5665 if (kind != null) { | 5803 if (kind != null) { |
5666 _json["kind"] = kind; | 5804 _json["kind"] = kind; |
5667 } | 5805 } |
5668 return _json; | 5806 return _json; |
5669 } | 5807 } |
5670 } | 5808 } |
5671 | 5809 |
5672 class InventoryPickup { | 5810 class InventoryPickup { |
5673 /** | 5811 /// Whether store pickup is available for this offer and whether the pickup |
5674 * Whether store pickup is available for this offer and whether the pickup | 5812 /// option should be shown as buy, reserve, or not supported. Only supported |
5675 * option should be shown as buy, reserve, or not supported. Only supported | 5813 /// for local inventory. Unless the value is "not supported", must be |
5676 * for local inventory. Unless the value is "not supported", must be submitted | 5814 /// submitted together with pickupSla. |
5677 * together with pickupSla. | |
5678 */ | |
5679 core.String pickupMethod; | 5815 core.String pickupMethod; |
5680 /** | 5816 |
5681 * The expected date that an order will be ready for pickup, relative to when | 5817 /// The expected date that an order will be ready for pickup, relative to |
5682 * the order is placed. Only supported for local inventory. Must be submitted | 5818 /// when the order is placed. Only supported for local inventory. Must be |
5683 * together with pickupMethod. | 5819 /// submitted together with pickupMethod. |
5684 */ | |
5685 core.String pickupSla; | 5820 core.String pickupSla; |
5686 | 5821 |
5687 InventoryPickup(); | 5822 InventoryPickup(); |
5688 | 5823 |
5689 InventoryPickup.fromJson(core.Map _json) { | 5824 InventoryPickup.fromJson(core.Map _json) { |
5690 if (_json.containsKey("pickupMethod")) { | 5825 if (_json.containsKey("pickupMethod")) { |
5691 pickupMethod = _json["pickupMethod"]; | 5826 pickupMethod = _json["pickupMethod"]; |
5692 } | 5827 } |
5693 if (_json.containsKey("pickupSla")) { | 5828 if (_json.containsKey("pickupSla")) { |
5694 pickupSla = _json["pickupSla"]; | 5829 pickupSla = _json["pickupSla"]; |
5695 } | 5830 } |
5696 } | 5831 } |
5697 | 5832 |
5698 core.Map<core.String, core.Object> toJson() { | 5833 core.Map<core.String, core.Object> toJson() { |
5699 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5834 final core.Map<core.String, core.Object> _json = |
| 5835 new core.Map<core.String, core.Object>(); |
5700 if (pickupMethod != null) { | 5836 if (pickupMethod != null) { |
5701 _json["pickupMethod"] = pickupMethod; | 5837 _json["pickupMethod"] = pickupMethod; |
5702 } | 5838 } |
5703 if (pickupSla != null) { | 5839 if (pickupSla != null) { |
5704 _json["pickupSla"] = pickupSla; | 5840 _json["pickupSla"] = pickupSla; |
5705 } | 5841 } |
5706 return _json; | 5842 return _json; |
5707 } | 5843 } |
5708 } | 5844 } |
5709 | 5845 |
5710 class InventorySetRequest { | 5846 class InventorySetRequest { |
5711 /** The availability of the product. */ | 5847 /// The availability of the product. |
5712 core.String availability; | 5848 core.String availability; |
5713 /** Number and amount of installments to pay for an item. Brazil only. */ | 5849 |
| 5850 /// Number and amount of installments to pay for an item. Brazil only. |
5714 Installment installment; | 5851 Installment installment; |
5715 /** | 5852 |
5716 * Loyalty points that users receive after purchasing the item. Japan only. | 5853 /// Loyalty points that users receive after purchasing the item. Japan only. |
5717 */ | |
5718 LoyaltyPoints loyaltyPoints; | 5854 LoyaltyPoints loyaltyPoints; |
5719 /** | 5855 |
5720 * Store pickup information. Only supported for local inventory. Not setting | 5856 /// Store pickup information. Only supported for local inventory. Not setting |
5721 * pickup means "don't update" while setting it to the empty value ({} in | 5857 /// pickup means "don't update" while setting it to the empty value ({} in |
5722 * JSON) means "delete". Otherwise, pickupMethod and pickupSla must be set | 5858 /// JSON) means "delete". Otherwise, pickupMethod and pickupSla must be set |
5723 * together, unless pickupMethod is "not supported". | 5859 /// together, unless pickupMethod is "not supported". |
5724 */ | |
5725 InventoryPickup pickup; | 5860 InventoryPickup pickup; |
5726 /** The price of the product. */ | 5861 |
| 5862 /// The price of the product. |
5727 Price price; | 5863 Price price; |
5728 /** | 5864 |
5729 * The quantity of the product. Must be equal to or greater than zero. | 5865 /// The quantity of the product. Must be equal to or greater than zero. |
5730 * Supported only for local products. | 5866 /// Supported only for local products. |
5731 */ | |
5732 core.int quantity; | 5867 core.int quantity; |
5733 /** | 5868 |
5734 * The sale price of the product. Mandatory if sale_price_effective_date is | 5869 /// The sale price of the product. Mandatory if sale_price_effective_date is |
5735 * defined. | 5870 /// defined. |
5736 */ | |
5737 Price salePrice; | 5871 Price salePrice; |
5738 /** | 5872 |
5739 * A date range represented by a pair of ISO 8601 dates separated by a space, | 5873 /// A date range represented by a pair of ISO 8601 dates separated by a |
5740 * comma, or slash. Both dates might be specified as 'null' if undecided. | 5874 /// space, comma, or slash. Both dates might be specified as 'null' if |
5741 */ | 5875 /// undecided. |
5742 core.String salePriceEffectiveDate; | 5876 core.String salePriceEffectiveDate; |
5743 /** | 5877 |
5744 * The quantity of the product that is reserved for sell-on-google ads. | 5878 /// The quantity of the product that is reserved for sell-on-google ads. |
5745 * Supported only for online products. | 5879 /// Supported only for online products. |
5746 */ | |
5747 core.int sellOnGoogleQuantity; | 5880 core.int sellOnGoogleQuantity; |
5748 | 5881 |
5749 InventorySetRequest(); | 5882 InventorySetRequest(); |
5750 | 5883 |
5751 InventorySetRequest.fromJson(core.Map _json) { | 5884 InventorySetRequest.fromJson(core.Map _json) { |
5752 if (_json.containsKey("availability")) { | 5885 if (_json.containsKey("availability")) { |
5753 availability = _json["availability"]; | 5886 availability = _json["availability"]; |
5754 } | 5887 } |
5755 if (_json.containsKey("installment")) { | 5888 if (_json.containsKey("installment")) { |
5756 installment = new Installment.fromJson(_json["installment"]); | 5889 installment = new Installment.fromJson(_json["installment"]); |
(...skipping 15 matching lines...) Expand all Loading... |
5772 } | 5905 } |
5773 if (_json.containsKey("salePriceEffectiveDate")) { | 5906 if (_json.containsKey("salePriceEffectiveDate")) { |
5774 salePriceEffectiveDate = _json["salePriceEffectiveDate"]; | 5907 salePriceEffectiveDate = _json["salePriceEffectiveDate"]; |
5775 } | 5908 } |
5776 if (_json.containsKey("sellOnGoogleQuantity")) { | 5909 if (_json.containsKey("sellOnGoogleQuantity")) { |
5777 sellOnGoogleQuantity = _json["sellOnGoogleQuantity"]; | 5910 sellOnGoogleQuantity = _json["sellOnGoogleQuantity"]; |
5778 } | 5911 } |
5779 } | 5912 } |
5780 | 5913 |
5781 core.Map<core.String, core.Object> toJson() { | 5914 core.Map<core.String, core.Object> toJson() { |
5782 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5915 final core.Map<core.String, core.Object> _json = |
| 5916 new core.Map<core.String, core.Object>(); |
5783 if (availability != null) { | 5917 if (availability != null) { |
5784 _json["availability"] = availability; | 5918 _json["availability"] = availability; |
5785 } | 5919 } |
5786 if (installment != null) { | 5920 if (installment != null) { |
5787 _json["installment"] = (installment).toJson(); | 5921 _json["installment"] = (installment).toJson(); |
5788 } | 5922 } |
5789 if (loyaltyPoints != null) { | 5923 if (loyaltyPoints != null) { |
5790 _json["loyaltyPoints"] = (loyaltyPoints).toJson(); | 5924 _json["loyaltyPoints"] = (loyaltyPoints).toJson(); |
5791 } | 5925 } |
5792 if (pickup != null) { | 5926 if (pickup != null) { |
(...skipping 12 matching lines...) Expand all Loading... |
5805 _json["salePriceEffectiveDate"] = salePriceEffectiveDate; | 5939 _json["salePriceEffectiveDate"] = salePriceEffectiveDate; |
5806 } | 5940 } |
5807 if (sellOnGoogleQuantity != null) { | 5941 if (sellOnGoogleQuantity != null) { |
5808 _json["sellOnGoogleQuantity"] = sellOnGoogleQuantity; | 5942 _json["sellOnGoogleQuantity"] = sellOnGoogleQuantity; |
5809 } | 5943 } |
5810 return _json; | 5944 return _json; |
5811 } | 5945 } |
5812 } | 5946 } |
5813 | 5947 |
5814 class InventorySetResponse { | 5948 class InventorySetResponse { |
5815 /** | 5949 /// Identifies what kind of resource this is. Value: the fixed string |
5816 * Identifies what kind of resource this is. Value: the fixed string | 5950 /// "content#inventorySetResponse". |
5817 * "content#inventorySetResponse". | |
5818 */ | |
5819 core.String kind; | 5951 core.String kind; |
5820 | 5952 |
5821 InventorySetResponse(); | 5953 InventorySetResponse(); |
5822 | 5954 |
5823 InventorySetResponse.fromJson(core.Map _json) { | 5955 InventorySetResponse.fromJson(core.Map _json) { |
5824 if (_json.containsKey("kind")) { | 5956 if (_json.containsKey("kind")) { |
5825 kind = _json["kind"]; | 5957 kind = _json["kind"]; |
5826 } | 5958 } |
5827 } | 5959 } |
5828 | 5960 |
5829 core.Map<core.String, core.Object> toJson() { | 5961 core.Map<core.String, core.Object> toJson() { |
5830 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5962 final core.Map<core.String, core.Object> _json = |
| 5963 new core.Map<core.String, core.Object>(); |
5831 if (kind != null) { | 5964 if (kind != null) { |
5832 _json["kind"] = kind; | 5965 _json["kind"] = kind; |
5833 } | 5966 } |
5834 return _json; | 5967 return _json; |
5835 } | 5968 } |
5836 } | 5969 } |
5837 | 5970 |
5838 class LocationIdSet { | 5971 class LocationIdSet { |
5839 /** | 5972 /// A non-empty list of location IDs. They must all be of the same location |
5840 * A non-empty list of location IDs. They must all be of the same location | 5973 /// type (e.g., state). |
5841 * type (e.g., state). | |
5842 */ | |
5843 core.List<core.String> locationIds; | 5974 core.List<core.String> locationIds; |
5844 | 5975 |
5845 LocationIdSet(); | 5976 LocationIdSet(); |
5846 | 5977 |
5847 LocationIdSet.fromJson(core.Map _json) { | 5978 LocationIdSet.fromJson(core.Map _json) { |
5848 if (_json.containsKey("locationIds")) { | 5979 if (_json.containsKey("locationIds")) { |
5849 locationIds = _json["locationIds"]; | 5980 locationIds = _json["locationIds"]; |
5850 } | 5981 } |
5851 } | 5982 } |
5852 | 5983 |
5853 core.Map<core.String, core.Object> toJson() { | 5984 core.Map<core.String, core.Object> toJson() { |
5854 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5985 final core.Map<core.String, core.Object> _json = |
| 5986 new core.Map<core.String, core.Object>(); |
5855 if (locationIds != null) { | 5987 if (locationIds != null) { |
5856 _json["locationIds"] = locationIds; | 5988 _json["locationIds"] = locationIds; |
5857 } | 5989 } |
5858 return _json; | 5990 return _json; |
5859 } | 5991 } |
5860 } | 5992 } |
5861 | 5993 |
5862 class LoyaltyPoints { | 5994 class LoyaltyPoints { |
5863 /** | 5995 /// Name of loyalty points program. It is recommended to limit the name to 12 |
5864 * Name of loyalty points program. It is recommended to limit the name to 12 | 5996 /// full-width characters or 24 Roman characters. |
5865 * full-width characters or 24 Roman characters. | |
5866 */ | |
5867 core.String name; | 5997 core.String name; |
5868 /** The retailer's loyalty points in absolute value. */ | 5998 |
| 5999 /// The retailer's loyalty points in absolute value. |
5869 core.String pointsValue; | 6000 core.String pointsValue; |
5870 /** | 6001 |
5871 * The ratio of a point when converted to currency. Google assumes currency | 6002 /// The ratio of a point when converted to currency. Google assumes currency |
5872 * based on Merchant Center settings. If ratio is left out, it defaults to | 6003 /// based on Merchant Center settings. If ratio is left out, it defaults to |
5873 * 1.0. | 6004 /// 1.0. |
5874 */ | |
5875 core.double ratio; | 6005 core.double ratio; |
5876 | 6006 |
5877 LoyaltyPoints(); | 6007 LoyaltyPoints(); |
5878 | 6008 |
5879 LoyaltyPoints.fromJson(core.Map _json) { | 6009 LoyaltyPoints.fromJson(core.Map _json) { |
5880 if (_json.containsKey("name")) { | 6010 if (_json.containsKey("name")) { |
5881 name = _json["name"]; | 6011 name = _json["name"]; |
5882 } | 6012 } |
5883 if (_json.containsKey("pointsValue")) { | 6013 if (_json.containsKey("pointsValue")) { |
5884 pointsValue = _json["pointsValue"]; | 6014 pointsValue = _json["pointsValue"]; |
5885 } | 6015 } |
5886 if (_json.containsKey("ratio")) { | 6016 if (_json.containsKey("ratio")) { |
5887 ratio = _json["ratio"]; | 6017 ratio = _json["ratio"]; |
5888 } | 6018 } |
5889 } | 6019 } |
5890 | 6020 |
5891 core.Map<core.String, core.Object> toJson() { | 6021 core.Map<core.String, core.Object> toJson() { |
5892 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6022 final core.Map<core.String, core.Object> _json = |
| 6023 new core.Map<core.String, core.Object>(); |
5893 if (name != null) { | 6024 if (name != null) { |
5894 _json["name"] = name; | 6025 _json["name"] = name; |
5895 } | 6026 } |
5896 if (pointsValue != null) { | 6027 if (pointsValue != null) { |
5897 _json["pointsValue"] = pointsValue; | 6028 _json["pointsValue"] = pointsValue; |
5898 } | 6029 } |
5899 if (ratio != null) { | 6030 if (ratio != null) { |
5900 _json["ratio"] = ratio; | 6031 _json["ratio"] = ratio; |
5901 } | 6032 } |
5902 return _json; | 6033 return _json; |
5903 } | 6034 } |
5904 } | 6035 } |
5905 | 6036 |
5906 class Order { | 6037 class Order { |
5907 /** Whether the order was acknowledged. */ | 6038 /// Whether the order was acknowledged. |
5908 core.bool acknowledged; | 6039 core.bool acknowledged; |
5909 /** The channel type of the order: "purchaseOnGoogle" or "googleExpress". */ | 6040 |
| 6041 /// The channel type of the order: "purchaseOnGoogle" or "googleExpress". |
5910 core.String channelType; | 6042 core.String channelType; |
5911 /** The details of the customer who placed the order. */ | 6043 |
| 6044 /// The details of the customer who placed the order. |
5912 OrderCustomer customer; | 6045 OrderCustomer customer; |
5913 /** The details for the delivery. */ | 6046 |
| 6047 /// The details for the delivery. |
5914 OrderDeliveryDetails deliveryDetails; | 6048 OrderDeliveryDetails deliveryDetails; |
5915 /** The REST id of the order. Globally unique. */ | 6049 |
| 6050 /// The REST id of the order. Globally unique. |
5916 core.String id; | 6051 core.String id; |
5917 /** | 6052 |
5918 * Identifies what kind of resource this is. Value: the fixed string | 6053 /// Identifies what kind of resource this is. Value: the fixed string |
5919 * "content#order". | 6054 /// "content#order". |
5920 */ | |
5921 core.String kind; | 6055 core.String kind; |
5922 /** Line items that are ordered. */ | 6056 |
| 6057 /// Line items that are ordered. |
5923 core.List<OrderLineItem> lineItems; | 6058 core.List<OrderLineItem> lineItems; |
5924 core.String merchantId; | 6059 core.String merchantId; |
5925 /** Merchant-provided id of the order. */ | 6060 |
| 6061 /// Merchant-provided id of the order. |
5926 core.String merchantOrderId; | 6062 core.String merchantOrderId; |
5927 /** | 6063 |
5928 * The net amount for the order. For example, if an order was originally for a | 6064 /// The net amount for the order. For example, if an order was originally for |
5929 * grand total of $100 and a refund was issued for $20, the net amount will be | 6065 /// a grand total of $100 and a refund was issued for $20, the net amount |
5930 * $80. | 6066 /// will be $80. |
5931 */ | |
5932 Price netAmount; | 6067 Price netAmount; |
5933 /** The details of the payment method. */ | 6068 |
| 6069 /// The details of the payment method. |
5934 OrderPaymentMethod paymentMethod; | 6070 OrderPaymentMethod paymentMethod; |
5935 /** The status of the payment. */ | 6071 |
| 6072 /// The status of the payment. |
5936 core.String paymentStatus; | 6073 core.String paymentStatus; |
5937 /** The date when the order was placed, in ISO 8601 format. */ | 6074 |
| 6075 /// The date when the order was placed, in ISO 8601 format. |
5938 core.String placedDate; | 6076 core.String placedDate; |
5939 /** | 6077 |
5940 * The details of the merchant provided promotions applied to the order. More | 6078 /// The details of the merchant provided promotions applied to the order. |
5941 * details about the program are here. | 6079 /// More details about the program are here. |
5942 */ | |
5943 core.List<OrderPromotion> promotions; | 6080 core.List<OrderPromotion> promotions; |
5944 /** Refunds for the order. */ | 6081 |
| 6082 /// Refunds for the order. |
5945 core.List<OrderRefund> refunds; | 6083 core.List<OrderRefund> refunds; |
5946 /** Shipments of the order. */ | 6084 |
| 6085 /// Shipments of the order. |
5947 core.List<OrderShipment> shipments; | 6086 core.List<OrderShipment> shipments; |
5948 /** The total cost of shipping for all items. */ | 6087 |
| 6088 /// The total cost of shipping for all items. |
5949 Price shippingCost; | 6089 Price shippingCost; |
5950 /** The tax for the total shipping cost. */ | 6090 |
| 6091 /// The tax for the total shipping cost. |
5951 Price shippingCostTax; | 6092 Price shippingCostTax; |
5952 /** The requested shipping option. */ | 6093 |
| 6094 /// The requested shipping option. |
5953 core.String shippingOption; | 6095 core.String shippingOption; |
5954 /** The status of the order. */ | 6096 |
| 6097 /// The status of the order. |
5955 core.String status; | 6098 core.String status; |
5956 | 6099 |
5957 Order(); | 6100 Order(); |
5958 | 6101 |
5959 Order.fromJson(core.Map _json) { | 6102 Order.fromJson(core.Map _json) { |
5960 if (_json.containsKey("acknowledged")) { | 6103 if (_json.containsKey("acknowledged")) { |
5961 acknowledged = _json["acknowledged"]; | 6104 acknowledged = _json["acknowledged"]; |
5962 } | 6105 } |
5963 if (_json.containsKey("channelType")) { | 6106 if (_json.containsKey("channelType")) { |
5964 channelType = _json["channelType"]; | 6107 channelType = _json["channelType"]; |
5965 } | 6108 } |
5966 if (_json.containsKey("customer")) { | 6109 if (_json.containsKey("customer")) { |
5967 customer = new OrderCustomer.fromJson(_json["customer"]); | 6110 customer = new OrderCustomer.fromJson(_json["customer"]); |
5968 } | 6111 } |
5969 if (_json.containsKey("deliveryDetails")) { | 6112 if (_json.containsKey("deliveryDetails")) { |
5970 deliveryDetails = new OrderDeliveryDetails.fromJson(_json["deliveryDetails
"]); | 6113 deliveryDetails = |
| 6114 new OrderDeliveryDetails.fromJson(_json["deliveryDetails"]); |
5971 } | 6115 } |
5972 if (_json.containsKey("id")) { | 6116 if (_json.containsKey("id")) { |
5973 id = _json["id"]; | 6117 id = _json["id"]; |
5974 } | 6118 } |
5975 if (_json.containsKey("kind")) { | 6119 if (_json.containsKey("kind")) { |
5976 kind = _json["kind"]; | 6120 kind = _json["kind"]; |
5977 } | 6121 } |
5978 if (_json.containsKey("lineItems")) { | 6122 if (_json.containsKey("lineItems")) { |
5979 lineItems = _json["lineItems"].map((value) => new OrderLineItem.fromJson(v
alue)).toList(); | 6123 lineItems = _json["lineItems"] |
| 6124 .map((value) => new OrderLineItem.fromJson(value)) |
| 6125 .toList(); |
5980 } | 6126 } |
5981 if (_json.containsKey("merchantId")) { | 6127 if (_json.containsKey("merchantId")) { |
5982 merchantId = _json["merchantId"]; | 6128 merchantId = _json["merchantId"]; |
5983 } | 6129 } |
5984 if (_json.containsKey("merchantOrderId")) { | 6130 if (_json.containsKey("merchantOrderId")) { |
5985 merchantOrderId = _json["merchantOrderId"]; | 6131 merchantOrderId = _json["merchantOrderId"]; |
5986 } | 6132 } |
5987 if (_json.containsKey("netAmount")) { | 6133 if (_json.containsKey("netAmount")) { |
5988 netAmount = new Price.fromJson(_json["netAmount"]); | 6134 netAmount = new Price.fromJson(_json["netAmount"]); |
5989 } | 6135 } |
5990 if (_json.containsKey("paymentMethod")) { | 6136 if (_json.containsKey("paymentMethod")) { |
5991 paymentMethod = new OrderPaymentMethod.fromJson(_json["paymentMethod"]); | 6137 paymentMethod = new OrderPaymentMethod.fromJson(_json["paymentMethod"]); |
5992 } | 6138 } |
5993 if (_json.containsKey("paymentStatus")) { | 6139 if (_json.containsKey("paymentStatus")) { |
5994 paymentStatus = _json["paymentStatus"]; | 6140 paymentStatus = _json["paymentStatus"]; |
5995 } | 6141 } |
5996 if (_json.containsKey("placedDate")) { | 6142 if (_json.containsKey("placedDate")) { |
5997 placedDate = _json["placedDate"]; | 6143 placedDate = _json["placedDate"]; |
5998 } | 6144 } |
5999 if (_json.containsKey("promotions")) { | 6145 if (_json.containsKey("promotions")) { |
6000 promotions = _json["promotions"].map((value) => new OrderPromotion.fromJso
n(value)).toList(); | 6146 promotions = _json["promotions"] |
| 6147 .map((value) => new OrderPromotion.fromJson(value)) |
| 6148 .toList(); |
6001 } | 6149 } |
6002 if (_json.containsKey("refunds")) { | 6150 if (_json.containsKey("refunds")) { |
6003 refunds = _json["refunds"].map((value) => new OrderRefund.fromJson(value))
.toList(); | 6151 refunds = _json["refunds"] |
| 6152 .map((value) => new OrderRefund.fromJson(value)) |
| 6153 .toList(); |
6004 } | 6154 } |
6005 if (_json.containsKey("shipments")) { | 6155 if (_json.containsKey("shipments")) { |
6006 shipments = _json["shipments"].map((value) => new OrderShipment.fromJson(v
alue)).toList(); | 6156 shipments = _json["shipments"] |
| 6157 .map((value) => new OrderShipment.fromJson(value)) |
| 6158 .toList(); |
6007 } | 6159 } |
6008 if (_json.containsKey("shippingCost")) { | 6160 if (_json.containsKey("shippingCost")) { |
6009 shippingCost = new Price.fromJson(_json["shippingCost"]); | 6161 shippingCost = new Price.fromJson(_json["shippingCost"]); |
6010 } | 6162 } |
6011 if (_json.containsKey("shippingCostTax")) { | 6163 if (_json.containsKey("shippingCostTax")) { |
6012 shippingCostTax = new Price.fromJson(_json["shippingCostTax"]); | 6164 shippingCostTax = new Price.fromJson(_json["shippingCostTax"]); |
6013 } | 6165 } |
6014 if (_json.containsKey("shippingOption")) { | 6166 if (_json.containsKey("shippingOption")) { |
6015 shippingOption = _json["shippingOption"]; | 6167 shippingOption = _json["shippingOption"]; |
6016 } | 6168 } |
6017 if (_json.containsKey("status")) { | 6169 if (_json.containsKey("status")) { |
6018 status = _json["status"]; | 6170 status = _json["status"]; |
6019 } | 6171 } |
6020 } | 6172 } |
6021 | 6173 |
6022 core.Map<core.String, core.Object> toJson() { | 6174 core.Map<core.String, core.Object> toJson() { |
6023 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6175 final core.Map<core.String, core.Object> _json = |
| 6176 new core.Map<core.String, core.Object>(); |
6024 if (acknowledged != null) { | 6177 if (acknowledged != null) { |
6025 _json["acknowledged"] = acknowledged; | 6178 _json["acknowledged"] = acknowledged; |
6026 } | 6179 } |
6027 if (channelType != null) { | 6180 if (channelType != null) { |
6028 _json["channelType"] = channelType; | 6181 _json["channelType"] = channelType; |
6029 } | 6182 } |
6030 if (customer != null) { | 6183 if (customer != null) { |
6031 _json["customer"] = (customer).toJson(); | 6184 _json["customer"] = (customer).toJson(); |
6032 } | 6185 } |
6033 if (deliveryDetails != null) { | 6186 if (deliveryDetails != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
6054 if (paymentMethod != null) { | 6207 if (paymentMethod != null) { |
6055 _json["paymentMethod"] = (paymentMethod).toJson(); | 6208 _json["paymentMethod"] = (paymentMethod).toJson(); |
6056 } | 6209 } |
6057 if (paymentStatus != null) { | 6210 if (paymentStatus != null) { |
6058 _json["paymentStatus"] = paymentStatus; | 6211 _json["paymentStatus"] = paymentStatus; |
6059 } | 6212 } |
6060 if (placedDate != null) { | 6213 if (placedDate != null) { |
6061 _json["placedDate"] = placedDate; | 6214 _json["placedDate"] = placedDate; |
6062 } | 6215 } |
6063 if (promotions != null) { | 6216 if (promotions != null) { |
6064 _json["promotions"] = promotions.map((value) => (value).toJson()).toList()
; | 6217 _json["promotions"] = |
| 6218 promotions.map((value) => (value).toJson()).toList(); |
6065 } | 6219 } |
6066 if (refunds != null) { | 6220 if (refunds != null) { |
6067 _json["refunds"] = refunds.map((value) => (value).toJson()).toList(); | 6221 _json["refunds"] = refunds.map((value) => (value).toJson()).toList(); |
6068 } | 6222 } |
6069 if (shipments != null) { | 6223 if (shipments != null) { |
6070 _json["shipments"] = shipments.map((value) => (value).toJson()).toList(); | 6224 _json["shipments"] = shipments.map((value) => (value).toJson()).toList(); |
6071 } | 6225 } |
6072 if (shippingCost != null) { | 6226 if (shippingCost != null) { |
6073 _json["shippingCost"] = (shippingCost).toJson(); | 6227 _json["shippingCost"] = (shippingCost).toJson(); |
6074 } | 6228 } |
6075 if (shippingCostTax != null) { | 6229 if (shippingCostTax != null) { |
6076 _json["shippingCostTax"] = (shippingCostTax).toJson(); | 6230 _json["shippingCostTax"] = (shippingCostTax).toJson(); |
6077 } | 6231 } |
6078 if (shippingOption != null) { | 6232 if (shippingOption != null) { |
6079 _json["shippingOption"] = shippingOption; | 6233 _json["shippingOption"] = shippingOption; |
6080 } | 6234 } |
6081 if (status != null) { | 6235 if (status != null) { |
6082 _json["status"] = status; | 6236 _json["status"] = status; |
6083 } | 6237 } |
6084 return _json; | 6238 return _json; |
6085 } | 6239 } |
6086 } | 6240 } |
6087 | 6241 |
6088 class OrderAddress { | 6242 class OrderAddress { |
6089 /** CLDR country code (e.g. "US"). */ | 6243 /// CLDR country code (e.g. "US"). |
6090 core.String country; | 6244 core.String country; |
6091 /** | 6245 |
6092 * Strings representing the lines of the printed label for mailing the order, | 6246 /// Strings representing the lines of the printed label for mailing the |
6093 * for example: | 6247 /// order, for example: |
6094 * John Smith | 6248 /// John Smith |
6095 * 1600 Amphitheatre Parkway | 6249 /// 1600 Amphitheatre Parkway |
6096 * Mountain View, CA, 94043 | 6250 /// Mountain View, CA, 94043 |
6097 * United States | 6251 /// United States |
6098 */ | |
6099 core.List<core.String> fullAddress; | 6252 core.List<core.String> fullAddress; |
6100 /** Whether the address is a post office box. */ | 6253 |
| 6254 /// Whether the address is a post office box. |
6101 core.bool isPostOfficeBox; | 6255 core.bool isPostOfficeBox; |
6102 /** | 6256 |
6103 * City, town or commune. May also include dependent localities or | 6257 /// City, town or commune. May also include dependent localities or |
6104 * sublocalities (e.g. neighborhoods or suburbs). | 6258 /// sublocalities (e.g. neighborhoods or suburbs). |
6105 */ | |
6106 core.String locality; | 6259 core.String locality; |
6107 /** Postal Code or ZIP (e.g. "94043"). */ | 6260 |
| 6261 /// Postal Code or ZIP (e.g. "94043"). |
6108 core.String postalCode; | 6262 core.String postalCode; |
6109 /** Name of the recipient. */ | 6263 |
| 6264 /// Name of the recipient. |
6110 core.String recipientName; | 6265 core.String recipientName; |
6111 /** Top-level administrative subdivision of the country (e.g. "CA"). */ | 6266 |
| 6267 /// Top-level administrative subdivision of the country (e.g. "CA"). |
6112 core.String region; | 6268 core.String region; |
6113 /** Street-level part of the address. */ | 6269 |
| 6270 /// Street-level part of the address. |
6114 core.List<core.String> streetAddress; | 6271 core.List<core.String> streetAddress; |
6115 | 6272 |
6116 OrderAddress(); | 6273 OrderAddress(); |
6117 | 6274 |
6118 OrderAddress.fromJson(core.Map _json) { | 6275 OrderAddress.fromJson(core.Map _json) { |
6119 if (_json.containsKey("country")) { | 6276 if (_json.containsKey("country")) { |
6120 country = _json["country"]; | 6277 country = _json["country"]; |
6121 } | 6278 } |
6122 if (_json.containsKey("fullAddress")) { | 6279 if (_json.containsKey("fullAddress")) { |
6123 fullAddress = _json["fullAddress"]; | 6280 fullAddress = _json["fullAddress"]; |
(...skipping 12 matching lines...) Expand all Loading... |
6136 } | 6293 } |
6137 if (_json.containsKey("region")) { | 6294 if (_json.containsKey("region")) { |
6138 region = _json["region"]; | 6295 region = _json["region"]; |
6139 } | 6296 } |
6140 if (_json.containsKey("streetAddress")) { | 6297 if (_json.containsKey("streetAddress")) { |
6141 streetAddress = _json["streetAddress"]; | 6298 streetAddress = _json["streetAddress"]; |
6142 } | 6299 } |
6143 } | 6300 } |
6144 | 6301 |
6145 core.Map<core.String, core.Object> toJson() { | 6302 core.Map<core.String, core.Object> toJson() { |
6146 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6303 final core.Map<core.String, core.Object> _json = |
| 6304 new core.Map<core.String, core.Object>(); |
6147 if (country != null) { | 6305 if (country != null) { |
6148 _json["country"] = country; | 6306 _json["country"] = country; |
6149 } | 6307 } |
6150 if (fullAddress != null) { | 6308 if (fullAddress != null) { |
6151 _json["fullAddress"] = fullAddress; | 6309 _json["fullAddress"] = fullAddress; |
6152 } | 6310 } |
6153 if (isPostOfficeBox != null) { | 6311 if (isPostOfficeBox != null) { |
6154 _json["isPostOfficeBox"] = isPostOfficeBox; | 6312 _json["isPostOfficeBox"] = isPostOfficeBox; |
6155 } | 6313 } |
6156 if (locality != null) { | 6314 if (locality != null) { |
6157 _json["locality"] = locality; | 6315 _json["locality"] = locality; |
6158 } | 6316 } |
6159 if (postalCode != null) { | 6317 if (postalCode != null) { |
6160 _json["postalCode"] = postalCode; | 6318 _json["postalCode"] = postalCode; |
6161 } | 6319 } |
6162 if (recipientName != null) { | 6320 if (recipientName != null) { |
6163 _json["recipientName"] = recipientName; | 6321 _json["recipientName"] = recipientName; |
6164 } | 6322 } |
6165 if (region != null) { | 6323 if (region != null) { |
6166 _json["region"] = region; | 6324 _json["region"] = region; |
6167 } | 6325 } |
6168 if (streetAddress != null) { | 6326 if (streetAddress != null) { |
6169 _json["streetAddress"] = streetAddress; | 6327 _json["streetAddress"] = streetAddress; |
6170 } | 6328 } |
6171 return _json; | 6329 return _json; |
6172 } | 6330 } |
6173 } | 6331 } |
6174 | 6332 |
6175 class OrderCancellation { | 6333 class OrderCancellation { |
6176 /** The actor that created the cancellation. */ | 6334 /// The actor that created the cancellation. |
6177 core.String actor; | 6335 core.String actor; |
6178 /** Date on which the cancellation has been created, in ISO 8601 format. */ | 6336 |
| 6337 /// Date on which the cancellation has been created, in ISO 8601 format. |
6179 core.String creationDate; | 6338 core.String creationDate; |
6180 /** The quantity that was canceled. */ | 6339 |
| 6340 /// The quantity that was canceled. |
6181 core.int quantity; | 6341 core.int quantity; |
6182 /** | 6342 |
6183 * The reason for the cancellation. Orders that are cancelled with a | 6343 /// The reason for the cancellation. Orders that are cancelled with a |
6184 * noInventory reason will lead to the removal of the product from POG until | 6344 /// noInventory reason will lead to the removal of the product from POG until |
6185 * you make an update to that product. This will not affect your Shopping ads. | 6345 /// you make an update to that product. This will not affect your Shopping |
6186 */ | 6346 /// ads. |
6187 core.String reason; | 6347 core.String reason; |
6188 /** The explanation of the reason. */ | 6348 |
| 6349 /// The explanation of the reason. |
6189 core.String reasonText; | 6350 core.String reasonText; |
6190 | 6351 |
6191 OrderCancellation(); | 6352 OrderCancellation(); |
6192 | 6353 |
6193 OrderCancellation.fromJson(core.Map _json) { | 6354 OrderCancellation.fromJson(core.Map _json) { |
6194 if (_json.containsKey("actor")) { | 6355 if (_json.containsKey("actor")) { |
6195 actor = _json["actor"]; | 6356 actor = _json["actor"]; |
6196 } | 6357 } |
6197 if (_json.containsKey("creationDate")) { | 6358 if (_json.containsKey("creationDate")) { |
6198 creationDate = _json["creationDate"]; | 6359 creationDate = _json["creationDate"]; |
6199 } | 6360 } |
6200 if (_json.containsKey("quantity")) { | 6361 if (_json.containsKey("quantity")) { |
6201 quantity = _json["quantity"]; | 6362 quantity = _json["quantity"]; |
6202 } | 6363 } |
6203 if (_json.containsKey("reason")) { | 6364 if (_json.containsKey("reason")) { |
6204 reason = _json["reason"]; | 6365 reason = _json["reason"]; |
6205 } | 6366 } |
6206 if (_json.containsKey("reasonText")) { | 6367 if (_json.containsKey("reasonText")) { |
6207 reasonText = _json["reasonText"]; | 6368 reasonText = _json["reasonText"]; |
6208 } | 6369 } |
6209 } | 6370 } |
6210 | 6371 |
6211 core.Map<core.String, core.Object> toJson() { | 6372 core.Map<core.String, core.Object> toJson() { |
6212 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6373 final core.Map<core.String, core.Object> _json = |
| 6374 new core.Map<core.String, core.Object>(); |
6213 if (actor != null) { | 6375 if (actor != null) { |
6214 _json["actor"] = actor; | 6376 _json["actor"] = actor; |
6215 } | 6377 } |
6216 if (creationDate != null) { | 6378 if (creationDate != null) { |
6217 _json["creationDate"] = creationDate; | 6379 _json["creationDate"] = creationDate; |
6218 } | 6380 } |
6219 if (quantity != null) { | 6381 if (quantity != null) { |
6220 _json["quantity"] = quantity; | 6382 _json["quantity"] = quantity; |
6221 } | 6383 } |
6222 if (reason != null) { | 6384 if (reason != null) { |
6223 _json["reason"] = reason; | 6385 _json["reason"] = reason; |
6224 } | 6386 } |
6225 if (reasonText != null) { | 6387 if (reasonText != null) { |
6226 _json["reasonText"] = reasonText; | 6388 _json["reasonText"] = reasonText; |
6227 } | 6389 } |
6228 return _json; | 6390 return _json; |
6229 } | 6391 } |
6230 } | 6392 } |
6231 | 6393 |
6232 class OrderCustomer { | 6394 class OrderCustomer { |
6233 /** Email address of the customer. */ | 6395 /// Email address of the customer. |
6234 core.String email; | 6396 core.String email; |
6235 /** | 6397 |
6236 * If set, this indicates the user explicitly chose to opt in or out of | 6398 /// If set, this indicates the user explicitly chose to opt in or out of |
6237 * providing marketing rights to the merchant. If unset, this indicates the | 6399 /// providing marketing rights to the merchant. If unset, this indicates the |
6238 * user has already made this choice in a previous purchase, and was thus not | 6400 /// user has already made this choice in a previous purchase, and was thus |
6239 * shown the marketing right opt in/out checkbox during the checkout flow. | 6401 /// not shown the marketing right opt in/out checkbox during the checkout |
6240 */ | 6402 /// flow. |
6241 core.bool explicitMarketingPreference; | 6403 core.bool explicitMarketingPreference; |
6242 /** Full name of the customer. */ | 6404 |
| 6405 /// Full name of the customer. |
6243 core.String fullName; | 6406 core.String fullName; |
6244 | 6407 |
6245 OrderCustomer(); | 6408 OrderCustomer(); |
6246 | 6409 |
6247 OrderCustomer.fromJson(core.Map _json) { | 6410 OrderCustomer.fromJson(core.Map _json) { |
6248 if (_json.containsKey("email")) { | 6411 if (_json.containsKey("email")) { |
6249 email = _json["email"]; | 6412 email = _json["email"]; |
6250 } | 6413 } |
6251 if (_json.containsKey("explicitMarketingPreference")) { | 6414 if (_json.containsKey("explicitMarketingPreference")) { |
6252 explicitMarketingPreference = _json["explicitMarketingPreference"]; | 6415 explicitMarketingPreference = _json["explicitMarketingPreference"]; |
6253 } | 6416 } |
6254 if (_json.containsKey("fullName")) { | 6417 if (_json.containsKey("fullName")) { |
6255 fullName = _json["fullName"]; | 6418 fullName = _json["fullName"]; |
6256 } | 6419 } |
6257 } | 6420 } |
6258 | 6421 |
6259 core.Map<core.String, core.Object> toJson() { | 6422 core.Map<core.String, core.Object> toJson() { |
6260 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6423 final core.Map<core.String, core.Object> _json = |
| 6424 new core.Map<core.String, core.Object>(); |
6261 if (email != null) { | 6425 if (email != null) { |
6262 _json["email"] = email; | 6426 _json["email"] = email; |
6263 } | 6427 } |
6264 if (explicitMarketingPreference != null) { | 6428 if (explicitMarketingPreference != null) { |
6265 _json["explicitMarketingPreference"] = explicitMarketingPreference; | 6429 _json["explicitMarketingPreference"] = explicitMarketingPreference; |
6266 } | 6430 } |
6267 if (fullName != null) { | 6431 if (fullName != null) { |
6268 _json["fullName"] = fullName; | 6432 _json["fullName"] = fullName; |
6269 } | 6433 } |
6270 return _json; | 6434 return _json; |
6271 } | 6435 } |
6272 } | 6436 } |
6273 | 6437 |
6274 class OrderDeliveryDetails { | 6438 class OrderDeliveryDetails { |
6275 /** The delivery address */ | 6439 /// The delivery address |
6276 OrderAddress address; | 6440 OrderAddress address; |
6277 /** The phone number of the person receiving the delivery. */ | 6441 |
| 6442 /// The phone number of the person receiving the delivery. |
6278 core.String phoneNumber; | 6443 core.String phoneNumber; |
6279 | 6444 |
6280 OrderDeliveryDetails(); | 6445 OrderDeliveryDetails(); |
6281 | 6446 |
6282 OrderDeliveryDetails.fromJson(core.Map _json) { | 6447 OrderDeliveryDetails.fromJson(core.Map _json) { |
6283 if (_json.containsKey("address")) { | 6448 if (_json.containsKey("address")) { |
6284 address = new OrderAddress.fromJson(_json["address"]); | 6449 address = new OrderAddress.fromJson(_json["address"]); |
6285 } | 6450 } |
6286 if (_json.containsKey("phoneNumber")) { | 6451 if (_json.containsKey("phoneNumber")) { |
6287 phoneNumber = _json["phoneNumber"]; | 6452 phoneNumber = _json["phoneNumber"]; |
6288 } | 6453 } |
6289 } | 6454 } |
6290 | 6455 |
6291 core.Map<core.String, core.Object> toJson() { | 6456 core.Map<core.String, core.Object> toJson() { |
6292 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6457 final core.Map<core.String, core.Object> _json = |
| 6458 new core.Map<core.String, core.Object>(); |
6293 if (address != null) { | 6459 if (address != null) { |
6294 _json["address"] = (address).toJson(); | 6460 _json["address"] = (address).toJson(); |
6295 } | 6461 } |
6296 if (phoneNumber != null) { | 6462 if (phoneNumber != null) { |
6297 _json["phoneNumber"] = phoneNumber; | 6463 _json["phoneNumber"] = phoneNumber; |
6298 } | 6464 } |
6299 return _json; | 6465 return _json; |
6300 } | 6466 } |
6301 } | 6467 } |
6302 | 6468 |
6303 class OrderLineItem { | 6469 class OrderLineItem { |
6304 /** Cancellations of the line item. */ | 6470 /// Cancellations of the line item. |
6305 core.List<OrderCancellation> cancellations; | 6471 core.List<OrderCancellation> cancellations; |
6306 /** The id of the line item. */ | 6472 |
| 6473 /// The id of the line item. |
6307 core.String id; | 6474 core.String id; |
6308 /** | 6475 |
6309 * Total price for the line item. For example, if two items for $10 are | 6476 /// Total price for the line item. For example, if two items for $10 are |
6310 * purchased, the total price will be $20. | 6477 /// purchased, the total price will be $20. |
6311 */ | |
6312 Price price; | 6478 Price price; |
6313 /** Product data from the time of the order placement. */ | 6479 |
| 6480 /// Product data from the time of the order placement. |
6314 OrderLineItemProduct product; | 6481 OrderLineItemProduct product; |
6315 /** Number of items canceled. */ | 6482 |
| 6483 /// Number of items canceled. |
6316 core.int quantityCanceled; | 6484 core.int quantityCanceled; |
6317 /** Number of items delivered. */ | 6485 |
| 6486 /// Number of items delivered. |
6318 core.int quantityDelivered; | 6487 core.int quantityDelivered; |
6319 /** Number of items ordered. */ | 6488 |
| 6489 /// Number of items ordered. |
6320 core.int quantityOrdered; | 6490 core.int quantityOrdered; |
6321 /** Number of items pending. */ | 6491 |
| 6492 /// Number of items pending. |
6322 core.int quantityPending; | 6493 core.int quantityPending; |
6323 /** Number of items returned. */ | 6494 |
| 6495 /// Number of items returned. |
6324 core.int quantityReturned; | 6496 core.int quantityReturned; |
6325 /** Number of items shipped. */ | 6497 |
| 6498 /// Number of items shipped. |
6326 core.int quantityShipped; | 6499 core.int quantityShipped; |
6327 /** Details of the return policy for the line item. */ | 6500 |
| 6501 /// Details of the return policy for the line item. |
6328 OrderLineItemReturnInfo returnInfo; | 6502 OrderLineItemReturnInfo returnInfo; |
6329 /** Returns of the line item. */ | 6503 |
| 6504 /// Returns of the line item. |
6330 core.List<OrderReturn> returns; | 6505 core.List<OrderReturn> returns; |
6331 /** Details of the requested shipping for the line item. */ | 6506 |
| 6507 /// Details of the requested shipping for the line item. |
6332 OrderLineItemShippingDetails shippingDetails; | 6508 OrderLineItemShippingDetails shippingDetails; |
6333 /** | 6509 |
6334 * Total tax amount for the line item. For example, if two items are | 6510 /// Total tax amount for the line item. For example, if two items are |
6335 * purchased, and each have a cost tax of $2, the total tax amount will be $4. | 6511 /// purchased, and each have a cost tax of $2, the total tax amount will be |
6336 */ | 6512 /// $4. |
6337 Price tax; | 6513 Price tax; |
6338 | 6514 |
6339 OrderLineItem(); | 6515 OrderLineItem(); |
6340 | 6516 |
6341 OrderLineItem.fromJson(core.Map _json) { | 6517 OrderLineItem.fromJson(core.Map _json) { |
6342 if (_json.containsKey("cancellations")) { | 6518 if (_json.containsKey("cancellations")) { |
6343 cancellations = _json["cancellations"].map((value) => new OrderCancellatio
n.fromJson(value)).toList(); | 6519 cancellations = _json["cancellations"] |
| 6520 .map((value) => new OrderCancellation.fromJson(value)) |
| 6521 .toList(); |
6344 } | 6522 } |
6345 if (_json.containsKey("id")) { | 6523 if (_json.containsKey("id")) { |
6346 id = _json["id"]; | 6524 id = _json["id"]; |
6347 } | 6525 } |
6348 if (_json.containsKey("price")) { | 6526 if (_json.containsKey("price")) { |
6349 price = new Price.fromJson(_json["price"]); | 6527 price = new Price.fromJson(_json["price"]); |
6350 } | 6528 } |
6351 if (_json.containsKey("product")) { | 6529 if (_json.containsKey("product")) { |
6352 product = new OrderLineItemProduct.fromJson(_json["product"]); | 6530 product = new OrderLineItemProduct.fromJson(_json["product"]); |
6353 } | 6531 } |
(...skipping 12 matching lines...) Expand all Loading... |
6366 if (_json.containsKey("quantityReturned")) { | 6544 if (_json.containsKey("quantityReturned")) { |
6367 quantityReturned = _json["quantityReturned"]; | 6545 quantityReturned = _json["quantityReturned"]; |
6368 } | 6546 } |
6369 if (_json.containsKey("quantityShipped")) { | 6547 if (_json.containsKey("quantityShipped")) { |
6370 quantityShipped = _json["quantityShipped"]; | 6548 quantityShipped = _json["quantityShipped"]; |
6371 } | 6549 } |
6372 if (_json.containsKey("returnInfo")) { | 6550 if (_json.containsKey("returnInfo")) { |
6373 returnInfo = new OrderLineItemReturnInfo.fromJson(_json["returnInfo"]); | 6551 returnInfo = new OrderLineItemReturnInfo.fromJson(_json["returnInfo"]); |
6374 } | 6552 } |
6375 if (_json.containsKey("returns")) { | 6553 if (_json.containsKey("returns")) { |
6376 returns = _json["returns"].map((value) => new OrderReturn.fromJson(value))
.toList(); | 6554 returns = _json["returns"] |
| 6555 .map((value) => new OrderReturn.fromJson(value)) |
| 6556 .toList(); |
6377 } | 6557 } |
6378 if (_json.containsKey("shippingDetails")) { | 6558 if (_json.containsKey("shippingDetails")) { |
6379 shippingDetails = new OrderLineItemShippingDetails.fromJson(_json["shippin
gDetails"]); | 6559 shippingDetails = |
| 6560 new OrderLineItemShippingDetails.fromJson(_json["shippingDetails"]); |
6380 } | 6561 } |
6381 if (_json.containsKey("tax")) { | 6562 if (_json.containsKey("tax")) { |
6382 tax = new Price.fromJson(_json["tax"]); | 6563 tax = new Price.fromJson(_json["tax"]); |
6383 } | 6564 } |
6384 } | 6565 } |
6385 | 6566 |
6386 core.Map<core.String, core.Object> toJson() { | 6567 core.Map<core.String, core.Object> toJson() { |
6387 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6568 final core.Map<core.String, core.Object> _json = |
| 6569 new core.Map<core.String, core.Object>(); |
6388 if (cancellations != null) { | 6570 if (cancellations != null) { |
6389 _json["cancellations"] = cancellations.map((value) => (value).toJson()).to
List(); | 6571 _json["cancellations"] = |
| 6572 cancellations.map((value) => (value).toJson()).toList(); |
6390 } | 6573 } |
6391 if (id != null) { | 6574 if (id != null) { |
6392 _json["id"] = id; | 6575 _json["id"] = id; |
6393 } | 6576 } |
6394 if (price != null) { | 6577 if (price != null) { |
6395 _json["price"] = (price).toJson(); | 6578 _json["price"] = (price).toJson(); |
6396 } | 6579 } |
6397 if (product != null) { | 6580 if (product != null) { |
6398 _json["product"] = (product).toJson(); | 6581 _json["product"] = (product).toJson(); |
6399 } | 6582 } |
(...skipping 25 matching lines...) Expand all Loading... |
6425 _json["shippingDetails"] = (shippingDetails).toJson(); | 6608 _json["shippingDetails"] = (shippingDetails).toJson(); |
6426 } | 6609 } |
6427 if (tax != null) { | 6610 if (tax != null) { |
6428 _json["tax"] = (tax).toJson(); | 6611 _json["tax"] = (tax).toJson(); |
6429 } | 6612 } |
6430 return _json; | 6613 return _json; |
6431 } | 6614 } |
6432 } | 6615 } |
6433 | 6616 |
6434 class OrderLineItemProduct { | 6617 class OrderLineItemProduct { |
6435 /** Brand of the item. */ | 6618 /// Brand of the item. |
6436 core.String brand; | 6619 core.String brand; |
6437 /** The item's channel (online or local). */ | 6620 |
| 6621 /// The item's channel (online or local). |
6438 core.String channel; | 6622 core.String channel; |
6439 /** Condition or state of the item. */ | 6623 |
| 6624 /// Condition or state of the item. |
6440 core.String condition; | 6625 core.String condition; |
6441 /** The two-letter ISO 639-1 language code for the item. */ | 6626 |
| 6627 /// The two-letter ISO 639-1 language code for the item. |
6442 core.String contentLanguage; | 6628 core.String contentLanguage; |
6443 /** Global Trade Item Number (GTIN) of the item. */ | 6629 |
| 6630 /// Global Trade Item Number (GTIN) of the item. |
6444 core.String gtin; | 6631 core.String gtin; |
6445 /** The REST id of the product. */ | 6632 |
| 6633 /// The REST id of the product. |
6446 core.String id; | 6634 core.String id; |
6447 /** URL of an image of the item. */ | 6635 |
| 6636 /// URL of an image of the item. |
6448 core.String imageLink; | 6637 core.String imageLink; |
6449 /** Shared identifier for all variants of the same product. */ | 6638 |
| 6639 /// Shared identifier for all variants of the same product. |
6450 core.String itemGroupId; | 6640 core.String itemGroupId; |
6451 /** Manufacturer Part Number (MPN) of the item. */ | 6641 |
| 6642 /// Manufacturer Part Number (MPN) of the item. |
6452 core.String mpn; | 6643 core.String mpn; |
6453 /** An identifier of the item. */ | 6644 |
| 6645 /// An identifier of the item. |
6454 core.String offerId; | 6646 core.String offerId; |
6455 /** Price of the item. */ | 6647 |
| 6648 /// Price of the item. |
6456 Price price; | 6649 Price price; |
6457 /** URL to the cached image shown to the user when order was placed. */ | 6650 |
| 6651 /// URL to the cached image shown to the user when order was placed. |
6458 core.String shownImage; | 6652 core.String shownImage; |
6459 /** The CLDR territory code of the target country of the product. */ | 6653 |
| 6654 /// The CLDR territory code of the target country of the product. |
6460 core.String targetCountry; | 6655 core.String targetCountry; |
6461 /** The title of the product. */ | 6656 |
| 6657 /// The title of the product. |
6462 core.String title; | 6658 core.String title; |
6463 /** | 6659 |
6464 * Variant attributes for the item. These are dimensions of the product, such | 6660 /// Variant attributes for the item. These are dimensions of the product, |
6465 * as color, gender, material, pattern, and size. You can find a comprehensive | 6661 /// such as color, gender, material, pattern, and size. You can find a |
6466 * list of variant attributes here. | 6662 /// comprehensive list of variant attributes here. |
6467 */ | |
6468 core.List<OrderLineItemProductVariantAttribute> variantAttributes; | 6663 core.List<OrderLineItemProductVariantAttribute> variantAttributes; |
6469 | 6664 |
6470 OrderLineItemProduct(); | 6665 OrderLineItemProduct(); |
6471 | 6666 |
6472 OrderLineItemProduct.fromJson(core.Map _json) { | 6667 OrderLineItemProduct.fromJson(core.Map _json) { |
6473 if (_json.containsKey("brand")) { | 6668 if (_json.containsKey("brand")) { |
6474 brand = _json["brand"]; | 6669 brand = _json["brand"]; |
6475 } | 6670 } |
6476 if (_json.containsKey("channel")) { | 6671 if (_json.containsKey("channel")) { |
6477 channel = _json["channel"]; | 6672 channel = _json["channel"]; |
(...skipping 28 matching lines...) Expand all Loading... |
6506 if (_json.containsKey("shownImage")) { | 6701 if (_json.containsKey("shownImage")) { |
6507 shownImage = _json["shownImage"]; | 6702 shownImage = _json["shownImage"]; |
6508 } | 6703 } |
6509 if (_json.containsKey("targetCountry")) { | 6704 if (_json.containsKey("targetCountry")) { |
6510 targetCountry = _json["targetCountry"]; | 6705 targetCountry = _json["targetCountry"]; |
6511 } | 6706 } |
6512 if (_json.containsKey("title")) { | 6707 if (_json.containsKey("title")) { |
6513 title = _json["title"]; | 6708 title = _json["title"]; |
6514 } | 6709 } |
6515 if (_json.containsKey("variantAttributes")) { | 6710 if (_json.containsKey("variantAttributes")) { |
6516 variantAttributes = _json["variantAttributes"].map((value) => new OrderLin
eItemProductVariantAttribute.fromJson(value)).toList(); | 6711 variantAttributes = _json["variantAttributes"] |
| 6712 .map((value) => |
| 6713 new OrderLineItemProductVariantAttribute.fromJson(value)) |
| 6714 .toList(); |
6517 } | 6715 } |
6518 } | 6716 } |
6519 | 6717 |
6520 core.Map<core.String, core.Object> toJson() { | 6718 core.Map<core.String, core.Object> toJson() { |
6521 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6719 final core.Map<core.String, core.Object> _json = |
| 6720 new core.Map<core.String, core.Object>(); |
6522 if (brand != null) { | 6721 if (brand != null) { |
6523 _json["brand"] = brand; | 6722 _json["brand"] = brand; |
6524 } | 6723 } |
6525 if (channel != null) { | 6724 if (channel != null) { |
6526 _json["channel"] = channel; | 6725 _json["channel"] = channel; |
6527 } | 6726 } |
6528 if (condition != null) { | 6727 if (condition != null) { |
6529 _json["condition"] = condition; | 6728 _json["condition"] = condition; |
6530 } | 6729 } |
6531 if (contentLanguage != null) { | 6730 if (contentLanguage != null) { |
(...skipping 23 matching lines...) Expand all Loading... |
6555 if (shownImage != null) { | 6754 if (shownImage != null) { |
6556 _json["shownImage"] = shownImage; | 6755 _json["shownImage"] = shownImage; |
6557 } | 6756 } |
6558 if (targetCountry != null) { | 6757 if (targetCountry != null) { |
6559 _json["targetCountry"] = targetCountry; | 6758 _json["targetCountry"] = targetCountry; |
6560 } | 6759 } |
6561 if (title != null) { | 6760 if (title != null) { |
6562 _json["title"] = title; | 6761 _json["title"] = title; |
6563 } | 6762 } |
6564 if (variantAttributes != null) { | 6763 if (variantAttributes != null) { |
6565 _json["variantAttributes"] = variantAttributes.map((value) => (value).toJs
on()).toList(); | 6764 _json["variantAttributes"] = |
| 6765 variantAttributes.map((value) => (value).toJson()).toList(); |
6566 } | 6766 } |
6567 return _json; | 6767 return _json; |
6568 } | 6768 } |
6569 } | 6769 } |
6570 | 6770 |
6571 class OrderLineItemProductVariantAttribute { | 6771 class OrderLineItemProductVariantAttribute { |
6572 /** The dimension of the variant. */ | 6772 /// The dimension of the variant. |
6573 core.String dimension; | 6773 core.String dimension; |
6574 /** The value for the dimension. */ | 6774 |
| 6775 /// The value for the dimension. |
6575 core.String value; | 6776 core.String value; |
6576 | 6777 |
6577 OrderLineItemProductVariantAttribute(); | 6778 OrderLineItemProductVariantAttribute(); |
6578 | 6779 |
6579 OrderLineItemProductVariantAttribute.fromJson(core.Map _json) { | 6780 OrderLineItemProductVariantAttribute.fromJson(core.Map _json) { |
6580 if (_json.containsKey("dimension")) { | 6781 if (_json.containsKey("dimension")) { |
6581 dimension = _json["dimension"]; | 6782 dimension = _json["dimension"]; |
6582 } | 6783 } |
6583 if (_json.containsKey("value")) { | 6784 if (_json.containsKey("value")) { |
6584 value = _json["value"]; | 6785 value = _json["value"]; |
6585 } | 6786 } |
6586 } | 6787 } |
6587 | 6788 |
6588 core.Map<core.String, core.Object> toJson() { | 6789 core.Map<core.String, core.Object> toJson() { |
6589 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6790 final core.Map<core.String, core.Object> _json = |
| 6791 new core.Map<core.String, core.Object>(); |
6590 if (dimension != null) { | 6792 if (dimension != null) { |
6591 _json["dimension"] = dimension; | 6793 _json["dimension"] = dimension; |
6592 } | 6794 } |
6593 if (value != null) { | 6795 if (value != null) { |
6594 _json["value"] = value; | 6796 _json["value"] = value; |
6595 } | 6797 } |
6596 return _json; | 6798 return _json; |
6597 } | 6799 } |
6598 } | 6800 } |
6599 | 6801 |
6600 class OrderLineItemReturnInfo { | 6802 class OrderLineItemReturnInfo { |
6601 /** How many days later the item can be returned. */ | 6803 /// How many days later the item can be returned. |
6602 core.int daysToReturn; | 6804 core.int daysToReturn; |
6603 /** Whether the item is returnable. */ | 6805 |
| 6806 /// Whether the item is returnable. |
6604 core.bool isReturnable; | 6807 core.bool isReturnable; |
6605 /** URL of the item return policy. */ | 6808 |
| 6809 /// URL of the item return policy. |
6606 core.String policyUrl; | 6810 core.String policyUrl; |
6607 | 6811 |
6608 OrderLineItemReturnInfo(); | 6812 OrderLineItemReturnInfo(); |
6609 | 6813 |
6610 OrderLineItemReturnInfo.fromJson(core.Map _json) { | 6814 OrderLineItemReturnInfo.fromJson(core.Map _json) { |
6611 if (_json.containsKey("daysToReturn")) { | 6815 if (_json.containsKey("daysToReturn")) { |
6612 daysToReturn = _json["daysToReturn"]; | 6816 daysToReturn = _json["daysToReturn"]; |
6613 } | 6817 } |
6614 if (_json.containsKey("isReturnable")) { | 6818 if (_json.containsKey("isReturnable")) { |
6615 isReturnable = _json["isReturnable"]; | 6819 isReturnable = _json["isReturnable"]; |
6616 } | 6820 } |
6617 if (_json.containsKey("policyUrl")) { | 6821 if (_json.containsKey("policyUrl")) { |
6618 policyUrl = _json["policyUrl"]; | 6822 policyUrl = _json["policyUrl"]; |
6619 } | 6823 } |
6620 } | 6824 } |
6621 | 6825 |
6622 core.Map<core.String, core.Object> toJson() { | 6826 core.Map<core.String, core.Object> toJson() { |
6623 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6827 final core.Map<core.String, core.Object> _json = |
| 6828 new core.Map<core.String, core.Object>(); |
6624 if (daysToReturn != null) { | 6829 if (daysToReturn != null) { |
6625 _json["daysToReturn"] = daysToReturn; | 6830 _json["daysToReturn"] = daysToReturn; |
6626 } | 6831 } |
6627 if (isReturnable != null) { | 6832 if (isReturnable != null) { |
6628 _json["isReturnable"] = isReturnable; | 6833 _json["isReturnable"] = isReturnable; |
6629 } | 6834 } |
6630 if (policyUrl != null) { | 6835 if (policyUrl != null) { |
6631 _json["policyUrl"] = policyUrl; | 6836 _json["policyUrl"] = policyUrl; |
6632 } | 6837 } |
6633 return _json; | 6838 return _json; |
6634 } | 6839 } |
6635 } | 6840 } |
6636 | 6841 |
6637 class OrderLineItemShippingDetails { | 6842 class OrderLineItemShippingDetails { |
6638 /** The delivery by date, in ISO 8601 format. */ | 6843 /// The delivery by date, in ISO 8601 format. |
6639 core.String deliverByDate; | 6844 core.String deliverByDate; |
6640 /** Details of the shipping method. */ | 6845 |
| 6846 /// Details of the shipping method. |
6641 OrderLineItemShippingDetailsMethod method; | 6847 OrderLineItemShippingDetailsMethod method; |
6642 /** The ship by date, in ISO 8601 format. */ | 6848 |
| 6849 /// The ship by date, in ISO 8601 format. |
6643 core.String shipByDate; | 6850 core.String shipByDate; |
6644 | 6851 |
6645 OrderLineItemShippingDetails(); | 6852 OrderLineItemShippingDetails(); |
6646 | 6853 |
6647 OrderLineItemShippingDetails.fromJson(core.Map _json) { | 6854 OrderLineItemShippingDetails.fromJson(core.Map _json) { |
6648 if (_json.containsKey("deliverByDate")) { | 6855 if (_json.containsKey("deliverByDate")) { |
6649 deliverByDate = _json["deliverByDate"]; | 6856 deliverByDate = _json["deliverByDate"]; |
6650 } | 6857 } |
6651 if (_json.containsKey("method")) { | 6858 if (_json.containsKey("method")) { |
6652 method = new OrderLineItemShippingDetailsMethod.fromJson(_json["method"]); | 6859 method = new OrderLineItemShippingDetailsMethod.fromJson(_json["method"]); |
6653 } | 6860 } |
6654 if (_json.containsKey("shipByDate")) { | 6861 if (_json.containsKey("shipByDate")) { |
6655 shipByDate = _json["shipByDate"]; | 6862 shipByDate = _json["shipByDate"]; |
6656 } | 6863 } |
6657 } | 6864 } |
6658 | 6865 |
6659 core.Map<core.String, core.Object> toJson() { | 6866 core.Map<core.String, core.Object> toJson() { |
6660 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6867 final core.Map<core.String, core.Object> _json = |
| 6868 new core.Map<core.String, core.Object>(); |
6661 if (deliverByDate != null) { | 6869 if (deliverByDate != null) { |
6662 _json["deliverByDate"] = deliverByDate; | 6870 _json["deliverByDate"] = deliverByDate; |
6663 } | 6871 } |
6664 if (method != null) { | 6872 if (method != null) { |
6665 _json["method"] = (method).toJson(); | 6873 _json["method"] = (method).toJson(); |
6666 } | 6874 } |
6667 if (shipByDate != null) { | 6875 if (shipByDate != null) { |
6668 _json["shipByDate"] = shipByDate; | 6876 _json["shipByDate"] = shipByDate; |
6669 } | 6877 } |
6670 return _json; | 6878 return _json; |
6671 } | 6879 } |
6672 } | 6880 } |
6673 | 6881 |
6674 class OrderLineItemShippingDetailsMethod { | 6882 class OrderLineItemShippingDetailsMethod { |
6675 /** The carrier for the shipping. Optional. */ | 6883 /// The carrier for the shipping. Optional. |
6676 core.String carrier; | 6884 core.String carrier; |
6677 /** Maximum transit time. */ | 6885 |
| 6886 /// Maximum transit time. |
6678 core.int maxDaysInTransit; | 6887 core.int maxDaysInTransit; |
6679 /** The name of the shipping method. */ | 6888 |
| 6889 /// The name of the shipping method. |
6680 core.String methodName; | 6890 core.String methodName; |
6681 /** Minimum transit time. */ | 6891 |
| 6892 /// Minimum transit time. |
6682 core.int minDaysInTransit; | 6893 core.int minDaysInTransit; |
6683 | 6894 |
6684 OrderLineItemShippingDetailsMethod(); | 6895 OrderLineItemShippingDetailsMethod(); |
6685 | 6896 |
6686 OrderLineItemShippingDetailsMethod.fromJson(core.Map _json) { | 6897 OrderLineItemShippingDetailsMethod.fromJson(core.Map _json) { |
6687 if (_json.containsKey("carrier")) { | 6898 if (_json.containsKey("carrier")) { |
6688 carrier = _json["carrier"]; | 6899 carrier = _json["carrier"]; |
6689 } | 6900 } |
6690 if (_json.containsKey("maxDaysInTransit")) { | 6901 if (_json.containsKey("maxDaysInTransit")) { |
6691 maxDaysInTransit = _json["maxDaysInTransit"]; | 6902 maxDaysInTransit = _json["maxDaysInTransit"]; |
6692 } | 6903 } |
6693 if (_json.containsKey("methodName")) { | 6904 if (_json.containsKey("methodName")) { |
6694 methodName = _json["methodName"]; | 6905 methodName = _json["methodName"]; |
6695 } | 6906 } |
6696 if (_json.containsKey("minDaysInTransit")) { | 6907 if (_json.containsKey("minDaysInTransit")) { |
6697 minDaysInTransit = _json["minDaysInTransit"]; | 6908 minDaysInTransit = _json["minDaysInTransit"]; |
6698 } | 6909 } |
6699 } | 6910 } |
6700 | 6911 |
6701 core.Map<core.String, core.Object> toJson() { | 6912 core.Map<core.String, core.Object> toJson() { |
6702 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6913 final core.Map<core.String, core.Object> _json = |
| 6914 new core.Map<core.String, core.Object>(); |
6703 if (carrier != null) { | 6915 if (carrier != null) { |
6704 _json["carrier"] = carrier; | 6916 _json["carrier"] = carrier; |
6705 } | 6917 } |
6706 if (maxDaysInTransit != null) { | 6918 if (maxDaysInTransit != null) { |
6707 _json["maxDaysInTransit"] = maxDaysInTransit; | 6919 _json["maxDaysInTransit"] = maxDaysInTransit; |
6708 } | 6920 } |
6709 if (methodName != null) { | 6921 if (methodName != null) { |
6710 _json["methodName"] = methodName; | 6922 _json["methodName"] = methodName; |
6711 } | 6923 } |
6712 if (minDaysInTransit != null) { | 6924 if (minDaysInTransit != null) { |
6713 _json["minDaysInTransit"] = minDaysInTransit; | 6925 _json["minDaysInTransit"] = minDaysInTransit; |
6714 } | 6926 } |
6715 return _json; | 6927 return _json; |
6716 } | 6928 } |
6717 } | 6929 } |
6718 | 6930 |
6719 class OrderPaymentMethod { | 6931 class OrderPaymentMethod { |
6720 /** The billing address. */ | 6932 /// The billing address. |
6721 OrderAddress billingAddress; | 6933 OrderAddress billingAddress; |
6722 /** The card expiration month (January = 1, February = 2 etc.). */ | 6934 |
| 6935 /// The card expiration month (January = 1, February = 2 etc.). |
6723 core.int expirationMonth; | 6936 core.int expirationMonth; |
6724 /** The card expiration year (4-digit, e.g. 2015). */ | 6937 |
| 6938 /// The card expiration year (4-digit, e.g. 2015). |
6725 core.int expirationYear; | 6939 core.int expirationYear; |
6726 /** The last four digits of the card number. */ | 6940 |
| 6941 /// The last four digits of the card number. |
6727 core.String lastFourDigits; | 6942 core.String lastFourDigits; |
6728 /** The billing phone number. */ | 6943 |
| 6944 /// The billing phone number. |
6729 core.String phoneNumber; | 6945 core.String phoneNumber; |
6730 /** The type of instrument (VISA, Mastercard, etc). */ | 6946 |
| 6947 /// The type of instrument (VISA, Mastercard, etc). |
6731 core.String type; | 6948 core.String type; |
6732 | 6949 |
6733 OrderPaymentMethod(); | 6950 OrderPaymentMethod(); |
6734 | 6951 |
6735 OrderPaymentMethod.fromJson(core.Map _json) { | 6952 OrderPaymentMethod.fromJson(core.Map _json) { |
6736 if (_json.containsKey("billingAddress")) { | 6953 if (_json.containsKey("billingAddress")) { |
6737 billingAddress = new OrderAddress.fromJson(_json["billingAddress"]); | 6954 billingAddress = new OrderAddress.fromJson(_json["billingAddress"]); |
6738 } | 6955 } |
6739 if (_json.containsKey("expirationMonth")) { | 6956 if (_json.containsKey("expirationMonth")) { |
6740 expirationMonth = _json["expirationMonth"]; | 6957 expirationMonth = _json["expirationMonth"]; |
6741 } | 6958 } |
6742 if (_json.containsKey("expirationYear")) { | 6959 if (_json.containsKey("expirationYear")) { |
6743 expirationYear = _json["expirationYear"]; | 6960 expirationYear = _json["expirationYear"]; |
6744 } | 6961 } |
6745 if (_json.containsKey("lastFourDigits")) { | 6962 if (_json.containsKey("lastFourDigits")) { |
6746 lastFourDigits = _json["lastFourDigits"]; | 6963 lastFourDigits = _json["lastFourDigits"]; |
6747 } | 6964 } |
6748 if (_json.containsKey("phoneNumber")) { | 6965 if (_json.containsKey("phoneNumber")) { |
6749 phoneNumber = _json["phoneNumber"]; | 6966 phoneNumber = _json["phoneNumber"]; |
6750 } | 6967 } |
6751 if (_json.containsKey("type")) { | 6968 if (_json.containsKey("type")) { |
6752 type = _json["type"]; | 6969 type = _json["type"]; |
6753 } | 6970 } |
6754 } | 6971 } |
6755 | 6972 |
6756 core.Map<core.String, core.Object> toJson() { | 6973 core.Map<core.String, core.Object> toJson() { |
6757 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6974 final core.Map<core.String, core.Object> _json = |
| 6975 new core.Map<core.String, core.Object>(); |
6758 if (billingAddress != null) { | 6976 if (billingAddress != null) { |
6759 _json["billingAddress"] = (billingAddress).toJson(); | 6977 _json["billingAddress"] = (billingAddress).toJson(); |
6760 } | 6978 } |
6761 if (expirationMonth != null) { | 6979 if (expirationMonth != null) { |
6762 _json["expirationMonth"] = expirationMonth; | 6980 _json["expirationMonth"] = expirationMonth; |
6763 } | 6981 } |
6764 if (expirationYear != null) { | 6982 if (expirationYear != null) { |
6765 _json["expirationYear"] = expirationYear; | 6983 _json["expirationYear"] = expirationYear; |
6766 } | 6984 } |
6767 if (lastFourDigits != null) { | 6985 if (lastFourDigits != null) { |
6768 _json["lastFourDigits"] = lastFourDigits; | 6986 _json["lastFourDigits"] = lastFourDigits; |
6769 } | 6987 } |
6770 if (phoneNumber != null) { | 6988 if (phoneNumber != null) { |
6771 _json["phoneNumber"] = phoneNumber; | 6989 _json["phoneNumber"] = phoneNumber; |
6772 } | 6990 } |
6773 if (type != null) { | 6991 if (type != null) { |
6774 _json["type"] = type; | 6992 _json["type"] = type; |
6775 } | 6993 } |
6776 return _json; | 6994 return _json; |
6777 } | 6995 } |
6778 } | 6996 } |
6779 | 6997 |
6780 class OrderPromotion { | 6998 class OrderPromotion { |
6781 core.List<OrderPromotionBenefit> benefits; | 6999 core.List<OrderPromotionBenefit> benefits; |
6782 /** | 7000 |
6783 * The date and time frame when the promotion is active and ready for | 7001 /// The date and time frame when the promotion is active and ready for |
6784 * validation review. Note that the promotion live time may be delayed for a | 7002 /// validation review. Note that the promotion live time may be delayed for a |
6785 * few hours due to the validation review. | 7003 /// few hours due to the validation review. |
6786 * Start date and end date are separated by a forward slash (/). The start | 7004 /// Start date and end date are separated by a forward slash (/). The start |
6787 * date is specified by the format (YYYY-MM-DD), followed by the letter ?T?, | 7005 /// date is specified by the format (YYYY-MM-DD), followed by the letter ?T?, |
6788 * the time of the day when the sale starts (in Greenwich Mean Time, GMT), | 7006 /// the time of the day when the sale starts (in Greenwich Mean Time, GMT), |
6789 * followed by an expression of the time zone for the sale. The end date is in | 7007 /// followed by an expression of the time zone for the sale. The end date is |
6790 * the same format. | 7008 /// in the same format. |
6791 */ | |
6792 core.String effectiveDates; | 7009 core.String effectiveDates; |
6793 /** | 7010 |
6794 * Optional. The text code that corresponds to the promotion when applied on | 7011 /// Optional. The text code that corresponds to the promotion when applied on |
6795 * the retailer?s website. | 7012 /// the retailer?s website. |
6796 */ | |
6797 core.String genericRedemptionCode; | 7013 core.String genericRedemptionCode; |
6798 /** The unique ID of the promotion. */ | 7014 |
| 7015 /// The unique ID of the promotion. |
6799 core.String id; | 7016 core.String id; |
6800 /** The full title of the promotion. */ | 7017 |
| 7018 /// The full title of the promotion. |
6801 core.String longTitle; | 7019 core.String longTitle; |
6802 /** | 7020 |
6803 * Whether the promotion is applicable to all products or only specific | 7021 /// Whether the promotion is applicable to all products or only specific |
6804 * products. | 7022 /// products. |
6805 */ | |
6806 core.String productApplicability; | 7023 core.String productApplicability; |
6807 /** Indicates that the promotion is valid online. */ | 7024 |
| 7025 /// Indicates that the promotion is valid online. |
6808 core.String redemptionChannel; | 7026 core.String redemptionChannel; |
6809 | 7027 |
6810 OrderPromotion(); | 7028 OrderPromotion(); |
6811 | 7029 |
6812 OrderPromotion.fromJson(core.Map _json) { | 7030 OrderPromotion.fromJson(core.Map _json) { |
6813 if (_json.containsKey("benefits")) { | 7031 if (_json.containsKey("benefits")) { |
6814 benefits = _json["benefits"].map((value) => new OrderPromotionBenefit.from
Json(value)).toList(); | 7032 benefits = _json["benefits"] |
| 7033 .map((value) => new OrderPromotionBenefit.fromJson(value)) |
| 7034 .toList(); |
6815 } | 7035 } |
6816 if (_json.containsKey("effectiveDates")) { | 7036 if (_json.containsKey("effectiveDates")) { |
6817 effectiveDates = _json["effectiveDates"]; | 7037 effectiveDates = _json["effectiveDates"]; |
6818 } | 7038 } |
6819 if (_json.containsKey("genericRedemptionCode")) { | 7039 if (_json.containsKey("genericRedemptionCode")) { |
6820 genericRedemptionCode = _json["genericRedemptionCode"]; | 7040 genericRedemptionCode = _json["genericRedemptionCode"]; |
6821 } | 7041 } |
6822 if (_json.containsKey("id")) { | 7042 if (_json.containsKey("id")) { |
6823 id = _json["id"]; | 7043 id = _json["id"]; |
6824 } | 7044 } |
6825 if (_json.containsKey("longTitle")) { | 7045 if (_json.containsKey("longTitle")) { |
6826 longTitle = _json["longTitle"]; | 7046 longTitle = _json["longTitle"]; |
6827 } | 7047 } |
6828 if (_json.containsKey("productApplicability")) { | 7048 if (_json.containsKey("productApplicability")) { |
6829 productApplicability = _json["productApplicability"]; | 7049 productApplicability = _json["productApplicability"]; |
6830 } | 7050 } |
6831 if (_json.containsKey("redemptionChannel")) { | 7051 if (_json.containsKey("redemptionChannel")) { |
6832 redemptionChannel = _json["redemptionChannel"]; | 7052 redemptionChannel = _json["redemptionChannel"]; |
6833 } | 7053 } |
6834 } | 7054 } |
6835 | 7055 |
6836 core.Map<core.String, core.Object> toJson() { | 7056 core.Map<core.String, core.Object> toJson() { |
6837 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7057 final core.Map<core.String, core.Object> _json = |
| 7058 new core.Map<core.String, core.Object>(); |
6838 if (benefits != null) { | 7059 if (benefits != null) { |
6839 _json["benefits"] = benefits.map((value) => (value).toJson()).toList(); | 7060 _json["benefits"] = benefits.map((value) => (value).toJson()).toList(); |
6840 } | 7061 } |
6841 if (effectiveDates != null) { | 7062 if (effectiveDates != null) { |
6842 _json["effectiveDates"] = effectiveDates; | 7063 _json["effectiveDates"] = effectiveDates; |
6843 } | 7064 } |
6844 if (genericRedemptionCode != null) { | 7065 if (genericRedemptionCode != null) { |
6845 _json["genericRedemptionCode"] = genericRedemptionCode; | 7066 _json["genericRedemptionCode"] = genericRedemptionCode; |
6846 } | 7067 } |
6847 if (id != null) { | 7068 if (id != null) { |
6848 _json["id"] = id; | 7069 _json["id"] = id; |
6849 } | 7070 } |
6850 if (longTitle != null) { | 7071 if (longTitle != null) { |
6851 _json["longTitle"] = longTitle; | 7072 _json["longTitle"] = longTitle; |
6852 } | 7073 } |
6853 if (productApplicability != null) { | 7074 if (productApplicability != null) { |
6854 _json["productApplicability"] = productApplicability; | 7075 _json["productApplicability"] = productApplicability; |
6855 } | 7076 } |
6856 if (redemptionChannel != null) { | 7077 if (redemptionChannel != null) { |
6857 _json["redemptionChannel"] = redemptionChannel; | 7078 _json["redemptionChannel"] = redemptionChannel; |
6858 } | 7079 } |
6859 return _json; | 7080 return _json; |
6860 } | 7081 } |
6861 } | 7082 } |
6862 | 7083 |
6863 class OrderPromotionBenefit { | 7084 class OrderPromotionBenefit { |
6864 /** The discount in the order price when the promotion is applied. */ | 7085 /// The discount in the order price when the promotion is applied. |
6865 Price discount; | 7086 Price discount; |
6866 /** | 7087 |
6867 * The OfferId(s) that were purchased in this order and map to this specific | 7088 /// The OfferId(s) that were purchased in this order and map to this specific |
6868 * benefit of the promotion. | 7089 /// benefit of the promotion. |
6869 */ | |
6870 core.List<core.String> offerIds; | 7090 core.List<core.String> offerIds; |
6871 /** | 7091 |
6872 * Further describes the benefit of the promotion. Note that we will expand on | 7092 /// Further describes the benefit of the promotion. Note that we will expand |
6873 * this enumeration as we support new promotion sub-types. | 7093 /// on this enumeration as we support new promotion sub-types. |
6874 */ | |
6875 core.String subType; | 7094 core.String subType; |
6876 /** The impact on tax when the promotion is applied. */ | 7095 |
| 7096 /// The impact on tax when the promotion is applied. |
6877 Price taxImpact; | 7097 Price taxImpact; |
6878 /** | 7098 |
6879 * Describes whether the promotion applies to products (e.g. 20% off) or to | 7099 /// Describes whether the promotion applies to products (e.g. 20% off) or to |
6880 * shipping (e.g. Free Shipping). | 7100 /// shipping (e.g. Free Shipping). |
6881 */ | |
6882 core.String type; | 7101 core.String type; |
6883 | 7102 |
6884 OrderPromotionBenefit(); | 7103 OrderPromotionBenefit(); |
6885 | 7104 |
6886 OrderPromotionBenefit.fromJson(core.Map _json) { | 7105 OrderPromotionBenefit.fromJson(core.Map _json) { |
6887 if (_json.containsKey("discount")) { | 7106 if (_json.containsKey("discount")) { |
6888 discount = new Price.fromJson(_json["discount"]); | 7107 discount = new Price.fromJson(_json["discount"]); |
6889 } | 7108 } |
6890 if (_json.containsKey("offerIds")) { | 7109 if (_json.containsKey("offerIds")) { |
6891 offerIds = _json["offerIds"]; | 7110 offerIds = _json["offerIds"]; |
6892 } | 7111 } |
6893 if (_json.containsKey("subType")) { | 7112 if (_json.containsKey("subType")) { |
6894 subType = _json["subType"]; | 7113 subType = _json["subType"]; |
6895 } | 7114 } |
6896 if (_json.containsKey("taxImpact")) { | 7115 if (_json.containsKey("taxImpact")) { |
6897 taxImpact = new Price.fromJson(_json["taxImpact"]); | 7116 taxImpact = new Price.fromJson(_json["taxImpact"]); |
6898 } | 7117 } |
6899 if (_json.containsKey("type")) { | 7118 if (_json.containsKey("type")) { |
6900 type = _json["type"]; | 7119 type = _json["type"]; |
6901 } | 7120 } |
6902 } | 7121 } |
6903 | 7122 |
6904 core.Map<core.String, core.Object> toJson() { | 7123 core.Map<core.String, core.Object> toJson() { |
6905 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7124 final core.Map<core.String, core.Object> _json = |
| 7125 new core.Map<core.String, core.Object>(); |
6906 if (discount != null) { | 7126 if (discount != null) { |
6907 _json["discount"] = (discount).toJson(); | 7127 _json["discount"] = (discount).toJson(); |
6908 } | 7128 } |
6909 if (offerIds != null) { | 7129 if (offerIds != null) { |
6910 _json["offerIds"] = offerIds; | 7130 _json["offerIds"] = offerIds; |
6911 } | 7131 } |
6912 if (subType != null) { | 7132 if (subType != null) { |
6913 _json["subType"] = subType; | 7133 _json["subType"] = subType; |
6914 } | 7134 } |
6915 if (taxImpact != null) { | 7135 if (taxImpact != null) { |
6916 _json["taxImpact"] = (taxImpact).toJson(); | 7136 _json["taxImpact"] = (taxImpact).toJson(); |
6917 } | 7137 } |
6918 if (type != null) { | 7138 if (type != null) { |
6919 _json["type"] = type; | 7139 _json["type"] = type; |
6920 } | 7140 } |
6921 return _json; | 7141 return _json; |
6922 } | 7142 } |
6923 } | 7143 } |
6924 | 7144 |
6925 class OrderRefund { | 7145 class OrderRefund { |
6926 /** The actor that created the refund. */ | 7146 /// The actor that created the refund. |
6927 core.String actor; | 7147 core.String actor; |
6928 /** The amount that is refunded. */ | 7148 |
| 7149 /// The amount that is refunded. |
6929 Price amount; | 7150 Price amount; |
6930 /** Date on which the item has been created, in ISO 8601 format. */ | 7151 |
| 7152 /// Date on which the item has been created, in ISO 8601 format. |
6931 core.String creationDate; | 7153 core.String creationDate; |
6932 /** The reason for the refund. */ | 7154 |
| 7155 /// The reason for the refund. |
6933 core.String reason; | 7156 core.String reason; |
6934 /** The explanation of the reason. */ | 7157 |
| 7158 /// The explanation of the reason. |
6935 core.String reasonText; | 7159 core.String reasonText; |
6936 | 7160 |
6937 OrderRefund(); | 7161 OrderRefund(); |
6938 | 7162 |
6939 OrderRefund.fromJson(core.Map _json) { | 7163 OrderRefund.fromJson(core.Map _json) { |
6940 if (_json.containsKey("actor")) { | 7164 if (_json.containsKey("actor")) { |
6941 actor = _json["actor"]; | 7165 actor = _json["actor"]; |
6942 } | 7166 } |
6943 if (_json.containsKey("amount")) { | 7167 if (_json.containsKey("amount")) { |
6944 amount = new Price.fromJson(_json["amount"]); | 7168 amount = new Price.fromJson(_json["amount"]); |
6945 } | 7169 } |
6946 if (_json.containsKey("creationDate")) { | 7170 if (_json.containsKey("creationDate")) { |
6947 creationDate = _json["creationDate"]; | 7171 creationDate = _json["creationDate"]; |
6948 } | 7172 } |
6949 if (_json.containsKey("reason")) { | 7173 if (_json.containsKey("reason")) { |
6950 reason = _json["reason"]; | 7174 reason = _json["reason"]; |
6951 } | 7175 } |
6952 if (_json.containsKey("reasonText")) { | 7176 if (_json.containsKey("reasonText")) { |
6953 reasonText = _json["reasonText"]; | 7177 reasonText = _json["reasonText"]; |
6954 } | 7178 } |
6955 } | 7179 } |
6956 | 7180 |
6957 core.Map<core.String, core.Object> toJson() { | 7181 core.Map<core.String, core.Object> toJson() { |
6958 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7182 final core.Map<core.String, core.Object> _json = |
| 7183 new core.Map<core.String, core.Object>(); |
6959 if (actor != null) { | 7184 if (actor != null) { |
6960 _json["actor"] = actor; | 7185 _json["actor"] = actor; |
6961 } | 7186 } |
6962 if (amount != null) { | 7187 if (amount != null) { |
6963 _json["amount"] = (amount).toJson(); | 7188 _json["amount"] = (amount).toJson(); |
6964 } | 7189 } |
6965 if (creationDate != null) { | 7190 if (creationDate != null) { |
6966 _json["creationDate"] = creationDate; | 7191 _json["creationDate"] = creationDate; |
6967 } | 7192 } |
6968 if (reason != null) { | 7193 if (reason != null) { |
6969 _json["reason"] = reason; | 7194 _json["reason"] = reason; |
6970 } | 7195 } |
6971 if (reasonText != null) { | 7196 if (reasonText != null) { |
6972 _json["reasonText"] = reasonText; | 7197 _json["reasonText"] = reasonText; |
6973 } | 7198 } |
6974 return _json; | 7199 return _json; |
6975 } | 7200 } |
6976 } | 7201 } |
6977 | 7202 |
6978 class OrderReturn { | 7203 class OrderReturn { |
6979 /** The actor that created the refund. */ | 7204 /// The actor that created the refund. |
6980 core.String actor; | 7205 core.String actor; |
6981 /** Date on which the item has been created, in ISO 8601 format. */ | 7206 |
| 7207 /// Date on which the item has been created, in ISO 8601 format. |
6982 core.String creationDate; | 7208 core.String creationDate; |
6983 /** Quantity that is returned. */ | 7209 |
| 7210 /// Quantity that is returned. |
6984 core.int quantity; | 7211 core.int quantity; |
6985 /** The reason for the return. */ | 7212 |
| 7213 /// The reason for the return. |
6986 core.String reason; | 7214 core.String reason; |
6987 /** The explanation of the reason. */ | 7215 |
| 7216 /// The explanation of the reason. |
6988 core.String reasonText; | 7217 core.String reasonText; |
6989 | 7218 |
6990 OrderReturn(); | 7219 OrderReturn(); |
6991 | 7220 |
6992 OrderReturn.fromJson(core.Map _json) { | 7221 OrderReturn.fromJson(core.Map _json) { |
6993 if (_json.containsKey("actor")) { | 7222 if (_json.containsKey("actor")) { |
6994 actor = _json["actor"]; | 7223 actor = _json["actor"]; |
6995 } | 7224 } |
6996 if (_json.containsKey("creationDate")) { | 7225 if (_json.containsKey("creationDate")) { |
6997 creationDate = _json["creationDate"]; | 7226 creationDate = _json["creationDate"]; |
6998 } | 7227 } |
6999 if (_json.containsKey("quantity")) { | 7228 if (_json.containsKey("quantity")) { |
7000 quantity = _json["quantity"]; | 7229 quantity = _json["quantity"]; |
7001 } | 7230 } |
7002 if (_json.containsKey("reason")) { | 7231 if (_json.containsKey("reason")) { |
7003 reason = _json["reason"]; | 7232 reason = _json["reason"]; |
7004 } | 7233 } |
7005 if (_json.containsKey("reasonText")) { | 7234 if (_json.containsKey("reasonText")) { |
7006 reasonText = _json["reasonText"]; | 7235 reasonText = _json["reasonText"]; |
7007 } | 7236 } |
7008 } | 7237 } |
7009 | 7238 |
7010 core.Map<core.String, core.Object> toJson() { | 7239 core.Map<core.String, core.Object> toJson() { |
7011 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7240 final core.Map<core.String, core.Object> _json = |
| 7241 new core.Map<core.String, core.Object>(); |
7012 if (actor != null) { | 7242 if (actor != null) { |
7013 _json["actor"] = actor; | 7243 _json["actor"] = actor; |
7014 } | 7244 } |
7015 if (creationDate != null) { | 7245 if (creationDate != null) { |
7016 _json["creationDate"] = creationDate; | 7246 _json["creationDate"] = creationDate; |
7017 } | 7247 } |
7018 if (quantity != null) { | 7248 if (quantity != null) { |
7019 _json["quantity"] = quantity; | 7249 _json["quantity"] = quantity; |
7020 } | 7250 } |
7021 if (reason != null) { | 7251 if (reason != null) { |
7022 _json["reason"] = reason; | 7252 _json["reason"] = reason; |
7023 } | 7253 } |
7024 if (reasonText != null) { | 7254 if (reasonText != null) { |
7025 _json["reasonText"] = reasonText; | 7255 _json["reasonText"] = reasonText; |
7026 } | 7256 } |
7027 return _json; | 7257 return _json; |
7028 } | 7258 } |
7029 } | 7259 } |
7030 | 7260 |
7031 class OrderShipment { | 7261 class OrderShipment { |
7032 /** The carrier handling the shipment. */ | 7262 /// The carrier handling the shipment. |
7033 core.String carrier; | 7263 core.String carrier; |
7034 /** Date on which the shipment has been created, in ISO 8601 format. */ | 7264 |
| 7265 /// Date on which the shipment has been created, in ISO 8601 format. |
7035 core.String creationDate; | 7266 core.String creationDate; |
7036 /** | 7267 |
7037 * Date on which the shipment has been delivered, in ISO 8601 format. Present | 7268 /// Date on which the shipment has been delivered, in ISO 8601 format. |
7038 * only if status is delievered | 7269 /// Present only if status is delievered |
7039 */ | |
7040 core.String deliveryDate; | 7270 core.String deliveryDate; |
7041 /** The id of the shipment. */ | 7271 |
| 7272 /// The id of the shipment. |
7042 core.String id; | 7273 core.String id; |
7043 /** The line items that are shipped. */ | 7274 |
| 7275 /// The line items that are shipped. |
7044 core.List<OrderShipmentLineItemShipment> lineItems; | 7276 core.List<OrderShipmentLineItemShipment> lineItems; |
7045 /** The status of the shipment. */ | 7277 |
| 7278 /// The status of the shipment. |
7046 core.String status; | 7279 core.String status; |
7047 /** The tracking id for the shipment. */ | 7280 |
| 7281 /// The tracking id for the shipment. |
7048 core.String trackingId; | 7282 core.String trackingId; |
7049 | 7283 |
7050 OrderShipment(); | 7284 OrderShipment(); |
7051 | 7285 |
7052 OrderShipment.fromJson(core.Map _json) { | 7286 OrderShipment.fromJson(core.Map _json) { |
7053 if (_json.containsKey("carrier")) { | 7287 if (_json.containsKey("carrier")) { |
7054 carrier = _json["carrier"]; | 7288 carrier = _json["carrier"]; |
7055 } | 7289 } |
7056 if (_json.containsKey("creationDate")) { | 7290 if (_json.containsKey("creationDate")) { |
7057 creationDate = _json["creationDate"]; | 7291 creationDate = _json["creationDate"]; |
7058 } | 7292 } |
7059 if (_json.containsKey("deliveryDate")) { | 7293 if (_json.containsKey("deliveryDate")) { |
7060 deliveryDate = _json["deliveryDate"]; | 7294 deliveryDate = _json["deliveryDate"]; |
7061 } | 7295 } |
7062 if (_json.containsKey("id")) { | 7296 if (_json.containsKey("id")) { |
7063 id = _json["id"]; | 7297 id = _json["id"]; |
7064 } | 7298 } |
7065 if (_json.containsKey("lineItems")) { | 7299 if (_json.containsKey("lineItems")) { |
7066 lineItems = _json["lineItems"].map((value) => new OrderShipmentLineItemShi
pment.fromJson(value)).toList(); | 7300 lineItems = _json["lineItems"] |
| 7301 .map((value) => new OrderShipmentLineItemShipment.fromJson(value)) |
| 7302 .toList(); |
7067 } | 7303 } |
7068 if (_json.containsKey("status")) { | 7304 if (_json.containsKey("status")) { |
7069 status = _json["status"]; | 7305 status = _json["status"]; |
7070 } | 7306 } |
7071 if (_json.containsKey("trackingId")) { | 7307 if (_json.containsKey("trackingId")) { |
7072 trackingId = _json["trackingId"]; | 7308 trackingId = _json["trackingId"]; |
7073 } | 7309 } |
7074 } | 7310 } |
7075 | 7311 |
7076 core.Map<core.String, core.Object> toJson() { | 7312 core.Map<core.String, core.Object> toJson() { |
7077 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7313 final core.Map<core.String, core.Object> _json = |
| 7314 new core.Map<core.String, core.Object>(); |
7078 if (carrier != null) { | 7315 if (carrier != null) { |
7079 _json["carrier"] = carrier; | 7316 _json["carrier"] = carrier; |
7080 } | 7317 } |
7081 if (creationDate != null) { | 7318 if (creationDate != null) { |
7082 _json["creationDate"] = creationDate; | 7319 _json["creationDate"] = creationDate; |
7083 } | 7320 } |
7084 if (deliveryDate != null) { | 7321 if (deliveryDate != null) { |
7085 _json["deliveryDate"] = deliveryDate; | 7322 _json["deliveryDate"] = deliveryDate; |
7086 } | 7323 } |
7087 if (id != null) { | 7324 if (id != null) { |
7088 _json["id"] = id; | 7325 _json["id"] = id; |
7089 } | 7326 } |
7090 if (lineItems != null) { | 7327 if (lineItems != null) { |
7091 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList(); | 7328 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList(); |
7092 } | 7329 } |
7093 if (status != null) { | 7330 if (status != null) { |
7094 _json["status"] = status; | 7331 _json["status"] = status; |
7095 } | 7332 } |
7096 if (trackingId != null) { | 7333 if (trackingId != null) { |
7097 _json["trackingId"] = trackingId; | 7334 _json["trackingId"] = trackingId; |
7098 } | 7335 } |
7099 return _json; | 7336 return _json; |
7100 } | 7337 } |
7101 } | 7338 } |
7102 | 7339 |
7103 class OrderShipmentLineItemShipment { | 7340 class OrderShipmentLineItemShipment { |
7104 /** The id of the line item that is shipped. */ | 7341 /// The id of the line item that is shipped. |
7105 core.String lineItemId; | 7342 core.String lineItemId; |
7106 /** The quantity that is shipped. */ | 7343 |
| 7344 /// The quantity that is shipped. |
7107 core.int quantity; | 7345 core.int quantity; |
7108 | 7346 |
7109 OrderShipmentLineItemShipment(); | 7347 OrderShipmentLineItemShipment(); |
7110 | 7348 |
7111 OrderShipmentLineItemShipment.fromJson(core.Map _json) { | 7349 OrderShipmentLineItemShipment.fromJson(core.Map _json) { |
7112 if (_json.containsKey("lineItemId")) { | 7350 if (_json.containsKey("lineItemId")) { |
7113 lineItemId = _json["lineItemId"]; | 7351 lineItemId = _json["lineItemId"]; |
7114 } | 7352 } |
7115 if (_json.containsKey("quantity")) { | 7353 if (_json.containsKey("quantity")) { |
7116 quantity = _json["quantity"]; | 7354 quantity = _json["quantity"]; |
7117 } | 7355 } |
7118 } | 7356 } |
7119 | 7357 |
7120 core.Map<core.String, core.Object> toJson() { | 7358 core.Map<core.String, core.Object> toJson() { |
7121 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7359 final core.Map<core.String, core.Object> _json = |
| 7360 new core.Map<core.String, core.Object>(); |
7122 if (lineItemId != null) { | 7361 if (lineItemId != null) { |
7123 _json["lineItemId"] = lineItemId; | 7362 _json["lineItemId"] = lineItemId; |
7124 } | 7363 } |
7125 if (quantity != null) { | 7364 if (quantity != null) { |
7126 _json["quantity"] = quantity; | 7365 _json["quantity"] = quantity; |
7127 } | 7366 } |
7128 return _json; | 7367 return _json; |
7129 } | 7368 } |
7130 } | 7369 } |
7131 | 7370 |
7132 class OrdersAcknowledgeRequest { | 7371 class OrdersAcknowledgeRequest { |
7133 /** | 7372 /// The ID of the operation. Unique across all operations for a given order. |
7134 * The ID of the operation. Unique across all operations for a given order. | |
7135 */ | |
7136 core.String operationId; | 7373 core.String operationId; |
7137 | 7374 |
7138 OrdersAcknowledgeRequest(); | 7375 OrdersAcknowledgeRequest(); |
7139 | 7376 |
7140 OrdersAcknowledgeRequest.fromJson(core.Map _json) { | 7377 OrdersAcknowledgeRequest.fromJson(core.Map _json) { |
7141 if (_json.containsKey("operationId")) { | 7378 if (_json.containsKey("operationId")) { |
7142 operationId = _json["operationId"]; | 7379 operationId = _json["operationId"]; |
7143 } | 7380 } |
7144 } | 7381 } |
7145 | 7382 |
7146 core.Map<core.String, core.Object> toJson() { | 7383 core.Map<core.String, core.Object> toJson() { |
7147 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7384 final core.Map<core.String, core.Object> _json = |
| 7385 new core.Map<core.String, core.Object>(); |
7148 if (operationId != null) { | 7386 if (operationId != null) { |
7149 _json["operationId"] = operationId; | 7387 _json["operationId"] = operationId; |
7150 } | 7388 } |
7151 return _json; | 7389 return _json; |
7152 } | 7390 } |
7153 } | 7391 } |
7154 | 7392 |
7155 class OrdersAcknowledgeResponse { | 7393 class OrdersAcknowledgeResponse { |
7156 /** The status of the execution. */ | 7394 /// The status of the execution. |
7157 core.String executionStatus; | 7395 core.String executionStatus; |
7158 /** | 7396 |
7159 * Identifies what kind of resource this is. Value: the fixed string | 7397 /// Identifies what kind of resource this is. Value: the fixed string |
7160 * "content#ordersAcknowledgeResponse". | 7398 /// "content#ordersAcknowledgeResponse". |
7161 */ | |
7162 core.String kind; | 7399 core.String kind; |
7163 | 7400 |
7164 OrdersAcknowledgeResponse(); | 7401 OrdersAcknowledgeResponse(); |
7165 | 7402 |
7166 OrdersAcknowledgeResponse.fromJson(core.Map _json) { | 7403 OrdersAcknowledgeResponse.fromJson(core.Map _json) { |
7167 if (_json.containsKey("executionStatus")) { | 7404 if (_json.containsKey("executionStatus")) { |
7168 executionStatus = _json["executionStatus"]; | 7405 executionStatus = _json["executionStatus"]; |
7169 } | 7406 } |
7170 if (_json.containsKey("kind")) { | 7407 if (_json.containsKey("kind")) { |
7171 kind = _json["kind"]; | 7408 kind = _json["kind"]; |
7172 } | 7409 } |
7173 } | 7410 } |
7174 | 7411 |
7175 core.Map<core.String, core.Object> toJson() { | 7412 core.Map<core.String, core.Object> toJson() { |
7176 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7413 final core.Map<core.String, core.Object> _json = |
| 7414 new core.Map<core.String, core.Object>(); |
7177 if (executionStatus != null) { | 7415 if (executionStatus != null) { |
7178 _json["executionStatus"] = executionStatus; | 7416 _json["executionStatus"] = executionStatus; |
7179 } | 7417 } |
7180 if (kind != null) { | 7418 if (kind != null) { |
7181 _json["kind"] = kind; | 7419 _json["kind"] = kind; |
7182 } | 7420 } |
7183 return _json; | 7421 return _json; |
7184 } | 7422 } |
7185 } | 7423 } |
7186 | 7424 |
7187 class OrdersAdvanceTestOrderResponse { | 7425 class OrdersAdvanceTestOrderResponse { |
7188 /** | 7426 /// Identifies what kind of resource this is. Value: the fixed string |
7189 * Identifies what kind of resource this is. Value: the fixed string | 7427 /// "content#ordersAdvanceTestOrderResponse". |
7190 * "content#ordersAdvanceTestOrderResponse". | |
7191 */ | |
7192 core.String kind; | 7428 core.String kind; |
7193 | 7429 |
7194 OrdersAdvanceTestOrderResponse(); | 7430 OrdersAdvanceTestOrderResponse(); |
7195 | 7431 |
7196 OrdersAdvanceTestOrderResponse.fromJson(core.Map _json) { | 7432 OrdersAdvanceTestOrderResponse.fromJson(core.Map _json) { |
7197 if (_json.containsKey("kind")) { | 7433 if (_json.containsKey("kind")) { |
7198 kind = _json["kind"]; | 7434 kind = _json["kind"]; |
7199 } | 7435 } |
7200 } | 7436 } |
7201 | 7437 |
7202 core.Map<core.String, core.Object> toJson() { | 7438 core.Map<core.String, core.Object> toJson() { |
7203 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7439 final core.Map<core.String, core.Object> _json = |
| 7440 new core.Map<core.String, core.Object>(); |
7204 if (kind != null) { | 7441 if (kind != null) { |
7205 _json["kind"] = kind; | 7442 _json["kind"] = kind; |
7206 } | 7443 } |
7207 return _json; | 7444 return _json; |
7208 } | 7445 } |
7209 } | 7446 } |
7210 | 7447 |
7211 class OrdersCancelLineItemRequest { | 7448 class OrdersCancelLineItemRequest { |
7212 /** | 7449 /// Amount to refund for the cancelation. Optional. If not set, Google will |
7213 * Amount to refund for the cancelation. Optional. If not set, Google will | 7450 /// calculate the default based on the price and tax of the items involved. |
7214 * calculate the default based on the price and tax of the items involved. The | 7451 /// The amount must not be larger than the net amount left on the order. |
7215 * amount must not be larger than the net amount left on the order. | |
7216 */ | |
7217 Price amount; | 7452 Price amount; |
7218 /** The ID of the line item to cancel. */ | 7453 |
| 7454 /// The ID of the line item to cancel. |
7219 core.String lineItemId; | 7455 core.String lineItemId; |
7220 /** | 7456 |
7221 * The ID of the operation. Unique across all operations for a given order. | 7457 /// The ID of the operation. Unique across all operations for a given order. |
7222 */ | |
7223 core.String operationId; | 7458 core.String operationId; |
7224 /** The quantity to cancel. */ | 7459 |
| 7460 /// The quantity to cancel. |
7225 core.int quantity; | 7461 core.int quantity; |
7226 /** The reason for the cancellation. */ | 7462 |
| 7463 /// The reason for the cancellation. |
7227 core.String reason; | 7464 core.String reason; |
7228 /** The explanation of the reason. */ | 7465 |
| 7466 /// The explanation of the reason. |
7229 core.String reasonText; | 7467 core.String reasonText; |
7230 | 7468 |
7231 OrdersCancelLineItemRequest(); | 7469 OrdersCancelLineItemRequest(); |
7232 | 7470 |
7233 OrdersCancelLineItemRequest.fromJson(core.Map _json) { | 7471 OrdersCancelLineItemRequest.fromJson(core.Map _json) { |
7234 if (_json.containsKey("amount")) { | 7472 if (_json.containsKey("amount")) { |
7235 amount = new Price.fromJson(_json["amount"]); | 7473 amount = new Price.fromJson(_json["amount"]); |
7236 } | 7474 } |
7237 if (_json.containsKey("lineItemId")) { | 7475 if (_json.containsKey("lineItemId")) { |
7238 lineItemId = _json["lineItemId"]; | 7476 lineItemId = _json["lineItemId"]; |
7239 } | 7477 } |
7240 if (_json.containsKey("operationId")) { | 7478 if (_json.containsKey("operationId")) { |
7241 operationId = _json["operationId"]; | 7479 operationId = _json["operationId"]; |
7242 } | 7480 } |
7243 if (_json.containsKey("quantity")) { | 7481 if (_json.containsKey("quantity")) { |
7244 quantity = _json["quantity"]; | 7482 quantity = _json["quantity"]; |
7245 } | 7483 } |
7246 if (_json.containsKey("reason")) { | 7484 if (_json.containsKey("reason")) { |
7247 reason = _json["reason"]; | 7485 reason = _json["reason"]; |
7248 } | 7486 } |
7249 if (_json.containsKey("reasonText")) { | 7487 if (_json.containsKey("reasonText")) { |
7250 reasonText = _json["reasonText"]; | 7488 reasonText = _json["reasonText"]; |
7251 } | 7489 } |
7252 } | 7490 } |
7253 | 7491 |
7254 core.Map<core.String, core.Object> toJson() { | 7492 core.Map<core.String, core.Object> toJson() { |
7255 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7493 final core.Map<core.String, core.Object> _json = |
| 7494 new core.Map<core.String, core.Object>(); |
7256 if (amount != null) { | 7495 if (amount != null) { |
7257 _json["amount"] = (amount).toJson(); | 7496 _json["amount"] = (amount).toJson(); |
7258 } | 7497 } |
7259 if (lineItemId != null) { | 7498 if (lineItemId != null) { |
7260 _json["lineItemId"] = lineItemId; | 7499 _json["lineItemId"] = lineItemId; |
7261 } | 7500 } |
7262 if (operationId != null) { | 7501 if (operationId != null) { |
7263 _json["operationId"] = operationId; | 7502 _json["operationId"] = operationId; |
7264 } | 7503 } |
7265 if (quantity != null) { | 7504 if (quantity != null) { |
7266 _json["quantity"] = quantity; | 7505 _json["quantity"] = quantity; |
7267 } | 7506 } |
7268 if (reason != null) { | 7507 if (reason != null) { |
7269 _json["reason"] = reason; | 7508 _json["reason"] = reason; |
7270 } | 7509 } |
7271 if (reasonText != null) { | 7510 if (reasonText != null) { |
7272 _json["reasonText"] = reasonText; | 7511 _json["reasonText"] = reasonText; |
7273 } | 7512 } |
7274 return _json; | 7513 return _json; |
7275 } | 7514 } |
7276 } | 7515 } |
7277 | 7516 |
7278 class OrdersCancelLineItemResponse { | 7517 class OrdersCancelLineItemResponse { |
7279 /** The status of the execution. */ | 7518 /// The status of the execution. |
7280 core.String executionStatus; | 7519 core.String executionStatus; |
7281 /** | 7520 |
7282 * Identifies what kind of resource this is. Value: the fixed string | 7521 /// Identifies what kind of resource this is. Value: the fixed string |
7283 * "content#ordersCancelLineItemResponse". | 7522 /// "content#ordersCancelLineItemResponse". |
7284 */ | |
7285 core.String kind; | 7523 core.String kind; |
7286 | 7524 |
7287 OrdersCancelLineItemResponse(); | 7525 OrdersCancelLineItemResponse(); |
7288 | 7526 |
7289 OrdersCancelLineItemResponse.fromJson(core.Map _json) { | 7527 OrdersCancelLineItemResponse.fromJson(core.Map _json) { |
7290 if (_json.containsKey("executionStatus")) { | 7528 if (_json.containsKey("executionStatus")) { |
7291 executionStatus = _json["executionStatus"]; | 7529 executionStatus = _json["executionStatus"]; |
7292 } | 7530 } |
7293 if (_json.containsKey("kind")) { | 7531 if (_json.containsKey("kind")) { |
7294 kind = _json["kind"]; | 7532 kind = _json["kind"]; |
7295 } | 7533 } |
7296 } | 7534 } |
7297 | 7535 |
7298 core.Map<core.String, core.Object> toJson() { | 7536 core.Map<core.String, core.Object> toJson() { |
7299 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7537 final core.Map<core.String, core.Object> _json = |
| 7538 new core.Map<core.String, core.Object>(); |
7300 if (executionStatus != null) { | 7539 if (executionStatus != null) { |
7301 _json["executionStatus"] = executionStatus; | 7540 _json["executionStatus"] = executionStatus; |
7302 } | 7541 } |
7303 if (kind != null) { | 7542 if (kind != null) { |
7304 _json["kind"] = kind; | 7543 _json["kind"] = kind; |
7305 } | 7544 } |
7306 return _json; | 7545 return _json; |
7307 } | 7546 } |
7308 } | 7547 } |
7309 | 7548 |
7310 class OrdersCancelRequest { | 7549 class OrdersCancelRequest { |
7311 /** | 7550 /// The ID of the operation. Unique across all operations for a given order. |
7312 * The ID of the operation. Unique across all operations for a given order. | |
7313 */ | |
7314 core.String operationId; | 7551 core.String operationId; |
7315 /** The reason for the cancellation. */ | 7552 |
| 7553 /// The reason for the cancellation. |
7316 core.String reason; | 7554 core.String reason; |
7317 /** The explanation of the reason. */ | 7555 |
| 7556 /// The explanation of the reason. |
7318 core.String reasonText; | 7557 core.String reasonText; |
7319 | 7558 |
7320 OrdersCancelRequest(); | 7559 OrdersCancelRequest(); |
7321 | 7560 |
7322 OrdersCancelRequest.fromJson(core.Map _json) { | 7561 OrdersCancelRequest.fromJson(core.Map _json) { |
7323 if (_json.containsKey("operationId")) { | 7562 if (_json.containsKey("operationId")) { |
7324 operationId = _json["operationId"]; | 7563 operationId = _json["operationId"]; |
7325 } | 7564 } |
7326 if (_json.containsKey("reason")) { | 7565 if (_json.containsKey("reason")) { |
7327 reason = _json["reason"]; | 7566 reason = _json["reason"]; |
7328 } | 7567 } |
7329 if (_json.containsKey("reasonText")) { | 7568 if (_json.containsKey("reasonText")) { |
7330 reasonText = _json["reasonText"]; | 7569 reasonText = _json["reasonText"]; |
7331 } | 7570 } |
7332 } | 7571 } |
7333 | 7572 |
7334 core.Map<core.String, core.Object> toJson() { | 7573 core.Map<core.String, core.Object> toJson() { |
7335 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7574 final core.Map<core.String, core.Object> _json = |
| 7575 new core.Map<core.String, core.Object>(); |
7336 if (operationId != null) { | 7576 if (operationId != null) { |
7337 _json["operationId"] = operationId; | 7577 _json["operationId"] = operationId; |
7338 } | 7578 } |
7339 if (reason != null) { | 7579 if (reason != null) { |
7340 _json["reason"] = reason; | 7580 _json["reason"] = reason; |
7341 } | 7581 } |
7342 if (reasonText != null) { | 7582 if (reasonText != null) { |
7343 _json["reasonText"] = reasonText; | 7583 _json["reasonText"] = reasonText; |
7344 } | 7584 } |
7345 return _json; | 7585 return _json; |
7346 } | 7586 } |
7347 } | 7587 } |
7348 | 7588 |
7349 class OrdersCancelResponse { | 7589 class OrdersCancelResponse { |
7350 /** The status of the execution. */ | 7590 /// The status of the execution. |
7351 core.String executionStatus; | 7591 core.String executionStatus; |
7352 /** | 7592 |
7353 * Identifies what kind of resource this is. Value: the fixed string | 7593 /// Identifies what kind of resource this is. Value: the fixed string |
7354 * "content#ordersCancelResponse". | 7594 /// "content#ordersCancelResponse". |
7355 */ | |
7356 core.String kind; | 7595 core.String kind; |
7357 | 7596 |
7358 OrdersCancelResponse(); | 7597 OrdersCancelResponse(); |
7359 | 7598 |
7360 OrdersCancelResponse.fromJson(core.Map _json) { | 7599 OrdersCancelResponse.fromJson(core.Map _json) { |
7361 if (_json.containsKey("executionStatus")) { | 7600 if (_json.containsKey("executionStatus")) { |
7362 executionStatus = _json["executionStatus"]; | 7601 executionStatus = _json["executionStatus"]; |
7363 } | 7602 } |
7364 if (_json.containsKey("kind")) { | 7603 if (_json.containsKey("kind")) { |
7365 kind = _json["kind"]; | 7604 kind = _json["kind"]; |
7366 } | 7605 } |
7367 } | 7606 } |
7368 | 7607 |
7369 core.Map<core.String, core.Object> toJson() { | 7608 core.Map<core.String, core.Object> toJson() { |
7370 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7609 final core.Map<core.String, core.Object> _json = |
| 7610 new core.Map<core.String, core.Object>(); |
7371 if (executionStatus != null) { | 7611 if (executionStatus != null) { |
7372 _json["executionStatus"] = executionStatus; | 7612 _json["executionStatus"] = executionStatus; |
7373 } | 7613 } |
7374 if (kind != null) { | 7614 if (kind != null) { |
7375 _json["kind"] = kind; | 7615 _json["kind"] = kind; |
7376 } | 7616 } |
7377 return _json; | 7617 return _json; |
7378 } | 7618 } |
7379 } | 7619 } |
7380 | 7620 |
7381 class OrdersCreateTestOrderRequest { | 7621 class OrdersCreateTestOrderRequest { |
7382 /** | 7622 /// The test order template to use. Specify as an alternative to testOrder as |
7383 * The test order template to use. Specify as an alternative to testOrder as a | 7623 /// a shortcut for retrieving a template and then creating an order using |
7384 * shortcut for retrieving a template and then creating an order using that | 7624 /// that template. |
7385 * template. | |
7386 */ | |
7387 core.String templateName; | 7625 core.String templateName; |
7388 /** The test order to create. */ | 7626 |
| 7627 /// The test order to create. |
7389 TestOrder testOrder; | 7628 TestOrder testOrder; |
7390 | 7629 |
7391 OrdersCreateTestOrderRequest(); | 7630 OrdersCreateTestOrderRequest(); |
7392 | 7631 |
7393 OrdersCreateTestOrderRequest.fromJson(core.Map _json) { | 7632 OrdersCreateTestOrderRequest.fromJson(core.Map _json) { |
7394 if (_json.containsKey("templateName")) { | 7633 if (_json.containsKey("templateName")) { |
7395 templateName = _json["templateName"]; | 7634 templateName = _json["templateName"]; |
7396 } | 7635 } |
7397 if (_json.containsKey("testOrder")) { | 7636 if (_json.containsKey("testOrder")) { |
7398 testOrder = new TestOrder.fromJson(_json["testOrder"]); | 7637 testOrder = new TestOrder.fromJson(_json["testOrder"]); |
7399 } | 7638 } |
7400 } | 7639 } |
7401 | 7640 |
7402 core.Map<core.String, core.Object> toJson() { | 7641 core.Map<core.String, core.Object> toJson() { |
7403 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7642 final core.Map<core.String, core.Object> _json = |
| 7643 new core.Map<core.String, core.Object>(); |
7404 if (templateName != null) { | 7644 if (templateName != null) { |
7405 _json["templateName"] = templateName; | 7645 _json["templateName"] = templateName; |
7406 } | 7646 } |
7407 if (testOrder != null) { | 7647 if (testOrder != null) { |
7408 _json["testOrder"] = (testOrder).toJson(); | 7648 _json["testOrder"] = (testOrder).toJson(); |
7409 } | 7649 } |
7410 return _json; | 7650 return _json; |
7411 } | 7651 } |
7412 } | 7652 } |
7413 | 7653 |
7414 class OrdersCreateTestOrderResponse { | 7654 class OrdersCreateTestOrderResponse { |
7415 /** | 7655 /// Identifies what kind of resource this is. Value: the fixed string |
7416 * Identifies what kind of resource this is. Value: the fixed string | 7656 /// "content#ordersCreateTestOrderResponse". |
7417 * "content#ordersCreateTestOrderResponse". | |
7418 */ | |
7419 core.String kind; | 7657 core.String kind; |
7420 /** The ID of the newly created test order. */ | 7658 |
| 7659 /// The ID of the newly created test order. |
7421 core.String orderId; | 7660 core.String orderId; |
7422 | 7661 |
7423 OrdersCreateTestOrderResponse(); | 7662 OrdersCreateTestOrderResponse(); |
7424 | 7663 |
7425 OrdersCreateTestOrderResponse.fromJson(core.Map _json) { | 7664 OrdersCreateTestOrderResponse.fromJson(core.Map _json) { |
7426 if (_json.containsKey("kind")) { | 7665 if (_json.containsKey("kind")) { |
7427 kind = _json["kind"]; | 7666 kind = _json["kind"]; |
7428 } | 7667 } |
7429 if (_json.containsKey("orderId")) { | 7668 if (_json.containsKey("orderId")) { |
7430 orderId = _json["orderId"]; | 7669 orderId = _json["orderId"]; |
7431 } | 7670 } |
7432 } | 7671 } |
7433 | 7672 |
7434 core.Map<core.String, core.Object> toJson() { | 7673 core.Map<core.String, core.Object> toJson() { |
7435 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7674 final core.Map<core.String, core.Object> _json = |
| 7675 new core.Map<core.String, core.Object>(); |
7436 if (kind != null) { | 7676 if (kind != null) { |
7437 _json["kind"] = kind; | 7677 _json["kind"] = kind; |
7438 } | 7678 } |
7439 if (orderId != null) { | 7679 if (orderId != null) { |
7440 _json["orderId"] = orderId; | 7680 _json["orderId"] = orderId; |
7441 } | 7681 } |
7442 return _json; | 7682 return _json; |
7443 } | 7683 } |
7444 } | 7684 } |
7445 | 7685 |
7446 class OrdersCustomBatchRequest { | 7686 class OrdersCustomBatchRequest { |
7447 /** The request entries to be processed in the batch. */ | 7687 /// The request entries to be processed in the batch. |
7448 core.List<OrdersCustomBatchRequestEntry> entries; | 7688 core.List<OrdersCustomBatchRequestEntry> entries; |
7449 | 7689 |
7450 OrdersCustomBatchRequest(); | 7690 OrdersCustomBatchRequest(); |
7451 | 7691 |
7452 OrdersCustomBatchRequest.fromJson(core.Map _json) { | 7692 OrdersCustomBatchRequest.fromJson(core.Map _json) { |
7453 if (_json.containsKey("entries")) { | 7693 if (_json.containsKey("entries")) { |
7454 entries = _json["entries"].map((value) => new OrdersCustomBatchRequestEntr
y.fromJson(value)).toList(); | 7694 entries = _json["entries"] |
| 7695 .map((value) => new OrdersCustomBatchRequestEntry.fromJson(value)) |
| 7696 .toList(); |
7455 } | 7697 } |
7456 } | 7698 } |
7457 | 7699 |
7458 core.Map<core.String, core.Object> toJson() { | 7700 core.Map<core.String, core.Object> toJson() { |
7459 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7701 final core.Map<core.String, core.Object> _json = |
| 7702 new core.Map<core.String, core.Object>(); |
7460 if (entries != null) { | 7703 if (entries != null) { |
7461 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 7704 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
7462 } | 7705 } |
7463 return _json; | 7706 return _json; |
7464 } | 7707 } |
7465 } | 7708 } |
7466 | 7709 |
7467 class OrdersCustomBatchRequestEntry { | 7710 class OrdersCustomBatchRequestEntry { |
7468 /** An entry ID, unique within the batch request. */ | 7711 /// An entry ID, unique within the batch request. |
7469 core.int batchId; | 7712 core.int batchId; |
7470 /** Required for cancel method. */ | 7713 |
| 7714 /// Required for cancel method. |
7471 OrdersCustomBatchRequestEntryCancel cancel; | 7715 OrdersCustomBatchRequestEntryCancel cancel; |
7472 /** Required for cancelLineItem method. */ | 7716 |
| 7717 /// Required for cancelLineItem method. |
7473 OrdersCustomBatchRequestEntryCancelLineItem cancelLineItem; | 7718 OrdersCustomBatchRequestEntryCancelLineItem cancelLineItem; |
7474 /** The ID of the managing account. */ | 7719 |
| 7720 /// The ID of the managing account. |
7475 core.String merchantId; | 7721 core.String merchantId; |
7476 /** | 7722 |
7477 * The merchant order id. Required for updateMerchantOrderId and | 7723 /// The merchant order id. Required for updateMerchantOrderId and |
7478 * getByMerchantOrderId methods. | 7724 /// getByMerchantOrderId methods. |
7479 */ | |
7480 core.String merchantOrderId; | 7725 core.String merchantOrderId; |
7481 /** The method to apply. */ | 7726 |
| 7727 /// The method to apply. |
7482 core.String method; | 7728 core.String method; |
7483 /** | 7729 |
7484 * The ID of the operation. Unique across all operations for a given order. | 7730 /// The ID of the operation. Unique across all operations for a given order. |
7485 * Required for all methods beside get and getByMerchantOrderId. | 7731 /// Required for all methods beside get and getByMerchantOrderId. |
7486 */ | |
7487 core.String operationId; | 7732 core.String operationId; |
7488 /** | 7733 |
7489 * The ID of the order. Required for all methods beside getByMerchantOrderId. | 7734 /// The ID of the order. Required for all methods beside |
7490 */ | 7735 /// getByMerchantOrderId. |
7491 core.String orderId; | 7736 core.String orderId; |
7492 /** Required for refund method. */ | 7737 |
| 7738 /// Required for refund method. |
7493 OrdersCustomBatchRequestEntryRefund refund; | 7739 OrdersCustomBatchRequestEntryRefund refund; |
7494 /** Required for returnLineItem method. */ | 7740 |
| 7741 /// Required for returnLineItem method. |
7495 OrdersCustomBatchRequestEntryReturnLineItem returnLineItem; | 7742 OrdersCustomBatchRequestEntryReturnLineItem returnLineItem; |
7496 /** Required for shipLineItems method. */ | 7743 |
| 7744 /// Required for shipLineItems method. |
7497 OrdersCustomBatchRequestEntryShipLineItems shipLineItems; | 7745 OrdersCustomBatchRequestEntryShipLineItems shipLineItems; |
7498 /** Required for updateShipment method. */ | 7746 |
| 7747 /// Required for updateShipment method. |
7499 OrdersCustomBatchRequestEntryUpdateShipment updateShipment; | 7748 OrdersCustomBatchRequestEntryUpdateShipment updateShipment; |
7500 | 7749 |
7501 OrdersCustomBatchRequestEntry(); | 7750 OrdersCustomBatchRequestEntry(); |
7502 | 7751 |
7503 OrdersCustomBatchRequestEntry.fromJson(core.Map _json) { | 7752 OrdersCustomBatchRequestEntry.fromJson(core.Map _json) { |
7504 if (_json.containsKey("batchId")) { | 7753 if (_json.containsKey("batchId")) { |
7505 batchId = _json["batchId"]; | 7754 batchId = _json["batchId"]; |
7506 } | 7755 } |
7507 if (_json.containsKey("cancel")) { | 7756 if (_json.containsKey("cancel")) { |
7508 cancel = new OrdersCustomBatchRequestEntryCancel.fromJson(_json["cancel"])
; | 7757 cancel = |
| 7758 new OrdersCustomBatchRequestEntryCancel.fromJson(_json["cancel"]); |
7509 } | 7759 } |
7510 if (_json.containsKey("cancelLineItem")) { | 7760 if (_json.containsKey("cancelLineItem")) { |
7511 cancelLineItem = new OrdersCustomBatchRequestEntryCancelLineItem.fromJson(
_json["cancelLineItem"]); | 7761 cancelLineItem = new OrdersCustomBatchRequestEntryCancelLineItem.fromJson( |
| 7762 _json["cancelLineItem"]); |
7512 } | 7763 } |
7513 if (_json.containsKey("merchantId")) { | 7764 if (_json.containsKey("merchantId")) { |
7514 merchantId = _json["merchantId"]; | 7765 merchantId = _json["merchantId"]; |
7515 } | 7766 } |
7516 if (_json.containsKey("merchantOrderId")) { | 7767 if (_json.containsKey("merchantOrderId")) { |
7517 merchantOrderId = _json["merchantOrderId"]; | 7768 merchantOrderId = _json["merchantOrderId"]; |
7518 } | 7769 } |
7519 if (_json.containsKey("method")) { | 7770 if (_json.containsKey("method")) { |
7520 method = _json["method"]; | 7771 method = _json["method"]; |
7521 } | 7772 } |
7522 if (_json.containsKey("operationId")) { | 7773 if (_json.containsKey("operationId")) { |
7523 operationId = _json["operationId"]; | 7774 operationId = _json["operationId"]; |
7524 } | 7775 } |
7525 if (_json.containsKey("orderId")) { | 7776 if (_json.containsKey("orderId")) { |
7526 orderId = _json["orderId"]; | 7777 orderId = _json["orderId"]; |
7527 } | 7778 } |
7528 if (_json.containsKey("refund")) { | 7779 if (_json.containsKey("refund")) { |
7529 refund = new OrdersCustomBatchRequestEntryRefund.fromJson(_json["refund"])
; | 7780 refund = |
| 7781 new OrdersCustomBatchRequestEntryRefund.fromJson(_json["refund"]); |
7530 } | 7782 } |
7531 if (_json.containsKey("returnLineItem")) { | 7783 if (_json.containsKey("returnLineItem")) { |
7532 returnLineItem = new OrdersCustomBatchRequestEntryReturnLineItem.fromJson(
_json["returnLineItem"]); | 7784 returnLineItem = new OrdersCustomBatchRequestEntryReturnLineItem.fromJson( |
| 7785 _json["returnLineItem"]); |
7533 } | 7786 } |
7534 if (_json.containsKey("shipLineItems")) { | 7787 if (_json.containsKey("shipLineItems")) { |
7535 shipLineItems = new OrdersCustomBatchRequestEntryShipLineItems.fromJson(_j
son["shipLineItems"]); | 7788 shipLineItems = new OrdersCustomBatchRequestEntryShipLineItems.fromJson( |
| 7789 _json["shipLineItems"]); |
7536 } | 7790 } |
7537 if (_json.containsKey("updateShipment")) { | 7791 if (_json.containsKey("updateShipment")) { |
7538 updateShipment = new OrdersCustomBatchRequestEntryUpdateShipment.fromJson(
_json["updateShipment"]); | 7792 updateShipment = new OrdersCustomBatchRequestEntryUpdateShipment.fromJson( |
| 7793 _json["updateShipment"]); |
7539 } | 7794 } |
7540 } | 7795 } |
7541 | 7796 |
7542 core.Map<core.String, core.Object> toJson() { | 7797 core.Map<core.String, core.Object> toJson() { |
7543 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7798 final core.Map<core.String, core.Object> _json = |
| 7799 new core.Map<core.String, core.Object>(); |
7544 if (batchId != null) { | 7800 if (batchId != null) { |
7545 _json["batchId"] = batchId; | 7801 _json["batchId"] = batchId; |
7546 } | 7802 } |
7547 if (cancel != null) { | 7803 if (cancel != null) { |
7548 _json["cancel"] = (cancel).toJson(); | 7804 _json["cancel"] = (cancel).toJson(); |
7549 } | 7805 } |
7550 if (cancelLineItem != null) { | 7806 if (cancelLineItem != null) { |
7551 _json["cancelLineItem"] = (cancelLineItem).toJson(); | 7807 _json["cancelLineItem"] = (cancelLineItem).toJson(); |
7552 } | 7808 } |
7553 if (merchantId != null) { | 7809 if (merchantId != null) { |
(...skipping 21 matching lines...) Expand all Loading... |
7575 _json["shipLineItems"] = (shipLineItems).toJson(); | 7831 _json["shipLineItems"] = (shipLineItems).toJson(); |
7576 } | 7832 } |
7577 if (updateShipment != null) { | 7833 if (updateShipment != null) { |
7578 _json["updateShipment"] = (updateShipment).toJson(); | 7834 _json["updateShipment"] = (updateShipment).toJson(); |
7579 } | 7835 } |
7580 return _json; | 7836 return _json; |
7581 } | 7837 } |
7582 } | 7838 } |
7583 | 7839 |
7584 class OrdersCustomBatchRequestEntryCancel { | 7840 class OrdersCustomBatchRequestEntryCancel { |
7585 /** The reason for the cancellation. */ | 7841 /// The reason for the cancellation. |
7586 core.String reason; | 7842 core.String reason; |
7587 /** The explanation of the reason. */ | 7843 |
| 7844 /// The explanation of the reason. |
7588 core.String reasonText; | 7845 core.String reasonText; |
7589 | 7846 |
7590 OrdersCustomBatchRequestEntryCancel(); | 7847 OrdersCustomBatchRequestEntryCancel(); |
7591 | 7848 |
7592 OrdersCustomBatchRequestEntryCancel.fromJson(core.Map _json) { | 7849 OrdersCustomBatchRequestEntryCancel.fromJson(core.Map _json) { |
7593 if (_json.containsKey("reason")) { | 7850 if (_json.containsKey("reason")) { |
7594 reason = _json["reason"]; | 7851 reason = _json["reason"]; |
7595 } | 7852 } |
7596 if (_json.containsKey("reasonText")) { | 7853 if (_json.containsKey("reasonText")) { |
7597 reasonText = _json["reasonText"]; | 7854 reasonText = _json["reasonText"]; |
7598 } | 7855 } |
7599 } | 7856 } |
7600 | 7857 |
7601 core.Map<core.String, core.Object> toJson() { | 7858 core.Map<core.String, core.Object> toJson() { |
7602 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7859 final core.Map<core.String, core.Object> _json = |
| 7860 new core.Map<core.String, core.Object>(); |
7603 if (reason != null) { | 7861 if (reason != null) { |
7604 _json["reason"] = reason; | 7862 _json["reason"] = reason; |
7605 } | 7863 } |
7606 if (reasonText != null) { | 7864 if (reasonText != null) { |
7607 _json["reasonText"] = reasonText; | 7865 _json["reasonText"] = reasonText; |
7608 } | 7866 } |
7609 return _json; | 7867 return _json; |
7610 } | 7868 } |
7611 } | 7869 } |
7612 | 7870 |
7613 class OrdersCustomBatchRequestEntryCancelLineItem { | 7871 class OrdersCustomBatchRequestEntryCancelLineItem { |
7614 /** | 7872 /// Amount to refund for the cancelation. Optional. If not set, Google will |
7615 * Amount to refund for the cancelation. Optional. If not set, Google will | 7873 /// calculate the default based on the price and tax of the items involved. |
7616 * calculate the default based on the price and tax of the items involved. The | 7874 /// The amount must not be larger than the net amount left on the order. |
7617 * amount must not be larger than the net amount left on the order. | |
7618 */ | |
7619 Price amount; | 7875 Price amount; |
7620 /** The ID of the line item to cancel. */ | 7876 |
| 7877 /// The ID of the line item to cancel. |
7621 core.String lineItemId; | 7878 core.String lineItemId; |
7622 /** The quantity to cancel. */ | 7879 |
| 7880 /// The quantity to cancel. |
7623 core.int quantity; | 7881 core.int quantity; |
7624 /** The reason for the cancellation. */ | 7882 |
| 7883 /// The reason for the cancellation. |
7625 core.String reason; | 7884 core.String reason; |
7626 /** The explanation of the reason. */ | 7885 |
| 7886 /// The explanation of the reason. |
7627 core.String reasonText; | 7887 core.String reasonText; |
7628 | 7888 |
7629 OrdersCustomBatchRequestEntryCancelLineItem(); | 7889 OrdersCustomBatchRequestEntryCancelLineItem(); |
7630 | 7890 |
7631 OrdersCustomBatchRequestEntryCancelLineItem.fromJson(core.Map _json) { | 7891 OrdersCustomBatchRequestEntryCancelLineItem.fromJson(core.Map _json) { |
7632 if (_json.containsKey("amount")) { | 7892 if (_json.containsKey("amount")) { |
7633 amount = new Price.fromJson(_json["amount"]); | 7893 amount = new Price.fromJson(_json["amount"]); |
7634 } | 7894 } |
7635 if (_json.containsKey("lineItemId")) { | 7895 if (_json.containsKey("lineItemId")) { |
7636 lineItemId = _json["lineItemId"]; | 7896 lineItemId = _json["lineItemId"]; |
7637 } | 7897 } |
7638 if (_json.containsKey("quantity")) { | 7898 if (_json.containsKey("quantity")) { |
7639 quantity = _json["quantity"]; | 7899 quantity = _json["quantity"]; |
7640 } | 7900 } |
7641 if (_json.containsKey("reason")) { | 7901 if (_json.containsKey("reason")) { |
7642 reason = _json["reason"]; | 7902 reason = _json["reason"]; |
7643 } | 7903 } |
7644 if (_json.containsKey("reasonText")) { | 7904 if (_json.containsKey("reasonText")) { |
7645 reasonText = _json["reasonText"]; | 7905 reasonText = _json["reasonText"]; |
7646 } | 7906 } |
7647 } | 7907 } |
7648 | 7908 |
7649 core.Map<core.String, core.Object> toJson() { | 7909 core.Map<core.String, core.Object> toJson() { |
7650 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7910 final core.Map<core.String, core.Object> _json = |
| 7911 new core.Map<core.String, core.Object>(); |
7651 if (amount != null) { | 7912 if (amount != null) { |
7652 _json["amount"] = (amount).toJson(); | 7913 _json["amount"] = (amount).toJson(); |
7653 } | 7914 } |
7654 if (lineItemId != null) { | 7915 if (lineItemId != null) { |
7655 _json["lineItemId"] = lineItemId; | 7916 _json["lineItemId"] = lineItemId; |
7656 } | 7917 } |
7657 if (quantity != null) { | 7918 if (quantity != null) { |
7658 _json["quantity"] = quantity; | 7919 _json["quantity"] = quantity; |
7659 } | 7920 } |
7660 if (reason != null) { | 7921 if (reason != null) { |
7661 _json["reason"] = reason; | 7922 _json["reason"] = reason; |
7662 } | 7923 } |
7663 if (reasonText != null) { | 7924 if (reasonText != null) { |
7664 _json["reasonText"] = reasonText; | 7925 _json["reasonText"] = reasonText; |
7665 } | 7926 } |
7666 return _json; | 7927 return _json; |
7667 } | 7928 } |
7668 } | 7929 } |
7669 | 7930 |
7670 class OrdersCustomBatchRequestEntryRefund { | 7931 class OrdersCustomBatchRequestEntryRefund { |
7671 /** The amount that is refunded. */ | 7932 /// The amount that is refunded. |
7672 Price amount; | 7933 Price amount; |
7673 /** The reason for the refund. */ | 7934 |
| 7935 /// The reason for the refund. |
7674 core.String reason; | 7936 core.String reason; |
7675 /** The explanation of the reason. */ | 7937 |
| 7938 /// The explanation of the reason. |
7676 core.String reasonText; | 7939 core.String reasonText; |
7677 | 7940 |
7678 OrdersCustomBatchRequestEntryRefund(); | 7941 OrdersCustomBatchRequestEntryRefund(); |
7679 | 7942 |
7680 OrdersCustomBatchRequestEntryRefund.fromJson(core.Map _json) { | 7943 OrdersCustomBatchRequestEntryRefund.fromJson(core.Map _json) { |
7681 if (_json.containsKey("amount")) { | 7944 if (_json.containsKey("amount")) { |
7682 amount = new Price.fromJson(_json["amount"]); | 7945 amount = new Price.fromJson(_json["amount"]); |
7683 } | 7946 } |
7684 if (_json.containsKey("reason")) { | 7947 if (_json.containsKey("reason")) { |
7685 reason = _json["reason"]; | 7948 reason = _json["reason"]; |
7686 } | 7949 } |
7687 if (_json.containsKey("reasonText")) { | 7950 if (_json.containsKey("reasonText")) { |
7688 reasonText = _json["reasonText"]; | 7951 reasonText = _json["reasonText"]; |
7689 } | 7952 } |
7690 } | 7953 } |
7691 | 7954 |
7692 core.Map<core.String, core.Object> toJson() { | 7955 core.Map<core.String, core.Object> toJson() { |
7693 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7956 final core.Map<core.String, core.Object> _json = |
| 7957 new core.Map<core.String, core.Object>(); |
7694 if (amount != null) { | 7958 if (amount != null) { |
7695 _json["amount"] = (amount).toJson(); | 7959 _json["amount"] = (amount).toJson(); |
7696 } | 7960 } |
7697 if (reason != null) { | 7961 if (reason != null) { |
7698 _json["reason"] = reason; | 7962 _json["reason"] = reason; |
7699 } | 7963 } |
7700 if (reasonText != null) { | 7964 if (reasonText != null) { |
7701 _json["reasonText"] = reasonText; | 7965 _json["reasonText"] = reasonText; |
7702 } | 7966 } |
7703 return _json; | 7967 return _json; |
7704 } | 7968 } |
7705 } | 7969 } |
7706 | 7970 |
7707 class OrdersCustomBatchRequestEntryReturnLineItem { | 7971 class OrdersCustomBatchRequestEntryReturnLineItem { |
7708 /** The ID of the line item to return. */ | 7972 /// The ID of the line item to return. |
7709 core.String lineItemId; | 7973 core.String lineItemId; |
7710 /** The quantity to return. */ | 7974 |
| 7975 /// The quantity to return. |
7711 core.int quantity; | 7976 core.int quantity; |
7712 /** The reason for the return. */ | 7977 |
| 7978 /// The reason for the return. |
7713 core.String reason; | 7979 core.String reason; |
7714 /** The explanation of the reason. */ | 7980 |
| 7981 /// The explanation of the reason. |
7715 core.String reasonText; | 7982 core.String reasonText; |
7716 | 7983 |
7717 OrdersCustomBatchRequestEntryReturnLineItem(); | 7984 OrdersCustomBatchRequestEntryReturnLineItem(); |
7718 | 7985 |
7719 OrdersCustomBatchRequestEntryReturnLineItem.fromJson(core.Map _json) { | 7986 OrdersCustomBatchRequestEntryReturnLineItem.fromJson(core.Map _json) { |
7720 if (_json.containsKey("lineItemId")) { | 7987 if (_json.containsKey("lineItemId")) { |
7721 lineItemId = _json["lineItemId"]; | 7988 lineItemId = _json["lineItemId"]; |
7722 } | 7989 } |
7723 if (_json.containsKey("quantity")) { | 7990 if (_json.containsKey("quantity")) { |
7724 quantity = _json["quantity"]; | 7991 quantity = _json["quantity"]; |
7725 } | 7992 } |
7726 if (_json.containsKey("reason")) { | 7993 if (_json.containsKey("reason")) { |
7727 reason = _json["reason"]; | 7994 reason = _json["reason"]; |
7728 } | 7995 } |
7729 if (_json.containsKey("reasonText")) { | 7996 if (_json.containsKey("reasonText")) { |
7730 reasonText = _json["reasonText"]; | 7997 reasonText = _json["reasonText"]; |
7731 } | 7998 } |
7732 } | 7999 } |
7733 | 8000 |
7734 core.Map<core.String, core.Object> toJson() { | 8001 core.Map<core.String, core.Object> toJson() { |
7735 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8002 final core.Map<core.String, core.Object> _json = |
| 8003 new core.Map<core.String, core.Object>(); |
7736 if (lineItemId != null) { | 8004 if (lineItemId != null) { |
7737 _json["lineItemId"] = lineItemId; | 8005 _json["lineItemId"] = lineItemId; |
7738 } | 8006 } |
7739 if (quantity != null) { | 8007 if (quantity != null) { |
7740 _json["quantity"] = quantity; | 8008 _json["quantity"] = quantity; |
7741 } | 8009 } |
7742 if (reason != null) { | 8010 if (reason != null) { |
7743 _json["reason"] = reason; | 8011 _json["reason"] = reason; |
7744 } | 8012 } |
7745 if (reasonText != null) { | 8013 if (reasonText != null) { |
7746 _json["reasonText"] = reasonText; | 8014 _json["reasonText"] = reasonText; |
7747 } | 8015 } |
7748 return _json; | 8016 return _json; |
7749 } | 8017 } |
7750 } | 8018 } |
7751 | 8019 |
7752 class OrdersCustomBatchRequestEntryShipLineItems { | 8020 class OrdersCustomBatchRequestEntryShipLineItems { |
7753 /** The carrier handling the shipment. */ | 8021 /// The carrier handling the shipment. |
7754 core.String carrier; | 8022 core.String carrier; |
7755 /** Line items to ship. */ | 8023 |
| 8024 /// Line items to ship. |
7756 core.List<OrderShipmentLineItemShipment> lineItems; | 8025 core.List<OrderShipmentLineItemShipment> lineItems; |
7757 /** The ID of the shipment. */ | 8026 |
| 8027 /// The ID of the shipment. |
7758 core.String shipmentId; | 8028 core.String shipmentId; |
7759 /** The tracking id for the shipment. */ | 8029 |
| 8030 /// The tracking id for the shipment. |
7760 core.String trackingId; | 8031 core.String trackingId; |
7761 | 8032 |
7762 OrdersCustomBatchRequestEntryShipLineItems(); | 8033 OrdersCustomBatchRequestEntryShipLineItems(); |
7763 | 8034 |
7764 OrdersCustomBatchRequestEntryShipLineItems.fromJson(core.Map _json) { | 8035 OrdersCustomBatchRequestEntryShipLineItems.fromJson(core.Map _json) { |
7765 if (_json.containsKey("carrier")) { | 8036 if (_json.containsKey("carrier")) { |
7766 carrier = _json["carrier"]; | 8037 carrier = _json["carrier"]; |
7767 } | 8038 } |
7768 if (_json.containsKey("lineItems")) { | 8039 if (_json.containsKey("lineItems")) { |
7769 lineItems = _json["lineItems"].map((value) => new OrderShipmentLineItemShi
pment.fromJson(value)).toList(); | 8040 lineItems = _json["lineItems"] |
| 8041 .map((value) => new OrderShipmentLineItemShipment.fromJson(value)) |
| 8042 .toList(); |
7770 } | 8043 } |
7771 if (_json.containsKey("shipmentId")) { | 8044 if (_json.containsKey("shipmentId")) { |
7772 shipmentId = _json["shipmentId"]; | 8045 shipmentId = _json["shipmentId"]; |
7773 } | 8046 } |
7774 if (_json.containsKey("trackingId")) { | 8047 if (_json.containsKey("trackingId")) { |
7775 trackingId = _json["trackingId"]; | 8048 trackingId = _json["trackingId"]; |
7776 } | 8049 } |
7777 } | 8050 } |
7778 | 8051 |
7779 core.Map<core.String, core.Object> toJson() { | 8052 core.Map<core.String, core.Object> toJson() { |
7780 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8053 final core.Map<core.String, core.Object> _json = |
| 8054 new core.Map<core.String, core.Object>(); |
7781 if (carrier != null) { | 8055 if (carrier != null) { |
7782 _json["carrier"] = carrier; | 8056 _json["carrier"] = carrier; |
7783 } | 8057 } |
7784 if (lineItems != null) { | 8058 if (lineItems != null) { |
7785 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList(); | 8059 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList(); |
7786 } | 8060 } |
7787 if (shipmentId != null) { | 8061 if (shipmentId != null) { |
7788 _json["shipmentId"] = shipmentId; | 8062 _json["shipmentId"] = shipmentId; |
7789 } | 8063 } |
7790 if (trackingId != null) { | 8064 if (trackingId != null) { |
7791 _json["trackingId"] = trackingId; | 8065 _json["trackingId"] = trackingId; |
7792 } | 8066 } |
7793 return _json; | 8067 return _json; |
7794 } | 8068 } |
7795 } | 8069 } |
7796 | 8070 |
7797 class OrdersCustomBatchRequestEntryUpdateShipment { | 8071 class OrdersCustomBatchRequestEntryUpdateShipment { |
7798 /** The carrier handling the shipment. Not updated if missing. */ | 8072 /// The carrier handling the shipment. Not updated if missing. |
7799 core.String carrier; | 8073 core.String carrier; |
7800 /** The ID of the shipment. */ | 8074 |
| 8075 /// The ID of the shipment. |
7801 core.String shipmentId; | 8076 core.String shipmentId; |
7802 /** New status for the shipment. Not updated if missing. */ | 8077 |
| 8078 /// New status for the shipment. Not updated if missing. |
7803 core.String status; | 8079 core.String status; |
7804 /** The tracking id for the shipment. Not updated if missing. */ | 8080 |
| 8081 /// The tracking id for the shipment. Not updated if missing. |
7805 core.String trackingId; | 8082 core.String trackingId; |
7806 | 8083 |
7807 OrdersCustomBatchRequestEntryUpdateShipment(); | 8084 OrdersCustomBatchRequestEntryUpdateShipment(); |
7808 | 8085 |
7809 OrdersCustomBatchRequestEntryUpdateShipment.fromJson(core.Map _json) { | 8086 OrdersCustomBatchRequestEntryUpdateShipment.fromJson(core.Map _json) { |
7810 if (_json.containsKey("carrier")) { | 8087 if (_json.containsKey("carrier")) { |
7811 carrier = _json["carrier"]; | 8088 carrier = _json["carrier"]; |
7812 } | 8089 } |
7813 if (_json.containsKey("shipmentId")) { | 8090 if (_json.containsKey("shipmentId")) { |
7814 shipmentId = _json["shipmentId"]; | 8091 shipmentId = _json["shipmentId"]; |
7815 } | 8092 } |
7816 if (_json.containsKey("status")) { | 8093 if (_json.containsKey("status")) { |
7817 status = _json["status"]; | 8094 status = _json["status"]; |
7818 } | 8095 } |
7819 if (_json.containsKey("trackingId")) { | 8096 if (_json.containsKey("trackingId")) { |
7820 trackingId = _json["trackingId"]; | 8097 trackingId = _json["trackingId"]; |
7821 } | 8098 } |
7822 } | 8099 } |
7823 | 8100 |
7824 core.Map<core.String, core.Object> toJson() { | 8101 core.Map<core.String, core.Object> toJson() { |
7825 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8102 final core.Map<core.String, core.Object> _json = |
| 8103 new core.Map<core.String, core.Object>(); |
7826 if (carrier != null) { | 8104 if (carrier != null) { |
7827 _json["carrier"] = carrier; | 8105 _json["carrier"] = carrier; |
7828 } | 8106 } |
7829 if (shipmentId != null) { | 8107 if (shipmentId != null) { |
7830 _json["shipmentId"] = shipmentId; | 8108 _json["shipmentId"] = shipmentId; |
7831 } | 8109 } |
7832 if (status != null) { | 8110 if (status != null) { |
7833 _json["status"] = status; | 8111 _json["status"] = status; |
7834 } | 8112 } |
7835 if (trackingId != null) { | 8113 if (trackingId != null) { |
7836 _json["trackingId"] = trackingId; | 8114 _json["trackingId"] = trackingId; |
7837 } | 8115 } |
7838 return _json; | 8116 return _json; |
7839 } | 8117 } |
7840 } | 8118 } |
7841 | 8119 |
7842 class OrdersCustomBatchResponse { | 8120 class OrdersCustomBatchResponse { |
7843 /** The result of the execution of the batch requests. */ | 8121 /// The result of the execution of the batch requests. |
7844 core.List<OrdersCustomBatchResponseEntry> entries; | 8122 core.List<OrdersCustomBatchResponseEntry> entries; |
7845 /** | 8123 |
7846 * Identifies what kind of resource this is. Value: the fixed string | 8124 /// Identifies what kind of resource this is. Value: the fixed string |
7847 * "content#ordersCustomBatchResponse". | 8125 /// "content#ordersCustomBatchResponse". |
7848 */ | |
7849 core.String kind; | 8126 core.String kind; |
7850 | 8127 |
7851 OrdersCustomBatchResponse(); | 8128 OrdersCustomBatchResponse(); |
7852 | 8129 |
7853 OrdersCustomBatchResponse.fromJson(core.Map _json) { | 8130 OrdersCustomBatchResponse.fromJson(core.Map _json) { |
7854 if (_json.containsKey("entries")) { | 8131 if (_json.containsKey("entries")) { |
7855 entries = _json["entries"].map((value) => new OrdersCustomBatchResponseEnt
ry.fromJson(value)).toList(); | 8132 entries = _json["entries"] |
| 8133 .map((value) => new OrdersCustomBatchResponseEntry.fromJson(value)) |
| 8134 .toList(); |
7856 } | 8135 } |
7857 if (_json.containsKey("kind")) { | 8136 if (_json.containsKey("kind")) { |
7858 kind = _json["kind"]; | 8137 kind = _json["kind"]; |
7859 } | 8138 } |
7860 } | 8139 } |
7861 | 8140 |
7862 core.Map<core.String, core.Object> toJson() { | 8141 core.Map<core.String, core.Object> toJson() { |
7863 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8142 final core.Map<core.String, core.Object> _json = |
| 8143 new core.Map<core.String, core.Object>(); |
7864 if (entries != null) { | 8144 if (entries != null) { |
7865 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 8145 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
7866 } | 8146 } |
7867 if (kind != null) { | 8147 if (kind != null) { |
7868 _json["kind"] = kind; | 8148 _json["kind"] = kind; |
7869 } | 8149 } |
7870 return _json; | 8150 return _json; |
7871 } | 8151 } |
7872 } | 8152 } |
7873 | 8153 |
7874 class OrdersCustomBatchResponseEntry { | 8154 class OrdersCustomBatchResponseEntry { |
7875 /** The ID of the request entry this entry responds to. */ | 8155 /// The ID of the request entry this entry responds to. |
7876 core.int batchId; | 8156 core.int batchId; |
7877 /** A list of errors defined if and only if the request failed. */ | 8157 |
| 8158 /// A list of errors defined if and only if the request failed. |
7878 Errors errors; | 8159 Errors errors; |
7879 /** | 8160 |
7880 * The status of the execution. Only defined if the method is not get or | 8161 /// The status of the execution. Only defined if the method is not get or |
7881 * getByMerchantOrderId and if the request was successful. | 8162 /// getByMerchantOrderId and if the request was successful. |
7882 */ | |
7883 core.String executionStatus; | 8163 core.String executionStatus; |
7884 /** | 8164 |
7885 * Identifies what kind of resource this is. Value: the fixed string | 8165 /// Identifies what kind of resource this is. Value: the fixed string |
7886 * "content#ordersCustomBatchResponseEntry". | 8166 /// "content#ordersCustomBatchResponseEntry". |
7887 */ | |
7888 core.String kind; | 8167 core.String kind; |
7889 /** | 8168 |
7890 * The retrieved order. Only defined if the method is get and if the request | 8169 /// The retrieved order. Only defined if the method is get and if the request |
7891 * was successful. | 8170 /// was successful. |
7892 */ | |
7893 Order order; | 8171 Order order; |
7894 | 8172 |
7895 OrdersCustomBatchResponseEntry(); | 8173 OrdersCustomBatchResponseEntry(); |
7896 | 8174 |
7897 OrdersCustomBatchResponseEntry.fromJson(core.Map _json) { | 8175 OrdersCustomBatchResponseEntry.fromJson(core.Map _json) { |
7898 if (_json.containsKey("batchId")) { | 8176 if (_json.containsKey("batchId")) { |
7899 batchId = _json["batchId"]; | 8177 batchId = _json["batchId"]; |
7900 } | 8178 } |
7901 if (_json.containsKey("errors")) { | 8179 if (_json.containsKey("errors")) { |
7902 errors = new Errors.fromJson(_json["errors"]); | 8180 errors = new Errors.fromJson(_json["errors"]); |
7903 } | 8181 } |
7904 if (_json.containsKey("executionStatus")) { | 8182 if (_json.containsKey("executionStatus")) { |
7905 executionStatus = _json["executionStatus"]; | 8183 executionStatus = _json["executionStatus"]; |
7906 } | 8184 } |
7907 if (_json.containsKey("kind")) { | 8185 if (_json.containsKey("kind")) { |
7908 kind = _json["kind"]; | 8186 kind = _json["kind"]; |
7909 } | 8187 } |
7910 if (_json.containsKey("order")) { | 8188 if (_json.containsKey("order")) { |
7911 order = new Order.fromJson(_json["order"]); | 8189 order = new Order.fromJson(_json["order"]); |
7912 } | 8190 } |
7913 } | 8191 } |
7914 | 8192 |
7915 core.Map<core.String, core.Object> toJson() { | 8193 core.Map<core.String, core.Object> toJson() { |
7916 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8194 final core.Map<core.String, core.Object> _json = |
| 8195 new core.Map<core.String, core.Object>(); |
7917 if (batchId != null) { | 8196 if (batchId != null) { |
7918 _json["batchId"] = batchId; | 8197 _json["batchId"] = batchId; |
7919 } | 8198 } |
7920 if (errors != null) { | 8199 if (errors != null) { |
7921 _json["errors"] = (errors).toJson(); | 8200 _json["errors"] = (errors).toJson(); |
7922 } | 8201 } |
7923 if (executionStatus != null) { | 8202 if (executionStatus != null) { |
7924 _json["executionStatus"] = executionStatus; | 8203 _json["executionStatus"] = executionStatus; |
7925 } | 8204 } |
7926 if (kind != null) { | 8205 if (kind != null) { |
7927 _json["kind"] = kind; | 8206 _json["kind"] = kind; |
7928 } | 8207 } |
7929 if (order != null) { | 8208 if (order != null) { |
7930 _json["order"] = (order).toJson(); | 8209 _json["order"] = (order).toJson(); |
7931 } | 8210 } |
7932 return _json; | 8211 return _json; |
7933 } | 8212 } |
7934 } | 8213 } |
7935 | 8214 |
7936 class OrdersGetByMerchantOrderIdResponse { | 8215 class OrdersGetByMerchantOrderIdResponse { |
7937 /** | 8216 /// Identifies what kind of resource this is. Value: the fixed string |
7938 * Identifies what kind of resource this is. Value: the fixed string | 8217 /// "content#ordersGetByMerchantOrderIdResponse". |
7939 * "content#ordersGetByMerchantOrderIdResponse". | |
7940 */ | |
7941 core.String kind; | 8218 core.String kind; |
7942 /** The requested order. */ | 8219 |
| 8220 /// The requested order. |
7943 Order order; | 8221 Order order; |
7944 | 8222 |
7945 OrdersGetByMerchantOrderIdResponse(); | 8223 OrdersGetByMerchantOrderIdResponse(); |
7946 | 8224 |
7947 OrdersGetByMerchantOrderIdResponse.fromJson(core.Map _json) { | 8225 OrdersGetByMerchantOrderIdResponse.fromJson(core.Map _json) { |
7948 if (_json.containsKey("kind")) { | 8226 if (_json.containsKey("kind")) { |
7949 kind = _json["kind"]; | 8227 kind = _json["kind"]; |
7950 } | 8228 } |
7951 if (_json.containsKey("order")) { | 8229 if (_json.containsKey("order")) { |
7952 order = new Order.fromJson(_json["order"]); | 8230 order = new Order.fromJson(_json["order"]); |
7953 } | 8231 } |
7954 } | 8232 } |
7955 | 8233 |
7956 core.Map<core.String, core.Object> toJson() { | 8234 core.Map<core.String, core.Object> toJson() { |
7957 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8235 final core.Map<core.String, core.Object> _json = |
| 8236 new core.Map<core.String, core.Object>(); |
7958 if (kind != null) { | 8237 if (kind != null) { |
7959 _json["kind"] = kind; | 8238 _json["kind"] = kind; |
7960 } | 8239 } |
7961 if (order != null) { | 8240 if (order != null) { |
7962 _json["order"] = (order).toJson(); | 8241 _json["order"] = (order).toJson(); |
7963 } | 8242 } |
7964 return _json; | 8243 return _json; |
7965 } | 8244 } |
7966 } | 8245 } |
7967 | 8246 |
7968 class OrdersGetTestOrderTemplateResponse { | 8247 class OrdersGetTestOrderTemplateResponse { |
7969 /** | 8248 /// Identifies what kind of resource this is. Value: the fixed string |
7970 * Identifies what kind of resource this is. Value: the fixed string | 8249 /// "content#ordersGetTestOrderTemplateResponse". |
7971 * "content#ordersGetTestOrderTemplateResponse". | |
7972 */ | |
7973 core.String kind; | 8250 core.String kind; |
7974 /** The requested test order template. */ | 8251 |
| 8252 /// The requested test order template. |
7975 TestOrder template; | 8253 TestOrder template; |
7976 | 8254 |
7977 OrdersGetTestOrderTemplateResponse(); | 8255 OrdersGetTestOrderTemplateResponse(); |
7978 | 8256 |
7979 OrdersGetTestOrderTemplateResponse.fromJson(core.Map _json) { | 8257 OrdersGetTestOrderTemplateResponse.fromJson(core.Map _json) { |
7980 if (_json.containsKey("kind")) { | 8258 if (_json.containsKey("kind")) { |
7981 kind = _json["kind"]; | 8259 kind = _json["kind"]; |
7982 } | 8260 } |
7983 if (_json.containsKey("template")) { | 8261 if (_json.containsKey("template")) { |
7984 template = new TestOrder.fromJson(_json["template"]); | 8262 template = new TestOrder.fromJson(_json["template"]); |
7985 } | 8263 } |
7986 } | 8264 } |
7987 | 8265 |
7988 core.Map<core.String, core.Object> toJson() { | 8266 core.Map<core.String, core.Object> toJson() { |
7989 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8267 final core.Map<core.String, core.Object> _json = |
| 8268 new core.Map<core.String, core.Object>(); |
7990 if (kind != null) { | 8269 if (kind != null) { |
7991 _json["kind"] = kind; | 8270 _json["kind"] = kind; |
7992 } | 8271 } |
7993 if (template != null) { | 8272 if (template != null) { |
7994 _json["template"] = (template).toJson(); | 8273 _json["template"] = (template).toJson(); |
7995 } | 8274 } |
7996 return _json; | 8275 return _json; |
7997 } | 8276 } |
7998 } | 8277 } |
7999 | 8278 |
8000 class OrdersListResponse { | 8279 class OrdersListResponse { |
8001 /** | 8280 /// Identifies what kind of resource this is. Value: the fixed string |
8002 * Identifies what kind of resource this is. Value: the fixed string | 8281 /// "content#ordersListResponse". |
8003 * "content#ordersListResponse". | |
8004 */ | |
8005 core.String kind; | 8282 core.String kind; |
8006 /** The token for the retrieval of the next page of orders. */ | 8283 |
| 8284 /// The token for the retrieval of the next page of orders. |
8007 core.String nextPageToken; | 8285 core.String nextPageToken; |
8008 core.List<Order> resources; | 8286 core.List<Order> resources; |
8009 | 8287 |
8010 OrdersListResponse(); | 8288 OrdersListResponse(); |
8011 | 8289 |
8012 OrdersListResponse.fromJson(core.Map _json) { | 8290 OrdersListResponse.fromJson(core.Map _json) { |
8013 if (_json.containsKey("kind")) { | 8291 if (_json.containsKey("kind")) { |
8014 kind = _json["kind"]; | 8292 kind = _json["kind"]; |
8015 } | 8293 } |
8016 if (_json.containsKey("nextPageToken")) { | 8294 if (_json.containsKey("nextPageToken")) { |
8017 nextPageToken = _json["nextPageToken"]; | 8295 nextPageToken = _json["nextPageToken"]; |
8018 } | 8296 } |
8019 if (_json.containsKey("resources")) { | 8297 if (_json.containsKey("resources")) { |
8020 resources = _json["resources"].map((value) => new Order.fromJson(value)).t
oList(); | 8298 resources = |
| 8299 _json["resources"].map((value) => new Order.fromJson(value)).toList(); |
8021 } | 8300 } |
8022 } | 8301 } |
8023 | 8302 |
8024 core.Map<core.String, core.Object> toJson() { | 8303 core.Map<core.String, core.Object> toJson() { |
8025 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8304 final core.Map<core.String, core.Object> _json = |
| 8305 new core.Map<core.String, core.Object>(); |
8026 if (kind != null) { | 8306 if (kind != null) { |
8027 _json["kind"] = kind; | 8307 _json["kind"] = kind; |
8028 } | 8308 } |
8029 if (nextPageToken != null) { | 8309 if (nextPageToken != null) { |
8030 _json["nextPageToken"] = nextPageToken; | 8310 _json["nextPageToken"] = nextPageToken; |
8031 } | 8311 } |
8032 if (resources != null) { | 8312 if (resources != null) { |
8033 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 8313 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
8034 } | 8314 } |
8035 return _json; | 8315 return _json; |
8036 } | 8316 } |
8037 } | 8317 } |
8038 | 8318 |
8039 class OrdersRefundRequest { | 8319 class OrdersRefundRequest { |
8040 /** The amount that is refunded. */ | 8320 /// The amount that is refunded. |
8041 Price amount; | 8321 Price amount; |
8042 /** | 8322 |
8043 * The ID of the operation. Unique across all operations for a given order. | 8323 /// The ID of the operation. Unique across all operations for a given order. |
8044 */ | |
8045 core.String operationId; | 8324 core.String operationId; |
8046 /** The reason for the refund. */ | 8325 |
| 8326 /// The reason for the refund. |
8047 core.String reason; | 8327 core.String reason; |
8048 /** The explanation of the reason. */ | 8328 |
| 8329 /// The explanation of the reason. |
8049 core.String reasonText; | 8330 core.String reasonText; |
8050 | 8331 |
8051 OrdersRefundRequest(); | 8332 OrdersRefundRequest(); |
8052 | 8333 |
8053 OrdersRefundRequest.fromJson(core.Map _json) { | 8334 OrdersRefundRequest.fromJson(core.Map _json) { |
8054 if (_json.containsKey("amount")) { | 8335 if (_json.containsKey("amount")) { |
8055 amount = new Price.fromJson(_json["amount"]); | 8336 amount = new Price.fromJson(_json["amount"]); |
8056 } | 8337 } |
8057 if (_json.containsKey("operationId")) { | 8338 if (_json.containsKey("operationId")) { |
8058 operationId = _json["operationId"]; | 8339 operationId = _json["operationId"]; |
8059 } | 8340 } |
8060 if (_json.containsKey("reason")) { | 8341 if (_json.containsKey("reason")) { |
8061 reason = _json["reason"]; | 8342 reason = _json["reason"]; |
8062 } | 8343 } |
8063 if (_json.containsKey("reasonText")) { | 8344 if (_json.containsKey("reasonText")) { |
8064 reasonText = _json["reasonText"]; | 8345 reasonText = _json["reasonText"]; |
8065 } | 8346 } |
8066 } | 8347 } |
8067 | 8348 |
8068 core.Map<core.String, core.Object> toJson() { | 8349 core.Map<core.String, core.Object> toJson() { |
8069 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8350 final core.Map<core.String, core.Object> _json = |
| 8351 new core.Map<core.String, core.Object>(); |
8070 if (amount != null) { | 8352 if (amount != null) { |
8071 _json["amount"] = (amount).toJson(); | 8353 _json["amount"] = (amount).toJson(); |
8072 } | 8354 } |
8073 if (operationId != null) { | 8355 if (operationId != null) { |
8074 _json["operationId"] = operationId; | 8356 _json["operationId"] = operationId; |
8075 } | 8357 } |
8076 if (reason != null) { | 8358 if (reason != null) { |
8077 _json["reason"] = reason; | 8359 _json["reason"] = reason; |
8078 } | 8360 } |
8079 if (reasonText != null) { | 8361 if (reasonText != null) { |
8080 _json["reasonText"] = reasonText; | 8362 _json["reasonText"] = reasonText; |
8081 } | 8363 } |
8082 return _json; | 8364 return _json; |
8083 } | 8365 } |
8084 } | 8366 } |
8085 | 8367 |
8086 class OrdersRefundResponse { | 8368 class OrdersRefundResponse { |
8087 /** The status of the execution. */ | 8369 /// The status of the execution. |
8088 core.String executionStatus; | 8370 core.String executionStatus; |
8089 /** | 8371 |
8090 * Identifies what kind of resource this is. Value: the fixed string | 8372 /// Identifies what kind of resource this is. Value: the fixed string |
8091 * "content#ordersRefundResponse". | 8373 /// "content#ordersRefundResponse". |
8092 */ | |
8093 core.String kind; | 8374 core.String kind; |
8094 | 8375 |
8095 OrdersRefundResponse(); | 8376 OrdersRefundResponse(); |
8096 | 8377 |
8097 OrdersRefundResponse.fromJson(core.Map _json) { | 8378 OrdersRefundResponse.fromJson(core.Map _json) { |
8098 if (_json.containsKey("executionStatus")) { | 8379 if (_json.containsKey("executionStatus")) { |
8099 executionStatus = _json["executionStatus"]; | 8380 executionStatus = _json["executionStatus"]; |
8100 } | 8381 } |
8101 if (_json.containsKey("kind")) { | 8382 if (_json.containsKey("kind")) { |
8102 kind = _json["kind"]; | 8383 kind = _json["kind"]; |
8103 } | 8384 } |
8104 } | 8385 } |
8105 | 8386 |
8106 core.Map<core.String, core.Object> toJson() { | 8387 core.Map<core.String, core.Object> toJson() { |
8107 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8388 final core.Map<core.String, core.Object> _json = |
| 8389 new core.Map<core.String, core.Object>(); |
8108 if (executionStatus != null) { | 8390 if (executionStatus != null) { |
8109 _json["executionStatus"] = executionStatus; | 8391 _json["executionStatus"] = executionStatus; |
8110 } | 8392 } |
8111 if (kind != null) { | 8393 if (kind != null) { |
8112 _json["kind"] = kind; | 8394 _json["kind"] = kind; |
8113 } | 8395 } |
8114 return _json; | 8396 return _json; |
8115 } | 8397 } |
8116 } | 8398 } |
8117 | 8399 |
8118 class OrdersReturnLineItemRequest { | 8400 class OrdersReturnLineItemRequest { |
8119 /** The ID of the line item to return. */ | 8401 /// The ID of the line item to return. |
8120 core.String lineItemId; | 8402 core.String lineItemId; |
8121 /** | 8403 |
8122 * The ID of the operation. Unique across all operations for a given order. | 8404 /// The ID of the operation. Unique across all operations for a given order. |
8123 */ | |
8124 core.String operationId; | 8405 core.String operationId; |
8125 /** The quantity to return. */ | 8406 |
| 8407 /// The quantity to return. |
8126 core.int quantity; | 8408 core.int quantity; |
8127 /** The reason for the return. */ | 8409 |
| 8410 /// The reason for the return. |
8128 core.String reason; | 8411 core.String reason; |
8129 /** The explanation of the reason. */ | 8412 |
| 8413 /// The explanation of the reason. |
8130 core.String reasonText; | 8414 core.String reasonText; |
8131 | 8415 |
8132 OrdersReturnLineItemRequest(); | 8416 OrdersReturnLineItemRequest(); |
8133 | 8417 |
8134 OrdersReturnLineItemRequest.fromJson(core.Map _json) { | 8418 OrdersReturnLineItemRequest.fromJson(core.Map _json) { |
8135 if (_json.containsKey("lineItemId")) { | 8419 if (_json.containsKey("lineItemId")) { |
8136 lineItemId = _json["lineItemId"]; | 8420 lineItemId = _json["lineItemId"]; |
8137 } | 8421 } |
8138 if (_json.containsKey("operationId")) { | 8422 if (_json.containsKey("operationId")) { |
8139 operationId = _json["operationId"]; | 8423 operationId = _json["operationId"]; |
8140 } | 8424 } |
8141 if (_json.containsKey("quantity")) { | 8425 if (_json.containsKey("quantity")) { |
8142 quantity = _json["quantity"]; | 8426 quantity = _json["quantity"]; |
8143 } | 8427 } |
8144 if (_json.containsKey("reason")) { | 8428 if (_json.containsKey("reason")) { |
8145 reason = _json["reason"]; | 8429 reason = _json["reason"]; |
8146 } | 8430 } |
8147 if (_json.containsKey("reasonText")) { | 8431 if (_json.containsKey("reasonText")) { |
8148 reasonText = _json["reasonText"]; | 8432 reasonText = _json["reasonText"]; |
8149 } | 8433 } |
8150 } | 8434 } |
8151 | 8435 |
8152 core.Map<core.String, core.Object> toJson() { | 8436 core.Map<core.String, core.Object> toJson() { |
8153 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8437 final core.Map<core.String, core.Object> _json = |
| 8438 new core.Map<core.String, core.Object>(); |
8154 if (lineItemId != null) { | 8439 if (lineItemId != null) { |
8155 _json["lineItemId"] = lineItemId; | 8440 _json["lineItemId"] = lineItemId; |
8156 } | 8441 } |
8157 if (operationId != null) { | 8442 if (operationId != null) { |
8158 _json["operationId"] = operationId; | 8443 _json["operationId"] = operationId; |
8159 } | 8444 } |
8160 if (quantity != null) { | 8445 if (quantity != null) { |
8161 _json["quantity"] = quantity; | 8446 _json["quantity"] = quantity; |
8162 } | 8447 } |
8163 if (reason != null) { | 8448 if (reason != null) { |
8164 _json["reason"] = reason; | 8449 _json["reason"] = reason; |
8165 } | 8450 } |
8166 if (reasonText != null) { | 8451 if (reasonText != null) { |
8167 _json["reasonText"] = reasonText; | 8452 _json["reasonText"] = reasonText; |
8168 } | 8453 } |
8169 return _json; | 8454 return _json; |
8170 } | 8455 } |
8171 } | 8456 } |
8172 | 8457 |
8173 class OrdersReturnLineItemResponse { | 8458 class OrdersReturnLineItemResponse { |
8174 /** The status of the execution. */ | 8459 /// The status of the execution. |
8175 core.String executionStatus; | 8460 core.String executionStatus; |
8176 /** | 8461 |
8177 * Identifies what kind of resource this is. Value: the fixed string | 8462 /// Identifies what kind of resource this is. Value: the fixed string |
8178 * "content#ordersReturnLineItemResponse". | 8463 /// "content#ordersReturnLineItemResponse". |
8179 */ | |
8180 core.String kind; | 8464 core.String kind; |
8181 | 8465 |
8182 OrdersReturnLineItemResponse(); | 8466 OrdersReturnLineItemResponse(); |
8183 | 8467 |
8184 OrdersReturnLineItemResponse.fromJson(core.Map _json) { | 8468 OrdersReturnLineItemResponse.fromJson(core.Map _json) { |
8185 if (_json.containsKey("executionStatus")) { | 8469 if (_json.containsKey("executionStatus")) { |
8186 executionStatus = _json["executionStatus"]; | 8470 executionStatus = _json["executionStatus"]; |
8187 } | 8471 } |
8188 if (_json.containsKey("kind")) { | 8472 if (_json.containsKey("kind")) { |
8189 kind = _json["kind"]; | 8473 kind = _json["kind"]; |
8190 } | 8474 } |
8191 } | 8475 } |
8192 | 8476 |
8193 core.Map<core.String, core.Object> toJson() { | 8477 core.Map<core.String, core.Object> toJson() { |
8194 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8478 final core.Map<core.String, core.Object> _json = |
| 8479 new core.Map<core.String, core.Object>(); |
8195 if (executionStatus != null) { | 8480 if (executionStatus != null) { |
8196 _json["executionStatus"] = executionStatus; | 8481 _json["executionStatus"] = executionStatus; |
8197 } | 8482 } |
8198 if (kind != null) { | 8483 if (kind != null) { |
8199 _json["kind"] = kind; | 8484 _json["kind"] = kind; |
8200 } | 8485 } |
8201 return _json; | 8486 return _json; |
8202 } | 8487 } |
8203 } | 8488 } |
8204 | 8489 |
8205 class OrdersShipLineItemsRequest { | 8490 class OrdersShipLineItemsRequest { |
8206 /** The carrier handling the shipment. */ | 8491 /// The carrier handling the shipment. |
8207 core.String carrier; | 8492 core.String carrier; |
8208 /** Line items to ship. */ | 8493 |
| 8494 /// Line items to ship. |
8209 core.List<OrderShipmentLineItemShipment> lineItems; | 8495 core.List<OrderShipmentLineItemShipment> lineItems; |
8210 /** | 8496 |
8211 * The ID of the operation. Unique across all operations for a given order. | 8497 /// The ID of the operation. Unique across all operations for a given order. |
8212 */ | |
8213 core.String operationId; | 8498 core.String operationId; |
8214 /** The ID of the shipment. */ | 8499 |
| 8500 /// The ID of the shipment. |
8215 core.String shipmentId; | 8501 core.String shipmentId; |
8216 /** The tracking id for the shipment. */ | 8502 |
| 8503 /// The tracking id for the shipment. |
8217 core.String trackingId; | 8504 core.String trackingId; |
8218 | 8505 |
8219 OrdersShipLineItemsRequest(); | 8506 OrdersShipLineItemsRequest(); |
8220 | 8507 |
8221 OrdersShipLineItemsRequest.fromJson(core.Map _json) { | 8508 OrdersShipLineItemsRequest.fromJson(core.Map _json) { |
8222 if (_json.containsKey("carrier")) { | 8509 if (_json.containsKey("carrier")) { |
8223 carrier = _json["carrier"]; | 8510 carrier = _json["carrier"]; |
8224 } | 8511 } |
8225 if (_json.containsKey("lineItems")) { | 8512 if (_json.containsKey("lineItems")) { |
8226 lineItems = _json["lineItems"].map((value) => new OrderShipmentLineItemShi
pment.fromJson(value)).toList(); | 8513 lineItems = _json["lineItems"] |
| 8514 .map((value) => new OrderShipmentLineItemShipment.fromJson(value)) |
| 8515 .toList(); |
8227 } | 8516 } |
8228 if (_json.containsKey("operationId")) { | 8517 if (_json.containsKey("operationId")) { |
8229 operationId = _json["operationId"]; | 8518 operationId = _json["operationId"]; |
8230 } | 8519 } |
8231 if (_json.containsKey("shipmentId")) { | 8520 if (_json.containsKey("shipmentId")) { |
8232 shipmentId = _json["shipmentId"]; | 8521 shipmentId = _json["shipmentId"]; |
8233 } | 8522 } |
8234 if (_json.containsKey("trackingId")) { | 8523 if (_json.containsKey("trackingId")) { |
8235 trackingId = _json["trackingId"]; | 8524 trackingId = _json["trackingId"]; |
8236 } | 8525 } |
8237 } | 8526 } |
8238 | 8527 |
8239 core.Map<core.String, core.Object> toJson() { | 8528 core.Map<core.String, core.Object> toJson() { |
8240 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8529 final core.Map<core.String, core.Object> _json = |
| 8530 new core.Map<core.String, core.Object>(); |
8241 if (carrier != null) { | 8531 if (carrier != null) { |
8242 _json["carrier"] = carrier; | 8532 _json["carrier"] = carrier; |
8243 } | 8533 } |
8244 if (lineItems != null) { | 8534 if (lineItems != null) { |
8245 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList(); | 8535 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList(); |
8246 } | 8536 } |
8247 if (operationId != null) { | 8537 if (operationId != null) { |
8248 _json["operationId"] = operationId; | 8538 _json["operationId"] = operationId; |
8249 } | 8539 } |
8250 if (shipmentId != null) { | 8540 if (shipmentId != null) { |
8251 _json["shipmentId"] = shipmentId; | 8541 _json["shipmentId"] = shipmentId; |
8252 } | 8542 } |
8253 if (trackingId != null) { | 8543 if (trackingId != null) { |
8254 _json["trackingId"] = trackingId; | 8544 _json["trackingId"] = trackingId; |
8255 } | 8545 } |
8256 return _json; | 8546 return _json; |
8257 } | 8547 } |
8258 } | 8548 } |
8259 | 8549 |
8260 class OrdersShipLineItemsResponse { | 8550 class OrdersShipLineItemsResponse { |
8261 /** The status of the execution. */ | 8551 /// The status of the execution. |
8262 core.String executionStatus; | 8552 core.String executionStatus; |
8263 /** | 8553 |
8264 * Identifies what kind of resource this is. Value: the fixed string | 8554 /// Identifies what kind of resource this is. Value: the fixed string |
8265 * "content#ordersShipLineItemsResponse". | 8555 /// "content#ordersShipLineItemsResponse". |
8266 */ | |
8267 core.String kind; | 8556 core.String kind; |
8268 | 8557 |
8269 OrdersShipLineItemsResponse(); | 8558 OrdersShipLineItemsResponse(); |
8270 | 8559 |
8271 OrdersShipLineItemsResponse.fromJson(core.Map _json) { | 8560 OrdersShipLineItemsResponse.fromJson(core.Map _json) { |
8272 if (_json.containsKey("executionStatus")) { | 8561 if (_json.containsKey("executionStatus")) { |
8273 executionStatus = _json["executionStatus"]; | 8562 executionStatus = _json["executionStatus"]; |
8274 } | 8563 } |
8275 if (_json.containsKey("kind")) { | 8564 if (_json.containsKey("kind")) { |
8276 kind = _json["kind"]; | 8565 kind = _json["kind"]; |
8277 } | 8566 } |
8278 } | 8567 } |
8279 | 8568 |
8280 core.Map<core.String, core.Object> toJson() { | 8569 core.Map<core.String, core.Object> toJson() { |
8281 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8570 final core.Map<core.String, core.Object> _json = |
| 8571 new core.Map<core.String, core.Object>(); |
8282 if (executionStatus != null) { | 8572 if (executionStatus != null) { |
8283 _json["executionStatus"] = executionStatus; | 8573 _json["executionStatus"] = executionStatus; |
8284 } | 8574 } |
8285 if (kind != null) { | 8575 if (kind != null) { |
8286 _json["kind"] = kind; | 8576 _json["kind"] = kind; |
8287 } | 8577 } |
8288 return _json; | 8578 return _json; |
8289 } | 8579 } |
8290 } | 8580 } |
8291 | 8581 |
8292 class OrdersUpdateMerchantOrderIdRequest { | 8582 class OrdersUpdateMerchantOrderIdRequest { |
8293 /** | 8583 /// The merchant order id to be assigned to the order. Must be unique per |
8294 * The merchant order id to be assigned to the order. Must be unique per | 8584 /// merchant. |
8295 * merchant. | |
8296 */ | |
8297 core.String merchantOrderId; | 8585 core.String merchantOrderId; |
8298 /** | 8586 |
8299 * The ID of the operation. Unique across all operations for a given order. | 8587 /// The ID of the operation. Unique across all operations for a given order. |
8300 */ | |
8301 core.String operationId; | 8588 core.String operationId; |
8302 | 8589 |
8303 OrdersUpdateMerchantOrderIdRequest(); | 8590 OrdersUpdateMerchantOrderIdRequest(); |
8304 | 8591 |
8305 OrdersUpdateMerchantOrderIdRequest.fromJson(core.Map _json) { | 8592 OrdersUpdateMerchantOrderIdRequest.fromJson(core.Map _json) { |
8306 if (_json.containsKey("merchantOrderId")) { | 8593 if (_json.containsKey("merchantOrderId")) { |
8307 merchantOrderId = _json["merchantOrderId"]; | 8594 merchantOrderId = _json["merchantOrderId"]; |
8308 } | 8595 } |
8309 if (_json.containsKey("operationId")) { | 8596 if (_json.containsKey("operationId")) { |
8310 operationId = _json["operationId"]; | 8597 operationId = _json["operationId"]; |
8311 } | 8598 } |
8312 } | 8599 } |
8313 | 8600 |
8314 core.Map<core.String, core.Object> toJson() { | 8601 core.Map<core.String, core.Object> toJson() { |
8315 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8602 final core.Map<core.String, core.Object> _json = |
| 8603 new core.Map<core.String, core.Object>(); |
8316 if (merchantOrderId != null) { | 8604 if (merchantOrderId != null) { |
8317 _json["merchantOrderId"] = merchantOrderId; | 8605 _json["merchantOrderId"] = merchantOrderId; |
8318 } | 8606 } |
8319 if (operationId != null) { | 8607 if (operationId != null) { |
8320 _json["operationId"] = operationId; | 8608 _json["operationId"] = operationId; |
8321 } | 8609 } |
8322 return _json; | 8610 return _json; |
8323 } | 8611 } |
8324 } | 8612 } |
8325 | 8613 |
8326 class OrdersUpdateMerchantOrderIdResponse { | 8614 class OrdersUpdateMerchantOrderIdResponse { |
8327 /** The status of the execution. */ | 8615 /// The status of the execution. |
8328 core.String executionStatus; | 8616 core.String executionStatus; |
8329 /** | 8617 |
8330 * Identifies what kind of resource this is. Value: the fixed string | 8618 /// Identifies what kind of resource this is. Value: the fixed string |
8331 * "content#ordersUpdateMerchantOrderIdResponse". | 8619 /// "content#ordersUpdateMerchantOrderIdResponse". |
8332 */ | |
8333 core.String kind; | 8620 core.String kind; |
8334 | 8621 |
8335 OrdersUpdateMerchantOrderIdResponse(); | 8622 OrdersUpdateMerchantOrderIdResponse(); |
8336 | 8623 |
8337 OrdersUpdateMerchantOrderIdResponse.fromJson(core.Map _json) { | 8624 OrdersUpdateMerchantOrderIdResponse.fromJson(core.Map _json) { |
8338 if (_json.containsKey("executionStatus")) { | 8625 if (_json.containsKey("executionStatus")) { |
8339 executionStatus = _json["executionStatus"]; | 8626 executionStatus = _json["executionStatus"]; |
8340 } | 8627 } |
8341 if (_json.containsKey("kind")) { | 8628 if (_json.containsKey("kind")) { |
8342 kind = _json["kind"]; | 8629 kind = _json["kind"]; |
8343 } | 8630 } |
8344 } | 8631 } |
8345 | 8632 |
8346 core.Map<core.String, core.Object> toJson() { | 8633 core.Map<core.String, core.Object> toJson() { |
8347 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8634 final core.Map<core.String, core.Object> _json = |
| 8635 new core.Map<core.String, core.Object>(); |
8348 if (executionStatus != null) { | 8636 if (executionStatus != null) { |
8349 _json["executionStatus"] = executionStatus; | 8637 _json["executionStatus"] = executionStatus; |
8350 } | 8638 } |
8351 if (kind != null) { | 8639 if (kind != null) { |
8352 _json["kind"] = kind; | 8640 _json["kind"] = kind; |
8353 } | 8641 } |
8354 return _json; | 8642 return _json; |
8355 } | 8643 } |
8356 } | 8644 } |
8357 | 8645 |
8358 class OrdersUpdateShipmentRequest { | 8646 class OrdersUpdateShipmentRequest { |
8359 /** The carrier handling the shipment. Not updated if missing. */ | 8647 /// The carrier handling the shipment. Not updated if missing. |
8360 core.String carrier; | 8648 core.String carrier; |
8361 /** | 8649 |
8362 * The ID of the operation. Unique across all operations for a given order. | 8650 /// The ID of the operation. Unique across all operations for a given order. |
8363 */ | |
8364 core.String operationId; | 8651 core.String operationId; |
8365 /** The ID of the shipment. */ | 8652 |
| 8653 /// The ID of the shipment. |
8366 core.String shipmentId; | 8654 core.String shipmentId; |
8367 /** New status for the shipment. Not updated if missing. */ | 8655 |
| 8656 /// New status for the shipment. Not updated if missing. |
8368 core.String status; | 8657 core.String status; |
8369 /** The tracking id for the shipment. Not updated if missing. */ | 8658 |
| 8659 /// The tracking id for the shipment. Not updated if missing. |
8370 core.String trackingId; | 8660 core.String trackingId; |
8371 | 8661 |
8372 OrdersUpdateShipmentRequest(); | 8662 OrdersUpdateShipmentRequest(); |
8373 | 8663 |
8374 OrdersUpdateShipmentRequest.fromJson(core.Map _json) { | 8664 OrdersUpdateShipmentRequest.fromJson(core.Map _json) { |
8375 if (_json.containsKey("carrier")) { | 8665 if (_json.containsKey("carrier")) { |
8376 carrier = _json["carrier"]; | 8666 carrier = _json["carrier"]; |
8377 } | 8667 } |
8378 if (_json.containsKey("operationId")) { | 8668 if (_json.containsKey("operationId")) { |
8379 operationId = _json["operationId"]; | 8669 operationId = _json["operationId"]; |
8380 } | 8670 } |
8381 if (_json.containsKey("shipmentId")) { | 8671 if (_json.containsKey("shipmentId")) { |
8382 shipmentId = _json["shipmentId"]; | 8672 shipmentId = _json["shipmentId"]; |
8383 } | 8673 } |
8384 if (_json.containsKey("status")) { | 8674 if (_json.containsKey("status")) { |
8385 status = _json["status"]; | 8675 status = _json["status"]; |
8386 } | 8676 } |
8387 if (_json.containsKey("trackingId")) { | 8677 if (_json.containsKey("trackingId")) { |
8388 trackingId = _json["trackingId"]; | 8678 trackingId = _json["trackingId"]; |
8389 } | 8679 } |
8390 } | 8680 } |
8391 | 8681 |
8392 core.Map<core.String, core.Object> toJson() { | 8682 core.Map<core.String, core.Object> toJson() { |
8393 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8683 final core.Map<core.String, core.Object> _json = |
| 8684 new core.Map<core.String, core.Object>(); |
8394 if (carrier != null) { | 8685 if (carrier != null) { |
8395 _json["carrier"] = carrier; | 8686 _json["carrier"] = carrier; |
8396 } | 8687 } |
8397 if (operationId != null) { | 8688 if (operationId != null) { |
8398 _json["operationId"] = operationId; | 8689 _json["operationId"] = operationId; |
8399 } | 8690 } |
8400 if (shipmentId != null) { | 8691 if (shipmentId != null) { |
8401 _json["shipmentId"] = shipmentId; | 8692 _json["shipmentId"] = shipmentId; |
8402 } | 8693 } |
8403 if (status != null) { | 8694 if (status != null) { |
8404 _json["status"] = status; | 8695 _json["status"] = status; |
8405 } | 8696 } |
8406 if (trackingId != null) { | 8697 if (trackingId != null) { |
8407 _json["trackingId"] = trackingId; | 8698 _json["trackingId"] = trackingId; |
8408 } | 8699 } |
8409 return _json; | 8700 return _json; |
8410 } | 8701 } |
8411 } | 8702 } |
8412 | 8703 |
8413 class OrdersUpdateShipmentResponse { | 8704 class OrdersUpdateShipmentResponse { |
8414 /** The status of the execution. */ | 8705 /// The status of the execution. |
8415 core.String executionStatus; | 8706 core.String executionStatus; |
8416 /** | 8707 |
8417 * Identifies what kind of resource this is. Value: the fixed string | 8708 /// Identifies what kind of resource this is. Value: the fixed string |
8418 * "content#ordersUpdateShipmentResponse". | 8709 /// "content#ordersUpdateShipmentResponse". |
8419 */ | |
8420 core.String kind; | 8710 core.String kind; |
8421 | 8711 |
8422 OrdersUpdateShipmentResponse(); | 8712 OrdersUpdateShipmentResponse(); |
8423 | 8713 |
8424 OrdersUpdateShipmentResponse.fromJson(core.Map _json) { | 8714 OrdersUpdateShipmentResponse.fromJson(core.Map _json) { |
8425 if (_json.containsKey("executionStatus")) { | 8715 if (_json.containsKey("executionStatus")) { |
8426 executionStatus = _json["executionStatus"]; | 8716 executionStatus = _json["executionStatus"]; |
8427 } | 8717 } |
8428 if (_json.containsKey("kind")) { | 8718 if (_json.containsKey("kind")) { |
8429 kind = _json["kind"]; | 8719 kind = _json["kind"]; |
8430 } | 8720 } |
8431 } | 8721 } |
8432 | 8722 |
8433 core.Map<core.String, core.Object> toJson() { | 8723 core.Map<core.String, core.Object> toJson() { |
8434 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8724 final core.Map<core.String, core.Object> _json = |
| 8725 new core.Map<core.String, core.Object>(); |
8435 if (executionStatus != null) { | 8726 if (executionStatus != null) { |
8436 _json["executionStatus"] = executionStatus; | 8727 _json["executionStatus"] = executionStatus; |
8437 } | 8728 } |
8438 if (kind != null) { | 8729 if (kind != null) { |
8439 _json["kind"] = kind; | 8730 _json["kind"] = kind; |
8440 } | 8731 } |
8441 return _json; | 8732 return _json; |
8442 } | 8733 } |
8443 } | 8734 } |
8444 | 8735 |
8445 class PostalCodeGroup { | 8736 class PostalCodeGroup { |
8446 /** | 8737 /// The CLDR territory code of the country the postal code group applies to. |
8447 * The CLDR territory code of the country the postal code group applies to. | 8738 /// Required. |
8448 * Required. | |
8449 */ | |
8450 core.String country; | 8739 core.String country; |
8451 /** The name of the postal code group, referred to in headers. Required. */ | 8740 |
| 8741 /// The name of the postal code group, referred to in headers. Required. |
8452 core.String name; | 8742 core.String name; |
8453 /** A range of postal codes. Required. */ | 8743 |
| 8744 /// A range of postal codes. Required. |
8454 core.List<PostalCodeRange> postalCodeRanges; | 8745 core.List<PostalCodeRange> postalCodeRanges; |
8455 | 8746 |
8456 PostalCodeGroup(); | 8747 PostalCodeGroup(); |
8457 | 8748 |
8458 PostalCodeGroup.fromJson(core.Map _json) { | 8749 PostalCodeGroup.fromJson(core.Map _json) { |
8459 if (_json.containsKey("country")) { | 8750 if (_json.containsKey("country")) { |
8460 country = _json["country"]; | 8751 country = _json["country"]; |
8461 } | 8752 } |
8462 if (_json.containsKey("name")) { | 8753 if (_json.containsKey("name")) { |
8463 name = _json["name"]; | 8754 name = _json["name"]; |
8464 } | 8755 } |
8465 if (_json.containsKey("postalCodeRanges")) { | 8756 if (_json.containsKey("postalCodeRanges")) { |
8466 postalCodeRanges = _json["postalCodeRanges"].map((value) => new PostalCode
Range.fromJson(value)).toList(); | 8757 postalCodeRanges = _json["postalCodeRanges"] |
| 8758 .map((value) => new PostalCodeRange.fromJson(value)) |
| 8759 .toList(); |
8467 } | 8760 } |
8468 } | 8761 } |
8469 | 8762 |
8470 core.Map<core.String, core.Object> toJson() { | 8763 core.Map<core.String, core.Object> toJson() { |
8471 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8764 final core.Map<core.String, core.Object> _json = |
| 8765 new core.Map<core.String, core.Object>(); |
8472 if (country != null) { | 8766 if (country != null) { |
8473 _json["country"] = country; | 8767 _json["country"] = country; |
8474 } | 8768 } |
8475 if (name != null) { | 8769 if (name != null) { |
8476 _json["name"] = name; | 8770 _json["name"] = name; |
8477 } | 8771 } |
8478 if (postalCodeRanges != null) { | 8772 if (postalCodeRanges != null) { |
8479 _json["postalCodeRanges"] = postalCodeRanges.map((value) => (value).toJson
()).toList(); | 8773 _json["postalCodeRanges"] = |
| 8774 postalCodeRanges.map((value) => (value).toJson()).toList(); |
8480 } | 8775 } |
8481 return _json; | 8776 return _json; |
8482 } | 8777 } |
8483 } | 8778 } |
8484 | 8779 |
8485 class PostalCodeRange { | 8780 class PostalCodeRange { |
8486 /** | 8781 /// A postal code or a pattern of the form prefix* denoting the inclusive |
8487 * A postal code or a pattern of the form prefix* denoting the inclusive lower | 8782 /// lower bound of the range defining the area. Examples values: "94108", |
8488 * bound of the range defining the area. Examples values: "94108", "9410*", | 8783 /// "9410*", "9*". Required. |
8489 * "9*". Required. | |
8490 */ | |
8491 core.String postalCodeRangeBegin; | 8784 core.String postalCodeRangeBegin; |
8492 /** | 8785 |
8493 * A postal code or a pattern of the form prefix* denoting the inclusive upper | 8786 /// A postal code or a pattern of the form prefix* denoting the inclusive |
8494 * bound of the range defining the area. It must have the same length as | 8787 /// upper bound of the range defining the area. It must have the same length |
8495 * postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then | 8788 /// as postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then |
8496 * postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a | 8789 /// postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is |
8497 * pattern then postalCodeRangeEnd must be a pattern with the same prefix | 8790 /// a pattern then postalCodeRangeEnd must be a pattern with the same prefix |
8498 * length. Optional: if not set, then the area is defined as being all the | 8791 /// length. Optional: if not set, then the area is defined as being all the |
8499 * postal codes matching postalCodeRangeBegin. | 8792 /// postal codes matching postalCodeRangeBegin. |
8500 */ | |
8501 core.String postalCodeRangeEnd; | 8793 core.String postalCodeRangeEnd; |
8502 | 8794 |
8503 PostalCodeRange(); | 8795 PostalCodeRange(); |
8504 | 8796 |
8505 PostalCodeRange.fromJson(core.Map _json) { | 8797 PostalCodeRange.fromJson(core.Map _json) { |
8506 if (_json.containsKey("postalCodeRangeBegin")) { | 8798 if (_json.containsKey("postalCodeRangeBegin")) { |
8507 postalCodeRangeBegin = _json["postalCodeRangeBegin"]; | 8799 postalCodeRangeBegin = _json["postalCodeRangeBegin"]; |
8508 } | 8800 } |
8509 if (_json.containsKey("postalCodeRangeEnd")) { | 8801 if (_json.containsKey("postalCodeRangeEnd")) { |
8510 postalCodeRangeEnd = _json["postalCodeRangeEnd"]; | 8802 postalCodeRangeEnd = _json["postalCodeRangeEnd"]; |
8511 } | 8803 } |
8512 } | 8804 } |
8513 | 8805 |
8514 core.Map<core.String, core.Object> toJson() { | 8806 core.Map<core.String, core.Object> toJson() { |
8515 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8807 final core.Map<core.String, core.Object> _json = |
| 8808 new core.Map<core.String, core.Object>(); |
8516 if (postalCodeRangeBegin != null) { | 8809 if (postalCodeRangeBegin != null) { |
8517 _json["postalCodeRangeBegin"] = postalCodeRangeBegin; | 8810 _json["postalCodeRangeBegin"] = postalCodeRangeBegin; |
8518 } | 8811 } |
8519 if (postalCodeRangeEnd != null) { | 8812 if (postalCodeRangeEnd != null) { |
8520 _json["postalCodeRangeEnd"] = postalCodeRangeEnd; | 8813 _json["postalCodeRangeEnd"] = postalCodeRangeEnd; |
8521 } | 8814 } |
8522 return _json; | 8815 return _json; |
8523 } | 8816 } |
8524 } | 8817 } |
8525 | 8818 |
8526 class Price { | 8819 class Price { |
8527 /** The currency of the price. */ | 8820 /// The currency of the price. |
8528 core.String currency; | 8821 core.String currency; |
8529 /** The price represented as a number. */ | 8822 |
| 8823 /// The price represented as a number. |
8530 core.String value; | 8824 core.String value; |
8531 | 8825 |
8532 Price(); | 8826 Price(); |
8533 | 8827 |
8534 Price.fromJson(core.Map _json) { | 8828 Price.fromJson(core.Map _json) { |
8535 if (_json.containsKey("currency")) { | 8829 if (_json.containsKey("currency")) { |
8536 currency = _json["currency"]; | 8830 currency = _json["currency"]; |
8537 } | 8831 } |
8538 if (_json.containsKey("value")) { | 8832 if (_json.containsKey("value")) { |
8539 value = _json["value"]; | 8833 value = _json["value"]; |
8540 } | 8834 } |
8541 } | 8835 } |
8542 | 8836 |
8543 core.Map<core.String, core.Object> toJson() { | 8837 core.Map<core.String, core.Object> toJson() { |
8544 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8838 final core.Map<core.String, core.Object> _json = |
| 8839 new core.Map<core.String, core.Object>(); |
8545 if (currency != null) { | 8840 if (currency != null) { |
8546 _json["currency"] = currency; | 8841 _json["currency"] = currency; |
8547 } | 8842 } |
8548 if (value != null) { | 8843 if (value != null) { |
8549 _json["value"] = value; | 8844 _json["value"] = value; |
8550 } | 8845 } |
8551 return _json; | 8846 return _json; |
8552 } | 8847 } |
8553 } | 8848 } |
8554 | 8849 |
8555 /** Product data. */ | 8850 /// Product data. |
8556 class Product { | 8851 class Product { |
8557 /** Additional URLs of images of the item. */ | 8852 /// Additional URLs of images of the item. |
8558 core.List<core.String> additionalImageLinks; | 8853 core.List<core.String> additionalImageLinks; |
8559 /** | 8854 |
8560 * Additional categories of the item (formatted as in products feed | 8855 /// Additional categories of the item (formatted as in products feed |
8561 * specification). | 8856 /// specification). |
8562 */ | |
8563 core.List<core.String> additionalProductTypes; | 8857 core.List<core.String> additionalProductTypes; |
8564 /** Set to true if the item is targeted towards adults. */ | 8858 |
| 8859 /// Set to true if the item is targeted towards adults. |
8565 core.bool adult; | 8860 core.bool adult; |
8566 /** | 8861 |
8567 * Used to group items in an arbitrary way. Only for CPA%, discouraged | 8862 /// Used to group items in an arbitrary way. Only for CPA%, discouraged |
8568 * otherwise. | 8863 /// otherwise. |
8569 */ | |
8570 core.String adwordsGrouping; | 8864 core.String adwordsGrouping; |
8571 /** Similar to adwords_grouping, but only works on CPC. */ | 8865 |
| 8866 /// Similar to adwords_grouping, but only works on CPC. |
8572 core.List<core.String> adwordsLabels; | 8867 core.List<core.String> adwordsLabels; |
8573 /** | 8868 |
8574 * Allows advertisers to override the item URL when the product is shown | 8869 /// Allows advertisers to override the item URL when the product is shown |
8575 * within the context of Product Ads. | 8870 /// within the context of Product Ads. |
8576 */ | |
8577 core.String adwordsRedirect; | 8871 core.String adwordsRedirect; |
8578 /** Target age group of the item. */ | 8872 |
| 8873 /// Target age group of the item. |
8579 core.String ageGroup; | 8874 core.String ageGroup; |
8580 /** Specifies the intended aspects for the product. */ | 8875 |
| 8876 /// Specifies the intended aspects for the product. |
8581 core.List<ProductAspect> aspects; | 8877 core.List<ProductAspect> aspects; |
8582 /** Availability status of the item. */ | 8878 |
| 8879 /// Availability status of the item. |
8583 core.String availability; | 8880 core.String availability; |
8584 /** | 8881 |
8585 * The day a pre-ordered product becomes available for delivery, in ISO 8601 | 8882 /// The day a pre-ordered product becomes available for delivery, in ISO 8601 |
8586 * format. | 8883 /// format. |
8587 */ | |
8588 core.String availabilityDate; | 8884 core.String availabilityDate; |
8589 /** Brand of the item. */ | 8885 |
| 8886 /// Brand of the item. |
8590 core.String brand; | 8887 core.String brand; |
8591 /** The item's channel (online or local). */ | 8888 |
| 8889 /// The item's channel (online or local). |
8592 core.String channel; | 8890 core.String channel; |
8593 /** Color of the item. */ | 8891 |
| 8892 /// Color of the item. |
8594 core.String color; | 8893 core.String color; |
8595 /** Condition or state of the item. */ | 8894 |
| 8895 /// Condition or state of the item. |
8596 core.String condition; | 8896 core.String condition; |
8597 /** The two-letter ISO 639-1 language code for the item. */ | 8897 |
| 8898 /// The two-letter ISO 639-1 language code for the item. |
8598 core.String contentLanguage; | 8899 core.String contentLanguage; |
8599 /** | 8900 |
8600 * A list of custom (merchant-provided) attributes. It can also be used for | 8901 /// A list of custom (merchant-provided) attributes. It can also be used for |
8601 * submitting any attribute of the feed specification in its generic form | 8902 /// submitting any attribute of the feed specification in its generic form |
8602 * (e.g., { "name": "size type", "type": "text", "value": "regular" }). This | 8903 /// (e.g., { "name": "size type", "type": "text", "value": "regular" }). This |
8603 * is useful for submitting attributes not explicitly exposed by the API. | 8904 /// is useful for submitting attributes not explicitly exposed by the API. |
8604 */ | |
8605 core.List<ProductCustomAttribute> customAttributes; | 8905 core.List<ProductCustomAttribute> customAttributes; |
8606 /** A list of custom (merchant-provided) custom attribute groups. */ | 8906 |
| 8907 /// A list of custom (merchant-provided) custom attribute groups. |
8607 core.List<ProductCustomGroup> customGroups; | 8908 core.List<ProductCustomGroup> customGroups; |
8608 /** Custom label 0 for custom grouping of items in a Shopping campaign. */ | 8909 |
| 8910 /// Custom label 0 for custom grouping of items in a Shopping campaign. |
8609 core.String customLabel0; | 8911 core.String customLabel0; |
8610 /** Custom label 1 for custom grouping of items in a Shopping campaign. */ | 8912 |
| 8913 /// Custom label 1 for custom grouping of items in a Shopping campaign. |
8611 core.String customLabel1; | 8914 core.String customLabel1; |
8612 /** Custom label 2 for custom grouping of items in a Shopping campaign. */ | 8915 |
| 8916 /// Custom label 2 for custom grouping of items in a Shopping campaign. |
8613 core.String customLabel2; | 8917 core.String customLabel2; |
8614 /** Custom label 3 for custom grouping of items in a Shopping campaign. */ | 8918 |
| 8919 /// Custom label 3 for custom grouping of items in a Shopping campaign. |
8615 core.String customLabel3; | 8920 core.String customLabel3; |
8616 /** Custom label 4 for custom grouping of items in a Shopping campaign. */ | 8921 |
| 8922 /// Custom label 4 for custom grouping of items in a Shopping campaign. |
8617 core.String customLabel4; | 8923 core.String customLabel4; |
8618 /** Description of the item. */ | 8924 |
| 8925 /// Description of the item. |
8619 core.String description; | 8926 core.String description; |
8620 /** Specifies the intended destinations for the product. */ | 8927 |
| 8928 /// Specifies the intended destinations for the product. |
8621 core.List<ProductDestination> destinations; | 8929 core.List<ProductDestination> destinations; |
8622 /** An identifier for an item for dynamic remarketing campaigns. */ | 8930 |
| 8931 /// An identifier for an item for dynamic remarketing campaigns. |
8623 core.String displayAdsId; | 8932 core.String displayAdsId; |
8624 /** | 8933 |
8625 * URL directly to your item's landing page for dynamic remarketing campaigns. | 8934 /// URL directly to your item's landing page for dynamic remarketing |
8626 */ | 8935 /// campaigns. |
8627 core.String displayAdsLink; | 8936 core.String displayAdsLink; |
8628 /** Advertiser-specified recommendations. */ | 8937 |
| 8938 /// Advertiser-specified recommendations. |
8629 core.List<core.String> displayAdsSimilarIds; | 8939 core.List<core.String> displayAdsSimilarIds; |
8630 /** Title of an item for dynamic remarketing campaigns. */ | 8940 |
| 8941 /// Title of an item for dynamic remarketing campaigns. |
8631 core.String displayAdsTitle; | 8942 core.String displayAdsTitle; |
8632 /** Offer margin for dynamic remarketing campaigns. */ | 8943 |
| 8944 /// Offer margin for dynamic remarketing campaigns. |
8633 core.double displayAdsValue; | 8945 core.double displayAdsValue; |
8634 /** The energy efficiency class as defined in EU directive 2010/30/EU. */ | 8946 |
| 8947 /// The energy efficiency class as defined in EU directive 2010/30/EU. |
8635 core.String energyEfficiencyClass; | 8948 core.String energyEfficiencyClass; |
8636 /** | 8949 |
8637 * Date on which the item should expire, as specified upon insertion, in ISO | 8950 /// Date on which the item should expire, as specified upon insertion, in ISO |
8638 * 8601 format. The actual expiration date in Google Shopping is exposed in | 8951 /// 8601 format. The actual expiration date in Google Shopping is exposed in |
8639 * productstatuses as googleExpirationDate and might be earlier if | 8952 /// productstatuses as googleExpirationDate and might be earlier if |
8640 * expirationDate is too far in the future. | 8953 /// expirationDate is too far in the future. |
8641 */ | |
8642 core.String expirationDate; | 8954 core.String expirationDate; |
8643 /** Target gender of the item. */ | 8955 |
| 8956 /// Target gender of the item. |
8644 core.String gender; | 8957 core.String gender; |
8645 /** Google's category of the item (see Google product taxonomy). */ | 8958 |
| 8959 /// Google's category of the item (see Google product taxonomy). |
8646 core.String googleProductCategory; | 8960 core.String googleProductCategory; |
8647 /** Global Trade Item Number (GTIN) of the item. */ | 8961 |
| 8962 /// Global Trade Item Number (GTIN) of the item. |
8648 core.String gtin; | 8963 core.String gtin; |
8649 /** The REST id of the product. */ | 8964 |
| 8965 /// The REST id of the product. |
8650 core.String id; | 8966 core.String id; |
8651 /** | 8967 |
8652 * False when the item does not have unique product identifiers appropriate to | 8968 /// False when the item does not have unique product identifiers appropriate |
8653 * its category, such as GTIN, MPN, and brand. Required according to the | 8969 /// to its category, such as GTIN, MPN, and brand. Required according to the |
8654 * Unique Product Identifier Rules for all target countries except for Canada. | 8970 /// Unique Product Identifier Rules for all target countries except for |
8655 */ | 8971 /// Canada. |
8656 core.bool identifierExists; | 8972 core.bool identifierExists; |
8657 /** URL of an image of the item. */ | 8973 |
| 8974 /// URL of an image of the item. |
8658 core.String imageLink; | 8975 core.String imageLink; |
8659 /** Number and amount of installments to pay for an item. Brazil only. */ | 8976 |
| 8977 /// Number and amount of installments to pay for an item. Brazil only. |
8660 Installment installment; | 8978 Installment installment; |
8661 /** | 8979 |
8662 * Whether the item is a merchant-defined bundle. A bundle is a custom | 8980 /// Whether the item is a merchant-defined bundle. A bundle is a custom |
8663 * grouping of different products sold by a merchant for a single price. | 8981 /// grouping of different products sold by a merchant for a single price. |
8664 */ | |
8665 core.bool isBundle; | 8982 core.bool isBundle; |
8666 /** Shared identifier for all variants of the same product. */ | 8983 |
| 8984 /// Shared identifier for all variants of the same product. |
8667 core.String itemGroupId; | 8985 core.String itemGroupId; |
8668 /** | 8986 |
8669 * Identifies what kind of resource this is. Value: the fixed string | 8987 /// Identifies what kind of resource this is. Value: the fixed string |
8670 * "content#product". | 8988 /// "content#product". |
8671 */ | |
8672 core.String kind; | 8989 core.String kind; |
8673 /** URL directly linking to your item's page on your website. */ | 8990 |
| 8991 /// URL directly linking to your item's page on your website. |
8674 core.String link; | 8992 core.String link; |
8675 /** | 8993 |
8676 * Loyalty points that users receive after purchasing the item. Japan only. | 8994 /// Loyalty points that users receive after purchasing the item. Japan only. |
8677 */ | |
8678 LoyaltyPoints loyaltyPoints; | 8995 LoyaltyPoints loyaltyPoints; |
8679 /** The material of which the item is made. */ | 8996 |
| 8997 /// The material of which the item is made. |
8680 core.String material; | 8998 core.String material; |
8681 /** Maximal product handling time (in business days). */ | 8999 |
| 9000 /// Maximal product handling time (in business days). |
8682 core.String maxHandlingTime; | 9001 core.String maxHandlingTime; |
8683 /** Minimal product handling time (in business days). */ | 9002 |
| 9003 /// Minimal product handling time (in business days). |
8684 core.String minHandlingTime; | 9004 core.String minHandlingTime; |
8685 /** Link to a mobile-optimized version of the landing page. */ | 9005 |
| 9006 /// Link to a mobile-optimized version of the landing page. |
8686 core.String mobileLink; | 9007 core.String mobileLink; |
8687 /** Manufacturer Part Number (MPN) of the item. */ | 9008 |
| 9009 /// Manufacturer Part Number (MPN) of the item. |
8688 core.String mpn; | 9010 core.String mpn; |
8689 /** The number of identical products in a merchant-defined multipack. */ | 9011 |
| 9012 /// The number of identical products in a merchant-defined multipack. |
8690 core.String multipack; | 9013 core.String multipack; |
8691 /** | 9014 |
8692 * An identifier of the item. Leading and trailing whitespaces are stripped | 9015 /// An identifier of the item. Leading and trailing whitespaces are stripped |
8693 * and multiple whitespaces are replaced by a single whitespace upon | 9016 /// and multiple whitespaces are replaced by a single whitespace upon |
8694 * submission. Only valid unicode characters are accepted. See the products | 9017 /// submission. Only valid unicode characters are accepted. See the products |
8695 * feed specification for details. | 9018 /// feed specification for details. |
8696 */ | |
8697 core.String offerId; | 9019 core.String offerId; |
8698 /** Whether an item is available for purchase only online. */ | 9020 |
| 9021 /// Whether an item is available for purchase only online. |
8699 core.bool onlineOnly; | 9022 core.bool onlineOnly; |
8700 /** The item's pattern (e.g. polka dots). */ | 9023 |
| 9024 /// The item's pattern (e.g. polka dots). |
8701 core.String pattern; | 9025 core.String pattern; |
8702 /** Price of the item. */ | 9026 |
| 9027 /// Price of the item. |
8703 Price price; | 9028 Price price; |
8704 /** | 9029 |
8705 * Your category of the item (formatted as in products feed specification). | 9030 /// Your category of the item (formatted as in products feed specification). |
8706 */ | |
8707 core.String productType; | 9031 core.String productType; |
8708 /** The unique ID of a promotion. */ | 9032 |
| 9033 /// The unique ID of a promotion. |
8709 core.List<core.String> promotionIds; | 9034 core.List<core.String> promotionIds; |
8710 /** Advertised sale price of the item. */ | 9035 |
| 9036 /// Advertised sale price of the item. |
8711 Price salePrice; | 9037 Price salePrice; |
8712 /** | 9038 |
8713 * Date range during which the item is on sale (see products feed | 9039 /// Date range during which the item is on sale (see products feed |
8714 * specification). | 9040 /// specification). |
8715 */ | |
8716 core.String salePriceEffectiveDate; | 9041 core.String salePriceEffectiveDate; |
8717 /** The quantity of the product that is reserved for sell-on-google ads. */ | 9042 |
| 9043 /// The quantity of the product that is reserved for sell-on-google ads. |
8718 core.String sellOnGoogleQuantity; | 9044 core.String sellOnGoogleQuantity; |
8719 /** Shipping rules. */ | 9045 |
| 9046 /// Shipping rules. |
8720 core.List<ProductShipping> shipping; | 9047 core.List<ProductShipping> shipping; |
8721 /** Height of the item for shipping. */ | 9048 |
| 9049 /// Height of the item for shipping. |
8722 ProductShippingDimension shippingHeight; | 9050 ProductShippingDimension shippingHeight; |
8723 /** | 9051 |
8724 * The shipping label of the product, used to group product in account-level | 9052 /// The shipping label of the product, used to group product in account-level |
8725 * shipping rules. | 9053 /// shipping rules. |
8726 */ | |
8727 core.String shippingLabel; | 9054 core.String shippingLabel; |
8728 /** Length of the item for shipping. */ | 9055 |
| 9056 /// Length of the item for shipping. |
8729 ProductShippingDimension shippingLength; | 9057 ProductShippingDimension shippingLength; |
8730 /** Weight of the item for shipping. */ | 9058 |
| 9059 /// Weight of the item for shipping. |
8731 ProductShippingWeight shippingWeight; | 9060 ProductShippingWeight shippingWeight; |
8732 /** Width of the item for shipping. */ | 9061 |
| 9062 /// Width of the item for shipping. |
8733 ProductShippingDimension shippingWidth; | 9063 ProductShippingDimension shippingWidth; |
8734 /** System in which the size is specified. Recommended for apparel items. */ | 9064 |
| 9065 /// System in which the size is specified. Recommended for apparel items. |
8735 core.String sizeSystem; | 9066 core.String sizeSystem; |
8736 /** The cut of the item. Recommended for apparel items. */ | 9067 |
| 9068 /// The cut of the item. Recommended for apparel items. |
8737 core.String sizeType; | 9069 core.String sizeType; |
8738 /** Size of the item. */ | 9070 |
| 9071 /// Size of the item. |
8739 core.List<core.String> sizes; | 9072 core.List<core.String> sizes; |
8740 /** The CLDR territory code for the item. */ | 9073 |
| 9074 /// The CLDR territory code for the item. |
8741 core.String targetCountry; | 9075 core.String targetCountry; |
8742 /** Tax information. */ | 9076 |
| 9077 /// Tax information. |
8743 core.List<ProductTax> taxes; | 9078 core.List<ProductTax> taxes; |
8744 /** Title of the item. */ | 9079 |
| 9080 /// Title of the item. |
8745 core.String title; | 9081 core.String title; |
8746 /** The preference of the denominator of the unit price. */ | 9082 |
| 9083 /// The preference of the denominator of the unit price. |
8747 ProductUnitPricingBaseMeasure unitPricingBaseMeasure; | 9084 ProductUnitPricingBaseMeasure unitPricingBaseMeasure; |
8748 /** The measure and dimension of an item. */ | 9085 |
| 9086 /// The measure and dimension of an item. |
8749 ProductUnitPricingMeasure unitPricingMeasure; | 9087 ProductUnitPricingMeasure unitPricingMeasure; |
8750 /** The read-only list of intended destinations which passed validation. */ | 9088 |
| 9089 /// The read-only list of intended destinations which passed validation. |
8751 core.List<core.String> validatedDestinations; | 9090 core.List<core.String> validatedDestinations; |
8752 /** Read-only warnings. */ | 9091 |
| 9092 /// Read-only warnings. |
8753 core.List<Error> warnings; | 9093 core.List<Error> warnings; |
8754 | 9094 |
8755 Product(); | 9095 Product(); |
8756 | 9096 |
8757 Product.fromJson(core.Map _json) { | 9097 Product.fromJson(core.Map _json) { |
8758 if (_json.containsKey("additionalImageLinks")) { | 9098 if (_json.containsKey("additionalImageLinks")) { |
8759 additionalImageLinks = _json["additionalImageLinks"]; | 9099 additionalImageLinks = _json["additionalImageLinks"]; |
8760 } | 9100 } |
8761 if (_json.containsKey("additionalProductTypes")) { | 9101 if (_json.containsKey("additionalProductTypes")) { |
8762 additionalProductTypes = _json["additionalProductTypes"]; | 9102 additionalProductTypes = _json["additionalProductTypes"]; |
8763 } | 9103 } |
8764 if (_json.containsKey("adult")) { | 9104 if (_json.containsKey("adult")) { |
8765 adult = _json["adult"]; | 9105 adult = _json["adult"]; |
8766 } | 9106 } |
8767 if (_json.containsKey("adwordsGrouping")) { | 9107 if (_json.containsKey("adwordsGrouping")) { |
8768 adwordsGrouping = _json["adwordsGrouping"]; | 9108 adwordsGrouping = _json["adwordsGrouping"]; |
8769 } | 9109 } |
8770 if (_json.containsKey("adwordsLabels")) { | 9110 if (_json.containsKey("adwordsLabels")) { |
8771 adwordsLabels = _json["adwordsLabels"]; | 9111 adwordsLabels = _json["adwordsLabels"]; |
8772 } | 9112 } |
8773 if (_json.containsKey("adwordsRedirect")) { | 9113 if (_json.containsKey("adwordsRedirect")) { |
8774 adwordsRedirect = _json["adwordsRedirect"]; | 9114 adwordsRedirect = _json["adwordsRedirect"]; |
8775 } | 9115 } |
8776 if (_json.containsKey("ageGroup")) { | 9116 if (_json.containsKey("ageGroup")) { |
8777 ageGroup = _json["ageGroup"]; | 9117 ageGroup = _json["ageGroup"]; |
8778 } | 9118 } |
8779 if (_json.containsKey("aspects")) { | 9119 if (_json.containsKey("aspects")) { |
8780 aspects = _json["aspects"].map((value) => new ProductAspect.fromJson(value
)).toList(); | 9120 aspects = _json["aspects"] |
| 9121 .map((value) => new ProductAspect.fromJson(value)) |
| 9122 .toList(); |
8781 } | 9123 } |
8782 if (_json.containsKey("availability")) { | 9124 if (_json.containsKey("availability")) { |
8783 availability = _json["availability"]; | 9125 availability = _json["availability"]; |
8784 } | 9126 } |
8785 if (_json.containsKey("availabilityDate")) { | 9127 if (_json.containsKey("availabilityDate")) { |
8786 availabilityDate = _json["availabilityDate"]; | 9128 availabilityDate = _json["availabilityDate"]; |
8787 } | 9129 } |
8788 if (_json.containsKey("brand")) { | 9130 if (_json.containsKey("brand")) { |
8789 brand = _json["brand"]; | 9131 brand = _json["brand"]; |
8790 } | 9132 } |
8791 if (_json.containsKey("channel")) { | 9133 if (_json.containsKey("channel")) { |
8792 channel = _json["channel"]; | 9134 channel = _json["channel"]; |
8793 } | 9135 } |
8794 if (_json.containsKey("color")) { | 9136 if (_json.containsKey("color")) { |
8795 color = _json["color"]; | 9137 color = _json["color"]; |
8796 } | 9138 } |
8797 if (_json.containsKey("condition")) { | 9139 if (_json.containsKey("condition")) { |
8798 condition = _json["condition"]; | 9140 condition = _json["condition"]; |
8799 } | 9141 } |
8800 if (_json.containsKey("contentLanguage")) { | 9142 if (_json.containsKey("contentLanguage")) { |
8801 contentLanguage = _json["contentLanguage"]; | 9143 contentLanguage = _json["contentLanguage"]; |
8802 } | 9144 } |
8803 if (_json.containsKey("customAttributes")) { | 9145 if (_json.containsKey("customAttributes")) { |
8804 customAttributes = _json["customAttributes"].map((value) => new ProductCus
tomAttribute.fromJson(value)).toList(); | 9146 customAttributes = _json["customAttributes"] |
| 9147 .map((value) => new ProductCustomAttribute.fromJson(value)) |
| 9148 .toList(); |
8805 } | 9149 } |
8806 if (_json.containsKey("customGroups")) { | 9150 if (_json.containsKey("customGroups")) { |
8807 customGroups = _json["customGroups"].map((value) => new ProductCustomGroup
.fromJson(value)).toList(); | 9151 customGroups = _json["customGroups"] |
| 9152 .map((value) => new ProductCustomGroup.fromJson(value)) |
| 9153 .toList(); |
8808 } | 9154 } |
8809 if (_json.containsKey("customLabel0")) { | 9155 if (_json.containsKey("customLabel0")) { |
8810 customLabel0 = _json["customLabel0"]; | 9156 customLabel0 = _json["customLabel0"]; |
8811 } | 9157 } |
8812 if (_json.containsKey("customLabel1")) { | 9158 if (_json.containsKey("customLabel1")) { |
8813 customLabel1 = _json["customLabel1"]; | 9159 customLabel1 = _json["customLabel1"]; |
8814 } | 9160 } |
8815 if (_json.containsKey("customLabel2")) { | 9161 if (_json.containsKey("customLabel2")) { |
8816 customLabel2 = _json["customLabel2"]; | 9162 customLabel2 = _json["customLabel2"]; |
8817 } | 9163 } |
8818 if (_json.containsKey("customLabel3")) { | 9164 if (_json.containsKey("customLabel3")) { |
8819 customLabel3 = _json["customLabel3"]; | 9165 customLabel3 = _json["customLabel3"]; |
8820 } | 9166 } |
8821 if (_json.containsKey("customLabel4")) { | 9167 if (_json.containsKey("customLabel4")) { |
8822 customLabel4 = _json["customLabel4"]; | 9168 customLabel4 = _json["customLabel4"]; |
8823 } | 9169 } |
8824 if (_json.containsKey("description")) { | 9170 if (_json.containsKey("description")) { |
8825 description = _json["description"]; | 9171 description = _json["description"]; |
8826 } | 9172 } |
8827 if (_json.containsKey("destinations")) { | 9173 if (_json.containsKey("destinations")) { |
8828 destinations = _json["destinations"].map((value) => new ProductDestination
.fromJson(value)).toList(); | 9174 destinations = _json["destinations"] |
| 9175 .map((value) => new ProductDestination.fromJson(value)) |
| 9176 .toList(); |
8829 } | 9177 } |
8830 if (_json.containsKey("displayAdsId")) { | 9178 if (_json.containsKey("displayAdsId")) { |
8831 displayAdsId = _json["displayAdsId"]; | 9179 displayAdsId = _json["displayAdsId"]; |
8832 } | 9180 } |
8833 if (_json.containsKey("displayAdsLink")) { | 9181 if (_json.containsKey("displayAdsLink")) { |
8834 displayAdsLink = _json["displayAdsLink"]; | 9182 displayAdsLink = _json["displayAdsLink"]; |
8835 } | 9183 } |
8836 if (_json.containsKey("displayAdsSimilarIds")) { | 9184 if (_json.containsKey("displayAdsSimilarIds")) { |
8837 displayAdsSimilarIds = _json["displayAdsSimilarIds"]; | 9185 displayAdsSimilarIds = _json["displayAdsSimilarIds"]; |
8838 } | 9186 } |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8923 if (_json.containsKey("salePrice")) { | 9271 if (_json.containsKey("salePrice")) { |
8924 salePrice = new Price.fromJson(_json["salePrice"]); | 9272 salePrice = new Price.fromJson(_json["salePrice"]); |
8925 } | 9273 } |
8926 if (_json.containsKey("salePriceEffectiveDate")) { | 9274 if (_json.containsKey("salePriceEffectiveDate")) { |
8927 salePriceEffectiveDate = _json["salePriceEffectiveDate"]; | 9275 salePriceEffectiveDate = _json["salePriceEffectiveDate"]; |
8928 } | 9276 } |
8929 if (_json.containsKey("sellOnGoogleQuantity")) { | 9277 if (_json.containsKey("sellOnGoogleQuantity")) { |
8930 sellOnGoogleQuantity = _json["sellOnGoogleQuantity"]; | 9278 sellOnGoogleQuantity = _json["sellOnGoogleQuantity"]; |
8931 } | 9279 } |
8932 if (_json.containsKey("shipping")) { | 9280 if (_json.containsKey("shipping")) { |
8933 shipping = _json["shipping"].map((value) => new ProductShipping.fromJson(v
alue)).toList(); | 9281 shipping = _json["shipping"] |
| 9282 .map((value) => new ProductShipping.fromJson(value)) |
| 9283 .toList(); |
8934 } | 9284 } |
8935 if (_json.containsKey("shippingHeight")) { | 9285 if (_json.containsKey("shippingHeight")) { |
8936 shippingHeight = new ProductShippingDimension.fromJson(_json["shippingHeig
ht"]); | 9286 shippingHeight = |
| 9287 new ProductShippingDimension.fromJson(_json["shippingHeight"]); |
8937 } | 9288 } |
8938 if (_json.containsKey("shippingLabel")) { | 9289 if (_json.containsKey("shippingLabel")) { |
8939 shippingLabel = _json["shippingLabel"]; | 9290 shippingLabel = _json["shippingLabel"]; |
8940 } | 9291 } |
8941 if (_json.containsKey("shippingLength")) { | 9292 if (_json.containsKey("shippingLength")) { |
8942 shippingLength = new ProductShippingDimension.fromJson(_json["shippingLeng
th"]); | 9293 shippingLength = |
| 9294 new ProductShippingDimension.fromJson(_json["shippingLength"]); |
8943 } | 9295 } |
8944 if (_json.containsKey("shippingWeight")) { | 9296 if (_json.containsKey("shippingWeight")) { |
8945 shippingWeight = new ProductShippingWeight.fromJson(_json["shippingWeight"
]); | 9297 shippingWeight = |
| 9298 new ProductShippingWeight.fromJson(_json["shippingWeight"]); |
8946 } | 9299 } |
8947 if (_json.containsKey("shippingWidth")) { | 9300 if (_json.containsKey("shippingWidth")) { |
8948 shippingWidth = new ProductShippingDimension.fromJson(_json["shippingWidth
"]); | 9301 shippingWidth = |
| 9302 new ProductShippingDimension.fromJson(_json["shippingWidth"]); |
8949 } | 9303 } |
8950 if (_json.containsKey("sizeSystem")) { | 9304 if (_json.containsKey("sizeSystem")) { |
8951 sizeSystem = _json["sizeSystem"]; | 9305 sizeSystem = _json["sizeSystem"]; |
8952 } | 9306 } |
8953 if (_json.containsKey("sizeType")) { | 9307 if (_json.containsKey("sizeType")) { |
8954 sizeType = _json["sizeType"]; | 9308 sizeType = _json["sizeType"]; |
8955 } | 9309 } |
8956 if (_json.containsKey("sizes")) { | 9310 if (_json.containsKey("sizes")) { |
8957 sizes = _json["sizes"]; | 9311 sizes = _json["sizes"]; |
8958 } | 9312 } |
8959 if (_json.containsKey("targetCountry")) { | 9313 if (_json.containsKey("targetCountry")) { |
8960 targetCountry = _json["targetCountry"]; | 9314 targetCountry = _json["targetCountry"]; |
8961 } | 9315 } |
8962 if (_json.containsKey("taxes")) { | 9316 if (_json.containsKey("taxes")) { |
8963 taxes = _json["taxes"].map((value) => new ProductTax.fromJson(value)).toLi
st(); | 9317 taxes = _json["taxes"] |
| 9318 .map((value) => new ProductTax.fromJson(value)) |
| 9319 .toList(); |
8964 } | 9320 } |
8965 if (_json.containsKey("title")) { | 9321 if (_json.containsKey("title")) { |
8966 title = _json["title"]; | 9322 title = _json["title"]; |
8967 } | 9323 } |
8968 if (_json.containsKey("unitPricingBaseMeasure")) { | 9324 if (_json.containsKey("unitPricingBaseMeasure")) { |
8969 unitPricingBaseMeasure = new ProductUnitPricingBaseMeasure.fromJson(_json[
"unitPricingBaseMeasure"]); | 9325 unitPricingBaseMeasure = new ProductUnitPricingBaseMeasure.fromJson( |
| 9326 _json["unitPricingBaseMeasure"]); |
8970 } | 9327 } |
8971 if (_json.containsKey("unitPricingMeasure")) { | 9328 if (_json.containsKey("unitPricingMeasure")) { |
8972 unitPricingMeasure = new ProductUnitPricingMeasure.fromJson(_json["unitPri
cingMeasure"]); | 9329 unitPricingMeasure = |
| 9330 new ProductUnitPricingMeasure.fromJson(_json["unitPricingMeasure"]); |
8973 } | 9331 } |
8974 if (_json.containsKey("validatedDestinations")) { | 9332 if (_json.containsKey("validatedDestinations")) { |
8975 validatedDestinations = _json["validatedDestinations"]; | 9333 validatedDestinations = _json["validatedDestinations"]; |
8976 } | 9334 } |
8977 if (_json.containsKey("warnings")) { | 9335 if (_json.containsKey("warnings")) { |
8978 warnings = _json["warnings"].map((value) => new Error.fromJson(value)).toL
ist(); | 9336 warnings = |
| 9337 _json["warnings"].map((value) => new Error.fromJson(value)).toList(); |
8979 } | 9338 } |
8980 } | 9339 } |
8981 | 9340 |
8982 core.Map<core.String, core.Object> toJson() { | 9341 core.Map<core.String, core.Object> toJson() { |
8983 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 9342 final core.Map<core.String, core.Object> _json = |
| 9343 new core.Map<core.String, core.Object>(); |
8984 if (additionalImageLinks != null) { | 9344 if (additionalImageLinks != null) { |
8985 _json["additionalImageLinks"] = additionalImageLinks; | 9345 _json["additionalImageLinks"] = additionalImageLinks; |
8986 } | 9346 } |
8987 if (additionalProductTypes != null) { | 9347 if (additionalProductTypes != null) { |
8988 _json["additionalProductTypes"] = additionalProductTypes; | 9348 _json["additionalProductTypes"] = additionalProductTypes; |
8989 } | 9349 } |
8990 if (adult != null) { | 9350 if (adult != null) { |
8991 _json["adult"] = adult; | 9351 _json["adult"] = adult; |
8992 } | 9352 } |
8993 if (adwordsGrouping != null) { | 9353 if (adwordsGrouping != null) { |
(...skipping 26 matching lines...) Expand all Loading... |
9020 if (color != null) { | 9380 if (color != null) { |
9021 _json["color"] = color; | 9381 _json["color"] = color; |
9022 } | 9382 } |
9023 if (condition != null) { | 9383 if (condition != null) { |
9024 _json["condition"] = condition; | 9384 _json["condition"] = condition; |
9025 } | 9385 } |
9026 if (contentLanguage != null) { | 9386 if (contentLanguage != null) { |
9027 _json["contentLanguage"] = contentLanguage; | 9387 _json["contentLanguage"] = contentLanguage; |
9028 } | 9388 } |
9029 if (customAttributes != null) { | 9389 if (customAttributes != null) { |
9030 _json["customAttributes"] = customAttributes.map((value) => (value).toJson
()).toList(); | 9390 _json["customAttributes"] = |
| 9391 customAttributes.map((value) => (value).toJson()).toList(); |
9031 } | 9392 } |
9032 if (customGroups != null) { | 9393 if (customGroups != null) { |
9033 _json["customGroups"] = customGroups.map((value) => (value).toJson()).toLi
st(); | 9394 _json["customGroups"] = |
| 9395 customGroups.map((value) => (value).toJson()).toList(); |
9034 } | 9396 } |
9035 if (customLabel0 != null) { | 9397 if (customLabel0 != null) { |
9036 _json["customLabel0"] = customLabel0; | 9398 _json["customLabel0"] = customLabel0; |
9037 } | 9399 } |
9038 if (customLabel1 != null) { | 9400 if (customLabel1 != null) { |
9039 _json["customLabel1"] = customLabel1; | 9401 _json["customLabel1"] = customLabel1; |
9040 } | 9402 } |
9041 if (customLabel2 != null) { | 9403 if (customLabel2 != null) { |
9042 _json["customLabel2"] = customLabel2; | 9404 _json["customLabel2"] = customLabel2; |
9043 } | 9405 } |
9044 if (customLabel3 != null) { | 9406 if (customLabel3 != null) { |
9045 _json["customLabel3"] = customLabel3; | 9407 _json["customLabel3"] = customLabel3; |
9046 } | 9408 } |
9047 if (customLabel4 != null) { | 9409 if (customLabel4 != null) { |
9048 _json["customLabel4"] = customLabel4; | 9410 _json["customLabel4"] = customLabel4; |
9049 } | 9411 } |
9050 if (description != null) { | 9412 if (description != null) { |
9051 _json["description"] = description; | 9413 _json["description"] = description; |
9052 } | 9414 } |
9053 if (destinations != null) { | 9415 if (destinations != null) { |
9054 _json["destinations"] = destinations.map((value) => (value).toJson()).toLi
st(); | 9416 _json["destinations"] = |
| 9417 destinations.map((value) => (value).toJson()).toList(); |
9055 } | 9418 } |
9056 if (displayAdsId != null) { | 9419 if (displayAdsId != null) { |
9057 _json["displayAdsId"] = displayAdsId; | 9420 _json["displayAdsId"] = displayAdsId; |
9058 } | 9421 } |
9059 if (displayAdsLink != null) { | 9422 if (displayAdsLink != null) { |
9060 _json["displayAdsLink"] = displayAdsLink; | 9423 _json["displayAdsLink"] = displayAdsLink; |
9061 } | 9424 } |
9062 if (displayAdsSimilarIds != null) { | 9425 if (displayAdsSimilarIds != null) { |
9063 _json["displayAdsSimilarIds"] = displayAdsSimilarIds; | 9426 _json["displayAdsSimilarIds"] = displayAdsSimilarIds; |
9064 } | 9427 } |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9201 _json["validatedDestinations"] = validatedDestinations; | 9564 _json["validatedDestinations"] = validatedDestinations; |
9202 } | 9565 } |
9203 if (warnings != null) { | 9566 if (warnings != null) { |
9204 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); | 9567 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); |
9205 } | 9568 } |
9206 return _json; | 9569 return _json; |
9207 } | 9570 } |
9208 } | 9571 } |
9209 | 9572 |
9210 class ProductAspect { | 9573 class ProductAspect { |
9211 /** The name of the aspect. */ | 9574 /// The name of the aspect. |
9212 core.String aspectName; | 9575 core.String aspectName; |
9213 /** The name of the destination. Leave out to apply to all destinations. */ | 9576 |
| 9577 /// The name of the destination. Leave out to apply to all destinations. |
9214 core.String destinationName; | 9578 core.String destinationName; |
9215 /** Whether the aspect is required, excluded or should be validated. */ | 9579 |
| 9580 /// Whether the aspect is required, excluded or should be validated. |
9216 core.String intention; | 9581 core.String intention; |
9217 | 9582 |
9218 ProductAspect(); | 9583 ProductAspect(); |
9219 | 9584 |
9220 ProductAspect.fromJson(core.Map _json) { | 9585 ProductAspect.fromJson(core.Map _json) { |
9221 if (_json.containsKey("aspectName")) { | 9586 if (_json.containsKey("aspectName")) { |
9222 aspectName = _json["aspectName"]; | 9587 aspectName = _json["aspectName"]; |
9223 } | 9588 } |
9224 if (_json.containsKey("destinationName")) { | 9589 if (_json.containsKey("destinationName")) { |
9225 destinationName = _json["destinationName"]; | 9590 destinationName = _json["destinationName"]; |
9226 } | 9591 } |
9227 if (_json.containsKey("intention")) { | 9592 if (_json.containsKey("intention")) { |
9228 intention = _json["intention"]; | 9593 intention = _json["intention"]; |
9229 } | 9594 } |
9230 } | 9595 } |
9231 | 9596 |
9232 core.Map<core.String, core.Object> toJson() { | 9597 core.Map<core.String, core.Object> toJson() { |
9233 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 9598 final core.Map<core.String, core.Object> _json = |
| 9599 new core.Map<core.String, core.Object>(); |
9234 if (aspectName != null) { | 9600 if (aspectName != null) { |
9235 _json["aspectName"] = aspectName; | 9601 _json["aspectName"] = aspectName; |
9236 } | 9602 } |
9237 if (destinationName != null) { | 9603 if (destinationName != null) { |
9238 _json["destinationName"] = destinationName; | 9604 _json["destinationName"] = destinationName; |
9239 } | 9605 } |
9240 if (intention != null) { | 9606 if (intention != null) { |
9241 _json["intention"] = intention; | 9607 _json["intention"] = intention; |
9242 } | 9608 } |
9243 return _json; | 9609 return _json; |
9244 } | 9610 } |
9245 } | 9611 } |
9246 | 9612 |
9247 class ProductCustomAttribute { | 9613 class ProductCustomAttribute { |
9248 /** | 9614 /// The name of the attribute. Underscores will be replaced by spaces upon |
9249 * The name of the attribute. Underscores will be replaced by spaces upon | 9615 /// insertion. |
9250 * insertion. | |
9251 */ | |
9252 core.String name; | 9616 core.String name; |
9253 /** The type of the attribute. */ | 9617 |
| 9618 /// The type of the attribute. |
9254 core.String type; | 9619 core.String type; |
9255 /** | 9620 |
9256 * Free-form unit of the attribute. Unit can only be used for values of type | 9621 /// Free-form unit of the attribute. Unit can only be used for values of type |
9257 * INT or FLOAT. | 9622 /// INT or FLOAT. |
9258 */ | |
9259 core.String unit; | 9623 core.String unit; |
9260 /** The value of the attribute. */ | 9624 |
| 9625 /// The value of the attribute. |
9261 core.String value; | 9626 core.String value; |
9262 | 9627 |
9263 ProductCustomAttribute(); | 9628 ProductCustomAttribute(); |
9264 | 9629 |
9265 ProductCustomAttribute.fromJson(core.Map _json) { | 9630 ProductCustomAttribute.fromJson(core.Map _json) { |
9266 if (_json.containsKey("name")) { | 9631 if (_json.containsKey("name")) { |
9267 name = _json["name"]; | 9632 name = _json["name"]; |
9268 } | 9633 } |
9269 if (_json.containsKey("type")) { | 9634 if (_json.containsKey("type")) { |
9270 type = _json["type"]; | 9635 type = _json["type"]; |
9271 } | 9636 } |
9272 if (_json.containsKey("unit")) { | 9637 if (_json.containsKey("unit")) { |
9273 unit = _json["unit"]; | 9638 unit = _json["unit"]; |
9274 } | 9639 } |
9275 if (_json.containsKey("value")) { | 9640 if (_json.containsKey("value")) { |
9276 value = _json["value"]; | 9641 value = _json["value"]; |
9277 } | 9642 } |
9278 } | 9643 } |
9279 | 9644 |
9280 core.Map<core.String, core.Object> toJson() { | 9645 core.Map<core.String, core.Object> toJson() { |
9281 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 9646 final core.Map<core.String, core.Object> _json = |
| 9647 new core.Map<core.String, core.Object>(); |
9282 if (name != null) { | 9648 if (name != null) { |
9283 _json["name"] = name; | 9649 _json["name"] = name; |
9284 } | 9650 } |
9285 if (type != null) { | 9651 if (type != null) { |
9286 _json["type"] = type; | 9652 _json["type"] = type; |
9287 } | 9653 } |
9288 if (unit != null) { | 9654 if (unit != null) { |
9289 _json["unit"] = unit; | 9655 _json["unit"] = unit; |
9290 } | 9656 } |
9291 if (value != null) { | 9657 if (value != null) { |
9292 _json["value"] = value; | 9658 _json["value"] = value; |
9293 } | 9659 } |
9294 return _json; | 9660 return _json; |
9295 } | 9661 } |
9296 } | 9662 } |
9297 | 9663 |
9298 class ProductCustomGroup { | 9664 class ProductCustomGroup { |
9299 /** The sub-attributes. */ | 9665 /// The sub-attributes. |
9300 core.List<ProductCustomAttribute> attributes; | 9666 core.List<ProductCustomAttribute> attributes; |
9301 /** | 9667 |
9302 * The name of the group. Underscores will be replaced by spaces upon | 9668 /// The name of the group. Underscores will be replaced by spaces upon |
9303 * insertion. | 9669 /// insertion. |
9304 */ | |
9305 core.String name; | 9670 core.String name; |
9306 | 9671 |
9307 ProductCustomGroup(); | 9672 ProductCustomGroup(); |
9308 | 9673 |
9309 ProductCustomGroup.fromJson(core.Map _json) { | 9674 ProductCustomGroup.fromJson(core.Map _json) { |
9310 if (_json.containsKey("attributes")) { | 9675 if (_json.containsKey("attributes")) { |
9311 attributes = _json["attributes"].map((value) => new ProductCustomAttribute
.fromJson(value)).toList(); | 9676 attributes = _json["attributes"] |
| 9677 .map((value) => new ProductCustomAttribute.fromJson(value)) |
| 9678 .toList(); |
9312 } | 9679 } |
9313 if (_json.containsKey("name")) { | 9680 if (_json.containsKey("name")) { |
9314 name = _json["name"]; | 9681 name = _json["name"]; |
9315 } | 9682 } |
9316 } | 9683 } |
9317 | 9684 |
9318 core.Map<core.String, core.Object> toJson() { | 9685 core.Map<core.String, core.Object> toJson() { |
9319 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 9686 final core.Map<core.String, core.Object> _json = |
| 9687 new core.Map<core.String, core.Object>(); |
9320 if (attributes != null) { | 9688 if (attributes != null) { |
9321 _json["attributes"] = attributes.map((value) => (value).toJson()).toList()
; | 9689 _json["attributes"] = |
| 9690 attributes.map((value) => (value).toJson()).toList(); |
9322 } | 9691 } |
9323 if (name != null) { | 9692 if (name != null) { |
9324 _json["name"] = name; | 9693 _json["name"] = name; |
9325 } | 9694 } |
9326 return _json; | 9695 return _json; |
9327 } | 9696 } |
9328 } | 9697 } |
9329 | 9698 |
9330 class ProductDestination { | 9699 class ProductDestination { |
9331 /** The name of the destination. */ | 9700 /// The name of the destination. |
9332 core.String destinationName; | 9701 core.String destinationName; |
9333 /** Whether the destination is required, excluded or should be validated. */ | 9702 |
| 9703 /// Whether the destination is required, excluded or should be validated. |
9334 core.String intention; | 9704 core.String intention; |
9335 | 9705 |
9336 ProductDestination(); | 9706 ProductDestination(); |
9337 | 9707 |
9338 ProductDestination.fromJson(core.Map _json) { | 9708 ProductDestination.fromJson(core.Map _json) { |
9339 if (_json.containsKey("destinationName")) { | 9709 if (_json.containsKey("destinationName")) { |
9340 destinationName = _json["destinationName"]; | 9710 destinationName = _json["destinationName"]; |
9341 } | 9711 } |
9342 if (_json.containsKey("intention")) { | 9712 if (_json.containsKey("intention")) { |
9343 intention = _json["intention"]; | 9713 intention = _json["intention"]; |
9344 } | 9714 } |
9345 } | 9715 } |
9346 | 9716 |
9347 core.Map<core.String, core.Object> toJson() { | 9717 core.Map<core.String, core.Object> toJson() { |
9348 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 9718 final core.Map<core.String, core.Object> _json = |
| 9719 new core.Map<core.String, core.Object>(); |
9349 if (destinationName != null) { | 9720 if (destinationName != null) { |
9350 _json["destinationName"] = destinationName; | 9721 _json["destinationName"] = destinationName; |
9351 } | 9722 } |
9352 if (intention != null) { | 9723 if (intention != null) { |
9353 _json["intention"] = intention; | 9724 _json["intention"] = intention; |
9354 } | 9725 } |
9355 return _json; | 9726 return _json; |
9356 } | 9727 } |
9357 } | 9728 } |
9358 | 9729 |
9359 class ProductShipping { | 9730 class ProductShipping { |
9360 /** The CLDR territory code of the country to which an item will ship. */ | 9731 /// The CLDR territory code of the country to which an item will ship. |
9361 core.String country; | 9732 core.String country; |
9362 /** | 9733 |
9363 * The location where the shipping is applicable, represented by a location | 9734 /// The location where the shipping is applicable, represented by a location |
9364 * group name. | 9735 /// group name. |
9365 */ | |
9366 core.String locationGroupName; | 9736 core.String locationGroupName; |
9367 /** | 9737 |
9368 * The numeric id of a location that the shipping rate applies to as defined | 9738 /// The numeric id of a location that the shipping rate applies to as defined |
9369 * in the AdWords API. | 9739 /// in the AdWords API. |
9370 */ | |
9371 core.String locationId; | 9740 core.String locationId; |
9372 /** | 9741 |
9373 * The postal code range that the shipping rate applies to, represented by a | 9742 /// The postal code range that the shipping rate applies to, represented by a |
9374 * postal code, a postal code prefix followed by a * wildcard, a range between | 9743 /// postal code, a postal code prefix followed by a * wildcard, a range |
9375 * two postal codes or two postal code prefixes of equal length. | 9744 /// between two postal codes or two postal code prefixes of equal length. |
9376 */ | |
9377 core.String postalCode; | 9745 core.String postalCode; |
9378 /** Fixed shipping price, represented as a number. */ | 9746 |
| 9747 /// Fixed shipping price, represented as a number. |
9379 Price price; | 9748 Price price; |
9380 /** The geographic region to which a shipping rate applies. */ | 9749 |
| 9750 /// The geographic region to which a shipping rate applies. |
9381 core.String region; | 9751 core.String region; |
9382 /** A free-form description of the service class or delivery speed. */ | 9752 |
| 9753 /// A free-form description of the service class or delivery speed. |
9383 core.String service; | 9754 core.String service; |
9384 | 9755 |
9385 ProductShipping(); | 9756 ProductShipping(); |
9386 | 9757 |
9387 ProductShipping.fromJson(core.Map _json) { | 9758 ProductShipping.fromJson(core.Map _json) { |
9388 if (_json.containsKey("country")) { | 9759 if (_json.containsKey("country")) { |
9389 country = _json["country"]; | 9760 country = _json["country"]; |
9390 } | 9761 } |
9391 if (_json.containsKey("locationGroupName")) { | 9762 if (_json.containsKey("locationGroupName")) { |
9392 locationGroupName = _json["locationGroupName"]; | 9763 locationGroupName = _json["locationGroupName"]; |
9393 } | 9764 } |
9394 if (_json.containsKey("locationId")) { | 9765 if (_json.containsKey("locationId")) { |
9395 locationId = _json["locationId"]; | 9766 locationId = _json["locationId"]; |
9396 } | 9767 } |
9397 if (_json.containsKey("postalCode")) { | 9768 if (_json.containsKey("postalCode")) { |
9398 postalCode = _json["postalCode"]; | 9769 postalCode = _json["postalCode"]; |
9399 } | 9770 } |
9400 if (_json.containsKey("price")) { | 9771 if (_json.containsKey("price")) { |
9401 price = new Price.fromJson(_json["price"]); | 9772 price = new Price.fromJson(_json["price"]); |
9402 } | 9773 } |
9403 if (_json.containsKey("region")) { | 9774 if (_json.containsKey("region")) { |
9404 region = _json["region"]; | 9775 region = _json["region"]; |
9405 } | 9776 } |
9406 if (_json.containsKey("service")) { | 9777 if (_json.containsKey("service")) { |
9407 service = _json["service"]; | 9778 service = _json["service"]; |
9408 } | 9779 } |
9409 } | 9780 } |
9410 | 9781 |
9411 core.Map<core.String, core.Object> toJson() { | 9782 core.Map<core.String, core.Object> toJson() { |
9412 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 9783 final core.Map<core.String, core.Object> _json = |
| 9784 new core.Map<core.String, core.Object>(); |
9413 if (country != null) { | 9785 if (country != null) { |
9414 _json["country"] = country; | 9786 _json["country"] = country; |
9415 } | 9787 } |
9416 if (locationGroupName != null) { | 9788 if (locationGroupName != null) { |
9417 _json["locationGroupName"] = locationGroupName; | 9789 _json["locationGroupName"] = locationGroupName; |
9418 } | 9790 } |
9419 if (locationId != null) { | 9791 if (locationId != null) { |
9420 _json["locationId"] = locationId; | 9792 _json["locationId"] = locationId; |
9421 } | 9793 } |
9422 if (postalCode != null) { | 9794 if (postalCode != null) { |
9423 _json["postalCode"] = postalCode; | 9795 _json["postalCode"] = postalCode; |
9424 } | 9796 } |
9425 if (price != null) { | 9797 if (price != null) { |
9426 _json["price"] = (price).toJson(); | 9798 _json["price"] = (price).toJson(); |
9427 } | 9799 } |
9428 if (region != null) { | 9800 if (region != null) { |
9429 _json["region"] = region; | 9801 _json["region"] = region; |
9430 } | 9802 } |
9431 if (service != null) { | 9803 if (service != null) { |
9432 _json["service"] = service; | 9804 _json["service"] = service; |
9433 } | 9805 } |
9434 return _json; | 9806 return _json; |
9435 } | 9807 } |
9436 } | 9808 } |
9437 | 9809 |
9438 class ProductShippingDimension { | 9810 class ProductShippingDimension { |
9439 /** | 9811 /// The unit of value. |
9440 * The unit of value. | 9812 /// |
9441 * | 9813 /// Acceptable values are: |
9442 * Acceptable values are: | 9814 /// - "cm" |
9443 * - "cm" | 9815 /// - "in" |
9444 * - "in" | |
9445 */ | |
9446 core.String unit; | 9816 core.String unit; |
9447 /** | 9817 |
9448 * The dimension of the product used to calculate the shipping cost of the | 9818 /// The dimension of the product used to calculate the shipping cost of the |
9449 * item. | 9819 /// item. |
9450 */ | |
9451 core.double value; | 9820 core.double value; |
9452 | 9821 |
9453 ProductShippingDimension(); | 9822 ProductShippingDimension(); |
9454 | 9823 |
9455 ProductShippingDimension.fromJson(core.Map _json) { | 9824 ProductShippingDimension.fromJson(core.Map _json) { |
9456 if (_json.containsKey("unit")) { | 9825 if (_json.containsKey("unit")) { |
9457 unit = _json["unit"]; | 9826 unit = _json["unit"]; |
9458 } | 9827 } |
9459 if (_json.containsKey("value")) { | 9828 if (_json.containsKey("value")) { |
9460 value = _json["value"]; | 9829 value = _json["value"]; |
9461 } | 9830 } |
9462 } | 9831 } |
9463 | 9832 |
9464 core.Map<core.String, core.Object> toJson() { | 9833 core.Map<core.String, core.Object> toJson() { |
9465 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 9834 final core.Map<core.String, core.Object> _json = |
| 9835 new core.Map<core.String, core.Object>(); |
9466 if (unit != null) { | 9836 if (unit != null) { |
9467 _json["unit"] = unit; | 9837 _json["unit"] = unit; |
9468 } | 9838 } |
9469 if (value != null) { | 9839 if (value != null) { |
9470 _json["value"] = value; | 9840 _json["value"] = value; |
9471 } | 9841 } |
9472 return _json; | 9842 return _json; |
9473 } | 9843 } |
9474 } | 9844 } |
9475 | 9845 |
9476 class ProductShippingWeight { | 9846 class ProductShippingWeight { |
9477 /** The unit of value. */ | 9847 /// The unit of value. |
9478 core.String unit; | 9848 core.String unit; |
9479 /** | 9849 |
9480 * The weight of the product used to calculate the shipping cost of the item. | 9850 /// The weight of the product used to calculate the shipping cost of the |
9481 */ | 9851 /// item. |
9482 core.double value; | 9852 core.double value; |
9483 | 9853 |
9484 ProductShippingWeight(); | 9854 ProductShippingWeight(); |
9485 | 9855 |
9486 ProductShippingWeight.fromJson(core.Map _json) { | 9856 ProductShippingWeight.fromJson(core.Map _json) { |
9487 if (_json.containsKey("unit")) { | 9857 if (_json.containsKey("unit")) { |
9488 unit = _json["unit"]; | 9858 unit = _json["unit"]; |
9489 } | 9859 } |
9490 if (_json.containsKey("value")) { | 9860 if (_json.containsKey("value")) { |
9491 value = _json["value"]; | 9861 value = _json["value"]; |
9492 } | 9862 } |
9493 } | 9863 } |
9494 | 9864 |
9495 core.Map<core.String, core.Object> toJson() { | 9865 core.Map<core.String, core.Object> toJson() { |
9496 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 9866 final core.Map<core.String, core.Object> _json = |
| 9867 new core.Map<core.String, core.Object>(); |
9497 if (unit != null) { | 9868 if (unit != null) { |
9498 _json["unit"] = unit; | 9869 _json["unit"] = unit; |
9499 } | 9870 } |
9500 if (value != null) { | 9871 if (value != null) { |
9501 _json["value"] = value; | 9872 _json["value"] = value; |
9502 } | 9873 } |
9503 return _json; | 9874 return _json; |
9504 } | 9875 } |
9505 } | 9876 } |
9506 | 9877 |
9507 /** | 9878 /// The status of a product, i.e., information about a product computed |
9508 * The status of a product, i.e., information about a product computed | 9879 /// asynchronously by the data quality analysis. |
9509 * asynchronously by the data quality analysis. | |
9510 */ | |
9511 class ProductStatus { | 9880 class ProductStatus { |
9512 /** Date on which the item has been created, in ISO 8601 format. */ | 9881 /// Date on which the item has been created, in ISO 8601 format. |
9513 core.String creationDate; | 9882 core.String creationDate; |
9514 /** A list of data quality issues associated with the product. */ | 9883 |
| 9884 /// A list of data quality issues associated with the product. |
9515 core.List<ProductStatusDataQualityIssue> dataQualityIssues; | 9885 core.List<ProductStatusDataQualityIssue> dataQualityIssues; |
9516 /** The intended destinations for the product. */ | 9886 |
| 9887 /// The intended destinations for the product. |
9517 core.List<ProductStatusDestinationStatus> destinationStatuses; | 9888 core.List<ProductStatusDestinationStatus> destinationStatuses; |
9518 /** Date on which the item expires in Google Shopping, in ISO 8601 format. */ | 9889 |
| 9890 /// Date on which the item expires in Google Shopping, in ISO 8601 format. |
9519 core.String googleExpirationDate; | 9891 core.String googleExpirationDate; |
9520 /** | 9892 |
9521 * Identifies what kind of resource this is. Value: the fixed string | 9893 /// Identifies what kind of resource this is. Value: the fixed string |
9522 * "content#productStatus". | 9894 /// "content#productStatus". |
9523 */ | |
9524 core.String kind; | 9895 core.String kind; |
9525 /** Date on which the item has been last updated, in ISO 8601 format. */ | 9896 |
| 9897 /// Date on which the item has been last updated, in ISO 8601 format. |
9526 core.String lastUpdateDate; | 9898 core.String lastUpdateDate; |
9527 /** The link to the product. */ | 9899 |
| 9900 /// The link to the product. |
9528 core.String link; | 9901 core.String link; |
9529 /** Product data after applying all the join inputs. */ | 9902 |
| 9903 /// Product data after applying all the join inputs. |
9530 Product product; | 9904 Product product; |
9531 /** The id of the product for which status is reported. */ | 9905 |
| 9906 /// The id of the product for which status is reported. |
9532 core.String productId; | 9907 core.String productId; |
9533 /** The title of the product. */ | 9908 |
| 9909 /// The title of the product. |
9534 core.String title; | 9910 core.String title; |
9535 | 9911 |
9536 ProductStatus(); | 9912 ProductStatus(); |
9537 | 9913 |
9538 ProductStatus.fromJson(core.Map _json) { | 9914 ProductStatus.fromJson(core.Map _json) { |
9539 if (_json.containsKey("creationDate")) { | 9915 if (_json.containsKey("creationDate")) { |
9540 creationDate = _json["creationDate"]; | 9916 creationDate = _json["creationDate"]; |
9541 } | 9917 } |
9542 if (_json.containsKey("dataQualityIssues")) { | 9918 if (_json.containsKey("dataQualityIssues")) { |
9543 dataQualityIssues = _json["dataQualityIssues"].map((value) => new ProductS
tatusDataQualityIssue.fromJson(value)).toList(); | 9919 dataQualityIssues = _json["dataQualityIssues"] |
| 9920 .map((value) => new ProductStatusDataQualityIssue.fromJson(value)) |
| 9921 .toList(); |
9544 } | 9922 } |
9545 if (_json.containsKey("destinationStatuses")) { | 9923 if (_json.containsKey("destinationStatuses")) { |
9546 destinationStatuses = _json["destinationStatuses"].map((value) => new Prod
uctStatusDestinationStatus.fromJson(value)).toList(); | 9924 destinationStatuses = _json["destinationStatuses"] |
| 9925 .map((value) => new ProductStatusDestinationStatus.fromJson(value)) |
| 9926 .toList(); |
9547 } | 9927 } |
9548 if (_json.containsKey("googleExpirationDate")) { | 9928 if (_json.containsKey("googleExpirationDate")) { |
9549 googleExpirationDate = _json["googleExpirationDate"]; | 9929 googleExpirationDate = _json["googleExpirationDate"]; |
9550 } | 9930 } |
9551 if (_json.containsKey("kind")) { | 9931 if (_json.containsKey("kind")) { |
9552 kind = _json["kind"]; | 9932 kind = _json["kind"]; |
9553 } | 9933 } |
9554 if (_json.containsKey("lastUpdateDate")) { | 9934 if (_json.containsKey("lastUpdateDate")) { |
9555 lastUpdateDate = _json["lastUpdateDate"]; | 9935 lastUpdateDate = _json["lastUpdateDate"]; |
9556 } | 9936 } |
9557 if (_json.containsKey("link")) { | 9937 if (_json.containsKey("link")) { |
9558 link = _json["link"]; | 9938 link = _json["link"]; |
9559 } | 9939 } |
9560 if (_json.containsKey("product")) { | 9940 if (_json.containsKey("product")) { |
9561 product = new Product.fromJson(_json["product"]); | 9941 product = new Product.fromJson(_json["product"]); |
9562 } | 9942 } |
9563 if (_json.containsKey("productId")) { | 9943 if (_json.containsKey("productId")) { |
9564 productId = _json["productId"]; | 9944 productId = _json["productId"]; |
9565 } | 9945 } |
9566 if (_json.containsKey("title")) { | 9946 if (_json.containsKey("title")) { |
9567 title = _json["title"]; | 9947 title = _json["title"]; |
9568 } | 9948 } |
9569 } | 9949 } |
9570 | 9950 |
9571 core.Map<core.String, core.Object> toJson() { | 9951 core.Map<core.String, core.Object> toJson() { |
9572 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 9952 final core.Map<core.String, core.Object> _json = |
| 9953 new core.Map<core.String, core.Object>(); |
9573 if (creationDate != null) { | 9954 if (creationDate != null) { |
9574 _json["creationDate"] = creationDate; | 9955 _json["creationDate"] = creationDate; |
9575 } | 9956 } |
9576 if (dataQualityIssues != null) { | 9957 if (dataQualityIssues != null) { |
9577 _json["dataQualityIssues"] = dataQualityIssues.map((value) => (value).toJs
on()).toList(); | 9958 _json["dataQualityIssues"] = |
| 9959 dataQualityIssues.map((value) => (value).toJson()).toList(); |
9578 } | 9960 } |
9579 if (destinationStatuses != null) { | 9961 if (destinationStatuses != null) { |
9580 _json["destinationStatuses"] = destinationStatuses.map((value) => (value).
toJson()).toList(); | 9962 _json["destinationStatuses"] = |
| 9963 destinationStatuses.map((value) => (value).toJson()).toList(); |
9581 } | 9964 } |
9582 if (googleExpirationDate != null) { | 9965 if (googleExpirationDate != null) { |
9583 _json["googleExpirationDate"] = googleExpirationDate; | 9966 _json["googleExpirationDate"] = googleExpirationDate; |
9584 } | 9967 } |
9585 if (kind != null) { | 9968 if (kind != null) { |
9586 _json["kind"] = kind; | 9969 _json["kind"] = kind; |
9587 } | 9970 } |
9588 if (lastUpdateDate != null) { | 9971 if (lastUpdateDate != null) { |
9589 _json["lastUpdateDate"] = lastUpdateDate; | 9972 _json["lastUpdateDate"] = lastUpdateDate; |
9590 } | 9973 } |
9591 if (link != null) { | 9974 if (link != null) { |
9592 _json["link"] = link; | 9975 _json["link"] = link; |
9593 } | 9976 } |
9594 if (product != null) { | 9977 if (product != null) { |
9595 _json["product"] = (product).toJson(); | 9978 _json["product"] = (product).toJson(); |
9596 } | 9979 } |
9597 if (productId != null) { | 9980 if (productId != null) { |
9598 _json["productId"] = productId; | 9981 _json["productId"] = productId; |
9599 } | 9982 } |
9600 if (title != null) { | 9983 if (title != null) { |
9601 _json["title"] = title; | 9984 _json["title"] = title; |
9602 } | 9985 } |
9603 return _json; | 9986 return _json; |
9604 } | 9987 } |
9605 } | 9988 } |
9606 | 9989 |
9607 class ProductStatusDataQualityIssue { | 9990 class ProductStatusDataQualityIssue { |
9608 /** A more detailed error string. */ | 9991 /// A more detailed error string. |
9609 core.String detail; | 9992 core.String detail; |
9610 /** The fetch status for landing_page_errors. */ | 9993 |
| 9994 /// The fetch status for landing_page_errors. |
9611 core.String fetchStatus; | 9995 core.String fetchStatus; |
9612 /** The id of the data quality issue. */ | 9996 |
| 9997 /// The id of the data quality issue. |
9613 core.String id; | 9998 core.String id; |
9614 /** The attribute name that is relevant for the issue. */ | 9999 |
| 10000 /// The attribute name that is relevant for the issue. |
9615 core.String location; | 10001 core.String location; |
9616 /** The severity of the data quality issue. */ | 10002 |
| 10003 /// The severity of the data quality issue. |
9617 core.String severity; | 10004 core.String severity; |
9618 /** The time stamp of the data quality issue. */ | 10005 |
| 10006 /// The time stamp of the data quality issue. |
9619 core.String timestamp; | 10007 core.String timestamp; |
9620 /** The value of that attribute that was found on the landing page */ | 10008 |
| 10009 /// The value of that attribute that was found on the landing page |
9621 core.String valueOnLandingPage; | 10010 core.String valueOnLandingPage; |
9622 /** The value the attribute had at time of evaluation. */ | 10011 |
| 10012 /// The value the attribute had at time of evaluation. |
9623 core.String valueProvided; | 10013 core.String valueProvided; |
9624 | 10014 |
9625 ProductStatusDataQualityIssue(); | 10015 ProductStatusDataQualityIssue(); |
9626 | 10016 |
9627 ProductStatusDataQualityIssue.fromJson(core.Map _json) { | 10017 ProductStatusDataQualityIssue.fromJson(core.Map _json) { |
9628 if (_json.containsKey("detail")) { | 10018 if (_json.containsKey("detail")) { |
9629 detail = _json["detail"]; | 10019 detail = _json["detail"]; |
9630 } | 10020 } |
9631 if (_json.containsKey("fetchStatus")) { | 10021 if (_json.containsKey("fetchStatus")) { |
9632 fetchStatus = _json["fetchStatus"]; | 10022 fetchStatus = _json["fetchStatus"]; |
(...skipping 12 matching lines...) Expand all Loading... |
9645 } | 10035 } |
9646 if (_json.containsKey("valueOnLandingPage")) { | 10036 if (_json.containsKey("valueOnLandingPage")) { |
9647 valueOnLandingPage = _json["valueOnLandingPage"]; | 10037 valueOnLandingPage = _json["valueOnLandingPage"]; |
9648 } | 10038 } |
9649 if (_json.containsKey("valueProvided")) { | 10039 if (_json.containsKey("valueProvided")) { |
9650 valueProvided = _json["valueProvided"]; | 10040 valueProvided = _json["valueProvided"]; |
9651 } | 10041 } |
9652 } | 10042 } |
9653 | 10043 |
9654 core.Map<core.String, core.Object> toJson() { | 10044 core.Map<core.String, core.Object> toJson() { |
9655 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10045 final core.Map<core.String, core.Object> _json = |
| 10046 new core.Map<core.String, core.Object>(); |
9656 if (detail != null) { | 10047 if (detail != null) { |
9657 _json["detail"] = detail; | 10048 _json["detail"] = detail; |
9658 } | 10049 } |
9659 if (fetchStatus != null) { | 10050 if (fetchStatus != null) { |
9660 _json["fetchStatus"] = fetchStatus; | 10051 _json["fetchStatus"] = fetchStatus; |
9661 } | 10052 } |
9662 if (id != null) { | 10053 if (id != null) { |
9663 _json["id"] = id; | 10054 _json["id"] = id; |
9664 } | 10055 } |
9665 if (location != null) { | 10056 if (location != null) { |
9666 _json["location"] = location; | 10057 _json["location"] = location; |
9667 } | 10058 } |
9668 if (severity != null) { | 10059 if (severity != null) { |
9669 _json["severity"] = severity; | 10060 _json["severity"] = severity; |
9670 } | 10061 } |
9671 if (timestamp != null) { | 10062 if (timestamp != null) { |
9672 _json["timestamp"] = timestamp; | 10063 _json["timestamp"] = timestamp; |
9673 } | 10064 } |
9674 if (valueOnLandingPage != null) { | 10065 if (valueOnLandingPage != null) { |
9675 _json["valueOnLandingPage"] = valueOnLandingPage; | 10066 _json["valueOnLandingPage"] = valueOnLandingPage; |
9676 } | 10067 } |
9677 if (valueProvided != null) { | 10068 if (valueProvided != null) { |
9678 _json["valueProvided"] = valueProvided; | 10069 _json["valueProvided"] = valueProvided; |
9679 } | 10070 } |
9680 return _json; | 10071 return _json; |
9681 } | 10072 } |
9682 } | 10073 } |
9683 | 10074 |
9684 class ProductStatusDestinationStatus { | 10075 class ProductStatusDestinationStatus { |
9685 /** The destination's approval status. */ | 10076 /// The destination's approval status. |
9686 core.String approvalStatus; | 10077 core.String approvalStatus; |
9687 /** The name of the destination */ | 10078 |
| 10079 /// The name of the destination |
9688 core.String destination; | 10080 core.String destination; |
9689 /** | 10081 |
9690 * Whether the destination is required, excluded, selected by default or | 10082 /// Whether the destination is required, excluded, selected by default or |
9691 * should be validated. | 10083 /// should be validated. |
9692 */ | |
9693 core.String intention; | 10084 core.String intention; |
9694 | 10085 |
9695 ProductStatusDestinationStatus(); | 10086 ProductStatusDestinationStatus(); |
9696 | 10087 |
9697 ProductStatusDestinationStatus.fromJson(core.Map _json) { | 10088 ProductStatusDestinationStatus.fromJson(core.Map _json) { |
9698 if (_json.containsKey("approvalStatus")) { | 10089 if (_json.containsKey("approvalStatus")) { |
9699 approvalStatus = _json["approvalStatus"]; | 10090 approvalStatus = _json["approvalStatus"]; |
9700 } | 10091 } |
9701 if (_json.containsKey("destination")) { | 10092 if (_json.containsKey("destination")) { |
9702 destination = _json["destination"]; | 10093 destination = _json["destination"]; |
9703 } | 10094 } |
9704 if (_json.containsKey("intention")) { | 10095 if (_json.containsKey("intention")) { |
9705 intention = _json["intention"]; | 10096 intention = _json["intention"]; |
9706 } | 10097 } |
9707 } | 10098 } |
9708 | 10099 |
9709 core.Map<core.String, core.Object> toJson() { | 10100 core.Map<core.String, core.Object> toJson() { |
9710 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10101 final core.Map<core.String, core.Object> _json = |
| 10102 new core.Map<core.String, core.Object>(); |
9711 if (approvalStatus != null) { | 10103 if (approvalStatus != null) { |
9712 _json["approvalStatus"] = approvalStatus; | 10104 _json["approvalStatus"] = approvalStatus; |
9713 } | 10105 } |
9714 if (destination != null) { | 10106 if (destination != null) { |
9715 _json["destination"] = destination; | 10107 _json["destination"] = destination; |
9716 } | 10108 } |
9717 if (intention != null) { | 10109 if (intention != null) { |
9718 _json["intention"] = intention; | 10110 _json["intention"] = intention; |
9719 } | 10111 } |
9720 return _json; | 10112 return _json; |
9721 } | 10113 } |
9722 } | 10114 } |
9723 | 10115 |
9724 class ProductTax { | 10116 class ProductTax { |
9725 /** | 10117 /// The country within which the item is taxed, specified as a CLDR territory |
9726 * The country within which the item is taxed, specified as a CLDR territory | 10118 /// code. |
9727 * code. | |
9728 */ | |
9729 core.String country; | 10119 core.String country; |
9730 /** | 10120 |
9731 * The numeric id of a location that the tax rate applies to as defined in the | 10121 /// The numeric id of a location that the tax rate applies to as defined in |
9732 * AdWords API. | 10122 /// the AdWords API. |
9733 */ | |
9734 core.String locationId; | 10123 core.String locationId; |
9735 /** | 10124 |
9736 * The postal code range that the tax rate applies to, represented by a ZIP | 10125 /// The postal code range that the tax rate applies to, represented by a ZIP |
9737 * code, a ZIP code prefix using * wildcard, a range between two ZIP codes or | 10126 /// code, a ZIP code prefix using * wildcard, a range between two ZIP codes |
9738 * two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460, | 10127 /// or two ZIP code prefixes of equal length. Examples: 94114, 94*, |
9739 * 94*-95*. | 10128 /// 94002-95460, 94*-95*. |
9740 */ | |
9741 core.String postalCode; | 10129 core.String postalCode; |
9742 /** The percentage of tax rate that applies to the item price. */ | 10130 |
| 10131 /// The percentage of tax rate that applies to the item price. |
9743 core.double rate; | 10132 core.double rate; |
9744 /** The geographic region to which the tax rate applies. */ | 10133 |
| 10134 /// The geographic region to which the tax rate applies. |
9745 core.String region; | 10135 core.String region; |
9746 /** Set to true if tax is charged on shipping. */ | 10136 |
| 10137 /// Set to true if tax is charged on shipping. |
9747 core.bool taxShip; | 10138 core.bool taxShip; |
9748 | 10139 |
9749 ProductTax(); | 10140 ProductTax(); |
9750 | 10141 |
9751 ProductTax.fromJson(core.Map _json) { | 10142 ProductTax.fromJson(core.Map _json) { |
9752 if (_json.containsKey("country")) { | 10143 if (_json.containsKey("country")) { |
9753 country = _json["country"]; | 10144 country = _json["country"]; |
9754 } | 10145 } |
9755 if (_json.containsKey("locationId")) { | 10146 if (_json.containsKey("locationId")) { |
9756 locationId = _json["locationId"]; | 10147 locationId = _json["locationId"]; |
9757 } | 10148 } |
9758 if (_json.containsKey("postalCode")) { | 10149 if (_json.containsKey("postalCode")) { |
9759 postalCode = _json["postalCode"]; | 10150 postalCode = _json["postalCode"]; |
9760 } | 10151 } |
9761 if (_json.containsKey("rate")) { | 10152 if (_json.containsKey("rate")) { |
9762 rate = _json["rate"]; | 10153 rate = _json["rate"]; |
9763 } | 10154 } |
9764 if (_json.containsKey("region")) { | 10155 if (_json.containsKey("region")) { |
9765 region = _json["region"]; | 10156 region = _json["region"]; |
9766 } | 10157 } |
9767 if (_json.containsKey("taxShip")) { | 10158 if (_json.containsKey("taxShip")) { |
9768 taxShip = _json["taxShip"]; | 10159 taxShip = _json["taxShip"]; |
9769 } | 10160 } |
9770 } | 10161 } |
9771 | 10162 |
9772 core.Map<core.String, core.Object> toJson() { | 10163 core.Map<core.String, core.Object> toJson() { |
9773 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10164 final core.Map<core.String, core.Object> _json = |
| 10165 new core.Map<core.String, core.Object>(); |
9774 if (country != null) { | 10166 if (country != null) { |
9775 _json["country"] = country; | 10167 _json["country"] = country; |
9776 } | 10168 } |
9777 if (locationId != null) { | 10169 if (locationId != null) { |
9778 _json["locationId"] = locationId; | 10170 _json["locationId"] = locationId; |
9779 } | 10171 } |
9780 if (postalCode != null) { | 10172 if (postalCode != null) { |
9781 _json["postalCode"] = postalCode; | 10173 _json["postalCode"] = postalCode; |
9782 } | 10174 } |
9783 if (rate != null) { | 10175 if (rate != null) { |
9784 _json["rate"] = rate; | 10176 _json["rate"] = rate; |
9785 } | 10177 } |
9786 if (region != null) { | 10178 if (region != null) { |
9787 _json["region"] = region; | 10179 _json["region"] = region; |
9788 } | 10180 } |
9789 if (taxShip != null) { | 10181 if (taxShip != null) { |
9790 _json["taxShip"] = taxShip; | 10182 _json["taxShip"] = taxShip; |
9791 } | 10183 } |
9792 return _json; | 10184 return _json; |
9793 } | 10185 } |
9794 } | 10186 } |
9795 | 10187 |
9796 class ProductUnitPricingBaseMeasure { | 10188 class ProductUnitPricingBaseMeasure { |
9797 /** The unit of the denominator. */ | 10189 /// The unit of the denominator. |
9798 core.String unit; | 10190 core.String unit; |
9799 /** The denominator of the unit price. */ | 10191 |
| 10192 /// The denominator of the unit price. |
9800 core.String value; | 10193 core.String value; |
9801 | 10194 |
9802 ProductUnitPricingBaseMeasure(); | 10195 ProductUnitPricingBaseMeasure(); |
9803 | 10196 |
9804 ProductUnitPricingBaseMeasure.fromJson(core.Map _json) { | 10197 ProductUnitPricingBaseMeasure.fromJson(core.Map _json) { |
9805 if (_json.containsKey("unit")) { | 10198 if (_json.containsKey("unit")) { |
9806 unit = _json["unit"]; | 10199 unit = _json["unit"]; |
9807 } | 10200 } |
9808 if (_json.containsKey("value")) { | 10201 if (_json.containsKey("value")) { |
9809 value = _json["value"]; | 10202 value = _json["value"]; |
9810 } | 10203 } |
9811 } | 10204 } |
9812 | 10205 |
9813 core.Map<core.String, core.Object> toJson() { | 10206 core.Map<core.String, core.Object> toJson() { |
9814 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10207 final core.Map<core.String, core.Object> _json = |
| 10208 new core.Map<core.String, core.Object>(); |
9815 if (unit != null) { | 10209 if (unit != null) { |
9816 _json["unit"] = unit; | 10210 _json["unit"] = unit; |
9817 } | 10211 } |
9818 if (value != null) { | 10212 if (value != null) { |
9819 _json["value"] = value; | 10213 _json["value"] = value; |
9820 } | 10214 } |
9821 return _json; | 10215 return _json; |
9822 } | 10216 } |
9823 } | 10217 } |
9824 | 10218 |
9825 class ProductUnitPricingMeasure { | 10219 class ProductUnitPricingMeasure { |
9826 /** The unit of the measure. */ | 10220 /// The unit of the measure. |
9827 core.String unit; | 10221 core.String unit; |
9828 /** The measure of an item. */ | 10222 |
| 10223 /// The measure of an item. |
9829 core.double value; | 10224 core.double value; |
9830 | 10225 |
9831 ProductUnitPricingMeasure(); | 10226 ProductUnitPricingMeasure(); |
9832 | 10227 |
9833 ProductUnitPricingMeasure.fromJson(core.Map _json) { | 10228 ProductUnitPricingMeasure.fromJson(core.Map _json) { |
9834 if (_json.containsKey("unit")) { | 10229 if (_json.containsKey("unit")) { |
9835 unit = _json["unit"]; | 10230 unit = _json["unit"]; |
9836 } | 10231 } |
9837 if (_json.containsKey("value")) { | 10232 if (_json.containsKey("value")) { |
9838 value = _json["value"]; | 10233 value = _json["value"]; |
9839 } | 10234 } |
9840 } | 10235 } |
9841 | 10236 |
9842 core.Map<core.String, core.Object> toJson() { | 10237 core.Map<core.String, core.Object> toJson() { |
9843 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10238 final core.Map<core.String, core.Object> _json = |
| 10239 new core.Map<core.String, core.Object>(); |
9844 if (unit != null) { | 10240 if (unit != null) { |
9845 _json["unit"] = unit; | 10241 _json["unit"] = unit; |
9846 } | 10242 } |
9847 if (value != null) { | 10243 if (value != null) { |
9848 _json["value"] = value; | 10244 _json["value"] = value; |
9849 } | 10245 } |
9850 return _json; | 10246 return _json; |
9851 } | 10247 } |
9852 } | 10248 } |
9853 | 10249 |
9854 class ProductsCustomBatchRequest { | 10250 class ProductsCustomBatchRequest { |
9855 /** The request entries to be processed in the batch. */ | 10251 /// The request entries to be processed in the batch. |
9856 core.List<ProductsCustomBatchRequestEntry> entries; | 10252 core.List<ProductsCustomBatchRequestEntry> entries; |
9857 | 10253 |
9858 ProductsCustomBatchRequest(); | 10254 ProductsCustomBatchRequest(); |
9859 | 10255 |
9860 ProductsCustomBatchRequest.fromJson(core.Map _json) { | 10256 ProductsCustomBatchRequest.fromJson(core.Map _json) { |
9861 if (_json.containsKey("entries")) { | 10257 if (_json.containsKey("entries")) { |
9862 entries = _json["entries"].map((value) => new ProductsCustomBatchRequestEn
try.fromJson(value)).toList(); | 10258 entries = _json["entries"] |
| 10259 .map((value) => new ProductsCustomBatchRequestEntry.fromJson(value)) |
| 10260 .toList(); |
9863 } | 10261 } |
9864 } | 10262 } |
9865 | 10263 |
9866 core.Map<core.String, core.Object> toJson() { | 10264 core.Map<core.String, core.Object> toJson() { |
9867 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10265 final core.Map<core.String, core.Object> _json = |
| 10266 new core.Map<core.String, core.Object>(); |
9868 if (entries != null) { | 10267 if (entries != null) { |
9869 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 10268 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
9870 } | 10269 } |
9871 return _json; | 10270 return _json; |
9872 } | 10271 } |
9873 } | 10272 } |
9874 | 10273 |
9875 /** A batch entry encoding a single non-batch products request. */ | 10274 /// A batch entry encoding a single non-batch products request. |
9876 class ProductsCustomBatchRequestEntry { | 10275 class ProductsCustomBatchRequestEntry { |
9877 /** An entry ID, unique within the batch request. */ | 10276 /// An entry ID, unique within the batch request. |
9878 core.int batchId; | 10277 core.int batchId; |
9879 /** The ID of the managing account. */ | 10278 |
| 10279 /// The ID of the managing account. |
9880 core.String merchantId; | 10280 core.String merchantId; |
9881 core.String method; | 10281 core.String method; |
9882 /** The product to insert. Only required if the method is insert. */ | 10282 |
| 10283 /// The product to insert. Only required if the method is insert. |
9883 Product product; | 10284 Product product; |
9884 /** | 10285 |
9885 * The ID of the product to get or delete. Only defined if the method is get | 10286 /// The ID of the product to get or delete. Only defined if the method is get |
9886 * or delete. | 10287 /// or delete. |
9887 */ | |
9888 core.String productId; | 10288 core.String productId; |
9889 | 10289 |
9890 ProductsCustomBatchRequestEntry(); | 10290 ProductsCustomBatchRequestEntry(); |
9891 | 10291 |
9892 ProductsCustomBatchRequestEntry.fromJson(core.Map _json) { | 10292 ProductsCustomBatchRequestEntry.fromJson(core.Map _json) { |
9893 if (_json.containsKey("batchId")) { | 10293 if (_json.containsKey("batchId")) { |
9894 batchId = _json["batchId"]; | 10294 batchId = _json["batchId"]; |
9895 } | 10295 } |
9896 if (_json.containsKey("merchantId")) { | 10296 if (_json.containsKey("merchantId")) { |
9897 merchantId = _json["merchantId"]; | 10297 merchantId = _json["merchantId"]; |
9898 } | 10298 } |
9899 if (_json.containsKey("method")) { | 10299 if (_json.containsKey("method")) { |
9900 method = _json["method"]; | 10300 method = _json["method"]; |
9901 } | 10301 } |
9902 if (_json.containsKey("product")) { | 10302 if (_json.containsKey("product")) { |
9903 product = new Product.fromJson(_json["product"]); | 10303 product = new Product.fromJson(_json["product"]); |
9904 } | 10304 } |
9905 if (_json.containsKey("productId")) { | 10305 if (_json.containsKey("productId")) { |
9906 productId = _json["productId"]; | 10306 productId = _json["productId"]; |
9907 } | 10307 } |
9908 } | 10308 } |
9909 | 10309 |
9910 core.Map<core.String, core.Object> toJson() { | 10310 core.Map<core.String, core.Object> toJson() { |
9911 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10311 final core.Map<core.String, core.Object> _json = |
| 10312 new core.Map<core.String, core.Object>(); |
9912 if (batchId != null) { | 10313 if (batchId != null) { |
9913 _json["batchId"] = batchId; | 10314 _json["batchId"] = batchId; |
9914 } | 10315 } |
9915 if (merchantId != null) { | 10316 if (merchantId != null) { |
9916 _json["merchantId"] = merchantId; | 10317 _json["merchantId"] = merchantId; |
9917 } | 10318 } |
9918 if (method != null) { | 10319 if (method != null) { |
9919 _json["method"] = method; | 10320 _json["method"] = method; |
9920 } | 10321 } |
9921 if (product != null) { | 10322 if (product != null) { |
9922 _json["product"] = (product).toJson(); | 10323 _json["product"] = (product).toJson(); |
9923 } | 10324 } |
9924 if (productId != null) { | 10325 if (productId != null) { |
9925 _json["productId"] = productId; | 10326 _json["productId"] = productId; |
9926 } | 10327 } |
9927 return _json; | 10328 return _json; |
9928 } | 10329 } |
9929 } | 10330 } |
9930 | 10331 |
9931 class ProductsCustomBatchResponse { | 10332 class ProductsCustomBatchResponse { |
9932 /** The result of the execution of the batch requests. */ | 10333 /// The result of the execution of the batch requests. |
9933 core.List<ProductsCustomBatchResponseEntry> entries; | 10334 core.List<ProductsCustomBatchResponseEntry> entries; |
9934 /** | 10335 |
9935 * Identifies what kind of resource this is. Value: the fixed string | 10336 /// Identifies what kind of resource this is. Value: the fixed string |
9936 * "content#productsCustomBatchResponse". | 10337 /// "content#productsCustomBatchResponse". |
9937 */ | |
9938 core.String kind; | 10338 core.String kind; |
9939 | 10339 |
9940 ProductsCustomBatchResponse(); | 10340 ProductsCustomBatchResponse(); |
9941 | 10341 |
9942 ProductsCustomBatchResponse.fromJson(core.Map _json) { | 10342 ProductsCustomBatchResponse.fromJson(core.Map _json) { |
9943 if (_json.containsKey("entries")) { | 10343 if (_json.containsKey("entries")) { |
9944 entries = _json["entries"].map((value) => new ProductsCustomBatchResponseE
ntry.fromJson(value)).toList(); | 10344 entries = _json["entries"] |
| 10345 .map((value) => new ProductsCustomBatchResponseEntry.fromJson(value)) |
| 10346 .toList(); |
9945 } | 10347 } |
9946 if (_json.containsKey("kind")) { | 10348 if (_json.containsKey("kind")) { |
9947 kind = _json["kind"]; | 10349 kind = _json["kind"]; |
9948 } | 10350 } |
9949 } | 10351 } |
9950 | 10352 |
9951 core.Map<core.String, core.Object> toJson() { | 10353 core.Map<core.String, core.Object> toJson() { |
9952 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10354 final core.Map<core.String, core.Object> _json = |
| 10355 new core.Map<core.String, core.Object>(); |
9953 if (entries != null) { | 10356 if (entries != null) { |
9954 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 10357 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
9955 } | 10358 } |
9956 if (kind != null) { | 10359 if (kind != null) { |
9957 _json["kind"] = kind; | 10360 _json["kind"] = kind; |
9958 } | 10361 } |
9959 return _json; | 10362 return _json; |
9960 } | 10363 } |
9961 } | 10364 } |
9962 | 10365 |
9963 /** A batch entry encoding a single non-batch products response. */ | 10366 /// A batch entry encoding a single non-batch products response. |
9964 class ProductsCustomBatchResponseEntry { | 10367 class ProductsCustomBatchResponseEntry { |
9965 /** The ID of the request entry this entry responds to. */ | 10368 /// The ID of the request entry this entry responds to. |
9966 core.int batchId; | 10369 core.int batchId; |
9967 /** A list of errors defined if and only if the request failed. */ | 10370 |
| 10371 /// A list of errors defined if and only if the request failed. |
9968 Errors errors; | 10372 Errors errors; |
9969 /** | 10373 |
9970 * Identifies what kind of resource this is. Value: the fixed string | 10374 /// Identifies what kind of resource this is. Value: the fixed string |
9971 * "content#productsCustomBatchResponseEntry". | 10375 /// "content#productsCustomBatchResponseEntry". |
9972 */ | |
9973 core.String kind; | 10376 core.String kind; |
9974 /** | 10377 |
9975 * The inserted product. Only defined if the method is insert and if the | 10378 /// The inserted product. Only defined if the method is insert and if the |
9976 * request was successful. | 10379 /// request was successful. |
9977 */ | |
9978 Product product; | 10380 Product product; |
9979 | 10381 |
9980 ProductsCustomBatchResponseEntry(); | 10382 ProductsCustomBatchResponseEntry(); |
9981 | 10383 |
9982 ProductsCustomBatchResponseEntry.fromJson(core.Map _json) { | 10384 ProductsCustomBatchResponseEntry.fromJson(core.Map _json) { |
9983 if (_json.containsKey("batchId")) { | 10385 if (_json.containsKey("batchId")) { |
9984 batchId = _json["batchId"]; | 10386 batchId = _json["batchId"]; |
9985 } | 10387 } |
9986 if (_json.containsKey("errors")) { | 10388 if (_json.containsKey("errors")) { |
9987 errors = new Errors.fromJson(_json["errors"]); | 10389 errors = new Errors.fromJson(_json["errors"]); |
9988 } | 10390 } |
9989 if (_json.containsKey("kind")) { | 10391 if (_json.containsKey("kind")) { |
9990 kind = _json["kind"]; | 10392 kind = _json["kind"]; |
9991 } | 10393 } |
9992 if (_json.containsKey("product")) { | 10394 if (_json.containsKey("product")) { |
9993 product = new Product.fromJson(_json["product"]); | 10395 product = new Product.fromJson(_json["product"]); |
9994 } | 10396 } |
9995 } | 10397 } |
9996 | 10398 |
9997 core.Map<core.String, core.Object> toJson() { | 10399 core.Map<core.String, core.Object> toJson() { |
9998 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10400 final core.Map<core.String, core.Object> _json = |
| 10401 new core.Map<core.String, core.Object>(); |
9999 if (batchId != null) { | 10402 if (batchId != null) { |
10000 _json["batchId"] = batchId; | 10403 _json["batchId"] = batchId; |
10001 } | 10404 } |
10002 if (errors != null) { | 10405 if (errors != null) { |
10003 _json["errors"] = (errors).toJson(); | 10406 _json["errors"] = (errors).toJson(); |
10004 } | 10407 } |
10005 if (kind != null) { | 10408 if (kind != null) { |
10006 _json["kind"] = kind; | 10409 _json["kind"] = kind; |
10007 } | 10410 } |
10008 if (product != null) { | 10411 if (product != null) { |
10009 _json["product"] = (product).toJson(); | 10412 _json["product"] = (product).toJson(); |
10010 } | 10413 } |
10011 return _json; | 10414 return _json; |
10012 } | 10415 } |
10013 } | 10416 } |
10014 | 10417 |
10015 class ProductsListResponse { | 10418 class ProductsListResponse { |
10016 /** | 10419 /// Identifies what kind of resource this is. Value: the fixed string |
10017 * Identifies what kind of resource this is. Value: the fixed string | 10420 /// "content#productsListResponse". |
10018 * "content#productsListResponse". | |
10019 */ | |
10020 core.String kind; | 10421 core.String kind; |
10021 /** The token for the retrieval of the next page of products. */ | 10422 |
| 10423 /// The token for the retrieval of the next page of products. |
10022 core.String nextPageToken; | 10424 core.String nextPageToken; |
10023 core.List<Product> resources; | 10425 core.List<Product> resources; |
10024 | 10426 |
10025 ProductsListResponse(); | 10427 ProductsListResponse(); |
10026 | 10428 |
10027 ProductsListResponse.fromJson(core.Map _json) { | 10429 ProductsListResponse.fromJson(core.Map _json) { |
10028 if (_json.containsKey("kind")) { | 10430 if (_json.containsKey("kind")) { |
10029 kind = _json["kind"]; | 10431 kind = _json["kind"]; |
10030 } | 10432 } |
10031 if (_json.containsKey("nextPageToken")) { | 10433 if (_json.containsKey("nextPageToken")) { |
10032 nextPageToken = _json["nextPageToken"]; | 10434 nextPageToken = _json["nextPageToken"]; |
10033 } | 10435 } |
10034 if (_json.containsKey("resources")) { | 10436 if (_json.containsKey("resources")) { |
10035 resources = _json["resources"].map((value) => new Product.fromJson(value))
.toList(); | 10437 resources = _json["resources"] |
| 10438 .map((value) => new Product.fromJson(value)) |
| 10439 .toList(); |
10036 } | 10440 } |
10037 } | 10441 } |
10038 | 10442 |
10039 core.Map<core.String, core.Object> toJson() { | 10443 core.Map<core.String, core.Object> toJson() { |
10040 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10444 final core.Map<core.String, core.Object> _json = |
| 10445 new core.Map<core.String, core.Object>(); |
10041 if (kind != null) { | 10446 if (kind != null) { |
10042 _json["kind"] = kind; | 10447 _json["kind"] = kind; |
10043 } | 10448 } |
10044 if (nextPageToken != null) { | 10449 if (nextPageToken != null) { |
10045 _json["nextPageToken"] = nextPageToken; | 10450 _json["nextPageToken"] = nextPageToken; |
10046 } | 10451 } |
10047 if (resources != null) { | 10452 if (resources != null) { |
10048 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 10453 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
10049 } | 10454 } |
10050 return _json; | 10455 return _json; |
10051 } | 10456 } |
10052 } | 10457 } |
10053 | 10458 |
10054 class ProductstatusesCustomBatchRequest { | 10459 class ProductstatusesCustomBatchRequest { |
10055 /** The request entries to be processed in the batch. */ | 10460 /// The request entries to be processed in the batch. |
10056 core.List<ProductstatusesCustomBatchRequestEntry> entries; | 10461 core.List<ProductstatusesCustomBatchRequestEntry> entries; |
10057 | 10462 |
10058 ProductstatusesCustomBatchRequest(); | 10463 ProductstatusesCustomBatchRequest(); |
10059 | 10464 |
10060 ProductstatusesCustomBatchRequest.fromJson(core.Map _json) { | 10465 ProductstatusesCustomBatchRequest.fromJson(core.Map _json) { |
10061 if (_json.containsKey("entries")) { | 10466 if (_json.containsKey("entries")) { |
10062 entries = _json["entries"].map((value) => new ProductstatusesCustomBatchRe
questEntry.fromJson(value)).toList(); | 10467 entries = _json["entries"] |
| 10468 .map((value) => |
| 10469 new ProductstatusesCustomBatchRequestEntry.fromJson(value)) |
| 10470 .toList(); |
10063 } | 10471 } |
10064 } | 10472 } |
10065 | 10473 |
10066 core.Map<core.String, core.Object> toJson() { | 10474 core.Map<core.String, core.Object> toJson() { |
10067 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10475 final core.Map<core.String, core.Object> _json = |
| 10476 new core.Map<core.String, core.Object>(); |
10068 if (entries != null) { | 10477 if (entries != null) { |
10069 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 10478 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
10070 } | 10479 } |
10071 return _json; | 10480 return _json; |
10072 } | 10481 } |
10073 } | 10482 } |
10074 | 10483 |
10075 /** A batch entry encoding a single non-batch productstatuses request. */ | 10484 /// A batch entry encoding a single non-batch productstatuses request. |
10076 class ProductstatusesCustomBatchRequestEntry { | 10485 class ProductstatusesCustomBatchRequestEntry { |
10077 /** An entry ID, unique within the batch request. */ | 10486 /// An entry ID, unique within the batch request. |
10078 core.int batchId; | 10487 core.int batchId; |
10079 core.bool includeAttributes; | 10488 core.bool includeAttributes; |
10080 /** The ID of the managing account. */ | 10489 |
| 10490 /// The ID of the managing account. |
10081 core.String merchantId; | 10491 core.String merchantId; |
10082 core.String method; | 10492 core.String method; |
10083 /** The ID of the product whose status to get. */ | 10493 |
| 10494 /// The ID of the product whose status to get. |
10084 core.String productId; | 10495 core.String productId; |
10085 | 10496 |
10086 ProductstatusesCustomBatchRequestEntry(); | 10497 ProductstatusesCustomBatchRequestEntry(); |
10087 | 10498 |
10088 ProductstatusesCustomBatchRequestEntry.fromJson(core.Map _json) { | 10499 ProductstatusesCustomBatchRequestEntry.fromJson(core.Map _json) { |
10089 if (_json.containsKey("batchId")) { | 10500 if (_json.containsKey("batchId")) { |
10090 batchId = _json["batchId"]; | 10501 batchId = _json["batchId"]; |
10091 } | 10502 } |
10092 if (_json.containsKey("includeAttributes")) { | 10503 if (_json.containsKey("includeAttributes")) { |
10093 includeAttributes = _json["includeAttributes"]; | 10504 includeAttributes = _json["includeAttributes"]; |
10094 } | 10505 } |
10095 if (_json.containsKey("merchantId")) { | 10506 if (_json.containsKey("merchantId")) { |
10096 merchantId = _json["merchantId"]; | 10507 merchantId = _json["merchantId"]; |
10097 } | 10508 } |
10098 if (_json.containsKey("method")) { | 10509 if (_json.containsKey("method")) { |
10099 method = _json["method"]; | 10510 method = _json["method"]; |
10100 } | 10511 } |
10101 if (_json.containsKey("productId")) { | 10512 if (_json.containsKey("productId")) { |
10102 productId = _json["productId"]; | 10513 productId = _json["productId"]; |
10103 } | 10514 } |
10104 } | 10515 } |
10105 | 10516 |
10106 core.Map<core.String, core.Object> toJson() { | 10517 core.Map<core.String, core.Object> toJson() { |
10107 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10518 final core.Map<core.String, core.Object> _json = |
| 10519 new core.Map<core.String, core.Object>(); |
10108 if (batchId != null) { | 10520 if (batchId != null) { |
10109 _json["batchId"] = batchId; | 10521 _json["batchId"] = batchId; |
10110 } | 10522 } |
10111 if (includeAttributes != null) { | 10523 if (includeAttributes != null) { |
10112 _json["includeAttributes"] = includeAttributes; | 10524 _json["includeAttributes"] = includeAttributes; |
10113 } | 10525 } |
10114 if (merchantId != null) { | 10526 if (merchantId != null) { |
10115 _json["merchantId"] = merchantId; | 10527 _json["merchantId"] = merchantId; |
10116 } | 10528 } |
10117 if (method != null) { | 10529 if (method != null) { |
10118 _json["method"] = method; | 10530 _json["method"] = method; |
10119 } | 10531 } |
10120 if (productId != null) { | 10532 if (productId != null) { |
10121 _json["productId"] = productId; | 10533 _json["productId"] = productId; |
10122 } | 10534 } |
10123 return _json; | 10535 return _json; |
10124 } | 10536 } |
10125 } | 10537 } |
10126 | 10538 |
10127 class ProductstatusesCustomBatchResponse { | 10539 class ProductstatusesCustomBatchResponse { |
10128 /** The result of the execution of the batch requests. */ | 10540 /// The result of the execution of the batch requests. |
10129 core.List<ProductstatusesCustomBatchResponseEntry> entries; | 10541 core.List<ProductstatusesCustomBatchResponseEntry> entries; |
10130 /** | 10542 |
10131 * Identifies what kind of resource this is. Value: the fixed string | 10543 /// Identifies what kind of resource this is. Value: the fixed string |
10132 * "content#productstatusesCustomBatchResponse". | 10544 /// "content#productstatusesCustomBatchResponse". |
10133 */ | |
10134 core.String kind; | 10545 core.String kind; |
10135 | 10546 |
10136 ProductstatusesCustomBatchResponse(); | 10547 ProductstatusesCustomBatchResponse(); |
10137 | 10548 |
10138 ProductstatusesCustomBatchResponse.fromJson(core.Map _json) { | 10549 ProductstatusesCustomBatchResponse.fromJson(core.Map _json) { |
10139 if (_json.containsKey("entries")) { | 10550 if (_json.containsKey("entries")) { |
10140 entries = _json["entries"].map((value) => new ProductstatusesCustomBatchRe
sponseEntry.fromJson(value)).toList(); | 10551 entries = _json["entries"] |
| 10552 .map((value) => |
| 10553 new ProductstatusesCustomBatchResponseEntry.fromJson(value)) |
| 10554 .toList(); |
10141 } | 10555 } |
10142 if (_json.containsKey("kind")) { | 10556 if (_json.containsKey("kind")) { |
10143 kind = _json["kind"]; | 10557 kind = _json["kind"]; |
10144 } | 10558 } |
10145 } | 10559 } |
10146 | 10560 |
10147 core.Map<core.String, core.Object> toJson() { | 10561 core.Map<core.String, core.Object> toJson() { |
10148 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10562 final core.Map<core.String, core.Object> _json = |
| 10563 new core.Map<core.String, core.Object>(); |
10149 if (entries != null) { | 10564 if (entries != null) { |
10150 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 10565 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
10151 } | 10566 } |
10152 if (kind != null) { | 10567 if (kind != null) { |
10153 _json["kind"] = kind; | 10568 _json["kind"] = kind; |
10154 } | 10569 } |
10155 return _json; | 10570 return _json; |
10156 } | 10571 } |
10157 } | 10572 } |
10158 | 10573 |
10159 /** A batch entry encoding a single non-batch productstatuses response. */ | 10574 /// A batch entry encoding a single non-batch productstatuses response. |
10160 class ProductstatusesCustomBatchResponseEntry { | 10575 class ProductstatusesCustomBatchResponseEntry { |
10161 /** The ID of the request entry this entry responds to. */ | 10576 /// The ID of the request entry this entry responds to. |
10162 core.int batchId; | 10577 core.int batchId; |
10163 /** A list of errors, if the request failed. */ | 10578 |
| 10579 /// A list of errors, if the request failed. |
10164 Errors errors; | 10580 Errors errors; |
10165 /** | 10581 |
10166 * Identifies what kind of resource this is. Value: the fixed string | 10582 /// Identifies what kind of resource this is. Value: the fixed string |
10167 * "content#productstatusesCustomBatchResponseEntry". | 10583 /// "content#productstatusesCustomBatchResponseEntry". |
10168 */ | |
10169 core.String kind; | 10584 core.String kind; |
10170 /** | 10585 |
10171 * The requested product status. Only defined if the request was successful. | 10586 /// The requested product status. Only defined if the request was successful. |
10172 */ | |
10173 ProductStatus productStatus; | 10587 ProductStatus productStatus; |
10174 | 10588 |
10175 ProductstatusesCustomBatchResponseEntry(); | 10589 ProductstatusesCustomBatchResponseEntry(); |
10176 | 10590 |
10177 ProductstatusesCustomBatchResponseEntry.fromJson(core.Map _json) { | 10591 ProductstatusesCustomBatchResponseEntry.fromJson(core.Map _json) { |
10178 if (_json.containsKey("batchId")) { | 10592 if (_json.containsKey("batchId")) { |
10179 batchId = _json["batchId"]; | 10593 batchId = _json["batchId"]; |
10180 } | 10594 } |
10181 if (_json.containsKey("errors")) { | 10595 if (_json.containsKey("errors")) { |
10182 errors = new Errors.fromJson(_json["errors"]); | 10596 errors = new Errors.fromJson(_json["errors"]); |
10183 } | 10597 } |
10184 if (_json.containsKey("kind")) { | 10598 if (_json.containsKey("kind")) { |
10185 kind = _json["kind"]; | 10599 kind = _json["kind"]; |
10186 } | 10600 } |
10187 if (_json.containsKey("productStatus")) { | 10601 if (_json.containsKey("productStatus")) { |
10188 productStatus = new ProductStatus.fromJson(_json["productStatus"]); | 10602 productStatus = new ProductStatus.fromJson(_json["productStatus"]); |
10189 } | 10603 } |
10190 } | 10604 } |
10191 | 10605 |
10192 core.Map<core.String, core.Object> toJson() { | 10606 core.Map<core.String, core.Object> toJson() { |
10193 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10607 final core.Map<core.String, core.Object> _json = |
| 10608 new core.Map<core.String, core.Object>(); |
10194 if (batchId != null) { | 10609 if (batchId != null) { |
10195 _json["batchId"] = batchId; | 10610 _json["batchId"] = batchId; |
10196 } | 10611 } |
10197 if (errors != null) { | 10612 if (errors != null) { |
10198 _json["errors"] = (errors).toJson(); | 10613 _json["errors"] = (errors).toJson(); |
10199 } | 10614 } |
10200 if (kind != null) { | 10615 if (kind != null) { |
10201 _json["kind"] = kind; | 10616 _json["kind"] = kind; |
10202 } | 10617 } |
10203 if (productStatus != null) { | 10618 if (productStatus != null) { |
10204 _json["productStatus"] = (productStatus).toJson(); | 10619 _json["productStatus"] = (productStatus).toJson(); |
10205 } | 10620 } |
10206 return _json; | 10621 return _json; |
10207 } | 10622 } |
10208 } | 10623 } |
10209 | 10624 |
10210 class ProductstatusesListResponse { | 10625 class ProductstatusesListResponse { |
10211 /** | 10626 /// Identifies what kind of resource this is. Value: the fixed string |
10212 * Identifies what kind of resource this is. Value: the fixed string | 10627 /// "content#productstatusesListResponse". |
10213 * "content#productstatusesListResponse". | |
10214 */ | |
10215 core.String kind; | 10628 core.String kind; |
10216 /** The token for the retrieval of the next page of products statuses. */ | 10629 |
| 10630 /// The token for the retrieval of the next page of products statuses. |
10217 core.String nextPageToken; | 10631 core.String nextPageToken; |
10218 core.List<ProductStatus> resources; | 10632 core.List<ProductStatus> resources; |
10219 | 10633 |
10220 ProductstatusesListResponse(); | 10634 ProductstatusesListResponse(); |
10221 | 10635 |
10222 ProductstatusesListResponse.fromJson(core.Map _json) { | 10636 ProductstatusesListResponse.fromJson(core.Map _json) { |
10223 if (_json.containsKey("kind")) { | 10637 if (_json.containsKey("kind")) { |
10224 kind = _json["kind"]; | 10638 kind = _json["kind"]; |
10225 } | 10639 } |
10226 if (_json.containsKey("nextPageToken")) { | 10640 if (_json.containsKey("nextPageToken")) { |
10227 nextPageToken = _json["nextPageToken"]; | 10641 nextPageToken = _json["nextPageToken"]; |
10228 } | 10642 } |
10229 if (_json.containsKey("resources")) { | 10643 if (_json.containsKey("resources")) { |
10230 resources = _json["resources"].map((value) => new ProductStatus.fromJson(v
alue)).toList(); | 10644 resources = _json["resources"] |
| 10645 .map((value) => new ProductStatus.fromJson(value)) |
| 10646 .toList(); |
10231 } | 10647 } |
10232 } | 10648 } |
10233 | 10649 |
10234 core.Map<core.String, core.Object> toJson() { | 10650 core.Map<core.String, core.Object> toJson() { |
10235 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10651 final core.Map<core.String, core.Object> _json = |
| 10652 new core.Map<core.String, core.Object>(); |
10236 if (kind != null) { | 10653 if (kind != null) { |
10237 _json["kind"] = kind; | 10654 _json["kind"] = kind; |
10238 } | 10655 } |
10239 if (nextPageToken != null) { | 10656 if (nextPageToken != null) { |
10240 _json["nextPageToken"] = nextPageToken; | 10657 _json["nextPageToken"] = nextPageToken; |
10241 } | 10658 } |
10242 if (resources != null) { | 10659 if (resources != null) { |
10243 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 10660 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
10244 } | 10661 } |
10245 return _json; | 10662 return _json; |
10246 } | 10663 } |
10247 } | 10664 } |
10248 | 10665 |
10249 class RateGroup { | 10666 class RateGroup { |
10250 /** | 10667 /// A list of shipping labels defining the products to which this rate group |
10251 * A list of shipping labels defining the products to which this rate group | 10668 /// applies to. This is a disjunction: only one of the labels has to match |
10252 * applies to. This is a disjunction: only one of the labels has to match for | 10669 /// for the rate group to apply. May only be empty for the last rate group of |
10253 * the rate group to apply. May only be empty for the last rate group of a | 10670 /// a service. Required. |
10254 * service. Required. | |
10255 */ | |
10256 core.List<core.String> applicableShippingLabels; | 10671 core.List<core.String> applicableShippingLabels; |
10257 /** | 10672 |
10258 * A list of carrier rates that can be referred to by mainTable or | 10673 /// A list of carrier rates that can be referred to by mainTable or |
10259 * singleValue. | 10674 /// singleValue. |
10260 */ | |
10261 core.List<CarrierRate> carrierRates; | 10675 core.List<CarrierRate> carrierRates; |
10262 /** | 10676 |
10263 * A table defining the rate group, when singleValue is not expressive enough. | 10677 /// A table defining the rate group, when singleValue is not expressive |
10264 * Can only be set if singleValue is not set. | 10678 /// enough. Can only be set if singleValue is not set. |
10265 */ | |
10266 Table mainTable; | 10679 Table mainTable; |
10267 /** | 10680 |
10268 * The value of the rate group (e.g. flat rate $10). Can only be set if | 10681 /// The value of the rate group (e.g. flat rate $10). Can only be set if |
10269 * mainTable and subtables are not set. | 10682 /// mainTable and subtables are not set. |
10270 */ | |
10271 Value singleValue; | 10683 Value singleValue; |
10272 /** | 10684 |
10273 * A list of subtables referred to by mainTable. Can only be set if mainTable | 10685 /// A list of subtables referred to by mainTable. Can only be set if |
10274 * is set. | 10686 /// mainTable is set. |
10275 */ | |
10276 core.List<Table> subtables; | 10687 core.List<Table> subtables; |
10277 | 10688 |
10278 RateGroup(); | 10689 RateGroup(); |
10279 | 10690 |
10280 RateGroup.fromJson(core.Map _json) { | 10691 RateGroup.fromJson(core.Map _json) { |
10281 if (_json.containsKey("applicableShippingLabels")) { | 10692 if (_json.containsKey("applicableShippingLabels")) { |
10282 applicableShippingLabels = _json["applicableShippingLabels"]; | 10693 applicableShippingLabels = _json["applicableShippingLabels"]; |
10283 } | 10694 } |
10284 if (_json.containsKey("carrierRates")) { | 10695 if (_json.containsKey("carrierRates")) { |
10285 carrierRates = _json["carrierRates"].map((value) => new CarrierRate.fromJs
on(value)).toList(); | 10696 carrierRates = _json["carrierRates"] |
| 10697 .map((value) => new CarrierRate.fromJson(value)) |
| 10698 .toList(); |
10286 } | 10699 } |
10287 if (_json.containsKey("mainTable")) { | 10700 if (_json.containsKey("mainTable")) { |
10288 mainTable = new Table.fromJson(_json["mainTable"]); | 10701 mainTable = new Table.fromJson(_json["mainTable"]); |
10289 } | 10702 } |
10290 if (_json.containsKey("singleValue")) { | 10703 if (_json.containsKey("singleValue")) { |
10291 singleValue = new Value.fromJson(_json["singleValue"]); | 10704 singleValue = new Value.fromJson(_json["singleValue"]); |
10292 } | 10705 } |
10293 if (_json.containsKey("subtables")) { | 10706 if (_json.containsKey("subtables")) { |
10294 subtables = _json["subtables"].map((value) => new Table.fromJson(value)).t
oList(); | 10707 subtables = |
| 10708 _json["subtables"].map((value) => new Table.fromJson(value)).toList(); |
10295 } | 10709 } |
10296 } | 10710 } |
10297 | 10711 |
10298 core.Map<core.String, core.Object> toJson() { | 10712 core.Map<core.String, core.Object> toJson() { |
10299 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10713 final core.Map<core.String, core.Object> _json = |
| 10714 new core.Map<core.String, core.Object>(); |
10300 if (applicableShippingLabels != null) { | 10715 if (applicableShippingLabels != null) { |
10301 _json["applicableShippingLabels"] = applicableShippingLabels; | 10716 _json["applicableShippingLabels"] = applicableShippingLabels; |
10302 } | 10717 } |
10303 if (carrierRates != null) { | 10718 if (carrierRates != null) { |
10304 _json["carrierRates"] = carrierRates.map((value) => (value).toJson()).toLi
st(); | 10719 _json["carrierRates"] = |
| 10720 carrierRates.map((value) => (value).toJson()).toList(); |
10305 } | 10721 } |
10306 if (mainTable != null) { | 10722 if (mainTable != null) { |
10307 _json["mainTable"] = (mainTable).toJson(); | 10723 _json["mainTable"] = (mainTable).toJson(); |
10308 } | 10724 } |
10309 if (singleValue != null) { | 10725 if (singleValue != null) { |
10310 _json["singleValue"] = (singleValue).toJson(); | 10726 _json["singleValue"] = (singleValue).toJson(); |
10311 } | 10727 } |
10312 if (subtables != null) { | 10728 if (subtables != null) { |
10313 _json["subtables"] = subtables.map((value) => (value).toJson()).toList(); | 10729 _json["subtables"] = subtables.map((value) => (value).toJson()).toList(); |
10314 } | 10730 } |
10315 return _json; | 10731 return _json; |
10316 } | 10732 } |
10317 } | 10733 } |
10318 | 10734 |
10319 class Row { | 10735 class Row { |
10320 /** | 10736 /// The list of cells that constitute the row. Must have the same length as |
10321 * The list of cells that constitute the row. Must have the same length as | 10737 /// columnHeaders for two-dimensional tables, a length of 1 for |
10322 * columnHeaders for two-dimensional tables, a length of 1 for one-dimensional | 10738 /// one-dimensional tables. Required. |
10323 * tables. Required. | |
10324 */ | |
10325 core.List<Value> cells; | 10739 core.List<Value> cells; |
10326 | 10740 |
10327 Row(); | 10741 Row(); |
10328 | 10742 |
10329 Row.fromJson(core.Map _json) { | 10743 Row.fromJson(core.Map _json) { |
10330 if (_json.containsKey("cells")) { | 10744 if (_json.containsKey("cells")) { |
10331 cells = _json["cells"].map((value) => new Value.fromJson(value)).toList(); | 10745 cells = _json["cells"].map((value) => new Value.fromJson(value)).toList(); |
10332 } | 10746 } |
10333 } | 10747 } |
10334 | 10748 |
10335 core.Map<core.String, core.Object> toJson() { | 10749 core.Map<core.String, core.Object> toJson() { |
10336 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10750 final core.Map<core.String, core.Object> _json = |
| 10751 new core.Map<core.String, core.Object>(); |
10337 if (cells != null) { | 10752 if (cells != null) { |
10338 _json["cells"] = cells.map((value) => (value).toJson()).toList(); | 10753 _json["cells"] = cells.map((value) => (value).toJson()).toList(); |
10339 } | 10754 } |
10340 return _json; | 10755 return _json; |
10341 } | 10756 } |
10342 } | 10757 } |
10343 | 10758 |
10344 class Service { | 10759 class Service { |
10345 /** | 10760 /// A boolean exposing the active status of the shipping service. Required. |
10346 * A boolean exposing the active status of the shipping service. Required. | |
10347 */ | |
10348 core.bool active; | 10761 core.bool active; |
10349 /** | 10762 |
10350 * The CLDR code of the currency to which this service applies. Must match | 10763 /// The CLDR code of the currency to which this service applies. Must match |
10351 * that of the prices in rate groups. | 10764 /// that of the prices in rate groups. |
10352 */ | |
10353 core.String currency; | 10765 core.String currency; |
10354 /** | 10766 |
10355 * The CLDR territory code of the country to which the service applies. | 10767 /// The CLDR territory code of the country to which the service applies. |
10356 * Required. | 10768 /// Required. |
10357 */ | |
10358 core.String deliveryCountry; | 10769 core.String deliveryCountry; |
10359 /** | 10770 |
10360 * Time spent in various aspects from order to the delivery of the product. | 10771 /// Time spent in various aspects from order to the delivery of the product. |
10361 * Required. | 10772 /// Required. |
10362 */ | |
10363 DeliveryTime deliveryTime; | 10773 DeliveryTime deliveryTime; |
10364 /** | 10774 |
10365 * Free-form name of the service. Must be unique within target account. | 10775 /// Minimum order value for this service. If set, indicates that customers |
10366 * Required. | 10776 /// will have to spend at least this amount. All prices within a service must |
10367 */ | 10777 /// have the same currency. |
| 10778 Price minimumOrderValue; |
| 10779 |
| 10780 /// Free-form name of the service. Must be unique within target account. |
| 10781 /// Required. |
10368 core.String name; | 10782 core.String name; |
10369 /** | 10783 |
10370 * Shipping rate group definitions. Only the last one is allowed to have an | 10784 /// Shipping rate group definitions. Only the last one is allowed to have an |
10371 * empty applicableShippingLabels, which means "everything else". The other | 10785 /// empty applicableShippingLabels, which means "everything else". The other |
10372 * applicableShippingLabels must not overlap. | 10786 /// applicableShippingLabels must not overlap. |
10373 */ | |
10374 core.List<RateGroup> rateGroups; | 10787 core.List<RateGroup> rateGroups; |
10375 | 10788 |
10376 Service(); | 10789 Service(); |
10377 | 10790 |
10378 Service.fromJson(core.Map _json) { | 10791 Service.fromJson(core.Map _json) { |
10379 if (_json.containsKey("active")) { | 10792 if (_json.containsKey("active")) { |
10380 active = _json["active"]; | 10793 active = _json["active"]; |
10381 } | 10794 } |
10382 if (_json.containsKey("currency")) { | 10795 if (_json.containsKey("currency")) { |
10383 currency = _json["currency"]; | 10796 currency = _json["currency"]; |
10384 } | 10797 } |
10385 if (_json.containsKey("deliveryCountry")) { | 10798 if (_json.containsKey("deliveryCountry")) { |
10386 deliveryCountry = _json["deliveryCountry"]; | 10799 deliveryCountry = _json["deliveryCountry"]; |
10387 } | 10800 } |
10388 if (_json.containsKey("deliveryTime")) { | 10801 if (_json.containsKey("deliveryTime")) { |
10389 deliveryTime = new DeliveryTime.fromJson(_json["deliveryTime"]); | 10802 deliveryTime = new DeliveryTime.fromJson(_json["deliveryTime"]); |
10390 } | 10803 } |
| 10804 if (_json.containsKey("minimumOrderValue")) { |
| 10805 minimumOrderValue = new Price.fromJson(_json["minimumOrderValue"]); |
| 10806 } |
10391 if (_json.containsKey("name")) { | 10807 if (_json.containsKey("name")) { |
10392 name = _json["name"]; | 10808 name = _json["name"]; |
10393 } | 10809 } |
10394 if (_json.containsKey("rateGroups")) { | 10810 if (_json.containsKey("rateGroups")) { |
10395 rateGroups = _json["rateGroups"].map((value) => new RateGroup.fromJson(val
ue)).toList(); | 10811 rateGroups = _json["rateGroups"] |
| 10812 .map((value) => new RateGroup.fromJson(value)) |
| 10813 .toList(); |
10396 } | 10814 } |
10397 } | 10815 } |
10398 | 10816 |
10399 core.Map<core.String, core.Object> toJson() { | 10817 core.Map<core.String, core.Object> toJson() { |
10400 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10818 final core.Map<core.String, core.Object> _json = |
| 10819 new core.Map<core.String, core.Object>(); |
10401 if (active != null) { | 10820 if (active != null) { |
10402 _json["active"] = active; | 10821 _json["active"] = active; |
10403 } | 10822 } |
10404 if (currency != null) { | 10823 if (currency != null) { |
10405 _json["currency"] = currency; | 10824 _json["currency"] = currency; |
10406 } | 10825 } |
10407 if (deliveryCountry != null) { | 10826 if (deliveryCountry != null) { |
10408 _json["deliveryCountry"] = deliveryCountry; | 10827 _json["deliveryCountry"] = deliveryCountry; |
10409 } | 10828 } |
10410 if (deliveryTime != null) { | 10829 if (deliveryTime != null) { |
10411 _json["deliveryTime"] = (deliveryTime).toJson(); | 10830 _json["deliveryTime"] = (deliveryTime).toJson(); |
10412 } | 10831 } |
| 10832 if (minimumOrderValue != null) { |
| 10833 _json["minimumOrderValue"] = (minimumOrderValue).toJson(); |
| 10834 } |
10413 if (name != null) { | 10835 if (name != null) { |
10414 _json["name"] = name; | 10836 _json["name"] = name; |
10415 } | 10837 } |
10416 if (rateGroups != null) { | 10838 if (rateGroups != null) { |
10417 _json["rateGroups"] = rateGroups.map((value) => (value).toJson()).toList()
; | 10839 _json["rateGroups"] = |
| 10840 rateGroups.map((value) => (value).toJson()).toList(); |
10418 } | 10841 } |
10419 return _json; | 10842 return _json; |
10420 } | 10843 } |
10421 } | 10844 } |
10422 | 10845 |
10423 /** The merchant account's shipping settings. */ | 10846 /// The merchant account's shipping settings. |
10424 class ShippingSettings { | 10847 class ShippingSettings { |
10425 /** | 10848 /// The ID of the account to which these account shipping settings belong. |
10426 * The ID of the account to which these account shipping settings belong. | 10849 /// Ignored upon update, always present in get request responses. |
10427 * Ignored upon update, always present in get request responses. | |
10428 */ | |
10429 core.String accountId; | 10850 core.String accountId; |
10430 /** | 10851 |
10431 * A list of postal code groups that can be referred to in services. Optional. | 10852 /// A list of postal code groups that can be referred to in services. |
10432 */ | 10853 /// Optional. |
10433 core.List<PostalCodeGroup> postalCodeGroups; | 10854 core.List<PostalCodeGroup> postalCodeGroups; |
10434 /** The target account's list of services. Optional. */ | 10855 |
| 10856 /// The target account's list of services. Optional. |
10435 core.List<Service> services; | 10857 core.List<Service> services; |
10436 | 10858 |
10437 ShippingSettings(); | 10859 ShippingSettings(); |
10438 | 10860 |
10439 ShippingSettings.fromJson(core.Map _json) { | 10861 ShippingSettings.fromJson(core.Map _json) { |
10440 if (_json.containsKey("accountId")) { | 10862 if (_json.containsKey("accountId")) { |
10441 accountId = _json["accountId"]; | 10863 accountId = _json["accountId"]; |
10442 } | 10864 } |
10443 if (_json.containsKey("postalCodeGroups")) { | 10865 if (_json.containsKey("postalCodeGroups")) { |
10444 postalCodeGroups = _json["postalCodeGroups"].map((value) => new PostalCode
Group.fromJson(value)).toList(); | 10866 postalCodeGroups = _json["postalCodeGroups"] |
| 10867 .map((value) => new PostalCodeGroup.fromJson(value)) |
| 10868 .toList(); |
10445 } | 10869 } |
10446 if (_json.containsKey("services")) { | 10870 if (_json.containsKey("services")) { |
10447 services = _json["services"].map((value) => new Service.fromJson(value)).t
oList(); | 10871 services = _json["services"] |
| 10872 .map((value) => new Service.fromJson(value)) |
| 10873 .toList(); |
10448 } | 10874 } |
10449 } | 10875 } |
10450 | 10876 |
10451 core.Map<core.String, core.Object> toJson() { | 10877 core.Map<core.String, core.Object> toJson() { |
10452 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10878 final core.Map<core.String, core.Object> _json = |
| 10879 new core.Map<core.String, core.Object>(); |
10453 if (accountId != null) { | 10880 if (accountId != null) { |
10454 _json["accountId"] = accountId; | 10881 _json["accountId"] = accountId; |
10455 } | 10882 } |
10456 if (postalCodeGroups != null) { | 10883 if (postalCodeGroups != null) { |
10457 _json["postalCodeGroups"] = postalCodeGroups.map((value) => (value).toJson
()).toList(); | 10884 _json["postalCodeGroups"] = |
| 10885 postalCodeGroups.map((value) => (value).toJson()).toList(); |
10458 } | 10886 } |
10459 if (services != null) { | 10887 if (services != null) { |
10460 _json["services"] = services.map((value) => (value).toJson()).toList(); | 10888 _json["services"] = services.map((value) => (value).toJson()).toList(); |
10461 } | 10889 } |
10462 return _json; | 10890 return _json; |
10463 } | 10891 } |
10464 } | 10892 } |
10465 | 10893 |
10466 class ShippingsettingsCustomBatchRequest { | 10894 class ShippingsettingsCustomBatchRequest { |
10467 /** The request entries to be processed in the batch. */ | 10895 /// The request entries to be processed in the batch. |
10468 core.List<ShippingsettingsCustomBatchRequestEntry> entries; | 10896 core.List<ShippingsettingsCustomBatchRequestEntry> entries; |
10469 | 10897 |
10470 ShippingsettingsCustomBatchRequest(); | 10898 ShippingsettingsCustomBatchRequest(); |
10471 | 10899 |
10472 ShippingsettingsCustomBatchRequest.fromJson(core.Map _json) { | 10900 ShippingsettingsCustomBatchRequest.fromJson(core.Map _json) { |
10473 if (_json.containsKey("entries")) { | 10901 if (_json.containsKey("entries")) { |
10474 entries = _json["entries"].map((value) => new ShippingsettingsCustomBatchR
equestEntry.fromJson(value)).toList(); | 10902 entries = _json["entries"] |
| 10903 .map((value) => |
| 10904 new ShippingsettingsCustomBatchRequestEntry.fromJson(value)) |
| 10905 .toList(); |
10475 } | 10906 } |
10476 } | 10907 } |
10477 | 10908 |
10478 core.Map<core.String, core.Object> toJson() { | 10909 core.Map<core.String, core.Object> toJson() { |
10479 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10910 final core.Map<core.String, core.Object> _json = |
| 10911 new core.Map<core.String, core.Object>(); |
10480 if (entries != null) { | 10912 if (entries != null) { |
10481 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 10913 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
10482 } | 10914 } |
10483 return _json; | 10915 return _json; |
10484 } | 10916 } |
10485 } | 10917 } |
10486 | 10918 |
10487 /** A batch entry encoding a single non-batch shippingsettings request. */ | 10919 /// A batch entry encoding a single non-batch shippingsettings request. |
10488 class ShippingsettingsCustomBatchRequestEntry { | 10920 class ShippingsettingsCustomBatchRequestEntry { |
10489 /** | 10921 /// The ID of the account for which to get/update account shipping settings. |
10490 * The ID of the account for which to get/update account shipping settings. | |
10491 */ | |
10492 core.String accountId; | 10922 core.String accountId; |
10493 /** An entry ID, unique within the batch request. */ | 10923 |
| 10924 /// An entry ID, unique within the batch request. |
10494 core.int batchId; | 10925 core.int batchId; |
10495 /** The ID of the managing account. */ | 10926 |
| 10927 /// The ID of the managing account. |
10496 core.String merchantId; | 10928 core.String merchantId; |
10497 core.String method; | 10929 core.String method; |
10498 /** | 10930 |
10499 * The account shipping settings to update. Only defined if the method is | 10931 /// The account shipping settings to update. Only defined if the method is |
10500 * update. | 10932 /// update. |
10501 */ | |
10502 ShippingSettings shippingSettings; | 10933 ShippingSettings shippingSettings; |
10503 | 10934 |
10504 ShippingsettingsCustomBatchRequestEntry(); | 10935 ShippingsettingsCustomBatchRequestEntry(); |
10505 | 10936 |
10506 ShippingsettingsCustomBatchRequestEntry.fromJson(core.Map _json) { | 10937 ShippingsettingsCustomBatchRequestEntry.fromJson(core.Map _json) { |
10507 if (_json.containsKey("accountId")) { | 10938 if (_json.containsKey("accountId")) { |
10508 accountId = _json["accountId"]; | 10939 accountId = _json["accountId"]; |
10509 } | 10940 } |
10510 if (_json.containsKey("batchId")) { | 10941 if (_json.containsKey("batchId")) { |
10511 batchId = _json["batchId"]; | 10942 batchId = _json["batchId"]; |
10512 } | 10943 } |
10513 if (_json.containsKey("merchantId")) { | 10944 if (_json.containsKey("merchantId")) { |
10514 merchantId = _json["merchantId"]; | 10945 merchantId = _json["merchantId"]; |
10515 } | 10946 } |
10516 if (_json.containsKey("method")) { | 10947 if (_json.containsKey("method")) { |
10517 method = _json["method"]; | 10948 method = _json["method"]; |
10518 } | 10949 } |
10519 if (_json.containsKey("shippingSettings")) { | 10950 if (_json.containsKey("shippingSettings")) { |
10520 shippingSettings = new ShippingSettings.fromJson(_json["shippingSettings"]
); | 10951 shippingSettings = |
| 10952 new ShippingSettings.fromJson(_json["shippingSettings"]); |
10521 } | 10953 } |
10522 } | 10954 } |
10523 | 10955 |
10524 core.Map<core.String, core.Object> toJson() { | 10956 core.Map<core.String, core.Object> toJson() { |
10525 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10957 final core.Map<core.String, core.Object> _json = |
| 10958 new core.Map<core.String, core.Object>(); |
10526 if (accountId != null) { | 10959 if (accountId != null) { |
10527 _json["accountId"] = accountId; | 10960 _json["accountId"] = accountId; |
10528 } | 10961 } |
10529 if (batchId != null) { | 10962 if (batchId != null) { |
10530 _json["batchId"] = batchId; | 10963 _json["batchId"] = batchId; |
10531 } | 10964 } |
10532 if (merchantId != null) { | 10965 if (merchantId != null) { |
10533 _json["merchantId"] = merchantId; | 10966 _json["merchantId"] = merchantId; |
10534 } | 10967 } |
10535 if (method != null) { | 10968 if (method != null) { |
10536 _json["method"] = method; | 10969 _json["method"] = method; |
10537 } | 10970 } |
10538 if (shippingSettings != null) { | 10971 if (shippingSettings != null) { |
10539 _json["shippingSettings"] = (shippingSettings).toJson(); | 10972 _json["shippingSettings"] = (shippingSettings).toJson(); |
10540 } | 10973 } |
10541 return _json; | 10974 return _json; |
10542 } | 10975 } |
10543 } | 10976 } |
10544 | 10977 |
10545 class ShippingsettingsCustomBatchResponse { | 10978 class ShippingsettingsCustomBatchResponse { |
10546 /** The result of the execution of the batch requests. */ | 10979 /// The result of the execution of the batch requests. |
10547 core.List<ShippingsettingsCustomBatchResponseEntry> entries; | 10980 core.List<ShippingsettingsCustomBatchResponseEntry> entries; |
10548 /** | 10981 |
10549 * Identifies what kind of resource this is. Value: the fixed string | 10982 /// Identifies what kind of resource this is. Value: the fixed string |
10550 * "content#shippingsettingsCustomBatchResponse". | 10983 /// "content#shippingsettingsCustomBatchResponse". |
10551 */ | |
10552 core.String kind; | 10984 core.String kind; |
10553 | 10985 |
10554 ShippingsettingsCustomBatchResponse(); | 10986 ShippingsettingsCustomBatchResponse(); |
10555 | 10987 |
10556 ShippingsettingsCustomBatchResponse.fromJson(core.Map _json) { | 10988 ShippingsettingsCustomBatchResponse.fromJson(core.Map _json) { |
10557 if (_json.containsKey("entries")) { | 10989 if (_json.containsKey("entries")) { |
10558 entries = _json["entries"].map((value) => new ShippingsettingsCustomBatchR
esponseEntry.fromJson(value)).toList(); | 10990 entries = _json["entries"] |
| 10991 .map((value) => |
| 10992 new ShippingsettingsCustomBatchResponseEntry.fromJson(value)) |
| 10993 .toList(); |
10559 } | 10994 } |
10560 if (_json.containsKey("kind")) { | 10995 if (_json.containsKey("kind")) { |
10561 kind = _json["kind"]; | 10996 kind = _json["kind"]; |
10562 } | 10997 } |
10563 } | 10998 } |
10564 | 10999 |
10565 core.Map<core.String, core.Object> toJson() { | 11000 core.Map<core.String, core.Object> toJson() { |
10566 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11001 final core.Map<core.String, core.Object> _json = |
| 11002 new core.Map<core.String, core.Object>(); |
10567 if (entries != null) { | 11003 if (entries != null) { |
10568 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 11004 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
10569 } | 11005 } |
10570 if (kind != null) { | 11006 if (kind != null) { |
10571 _json["kind"] = kind; | 11007 _json["kind"] = kind; |
10572 } | 11008 } |
10573 return _json; | 11009 return _json; |
10574 } | 11010 } |
10575 } | 11011 } |
10576 | 11012 |
10577 /** A batch entry encoding a single non-batch shipping settings response. */ | 11013 /// A batch entry encoding a single non-batch shipping settings response. |
10578 class ShippingsettingsCustomBatchResponseEntry { | 11014 class ShippingsettingsCustomBatchResponseEntry { |
10579 /** The ID of the request entry to which this entry responds. */ | 11015 /// The ID of the request entry to which this entry responds. |
10580 core.int batchId; | 11016 core.int batchId; |
10581 /** A list of errors defined if, and only if, the request failed. */ | 11017 |
| 11018 /// A list of errors defined if, and only if, the request failed. |
10582 Errors errors; | 11019 Errors errors; |
10583 /** | 11020 |
10584 * Identifies what kind of resource this is. Value: the fixed string | 11021 /// Identifies what kind of resource this is. Value: the fixed string |
10585 * "content#shippingsettingsCustomBatchResponseEntry". | 11022 /// "content#shippingsettingsCustomBatchResponseEntry". |
10586 */ | |
10587 core.String kind; | 11023 core.String kind; |
10588 /** The retrieved or updated account shipping settings. */ | 11024 |
| 11025 /// The retrieved or updated account shipping settings. |
10589 ShippingSettings shippingSettings; | 11026 ShippingSettings shippingSettings; |
10590 | 11027 |
10591 ShippingsettingsCustomBatchResponseEntry(); | 11028 ShippingsettingsCustomBatchResponseEntry(); |
10592 | 11029 |
10593 ShippingsettingsCustomBatchResponseEntry.fromJson(core.Map _json) { | 11030 ShippingsettingsCustomBatchResponseEntry.fromJson(core.Map _json) { |
10594 if (_json.containsKey("batchId")) { | 11031 if (_json.containsKey("batchId")) { |
10595 batchId = _json["batchId"]; | 11032 batchId = _json["batchId"]; |
10596 } | 11033 } |
10597 if (_json.containsKey("errors")) { | 11034 if (_json.containsKey("errors")) { |
10598 errors = new Errors.fromJson(_json["errors"]); | 11035 errors = new Errors.fromJson(_json["errors"]); |
10599 } | 11036 } |
10600 if (_json.containsKey("kind")) { | 11037 if (_json.containsKey("kind")) { |
10601 kind = _json["kind"]; | 11038 kind = _json["kind"]; |
10602 } | 11039 } |
10603 if (_json.containsKey("shippingSettings")) { | 11040 if (_json.containsKey("shippingSettings")) { |
10604 shippingSettings = new ShippingSettings.fromJson(_json["shippingSettings"]
); | 11041 shippingSettings = |
| 11042 new ShippingSettings.fromJson(_json["shippingSettings"]); |
10605 } | 11043 } |
10606 } | 11044 } |
10607 | 11045 |
10608 core.Map<core.String, core.Object> toJson() { | 11046 core.Map<core.String, core.Object> toJson() { |
10609 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11047 final core.Map<core.String, core.Object> _json = |
| 11048 new core.Map<core.String, core.Object>(); |
10610 if (batchId != null) { | 11049 if (batchId != null) { |
10611 _json["batchId"] = batchId; | 11050 _json["batchId"] = batchId; |
10612 } | 11051 } |
10613 if (errors != null) { | 11052 if (errors != null) { |
10614 _json["errors"] = (errors).toJson(); | 11053 _json["errors"] = (errors).toJson(); |
10615 } | 11054 } |
10616 if (kind != null) { | 11055 if (kind != null) { |
10617 _json["kind"] = kind; | 11056 _json["kind"] = kind; |
10618 } | 11057 } |
10619 if (shippingSettings != null) { | 11058 if (shippingSettings != null) { |
10620 _json["shippingSettings"] = (shippingSettings).toJson(); | 11059 _json["shippingSettings"] = (shippingSettings).toJson(); |
10621 } | 11060 } |
10622 return _json; | 11061 return _json; |
10623 } | 11062 } |
10624 } | 11063 } |
10625 | 11064 |
10626 class ShippingsettingsGetSupportedCarriersResponse { | 11065 class ShippingsettingsGetSupportedCarriersResponse { |
10627 /** A list of supported carriers. May be empty. */ | 11066 /// A list of supported carriers. May be empty. |
10628 core.List<CarriersCarrier> carriers; | 11067 core.List<CarriersCarrier> carriers; |
10629 /** | 11068 |
10630 * Identifies what kind of resource this is. Value: the fixed string | 11069 /// Identifies what kind of resource this is. Value: the fixed string |
10631 * "content#shippingsettingsGetSupportedCarriersResponse". | 11070 /// "content#shippingsettingsGetSupportedCarriersResponse". |
10632 */ | |
10633 core.String kind; | 11071 core.String kind; |
10634 | 11072 |
10635 ShippingsettingsGetSupportedCarriersResponse(); | 11073 ShippingsettingsGetSupportedCarriersResponse(); |
10636 | 11074 |
10637 ShippingsettingsGetSupportedCarriersResponse.fromJson(core.Map _json) { | 11075 ShippingsettingsGetSupportedCarriersResponse.fromJson(core.Map _json) { |
10638 if (_json.containsKey("carriers")) { | 11076 if (_json.containsKey("carriers")) { |
10639 carriers = _json["carriers"].map((value) => new CarriersCarrier.fromJson(v
alue)).toList(); | 11077 carriers = _json["carriers"] |
| 11078 .map((value) => new CarriersCarrier.fromJson(value)) |
| 11079 .toList(); |
10640 } | 11080 } |
10641 if (_json.containsKey("kind")) { | 11081 if (_json.containsKey("kind")) { |
10642 kind = _json["kind"]; | 11082 kind = _json["kind"]; |
10643 } | 11083 } |
10644 } | 11084 } |
10645 | 11085 |
10646 core.Map<core.String, core.Object> toJson() { | 11086 core.Map<core.String, core.Object> toJson() { |
10647 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11087 final core.Map<core.String, core.Object> _json = |
| 11088 new core.Map<core.String, core.Object>(); |
10648 if (carriers != null) { | 11089 if (carriers != null) { |
10649 _json["carriers"] = carriers.map((value) => (value).toJson()).toList(); | 11090 _json["carriers"] = carriers.map((value) => (value).toJson()).toList(); |
10650 } | 11091 } |
10651 if (kind != null) { | 11092 if (kind != null) { |
10652 _json["kind"] = kind; | 11093 _json["kind"] = kind; |
10653 } | 11094 } |
10654 return _json; | 11095 return _json; |
10655 } | 11096 } |
10656 } | 11097 } |
10657 | 11098 |
10658 class ShippingsettingsListResponse { | 11099 class ShippingsettingsListResponse { |
10659 /** | 11100 /// Identifies what kind of resource this is. Value: the fixed string |
10660 * Identifies what kind of resource this is. Value: the fixed string | 11101 /// "content#shippingsettingsListResponse". |
10661 * "content#shippingsettingsListResponse". | |
10662 */ | |
10663 core.String kind; | 11102 core.String kind; |
10664 /** The token for the retrieval of the next page of shipping settings. */ | 11103 |
| 11104 /// The token for the retrieval of the next page of shipping settings. |
10665 core.String nextPageToken; | 11105 core.String nextPageToken; |
10666 core.List<ShippingSettings> resources; | 11106 core.List<ShippingSettings> resources; |
10667 | 11107 |
10668 ShippingsettingsListResponse(); | 11108 ShippingsettingsListResponse(); |
10669 | 11109 |
10670 ShippingsettingsListResponse.fromJson(core.Map _json) { | 11110 ShippingsettingsListResponse.fromJson(core.Map _json) { |
10671 if (_json.containsKey("kind")) { | 11111 if (_json.containsKey("kind")) { |
10672 kind = _json["kind"]; | 11112 kind = _json["kind"]; |
10673 } | 11113 } |
10674 if (_json.containsKey("nextPageToken")) { | 11114 if (_json.containsKey("nextPageToken")) { |
10675 nextPageToken = _json["nextPageToken"]; | 11115 nextPageToken = _json["nextPageToken"]; |
10676 } | 11116 } |
10677 if (_json.containsKey("resources")) { | 11117 if (_json.containsKey("resources")) { |
10678 resources = _json["resources"].map((value) => new ShippingSettings.fromJso
n(value)).toList(); | 11118 resources = _json["resources"] |
| 11119 .map((value) => new ShippingSettings.fromJson(value)) |
| 11120 .toList(); |
10679 } | 11121 } |
10680 } | 11122 } |
10681 | 11123 |
10682 core.Map<core.String, core.Object> toJson() { | 11124 core.Map<core.String, core.Object> toJson() { |
10683 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11125 final core.Map<core.String, core.Object> _json = |
| 11126 new core.Map<core.String, core.Object>(); |
10684 if (kind != null) { | 11127 if (kind != null) { |
10685 _json["kind"] = kind; | 11128 _json["kind"] = kind; |
10686 } | 11129 } |
10687 if (nextPageToken != null) { | 11130 if (nextPageToken != null) { |
10688 _json["nextPageToken"] = nextPageToken; | 11131 _json["nextPageToken"] = nextPageToken; |
10689 } | 11132 } |
10690 if (resources != null) { | 11133 if (resources != null) { |
10691 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 11134 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
10692 } | 11135 } |
10693 return _json; | 11136 return _json; |
10694 } | 11137 } |
10695 } | 11138 } |
10696 | 11139 |
10697 class Table { | 11140 class Table { |
10698 /** | 11141 /// Headers of the table's columns. Optional: if not set then the table has |
10699 * Headers of the table's columns. Optional: if not set then the table has | 11142 /// only one dimension. |
10700 * only one dimension. | |
10701 */ | |
10702 Headers columnHeaders; | 11143 Headers columnHeaders; |
10703 /** Name of the table. Required for subtables, ignored for the main table. */ | 11144 |
| 11145 /// Name of the table. Required for subtables, ignored for the main table. |
10704 core.String name; | 11146 core.String name; |
10705 /** Headers of the table's rows. Required. */ | 11147 |
| 11148 /// Headers of the table's rows. Required. |
10706 Headers rowHeaders; | 11149 Headers rowHeaders; |
10707 /** | 11150 |
10708 * The list of rows that constitute the table. Must have the same length as | 11151 /// The list of rows that constitute the table. Must have the same length as |
10709 * rowHeaders. Required. | 11152 /// rowHeaders. Required. |
10710 */ | |
10711 core.List<Row> rows; | 11153 core.List<Row> rows; |
10712 | 11154 |
10713 Table(); | 11155 Table(); |
10714 | 11156 |
10715 Table.fromJson(core.Map _json) { | 11157 Table.fromJson(core.Map _json) { |
10716 if (_json.containsKey("columnHeaders")) { | 11158 if (_json.containsKey("columnHeaders")) { |
10717 columnHeaders = new Headers.fromJson(_json["columnHeaders"]); | 11159 columnHeaders = new Headers.fromJson(_json["columnHeaders"]); |
10718 } | 11160 } |
10719 if (_json.containsKey("name")) { | 11161 if (_json.containsKey("name")) { |
10720 name = _json["name"]; | 11162 name = _json["name"]; |
10721 } | 11163 } |
10722 if (_json.containsKey("rowHeaders")) { | 11164 if (_json.containsKey("rowHeaders")) { |
10723 rowHeaders = new Headers.fromJson(_json["rowHeaders"]); | 11165 rowHeaders = new Headers.fromJson(_json["rowHeaders"]); |
10724 } | 11166 } |
10725 if (_json.containsKey("rows")) { | 11167 if (_json.containsKey("rows")) { |
10726 rows = _json["rows"].map((value) => new Row.fromJson(value)).toList(); | 11168 rows = _json["rows"].map((value) => new Row.fromJson(value)).toList(); |
10727 } | 11169 } |
10728 } | 11170 } |
10729 | 11171 |
10730 core.Map<core.String, core.Object> toJson() { | 11172 core.Map<core.String, core.Object> toJson() { |
10731 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11173 final core.Map<core.String, core.Object> _json = |
| 11174 new core.Map<core.String, core.Object>(); |
10732 if (columnHeaders != null) { | 11175 if (columnHeaders != null) { |
10733 _json["columnHeaders"] = (columnHeaders).toJson(); | 11176 _json["columnHeaders"] = (columnHeaders).toJson(); |
10734 } | 11177 } |
10735 if (name != null) { | 11178 if (name != null) { |
10736 _json["name"] = name; | 11179 _json["name"] = name; |
10737 } | 11180 } |
10738 if (rowHeaders != null) { | 11181 if (rowHeaders != null) { |
10739 _json["rowHeaders"] = (rowHeaders).toJson(); | 11182 _json["rowHeaders"] = (rowHeaders).toJson(); |
10740 } | 11183 } |
10741 if (rows != null) { | 11184 if (rows != null) { |
10742 _json["rows"] = rows.map((value) => (value).toJson()).toList(); | 11185 _json["rows"] = rows.map((value) => (value).toJson()).toList(); |
10743 } | 11186 } |
10744 return _json; | 11187 return _json; |
10745 } | 11188 } |
10746 } | 11189 } |
10747 | 11190 |
10748 class TestOrder { | 11191 class TestOrder { |
10749 /** The details of the customer who placed the order. */ | 11192 /// The details of the customer who placed the order. |
10750 TestOrderCustomer customer; | 11193 TestOrderCustomer customer; |
10751 /** | 11194 |
10752 * Identifies what kind of resource this is. Value: the fixed string | 11195 /// Identifies what kind of resource this is. Value: the fixed string |
10753 * "content#testOrder". | 11196 /// "content#testOrder". |
10754 */ | |
10755 core.String kind; | 11197 core.String kind; |
10756 /** Line items that are ordered. At least one line item must be provided. */ | 11198 |
| 11199 /// Line items that are ordered. At least one line item must be provided. |
10757 core.List<TestOrderLineItem> lineItems; | 11200 core.List<TestOrderLineItem> lineItems; |
10758 /** The details of the payment method. */ | 11201 |
| 11202 /// The details of the payment method. |
10759 TestOrderPaymentMethod paymentMethod; | 11203 TestOrderPaymentMethod paymentMethod; |
10760 /** | 11204 |
10761 * Identifier of one of the predefined delivery addresses for the delivery. | 11205 /// Identifier of one of the predefined delivery addresses for the delivery. |
10762 */ | |
10763 core.String predefinedDeliveryAddress; | 11206 core.String predefinedDeliveryAddress; |
10764 /** | 11207 |
10765 * The details of the merchant provided promotions applied to the order. More | 11208 /// The details of the merchant provided promotions applied to the order. |
10766 * details about the program are here. | 11209 /// More details about the program are here. |
10767 */ | |
10768 core.List<OrderPromotion> promotions; | 11210 core.List<OrderPromotion> promotions; |
10769 /** The total cost of shipping for all items. */ | 11211 |
| 11212 /// The total cost of shipping for all items. |
10770 Price shippingCost; | 11213 Price shippingCost; |
10771 /** The tax for the total shipping cost. */ | 11214 |
| 11215 /// The tax for the total shipping cost. |
10772 Price shippingCostTax; | 11216 Price shippingCostTax; |
10773 /** The requested shipping option. */ | 11217 |
| 11218 /// The requested shipping option. |
10774 core.String shippingOption; | 11219 core.String shippingOption; |
10775 | 11220 |
10776 TestOrder(); | 11221 TestOrder(); |
10777 | 11222 |
10778 TestOrder.fromJson(core.Map _json) { | 11223 TestOrder.fromJson(core.Map _json) { |
10779 if (_json.containsKey("customer")) { | 11224 if (_json.containsKey("customer")) { |
10780 customer = new TestOrderCustomer.fromJson(_json["customer"]); | 11225 customer = new TestOrderCustomer.fromJson(_json["customer"]); |
10781 } | 11226 } |
10782 if (_json.containsKey("kind")) { | 11227 if (_json.containsKey("kind")) { |
10783 kind = _json["kind"]; | 11228 kind = _json["kind"]; |
10784 } | 11229 } |
10785 if (_json.containsKey("lineItems")) { | 11230 if (_json.containsKey("lineItems")) { |
10786 lineItems = _json["lineItems"].map((value) => new TestOrderLineItem.fromJs
on(value)).toList(); | 11231 lineItems = _json["lineItems"] |
| 11232 .map((value) => new TestOrderLineItem.fromJson(value)) |
| 11233 .toList(); |
10787 } | 11234 } |
10788 if (_json.containsKey("paymentMethod")) { | 11235 if (_json.containsKey("paymentMethod")) { |
10789 paymentMethod = new TestOrderPaymentMethod.fromJson(_json["paymentMethod"]
); | 11236 paymentMethod = |
| 11237 new TestOrderPaymentMethod.fromJson(_json["paymentMethod"]); |
10790 } | 11238 } |
10791 if (_json.containsKey("predefinedDeliveryAddress")) { | 11239 if (_json.containsKey("predefinedDeliveryAddress")) { |
10792 predefinedDeliveryAddress = _json["predefinedDeliveryAddress"]; | 11240 predefinedDeliveryAddress = _json["predefinedDeliveryAddress"]; |
10793 } | 11241 } |
10794 if (_json.containsKey("promotions")) { | 11242 if (_json.containsKey("promotions")) { |
10795 promotions = _json["promotions"].map((value) => new OrderPromotion.fromJso
n(value)).toList(); | 11243 promotions = _json["promotions"] |
| 11244 .map((value) => new OrderPromotion.fromJson(value)) |
| 11245 .toList(); |
10796 } | 11246 } |
10797 if (_json.containsKey("shippingCost")) { | 11247 if (_json.containsKey("shippingCost")) { |
10798 shippingCost = new Price.fromJson(_json["shippingCost"]); | 11248 shippingCost = new Price.fromJson(_json["shippingCost"]); |
10799 } | 11249 } |
10800 if (_json.containsKey("shippingCostTax")) { | 11250 if (_json.containsKey("shippingCostTax")) { |
10801 shippingCostTax = new Price.fromJson(_json["shippingCostTax"]); | 11251 shippingCostTax = new Price.fromJson(_json["shippingCostTax"]); |
10802 } | 11252 } |
10803 if (_json.containsKey("shippingOption")) { | 11253 if (_json.containsKey("shippingOption")) { |
10804 shippingOption = _json["shippingOption"]; | 11254 shippingOption = _json["shippingOption"]; |
10805 } | 11255 } |
10806 } | 11256 } |
10807 | 11257 |
10808 core.Map<core.String, core.Object> toJson() { | 11258 core.Map<core.String, core.Object> toJson() { |
10809 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11259 final core.Map<core.String, core.Object> _json = |
| 11260 new core.Map<core.String, core.Object>(); |
10810 if (customer != null) { | 11261 if (customer != null) { |
10811 _json["customer"] = (customer).toJson(); | 11262 _json["customer"] = (customer).toJson(); |
10812 } | 11263 } |
10813 if (kind != null) { | 11264 if (kind != null) { |
10814 _json["kind"] = kind; | 11265 _json["kind"] = kind; |
10815 } | 11266 } |
10816 if (lineItems != null) { | 11267 if (lineItems != null) { |
10817 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList(); | 11268 _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList(); |
10818 } | 11269 } |
10819 if (paymentMethod != null) { | 11270 if (paymentMethod != null) { |
10820 _json["paymentMethod"] = (paymentMethod).toJson(); | 11271 _json["paymentMethod"] = (paymentMethod).toJson(); |
10821 } | 11272 } |
10822 if (predefinedDeliveryAddress != null) { | 11273 if (predefinedDeliveryAddress != null) { |
10823 _json["predefinedDeliveryAddress"] = predefinedDeliveryAddress; | 11274 _json["predefinedDeliveryAddress"] = predefinedDeliveryAddress; |
10824 } | 11275 } |
10825 if (promotions != null) { | 11276 if (promotions != null) { |
10826 _json["promotions"] = promotions.map((value) => (value).toJson()).toList()
; | 11277 _json["promotions"] = |
| 11278 promotions.map((value) => (value).toJson()).toList(); |
10827 } | 11279 } |
10828 if (shippingCost != null) { | 11280 if (shippingCost != null) { |
10829 _json["shippingCost"] = (shippingCost).toJson(); | 11281 _json["shippingCost"] = (shippingCost).toJson(); |
10830 } | 11282 } |
10831 if (shippingCostTax != null) { | 11283 if (shippingCostTax != null) { |
10832 _json["shippingCostTax"] = (shippingCostTax).toJson(); | 11284 _json["shippingCostTax"] = (shippingCostTax).toJson(); |
10833 } | 11285 } |
10834 if (shippingOption != null) { | 11286 if (shippingOption != null) { |
10835 _json["shippingOption"] = shippingOption; | 11287 _json["shippingOption"] = shippingOption; |
10836 } | 11288 } |
10837 return _json; | 11289 return _json; |
10838 } | 11290 } |
10839 } | 11291 } |
10840 | 11292 |
10841 class TestOrderCustomer { | 11293 class TestOrderCustomer { |
10842 /** Email address of the customer. */ | 11294 /// Email address of the customer. |
10843 core.String email; | 11295 core.String email; |
10844 /** | 11296 |
10845 * If set, this indicates the user explicitly chose to opt in or out of | 11297 /// If set, this indicates the user explicitly chose to opt in or out of |
10846 * providing marketing rights to the merchant. If unset, this indicates the | 11298 /// providing marketing rights to the merchant. If unset, this indicates the |
10847 * user has already made this choice in a previous purchase, and was thus not | 11299 /// user has already made this choice in a previous purchase, and was thus |
10848 * shown the marketing right opt in/out checkbox during the checkout flow. | 11300 /// not shown the marketing right opt in/out checkbox during the checkout |
10849 * Optional. | 11301 /// flow. Optional. |
10850 */ | |
10851 core.bool explicitMarketingPreference; | 11302 core.bool explicitMarketingPreference; |
10852 /** Full name of the customer. */ | 11303 |
| 11304 /// Full name of the customer. |
10853 core.String fullName; | 11305 core.String fullName; |
10854 | 11306 |
10855 TestOrderCustomer(); | 11307 TestOrderCustomer(); |
10856 | 11308 |
10857 TestOrderCustomer.fromJson(core.Map _json) { | 11309 TestOrderCustomer.fromJson(core.Map _json) { |
10858 if (_json.containsKey("email")) { | 11310 if (_json.containsKey("email")) { |
10859 email = _json["email"]; | 11311 email = _json["email"]; |
10860 } | 11312 } |
10861 if (_json.containsKey("explicitMarketingPreference")) { | 11313 if (_json.containsKey("explicitMarketingPreference")) { |
10862 explicitMarketingPreference = _json["explicitMarketingPreference"]; | 11314 explicitMarketingPreference = _json["explicitMarketingPreference"]; |
10863 } | 11315 } |
10864 if (_json.containsKey("fullName")) { | 11316 if (_json.containsKey("fullName")) { |
10865 fullName = _json["fullName"]; | 11317 fullName = _json["fullName"]; |
10866 } | 11318 } |
10867 } | 11319 } |
10868 | 11320 |
10869 core.Map<core.String, core.Object> toJson() { | 11321 core.Map<core.String, core.Object> toJson() { |
10870 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11322 final core.Map<core.String, core.Object> _json = |
| 11323 new core.Map<core.String, core.Object>(); |
10871 if (email != null) { | 11324 if (email != null) { |
10872 _json["email"] = email; | 11325 _json["email"] = email; |
10873 } | 11326 } |
10874 if (explicitMarketingPreference != null) { | 11327 if (explicitMarketingPreference != null) { |
10875 _json["explicitMarketingPreference"] = explicitMarketingPreference; | 11328 _json["explicitMarketingPreference"] = explicitMarketingPreference; |
10876 } | 11329 } |
10877 if (fullName != null) { | 11330 if (fullName != null) { |
10878 _json["fullName"] = fullName; | 11331 _json["fullName"] = fullName; |
10879 } | 11332 } |
10880 return _json; | 11333 return _json; |
10881 } | 11334 } |
10882 } | 11335 } |
10883 | 11336 |
10884 class TestOrderLineItem { | 11337 class TestOrderLineItem { |
10885 /** Product data from the time of the order placement. */ | 11338 /// Product data from the time of the order placement. |
10886 TestOrderLineItemProduct product; | 11339 TestOrderLineItemProduct product; |
10887 /** Number of items ordered. */ | 11340 |
| 11341 /// Number of items ordered. |
10888 core.int quantityOrdered; | 11342 core.int quantityOrdered; |
10889 /** Details of the return policy for the line item. */ | 11343 |
| 11344 /// Details of the return policy for the line item. |
10890 OrderLineItemReturnInfo returnInfo; | 11345 OrderLineItemReturnInfo returnInfo; |
10891 /** Details of the requested shipping for the line item. */ | 11346 |
| 11347 /// Details of the requested shipping for the line item. |
10892 OrderLineItemShippingDetails shippingDetails; | 11348 OrderLineItemShippingDetails shippingDetails; |
10893 /** Unit tax for the line item. */ | 11349 |
| 11350 /// Unit tax for the line item. |
10894 Price unitTax; | 11351 Price unitTax; |
10895 | 11352 |
10896 TestOrderLineItem(); | 11353 TestOrderLineItem(); |
10897 | 11354 |
10898 TestOrderLineItem.fromJson(core.Map _json) { | 11355 TestOrderLineItem.fromJson(core.Map _json) { |
10899 if (_json.containsKey("product")) { | 11356 if (_json.containsKey("product")) { |
10900 product = new TestOrderLineItemProduct.fromJson(_json["product"]); | 11357 product = new TestOrderLineItemProduct.fromJson(_json["product"]); |
10901 } | 11358 } |
10902 if (_json.containsKey("quantityOrdered")) { | 11359 if (_json.containsKey("quantityOrdered")) { |
10903 quantityOrdered = _json["quantityOrdered"]; | 11360 quantityOrdered = _json["quantityOrdered"]; |
10904 } | 11361 } |
10905 if (_json.containsKey("returnInfo")) { | 11362 if (_json.containsKey("returnInfo")) { |
10906 returnInfo = new OrderLineItemReturnInfo.fromJson(_json["returnInfo"]); | 11363 returnInfo = new OrderLineItemReturnInfo.fromJson(_json["returnInfo"]); |
10907 } | 11364 } |
10908 if (_json.containsKey("shippingDetails")) { | 11365 if (_json.containsKey("shippingDetails")) { |
10909 shippingDetails = new OrderLineItemShippingDetails.fromJson(_json["shippin
gDetails"]); | 11366 shippingDetails = |
| 11367 new OrderLineItemShippingDetails.fromJson(_json["shippingDetails"]); |
10910 } | 11368 } |
10911 if (_json.containsKey("unitTax")) { | 11369 if (_json.containsKey("unitTax")) { |
10912 unitTax = new Price.fromJson(_json["unitTax"]); | 11370 unitTax = new Price.fromJson(_json["unitTax"]); |
10913 } | 11371 } |
10914 } | 11372 } |
10915 | 11373 |
10916 core.Map<core.String, core.Object> toJson() { | 11374 core.Map<core.String, core.Object> toJson() { |
10917 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11375 final core.Map<core.String, core.Object> _json = |
| 11376 new core.Map<core.String, core.Object>(); |
10918 if (product != null) { | 11377 if (product != null) { |
10919 _json["product"] = (product).toJson(); | 11378 _json["product"] = (product).toJson(); |
10920 } | 11379 } |
10921 if (quantityOrdered != null) { | 11380 if (quantityOrdered != null) { |
10922 _json["quantityOrdered"] = quantityOrdered; | 11381 _json["quantityOrdered"] = quantityOrdered; |
10923 } | 11382 } |
10924 if (returnInfo != null) { | 11383 if (returnInfo != null) { |
10925 _json["returnInfo"] = (returnInfo).toJson(); | 11384 _json["returnInfo"] = (returnInfo).toJson(); |
10926 } | 11385 } |
10927 if (shippingDetails != null) { | 11386 if (shippingDetails != null) { |
10928 _json["shippingDetails"] = (shippingDetails).toJson(); | 11387 _json["shippingDetails"] = (shippingDetails).toJson(); |
10929 } | 11388 } |
10930 if (unitTax != null) { | 11389 if (unitTax != null) { |
10931 _json["unitTax"] = (unitTax).toJson(); | 11390 _json["unitTax"] = (unitTax).toJson(); |
10932 } | 11391 } |
10933 return _json; | 11392 return _json; |
10934 } | 11393 } |
10935 } | 11394 } |
10936 | 11395 |
10937 class TestOrderLineItemProduct { | 11396 class TestOrderLineItemProduct { |
10938 /** Brand of the item. */ | 11397 /// Brand of the item. |
10939 core.String brand; | 11398 core.String brand; |
10940 /** The item's channel. */ | 11399 |
| 11400 /// The item's channel. |
10941 core.String channel; | 11401 core.String channel; |
10942 /** Condition or state of the item. */ | 11402 |
| 11403 /// Condition or state of the item. |
10943 core.String condition; | 11404 core.String condition; |
10944 /** The two-letter ISO 639-1 language code for the item. */ | 11405 |
| 11406 /// The two-letter ISO 639-1 language code for the item. |
10945 core.String contentLanguage; | 11407 core.String contentLanguage; |
10946 /** Global Trade Item Number (GTIN) of the item. Optional. */ | 11408 |
| 11409 /// Global Trade Item Number (GTIN) of the item. Optional. |
10947 core.String gtin; | 11410 core.String gtin; |
10948 /** URL of an image of the item. */ | 11411 |
| 11412 /// URL of an image of the item. |
10949 core.String imageLink; | 11413 core.String imageLink; |
10950 /** Shared identifier for all variants of the same product. Optional. */ | 11414 |
| 11415 /// Shared identifier for all variants of the same product. Optional. |
10951 core.String itemGroupId; | 11416 core.String itemGroupId; |
10952 /** Manufacturer Part Number (MPN) of the item. Optional. */ | 11417 |
| 11418 /// Manufacturer Part Number (MPN) of the item. Optional. |
10953 core.String mpn; | 11419 core.String mpn; |
10954 /** An identifier of the item. */ | 11420 |
| 11421 /// An identifier of the item. |
10955 core.String offerId; | 11422 core.String offerId; |
10956 /** The price for the product. */ | 11423 |
| 11424 /// The price for the product. |
10957 Price price; | 11425 Price price; |
10958 /** The CLDR territory code of the target country of the product. */ | 11426 |
| 11427 /// The CLDR territory code of the target country of the product. |
10959 core.String targetCountry; | 11428 core.String targetCountry; |
10960 /** The title of the product. */ | 11429 |
| 11430 /// The title of the product. |
10961 core.String title; | 11431 core.String title; |
10962 /** Variant attributes for the item. Optional. */ | 11432 |
| 11433 /// Variant attributes for the item. Optional. |
10963 core.List<OrderLineItemProductVariantAttribute> variantAttributes; | 11434 core.List<OrderLineItemProductVariantAttribute> variantAttributes; |
10964 | 11435 |
10965 TestOrderLineItemProduct(); | 11436 TestOrderLineItemProduct(); |
10966 | 11437 |
10967 TestOrderLineItemProduct.fromJson(core.Map _json) { | 11438 TestOrderLineItemProduct.fromJson(core.Map _json) { |
10968 if (_json.containsKey("brand")) { | 11439 if (_json.containsKey("brand")) { |
10969 brand = _json["brand"]; | 11440 brand = _json["brand"]; |
10970 } | 11441 } |
10971 if (_json.containsKey("channel")) { | 11442 if (_json.containsKey("channel")) { |
10972 channel = _json["channel"]; | 11443 channel = _json["channel"]; |
(...skipping 22 matching lines...) Expand all Loading... |
10995 if (_json.containsKey("price")) { | 11466 if (_json.containsKey("price")) { |
10996 price = new Price.fromJson(_json["price"]); | 11467 price = new Price.fromJson(_json["price"]); |
10997 } | 11468 } |
10998 if (_json.containsKey("targetCountry")) { | 11469 if (_json.containsKey("targetCountry")) { |
10999 targetCountry = _json["targetCountry"]; | 11470 targetCountry = _json["targetCountry"]; |
11000 } | 11471 } |
11001 if (_json.containsKey("title")) { | 11472 if (_json.containsKey("title")) { |
11002 title = _json["title"]; | 11473 title = _json["title"]; |
11003 } | 11474 } |
11004 if (_json.containsKey("variantAttributes")) { | 11475 if (_json.containsKey("variantAttributes")) { |
11005 variantAttributes = _json["variantAttributes"].map((value) => new OrderLin
eItemProductVariantAttribute.fromJson(value)).toList(); | 11476 variantAttributes = _json["variantAttributes"] |
| 11477 .map((value) => |
| 11478 new OrderLineItemProductVariantAttribute.fromJson(value)) |
| 11479 .toList(); |
11006 } | 11480 } |
11007 } | 11481 } |
11008 | 11482 |
11009 core.Map<core.String, core.Object> toJson() { | 11483 core.Map<core.String, core.Object> toJson() { |
11010 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11484 final core.Map<core.String, core.Object> _json = |
| 11485 new core.Map<core.String, core.Object>(); |
11011 if (brand != null) { | 11486 if (brand != null) { |
11012 _json["brand"] = brand; | 11487 _json["brand"] = brand; |
11013 } | 11488 } |
11014 if (channel != null) { | 11489 if (channel != null) { |
11015 _json["channel"] = channel; | 11490 _json["channel"] = channel; |
11016 } | 11491 } |
11017 if (condition != null) { | 11492 if (condition != null) { |
11018 _json["condition"] = condition; | 11493 _json["condition"] = condition; |
11019 } | 11494 } |
11020 if (contentLanguage != null) { | 11495 if (contentLanguage != null) { |
(...skipping 17 matching lines...) Expand all Loading... |
11038 if (price != null) { | 11513 if (price != null) { |
11039 _json["price"] = (price).toJson(); | 11514 _json["price"] = (price).toJson(); |
11040 } | 11515 } |
11041 if (targetCountry != null) { | 11516 if (targetCountry != null) { |
11042 _json["targetCountry"] = targetCountry; | 11517 _json["targetCountry"] = targetCountry; |
11043 } | 11518 } |
11044 if (title != null) { | 11519 if (title != null) { |
11045 _json["title"] = title; | 11520 _json["title"] = title; |
11046 } | 11521 } |
11047 if (variantAttributes != null) { | 11522 if (variantAttributes != null) { |
11048 _json["variantAttributes"] = variantAttributes.map((value) => (value).toJs
on()).toList(); | 11523 _json["variantAttributes"] = |
| 11524 variantAttributes.map((value) => (value).toJson()).toList(); |
11049 } | 11525 } |
11050 return _json; | 11526 return _json; |
11051 } | 11527 } |
11052 } | 11528 } |
11053 | 11529 |
11054 class TestOrderPaymentMethod { | 11530 class TestOrderPaymentMethod { |
11055 /** The card expiration month (January = 1, February = 2 etc.). */ | 11531 /// The card expiration month (January = 1, February = 2 etc.). |
11056 core.int expirationMonth; | 11532 core.int expirationMonth; |
11057 /** The card expiration year (4-digit, e.g. 2015). */ | 11533 |
| 11534 /// The card expiration year (4-digit, e.g. 2015). |
11058 core.int expirationYear; | 11535 core.int expirationYear; |
11059 /** The last four digits of the card number. */ | 11536 |
| 11537 /// The last four digits of the card number. |
11060 core.String lastFourDigits; | 11538 core.String lastFourDigits; |
11061 /** The billing address. */ | 11539 |
| 11540 /// The billing address. |
11062 core.String predefinedBillingAddress; | 11541 core.String predefinedBillingAddress; |
11063 /** | 11542 |
11064 * The type of instrument. Note that real orders might have different values | 11543 /// The type of instrument. Note that real orders might have different values |
11065 * than the four values accepted by createTestOrder. | 11544 /// than the four values accepted by createTestOrder. |
11066 */ | |
11067 core.String type; | 11545 core.String type; |
11068 | 11546 |
11069 TestOrderPaymentMethod(); | 11547 TestOrderPaymentMethod(); |
11070 | 11548 |
11071 TestOrderPaymentMethod.fromJson(core.Map _json) { | 11549 TestOrderPaymentMethod.fromJson(core.Map _json) { |
11072 if (_json.containsKey("expirationMonth")) { | 11550 if (_json.containsKey("expirationMonth")) { |
11073 expirationMonth = _json["expirationMonth"]; | 11551 expirationMonth = _json["expirationMonth"]; |
11074 } | 11552 } |
11075 if (_json.containsKey("expirationYear")) { | 11553 if (_json.containsKey("expirationYear")) { |
11076 expirationYear = _json["expirationYear"]; | 11554 expirationYear = _json["expirationYear"]; |
11077 } | 11555 } |
11078 if (_json.containsKey("lastFourDigits")) { | 11556 if (_json.containsKey("lastFourDigits")) { |
11079 lastFourDigits = _json["lastFourDigits"]; | 11557 lastFourDigits = _json["lastFourDigits"]; |
11080 } | 11558 } |
11081 if (_json.containsKey("predefinedBillingAddress")) { | 11559 if (_json.containsKey("predefinedBillingAddress")) { |
11082 predefinedBillingAddress = _json["predefinedBillingAddress"]; | 11560 predefinedBillingAddress = _json["predefinedBillingAddress"]; |
11083 } | 11561 } |
11084 if (_json.containsKey("type")) { | 11562 if (_json.containsKey("type")) { |
11085 type = _json["type"]; | 11563 type = _json["type"]; |
11086 } | 11564 } |
11087 } | 11565 } |
11088 | 11566 |
11089 core.Map<core.String, core.Object> toJson() { | 11567 core.Map<core.String, core.Object> toJson() { |
11090 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11568 final core.Map<core.String, core.Object> _json = |
| 11569 new core.Map<core.String, core.Object>(); |
11091 if (expirationMonth != null) { | 11570 if (expirationMonth != null) { |
11092 _json["expirationMonth"] = expirationMonth; | 11571 _json["expirationMonth"] = expirationMonth; |
11093 } | 11572 } |
11094 if (expirationYear != null) { | 11573 if (expirationYear != null) { |
11095 _json["expirationYear"] = expirationYear; | 11574 _json["expirationYear"] = expirationYear; |
11096 } | 11575 } |
11097 if (lastFourDigits != null) { | 11576 if (lastFourDigits != null) { |
11098 _json["lastFourDigits"] = lastFourDigits; | 11577 _json["lastFourDigits"] = lastFourDigits; |
11099 } | 11578 } |
11100 if (predefinedBillingAddress != null) { | 11579 if (predefinedBillingAddress != null) { |
11101 _json["predefinedBillingAddress"] = predefinedBillingAddress; | 11580 _json["predefinedBillingAddress"] = predefinedBillingAddress; |
11102 } | 11581 } |
11103 if (type != null) { | 11582 if (type != null) { |
11104 _json["type"] = type; | 11583 _json["type"] = type; |
11105 } | 11584 } |
11106 return _json; | 11585 return _json; |
11107 } | 11586 } |
11108 } | 11587 } |
11109 | 11588 |
11110 /** | 11589 /// The single value of a rate group or the value of a rate group table's cell. |
11111 * The single value of a rate group or the value of a rate group table's cell. | 11590 /// Exactly one of noShipping, flatRate, pricePercentage, carrierRateName, |
11112 * Exactly one of noShipping, flatRate, pricePercentage, carrierRateName, | 11591 /// subtableName must be set. |
11113 * subtableName must be set. | |
11114 */ | |
11115 class Value { | 11592 class Value { |
11116 /** | 11593 /// The name of a carrier rate referring to a carrier rate defined in the |
11117 * The name of a carrier rate referring to a carrier rate defined in the same | 11594 /// same rate group. Can only be set if all other fields are not set. |
11118 * rate group. Can only be set if all other fields are not set. | |
11119 */ | |
11120 core.String carrierRateName; | 11595 core.String carrierRateName; |
11121 /** A flat rate. Can only be set if all other fields are not set. */ | 11596 |
| 11597 /// A flat rate. Can only be set if all other fields are not set. |
11122 Price flatRate; | 11598 Price flatRate; |
11123 /** | 11599 |
11124 * If true, then the product can't ship. Must be true when set, can only be | 11600 /// If true, then the product can't ship. Must be true when set, can only be |
11125 * set if all other fields are not set. | 11601 /// set if all other fields are not set. |
11126 */ | |
11127 core.bool noShipping; | 11602 core.bool noShipping; |
11128 /** | 11603 |
11129 * A percentage of the price represented as a number in decimal notation | 11604 /// A percentage of the price represented as a number in decimal notation |
11130 * (e.g., "5.4"). Can only be set if all other fields are not set. | 11605 /// (e.g., "5.4"). Can only be set if all other fields are not set. |
11131 */ | |
11132 core.String pricePercentage; | 11606 core.String pricePercentage; |
11133 /** | 11607 |
11134 * The name of a subtable. Can only be set in table cells (i.e., not for | 11608 /// The name of a subtable. Can only be set in table cells (i.e., not for |
11135 * single values), and only if all other fields are not set. | 11609 /// single values), and only if all other fields are not set. |
11136 */ | |
11137 core.String subtableName; | 11610 core.String subtableName; |
11138 | 11611 |
11139 Value(); | 11612 Value(); |
11140 | 11613 |
11141 Value.fromJson(core.Map _json) { | 11614 Value.fromJson(core.Map _json) { |
11142 if (_json.containsKey("carrierRateName")) { | 11615 if (_json.containsKey("carrierRateName")) { |
11143 carrierRateName = _json["carrierRateName"]; | 11616 carrierRateName = _json["carrierRateName"]; |
11144 } | 11617 } |
11145 if (_json.containsKey("flatRate")) { | 11618 if (_json.containsKey("flatRate")) { |
11146 flatRate = new Price.fromJson(_json["flatRate"]); | 11619 flatRate = new Price.fromJson(_json["flatRate"]); |
11147 } | 11620 } |
11148 if (_json.containsKey("noShipping")) { | 11621 if (_json.containsKey("noShipping")) { |
11149 noShipping = _json["noShipping"]; | 11622 noShipping = _json["noShipping"]; |
11150 } | 11623 } |
11151 if (_json.containsKey("pricePercentage")) { | 11624 if (_json.containsKey("pricePercentage")) { |
11152 pricePercentage = _json["pricePercentage"]; | 11625 pricePercentage = _json["pricePercentage"]; |
11153 } | 11626 } |
11154 if (_json.containsKey("subtableName")) { | 11627 if (_json.containsKey("subtableName")) { |
11155 subtableName = _json["subtableName"]; | 11628 subtableName = _json["subtableName"]; |
11156 } | 11629 } |
11157 } | 11630 } |
11158 | 11631 |
11159 core.Map<core.String, core.Object> toJson() { | 11632 core.Map<core.String, core.Object> toJson() { |
11160 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11633 final core.Map<core.String, core.Object> _json = |
| 11634 new core.Map<core.String, core.Object>(); |
11161 if (carrierRateName != null) { | 11635 if (carrierRateName != null) { |
11162 _json["carrierRateName"] = carrierRateName; | 11636 _json["carrierRateName"] = carrierRateName; |
11163 } | 11637 } |
11164 if (flatRate != null) { | 11638 if (flatRate != null) { |
11165 _json["flatRate"] = (flatRate).toJson(); | 11639 _json["flatRate"] = (flatRate).toJson(); |
11166 } | 11640 } |
11167 if (noShipping != null) { | 11641 if (noShipping != null) { |
11168 _json["noShipping"] = noShipping; | 11642 _json["noShipping"] = noShipping; |
11169 } | 11643 } |
11170 if (pricePercentage != null) { | 11644 if (pricePercentage != null) { |
11171 _json["pricePercentage"] = pricePercentage; | 11645 _json["pricePercentage"] = pricePercentage; |
11172 } | 11646 } |
11173 if (subtableName != null) { | 11647 if (subtableName != null) { |
11174 _json["subtableName"] = subtableName; | 11648 _json["subtableName"] = subtableName; |
11175 } | 11649 } |
11176 return _json; | 11650 return _json; |
11177 } | 11651 } |
11178 } | 11652 } |
11179 | 11653 |
11180 class Weight { | 11654 class Weight { |
11181 /** The weight unit. */ | 11655 /// The weight unit. |
11182 core.String unit; | 11656 core.String unit; |
11183 /** The weight represented as a number. */ | 11657 |
| 11658 /// The weight represented as a number. |
11184 core.String value; | 11659 core.String value; |
11185 | 11660 |
11186 Weight(); | 11661 Weight(); |
11187 | 11662 |
11188 Weight.fromJson(core.Map _json) { | 11663 Weight.fromJson(core.Map _json) { |
11189 if (_json.containsKey("unit")) { | 11664 if (_json.containsKey("unit")) { |
11190 unit = _json["unit"]; | 11665 unit = _json["unit"]; |
11191 } | 11666 } |
11192 if (_json.containsKey("value")) { | 11667 if (_json.containsKey("value")) { |
11193 value = _json["value"]; | 11668 value = _json["value"]; |
11194 } | 11669 } |
11195 } | 11670 } |
11196 | 11671 |
11197 core.Map<core.String, core.Object> toJson() { | 11672 core.Map<core.String, core.Object> toJson() { |
11198 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11673 final core.Map<core.String, core.Object> _json = |
| 11674 new core.Map<core.String, core.Object>(); |
11199 if (unit != null) { | 11675 if (unit != null) { |
11200 _json["unit"] = unit; | 11676 _json["unit"] = unit; |
11201 } | 11677 } |
11202 if (value != null) { | 11678 if (value != null) { |
11203 _json["value"] = value; | 11679 _json["value"] = value; |
11204 } | 11680 } |
11205 return _json; | 11681 return _json; |
11206 } | 11682 } |
11207 } | 11683 } |
OLD | NEW |