OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
1 library googleapis.content.v2; | 3 library googleapis.content.v2; |
2 | 4 |
3 import "dart:core" as core; | 5 import 'dart:core' as core; |
4 import "dart:collection" as collection; | 6 import 'dart:collection' as collection; |
5 import "dart:async" as async; | 7 import 'dart:async' as async; |
6 import "dart:convert" as convert; | 8 import 'dart:convert' as convert; |
7 | 9 |
8 import "package:crypto/crypto.dart" as crypto; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 11 import 'package:crypto/crypto.dart' as crypto; |
9 import 'package:http/http.dart' as http; | 12 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | |
11 import '../common/common.dart' as common; | |
12 | 13 |
13 export '../common/common.dart' show ApiRequestError; | 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
14 export '../common/common.dart' show DetailedApiRequestError; | 15 ApiRequestError, DetailedApiRequestError; |
| 16 |
| 17 const core.String USER_AGENT = 'dart-api-client content/v2'; |
15 | 18 |
16 /** | 19 /** |
17 * Manage product items, inventory, and Merchant Center accounts for Google | 20 * Manage product items, inventory, and Merchant Center accounts for Google |
18 * Shopping. | 21 * Shopping. |
19 */ | 22 */ |
20 class ContentApi { | 23 class ContentApi { |
21 /** Manage your product listings and accounts for Google Shopping */ | 24 /** Manage your product listings and accounts for Google Shopping */ |
22 static const ContentScope = "https://www.googleapis.com/auth/content"; | 25 static const ContentScope = "https://www.googleapis.com/auth/content"; |
23 | 26 |
24 | 27 |
25 final common_internal.ApiRequester _requester; | 28 final commons.ApiRequester _requester; |
26 | 29 |
27 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); | 30 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); |
28 AccountshippingResourceApi get accountshipping => new AccountshippingResourceA
pi(_requester); | 31 AccountshippingResourceApi get accountshipping => new AccountshippingResourceA
pi(_requester); |
29 AccountstatusesResourceApi get accountstatuses => new AccountstatusesResourceA
pi(_requester); | 32 AccountstatusesResourceApi get accountstatuses => new AccountstatusesResourceA
pi(_requester); |
30 AccounttaxResourceApi get accounttax => new AccounttaxResourceApi(_requester); | 33 AccounttaxResourceApi get accounttax => new AccounttaxResourceApi(_requester); |
31 DatafeedsResourceApi get datafeeds => new DatafeedsResourceApi(_requester); | 34 DatafeedsResourceApi get datafeeds => new DatafeedsResourceApi(_requester); |
32 DatafeedstatusesResourceApi get datafeedstatuses => new DatafeedstatusesResour
ceApi(_requester); | 35 DatafeedstatusesResourceApi get datafeedstatuses => new DatafeedstatusesResour
ceApi(_requester); |
33 InventoryResourceApi get inventory => new InventoryResourceApi(_requester); | 36 InventoryResourceApi get inventory => new InventoryResourceApi(_requester); |
34 ProductsResourceApi get products => new ProductsResourceApi(_requester); | 37 ProductsResourceApi get products => new ProductsResourceApi(_requester); |
35 ProductstatusesResourceApi get productstatuses => new ProductstatusesResourceA
pi(_requester); | 38 ProductstatusesResourceApi get productstatuses => new ProductstatusesResourceA
pi(_requester); |
36 | 39 |
37 ContentApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c
om/", core.String servicePath: "content/v2/"}) : | 40 ContentApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c
om/", core.String servicePath: "content/v2/"}) : |
38 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 41 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
39 } | 42 } |
40 | 43 |
41 | 44 |
42 /** Not documented yet. */ | |
43 class AccountsResourceApi { | 45 class AccountsResourceApi { |
44 final common_internal.ApiRequester _requester; | 46 final commons.ApiRequester _requester; |
45 | 47 |
46 AccountsResourceApi(common_internal.ApiRequester client) : | 48 AccountsResourceApi(commons.ApiRequester client) : |
47 _requester = client; | 49 _requester = client; |
48 | 50 |
49 /** | 51 /** |
| 52 * Returns information about the authenticated user. |
| 53 * |
| 54 * Request parameters: |
| 55 * |
| 56 * Completes with a [AccountsAuthInfoResponse]. |
| 57 * |
| 58 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 59 * error. |
| 60 * |
| 61 * If the used [http.Client] completes with an error when making a REST call, |
| 62 * this method will complete with the same error. |
| 63 */ |
| 64 async.Future<AccountsAuthInfoResponse> authinfo() { |
| 65 var _url = null; |
| 66 var _queryParams = new core.Map(); |
| 67 var _uploadMedia = null; |
| 68 var _uploadOptions = null; |
| 69 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 70 var _body = null; |
| 71 |
| 72 |
| 73 |
| 74 _url = 'accounts/authinfo'; |
| 75 |
| 76 var _response = _requester.request(_url, |
| 77 "GET", |
| 78 body: _body, |
| 79 queryParams: _queryParams, |
| 80 uploadOptions: _uploadOptions, |
| 81 uploadMedia: _uploadMedia, |
| 82 downloadOptions: _downloadOptions); |
| 83 return _response.then((data) => new AccountsAuthInfoResponse.fromJson(data))
; |
| 84 } |
| 85 |
| 86 /** |
50 * Retrieves, inserts, updates, and deletes multiple Merchant Center | 87 * Retrieves, inserts, updates, and deletes multiple Merchant Center |
51 * (sub-)accounts in a single request. | 88 * (sub-)accounts in a single request. |
52 * | 89 * |
53 * [request] - The metadata request object. | 90 * [request] - The metadata request object. |
54 * | 91 * |
55 * Request parameters: | 92 * Request parameters: |
56 * | 93 * |
57 * Completes with a [AccountsCustomBatchResponse]. | 94 * Completes with a [AccountsCustomBatchResponse]. |
58 * | 95 * |
59 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 96 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
60 * error. | 97 * error. |
61 * | 98 * |
62 * If the used [http.Client] completes with an error when making a REST call, | 99 * If the used [http.Client] completes with an error when making a REST call, |
63 * this method will complete with the same error. | 100 * this method will complete with the same error. |
64 */ | 101 */ |
65 async.Future<AccountsCustomBatchResponse> custombatch(AccountsCustomBatchReque
st request) { | 102 async.Future<AccountsCustomBatchResponse> custombatch(AccountsCustomBatchReque
st request) { |
66 var _url = null; | 103 var _url = null; |
67 var _queryParams = new core.Map(); | 104 var _queryParams = new core.Map(); |
68 var _uploadMedia = null; | 105 var _uploadMedia = null; |
69 var _uploadOptions = null; | 106 var _uploadOptions = null; |
70 var _downloadOptions = common.DownloadOptions.Metadata; | 107 var _downloadOptions = commons.DownloadOptions.Metadata; |
71 var _body = null; | 108 var _body = null; |
72 | 109 |
73 if (request != null) { | 110 if (request != null) { |
74 _body = convert.JSON.encode((request).toJson()); | 111 _body = convert.JSON.encode((request).toJson()); |
75 } | 112 } |
76 | 113 |
77 | 114 |
78 _url = 'accounts/batch'; | 115 _url = 'accounts/batch'; |
79 | 116 |
80 var _response = _requester.request(_url, | 117 var _response = _requester.request(_url, |
81 "POST", | 118 "POST", |
82 body: _body, | 119 body: _body, |
83 queryParams: _queryParams, | 120 queryParams: _queryParams, |
84 uploadOptions: _uploadOptions, | 121 uploadOptions: _uploadOptions, |
85 uploadMedia: _uploadMedia, | 122 uploadMedia: _uploadMedia, |
86 downloadOptions: _downloadOptions); | 123 downloadOptions: _downloadOptions); |
87 return _response.then((data) => new AccountsCustomBatchResponse.fromJson(dat
a)); | 124 return _response.then((data) => new AccountsCustomBatchResponse.fromJson(dat
a)); |
88 } | 125 } |
89 | 126 |
90 /** | 127 /** |
91 * Deletes a Merchant Center sub-account. | 128 * Deletes a Merchant Center sub-account. |
92 * | 129 * |
93 * Request parameters: | 130 * Request parameters: |
94 * | 131 * |
95 * [merchantId] - The ID of the managing account. | 132 * [merchantId] - The ID of the managing account. |
96 * | 133 * |
97 * [accountId] - The ID of the account. | 134 * [accountId] - The ID of the account. |
98 * | 135 * |
99 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 136 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
100 * error. | 137 * error. |
101 * | 138 * |
102 * If the used [http.Client] completes with an error when making a REST call, | 139 * If the used [http.Client] completes with an error when making a REST call, |
103 * this method will complete with the same error. | 140 * this method will complete with the same error. |
104 */ | 141 */ |
105 async.Future delete(core.String merchantId, core.String accountId) { | 142 async.Future delete(core.String merchantId, core.String accountId) { |
106 var _url = null; | 143 var _url = null; |
107 var _queryParams = new core.Map(); | 144 var _queryParams = new core.Map(); |
108 var _uploadMedia = null; | 145 var _uploadMedia = null; |
109 var _uploadOptions = null; | 146 var _uploadOptions = null; |
110 var _downloadOptions = common.DownloadOptions.Metadata; | 147 var _downloadOptions = commons.DownloadOptions.Metadata; |
111 var _body = null; | 148 var _body = null; |
112 | 149 |
113 if (merchantId == null) { | 150 if (merchantId == null) { |
114 throw new core.ArgumentError("Parameter merchantId is required."); | 151 throw new core.ArgumentError("Parameter merchantId is required."); |
115 } | 152 } |
116 if (accountId == null) { | 153 if (accountId == null) { |
117 throw new core.ArgumentError("Parameter accountId is required."); | 154 throw new core.ArgumentError("Parameter accountId is required."); |
118 } | 155 } |
119 | 156 |
120 _downloadOptions = null; | 157 _downloadOptions = null; |
121 | 158 |
122 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/accounts/' +
common_internal.Escaper.ecapeVariable('$accountId'); | 159 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons
.Escaper.ecapeVariable('$accountId'); |
123 | 160 |
124 var _response = _requester.request(_url, | 161 var _response = _requester.request(_url, |
125 "DELETE", | 162 "DELETE", |
126 body: _body, | 163 body: _body, |
127 queryParams: _queryParams, | 164 queryParams: _queryParams, |
128 uploadOptions: _uploadOptions, | 165 uploadOptions: _uploadOptions, |
129 uploadMedia: _uploadMedia, | 166 uploadMedia: _uploadMedia, |
130 downloadOptions: _downloadOptions); | 167 downloadOptions: _downloadOptions); |
131 return _response.then((data) => null); | 168 return _response.then((data) => null); |
132 } | 169 } |
133 | 170 |
134 /** | 171 /** |
135 * Retrieves a Merchant Center account. | 172 * Retrieves a Merchant Center account. |
136 * | 173 * |
137 * Request parameters: | 174 * Request parameters: |
138 * | 175 * |
139 * [merchantId] - The ID of the managing account. | 176 * [merchantId] - The ID of the managing account. |
140 * | 177 * |
141 * [accountId] - The ID of the account. | 178 * [accountId] - The ID of the account. |
142 * | 179 * |
143 * Completes with a [Account]. | 180 * Completes with a [Account]. |
144 * | 181 * |
145 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 182 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
146 * error. | 183 * error. |
147 * | 184 * |
148 * If the used [http.Client] completes with an error when making a REST call, | 185 * If the used [http.Client] completes with an error when making a REST call, |
149 * this method will complete with the same error. | 186 * this method will complete with the same error. |
150 */ | 187 */ |
151 async.Future<Account> get(core.String merchantId, core.String accountId) { | 188 async.Future<Account> get(core.String merchantId, core.String accountId) { |
152 var _url = null; | 189 var _url = null; |
153 var _queryParams = new core.Map(); | 190 var _queryParams = new core.Map(); |
154 var _uploadMedia = null; | 191 var _uploadMedia = null; |
155 var _uploadOptions = null; | 192 var _uploadOptions = null; |
156 var _downloadOptions = common.DownloadOptions.Metadata; | 193 var _downloadOptions = commons.DownloadOptions.Metadata; |
157 var _body = null; | 194 var _body = null; |
158 | 195 |
159 if (merchantId == null) { | 196 if (merchantId == null) { |
160 throw new core.ArgumentError("Parameter merchantId is required."); | 197 throw new core.ArgumentError("Parameter merchantId is required."); |
161 } | 198 } |
162 if (accountId == null) { | 199 if (accountId == null) { |
163 throw new core.ArgumentError("Parameter accountId is required."); | 200 throw new core.ArgumentError("Parameter accountId is required."); |
164 } | 201 } |
165 | 202 |
166 | 203 |
167 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/accounts/' +
common_internal.Escaper.ecapeVariable('$accountId'); | 204 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons
.Escaper.ecapeVariable('$accountId'); |
168 | 205 |
169 var _response = _requester.request(_url, | 206 var _response = _requester.request(_url, |
170 "GET", | 207 "GET", |
171 body: _body, | 208 body: _body, |
172 queryParams: _queryParams, | 209 queryParams: _queryParams, |
173 uploadOptions: _uploadOptions, | 210 uploadOptions: _uploadOptions, |
174 uploadMedia: _uploadMedia, | 211 uploadMedia: _uploadMedia, |
175 downloadOptions: _downloadOptions); | 212 downloadOptions: _downloadOptions); |
176 return _response.then((data) => new Account.fromJson(data)); | 213 return _response.then((data) => new Account.fromJson(data)); |
177 } | 214 } |
178 | 215 |
179 /** | 216 /** |
180 * Creates a Merchant Center sub-account. | 217 * Creates a Merchant Center sub-account. |
181 * | 218 * |
182 * [request] - The metadata request object. | 219 * [request] - The metadata request object. |
183 * | 220 * |
184 * Request parameters: | 221 * Request parameters: |
185 * | 222 * |
186 * [merchantId] - The ID of the managing account. | 223 * [merchantId] - The ID of the managing account. |
187 * | 224 * |
188 * Completes with a [Account]. | 225 * Completes with a [Account]. |
189 * | 226 * |
190 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 227 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
191 * error. | 228 * error. |
192 * | 229 * |
193 * If the used [http.Client] completes with an error when making a REST call, | 230 * If the used [http.Client] completes with an error when making a REST call, |
194 * this method will complete with the same error. | 231 * this method will complete with the same error. |
195 */ | 232 */ |
196 async.Future<Account> insert(Account request, core.String merchantId) { | 233 async.Future<Account> insert(Account request, core.String merchantId) { |
197 var _url = null; | 234 var _url = null; |
198 var _queryParams = new core.Map(); | 235 var _queryParams = new core.Map(); |
199 var _uploadMedia = null; | 236 var _uploadMedia = null; |
200 var _uploadOptions = null; | 237 var _uploadOptions = null; |
201 var _downloadOptions = common.DownloadOptions.Metadata; | 238 var _downloadOptions = commons.DownloadOptions.Metadata; |
202 var _body = null; | 239 var _body = null; |
203 | 240 |
204 if (request != null) { | 241 if (request != null) { |
205 _body = convert.JSON.encode((request).toJson()); | 242 _body = convert.JSON.encode((request).toJson()); |
206 } | 243 } |
207 if (merchantId == null) { | 244 if (merchantId == null) { |
208 throw new core.ArgumentError("Parameter merchantId is required."); | 245 throw new core.ArgumentError("Parameter merchantId is required."); |
209 } | 246 } |
210 | 247 |
211 | 248 |
212 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/accounts'; | 249 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts'; |
213 | 250 |
214 var _response = _requester.request(_url, | 251 var _response = _requester.request(_url, |
215 "POST", | 252 "POST", |
216 body: _body, | 253 body: _body, |
217 queryParams: _queryParams, | 254 queryParams: _queryParams, |
218 uploadOptions: _uploadOptions, | 255 uploadOptions: _uploadOptions, |
219 uploadMedia: _uploadMedia, | 256 uploadMedia: _uploadMedia, |
220 downloadOptions: _downloadOptions); | 257 downloadOptions: _downloadOptions); |
221 return _response.then((data) => new Account.fromJson(data)); | 258 return _response.then((data) => new Account.fromJson(data)); |
222 } | 259 } |
223 | 260 |
224 /** | 261 /** |
225 * Lists the sub-accounts in your Merchant Center account. | 262 * Lists the sub-accounts in your Merchant Center account. |
226 * | 263 * |
227 * Request parameters: | 264 * Request parameters: |
228 * | 265 * |
229 * [merchantId] - The ID of the managing account. | 266 * [merchantId] - The ID of the managing account. |
230 * | 267 * |
231 * [maxResults] - The maximum number of accounts to return in the response, | 268 * [maxResults] - The maximum number of accounts to return in the response, |
232 * used for paging. | 269 * used for paging. |
233 * | 270 * |
234 * [pageToken] - The token returned by the previous request. | 271 * [pageToken] - The token returned by the previous request. |
235 * | 272 * |
236 * Completes with a [AccountsListResponse]. | 273 * Completes with a [AccountsListResponse]. |
237 * | 274 * |
238 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 275 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
239 * error. | 276 * error. |
240 * | 277 * |
241 * If the used [http.Client] completes with an error when making a REST call, | 278 * If the used [http.Client] completes with an error when making a REST call, |
242 * this method will complete with the same error. | 279 * this method will complete with the same error. |
243 */ | 280 */ |
244 async.Future<AccountsListResponse> list(core.String merchantId, {core.int maxR
esults, core.String pageToken}) { | 281 async.Future<AccountsListResponse> list(core.String merchantId, {core.int maxR
esults, core.String pageToken}) { |
245 var _url = null; | 282 var _url = null; |
246 var _queryParams = new core.Map(); | 283 var _queryParams = new core.Map(); |
247 var _uploadMedia = null; | 284 var _uploadMedia = null; |
248 var _uploadOptions = null; | 285 var _uploadOptions = null; |
249 var _downloadOptions = common.DownloadOptions.Metadata; | 286 var _downloadOptions = commons.DownloadOptions.Metadata; |
250 var _body = null; | 287 var _body = null; |
251 | 288 |
252 if (merchantId == null) { | 289 if (merchantId == null) { |
253 throw new core.ArgumentError("Parameter merchantId is required."); | 290 throw new core.ArgumentError("Parameter merchantId is required."); |
254 } | 291 } |
255 if (maxResults != null) { | 292 if (maxResults != null) { |
256 _queryParams["maxResults"] = ["${maxResults}"]; | 293 _queryParams["maxResults"] = ["${maxResults}"]; |
257 } | 294 } |
258 if (pageToken != null) { | 295 if (pageToken != null) { |
259 _queryParams["pageToken"] = [pageToken]; | 296 _queryParams["pageToken"] = [pageToken]; |
260 } | 297 } |
261 | 298 |
262 | 299 |
263 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/accounts'; | 300 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts'; |
264 | 301 |
265 var _response = _requester.request(_url, | 302 var _response = _requester.request(_url, |
266 "GET", | 303 "GET", |
267 body: _body, | 304 body: _body, |
268 queryParams: _queryParams, | 305 queryParams: _queryParams, |
269 uploadOptions: _uploadOptions, | 306 uploadOptions: _uploadOptions, |
270 uploadMedia: _uploadMedia, | 307 uploadMedia: _uploadMedia, |
271 downloadOptions: _downloadOptions); | 308 downloadOptions: _downloadOptions); |
272 return _response.then((data) => new AccountsListResponse.fromJson(data)); | 309 return _response.then((data) => new AccountsListResponse.fromJson(data)); |
273 } | 310 } |
274 | 311 |
275 /** | 312 /** |
276 * Updates a Merchant Center account. This method supports patch semantics. | 313 * Updates a Merchant Center account. This method supports patch semantics. |
277 * | 314 * |
278 * [request] - The metadata request object. | 315 * [request] - The metadata request object. |
279 * | 316 * |
280 * Request parameters: | 317 * Request parameters: |
281 * | 318 * |
282 * [merchantId] - The ID of the managing account. | 319 * [merchantId] - The ID of the managing account. |
283 * | 320 * |
284 * [accountId] - The ID of the account. | 321 * [accountId] - The ID of the account. |
285 * | 322 * |
286 * Completes with a [Account]. | 323 * Completes with a [Account]. |
287 * | 324 * |
288 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 325 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
289 * error. | 326 * error. |
290 * | 327 * |
291 * If the used [http.Client] completes with an error when making a REST call, | 328 * If the used [http.Client] completes with an error when making a REST call, |
292 * this method will complete with the same error. | 329 * this method will complete with the same error. |
293 */ | 330 */ |
294 async.Future<Account> patch(Account request, core.String merchantId, core.Stri
ng accountId) { | 331 async.Future<Account> patch(Account request, core.String merchantId, core.Stri
ng accountId) { |
295 var _url = null; | 332 var _url = null; |
296 var _queryParams = new core.Map(); | 333 var _queryParams = new core.Map(); |
297 var _uploadMedia = null; | 334 var _uploadMedia = null; |
298 var _uploadOptions = null; | 335 var _uploadOptions = null; |
299 var _downloadOptions = common.DownloadOptions.Metadata; | 336 var _downloadOptions = commons.DownloadOptions.Metadata; |
300 var _body = null; | 337 var _body = null; |
301 | 338 |
302 if (request != null) { | 339 if (request != null) { |
303 _body = convert.JSON.encode((request).toJson()); | 340 _body = convert.JSON.encode((request).toJson()); |
304 } | 341 } |
305 if (merchantId == null) { | 342 if (merchantId == null) { |
306 throw new core.ArgumentError("Parameter merchantId is required."); | 343 throw new core.ArgumentError("Parameter merchantId is required."); |
307 } | 344 } |
308 if (accountId == null) { | 345 if (accountId == null) { |
309 throw new core.ArgumentError("Parameter accountId is required."); | 346 throw new core.ArgumentError("Parameter accountId is required."); |
310 } | 347 } |
311 | 348 |
312 | 349 |
313 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/accounts/' +
common_internal.Escaper.ecapeVariable('$accountId'); | 350 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons
.Escaper.ecapeVariable('$accountId'); |
314 | 351 |
315 var _response = _requester.request(_url, | 352 var _response = _requester.request(_url, |
316 "PATCH", | 353 "PATCH", |
317 body: _body, | 354 body: _body, |
318 queryParams: _queryParams, | 355 queryParams: _queryParams, |
319 uploadOptions: _uploadOptions, | 356 uploadOptions: _uploadOptions, |
320 uploadMedia: _uploadMedia, | 357 uploadMedia: _uploadMedia, |
321 downloadOptions: _downloadOptions); | 358 downloadOptions: _downloadOptions); |
322 return _response.then((data) => new Account.fromJson(data)); | 359 return _response.then((data) => new Account.fromJson(data)); |
323 } | 360 } |
324 | 361 |
325 /** | 362 /** |
326 * Updates a Merchant Center account. | 363 * Updates a Merchant Center account. |
327 * | 364 * |
328 * [request] - The metadata request object. | 365 * [request] - The metadata request object. |
329 * | 366 * |
330 * Request parameters: | 367 * Request parameters: |
331 * | 368 * |
332 * [merchantId] - The ID of the managing account. | 369 * [merchantId] - The ID of the managing account. |
333 * | 370 * |
334 * [accountId] - The ID of the account. | 371 * [accountId] - The ID of the account. |
335 * | 372 * |
336 * Completes with a [Account]. | 373 * Completes with a [Account]. |
337 * | 374 * |
338 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 375 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
339 * error. | 376 * error. |
340 * | 377 * |
341 * If the used [http.Client] completes with an error when making a REST call, | 378 * If the used [http.Client] completes with an error when making a REST call, |
342 * this method will complete with the same error. | 379 * this method will complete with the same error. |
343 */ | 380 */ |
344 async.Future<Account> update(Account request, core.String merchantId, core.Str
ing accountId) { | 381 async.Future<Account> update(Account request, core.String merchantId, core.Str
ing accountId) { |
345 var _url = null; | 382 var _url = null; |
346 var _queryParams = new core.Map(); | 383 var _queryParams = new core.Map(); |
347 var _uploadMedia = null; | 384 var _uploadMedia = null; |
348 var _uploadOptions = null; | 385 var _uploadOptions = null; |
349 var _downloadOptions = common.DownloadOptions.Metadata; | 386 var _downloadOptions = commons.DownloadOptions.Metadata; |
350 var _body = null; | 387 var _body = null; |
351 | 388 |
352 if (request != null) { | 389 if (request != null) { |
353 _body = convert.JSON.encode((request).toJson()); | 390 _body = convert.JSON.encode((request).toJson()); |
354 } | 391 } |
355 if (merchantId == null) { | 392 if (merchantId == null) { |
356 throw new core.ArgumentError("Parameter merchantId is required."); | 393 throw new core.ArgumentError("Parameter merchantId is required."); |
357 } | 394 } |
358 if (accountId == null) { | 395 if (accountId == null) { |
359 throw new core.ArgumentError("Parameter accountId is required."); | 396 throw new core.ArgumentError("Parameter accountId is required."); |
360 } | 397 } |
361 | 398 |
362 | 399 |
363 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/accounts/' +
common_internal.Escaper.ecapeVariable('$accountId'); | 400 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons
.Escaper.ecapeVariable('$accountId'); |
364 | 401 |
365 var _response = _requester.request(_url, | 402 var _response = _requester.request(_url, |
366 "PUT", | 403 "PUT", |
367 body: _body, | 404 body: _body, |
368 queryParams: _queryParams, | 405 queryParams: _queryParams, |
369 uploadOptions: _uploadOptions, | 406 uploadOptions: _uploadOptions, |
370 uploadMedia: _uploadMedia, | 407 uploadMedia: _uploadMedia, |
371 downloadOptions: _downloadOptions); | 408 downloadOptions: _downloadOptions); |
372 return _response.then((data) => new Account.fromJson(data)); | 409 return _response.then((data) => new Account.fromJson(data)); |
373 } | 410 } |
374 | 411 |
375 } | 412 } |
376 | 413 |
377 | 414 |
378 /** Not documented yet. */ | |
379 class AccountshippingResourceApi { | 415 class AccountshippingResourceApi { |
380 final common_internal.ApiRequester _requester; | 416 final commons.ApiRequester _requester; |
381 | 417 |
382 AccountshippingResourceApi(common_internal.ApiRequester client) : | 418 AccountshippingResourceApi(commons.ApiRequester client) : |
383 _requester = client; | 419 _requester = client; |
384 | 420 |
385 /** | 421 /** |
386 * Retrieves and updates the shipping settings of multiple accounts in a | 422 * Retrieves and updates the shipping settings of multiple accounts in a |
387 * single request. | 423 * single request. |
388 * | 424 * |
389 * [request] - The metadata request object. | 425 * [request] - The metadata request object. |
390 * | 426 * |
391 * Request parameters: | 427 * Request parameters: |
392 * | 428 * |
393 * Completes with a [AccountshippingCustomBatchResponse]. | 429 * Completes with a [AccountshippingCustomBatchResponse]. |
394 * | 430 * |
395 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 431 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
396 * error. | 432 * error. |
397 * | 433 * |
398 * If the used [http.Client] completes with an error when making a REST call, | 434 * If the used [http.Client] completes with an error when making a REST call, |
399 * this method will complete with the same error. | 435 * this method will complete with the same error. |
400 */ | 436 */ |
401 async.Future<AccountshippingCustomBatchResponse> custombatch(AccountshippingCu
stomBatchRequest request) { | 437 async.Future<AccountshippingCustomBatchResponse> custombatch(AccountshippingCu
stomBatchRequest request) { |
402 var _url = null; | 438 var _url = null; |
403 var _queryParams = new core.Map(); | 439 var _queryParams = new core.Map(); |
404 var _uploadMedia = null; | 440 var _uploadMedia = null; |
405 var _uploadOptions = null; | 441 var _uploadOptions = null; |
406 var _downloadOptions = common.DownloadOptions.Metadata; | 442 var _downloadOptions = commons.DownloadOptions.Metadata; |
407 var _body = null; | 443 var _body = null; |
408 | 444 |
409 if (request != null) { | 445 if (request != null) { |
410 _body = convert.JSON.encode((request).toJson()); | 446 _body = convert.JSON.encode((request).toJson()); |
411 } | 447 } |
412 | 448 |
413 | 449 |
414 _url = 'accountshipping/batch'; | 450 _url = 'accountshipping/batch'; |
415 | 451 |
416 var _response = _requester.request(_url, | 452 var _response = _requester.request(_url, |
(...skipping 11 matching lines...) Expand all Loading... |
428 * | 464 * |
429 * Request parameters: | 465 * Request parameters: |
430 * | 466 * |
431 * [merchantId] - The ID of the managing account. | 467 * [merchantId] - The ID of the managing account. |
432 * | 468 * |
433 * [accountId] - The ID of the account for which to get/update account | 469 * [accountId] - The ID of the account for which to get/update account |
434 * shipping settings. | 470 * shipping settings. |
435 * | 471 * |
436 * Completes with a [AccountShipping]. | 472 * Completes with a [AccountShipping]. |
437 * | 473 * |
438 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 474 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
439 * error. | 475 * error. |
440 * | 476 * |
441 * If the used [http.Client] completes with an error when making a REST call, | 477 * If the used [http.Client] completes with an error when making a REST call, |
442 * this method will complete with the same error. | 478 * this method will complete with the same error. |
443 */ | 479 */ |
444 async.Future<AccountShipping> get(core.String merchantId, core.String accountI
d) { | 480 async.Future<AccountShipping> get(core.String merchantId, core.String accountI
d) { |
445 var _url = null; | 481 var _url = null; |
446 var _queryParams = new core.Map(); | 482 var _queryParams = new core.Map(); |
447 var _uploadMedia = null; | 483 var _uploadMedia = null; |
448 var _uploadOptions = null; | 484 var _uploadOptions = null; |
449 var _downloadOptions = common.DownloadOptions.Metadata; | 485 var _downloadOptions = commons.DownloadOptions.Metadata; |
450 var _body = null; | 486 var _body = null; |
451 | 487 |
452 if (merchantId == null) { | 488 if (merchantId == null) { |
453 throw new core.ArgumentError("Parameter merchantId is required."); | 489 throw new core.ArgumentError("Parameter merchantId is required."); |
454 } | 490 } |
455 if (accountId == null) { | 491 if (accountId == null) { |
456 throw new core.ArgumentError("Parameter accountId is required."); | 492 throw new core.ArgumentError("Parameter accountId is required."); |
457 } | 493 } |
458 | 494 |
459 | 495 |
460 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/accountshipp
ing/' + common_internal.Escaper.ecapeVariable('$accountId'); | 496 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accountshipping/' +
commons.Escaper.ecapeVariable('$accountId'); |
461 | 497 |
462 var _response = _requester.request(_url, | 498 var _response = _requester.request(_url, |
463 "GET", | 499 "GET", |
464 body: _body, | 500 body: _body, |
465 queryParams: _queryParams, | 501 queryParams: _queryParams, |
466 uploadOptions: _uploadOptions, | 502 uploadOptions: _uploadOptions, |
467 uploadMedia: _uploadMedia, | 503 uploadMedia: _uploadMedia, |
468 downloadOptions: _downloadOptions); | 504 downloadOptions: _downloadOptions); |
469 return _response.then((data) => new AccountShipping.fromJson(data)); | 505 return _response.then((data) => new AccountShipping.fromJson(data)); |
470 } | 506 } |
471 | 507 |
472 /** | 508 /** |
473 * Lists the shipping settings of the sub-accounts in your Merchant Center | 509 * Lists the shipping settings of the sub-accounts in your Merchant Center |
474 * account. | 510 * account. |
475 * | 511 * |
476 * Request parameters: | 512 * Request parameters: |
477 * | 513 * |
478 * [merchantId] - The ID of the managing account. | 514 * [merchantId] - The ID of the managing account. |
479 * | 515 * |
480 * [maxResults] - The maximum number of shipping settings to return in the | 516 * [maxResults] - The maximum number of shipping settings to return in the |
481 * response, used for paging. | 517 * response, used for paging. |
482 * | 518 * |
483 * [pageToken] - The token returned by the previous request. | 519 * [pageToken] - The token returned by the previous request. |
484 * | 520 * |
485 * Completes with a [AccountshippingListResponse]. | 521 * Completes with a [AccountshippingListResponse]. |
486 * | 522 * |
487 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 523 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
488 * error. | 524 * error. |
489 * | 525 * |
490 * If the used [http.Client] completes with an error when making a REST call, | 526 * If the used [http.Client] completes with an error when making a REST call, |
491 * this method will complete with the same error. | 527 * this method will complete with the same error. |
492 */ | 528 */ |
493 async.Future<AccountshippingListResponse> list(core.String merchantId, {core.i
nt maxResults, core.String pageToken}) { | 529 async.Future<AccountshippingListResponse> list(core.String merchantId, {core.i
nt maxResults, core.String pageToken}) { |
494 var _url = null; | 530 var _url = null; |
495 var _queryParams = new core.Map(); | 531 var _queryParams = new core.Map(); |
496 var _uploadMedia = null; | 532 var _uploadMedia = null; |
497 var _uploadOptions = null; | 533 var _uploadOptions = null; |
498 var _downloadOptions = common.DownloadOptions.Metadata; | 534 var _downloadOptions = commons.DownloadOptions.Metadata; |
499 var _body = null; | 535 var _body = null; |
500 | 536 |
501 if (merchantId == null) { | 537 if (merchantId == null) { |
502 throw new core.ArgumentError("Parameter merchantId is required."); | 538 throw new core.ArgumentError("Parameter merchantId is required."); |
503 } | 539 } |
504 if (maxResults != null) { | 540 if (maxResults != null) { |
505 _queryParams["maxResults"] = ["${maxResults}"]; | 541 _queryParams["maxResults"] = ["${maxResults}"]; |
506 } | 542 } |
507 if (pageToken != null) { | 543 if (pageToken != null) { |
508 _queryParams["pageToken"] = [pageToken]; | 544 _queryParams["pageToken"] = [pageToken]; |
509 } | 545 } |
510 | 546 |
511 | 547 |
512 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/accountshipp
ing'; | 548 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accountshipping'; |
513 | 549 |
514 var _response = _requester.request(_url, | 550 var _response = _requester.request(_url, |
515 "GET", | 551 "GET", |
516 body: _body, | 552 body: _body, |
517 queryParams: _queryParams, | 553 queryParams: _queryParams, |
518 uploadOptions: _uploadOptions, | 554 uploadOptions: _uploadOptions, |
519 uploadMedia: _uploadMedia, | 555 uploadMedia: _uploadMedia, |
520 downloadOptions: _downloadOptions); | 556 downloadOptions: _downloadOptions); |
521 return _response.then((data) => new AccountshippingListResponse.fromJson(dat
a)); | 557 return _response.then((data) => new AccountshippingListResponse.fromJson(dat
a)); |
522 } | 558 } |
523 | 559 |
524 /** | 560 /** |
525 * Updates the shipping settings of the account. This method supports patch | 561 * Updates the shipping settings of the account. This method supports patch |
526 * semantics. | 562 * semantics. |
527 * | 563 * |
528 * [request] - The metadata request object. | 564 * [request] - The metadata request object. |
529 * | 565 * |
530 * Request parameters: | 566 * Request parameters: |
531 * | 567 * |
532 * [merchantId] - The ID of the managing account. | 568 * [merchantId] - The ID of the managing account. |
533 * | 569 * |
534 * [accountId] - The ID of the account for which to get/update account | 570 * [accountId] - The ID of the account for which to get/update account |
535 * shipping settings. | 571 * shipping settings. |
536 * | 572 * |
537 * Completes with a [AccountShipping]. | 573 * Completes with a [AccountShipping]. |
538 * | 574 * |
539 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 575 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
540 * error. | 576 * error. |
541 * | 577 * |
542 * If the used [http.Client] completes with an error when making a REST call, | 578 * If the used [http.Client] completes with an error when making a REST call, |
543 * this method will complete with the same error. | 579 * this method will complete with the same error. |
544 */ | 580 */ |
545 async.Future<AccountShipping> patch(AccountShipping request, core.String merch
antId, core.String accountId) { | 581 async.Future<AccountShipping> patch(AccountShipping request, core.String merch
antId, core.String accountId) { |
546 var _url = null; | 582 var _url = null; |
547 var _queryParams = new core.Map(); | 583 var _queryParams = new core.Map(); |
548 var _uploadMedia = null; | 584 var _uploadMedia = null; |
549 var _uploadOptions = null; | 585 var _uploadOptions = null; |
550 var _downloadOptions = common.DownloadOptions.Metadata; | 586 var _downloadOptions = commons.DownloadOptions.Metadata; |
551 var _body = null; | 587 var _body = null; |
552 | 588 |
553 if (request != null) { | 589 if (request != null) { |
554 _body = convert.JSON.encode((request).toJson()); | 590 _body = convert.JSON.encode((request).toJson()); |
555 } | 591 } |
556 if (merchantId == null) { | 592 if (merchantId == null) { |
557 throw new core.ArgumentError("Parameter merchantId is required."); | 593 throw new core.ArgumentError("Parameter merchantId is required."); |
558 } | 594 } |
559 if (accountId == null) { | 595 if (accountId == null) { |
560 throw new core.ArgumentError("Parameter accountId is required."); | 596 throw new core.ArgumentError("Parameter accountId is required."); |
561 } | 597 } |
562 | 598 |
563 | 599 |
564 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/accountshipp
ing/' + common_internal.Escaper.ecapeVariable('$accountId'); | 600 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accountshipping/' +
commons.Escaper.ecapeVariable('$accountId'); |
565 | 601 |
566 var _response = _requester.request(_url, | 602 var _response = _requester.request(_url, |
567 "PATCH", | 603 "PATCH", |
568 body: _body, | 604 body: _body, |
569 queryParams: _queryParams, | 605 queryParams: _queryParams, |
570 uploadOptions: _uploadOptions, | 606 uploadOptions: _uploadOptions, |
571 uploadMedia: _uploadMedia, | 607 uploadMedia: _uploadMedia, |
572 downloadOptions: _downloadOptions); | 608 downloadOptions: _downloadOptions); |
573 return _response.then((data) => new AccountShipping.fromJson(data)); | 609 return _response.then((data) => new AccountShipping.fromJson(data)); |
574 } | 610 } |
575 | 611 |
576 /** | 612 /** |
577 * Updates the shipping settings of the account. | 613 * Updates the shipping settings of the account. |
578 * | 614 * |
579 * [request] - The metadata request object. | 615 * [request] - The metadata request object. |
580 * | 616 * |
581 * Request parameters: | 617 * Request parameters: |
582 * | 618 * |
583 * [merchantId] - The ID of the managing account. | 619 * [merchantId] - The ID of the managing account. |
584 * | 620 * |
585 * [accountId] - The ID of the account for which to get/update account | 621 * [accountId] - The ID of the account for which to get/update account |
586 * shipping settings. | 622 * shipping settings. |
587 * | 623 * |
588 * Completes with a [AccountShipping]. | 624 * Completes with a [AccountShipping]. |
589 * | 625 * |
590 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 626 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
591 * error. | 627 * error. |
592 * | 628 * |
593 * If the used [http.Client] completes with an error when making a REST call, | 629 * If the used [http.Client] completes with an error when making a REST call, |
594 * this method will complete with the same error. | 630 * this method will complete with the same error. |
595 */ | 631 */ |
596 async.Future<AccountShipping> update(AccountShipping request, core.String merc
hantId, core.String accountId) { | 632 async.Future<AccountShipping> update(AccountShipping request, core.String merc
hantId, core.String accountId) { |
597 var _url = null; | 633 var _url = null; |
598 var _queryParams = new core.Map(); | 634 var _queryParams = new core.Map(); |
599 var _uploadMedia = null; | 635 var _uploadMedia = null; |
600 var _uploadOptions = null; | 636 var _uploadOptions = null; |
601 var _downloadOptions = common.DownloadOptions.Metadata; | 637 var _downloadOptions = commons.DownloadOptions.Metadata; |
602 var _body = null; | 638 var _body = null; |
603 | 639 |
604 if (request != null) { | 640 if (request != null) { |
605 _body = convert.JSON.encode((request).toJson()); | 641 _body = convert.JSON.encode((request).toJson()); |
606 } | 642 } |
607 if (merchantId == null) { | 643 if (merchantId == null) { |
608 throw new core.ArgumentError("Parameter merchantId is required."); | 644 throw new core.ArgumentError("Parameter merchantId is required."); |
609 } | 645 } |
610 if (accountId == null) { | 646 if (accountId == null) { |
611 throw new core.ArgumentError("Parameter accountId is required."); | 647 throw new core.ArgumentError("Parameter accountId is required."); |
612 } | 648 } |
613 | 649 |
614 | 650 |
615 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/accountshipp
ing/' + common_internal.Escaper.ecapeVariable('$accountId'); | 651 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accountshipping/' +
commons.Escaper.ecapeVariable('$accountId'); |
616 | 652 |
617 var _response = _requester.request(_url, | 653 var _response = _requester.request(_url, |
618 "PUT", | 654 "PUT", |
619 body: _body, | 655 body: _body, |
620 queryParams: _queryParams, | 656 queryParams: _queryParams, |
621 uploadOptions: _uploadOptions, | 657 uploadOptions: _uploadOptions, |
622 uploadMedia: _uploadMedia, | 658 uploadMedia: _uploadMedia, |
623 downloadOptions: _downloadOptions); | 659 downloadOptions: _downloadOptions); |
624 return _response.then((data) => new AccountShipping.fromJson(data)); | 660 return _response.then((data) => new AccountShipping.fromJson(data)); |
625 } | 661 } |
626 | 662 |
627 } | 663 } |
628 | 664 |
629 | 665 |
630 /** Not documented yet. */ | |
631 class AccountstatusesResourceApi { | 666 class AccountstatusesResourceApi { |
632 final common_internal.ApiRequester _requester; | 667 final commons.ApiRequester _requester; |
633 | 668 |
634 AccountstatusesResourceApi(common_internal.ApiRequester client) : | 669 AccountstatusesResourceApi(commons.ApiRequester client) : |
635 _requester = client; | 670 _requester = client; |
636 | 671 |
637 /** | 672 /** |
638 * Not documented yet. | |
639 * | |
640 * [request] - The metadata request object. | 673 * [request] - The metadata request object. |
641 * | 674 * |
642 * Request parameters: | 675 * Request parameters: |
643 * | 676 * |
644 * Completes with a [AccountstatusesCustomBatchResponse]. | 677 * Completes with a [AccountstatusesCustomBatchResponse]. |
645 * | 678 * |
646 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 679 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
647 * error. | 680 * error. |
648 * | 681 * |
649 * If the used [http.Client] completes with an error when making a REST call, | 682 * If the used [http.Client] completes with an error when making a REST call, |
650 * this method will complete with the same error. | 683 * this method will complete with the same error. |
651 */ | 684 */ |
652 async.Future<AccountstatusesCustomBatchResponse> custombatch(AccountstatusesCu
stomBatchRequest request) { | 685 async.Future<AccountstatusesCustomBatchResponse> custombatch(AccountstatusesCu
stomBatchRequest request) { |
653 var _url = null; | 686 var _url = null; |
654 var _queryParams = new core.Map(); | 687 var _queryParams = new core.Map(); |
655 var _uploadMedia = null; | 688 var _uploadMedia = null; |
656 var _uploadOptions = null; | 689 var _uploadOptions = null; |
657 var _downloadOptions = common.DownloadOptions.Metadata; | 690 var _downloadOptions = commons.DownloadOptions.Metadata; |
658 var _body = null; | 691 var _body = null; |
659 | 692 |
660 if (request != null) { | 693 if (request != null) { |
661 _body = convert.JSON.encode((request).toJson()); | 694 _body = convert.JSON.encode((request).toJson()); |
662 } | 695 } |
663 | 696 |
664 | 697 |
665 _url = 'accountstatuses/batch'; | 698 _url = 'accountstatuses/batch'; |
666 | 699 |
667 var _response = _requester.request(_url, | 700 var _response = _requester.request(_url, |
(...skipping 10 matching lines...) Expand all Loading... |
678 * Retrieves the status of a Merchant Center account. | 711 * Retrieves the status of a Merchant Center account. |
679 * | 712 * |
680 * Request parameters: | 713 * Request parameters: |
681 * | 714 * |
682 * [merchantId] - The ID of the managing account. | 715 * [merchantId] - The ID of the managing account. |
683 * | 716 * |
684 * [accountId] - The ID of the account. | 717 * [accountId] - The ID of the account. |
685 * | 718 * |
686 * Completes with a [AccountStatus]. | 719 * Completes with a [AccountStatus]. |
687 * | 720 * |
688 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 721 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
689 * error. | 722 * error. |
690 * | 723 * |
691 * If the used [http.Client] completes with an error when making a REST call, | 724 * If the used [http.Client] completes with an error when making a REST call, |
692 * this method will complete with the same error. | 725 * this method will complete with the same error. |
693 */ | 726 */ |
694 async.Future<AccountStatus> get(core.String merchantId, core.String accountId)
{ | 727 async.Future<AccountStatus> get(core.String merchantId, core.String accountId)
{ |
695 var _url = null; | 728 var _url = null; |
696 var _queryParams = new core.Map(); | 729 var _queryParams = new core.Map(); |
697 var _uploadMedia = null; | 730 var _uploadMedia = null; |
698 var _uploadOptions = null; | 731 var _uploadOptions = null; |
699 var _downloadOptions = common.DownloadOptions.Metadata; | 732 var _downloadOptions = commons.DownloadOptions.Metadata; |
700 var _body = null; | 733 var _body = null; |
701 | 734 |
702 if (merchantId == null) { | 735 if (merchantId == null) { |
703 throw new core.ArgumentError("Parameter merchantId is required."); | 736 throw new core.ArgumentError("Parameter merchantId is required."); |
704 } | 737 } |
705 if (accountId == null) { | 738 if (accountId == null) { |
706 throw new core.ArgumentError("Parameter accountId is required."); | 739 throw new core.ArgumentError("Parameter accountId is required."); |
707 } | 740 } |
708 | 741 |
709 | 742 |
710 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/accountstatu
ses/' + common_internal.Escaper.ecapeVariable('$accountId'); | 743 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accountstatuses/' +
commons.Escaper.ecapeVariable('$accountId'); |
711 | 744 |
712 var _response = _requester.request(_url, | 745 var _response = _requester.request(_url, |
713 "GET", | 746 "GET", |
714 body: _body, | 747 body: _body, |
715 queryParams: _queryParams, | 748 queryParams: _queryParams, |
716 uploadOptions: _uploadOptions, | 749 uploadOptions: _uploadOptions, |
717 uploadMedia: _uploadMedia, | 750 uploadMedia: _uploadMedia, |
718 downloadOptions: _downloadOptions); | 751 downloadOptions: _downloadOptions); |
719 return _response.then((data) => new AccountStatus.fromJson(data)); | 752 return _response.then((data) => new AccountStatus.fromJson(data)); |
720 } | 753 } |
721 | 754 |
722 /** | 755 /** |
723 * Lists the statuses of the sub-accounts in your Merchant Center account. | 756 * Lists the statuses of the sub-accounts in your Merchant Center account. |
724 * | 757 * |
725 * Request parameters: | 758 * Request parameters: |
726 * | 759 * |
727 * [merchantId] - The ID of the managing account. | 760 * [merchantId] - The ID of the managing account. |
728 * | 761 * |
729 * [maxResults] - The maximum number of account statuses to return in the | 762 * [maxResults] - The maximum number of account statuses to return in the |
730 * response, used for paging. | 763 * response, used for paging. |
731 * | 764 * |
732 * [pageToken] - The token returned by the previous request. | 765 * [pageToken] - The token returned by the previous request. |
733 * | 766 * |
734 * Completes with a [AccountstatusesListResponse]. | 767 * Completes with a [AccountstatusesListResponse]. |
735 * | 768 * |
736 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 769 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
737 * error. | 770 * error. |
738 * | 771 * |
739 * If the used [http.Client] completes with an error when making a REST call, | 772 * If the used [http.Client] completes with an error when making a REST call, |
740 * this method will complete with the same error. | 773 * this method will complete with the same error. |
741 */ | 774 */ |
742 async.Future<AccountstatusesListResponse> list(core.String merchantId, {core.i
nt maxResults, core.String pageToken}) { | 775 async.Future<AccountstatusesListResponse> list(core.String merchantId, {core.i
nt maxResults, core.String pageToken}) { |
743 var _url = null; | 776 var _url = null; |
744 var _queryParams = new core.Map(); | 777 var _queryParams = new core.Map(); |
745 var _uploadMedia = null; | 778 var _uploadMedia = null; |
746 var _uploadOptions = null; | 779 var _uploadOptions = null; |
747 var _downloadOptions = common.DownloadOptions.Metadata; | 780 var _downloadOptions = commons.DownloadOptions.Metadata; |
748 var _body = null; | 781 var _body = null; |
749 | 782 |
750 if (merchantId == null) { | 783 if (merchantId == null) { |
751 throw new core.ArgumentError("Parameter merchantId is required."); | 784 throw new core.ArgumentError("Parameter merchantId is required."); |
752 } | 785 } |
753 if (maxResults != null) { | 786 if (maxResults != null) { |
754 _queryParams["maxResults"] = ["${maxResults}"]; | 787 _queryParams["maxResults"] = ["${maxResults}"]; |
755 } | 788 } |
756 if (pageToken != null) { | 789 if (pageToken != null) { |
757 _queryParams["pageToken"] = [pageToken]; | 790 _queryParams["pageToken"] = [pageToken]; |
758 } | 791 } |
759 | 792 |
760 | 793 |
761 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/accountstatu
ses'; | 794 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accountstatuses'; |
762 | 795 |
763 var _response = _requester.request(_url, | 796 var _response = _requester.request(_url, |
764 "GET", | 797 "GET", |
765 body: _body, | 798 body: _body, |
766 queryParams: _queryParams, | 799 queryParams: _queryParams, |
767 uploadOptions: _uploadOptions, | 800 uploadOptions: _uploadOptions, |
768 uploadMedia: _uploadMedia, | 801 uploadMedia: _uploadMedia, |
769 downloadOptions: _downloadOptions); | 802 downloadOptions: _downloadOptions); |
770 return _response.then((data) => new AccountstatusesListResponse.fromJson(dat
a)); | 803 return _response.then((data) => new AccountstatusesListResponse.fromJson(dat
a)); |
771 } | 804 } |
772 | 805 |
773 } | 806 } |
774 | 807 |
775 | 808 |
776 /** Not documented yet. */ | |
777 class AccounttaxResourceApi { | 809 class AccounttaxResourceApi { |
778 final common_internal.ApiRequester _requester; | 810 final commons.ApiRequester _requester; |
779 | 811 |
780 AccounttaxResourceApi(common_internal.ApiRequester client) : | 812 AccounttaxResourceApi(commons.ApiRequester client) : |
781 _requester = client; | 813 _requester = client; |
782 | 814 |
783 /** | 815 /** |
784 * Retrieves and updates tax settings of multiple accounts in a single | 816 * Retrieves and updates tax settings of multiple accounts in a single |
785 * request. | 817 * request. |
786 * | 818 * |
787 * [request] - The metadata request object. | 819 * [request] - The metadata request object. |
788 * | 820 * |
789 * Request parameters: | 821 * Request parameters: |
790 * | 822 * |
791 * Completes with a [AccounttaxCustomBatchResponse]. | 823 * Completes with a [AccounttaxCustomBatchResponse]. |
792 * | 824 * |
793 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 825 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
794 * error. | 826 * error. |
795 * | 827 * |
796 * If the used [http.Client] completes with an error when making a REST call, | 828 * If the used [http.Client] completes with an error when making a REST call, |
797 * this method will complete with the same error. | 829 * this method will complete with the same error. |
798 */ | 830 */ |
799 async.Future<AccounttaxCustomBatchResponse> custombatch(AccounttaxCustomBatchR
equest request) { | 831 async.Future<AccounttaxCustomBatchResponse> custombatch(AccounttaxCustomBatchR
equest request) { |
800 var _url = null; | 832 var _url = null; |
801 var _queryParams = new core.Map(); | 833 var _queryParams = new core.Map(); |
802 var _uploadMedia = null; | 834 var _uploadMedia = null; |
803 var _uploadOptions = null; | 835 var _uploadOptions = null; |
804 var _downloadOptions = common.DownloadOptions.Metadata; | 836 var _downloadOptions = commons.DownloadOptions.Metadata; |
805 var _body = null; | 837 var _body = null; |
806 | 838 |
807 if (request != null) { | 839 if (request != null) { |
808 _body = convert.JSON.encode((request).toJson()); | 840 _body = convert.JSON.encode((request).toJson()); |
809 } | 841 } |
810 | 842 |
811 | 843 |
812 _url = 'accounttax/batch'; | 844 _url = 'accounttax/batch'; |
813 | 845 |
814 var _response = _requester.request(_url, | 846 var _response = _requester.request(_url, |
(...skipping 11 matching lines...) Expand all Loading... |
826 * | 858 * |
827 * Request parameters: | 859 * Request parameters: |
828 * | 860 * |
829 * [merchantId] - The ID of the managing account. | 861 * [merchantId] - The ID of the managing account. |
830 * | 862 * |
831 * [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 |
832 * settings. | 864 * settings. |
833 * | 865 * |
834 * Completes with a [AccountTax]. | 866 * Completes with a [AccountTax]. |
835 * | 867 * |
836 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 868 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
837 * error. | 869 * error. |
838 * | 870 * |
839 * If the used [http.Client] completes with an error when making a REST call, | 871 * If the used [http.Client] completes with an error when making a REST call, |
840 * this method will complete with the same error. | 872 * this method will complete with the same error. |
841 */ | 873 */ |
842 async.Future<AccountTax> get(core.String merchantId, core.String accountId) { | 874 async.Future<AccountTax> get(core.String merchantId, core.String accountId) { |
843 var _url = null; | 875 var _url = null; |
844 var _queryParams = new core.Map(); | 876 var _queryParams = new core.Map(); |
845 var _uploadMedia = null; | 877 var _uploadMedia = null; |
846 var _uploadOptions = null; | 878 var _uploadOptions = null; |
847 var _downloadOptions = common.DownloadOptions.Metadata; | 879 var _downloadOptions = commons.DownloadOptions.Metadata; |
848 var _body = null; | 880 var _body = null; |
849 | 881 |
850 if (merchantId == null) { | 882 if (merchantId == null) { |
851 throw new core.ArgumentError("Parameter merchantId is required."); | 883 throw new core.ArgumentError("Parameter merchantId is required."); |
852 } | 884 } |
853 if (accountId == null) { | 885 if (accountId == null) { |
854 throw new core.ArgumentError("Parameter accountId is required."); | 886 throw new core.ArgumentError("Parameter accountId is required."); |
855 } | 887 } |
856 | 888 |
857 | 889 |
858 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/accounttax/'
+ common_internal.Escaper.ecapeVariable('$accountId'); | 890 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounttax/' + commo
ns.Escaper.ecapeVariable('$accountId'); |
859 | 891 |
860 var _response = _requester.request(_url, | 892 var _response = _requester.request(_url, |
861 "GET", | 893 "GET", |
862 body: _body, | 894 body: _body, |
863 queryParams: _queryParams, | 895 queryParams: _queryParams, |
864 uploadOptions: _uploadOptions, | 896 uploadOptions: _uploadOptions, |
865 uploadMedia: _uploadMedia, | 897 uploadMedia: _uploadMedia, |
866 downloadOptions: _downloadOptions); | 898 downloadOptions: _downloadOptions); |
867 return _response.then((data) => new AccountTax.fromJson(data)); | 899 return _response.then((data) => new AccountTax.fromJson(data)); |
868 } | 900 } |
869 | 901 |
870 /** | 902 /** |
871 * Lists the tax settings of the sub-accounts in your Merchant Center account. | 903 * Lists the tax settings of the sub-accounts in your Merchant Center account. |
872 * | 904 * |
873 * Request parameters: | 905 * Request parameters: |
874 * | 906 * |
875 * [merchantId] - The ID of the managing account. | 907 * [merchantId] - The ID of the managing account. |
876 * | 908 * |
877 * [maxResults] - The maximum number of tax settings to return in the | 909 * [maxResults] - The maximum number of tax settings to return in the |
878 * response, used for paging. | 910 * response, used for paging. |
879 * | 911 * |
880 * [pageToken] - The token returned by the previous request. | 912 * [pageToken] - The token returned by the previous request. |
881 * | 913 * |
882 * Completes with a [AccounttaxListResponse]. | 914 * Completes with a [AccounttaxListResponse]. |
883 * | 915 * |
884 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 916 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
885 * error. | 917 * error. |
886 * | 918 * |
887 * If the used [http.Client] completes with an error when making a REST call, | 919 * If the used [http.Client] completes with an error when making a REST call, |
888 * this method will complete with the same error. | 920 * this method will complete with the same error. |
889 */ | 921 */ |
890 async.Future<AccounttaxListResponse> list(core.String merchantId, {core.int ma
xResults, core.String pageToken}) { | 922 async.Future<AccounttaxListResponse> list(core.String merchantId, {core.int ma
xResults, core.String pageToken}) { |
891 var _url = null; | 923 var _url = null; |
892 var _queryParams = new core.Map(); | 924 var _queryParams = new core.Map(); |
893 var _uploadMedia = null; | 925 var _uploadMedia = null; |
894 var _uploadOptions = null; | 926 var _uploadOptions = null; |
895 var _downloadOptions = common.DownloadOptions.Metadata; | 927 var _downloadOptions = commons.DownloadOptions.Metadata; |
896 var _body = null; | 928 var _body = null; |
897 | 929 |
898 if (merchantId == null) { | 930 if (merchantId == null) { |
899 throw new core.ArgumentError("Parameter merchantId is required."); | 931 throw new core.ArgumentError("Parameter merchantId is required."); |
900 } | 932 } |
901 if (maxResults != null) { | 933 if (maxResults != null) { |
902 _queryParams["maxResults"] = ["${maxResults}"]; | 934 _queryParams["maxResults"] = ["${maxResults}"]; |
903 } | 935 } |
904 if (pageToken != null) { | 936 if (pageToken != null) { |
905 _queryParams["pageToken"] = [pageToken]; | 937 _queryParams["pageToken"] = [pageToken]; |
906 } | 938 } |
907 | 939 |
908 | 940 |
909 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/accounttax'; | 941 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounttax'; |
910 | 942 |
911 var _response = _requester.request(_url, | 943 var _response = _requester.request(_url, |
912 "GET", | 944 "GET", |
913 body: _body, | 945 body: _body, |
914 queryParams: _queryParams, | 946 queryParams: _queryParams, |
915 uploadOptions: _uploadOptions, | 947 uploadOptions: _uploadOptions, |
916 uploadMedia: _uploadMedia, | 948 uploadMedia: _uploadMedia, |
917 downloadOptions: _downloadOptions); | 949 downloadOptions: _downloadOptions); |
918 return _response.then((data) => new AccounttaxListResponse.fromJson(data)); | 950 return _response.then((data) => new AccounttaxListResponse.fromJson(data)); |
919 } | 951 } |
920 | 952 |
921 /** | 953 /** |
922 * Updates the tax settings of the account. This method supports patch | 954 * Updates the tax settings of the account. This method supports patch |
923 * semantics. | 955 * semantics. |
924 * | 956 * |
925 * [request] - The metadata request object. | 957 * [request] - The metadata request object. |
926 * | 958 * |
927 * Request parameters: | 959 * Request parameters: |
928 * | 960 * |
929 * [merchantId] - The ID of the managing account. | 961 * [merchantId] - The ID of the managing account. |
930 * | 962 * |
931 * [accountId] - The ID of the account for which to get/update account tax | 963 * [accountId] - The ID of the account for which to get/update account tax |
932 * settings. | 964 * settings. |
933 * | 965 * |
934 * Completes with a [AccountTax]. | 966 * Completes with a [AccountTax]. |
935 * | 967 * |
936 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 968 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
937 * error. | 969 * error. |
938 * | 970 * |
939 * If the used [http.Client] completes with an error when making a REST call, | 971 * If the used [http.Client] completes with an error when making a REST call, |
940 * this method will complete with the same error. | 972 * this method will complete with the same error. |
941 */ | 973 */ |
942 async.Future<AccountTax> patch(AccountTax request, core.String merchantId, cor
e.String accountId) { | 974 async.Future<AccountTax> patch(AccountTax request, core.String merchantId, cor
e.String accountId) { |
943 var _url = null; | 975 var _url = null; |
944 var _queryParams = new core.Map(); | 976 var _queryParams = new core.Map(); |
945 var _uploadMedia = null; | 977 var _uploadMedia = null; |
946 var _uploadOptions = null; | 978 var _uploadOptions = null; |
947 var _downloadOptions = common.DownloadOptions.Metadata; | 979 var _downloadOptions = commons.DownloadOptions.Metadata; |
948 var _body = null; | 980 var _body = null; |
949 | 981 |
950 if (request != null) { | 982 if (request != null) { |
951 _body = convert.JSON.encode((request).toJson()); | 983 _body = convert.JSON.encode((request).toJson()); |
952 } | 984 } |
953 if (merchantId == null) { | 985 if (merchantId == null) { |
954 throw new core.ArgumentError("Parameter merchantId is required."); | 986 throw new core.ArgumentError("Parameter merchantId is required."); |
955 } | 987 } |
956 if (accountId == null) { | 988 if (accountId == null) { |
957 throw new core.ArgumentError("Parameter accountId is required."); | 989 throw new core.ArgumentError("Parameter accountId is required."); |
958 } | 990 } |
959 | 991 |
960 | 992 |
961 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/accounttax/'
+ common_internal.Escaper.ecapeVariable('$accountId'); | 993 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounttax/' + commo
ns.Escaper.ecapeVariable('$accountId'); |
962 | 994 |
963 var _response = _requester.request(_url, | 995 var _response = _requester.request(_url, |
964 "PATCH", | 996 "PATCH", |
965 body: _body, | 997 body: _body, |
966 queryParams: _queryParams, | 998 queryParams: _queryParams, |
967 uploadOptions: _uploadOptions, | 999 uploadOptions: _uploadOptions, |
968 uploadMedia: _uploadMedia, | 1000 uploadMedia: _uploadMedia, |
969 downloadOptions: _downloadOptions); | 1001 downloadOptions: _downloadOptions); |
970 return _response.then((data) => new AccountTax.fromJson(data)); | 1002 return _response.then((data) => new AccountTax.fromJson(data)); |
971 } | 1003 } |
972 | 1004 |
973 /** | 1005 /** |
974 * Updates the tax settings of the account. | 1006 * Updates the tax settings of the account. |
975 * | 1007 * |
976 * [request] - The metadata request object. | 1008 * [request] - The metadata request object. |
977 * | 1009 * |
978 * Request parameters: | 1010 * Request parameters: |
979 * | 1011 * |
980 * [merchantId] - The ID of the managing account. | 1012 * [merchantId] - The ID of the managing account. |
981 * | 1013 * |
982 * [accountId] - The ID of the account for which to get/update account tax | 1014 * [accountId] - The ID of the account for which to get/update account tax |
983 * settings. | 1015 * settings. |
984 * | 1016 * |
985 * Completes with a [AccountTax]. | 1017 * Completes with a [AccountTax]. |
986 * | 1018 * |
987 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1019 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
988 * error. | 1020 * error. |
989 * | 1021 * |
990 * If the used [http.Client] completes with an error when making a REST call, | 1022 * If the used [http.Client] completes with an error when making a REST call, |
991 * this method will complete with the same error. | 1023 * this method will complete with the same error. |
992 */ | 1024 */ |
993 async.Future<AccountTax> update(AccountTax request, core.String merchantId, co
re.String accountId) { | 1025 async.Future<AccountTax> update(AccountTax request, core.String merchantId, co
re.String accountId) { |
994 var _url = null; | 1026 var _url = null; |
995 var _queryParams = new core.Map(); | 1027 var _queryParams = new core.Map(); |
996 var _uploadMedia = null; | 1028 var _uploadMedia = null; |
997 var _uploadOptions = null; | 1029 var _uploadOptions = null; |
998 var _downloadOptions = common.DownloadOptions.Metadata; | 1030 var _downloadOptions = commons.DownloadOptions.Metadata; |
999 var _body = null; | 1031 var _body = null; |
1000 | 1032 |
1001 if (request != null) { | 1033 if (request != null) { |
1002 _body = convert.JSON.encode((request).toJson()); | 1034 _body = convert.JSON.encode((request).toJson()); |
1003 } | 1035 } |
1004 if (merchantId == null) { | 1036 if (merchantId == null) { |
1005 throw new core.ArgumentError("Parameter merchantId is required."); | 1037 throw new core.ArgumentError("Parameter merchantId is required."); |
1006 } | 1038 } |
1007 if (accountId == null) { | 1039 if (accountId == null) { |
1008 throw new core.ArgumentError("Parameter accountId is required."); | 1040 throw new core.ArgumentError("Parameter accountId is required."); |
1009 } | 1041 } |
1010 | 1042 |
1011 | 1043 |
1012 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/accounttax/'
+ common_internal.Escaper.ecapeVariable('$accountId'); | 1044 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounttax/' + commo
ns.Escaper.ecapeVariable('$accountId'); |
1013 | 1045 |
1014 var _response = _requester.request(_url, | 1046 var _response = _requester.request(_url, |
1015 "PUT", | 1047 "PUT", |
1016 body: _body, | 1048 body: _body, |
1017 queryParams: _queryParams, | 1049 queryParams: _queryParams, |
1018 uploadOptions: _uploadOptions, | 1050 uploadOptions: _uploadOptions, |
1019 uploadMedia: _uploadMedia, | 1051 uploadMedia: _uploadMedia, |
1020 downloadOptions: _downloadOptions); | 1052 downloadOptions: _downloadOptions); |
1021 return _response.then((data) => new AccountTax.fromJson(data)); | 1053 return _response.then((data) => new AccountTax.fromJson(data)); |
1022 } | 1054 } |
1023 | 1055 |
1024 } | 1056 } |
1025 | 1057 |
1026 | 1058 |
1027 /** Not documented yet. */ | |
1028 class DatafeedsResourceApi { | 1059 class DatafeedsResourceApi { |
1029 final common_internal.ApiRequester _requester; | 1060 final commons.ApiRequester _requester; |
1030 | 1061 |
1031 DatafeedsResourceApi(common_internal.ApiRequester client) : | 1062 DatafeedsResourceApi(commons.ApiRequester client) : |
1032 _requester = client; | 1063 _requester = client; |
1033 | 1064 |
1034 /** | 1065 /** |
1035 * Not documented yet. | |
1036 * | |
1037 * [request] - The metadata request object. | 1066 * [request] - The metadata request object. |
1038 * | 1067 * |
1039 * Request parameters: | 1068 * Request parameters: |
1040 * | 1069 * |
1041 * Completes with a [DatafeedsCustomBatchResponse]. | 1070 * Completes with a [DatafeedsCustomBatchResponse]. |
1042 * | 1071 * |
1043 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1072 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1044 * error. | 1073 * error. |
1045 * | 1074 * |
1046 * If the used [http.Client] completes with an error when making a REST call, | 1075 * If the used [http.Client] completes with an error when making a REST call, |
1047 * this method will complete with the same error. | 1076 * this method will complete with the same error. |
1048 */ | 1077 */ |
1049 async.Future<DatafeedsCustomBatchResponse> custombatch(DatafeedsCustomBatchReq
uest request) { | 1078 async.Future<DatafeedsCustomBatchResponse> custombatch(DatafeedsCustomBatchReq
uest request) { |
1050 var _url = null; | 1079 var _url = null; |
1051 var _queryParams = new core.Map(); | 1080 var _queryParams = new core.Map(); |
1052 var _uploadMedia = null; | 1081 var _uploadMedia = null; |
1053 var _uploadOptions = null; | 1082 var _uploadOptions = null; |
1054 var _downloadOptions = common.DownloadOptions.Metadata; | 1083 var _downloadOptions = commons.DownloadOptions.Metadata; |
1055 var _body = null; | 1084 var _body = null; |
1056 | 1085 |
1057 if (request != null) { | 1086 if (request != null) { |
1058 _body = convert.JSON.encode((request).toJson()); | 1087 _body = convert.JSON.encode((request).toJson()); |
1059 } | 1088 } |
1060 | 1089 |
1061 | 1090 |
1062 _url = 'datafeeds/batch'; | 1091 _url = 'datafeeds/batch'; |
1063 | 1092 |
1064 var _response = _requester.request(_url, | 1093 var _response = _requester.request(_url, |
1065 "POST", | 1094 "POST", |
1066 body: _body, | 1095 body: _body, |
1067 queryParams: _queryParams, | 1096 queryParams: _queryParams, |
1068 uploadOptions: _uploadOptions, | 1097 uploadOptions: _uploadOptions, |
1069 uploadMedia: _uploadMedia, | 1098 uploadMedia: _uploadMedia, |
1070 downloadOptions: _downloadOptions); | 1099 downloadOptions: _downloadOptions); |
1071 return _response.then((data) => new DatafeedsCustomBatchResponse.fromJson(da
ta)); | 1100 return _response.then((data) => new DatafeedsCustomBatchResponse.fromJson(da
ta)); |
1072 } | 1101 } |
1073 | 1102 |
1074 /** | 1103 /** |
1075 * Deletes a datafeed from your Merchant Center account. | 1104 * Deletes a datafeed from your Merchant Center account. |
1076 * | 1105 * |
1077 * Request parameters: | 1106 * Request parameters: |
1078 * | 1107 * |
1079 * [merchantId] - null | 1108 * [merchantId] - null |
1080 * | 1109 * |
1081 * [datafeedId] - null | 1110 * [datafeedId] - null |
1082 * | 1111 * |
1083 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1112 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1084 * error. | 1113 * error. |
1085 * | 1114 * |
1086 * If the used [http.Client] completes with an error when making a REST call, | 1115 * If the used [http.Client] completes with an error when making a REST call, |
1087 * this method will complete with the same error. | 1116 * this method will complete with the same error. |
1088 */ | 1117 */ |
1089 async.Future delete(core.String merchantId, core.String datafeedId) { | 1118 async.Future delete(core.String merchantId, core.String datafeedId) { |
1090 var _url = null; | 1119 var _url = null; |
1091 var _queryParams = new core.Map(); | 1120 var _queryParams = new core.Map(); |
1092 var _uploadMedia = null; | 1121 var _uploadMedia = null; |
1093 var _uploadOptions = null; | 1122 var _uploadOptions = null; |
1094 var _downloadOptions = common.DownloadOptions.Metadata; | 1123 var _downloadOptions = commons.DownloadOptions.Metadata; |
1095 var _body = null; | 1124 var _body = null; |
1096 | 1125 |
1097 if (merchantId == null) { | 1126 if (merchantId == null) { |
1098 throw new core.ArgumentError("Parameter merchantId is required."); | 1127 throw new core.ArgumentError("Parameter merchantId is required."); |
1099 } | 1128 } |
1100 if (datafeedId == null) { | 1129 if (datafeedId == null) { |
1101 throw new core.ArgumentError("Parameter datafeedId is required."); | 1130 throw new core.ArgumentError("Parameter datafeedId is required."); |
1102 } | 1131 } |
1103 | 1132 |
1104 _downloadOptions = null; | 1133 _downloadOptions = null; |
1105 | 1134 |
1106 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/datafeeds/'
+ common_internal.Escaper.ecapeVariable('$datafeedId'); | 1135 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + common
s.Escaper.ecapeVariable('$datafeedId'); |
1107 | 1136 |
1108 var _response = _requester.request(_url, | 1137 var _response = _requester.request(_url, |
1109 "DELETE", | 1138 "DELETE", |
1110 body: _body, | 1139 body: _body, |
1111 queryParams: _queryParams, | 1140 queryParams: _queryParams, |
1112 uploadOptions: _uploadOptions, | 1141 uploadOptions: _uploadOptions, |
1113 uploadMedia: _uploadMedia, | 1142 uploadMedia: _uploadMedia, |
1114 downloadOptions: _downloadOptions); | 1143 downloadOptions: _downloadOptions); |
1115 return _response.then((data) => null); | 1144 return _response.then((data) => null); |
1116 } | 1145 } |
1117 | 1146 |
1118 /** | 1147 /** |
1119 * Retrieves a datafeed from your Merchant Center account. | 1148 * Retrieves a datafeed from your Merchant Center account. |
1120 * | 1149 * |
1121 * Request parameters: | 1150 * Request parameters: |
1122 * | 1151 * |
1123 * [merchantId] - null | 1152 * [merchantId] - null |
1124 * | 1153 * |
1125 * [datafeedId] - null | 1154 * [datafeedId] - null |
1126 * | 1155 * |
1127 * Completes with a [Datafeed]. | 1156 * Completes with a [Datafeed]. |
1128 * | 1157 * |
1129 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1158 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1130 * error. | 1159 * error. |
1131 * | 1160 * |
1132 * If the used [http.Client] completes with an error when making a REST call, | 1161 * If the used [http.Client] completes with an error when making a REST call, |
1133 * this method will complete with the same error. | 1162 * this method will complete with the same error. |
1134 */ | 1163 */ |
1135 async.Future<Datafeed> get(core.String merchantId, core.String datafeedId) { | 1164 async.Future<Datafeed> get(core.String merchantId, core.String datafeedId) { |
1136 var _url = null; | 1165 var _url = null; |
1137 var _queryParams = new core.Map(); | 1166 var _queryParams = new core.Map(); |
1138 var _uploadMedia = null; | 1167 var _uploadMedia = null; |
1139 var _uploadOptions = null; | 1168 var _uploadOptions = null; |
1140 var _downloadOptions = common.DownloadOptions.Metadata; | 1169 var _downloadOptions = commons.DownloadOptions.Metadata; |
1141 var _body = null; | 1170 var _body = null; |
1142 | 1171 |
1143 if (merchantId == null) { | 1172 if (merchantId == null) { |
1144 throw new core.ArgumentError("Parameter merchantId is required."); | 1173 throw new core.ArgumentError("Parameter merchantId is required."); |
1145 } | 1174 } |
1146 if (datafeedId == null) { | 1175 if (datafeedId == null) { |
1147 throw new core.ArgumentError("Parameter datafeedId is required."); | 1176 throw new core.ArgumentError("Parameter datafeedId is required."); |
1148 } | 1177 } |
1149 | 1178 |
1150 | 1179 |
1151 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/datafeeds/'
+ common_internal.Escaper.ecapeVariable('$datafeedId'); | 1180 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + common
s.Escaper.ecapeVariable('$datafeedId'); |
1152 | 1181 |
1153 var _response = _requester.request(_url, | 1182 var _response = _requester.request(_url, |
1154 "GET", | 1183 "GET", |
1155 body: _body, | 1184 body: _body, |
1156 queryParams: _queryParams, | 1185 queryParams: _queryParams, |
1157 uploadOptions: _uploadOptions, | 1186 uploadOptions: _uploadOptions, |
1158 uploadMedia: _uploadMedia, | 1187 uploadMedia: _uploadMedia, |
1159 downloadOptions: _downloadOptions); | 1188 downloadOptions: _downloadOptions); |
1160 return _response.then((data) => new Datafeed.fromJson(data)); | 1189 return _response.then((data) => new Datafeed.fromJson(data)); |
1161 } | 1190 } |
1162 | 1191 |
1163 /** | 1192 /** |
1164 * Registers a datafeed with your Merchant Center account. | 1193 * Registers a datafeed with your Merchant Center account. |
1165 * | 1194 * |
1166 * [request] - The metadata request object. | 1195 * [request] - The metadata request object. |
1167 * | 1196 * |
1168 * Request parameters: | 1197 * Request parameters: |
1169 * | 1198 * |
1170 * [merchantId] - null | 1199 * [merchantId] - null |
1171 * | 1200 * |
1172 * Completes with a [Datafeed]. | 1201 * Completes with a [Datafeed]. |
1173 * | 1202 * |
1174 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1203 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1175 * error. | 1204 * error. |
1176 * | 1205 * |
1177 * If the used [http.Client] completes with an error when making a REST call, | 1206 * If the used [http.Client] completes with an error when making a REST call, |
1178 * this method will complete with the same error. | 1207 * this method will complete with the same error. |
1179 */ | 1208 */ |
1180 async.Future<Datafeed> insert(Datafeed request, core.String merchantId) { | 1209 async.Future<Datafeed> insert(Datafeed request, core.String merchantId) { |
1181 var _url = null; | 1210 var _url = null; |
1182 var _queryParams = new core.Map(); | 1211 var _queryParams = new core.Map(); |
1183 var _uploadMedia = null; | 1212 var _uploadMedia = null; |
1184 var _uploadOptions = null; | 1213 var _uploadOptions = null; |
1185 var _downloadOptions = common.DownloadOptions.Metadata; | 1214 var _downloadOptions = commons.DownloadOptions.Metadata; |
1186 var _body = null; | 1215 var _body = null; |
1187 | 1216 |
1188 if (request != null) { | 1217 if (request != null) { |
1189 _body = convert.JSON.encode((request).toJson()); | 1218 _body = convert.JSON.encode((request).toJson()); |
1190 } | 1219 } |
1191 if (merchantId == null) { | 1220 if (merchantId == null) { |
1192 throw new core.ArgumentError("Parameter merchantId is required."); | 1221 throw new core.ArgumentError("Parameter merchantId is required."); |
1193 } | 1222 } |
1194 | 1223 |
1195 | 1224 |
1196 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/datafeeds'; | 1225 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds'; |
1197 | 1226 |
1198 var _response = _requester.request(_url, | 1227 var _response = _requester.request(_url, |
1199 "POST", | 1228 "POST", |
1200 body: _body, | 1229 body: _body, |
1201 queryParams: _queryParams, | 1230 queryParams: _queryParams, |
1202 uploadOptions: _uploadOptions, | 1231 uploadOptions: _uploadOptions, |
1203 uploadMedia: _uploadMedia, | 1232 uploadMedia: _uploadMedia, |
1204 downloadOptions: _downloadOptions); | 1233 downloadOptions: _downloadOptions); |
1205 return _response.then((data) => new Datafeed.fromJson(data)); | 1234 return _response.then((data) => new Datafeed.fromJson(data)); |
1206 } | 1235 } |
1207 | 1236 |
1208 /** | 1237 /** |
1209 * Lists the datafeeds in your Merchant Center account. | 1238 * Lists the datafeeds in your Merchant Center account. |
1210 * | 1239 * |
1211 * Request parameters: | 1240 * Request parameters: |
1212 * | 1241 * |
1213 * [merchantId] - The ID of the managing account. | 1242 * [merchantId] - The ID of the managing account. |
1214 * | 1243 * |
1215 * [maxResults] - The maximum number of products to return in the response, | 1244 * [maxResults] - The maximum number of products to return in the response, |
1216 * used for paging. | 1245 * used for paging. |
1217 * | 1246 * |
1218 * [pageToken] - The token returned by the previous request. | 1247 * [pageToken] - The token returned by the previous request. |
1219 * | 1248 * |
1220 * Completes with a [DatafeedsListResponse]. | 1249 * Completes with a [DatafeedsListResponse]. |
1221 * | 1250 * |
1222 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1251 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1223 * error. | 1252 * error. |
1224 * | 1253 * |
1225 * If the used [http.Client] completes with an error when making a REST call, | 1254 * If the used [http.Client] completes with an error when making a REST call, |
1226 * this method will complete with the same error. | 1255 * this method will complete with the same error. |
1227 */ | 1256 */ |
1228 async.Future<DatafeedsListResponse> list(core.String merchantId, {core.int max
Results, core.String pageToken}) { | 1257 async.Future<DatafeedsListResponse> list(core.String merchantId, {core.int max
Results, core.String pageToken}) { |
1229 var _url = null; | 1258 var _url = null; |
1230 var _queryParams = new core.Map(); | 1259 var _queryParams = new core.Map(); |
1231 var _uploadMedia = null; | 1260 var _uploadMedia = null; |
1232 var _uploadOptions = null; | 1261 var _uploadOptions = null; |
1233 var _downloadOptions = common.DownloadOptions.Metadata; | 1262 var _downloadOptions = commons.DownloadOptions.Metadata; |
1234 var _body = null; | 1263 var _body = null; |
1235 | 1264 |
1236 if (merchantId == null) { | 1265 if (merchantId == null) { |
1237 throw new core.ArgumentError("Parameter merchantId is required."); | 1266 throw new core.ArgumentError("Parameter merchantId is required."); |
1238 } | 1267 } |
1239 if (maxResults != null) { | 1268 if (maxResults != null) { |
1240 _queryParams["maxResults"] = ["${maxResults}"]; | 1269 _queryParams["maxResults"] = ["${maxResults}"]; |
1241 } | 1270 } |
1242 if (pageToken != null) { | 1271 if (pageToken != null) { |
1243 _queryParams["pageToken"] = [pageToken]; | 1272 _queryParams["pageToken"] = [pageToken]; |
1244 } | 1273 } |
1245 | 1274 |
1246 | 1275 |
1247 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/datafeeds'; | 1276 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds'; |
1248 | 1277 |
1249 var _response = _requester.request(_url, | 1278 var _response = _requester.request(_url, |
1250 "GET", | 1279 "GET", |
1251 body: _body, | 1280 body: _body, |
1252 queryParams: _queryParams, | 1281 queryParams: _queryParams, |
1253 uploadOptions: _uploadOptions, | 1282 uploadOptions: _uploadOptions, |
1254 uploadMedia: _uploadMedia, | 1283 uploadMedia: _uploadMedia, |
1255 downloadOptions: _downloadOptions); | 1284 downloadOptions: _downloadOptions); |
1256 return _response.then((data) => new DatafeedsListResponse.fromJson(data)); | 1285 return _response.then((data) => new DatafeedsListResponse.fromJson(data)); |
1257 } | 1286 } |
1258 | 1287 |
1259 /** | 1288 /** |
1260 * Updates a datafeed of your Merchant Center account. This method supports | 1289 * Updates a datafeed of your Merchant Center account. This method supports |
1261 * patch semantics. | 1290 * patch semantics. |
1262 * | 1291 * |
1263 * [request] - The metadata request object. | 1292 * [request] - The metadata request object. |
1264 * | 1293 * |
1265 * Request parameters: | 1294 * Request parameters: |
1266 * | 1295 * |
1267 * [merchantId] - null | 1296 * [merchantId] - null |
1268 * | 1297 * |
1269 * [datafeedId] - null | 1298 * [datafeedId] - null |
1270 * | 1299 * |
1271 * Completes with a [Datafeed]. | 1300 * Completes with a [Datafeed]. |
1272 * | 1301 * |
1273 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1302 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1274 * error. | 1303 * error. |
1275 * | 1304 * |
1276 * If the used [http.Client] completes with an error when making a REST call, | 1305 * If the used [http.Client] completes with an error when making a REST call, |
1277 * this method will complete with the same error. | 1306 * this method will complete with the same error. |
1278 */ | 1307 */ |
1279 async.Future<Datafeed> patch(Datafeed request, core.String merchantId, core.St
ring datafeedId) { | 1308 async.Future<Datafeed> patch(Datafeed request, core.String merchantId, core.St
ring datafeedId) { |
1280 var _url = null; | 1309 var _url = null; |
1281 var _queryParams = new core.Map(); | 1310 var _queryParams = new core.Map(); |
1282 var _uploadMedia = null; | 1311 var _uploadMedia = null; |
1283 var _uploadOptions = null; | 1312 var _uploadOptions = null; |
1284 var _downloadOptions = common.DownloadOptions.Metadata; | 1313 var _downloadOptions = commons.DownloadOptions.Metadata; |
1285 var _body = null; | 1314 var _body = null; |
1286 | 1315 |
1287 if (request != null) { | 1316 if (request != null) { |
1288 _body = convert.JSON.encode((request).toJson()); | 1317 _body = convert.JSON.encode((request).toJson()); |
1289 } | 1318 } |
1290 if (merchantId == null) { | 1319 if (merchantId == null) { |
1291 throw new core.ArgumentError("Parameter merchantId is required."); | 1320 throw new core.ArgumentError("Parameter merchantId is required."); |
1292 } | 1321 } |
1293 if (datafeedId == null) { | 1322 if (datafeedId == null) { |
1294 throw new core.ArgumentError("Parameter datafeedId is required."); | 1323 throw new core.ArgumentError("Parameter datafeedId is required."); |
1295 } | 1324 } |
1296 | 1325 |
1297 | 1326 |
1298 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/datafeeds/'
+ common_internal.Escaper.ecapeVariable('$datafeedId'); | 1327 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + common
s.Escaper.ecapeVariable('$datafeedId'); |
1299 | 1328 |
1300 var _response = _requester.request(_url, | 1329 var _response = _requester.request(_url, |
1301 "PATCH", | 1330 "PATCH", |
1302 body: _body, | 1331 body: _body, |
1303 queryParams: _queryParams, | 1332 queryParams: _queryParams, |
1304 uploadOptions: _uploadOptions, | 1333 uploadOptions: _uploadOptions, |
1305 uploadMedia: _uploadMedia, | 1334 uploadMedia: _uploadMedia, |
1306 downloadOptions: _downloadOptions); | 1335 downloadOptions: _downloadOptions); |
1307 return _response.then((data) => new Datafeed.fromJson(data)); | 1336 return _response.then((data) => new Datafeed.fromJson(data)); |
1308 } | 1337 } |
1309 | 1338 |
1310 /** | 1339 /** |
1311 * Updates a datafeed of your Merchant Center account. | 1340 * Updates a datafeed of your Merchant Center account. |
1312 * | 1341 * |
1313 * [request] - The metadata request object. | 1342 * [request] - The metadata request object. |
1314 * | 1343 * |
1315 * Request parameters: | 1344 * Request parameters: |
1316 * | 1345 * |
1317 * [merchantId] - null | 1346 * [merchantId] - null |
1318 * | 1347 * |
1319 * [datafeedId] - null | 1348 * [datafeedId] - null |
1320 * | 1349 * |
1321 * Completes with a [Datafeed]. | 1350 * Completes with a [Datafeed]. |
1322 * | 1351 * |
1323 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1352 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1324 * error. | 1353 * error. |
1325 * | 1354 * |
1326 * If the used [http.Client] completes with an error when making a REST call, | 1355 * If the used [http.Client] completes with an error when making a REST call, |
1327 * this method will complete with the same error. | 1356 * this method will complete with the same error. |
1328 */ | 1357 */ |
1329 async.Future<Datafeed> update(Datafeed request, core.String merchantId, core.S
tring datafeedId) { | 1358 async.Future<Datafeed> update(Datafeed request, core.String merchantId, core.S
tring datafeedId) { |
1330 var _url = null; | 1359 var _url = null; |
1331 var _queryParams = new core.Map(); | 1360 var _queryParams = new core.Map(); |
1332 var _uploadMedia = null; | 1361 var _uploadMedia = null; |
1333 var _uploadOptions = null; | 1362 var _uploadOptions = null; |
1334 var _downloadOptions = common.DownloadOptions.Metadata; | 1363 var _downloadOptions = commons.DownloadOptions.Metadata; |
1335 var _body = null; | 1364 var _body = null; |
1336 | 1365 |
1337 if (request != null) { | 1366 if (request != null) { |
1338 _body = convert.JSON.encode((request).toJson()); | 1367 _body = convert.JSON.encode((request).toJson()); |
1339 } | 1368 } |
1340 if (merchantId == null) { | 1369 if (merchantId == null) { |
1341 throw new core.ArgumentError("Parameter merchantId is required."); | 1370 throw new core.ArgumentError("Parameter merchantId is required."); |
1342 } | 1371 } |
1343 if (datafeedId == null) { | 1372 if (datafeedId == null) { |
1344 throw new core.ArgumentError("Parameter datafeedId is required."); | 1373 throw new core.ArgumentError("Parameter datafeedId is required."); |
1345 } | 1374 } |
1346 | 1375 |
1347 | 1376 |
1348 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/datafeeds/'
+ common_internal.Escaper.ecapeVariable('$datafeedId'); | 1377 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + common
s.Escaper.ecapeVariable('$datafeedId'); |
1349 | 1378 |
1350 var _response = _requester.request(_url, | 1379 var _response = _requester.request(_url, |
1351 "PUT", | 1380 "PUT", |
1352 body: _body, | 1381 body: _body, |
1353 queryParams: _queryParams, | 1382 queryParams: _queryParams, |
1354 uploadOptions: _uploadOptions, | 1383 uploadOptions: _uploadOptions, |
1355 uploadMedia: _uploadMedia, | 1384 uploadMedia: _uploadMedia, |
1356 downloadOptions: _downloadOptions); | 1385 downloadOptions: _downloadOptions); |
1357 return _response.then((data) => new Datafeed.fromJson(data)); | 1386 return _response.then((data) => new Datafeed.fromJson(data)); |
1358 } | 1387 } |
1359 | 1388 |
1360 } | 1389 } |
1361 | 1390 |
1362 | 1391 |
1363 /** Not documented yet. */ | |
1364 class DatafeedstatusesResourceApi { | 1392 class DatafeedstatusesResourceApi { |
1365 final common_internal.ApiRequester _requester; | 1393 final commons.ApiRequester _requester; |
1366 | 1394 |
1367 DatafeedstatusesResourceApi(common_internal.ApiRequester client) : | 1395 DatafeedstatusesResourceApi(commons.ApiRequester client) : |
1368 _requester = client; | 1396 _requester = client; |
1369 | 1397 |
1370 /** | 1398 /** |
1371 * Not documented yet. | |
1372 * | |
1373 * [request] - The metadata request object. | 1399 * [request] - The metadata request object. |
1374 * | 1400 * |
1375 * Request parameters: | 1401 * Request parameters: |
1376 * | 1402 * |
1377 * Completes with a [DatafeedstatusesCustomBatchResponse]. | 1403 * Completes with a [DatafeedstatusesCustomBatchResponse]. |
1378 * | 1404 * |
1379 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1405 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1380 * error. | 1406 * error. |
1381 * | 1407 * |
1382 * If the used [http.Client] completes with an error when making a REST call, | 1408 * If the used [http.Client] completes with an error when making a REST call, |
1383 * this method will complete with the same error. | 1409 * this method will complete with the same error. |
1384 */ | 1410 */ |
1385 async.Future<DatafeedstatusesCustomBatchResponse> custombatch(Datafeedstatuses
CustomBatchRequest request) { | 1411 async.Future<DatafeedstatusesCustomBatchResponse> custombatch(Datafeedstatuses
CustomBatchRequest request) { |
1386 var _url = null; | 1412 var _url = null; |
1387 var _queryParams = new core.Map(); | 1413 var _queryParams = new core.Map(); |
1388 var _uploadMedia = null; | 1414 var _uploadMedia = null; |
1389 var _uploadOptions = null; | 1415 var _uploadOptions = null; |
1390 var _downloadOptions = common.DownloadOptions.Metadata; | 1416 var _downloadOptions = commons.DownloadOptions.Metadata; |
1391 var _body = null; | 1417 var _body = null; |
1392 | 1418 |
1393 if (request != null) { | 1419 if (request != null) { |
1394 _body = convert.JSON.encode((request).toJson()); | 1420 _body = convert.JSON.encode((request).toJson()); |
1395 } | 1421 } |
1396 | 1422 |
1397 | 1423 |
1398 _url = 'datafeedstatuses/batch'; | 1424 _url = 'datafeedstatuses/batch'; |
1399 | 1425 |
1400 var _response = _requester.request(_url, | 1426 var _response = _requester.request(_url, |
(...skipping 10 matching lines...) Expand all Loading... |
1411 * Retrieves the status of a datafeed from your Merchant Center account. | 1437 * Retrieves the status of a datafeed from your Merchant Center account. |
1412 * | 1438 * |
1413 * Request parameters: | 1439 * Request parameters: |
1414 * | 1440 * |
1415 * [merchantId] - null | 1441 * [merchantId] - null |
1416 * | 1442 * |
1417 * [datafeedId] - null | 1443 * [datafeedId] - null |
1418 * | 1444 * |
1419 * Completes with a [DatafeedStatus]. | 1445 * Completes with a [DatafeedStatus]. |
1420 * | 1446 * |
1421 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1447 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1422 * error. | 1448 * error. |
1423 * | 1449 * |
1424 * If the used [http.Client] completes with an error when making a REST call, | 1450 * If the used [http.Client] completes with an error when making a REST call, |
1425 * this method will complete with the same error. | 1451 * this method will complete with the same error. |
1426 */ | 1452 */ |
1427 async.Future<DatafeedStatus> get(core.String merchantId, core.String datafeedI
d) { | 1453 async.Future<DatafeedStatus> get(core.String merchantId, core.String datafeedI
d) { |
1428 var _url = null; | 1454 var _url = null; |
1429 var _queryParams = new core.Map(); | 1455 var _queryParams = new core.Map(); |
1430 var _uploadMedia = null; | 1456 var _uploadMedia = null; |
1431 var _uploadOptions = null; | 1457 var _uploadOptions = null; |
1432 var _downloadOptions = common.DownloadOptions.Metadata; | 1458 var _downloadOptions = commons.DownloadOptions.Metadata; |
1433 var _body = null; | 1459 var _body = null; |
1434 | 1460 |
1435 if (merchantId == null) { | 1461 if (merchantId == null) { |
1436 throw new core.ArgumentError("Parameter merchantId is required."); | 1462 throw new core.ArgumentError("Parameter merchantId is required."); |
1437 } | 1463 } |
1438 if (datafeedId == null) { | 1464 if (datafeedId == null) { |
1439 throw new core.ArgumentError("Parameter datafeedId is required."); | 1465 throw new core.ArgumentError("Parameter datafeedId is required."); |
1440 } | 1466 } |
1441 | 1467 |
1442 | 1468 |
1443 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/datafeedstat
uses/' + common_internal.Escaper.ecapeVariable('$datafeedId'); | 1469 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeedstatuses/' +
commons.Escaper.ecapeVariable('$datafeedId'); |
1444 | 1470 |
1445 var _response = _requester.request(_url, | 1471 var _response = _requester.request(_url, |
1446 "GET", | 1472 "GET", |
1447 body: _body, | 1473 body: _body, |
1448 queryParams: _queryParams, | 1474 queryParams: _queryParams, |
1449 uploadOptions: _uploadOptions, | 1475 uploadOptions: _uploadOptions, |
1450 uploadMedia: _uploadMedia, | 1476 uploadMedia: _uploadMedia, |
1451 downloadOptions: _downloadOptions); | 1477 downloadOptions: _downloadOptions); |
1452 return _response.then((data) => new DatafeedStatus.fromJson(data)); | 1478 return _response.then((data) => new DatafeedStatus.fromJson(data)); |
1453 } | 1479 } |
1454 | 1480 |
1455 /** | 1481 /** |
1456 * Lists the statuses of the datafeeds in your Merchant Center account. | 1482 * Lists the statuses of the datafeeds in your Merchant Center account. |
1457 * | 1483 * |
1458 * Request parameters: | 1484 * Request parameters: |
1459 * | 1485 * |
1460 * [merchantId] - The ID of the managing account. | 1486 * [merchantId] - The ID of the managing account. |
1461 * | 1487 * |
1462 * [maxResults] - The maximum number of products to return in the response, | 1488 * [maxResults] - The maximum number of products to return in the response, |
1463 * used for paging. | 1489 * used for paging. |
1464 * | 1490 * |
1465 * [pageToken] - The token returned by the previous request. | 1491 * [pageToken] - The token returned by the previous request. |
1466 * | 1492 * |
1467 * Completes with a [DatafeedstatusesListResponse]. | 1493 * Completes with a [DatafeedstatusesListResponse]. |
1468 * | 1494 * |
1469 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1495 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1470 * error. | 1496 * error. |
1471 * | 1497 * |
1472 * If the used [http.Client] completes with an error when making a REST call, | 1498 * If the used [http.Client] completes with an error when making a REST call, |
1473 * this method will complete with the same error. | 1499 * this method will complete with the same error. |
1474 */ | 1500 */ |
1475 async.Future<DatafeedstatusesListResponse> list(core.String merchantId, {core.
int maxResults, core.String pageToken}) { | 1501 async.Future<DatafeedstatusesListResponse> list(core.String merchantId, {core.
int maxResults, core.String pageToken}) { |
1476 var _url = null; | 1502 var _url = null; |
1477 var _queryParams = new core.Map(); | 1503 var _queryParams = new core.Map(); |
1478 var _uploadMedia = null; | 1504 var _uploadMedia = null; |
1479 var _uploadOptions = null; | 1505 var _uploadOptions = null; |
1480 var _downloadOptions = common.DownloadOptions.Metadata; | 1506 var _downloadOptions = commons.DownloadOptions.Metadata; |
1481 var _body = null; | 1507 var _body = null; |
1482 | 1508 |
1483 if (merchantId == null) { | 1509 if (merchantId == null) { |
1484 throw new core.ArgumentError("Parameter merchantId is required."); | 1510 throw new core.ArgumentError("Parameter merchantId is required."); |
1485 } | 1511 } |
1486 if (maxResults != null) { | 1512 if (maxResults != null) { |
1487 _queryParams["maxResults"] = ["${maxResults}"]; | 1513 _queryParams["maxResults"] = ["${maxResults}"]; |
1488 } | 1514 } |
1489 if (pageToken != null) { | 1515 if (pageToken != null) { |
1490 _queryParams["pageToken"] = [pageToken]; | 1516 _queryParams["pageToken"] = [pageToken]; |
1491 } | 1517 } |
1492 | 1518 |
1493 | 1519 |
1494 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/datafeedstat
uses'; | 1520 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeedstatuses'; |
1495 | 1521 |
1496 var _response = _requester.request(_url, | 1522 var _response = _requester.request(_url, |
1497 "GET", | 1523 "GET", |
1498 body: _body, | 1524 body: _body, |
1499 queryParams: _queryParams, | 1525 queryParams: _queryParams, |
1500 uploadOptions: _uploadOptions, | 1526 uploadOptions: _uploadOptions, |
1501 uploadMedia: _uploadMedia, | 1527 uploadMedia: _uploadMedia, |
1502 downloadOptions: _downloadOptions); | 1528 downloadOptions: _downloadOptions); |
1503 return _response.then((data) => new DatafeedstatusesListResponse.fromJson(da
ta)); | 1529 return _response.then((data) => new DatafeedstatusesListResponse.fromJson(da
ta)); |
1504 } | 1530 } |
1505 | 1531 |
1506 } | 1532 } |
1507 | 1533 |
1508 | 1534 |
1509 /** Not documented yet. */ | |
1510 class InventoryResourceApi { | 1535 class InventoryResourceApi { |
1511 final common_internal.ApiRequester _requester; | 1536 final commons.ApiRequester _requester; |
1512 | 1537 |
1513 InventoryResourceApi(common_internal.ApiRequester client) : | 1538 InventoryResourceApi(commons.ApiRequester client) : |
1514 _requester = client; | 1539 _requester = client; |
1515 | 1540 |
1516 /** | 1541 /** |
1517 * Updates price and availability for multiple products or stores in a single | 1542 * Updates price and availability for multiple products or stores in a single |
1518 * request. | 1543 * request. |
1519 * | 1544 * |
1520 * [request] - The metadata request object. | 1545 * [request] - The metadata request object. |
1521 * | 1546 * |
1522 * Request parameters: | 1547 * Request parameters: |
1523 * | 1548 * |
1524 * Completes with a [InventoryCustomBatchResponse]. | 1549 * Completes with a [InventoryCustomBatchResponse]. |
1525 * | 1550 * |
1526 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1551 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1527 * error. | 1552 * error. |
1528 * | 1553 * |
1529 * If the used [http.Client] completes with an error when making a REST call, | 1554 * If the used [http.Client] completes with an error when making a REST call, |
1530 * this method will complete with the same error. | 1555 * this method will complete with the same error. |
1531 */ | 1556 */ |
1532 async.Future<InventoryCustomBatchResponse> custombatch(InventoryCustomBatchReq
uest request) { | 1557 async.Future<InventoryCustomBatchResponse> custombatch(InventoryCustomBatchReq
uest request) { |
1533 var _url = null; | 1558 var _url = null; |
1534 var _queryParams = new core.Map(); | 1559 var _queryParams = new core.Map(); |
1535 var _uploadMedia = null; | 1560 var _uploadMedia = null; |
1536 var _uploadOptions = null; | 1561 var _uploadOptions = null; |
1537 var _downloadOptions = common.DownloadOptions.Metadata; | 1562 var _downloadOptions = commons.DownloadOptions.Metadata; |
1538 var _body = null; | 1563 var _body = null; |
1539 | 1564 |
1540 if (request != null) { | 1565 if (request != null) { |
1541 _body = convert.JSON.encode((request).toJson()); | 1566 _body = convert.JSON.encode((request).toJson()); |
1542 } | 1567 } |
1543 | 1568 |
1544 | 1569 |
1545 _url = 'inventory/batch'; | 1570 _url = 'inventory/batch'; |
1546 | 1571 |
1547 var _response = _requester.request(_url, | 1572 var _response = _requester.request(_url, |
(...skipping 18 matching lines...) Expand all Loading... |
1566 * | 1591 * |
1567 * [storeCode] - The code of the store for which to update price and | 1592 * [storeCode] - The code of the store for which to update price and |
1568 * availability. Use online to update price and availability of an online | 1593 * availability. Use online to update price and availability of an online |
1569 * product. | 1594 * product. |
1570 * | 1595 * |
1571 * [productId] - The ID of the product for which to update price and | 1596 * [productId] - The ID of the product for which to update price and |
1572 * availability. | 1597 * availability. |
1573 * | 1598 * |
1574 * Completes with a [InventorySetResponse]. | 1599 * Completes with a [InventorySetResponse]. |
1575 * | 1600 * |
1576 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1601 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1577 * error. | 1602 * error. |
1578 * | 1603 * |
1579 * If the used [http.Client] completes with an error when making a REST call, | 1604 * If the used [http.Client] completes with an error when making a REST call, |
1580 * this method will complete with the same error. | 1605 * this method will complete with the same error. |
1581 */ | 1606 */ |
1582 async.Future<InventorySetResponse> set(InventorySetRequest request, core.Strin
g merchantId, core.String storeCode, core.String productId) { | 1607 async.Future<InventorySetResponse> set(InventorySetRequest request, core.Strin
g merchantId, core.String storeCode, core.String productId) { |
1583 var _url = null; | 1608 var _url = null; |
1584 var _queryParams = new core.Map(); | 1609 var _queryParams = new core.Map(); |
1585 var _uploadMedia = null; | 1610 var _uploadMedia = null; |
1586 var _uploadOptions = null; | 1611 var _uploadOptions = null; |
1587 var _downloadOptions = common.DownloadOptions.Metadata; | 1612 var _downloadOptions = commons.DownloadOptions.Metadata; |
1588 var _body = null; | 1613 var _body = null; |
1589 | 1614 |
1590 if (request != null) { | 1615 if (request != null) { |
1591 _body = convert.JSON.encode((request).toJson()); | 1616 _body = convert.JSON.encode((request).toJson()); |
1592 } | 1617 } |
1593 if (merchantId == null) { | 1618 if (merchantId == null) { |
1594 throw new core.ArgumentError("Parameter merchantId is required."); | 1619 throw new core.ArgumentError("Parameter merchantId is required."); |
1595 } | 1620 } |
1596 if (storeCode == null) { | 1621 if (storeCode == null) { |
1597 throw new core.ArgumentError("Parameter storeCode is required."); | 1622 throw new core.ArgumentError("Parameter storeCode is required."); |
1598 } | 1623 } |
1599 if (productId == null) { | 1624 if (productId == null) { |
1600 throw new core.ArgumentError("Parameter productId is required."); | 1625 throw new core.ArgumentError("Parameter productId is required."); |
1601 } | 1626 } |
1602 | 1627 |
1603 | 1628 |
1604 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/inventory/'
+ common_internal.Escaper.ecapeVariable('$storeCode') + '/products/' + common_in
ternal.Escaper.ecapeVariable('$productId'); | 1629 _url = commons.Escaper.ecapeVariable('$merchantId') + '/inventory/' + common
s.Escaper.ecapeVariable('$storeCode') + '/products/' + commons.Escaper.ecapeVari
able('$productId'); |
1605 | 1630 |
1606 var _response = _requester.request(_url, | 1631 var _response = _requester.request(_url, |
1607 "POST", | 1632 "POST", |
1608 body: _body, | 1633 body: _body, |
1609 queryParams: _queryParams, | 1634 queryParams: _queryParams, |
1610 uploadOptions: _uploadOptions, | 1635 uploadOptions: _uploadOptions, |
1611 uploadMedia: _uploadMedia, | 1636 uploadMedia: _uploadMedia, |
1612 downloadOptions: _downloadOptions); | 1637 downloadOptions: _downloadOptions); |
1613 return _response.then((data) => new InventorySetResponse.fromJson(data)); | 1638 return _response.then((data) => new InventorySetResponse.fromJson(data)); |
1614 } | 1639 } |
1615 | 1640 |
1616 } | 1641 } |
1617 | 1642 |
1618 | 1643 |
1619 /** Not documented yet. */ | |
1620 class ProductsResourceApi { | 1644 class ProductsResourceApi { |
1621 final common_internal.ApiRequester _requester; | 1645 final commons.ApiRequester _requester; |
1622 | 1646 |
1623 ProductsResourceApi(common_internal.ApiRequester client) : | 1647 ProductsResourceApi(commons.ApiRequester client) : |
1624 _requester = client; | 1648 _requester = client; |
1625 | 1649 |
1626 /** | 1650 /** |
1627 * Retrieves, inserts, and deletes multiple products in a single request. | 1651 * Retrieves, inserts, and deletes multiple products in a single request. |
1628 * | 1652 * |
1629 * [request] - The metadata request object. | 1653 * [request] - The metadata request object. |
1630 * | 1654 * |
1631 * Request parameters: | 1655 * Request parameters: |
1632 * | 1656 * |
1633 * [dryRun] - Flag to run the request in dry-run mode. | 1657 * [dryRun] - Flag to run the request in dry-run mode. |
1634 * | 1658 * |
1635 * Completes with a [ProductsCustomBatchResponse]. | 1659 * Completes with a [ProductsCustomBatchResponse]. |
1636 * | 1660 * |
1637 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1661 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1638 * error. | 1662 * error. |
1639 * | 1663 * |
1640 * If the used [http.Client] completes with an error when making a REST call, | 1664 * If the used [http.Client] completes with an error when making a REST call, |
1641 * this method will complete with the same error. | 1665 * this method will complete with the same error. |
1642 */ | 1666 */ |
1643 async.Future<ProductsCustomBatchResponse> custombatch(ProductsCustomBatchReque
st request, {core.bool dryRun}) { | 1667 async.Future<ProductsCustomBatchResponse> custombatch(ProductsCustomBatchReque
st request, {core.bool dryRun}) { |
1644 var _url = null; | 1668 var _url = null; |
1645 var _queryParams = new core.Map(); | 1669 var _queryParams = new core.Map(); |
1646 var _uploadMedia = null; | 1670 var _uploadMedia = null; |
1647 var _uploadOptions = null; | 1671 var _uploadOptions = null; |
1648 var _downloadOptions = common.DownloadOptions.Metadata; | 1672 var _downloadOptions = commons.DownloadOptions.Metadata; |
1649 var _body = null; | 1673 var _body = null; |
1650 | 1674 |
1651 if (request != null) { | 1675 if (request != null) { |
1652 _body = convert.JSON.encode((request).toJson()); | 1676 _body = convert.JSON.encode((request).toJson()); |
1653 } | 1677 } |
1654 if (dryRun != null) { | 1678 if (dryRun != null) { |
1655 _queryParams["dryRun"] = ["${dryRun}"]; | 1679 _queryParams["dryRun"] = ["${dryRun}"]; |
1656 } | 1680 } |
1657 | 1681 |
1658 | 1682 |
(...skipping 13 matching lines...) Expand all Loading... |
1672 * Deletes a product from your Merchant Center account. | 1696 * Deletes a product from your Merchant Center account. |
1673 * | 1697 * |
1674 * Request parameters: | 1698 * Request parameters: |
1675 * | 1699 * |
1676 * [merchantId] - The ID of the managing account. | 1700 * [merchantId] - The ID of the managing account. |
1677 * | 1701 * |
1678 * [productId] - The ID of the product. | 1702 * [productId] - The ID of the product. |
1679 * | 1703 * |
1680 * [dryRun] - Flag to run the request in dry-run mode. | 1704 * [dryRun] - Flag to run the request in dry-run mode. |
1681 * | 1705 * |
1682 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1706 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1683 * error. | 1707 * error. |
1684 * | 1708 * |
1685 * If the used [http.Client] completes with an error when making a REST call, | 1709 * If the used [http.Client] completes with an error when making a REST call, |
1686 * this method will complete with the same error. | 1710 * this method will complete with the same error. |
1687 */ | 1711 */ |
1688 async.Future delete(core.String merchantId, core.String productId, {core.bool
dryRun}) { | 1712 async.Future delete(core.String merchantId, core.String productId, {core.bool
dryRun}) { |
1689 var _url = null; | 1713 var _url = null; |
1690 var _queryParams = new core.Map(); | 1714 var _queryParams = new core.Map(); |
1691 var _uploadMedia = null; | 1715 var _uploadMedia = null; |
1692 var _uploadOptions = null; | 1716 var _uploadOptions = null; |
1693 var _downloadOptions = common.DownloadOptions.Metadata; | 1717 var _downloadOptions = commons.DownloadOptions.Metadata; |
1694 var _body = null; | 1718 var _body = null; |
1695 | 1719 |
1696 if (merchantId == null) { | 1720 if (merchantId == null) { |
1697 throw new core.ArgumentError("Parameter merchantId is required."); | 1721 throw new core.ArgumentError("Parameter merchantId is required."); |
1698 } | 1722 } |
1699 if (productId == null) { | 1723 if (productId == null) { |
1700 throw new core.ArgumentError("Parameter productId is required."); | 1724 throw new core.ArgumentError("Parameter productId is required."); |
1701 } | 1725 } |
1702 if (dryRun != null) { | 1726 if (dryRun != null) { |
1703 _queryParams["dryRun"] = ["${dryRun}"]; | 1727 _queryParams["dryRun"] = ["${dryRun}"]; |
1704 } | 1728 } |
1705 | 1729 |
1706 _downloadOptions = null; | 1730 _downloadOptions = null; |
1707 | 1731 |
1708 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/products/' +
common_internal.Escaper.ecapeVariable('$productId'); | 1732 _url = commons.Escaper.ecapeVariable('$merchantId') + '/products/' + commons
.Escaper.ecapeVariable('$productId'); |
1709 | 1733 |
1710 var _response = _requester.request(_url, | 1734 var _response = _requester.request(_url, |
1711 "DELETE", | 1735 "DELETE", |
1712 body: _body, | 1736 body: _body, |
1713 queryParams: _queryParams, | 1737 queryParams: _queryParams, |
1714 uploadOptions: _uploadOptions, | 1738 uploadOptions: _uploadOptions, |
1715 uploadMedia: _uploadMedia, | 1739 uploadMedia: _uploadMedia, |
1716 downloadOptions: _downloadOptions); | 1740 downloadOptions: _downloadOptions); |
1717 return _response.then((data) => null); | 1741 return _response.then((data) => null); |
1718 } | 1742 } |
1719 | 1743 |
1720 /** | 1744 /** |
1721 * Retrieves a product from your Merchant Center account. | 1745 * Retrieves a product from your Merchant Center account. |
1722 * | 1746 * |
1723 * Request parameters: | 1747 * Request parameters: |
1724 * | 1748 * |
1725 * [merchantId] - The ID of the managing account. | 1749 * [merchantId] - The ID of the managing account. |
1726 * | 1750 * |
1727 * [productId] - The ID of the product. | 1751 * [productId] - The ID of the product. |
1728 * | 1752 * |
1729 * Completes with a [Product]. | 1753 * Completes with a [Product]. |
1730 * | 1754 * |
1731 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1755 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1732 * error. | 1756 * error. |
1733 * | 1757 * |
1734 * If the used [http.Client] completes with an error when making a REST call, | 1758 * If the used [http.Client] completes with an error when making a REST call, |
1735 * this method will complete with the same error. | 1759 * this method will complete with the same error. |
1736 */ | 1760 */ |
1737 async.Future<Product> get(core.String merchantId, core.String productId) { | 1761 async.Future<Product> get(core.String merchantId, core.String productId) { |
1738 var _url = null; | 1762 var _url = null; |
1739 var _queryParams = new core.Map(); | 1763 var _queryParams = new core.Map(); |
1740 var _uploadMedia = null; | 1764 var _uploadMedia = null; |
1741 var _uploadOptions = null; | 1765 var _uploadOptions = null; |
1742 var _downloadOptions = common.DownloadOptions.Metadata; | 1766 var _downloadOptions = commons.DownloadOptions.Metadata; |
1743 var _body = null; | 1767 var _body = null; |
1744 | 1768 |
1745 if (merchantId == null) { | 1769 if (merchantId == null) { |
1746 throw new core.ArgumentError("Parameter merchantId is required."); | 1770 throw new core.ArgumentError("Parameter merchantId is required."); |
1747 } | 1771 } |
1748 if (productId == null) { | 1772 if (productId == null) { |
1749 throw new core.ArgumentError("Parameter productId is required."); | 1773 throw new core.ArgumentError("Parameter productId is required."); |
1750 } | 1774 } |
1751 | 1775 |
1752 | 1776 |
1753 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/products/' +
common_internal.Escaper.ecapeVariable('$productId'); | 1777 _url = commons.Escaper.ecapeVariable('$merchantId') + '/products/' + commons
.Escaper.ecapeVariable('$productId'); |
1754 | 1778 |
1755 var _response = _requester.request(_url, | 1779 var _response = _requester.request(_url, |
1756 "GET", | 1780 "GET", |
1757 body: _body, | 1781 body: _body, |
1758 queryParams: _queryParams, | 1782 queryParams: _queryParams, |
1759 uploadOptions: _uploadOptions, | 1783 uploadOptions: _uploadOptions, |
1760 uploadMedia: _uploadMedia, | 1784 uploadMedia: _uploadMedia, |
1761 downloadOptions: _downloadOptions); | 1785 downloadOptions: _downloadOptions); |
1762 return _response.then((data) => new Product.fromJson(data)); | 1786 return _response.then((data) => new Product.fromJson(data)); |
1763 } | 1787 } |
1764 | 1788 |
1765 /** | 1789 /** |
1766 * Uploads a product to your Merchant Center account. | 1790 * Uploads a product to your Merchant Center account. |
1767 * | 1791 * |
1768 * [request] - The metadata request object. | 1792 * [request] - The metadata request object. |
1769 * | 1793 * |
1770 * Request parameters: | 1794 * Request parameters: |
1771 * | 1795 * |
1772 * [merchantId] - The ID of the managing account. | 1796 * [merchantId] - The ID of the managing account. |
1773 * | 1797 * |
1774 * [dryRun] - Flag to run the request in dry-run mode. | 1798 * [dryRun] - Flag to run the request in dry-run mode. |
1775 * | 1799 * |
1776 * Completes with a [Product]. | 1800 * Completes with a [Product]. |
1777 * | 1801 * |
1778 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1802 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1779 * error. | 1803 * error. |
1780 * | 1804 * |
1781 * If the used [http.Client] completes with an error when making a REST call, | 1805 * If the used [http.Client] completes with an error when making a REST call, |
1782 * this method will complete with the same error. | 1806 * this method will complete with the same error. |
1783 */ | 1807 */ |
1784 async.Future<Product> insert(Product request, core.String merchantId, {core.bo
ol dryRun}) { | 1808 async.Future<Product> insert(Product request, core.String merchantId, {core.bo
ol dryRun}) { |
1785 var _url = null; | 1809 var _url = null; |
1786 var _queryParams = new core.Map(); | 1810 var _queryParams = new core.Map(); |
1787 var _uploadMedia = null; | 1811 var _uploadMedia = null; |
1788 var _uploadOptions = null; | 1812 var _uploadOptions = null; |
1789 var _downloadOptions = common.DownloadOptions.Metadata; | 1813 var _downloadOptions = commons.DownloadOptions.Metadata; |
1790 var _body = null; | 1814 var _body = null; |
1791 | 1815 |
1792 if (request != null) { | 1816 if (request != null) { |
1793 _body = convert.JSON.encode((request).toJson()); | 1817 _body = convert.JSON.encode((request).toJson()); |
1794 } | 1818 } |
1795 if (merchantId == null) { | 1819 if (merchantId == null) { |
1796 throw new core.ArgumentError("Parameter merchantId is required."); | 1820 throw new core.ArgumentError("Parameter merchantId is required."); |
1797 } | 1821 } |
1798 if (dryRun != null) { | 1822 if (dryRun != null) { |
1799 _queryParams["dryRun"] = ["${dryRun}"]; | 1823 _queryParams["dryRun"] = ["${dryRun}"]; |
1800 } | 1824 } |
1801 | 1825 |
1802 | 1826 |
1803 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/products'; | 1827 _url = commons.Escaper.ecapeVariable('$merchantId') + '/products'; |
1804 | 1828 |
1805 var _response = _requester.request(_url, | 1829 var _response = _requester.request(_url, |
1806 "POST", | 1830 "POST", |
1807 body: _body, | 1831 body: _body, |
1808 queryParams: _queryParams, | 1832 queryParams: _queryParams, |
1809 uploadOptions: _uploadOptions, | 1833 uploadOptions: _uploadOptions, |
1810 uploadMedia: _uploadMedia, | 1834 uploadMedia: _uploadMedia, |
1811 downloadOptions: _downloadOptions); | 1835 downloadOptions: _downloadOptions); |
1812 return _response.then((data) => new Product.fromJson(data)); | 1836 return _response.then((data) => new Product.fromJson(data)); |
1813 } | 1837 } |
1814 | 1838 |
1815 /** | 1839 /** |
1816 * Lists the products in your Merchant Center account. | 1840 * Lists the products in your Merchant Center account. |
1817 * | 1841 * |
1818 * Request parameters: | 1842 * Request parameters: |
1819 * | 1843 * |
1820 * [merchantId] - The ID of the managing account. | 1844 * [merchantId] - The ID of the managing account. |
1821 * | 1845 * |
1822 * [maxResults] - The maximum number of products to return in the response, | 1846 * [maxResults] - The maximum number of products to return in the response, |
1823 * used for paging. | 1847 * used for paging. |
1824 * | 1848 * |
1825 * [pageToken] - The token returned by the previous request. | 1849 * [pageToken] - The token returned by the previous request. |
1826 * | 1850 * |
1827 * Completes with a [ProductsListResponse]. | 1851 * Completes with a [ProductsListResponse]. |
1828 * | 1852 * |
1829 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1853 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1830 * error. | 1854 * error. |
1831 * | 1855 * |
1832 * If the used [http.Client] completes with an error when making a REST call, | 1856 * If the used [http.Client] completes with an error when making a REST call, |
1833 * this method will complete with the same error. | 1857 * this method will complete with the same error. |
1834 */ | 1858 */ |
1835 async.Future<ProductsListResponse> list(core.String merchantId, {core.int maxR
esults, core.String pageToken}) { | 1859 async.Future<ProductsListResponse> list(core.String merchantId, {core.int maxR
esults, core.String pageToken}) { |
1836 var _url = null; | 1860 var _url = null; |
1837 var _queryParams = new core.Map(); | 1861 var _queryParams = new core.Map(); |
1838 var _uploadMedia = null; | 1862 var _uploadMedia = null; |
1839 var _uploadOptions = null; | 1863 var _uploadOptions = null; |
1840 var _downloadOptions = common.DownloadOptions.Metadata; | 1864 var _downloadOptions = commons.DownloadOptions.Metadata; |
1841 var _body = null; | 1865 var _body = null; |
1842 | 1866 |
1843 if (merchantId == null) { | 1867 if (merchantId == null) { |
1844 throw new core.ArgumentError("Parameter merchantId is required."); | 1868 throw new core.ArgumentError("Parameter merchantId is required."); |
1845 } | 1869 } |
1846 if (maxResults != null) { | 1870 if (maxResults != null) { |
1847 _queryParams["maxResults"] = ["${maxResults}"]; | 1871 _queryParams["maxResults"] = ["${maxResults}"]; |
1848 } | 1872 } |
1849 if (pageToken != null) { | 1873 if (pageToken != null) { |
1850 _queryParams["pageToken"] = [pageToken]; | 1874 _queryParams["pageToken"] = [pageToken]; |
1851 } | 1875 } |
1852 | 1876 |
1853 | 1877 |
1854 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/products'; | 1878 _url = commons.Escaper.ecapeVariable('$merchantId') + '/products'; |
1855 | 1879 |
1856 var _response = _requester.request(_url, | 1880 var _response = _requester.request(_url, |
1857 "GET", | 1881 "GET", |
1858 body: _body, | 1882 body: _body, |
1859 queryParams: _queryParams, | 1883 queryParams: _queryParams, |
1860 uploadOptions: _uploadOptions, | 1884 uploadOptions: _uploadOptions, |
1861 uploadMedia: _uploadMedia, | 1885 uploadMedia: _uploadMedia, |
1862 downloadOptions: _downloadOptions); | 1886 downloadOptions: _downloadOptions); |
1863 return _response.then((data) => new ProductsListResponse.fromJson(data)); | 1887 return _response.then((data) => new ProductsListResponse.fromJson(data)); |
1864 } | 1888 } |
1865 | 1889 |
1866 } | 1890 } |
1867 | 1891 |
1868 | 1892 |
1869 /** Not documented yet. */ | |
1870 class ProductstatusesResourceApi { | 1893 class ProductstatusesResourceApi { |
1871 final common_internal.ApiRequester _requester; | 1894 final commons.ApiRequester _requester; |
1872 | 1895 |
1873 ProductstatusesResourceApi(common_internal.ApiRequester client) : | 1896 ProductstatusesResourceApi(commons.ApiRequester client) : |
1874 _requester = client; | 1897 _requester = client; |
1875 | 1898 |
1876 /** | 1899 /** |
1877 * Gets the statuses of multiple products in a single request. | 1900 * Gets the statuses of multiple products in a single request. |
1878 * | 1901 * |
1879 * [request] - The metadata request object. | 1902 * [request] - The metadata request object. |
1880 * | 1903 * |
1881 * Request parameters: | 1904 * Request parameters: |
1882 * | 1905 * |
1883 * Completes with a [ProductstatusesCustomBatchResponse]. | 1906 * Completes with a [ProductstatusesCustomBatchResponse]. |
1884 * | 1907 * |
1885 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1908 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1886 * error. | 1909 * error. |
1887 * | 1910 * |
1888 * If the used [http.Client] completes with an error when making a REST call, | 1911 * If the used [http.Client] completes with an error when making a REST call, |
1889 * this method will complete with the same error. | 1912 * this method will complete with the same error. |
1890 */ | 1913 */ |
1891 async.Future<ProductstatusesCustomBatchResponse> custombatch(ProductstatusesCu
stomBatchRequest request) { | 1914 async.Future<ProductstatusesCustomBatchResponse> custombatch(ProductstatusesCu
stomBatchRequest request) { |
1892 var _url = null; | 1915 var _url = null; |
1893 var _queryParams = new core.Map(); | 1916 var _queryParams = new core.Map(); |
1894 var _uploadMedia = null; | 1917 var _uploadMedia = null; |
1895 var _uploadOptions = null; | 1918 var _uploadOptions = null; |
1896 var _downloadOptions = common.DownloadOptions.Metadata; | 1919 var _downloadOptions = commons.DownloadOptions.Metadata; |
1897 var _body = null; | 1920 var _body = null; |
1898 | 1921 |
1899 if (request != null) { | 1922 if (request != null) { |
1900 _body = convert.JSON.encode((request).toJson()); | 1923 _body = convert.JSON.encode((request).toJson()); |
1901 } | 1924 } |
1902 | 1925 |
1903 | 1926 |
1904 _url = 'productstatuses/batch'; | 1927 _url = 'productstatuses/batch'; |
1905 | 1928 |
1906 var _response = _requester.request(_url, | 1929 var _response = _requester.request(_url, |
(...skipping 10 matching lines...) Expand all Loading... |
1917 * Gets the status of a product from your Merchant Center account. | 1940 * Gets the status of a product from your Merchant Center account. |
1918 * | 1941 * |
1919 * Request parameters: | 1942 * Request parameters: |
1920 * | 1943 * |
1921 * [merchantId] - The ID of the managing account. | 1944 * [merchantId] - The ID of the managing account. |
1922 * | 1945 * |
1923 * [productId] - The ID of the product. | 1946 * [productId] - The ID of the product. |
1924 * | 1947 * |
1925 * Completes with a [ProductStatus]. | 1948 * Completes with a [ProductStatus]. |
1926 * | 1949 * |
1927 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1950 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1928 * error. | 1951 * error. |
1929 * | 1952 * |
1930 * If the used [http.Client] completes with an error when making a REST call, | 1953 * If the used [http.Client] completes with an error when making a REST call, |
1931 * this method will complete with the same error. | 1954 * this method will complete with the same error. |
1932 */ | 1955 */ |
1933 async.Future<ProductStatus> get(core.String merchantId, core.String productId)
{ | 1956 async.Future<ProductStatus> get(core.String merchantId, core.String productId)
{ |
1934 var _url = null; | 1957 var _url = null; |
1935 var _queryParams = new core.Map(); | 1958 var _queryParams = new core.Map(); |
1936 var _uploadMedia = null; | 1959 var _uploadMedia = null; |
1937 var _uploadOptions = null; | 1960 var _uploadOptions = null; |
1938 var _downloadOptions = common.DownloadOptions.Metadata; | 1961 var _downloadOptions = commons.DownloadOptions.Metadata; |
1939 var _body = null; | 1962 var _body = null; |
1940 | 1963 |
1941 if (merchantId == null) { | 1964 if (merchantId == null) { |
1942 throw new core.ArgumentError("Parameter merchantId is required."); | 1965 throw new core.ArgumentError("Parameter merchantId is required."); |
1943 } | 1966 } |
1944 if (productId == null) { | 1967 if (productId == null) { |
1945 throw new core.ArgumentError("Parameter productId is required."); | 1968 throw new core.ArgumentError("Parameter productId is required."); |
1946 } | 1969 } |
1947 | 1970 |
1948 | 1971 |
1949 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/productstatu
ses/' + common_internal.Escaper.ecapeVariable('$productId'); | 1972 _url = commons.Escaper.ecapeVariable('$merchantId') + '/productstatuses/' +
commons.Escaper.ecapeVariable('$productId'); |
1950 | 1973 |
1951 var _response = _requester.request(_url, | 1974 var _response = _requester.request(_url, |
1952 "GET", | 1975 "GET", |
1953 body: _body, | 1976 body: _body, |
1954 queryParams: _queryParams, | 1977 queryParams: _queryParams, |
1955 uploadOptions: _uploadOptions, | 1978 uploadOptions: _uploadOptions, |
1956 uploadMedia: _uploadMedia, | 1979 uploadMedia: _uploadMedia, |
1957 downloadOptions: _downloadOptions); | 1980 downloadOptions: _downloadOptions); |
1958 return _response.then((data) => new ProductStatus.fromJson(data)); | 1981 return _response.then((data) => new ProductStatus.fromJson(data)); |
1959 } | 1982 } |
1960 | 1983 |
1961 /** | 1984 /** |
1962 * Lists the statuses of the products in your Merchant Center account. | 1985 * Lists the statuses of the products in your Merchant Center account. |
1963 * | 1986 * |
1964 * Request parameters: | 1987 * Request parameters: |
1965 * | 1988 * |
1966 * [merchantId] - The ID of the managing account. | 1989 * [merchantId] - The ID of the managing account. |
1967 * | 1990 * |
1968 * [maxResults] - The maximum number of product statuses to return in the | 1991 * [maxResults] - The maximum number of product statuses to return in the |
1969 * response, used for paging. | 1992 * response, used for paging. |
1970 * | 1993 * |
1971 * [pageToken] - The token returned by the previous request. | 1994 * [pageToken] - The token returned by the previous request. |
1972 * | 1995 * |
1973 * Completes with a [ProductstatusesListResponse]. | 1996 * Completes with a [ProductstatusesListResponse]. |
1974 * | 1997 * |
1975 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1998 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1976 * error. | 1999 * error. |
1977 * | 2000 * |
1978 * If the used [http.Client] completes with an error when making a REST call, | 2001 * If the used [http.Client] completes with an error when making a REST call, |
1979 * this method will complete with the same error. | 2002 * this method will complete with the same error. |
1980 */ | 2003 */ |
1981 async.Future<ProductstatusesListResponse> list(core.String merchantId, {core.i
nt maxResults, core.String pageToken}) { | 2004 async.Future<ProductstatusesListResponse> list(core.String merchantId, {core.i
nt maxResults, core.String pageToken}) { |
1982 var _url = null; | 2005 var _url = null; |
1983 var _queryParams = new core.Map(); | 2006 var _queryParams = new core.Map(); |
1984 var _uploadMedia = null; | 2007 var _uploadMedia = null; |
1985 var _uploadOptions = null; | 2008 var _uploadOptions = null; |
1986 var _downloadOptions = common.DownloadOptions.Metadata; | 2009 var _downloadOptions = commons.DownloadOptions.Metadata; |
1987 var _body = null; | 2010 var _body = null; |
1988 | 2011 |
1989 if (merchantId == null) { | 2012 if (merchantId == null) { |
1990 throw new core.ArgumentError("Parameter merchantId is required."); | 2013 throw new core.ArgumentError("Parameter merchantId is required."); |
1991 } | 2014 } |
1992 if (maxResults != null) { | 2015 if (maxResults != null) { |
1993 _queryParams["maxResults"] = ["${maxResults}"]; | 2016 _queryParams["maxResults"] = ["${maxResults}"]; |
1994 } | 2017 } |
1995 if (pageToken != null) { | 2018 if (pageToken != null) { |
1996 _queryParams["pageToken"] = [pageToken]; | 2019 _queryParams["pageToken"] = [pageToken]; |
1997 } | 2020 } |
1998 | 2021 |
1999 | 2022 |
2000 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/productstatu
ses'; | 2023 _url = commons.Escaper.ecapeVariable('$merchantId') + '/productstatuses'; |
2001 | 2024 |
2002 var _response = _requester.request(_url, | 2025 var _response = _requester.request(_url, |
2003 "GET", | 2026 "GET", |
2004 body: _body, | 2027 body: _body, |
2005 queryParams: _queryParams, | 2028 queryParams: _queryParams, |
2006 uploadOptions: _uploadOptions, | 2029 uploadOptions: _uploadOptions, |
2007 uploadMedia: _uploadMedia, | 2030 uploadMedia: _uploadMedia, |
2008 downloadOptions: _downloadOptions); | 2031 downloadOptions: _downloadOptions); |
2009 return _response.then((data) => new ProductstatusesListResponse.fromJson(dat
a)); | 2032 return _response.then((data) => new ProductstatusesListResponse.fromJson(dat
a)); |
2010 } | 2033 } |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2110 _json["users"] = users.map((value) => (value).toJson()).toList(); | 2133 _json["users"] = users.map((value) => (value).toJson()).toList(); |
2111 } | 2134 } |
2112 if (websiteUrl != null) { | 2135 if (websiteUrl != null) { |
2113 _json["websiteUrl"] = websiteUrl; | 2136 _json["websiteUrl"] = websiteUrl; |
2114 } | 2137 } |
2115 return _json; | 2138 return _json; |
2116 } | 2139 } |
2117 } | 2140 } |
2118 | 2141 |
2119 | 2142 |
2120 /** Not documented yet. */ | |
2121 class AccountAdwordsLink { | 2143 class AccountAdwordsLink { |
2122 /** Customer ID of the AdWords account. */ | 2144 /** Customer ID of the AdWords account. */ |
2123 core.String adwordsId; | 2145 core.String adwordsId; |
2124 | 2146 |
2125 /** | 2147 /** |
2126 * Status of the link between this Merchant Center account and the AdWords | 2148 * Status of the link between this Merchant Center account and the AdWords |
2127 * account. | 2149 * account. |
2128 */ | 2150 */ |
2129 core.String status; | 2151 core.String status; |
2130 | 2152 |
(...skipping 15 matching lines...) Expand all Loading... |
2146 _json["adwordsId"] = adwordsId; | 2168 _json["adwordsId"] = adwordsId; |
2147 } | 2169 } |
2148 if (status != null) { | 2170 if (status != null) { |
2149 _json["status"] = status; | 2171 _json["status"] = status; |
2150 } | 2172 } |
2151 return _json; | 2173 return _json; |
2152 } | 2174 } |
2153 } | 2175 } |
2154 | 2176 |
2155 | 2177 |
| 2178 class AccountIdentifier { |
| 2179 /** |
| 2180 * The aggregator ID, set for aggregators and subaccounts (in that case, it |
| 2181 * represents the aggregator of the subaccount). |
| 2182 */ |
| 2183 core.String aggregatorId; |
| 2184 |
| 2185 /** The merchant account ID, set for individual accounts and subaccounts. */ |
| 2186 core.String merchantId; |
| 2187 |
| 2188 |
| 2189 AccountIdentifier(); |
| 2190 |
| 2191 AccountIdentifier.fromJson(core.Map _json) { |
| 2192 if (_json.containsKey("aggregatorId")) { |
| 2193 aggregatorId = _json["aggregatorId"]; |
| 2194 } |
| 2195 if (_json.containsKey("merchantId")) { |
| 2196 merchantId = _json["merchantId"]; |
| 2197 } |
| 2198 } |
| 2199 |
| 2200 core.Map toJson() { |
| 2201 var _json = new core.Map(); |
| 2202 if (aggregatorId != null) { |
| 2203 _json["aggregatorId"] = aggregatorId; |
| 2204 } |
| 2205 if (merchantId != null) { |
| 2206 _json["merchantId"] = merchantId; |
| 2207 } |
| 2208 return _json; |
| 2209 } |
| 2210 } |
| 2211 |
| 2212 |
2156 /** The shipping settings of a merchant account. */ | 2213 /** The shipping settings of a merchant account. */ |
2157 class AccountShipping { | 2214 class AccountShipping { |
2158 /** The ID of the account to which these account shipping settings belong. */ | 2215 /** The ID of the account to which these account shipping settings belong. */ |
2159 core.String accountId; | 2216 core.String accountId; |
2160 | 2217 |
2161 /** Carrier-based shipping calculations. */ | 2218 /** Carrier-based shipping calculations. */ |
2162 core.List<AccountShippingCarrierRate> carrierRates; | 2219 core.List<AccountShippingCarrierRate> carrierRates; |
2163 | 2220 |
2164 /** | 2221 /** |
2165 * Identifies what kind of resource this is. Value: the fixed string | 2222 * Identifies what kind of resource this is. Value: the fixed string |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2305 _json["saleCountry"] = saleCountry; | 2362 _json["saleCountry"] = saleCountry; |
2306 } | 2363 } |
2307 if (shippingOrigin != null) { | 2364 if (shippingOrigin != null) { |
2308 _json["shippingOrigin"] = shippingOrigin; | 2365 _json["shippingOrigin"] = shippingOrigin; |
2309 } | 2366 } |
2310 return _json; | 2367 return _json; |
2311 } | 2368 } |
2312 } | 2369 } |
2313 | 2370 |
2314 | 2371 |
2315 /** Not documented yet. */ | |
2316 class AccountShippingCondition { | 2372 class AccountShippingCondition { |
2317 /** | 2373 /** |
2318 * Delivery location in terms of a location group name. A location group with | 2374 * Delivery location in terms of a location group name. A location group with |
2319 * this name must be specified among location groups. | 2375 * this name must be specified among location groups. |
2320 */ | 2376 */ |
2321 core.String deliveryLocationGroup; | 2377 core.String deliveryLocationGroup; |
2322 | 2378 |
2323 /** | 2379 /** |
2324 * Delivery location in terms of a location ID. Can be used to represent | 2380 * Delivery location in terms of a location ID. Can be used to represent |
2325 * administrative areas, smaller country subdivisions, or cities. | 2381 * administrative areas, smaller country subdivisions, or cities. |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2562 _json["name"] = name; | 2618 _json["name"] = name; |
2563 } | 2619 } |
2564 if (saleCountry != null) { | 2620 if (saleCountry != null) { |
2565 _json["saleCountry"] = saleCountry; | 2621 _json["saleCountry"] = saleCountry; |
2566 } | 2622 } |
2567 return _json; | 2623 return _json; |
2568 } | 2624 } |
2569 } | 2625 } |
2570 | 2626 |
2571 | 2627 |
2572 /** Not documented yet. */ | |
2573 class AccountShippingRateTableCell { | 2628 class AccountShippingRateTableCell { |
2574 /** | 2629 /** |
2575 * Conditions for which the cell is valid. All cells in a table must use the | 2630 * Conditions for which the cell is valid. All cells in a table must use the |
2576 * same dimension or pair of dimensions among price, weight, shipping label or | 2631 * same dimension or pair of dimensions among price, weight, shipping label or |
2577 * delivery location. If no condition is specified, the cell acts as a | 2632 * delivery location. If no condition is specified, the cell acts as a |
2578 * catch-all and matches all the elements that are not matched by other cells | 2633 * catch-all and matches all the elements that are not matched by other cells |
2579 * in this dimension. | 2634 * in this dimension. |
2580 */ | 2635 */ |
2581 AccountShippingCondition condition; | 2636 AccountShippingCondition condition; |
2582 | 2637 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2836 _json["dataQualityIssues"] = dataQualityIssues.map((value) => (value).toJs
on()).toList(); | 2891 _json["dataQualityIssues"] = dataQualityIssues.map((value) => (value).toJs
on()).toList(); |
2837 } | 2892 } |
2838 if (kind != null) { | 2893 if (kind != null) { |
2839 _json["kind"] = kind; | 2894 _json["kind"] = kind; |
2840 } | 2895 } |
2841 return _json; | 2896 return _json; |
2842 } | 2897 } |
2843 } | 2898 } |
2844 | 2899 |
2845 | 2900 |
2846 /** Not documented yet. */ | |
2847 class AccountStatusDataQualityIssue { | 2901 class AccountStatusDataQualityIssue { |
2848 /** Country for which this issue is reported. */ | 2902 /** Country for which this issue is reported. */ |
2849 core.String country; | 2903 core.String country; |
2850 | 2904 |
2851 /** Actual value displayed on the landing page. */ | 2905 /** Actual value displayed on the landing page. */ |
2852 core.String displayedValue; | 2906 core.String displayedValue; |
2853 | 2907 |
2854 /** Example items featuring the issue. */ | 2908 /** Example items featuring the issue. */ |
2855 core.List<AccountStatusExampleItem> exampleItems; | 2909 core.List<AccountStatusExampleItem> exampleItems; |
2856 | 2910 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3103 _json["shippingTaxed"] = shippingTaxed; | 3157 _json["shippingTaxed"] = shippingTaxed; |
3104 } | 3158 } |
3105 if (useGlobalRate != null) { | 3159 if (useGlobalRate != null) { |
3106 _json["useGlobalRate"] = useGlobalRate; | 3160 _json["useGlobalRate"] = useGlobalRate; |
3107 } | 3161 } |
3108 return _json; | 3162 return _json; |
3109 } | 3163 } |
3110 } | 3164 } |
3111 | 3165 |
3112 | 3166 |
3113 /** Not documented yet. */ | |
3114 class AccountUser { | 3167 class AccountUser { |
3115 /** Whether user is an admin. */ | 3168 /** Whether user is an admin. */ |
3116 core.bool admin; | 3169 core.bool admin; |
3117 | 3170 |
3118 /** User's email address. */ | 3171 /** User's email address. */ |
3119 core.String emailAddress; | 3172 core.String emailAddress; |
3120 | 3173 |
3121 | 3174 |
3122 AccountUser(); | 3175 AccountUser(); |
3123 | 3176 |
(...skipping 12 matching lines...) Expand all Loading... |
3136 _json["admin"] = admin; | 3189 _json["admin"] = admin; |
3137 } | 3190 } |
3138 if (emailAddress != null) { | 3191 if (emailAddress != null) { |
3139 _json["emailAddress"] = emailAddress; | 3192 _json["emailAddress"] = emailAddress; |
3140 } | 3193 } |
3141 return _json; | 3194 return _json; |
3142 } | 3195 } |
3143 } | 3196 } |
3144 | 3197 |
3145 | 3198 |
3146 /** Not documented yet. */ | 3199 class AccountsAuthInfoResponse { |
| 3200 /** |
| 3201 * The account identifiers corresponding to the authenticated user. |
| 3202 * - For an individual account: only the merchant ID is defined |
| 3203 * - For an aggregator: only the aggregator ID is defined |
| 3204 * - For a subaccount of an MCA: both the merchant ID and the aggregator ID |
| 3205 * are defined. |
| 3206 */ |
| 3207 core.List<AccountIdentifier> accountIdentifiers; |
| 3208 |
| 3209 /** |
| 3210 * Identifies what kind of resource this is. Value: the fixed string |
| 3211 * "content#accountsAuthInfoResponse". |
| 3212 */ |
| 3213 core.String kind; |
| 3214 |
| 3215 |
| 3216 AccountsAuthInfoResponse(); |
| 3217 |
| 3218 AccountsAuthInfoResponse.fromJson(core.Map _json) { |
| 3219 if (_json.containsKey("accountIdentifiers")) { |
| 3220 accountIdentifiers = _json["accountIdentifiers"].map((value) => new Accoun
tIdentifier.fromJson(value)).toList(); |
| 3221 } |
| 3222 if (_json.containsKey("kind")) { |
| 3223 kind = _json["kind"]; |
| 3224 } |
| 3225 } |
| 3226 |
| 3227 core.Map toJson() { |
| 3228 var _json = new core.Map(); |
| 3229 if (accountIdentifiers != null) { |
| 3230 _json["accountIdentifiers"] = accountIdentifiers.map((value) => (value).to
Json()).toList(); |
| 3231 } |
| 3232 if (kind != null) { |
| 3233 _json["kind"] = kind; |
| 3234 } |
| 3235 return _json; |
| 3236 } |
| 3237 } |
| 3238 |
| 3239 |
3147 class AccountsCustomBatchRequest { | 3240 class AccountsCustomBatchRequest { |
3148 /** The request entries to be processed in the batch. */ | 3241 /** The request entries to be processed in the batch. */ |
3149 core.List<AccountsCustomBatchRequestEntry> entries; | 3242 core.List<AccountsCustomBatchRequestEntry> entries; |
3150 | 3243 |
3151 | 3244 |
3152 AccountsCustomBatchRequest(); | 3245 AccountsCustomBatchRequest(); |
3153 | 3246 |
3154 AccountsCustomBatchRequest.fromJson(core.Map _json) { | 3247 AccountsCustomBatchRequest.fromJson(core.Map _json) { |
3155 if (_json.containsKey("entries")) { | 3248 if (_json.containsKey("entries")) { |
3156 entries = _json["entries"].map((value) => new AccountsCustomBatchRequestEn
try.fromJson(value)).toList(); | 3249 entries = _json["entries"].map((value) => new AccountsCustomBatchRequestEn
try.fromJson(value)).toList(); |
(...skipping 23 matching lines...) Expand all Loading... |
3180 * or delete. | 3273 * or delete. |
3181 */ | 3274 */ |
3182 core.String accountId; | 3275 core.String accountId; |
3183 | 3276 |
3184 /** An entry ID, unique within the batch request. */ | 3277 /** An entry ID, unique within the batch request. */ |
3185 core.int batchId; | 3278 core.int batchId; |
3186 | 3279 |
3187 /** The ID of the managing account. */ | 3280 /** The ID of the managing account. */ |
3188 core.String merchantId; | 3281 core.String merchantId; |
3189 | 3282 |
3190 /** Not documented yet. */ | |
3191 core.String method; | 3283 core.String method; |
3192 | 3284 |
3193 | 3285 |
3194 AccountsCustomBatchRequestEntry(); | 3286 AccountsCustomBatchRequestEntry(); |
3195 | 3287 |
3196 AccountsCustomBatchRequestEntry.fromJson(core.Map _json) { | 3288 AccountsCustomBatchRequestEntry.fromJson(core.Map _json) { |
3197 if (_json.containsKey("account")) { | 3289 if (_json.containsKey("account")) { |
3198 account = new Account.fromJson(_json["account"]); | 3290 account = new Account.fromJson(_json["account"]); |
3199 } | 3291 } |
3200 if (_json.containsKey("accountId")) { | 3292 if (_json.containsKey("accountId")) { |
(...skipping 25 matching lines...) Expand all Loading... |
3226 _json["merchantId"] = merchantId; | 3318 _json["merchantId"] = merchantId; |
3227 } | 3319 } |
3228 if (method != null) { | 3320 if (method != null) { |
3229 _json["method"] = method; | 3321 _json["method"] = method; |
3230 } | 3322 } |
3231 return _json; | 3323 return _json; |
3232 } | 3324 } |
3233 } | 3325 } |
3234 | 3326 |
3235 | 3327 |
3236 /** Not documented yet. */ | |
3237 class AccountsCustomBatchResponse { | 3328 class AccountsCustomBatchResponse { |
3238 /** The result of the execution of the batch requests. */ | 3329 /** The result of the execution of the batch requests. */ |
3239 core.List<AccountsCustomBatchResponseEntry> entries; | 3330 core.List<AccountsCustomBatchResponseEntry> entries; |
3240 | 3331 |
3241 /** | 3332 /** |
3242 * Identifies what kind of resource this is. Value: the fixed string | 3333 * Identifies what kind of resource this is. Value: the fixed string |
3243 * "content#accountsCustomBatchResponse". | 3334 * "content#accountsCustomBatchResponse". |
3244 */ | 3335 */ |
3245 core.String kind; | 3336 core.String kind; |
3246 | 3337 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3319 _json["errors"] = (errors).toJson(); | 3410 _json["errors"] = (errors).toJson(); |
3320 } | 3411 } |
3321 if (kind != null) { | 3412 if (kind != null) { |
3322 _json["kind"] = kind; | 3413 _json["kind"] = kind; |
3323 } | 3414 } |
3324 return _json; | 3415 return _json; |
3325 } | 3416 } |
3326 } | 3417 } |
3327 | 3418 |
3328 | 3419 |
3329 /** Not documented yet. */ | |
3330 class AccountsListResponse { | 3420 class AccountsListResponse { |
3331 /** | 3421 /** |
3332 * Identifies what kind of resource this is. Value: the fixed string | 3422 * Identifies what kind of resource this is. Value: the fixed string |
3333 * "content#accountsListResponse". | 3423 * "content#accountsListResponse". |
3334 */ | 3424 */ |
3335 core.String kind; | 3425 core.String kind; |
3336 | 3426 |
3337 /** The token for the retrieval of the next page of accounts. */ | 3427 /** The token for the retrieval of the next page of accounts. */ |
3338 core.String nextPageToken; | 3428 core.String nextPageToken; |
3339 | 3429 |
3340 /** Not documented yet. */ | |
3341 core.List<Account> resources; | 3430 core.List<Account> resources; |
3342 | 3431 |
3343 | 3432 |
3344 AccountsListResponse(); | 3433 AccountsListResponse(); |
3345 | 3434 |
3346 AccountsListResponse.fromJson(core.Map _json) { | 3435 AccountsListResponse.fromJson(core.Map _json) { |
3347 if (_json.containsKey("kind")) { | 3436 if (_json.containsKey("kind")) { |
3348 kind = _json["kind"]; | 3437 kind = _json["kind"]; |
3349 } | 3438 } |
3350 if (_json.containsKey("nextPageToken")) { | 3439 if (_json.containsKey("nextPageToken")) { |
(...skipping 13 matching lines...) Expand all Loading... |
3364 _json["nextPageToken"] = nextPageToken; | 3453 _json["nextPageToken"] = nextPageToken; |
3365 } | 3454 } |
3366 if (resources != null) { | 3455 if (resources != null) { |
3367 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 3456 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
3368 } | 3457 } |
3369 return _json; | 3458 return _json; |
3370 } | 3459 } |
3371 } | 3460 } |
3372 | 3461 |
3373 | 3462 |
3374 /** Not documented yet. */ | |
3375 class AccountshippingCustomBatchRequest { | 3463 class AccountshippingCustomBatchRequest { |
3376 /** The request entries to be processed in the batch. */ | 3464 /** The request entries to be processed in the batch. */ |
3377 core.List<AccountshippingCustomBatchRequestEntry> entries; | 3465 core.List<AccountshippingCustomBatchRequestEntry> entries; |
3378 | 3466 |
3379 | 3467 |
3380 AccountshippingCustomBatchRequest(); | 3468 AccountshippingCustomBatchRequest(); |
3381 | 3469 |
3382 AccountshippingCustomBatchRequest.fromJson(core.Map _json) { | 3470 AccountshippingCustomBatchRequest.fromJson(core.Map _json) { |
3383 if (_json.containsKey("entries")) { | 3471 if (_json.containsKey("entries")) { |
3384 entries = _json["entries"].map((value) => new AccountshippingCustomBatchRe
questEntry.fromJson(value)).toList(); | 3472 entries = _json["entries"].map((value) => new AccountshippingCustomBatchRe
questEntry.fromJson(value)).toList(); |
(...skipping 22 matching lines...) Expand all Loading... |
3407 * update. | 3495 * update. |
3408 */ | 3496 */ |
3409 AccountShipping accountShipping; | 3497 AccountShipping accountShipping; |
3410 | 3498 |
3411 /** An entry ID, unique within the batch request. */ | 3499 /** An entry ID, unique within the batch request. */ |
3412 core.int batchId; | 3500 core.int batchId; |
3413 | 3501 |
3414 /** The ID of the managing account. */ | 3502 /** The ID of the managing account. */ |
3415 core.String merchantId; | 3503 core.String merchantId; |
3416 | 3504 |
3417 /** Not documented yet. */ | |
3418 core.String method; | 3505 core.String method; |
3419 | 3506 |
3420 | 3507 |
3421 AccountshippingCustomBatchRequestEntry(); | 3508 AccountshippingCustomBatchRequestEntry(); |
3422 | 3509 |
3423 AccountshippingCustomBatchRequestEntry.fromJson(core.Map _json) { | 3510 AccountshippingCustomBatchRequestEntry.fromJson(core.Map _json) { |
3424 if (_json.containsKey("accountId")) { | 3511 if (_json.containsKey("accountId")) { |
3425 accountId = _json["accountId"]; | 3512 accountId = _json["accountId"]; |
3426 } | 3513 } |
3427 if (_json.containsKey("accountShipping")) { | 3514 if (_json.containsKey("accountShipping")) { |
(...skipping 25 matching lines...) Expand all Loading... |
3453 _json["merchantId"] = merchantId; | 3540 _json["merchantId"] = merchantId; |
3454 } | 3541 } |
3455 if (method != null) { | 3542 if (method != null) { |
3456 _json["method"] = method; | 3543 _json["method"] = method; |
3457 } | 3544 } |
3458 return _json; | 3545 return _json; |
3459 } | 3546 } |
3460 } | 3547 } |
3461 | 3548 |
3462 | 3549 |
3463 /** Not documented yet. */ | |
3464 class AccountshippingCustomBatchResponse { | 3550 class AccountshippingCustomBatchResponse { |
3465 /** The result of the execution of the batch requests. */ | 3551 /** The result of the execution of the batch requests. */ |
3466 core.List<AccountshippingCustomBatchResponseEntry> entries; | 3552 core.List<AccountshippingCustomBatchResponseEntry> entries; |
3467 | 3553 |
3468 /** | 3554 /** |
3469 * Identifies what kind of resource this is. Value: the fixed string | 3555 * Identifies what kind of resource this is. Value: the fixed string |
3470 * "content#accountshippingCustomBatchResponse". | 3556 * "content#accountshippingCustomBatchResponse". |
3471 */ | 3557 */ |
3472 core.String kind; | 3558 core.String kind; |
3473 | 3559 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3543 _json["errors"] = (errors).toJson(); | 3629 _json["errors"] = (errors).toJson(); |
3544 } | 3630 } |
3545 if (kind != null) { | 3631 if (kind != null) { |
3546 _json["kind"] = kind; | 3632 _json["kind"] = kind; |
3547 } | 3633 } |
3548 return _json; | 3634 return _json; |
3549 } | 3635 } |
3550 } | 3636 } |
3551 | 3637 |
3552 | 3638 |
3553 /** Not documented yet. */ | |
3554 class AccountshippingListResponse { | 3639 class AccountshippingListResponse { |
3555 /** | 3640 /** |
3556 * Identifies what kind of resource this is. Value: the fixed string | 3641 * Identifies what kind of resource this is. Value: the fixed string |
3557 * "content#accountshippingListResponse". | 3642 * "content#accountshippingListResponse". |
3558 */ | 3643 */ |
3559 core.String kind; | 3644 core.String kind; |
3560 | 3645 |
3561 /** | 3646 /** |
3562 * The token for the retrieval of the next page of account shipping settings. | 3647 * The token for the retrieval of the next page of account shipping settings. |
3563 */ | 3648 */ |
3564 core.String nextPageToken; | 3649 core.String nextPageToken; |
3565 | 3650 |
3566 /** Not documented yet. */ | |
3567 core.List<AccountShipping> resources; | 3651 core.List<AccountShipping> resources; |
3568 | 3652 |
3569 | 3653 |
3570 AccountshippingListResponse(); | 3654 AccountshippingListResponse(); |
3571 | 3655 |
3572 AccountshippingListResponse.fromJson(core.Map _json) { | 3656 AccountshippingListResponse.fromJson(core.Map _json) { |
3573 if (_json.containsKey("kind")) { | 3657 if (_json.containsKey("kind")) { |
3574 kind = _json["kind"]; | 3658 kind = _json["kind"]; |
3575 } | 3659 } |
3576 if (_json.containsKey("nextPageToken")) { | 3660 if (_json.containsKey("nextPageToken")) { |
(...skipping 13 matching lines...) Expand all Loading... |
3590 _json["nextPageToken"] = nextPageToken; | 3674 _json["nextPageToken"] = nextPageToken; |
3591 } | 3675 } |
3592 if (resources != null) { | 3676 if (resources != null) { |
3593 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 3677 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
3594 } | 3678 } |
3595 return _json; | 3679 return _json; |
3596 } | 3680 } |
3597 } | 3681 } |
3598 | 3682 |
3599 | 3683 |
3600 /** Not documented yet. */ | |
3601 class AccountstatusesCustomBatchRequest { | 3684 class AccountstatusesCustomBatchRequest { |
3602 /** The request entries to be processed in the batch. */ | 3685 /** The request entries to be processed in the batch. */ |
3603 core.List<AccountstatusesCustomBatchRequestEntry> entries; | 3686 core.List<AccountstatusesCustomBatchRequestEntry> entries; |
3604 | 3687 |
3605 | 3688 |
3606 AccountstatusesCustomBatchRequest(); | 3689 AccountstatusesCustomBatchRequest(); |
3607 | 3690 |
3608 AccountstatusesCustomBatchRequest.fromJson(core.Map _json) { | 3691 AccountstatusesCustomBatchRequest.fromJson(core.Map _json) { |
3609 if (_json.containsKey("entries")) { | 3692 if (_json.containsKey("entries")) { |
3610 entries = _json["entries"].map((value) => new AccountstatusesCustomBatchRe
questEntry.fromJson(value)).toList(); | 3693 entries = _json["entries"].map((value) => new AccountstatusesCustomBatchRe
questEntry.fromJson(value)).toList(); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3665 _json["merchantId"] = merchantId; | 3748 _json["merchantId"] = merchantId; |
3666 } | 3749 } |
3667 if (method != null) { | 3750 if (method != null) { |
3668 _json["method"] = method; | 3751 _json["method"] = method; |
3669 } | 3752 } |
3670 return _json; | 3753 return _json; |
3671 } | 3754 } |
3672 } | 3755 } |
3673 | 3756 |
3674 | 3757 |
3675 /** Not documented yet. */ | |
3676 class AccountstatusesCustomBatchResponse { | 3758 class AccountstatusesCustomBatchResponse { |
3677 /** The result of the execution of the batch requests. */ | 3759 /** The result of the execution of the batch requests. */ |
3678 core.List<AccountstatusesCustomBatchResponseEntry> entries; | 3760 core.List<AccountstatusesCustomBatchResponseEntry> entries; |
3679 | 3761 |
3680 /** | 3762 /** |
3681 * Identifies what kind of resource this is. Value: the fixed string | 3763 * Identifies what kind of resource this is. Value: the fixed string |
3682 * "content#accountstatusesCustomBatchResponse". | 3764 * "content#accountstatusesCustomBatchResponse". |
3683 */ | 3765 */ |
3684 core.String kind; | 3766 core.String kind; |
3685 | 3767 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3746 _json["batchId"] = batchId; | 3828 _json["batchId"] = batchId; |
3747 } | 3829 } |
3748 if (errors != null) { | 3830 if (errors != null) { |
3749 _json["errors"] = (errors).toJson(); | 3831 _json["errors"] = (errors).toJson(); |
3750 } | 3832 } |
3751 return _json; | 3833 return _json; |
3752 } | 3834 } |
3753 } | 3835 } |
3754 | 3836 |
3755 | 3837 |
3756 /** Not documented yet. */ | |
3757 class AccountstatusesListResponse { | 3838 class AccountstatusesListResponse { |
3758 /** | 3839 /** |
3759 * Identifies what kind of resource this is. Value: the fixed string | 3840 * Identifies what kind of resource this is. Value: the fixed string |
3760 * "content#accountstatusesListResponse". | 3841 * "content#accountstatusesListResponse". |
3761 */ | 3842 */ |
3762 core.String kind; | 3843 core.String kind; |
3763 | 3844 |
3764 /** The token for the retrieval of the next page of account statuses. */ | 3845 /** The token for the retrieval of the next page of account statuses. */ |
3765 core.String nextPageToken; | 3846 core.String nextPageToken; |
3766 | 3847 |
3767 /** Not documented yet. */ | |
3768 core.List<AccountStatus> resources; | 3848 core.List<AccountStatus> resources; |
3769 | 3849 |
3770 | 3850 |
3771 AccountstatusesListResponse(); | 3851 AccountstatusesListResponse(); |
3772 | 3852 |
3773 AccountstatusesListResponse.fromJson(core.Map _json) { | 3853 AccountstatusesListResponse.fromJson(core.Map _json) { |
3774 if (_json.containsKey("kind")) { | 3854 if (_json.containsKey("kind")) { |
3775 kind = _json["kind"]; | 3855 kind = _json["kind"]; |
3776 } | 3856 } |
3777 if (_json.containsKey("nextPageToken")) { | 3857 if (_json.containsKey("nextPageToken")) { |
(...skipping 13 matching lines...) Expand all Loading... |
3791 _json["nextPageToken"] = nextPageToken; | 3871 _json["nextPageToken"] = nextPageToken; |
3792 } | 3872 } |
3793 if (resources != null) { | 3873 if (resources != null) { |
3794 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 3874 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
3795 } | 3875 } |
3796 return _json; | 3876 return _json; |
3797 } | 3877 } |
3798 } | 3878 } |
3799 | 3879 |
3800 | 3880 |
3801 /** Not documented yet. */ | |
3802 class AccounttaxCustomBatchRequest { | 3881 class AccounttaxCustomBatchRequest { |
3803 /** The request entries to be processed in the batch. */ | 3882 /** The request entries to be processed in the batch. */ |
3804 core.List<AccounttaxCustomBatchRequestEntry> entries; | 3883 core.List<AccounttaxCustomBatchRequestEntry> entries; |
3805 | 3884 |
3806 | 3885 |
3807 AccounttaxCustomBatchRequest(); | 3886 AccounttaxCustomBatchRequest(); |
3808 | 3887 |
3809 AccounttaxCustomBatchRequest.fromJson(core.Map _json) { | 3888 AccounttaxCustomBatchRequest.fromJson(core.Map _json) { |
3810 if (_json.containsKey("entries")) { | 3889 if (_json.containsKey("entries")) { |
3811 entries = _json["entries"].map((value) => new AccounttaxCustomBatchRequest
Entry.fromJson(value)).toList(); | 3890 entries = _json["entries"].map((value) => new AccounttaxCustomBatchRequest
Entry.fromJson(value)).toList(); |
(...skipping 19 matching lines...) Expand all Loading... |
3831 * The account tax settings to update. Only defined if the method is update. | 3910 * The account tax settings to update. Only defined if the method is update. |
3832 */ | 3911 */ |
3833 AccountTax accountTax; | 3912 AccountTax accountTax; |
3834 | 3913 |
3835 /** An entry ID, unique within the batch request. */ | 3914 /** An entry ID, unique within the batch request. */ |
3836 core.int batchId; | 3915 core.int batchId; |
3837 | 3916 |
3838 /** The ID of the managing account. */ | 3917 /** The ID of the managing account. */ |
3839 core.String merchantId; | 3918 core.String merchantId; |
3840 | 3919 |
3841 /** Not documented yet. */ | |
3842 core.String method; | 3920 core.String method; |
3843 | 3921 |
3844 | 3922 |
3845 AccounttaxCustomBatchRequestEntry(); | 3923 AccounttaxCustomBatchRequestEntry(); |
3846 | 3924 |
3847 AccounttaxCustomBatchRequestEntry.fromJson(core.Map _json) { | 3925 AccounttaxCustomBatchRequestEntry.fromJson(core.Map _json) { |
3848 if (_json.containsKey("accountId")) { | 3926 if (_json.containsKey("accountId")) { |
3849 accountId = _json["accountId"]; | 3927 accountId = _json["accountId"]; |
3850 } | 3928 } |
3851 if (_json.containsKey("accountTax")) { | 3929 if (_json.containsKey("accountTax")) { |
(...skipping 25 matching lines...) Expand all Loading... |
3877 _json["merchantId"] = merchantId; | 3955 _json["merchantId"] = merchantId; |
3878 } | 3956 } |
3879 if (method != null) { | 3957 if (method != null) { |
3880 _json["method"] = method; | 3958 _json["method"] = method; |
3881 } | 3959 } |
3882 return _json; | 3960 return _json; |
3883 } | 3961 } |
3884 } | 3962 } |
3885 | 3963 |
3886 | 3964 |
3887 /** Not documented yet. */ | |
3888 class AccounttaxCustomBatchResponse { | 3965 class AccounttaxCustomBatchResponse { |
3889 /** The result of the execution of the batch requests. */ | 3966 /** The result of the execution of the batch requests. */ |
3890 core.List<AccounttaxCustomBatchResponseEntry> entries; | 3967 core.List<AccounttaxCustomBatchResponseEntry> entries; |
3891 | 3968 |
3892 /** | 3969 /** |
3893 * Identifies what kind of resource this is. Value: the fixed string | 3970 * Identifies what kind of resource this is. Value: the fixed string |
3894 * "content#accounttaxCustomBatchResponse". | 3971 * "content#accounttaxCustomBatchResponse". |
3895 */ | 3972 */ |
3896 core.String kind; | 3973 core.String kind; |
3897 | 3974 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3967 _json["errors"] = (errors).toJson(); | 4044 _json["errors"] = (errors).toJson(); |
3968 } | 4045 } |
3969 if (kind != null) { | 4046 if (kind != null) { |
3970 _json["kind"] = kind; | 4047 _json["kind"] = kind; |
3971 } | 4048 } |
3972 return _json; | 4049 return _json; |
3973 } | 4050 } |
3974 } | 4051 } |
3975 | 4052 |
3976 | 4053 |
3977 /** Not documented yet. */ | |
3978 class AccounttaxListResponse { | 4054 class AccounttaxListResponse { |
3979 /** | 4055 /** |
3980 * Identifies what kind of resource this is. Value: the fixed string | 4056 * Identifies what kind of resource this is. Value: the fixed string |
3981 * "content#accounttaxListResponse". | 4057 * "content#accounttaxListResponse". |
3982 */ | 4058 */ |
3983 core.String kind; | 4059 core.String kind; |
3984 | 4060 |
3985 /** The token for the retrieval of the next page of account tax settings. */ | 4061 /** The token for the retrieval of the next page of account tax settings. */ |
3986 core.String nextPageToken; | 4062 core.String nextPageToken; |
3987 | 4063 |
3988 /** Not documented yet. */ | |
3989 core.List<AccountTax> resources; | 4064 core.List<AccountTax> resources; |
3990 | 4065 |
3991 | 4066 |
3992 AccounttaxListResponse(); | 4067 AccounttaxListResponse(); |
3993 | 4068 |
3994 AccounttaxListResponse.fromJson(core.Map _json) { | 4069 AccounttaxListResponse.fromJson(core.Map _json) { |
3995 if (_json.containsKey("kind")) { | 4070 if (_json.containsKey("kind")) { |
3996 kind = _json["kind"]; | 4071 kind = _json["kind"]; |
3997 } | 4072 } |
3998 if (_json.containsKey("nextPageToken")) { | 4073 if (_json.containsKey("nextPageToken")) { |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4228 _json["username"] = username; | 4303 _json["username"] = username; |
4229 } | 4304 } |
4230 if (weekday != null) { | 4305 if (weekday != null) { |
4231 _json["weekday"] = weekday; | 4306 _json["weekday"] = weekday; |
4232 } | 4307 } |
4233 return _json; | 4308 return _json; |
4234 } | 4309 } |
4235 } | 4310 } |
4236 | 4311 |
4237 | 4312 |
4238 /** Not documented yet. */ | |
4239 class DatafeedFormat { | 4313 class DatafeedFormat { |
4240 /** | 4314 /** |
4241 * Delimiter for the separation of values in a delimiter-separated values | 4315 * Delimiter for the separation of values in a delimiter-separated values |
4242 * feed. If not specified, the delimiter will be auto-detected. Ignored for | 4316 * feed. If not specified, the delimiter will be auto-detected. Ignored for |
4243 * non-DSV data feeds. | 4317 * non-DSV data feeds. |
4244 */ | 4318 */ |
4245 core.String columnDelimiter; | 4319 core.String columnDelimiter; |
4246 | 4320 |
4247 /** | 4321 /** |
4248 * Character encoding scheme of the data feed. If not specified, the encoding | 4322 * Character encoding scheme of the data feed. If not specified, the encoding |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4457 _json["lineNumber"] = lineNumber; | 4531 _json["lineNumber"] = lineNumber; |
4458 } | 4532 } |
4459 if (value != null) { | 4533 if (value != null) { |
4460 _json["value"] = value; | 4534 _json["value"] = value; |
4461 } | 4535 } |
4462 return _json; | 4536 return _json; |
4463 } | 4537 } |
4464 } | 4538 } |
4465 | 4539 |
4466 | 4540 |
4467 /** Not documented yet. */ | |
4468 class DatafeedsCustomBatchRequest { | 4541 class DatafeedsCustomBatchRequest { |
4469 /** The request entries to be processed in the batch. */ | 4542 /** The request entries to be processed in the batch. */ |
4470 core.List<DatafeedsCustomBatchRequestEntry> entries; | 4543 core.List<DatafeedsCustomBatchRequestEntry> entries; |
4471 | 4544 |
4472 | 4545 |
4473 DatafeedsCustomBatchRequest(); | 4546 DatafeedsCustomBatchRequest(); |
4474 | 4547 |
4475 DatafeedsCustomBatchRequest.fromJson(core.Map _json) { | 4548 DatafeedsCustomBatchRequest.fromJson(core.Map _json) { |
4476 if (_json.containsKey("entries")) { | 4549 if (_json.containsKey("entries")) { |
4477 entries = _json["entries"].map((value) => new DatafeedsCustomBatchRequestE
ntry.fromJson(value)).toList(); | 4550 entries = _json["entries"].map((value) => new DatafeedsCustomBatchRequestE
ntry.fromJson(value)).toList(); |
(...skipping 17 matching lines...) Expand all Loading... |
4495 | 4568 |
4496 /** The data feed to insert. */ | 4569 /** The data feed to insert. */ |
4497 Datafeed datafeed; | 4570 Datafeed datafeed; |
4498 | 4571 |
4499 /** The ID of the data feed to get or delete. */ | 4572 /** The ID of the data feed to get or delete. */ |
4500 core.String datafeedId; | 4573 core.String datafeedId; |
4501 | 4574 |
4502 /** The ID of the managing account. */ | 4575 /** The ID of the managing account. */ |
4503 core.String merchantId; | 4576 core.String merchantId; |
4504 | 4577 |
4505 /** Not documented yet. */ | |
4506 core.String method; | 4578 core.String method; |
4507 | 4579 |
4508 | 4580 |
4509 DatafeedsCustomBatchRequestEntry(); | 4581 DatafeedsCustomBatchRequestEntry(); |
4510 | 4582 |
4511 DatafeedsCustomBatchRequestEntry.fromJson(core.Map _json) { | 4583 DatafeedsCustomBatchRequestEntry.fromJson(core.Map _json) { |
4512 if (_json.containsKey("batchId")) { | 4584 if (_json.containsKey("batchId")) { |
4513 batchId = _json["batchId"]; | 4585 batchId = _json["batchId"]; |
4514 } | 4586 } |
4515 if (_json.containsKey("datafeed")) { | 4587 if (_json.containsKey("datafeed")) { |
(...skipping 25 matching lines...) Expand all Loading... |
4541 _json["merchantId"] = merchantId; | 4613 _json["merchantId"] = merchantId; |
4542 } | 4614 } |
4543 if (method != null) { | 4615 if (method != null) { |
4544 _json["method"] = method; | 4616 _json["method"] = method; |
4545 } | 4617 } |
4546 return _json; | 4618 return _json; |
4547 } | 4619 } |
4548 } | 4620 } |
4549 | 4621 |
4550 | 4622 |
4551 /** Not documented yet. */ | |
4552 class DatafeedsCustomBatchResponse { | 4623 class DatafeedsCustomBatchResponse { |
4553 /** The result of the execution of the batch requests. */ | 4624 /** The result of the execution of the batch requests. */ |
4554 core.List<DatafeedsCustomBatchResponseEntry> entries; | 4625 core.List<DatafeedsCustomBatchResponseEntry> entries; |
4555 | 4626 |
4556 /** | 4627 /** |
4557 * Identifies what kind of resource this is. Value: the fixed string | 4628 * Identifies what kind of resource this is. Value: the fixed string |
4558 * "content#datafeedsCustomBatchResponse". | 4629 * "content#datafeedsCustomBatchResponse". |
4559 */ | 4630 */ |
4560 core.String kind; | 4631 core.String kind; |
4561 | 4632 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4621 _json["datafeed"] = (datafeed).toJson(); | 4692 _json["datafeed"] = (datafeed).toJson(); |
4622 } | 4693 } |
4623 if (errors != null) { | 4694 if (errors != null) { |
4624 _json["errors"] = (errors).toJson(); | 4695 _json["errors"] = (errors).toJson(); |
4625 } | 4696 } |
4626 return _json; | 4697 return _json; |
4627 } | 4698 } |
4628 } | 4699 } |
4629 | 4700 |
4630 | 4701 |
4631 /** Not documented yet. */ | |
4632 class DatafeedsListResponse { | 4702 class DatafeedsListResponse { |
4633 /** | 4703 /** |
4634 * Identifies what kind of resource this is. Value: the fixed string | 4704 * Identifies what kind of resource this is. Value: the fixed string |
4635 * "content#datafeedsListResponse". | 4705 * "content#datafeedsListResponse". |
4636 */ | 4706 */ |
4637 core.String kind; | 4707 core.String kind; |
4638 | 4708 |
4639 /** The token for the retrieval of the next page of datafeeds. */ | 4709 /** The token for the retrieval of the next page of datafeeds. */ |
4640 core.String nextPageToken; | 4710 core.String nextPageToken; |
4641 | 4711 |
4642 /** Not documented yet. */ | |
4643 core.List<Datafeed> resources; | 4712 core.List<Datafeed> resources; |
4644 | 4713 |
4645 | 4714 |
4646 DatafeedsListResponse(); | 4715 DatafeedsListResponse(); |
4647 | 4716 |
4648 DatafeedsListResponse.fromJson(core.Map _json) { | 4717 DatafeedsListResponse.fromJson(core.Map _json) { |
4649 if (_json.containsKey("kind")) { | 4718 if (_json.containsKey("kind")) { |
4650 kind = _json["kind"]; | 4719 kind = _json["kind"]; |
4651 } | 4720 } |
4652 if (_json.containsKey("nextPageToken")) { | 4721 if (_json.containsKey("nextPageToken")) { |
(...skipping 13 matching lines...) Expand all Loading... |
4666 _json["nextPageToken"] = nextPageToken; | 4735 _json["nextPageToken"] = nextPageToken; |
4667 } | 4736 } |
4668 if (resources != null) { | 4737 if (resources != null) { |
4669 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 4738 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
4670 } | 4739 } |
4671 return _json; | 4740 return _json; |
4672 } | 4741 } |
4673 } | 4742 } |
4674 | 4743 |
4675 | 4744 |
4676 /** Not documented yet. */ | |
4677 class DatafeedstatusesCustomBatchRequest { | 4745 class DatafeedstatusesCustomBatchRequest { |
4678 /** The request entries to be processed in the batch. */ | 4746 /** The request entries to be processed in the batch. */ |
4679 core.List<DatafeedstatusesCustomBatchRequestEntry> entries; | 4747 core.List<DatafeedstatusesCustomBatchRequestEntry> entries; |
4680 | 4748 |
4681 | 4749 |
4682 DatafeedstatusesCustomBatchRequest(); | 4750 DatafeedstatusesCustomBatchRequest(); |
4683 | 4751 |
4684 DatafeedstatusesCustomBatchRequest.fromJson(core.Map _json) { | 4752 DatafeedstatusesCustomBatchRequest.fromJson(core.Map _json) { |
4685 if (_json.containsKey("entries")) { | 4753 if (_json.containsKey("entries")) { |
4686 entries = _json["entries"].map((value) => new DatafeedstatusesCustomBatchR
equestEntry.fromJson(value)).toList(); | 4754 entries = _json["entries"].map((value) => new DatafeedstatusesCustomBatchR
equestEntry.fromJson(value)).toList(); |
(...skipping 14 matching lines...) Expand all Loading... |
4701 class DatafeedstatusesCustomBatchRequestEntry { | 4769 class DatafeedstatusesCustomBatchRequestEntry { |
4702 /** An entry ID, unique within the batch request. */ | 4770 /** An entry ID, unique within the batch request. */ |
4703 core.int batchId; | 4771 core.int batchId; |
4704 | 4772 |
4705 /** The ID of the data feed to get or delete. */ | 4773 /** The ID of the data feed to get or delete. */ |
4706 core.String datafeedId; | 4774 core.String datafeedId; |
4707 | 4775 |
4708 /** The ID of the managing account. */ | 4776 /** The ID of the managing account. */ |
4709 core.String merchantId; | 4777 core.String merchantId; |
4710 | 4778 |
4711 /** Not documented yet. */ | |
4712 core.String method; | 4779 core.String method; |
4713 | 4780 |
4714 | 4781 |
4715 DatafeedstatusesCustomBatchRequestEntry(); | 4782 DatafeedstatusesCustomBatchRequestEntry(); |
4716 | 4783 |
4717 DatafeedstatusesCustomBatchRequestEntry.fromJson(core.Map _json) { | 4784 DatafeedstatusesCustomBatchRequestEntry.fromJson(core.Map _json) { |
4718 if (_json.containsKey("batchId")) { | 4785 if (_json.containsKey("batchId")) { |
4719 batchId = _json["batchId"]; | 4786 batchId = _json["batchId"]; |
4720 } | 4787 } |
4721 if (_json.containsKey("datafeedId")) { | 4788 if (_json.containsKey("datafeedId")) { |
(...skipping 19 matching lines...) Expand all Loading... |
4741 _json["merchantId"] = merchantId; | 4808 _json["merchantId"] = merchantId; |
4742 } | 4809 } |
4743 if (method != null) { | 4810 if (method != null) { |
4744 _json["method"] = method; | 4811 _json["method"] = method; |
4745 } | 4812 } |
4746 return _json; | 4813 return _json; |
4747 } | 4814 } |
4748 } | 4815 } |
4749 | 4816 |
4750 | 4817 |
4751 /** Not documented yet. */ | |
4752 class DatafeedstatusesCustomBatchResponse { | 4818 class DatafeedstatusesCustomBatchResponse { |
4753 /** The result of the execution of the batch requests. */ | 4819 /** The result of the execution of the batch requests. */ |
4754 core.List<DatafeedstatusesCustomBatchResponseEntry> entries; | 4820 core.List<DatafeedstatusesCustomBatchResponseEntry> entries; |
4755 | 4821 |
4756 /** | 4822 /** |
4757 * Identifies what kind of resource this is. Value: the fixed string | 4823 * Identifies what kind of resource this is. Value: the fixed string |
4758 * "content#datafeedstatusesCustomBatchResponse". | 4824 * "content#datafeedstatusesCustomBatchResponse". |
4759 */ | 4825 */ |
4760 core.String kind; | 4826 core.String kind; |
4761 | 4827 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4822 _json["datafeedStatus"] = (datafeedStatus).toJson(); | 4888 _json["datafeedStatus"] = (datafeedStatus).toJson(); |
4823 } | 4889 } |
4824 if (errors != null) { | 4890 if (errors != null) { |
4825 _json["errors"] = (errors).toJson(); | 4891 _json["errors"] = (errors).toJson(); |
4826 } | 4892 } |
4827 return _json; | 4893 return _json; |
4828 } | 4894 } |
4829 } | 4895 } |
4830 | 4896 |
4831 | 4897 |
4832 /** Not documented yet. */ | |
4833 class DatafeedstatusesListResponse { | 4898 class DatafeedstatusesListResponse { |
4834 /** | 4899 /** |
4835 * Identifies what kind of resource this is. Value: the fixed string | 4900 * Identifies what kind of resource this is. Value: the fixed string |
4836 * "content#datafeedstatusesListResponse". | 4901 * "content#datafeedstatusesListResponse". |
4837 */ | 4902 */ |
4838 core.String kind; | 4903 core.String kind; |
4839 | 4904 |
4840 /** The token for the retrieval of the next page of datafeed statuses. */ | 4905 /** The token for the retrieval of the next page of datafeed statuses. */ |
4841 core.String nextPageToken; | 4906 core.String nextPageToken; |
4842 | 4907 |
4843 /** Not documented yet. */ | |
4844 core.List<DatafeedStatus> resources; | 4908 core.List<DatafeedStatus> resources; |
4845 | 4909 |
4846 | 4910 |
4847 DatafeedstatusesListResponse(); | 4911 DatafeedstatusesListResponse(); |
4848 | 4912 |
4849 DatafeedstatusesListResponse.fromJson(core.Map _json) { | 4913 DatafeedstatusesListResponse.fromJson(core.Map _json) { |
4850 if (_json.containsKey("kind")) { | 4914 if (_json.containsKey("kind")) { |
4851 kind = _json["kind"]; | 4915 kind = _json["kind"]; |
4852 } | 4916 } |
4853 if (_json.containsKey("nextPageToken")) { | 4917 if (_json.containsKey("nextPageToken")) { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4951 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 5015 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
4952 } | 5016 } |
4953 if (message != null) { | 5017 if (message != null) { |
4954 _json["message"] = message; | 5018 _json["message"] = message; |
4955 } | 5019 } |
4956 return _json; | 5020 return _json; |
4957 } | 5021 } |
4958 } | 5022 } |
4959 | 5023 |
4960 | 5024 |
4961 /** Not documented yet. */ | |
4962 class Inventory { | 5025 class Inventory { |
4963 /** The availability of the product. */ | 5026 /** The availability of the product. */ |
4964 core.String availability; | 5027 core.String availability; |
4965 | 5028 |
4966 /** | 5029 /** |
4967 * Identifies what kind of resource this is. Value: the fixed string | 5030 * Identifies what kind of resource this is. Value: the fixed string |
4968 * "content#inventory". | 5031 * "content#inventory". |
4969 */ | 5032 */ |
4970 core.String kind; | 5033 core.String kind; |
4971 | 5034 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5032 _json["salePrice"] = (salePrice).toJson(); | 5095 _json["salePrice"] = (salePrice).toJson(); |
5033 } | 5096 } |
5034 if (salePriceEffectiveDate != null) { | 5097 if (salePriceEffectiveDate != null) { |
5035 _json["salePriceEffectiveDate"] = salePriceEffectiveDate; | 5098 _json["salePriceEffectiveDate"] = salePriceEffectiveDate; |
5036 } | 5099 } |
5037 return _json; | 5100 return _json; |
5038 } | 5101 } |
5039 } | 5102 } |
5040 | 5103 |
5041 | 5104 |
5042 /** Not documented yet. */ | |
5043 class InventoryCustomBatchRequest { | 5105 class InventoryCustomBatchRequest { |
5044 /** The request entries to be processed in the batch. */ | 5106 /** The request entries to be processed in the batch. */ |
5045 core.List<InventoryCustomBatchRequestEntry> entries; | 5107 core.List<InventoryCustomBatchRequestEntry> entries; |
5046 | 5108 |
5047 | 5109 |
5048 InventoryCustomBatchRequest(); | 5110 InventoryCustomBatchRequest(); |
5049 | 5111 |
5050 InventoryCustomBatchRequest.fromJson(core.Map _json) { | 5112 InventoryCustomBatchRequest.fromJson(core.Map _json) { |
5051 if (_json.containsKey("entries")) { | 5113 if (_json.containsKey("entries")) { |
5052 entries = _json["entries"].map((value) => new InventoryCustomBatchRequestE
ntry.fromJson(value)).toList(); | 5114 entries = _json["entries"].map((value) => new InventoryCustomBatchRequestE
ntry.fromJson(value)).toList(); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5119 _json["productId"] = productId; | 5181 _json["productId"] = productId; |
5120 } | 5182 } |
5121 if (storeCode != null) { | 5183 if (storeCode != null) { |
5122 _json["storeCode"] = storeCode; | 5184 _json["storeCode"] = storeCode; |
5123 } | 5185 } |
5124 return _json; | 5186 return _json; |
5125 } | 5187 } |
5126 } | 5188 } |
5127 | 5189 |
5128 | 5190 |
5129 /** Not documented yet. */ | |
5130 class InventoryCustomBatchResponse { | 5191 class InventoryCustomBatchResponse { |
5131 /** The result of the execution of the batch requests. */ | 5192 /** The result of the execution of the batch requests. */ |
5132 core.List<InventoryCustomBatchResponseEntry> entries; | 5193 core.List<InventoryCustomBatchResponseEntry> entries; |
5133 | 5194 |
5134 /** | 5195 /** |
5135 * Identifies what kind of resource this is. Value: the fixed string | 5196 * Identifies what kind of resource this is. Value: the fixed string |
5136 * "content#inventoryCustomBatchResponse". | 5197 * "content#inventoryCustomBatchResponse". |
5137 */ | 5198 */ |
5138 core.String kind; | 5199 core.String kind; |
5139 | 5200 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5200 _json["errors"] = (errors).toJson(); | 5261 _json["errors"] = (errors).toJson(); |
5201 } | 5262 } |
5202 if (kind != null) { | 5263 if (kind != null) { |
5203 _json["kind"] = kind; | 5264 _json["kind"] = kind; |
5204 } | 5265 } |
5205 return _json; | 5266 return _json; |
5206 } | 5267 } |
5207 } | 5268 } |
5208 | 5269 |
5209 | 5270 |
5210 /** Not documented yet. */ | |
5211 class InventorySetRequest { | 5271 class InventorySetRequest { |
5212 /** The availability of the product. */ | 5272 /** The availability of the product. */ |
5213 core.String availability; | 5273 core.String availability; |
5214 | 5274 |
5215 /** The price of the product. */ | 5275 /** The price of the product. */ |
5216 Price price; | 5276 Price price; |
5217 | 5277 |
5218 /** | 5278 /** |
5219 * The quantity of the product. Must be equal to or greater than zero. | 5279 * The quantity of the product. Must be equal to or greater than zero. |
5220 * Supported only for local products. | 5280 * Supported only for local products. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5269 _json["salePrice"] = (salePrice).toJson(); | 5329 _json["salePrice"] = (salePrice).toJson(); |
5270 } | 5330 } |
5271 if (salePriceEffectiveDate != null) { | 5331 if (salePriceEffectiveDate != null) { |
5272 _json["salePriceEffectiveDate"] = salePriceEffectiveDate; | 5332 _json["salePriceEffectiveDate"] = salePriceEffectiveDate; |
5273 } | 5333 } |
5274 return _json; | 5334 return _json; |
5275 } | 5335 } |
5276 } | 5336 } |
5277 | 5337 |
5278 | 5338 |
5279 /** Not documented yet. */ | |
5280 class InventorySetResponse { | 5339 class InventorySetResponse { |
5281 /** | 5340 /** |
5282 * Identifies what kind of resource this is. Value: the fixed string | 5341 * Identifies what kind of resource this is. Value: the fixed string |
5283 * "content#inventorySetResponse". | 5342 * "content#inventorySetResponse". |
5284 */ | 5343 */ |
5285 core.String kind; | 5344 core.String kind; |
5286 | 5345 |
5287 | 5346 |
5288 InventorySetResponse(); | 5347 InventorySetResponse(); |
5289 | 5348 |
5290 InventorySetResponse.fromJson(core.Map _json) { | 5349 InventorySetResponse.fromJson(core.Map _json) { |
5291 if (_json.containsKey("kind")) { | 5350 if (_json.containsKey("kind")) { |
5292 kind = _json["kind"]; | 5351 kind = _json["kind"]; |
5293 } | 5352 } |
5294 } | 5353 } |
5295 | 5354 |
5296 core.Map toJson() { | 5355 core.Map toJson() { |
5297 var _json = new core.Map(); | 5356 var _json = new core.Map(); |
5298 if (kind != null) { | 5357 if (kind != null) { |
5299 _json["kind"] = kind; | 5358 _json["kind"] = kind; |
5300 } | 5359 } |
5301 return _json; | 5360 return _json; |
5302 } | 5361 } |
5303 } | 5362 } |
5304 | 5363 |
5305 | 5364 |
5306 /** Not documented yet. */ | |
5307 class LoyaltyPoints { | 5365 class LoyaltyPoints { |
5308 /** | 5366 /** |
5309 * Name of loyalty points program. It is recommended to limit the name to 12 | 5367 * Name of loyalty points program. It is recommended to limit the name to 12 |
5310 * full-width characters or 24 Roman characters. | 5368 * full-width characters or 24 Roman characters. |
5311 */ | 5369 */ |
5312 core.String name; | 5370 core.String name; |
5313 | 5371 |
5314 /** The retailer's loyalty points in absolute value. */ | 5372 /** The retailer's loyalty points in absolute value. */ |
5315 core.String pointsValue; | 5373 core.String pointsValue; |
5316 | 5374 |
(...skipping 28 matching lines...) Expand all Loading... |
5345 _json["pointsValue"] = pointsValue; | 5403 _json["pointsValue"] = pointsValue; |
5346 } | 5404 } |
5347 if (ratio != null) { | 5405 if (ratio != null) { |
5348 _json["ratio"] = ratio; | 5406 _json["ratio"] = ratio; |
5349 } | 5407 } |
5350 return _json; | 5408 return _json; |
5351 } | 5409 } |
5352 } | 5410 } |
5353 | 5411 |
5354 | 5412 |
5355 /** Not documented yet. */ | |
5356 class Price { | 5413 class Price { |
5357 /** The currency of the price. */ | 5414 /** The currency of the price. */ |
5358 core.String currency; | 5415 core.String currency; |
5359 | 5416 |
5360 /** The price represented as a number. */ | 5417 /** The price represented as a number. */ |
5361 core.String value; | 5418 core.String value; |
5362 | 5419 |
5363 | 5420 |
5364 Price(); | 5421 Price(); |
5365 | 5422 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5404 | 5461 |
5405 /** | 5462 /** |
5406 * Allows advertisers to override the item URL when the product is shown | 5463 * Allows advertisers to override the item URL when the product is shown |
5407 * within the context of Product Ads. | 5464 * within the context of Product Ads. |
5408 */ | 5465 */ |
5409 core.String adwordsRedirect; | 5466 core.String adwordsRedirect; |
5410 | 5467 |
5411 /** Target age group of the item. */ | 5468 /** Target age group of the item. */ |
5412 core.String ageGroup; | 5469 core.String ageGroup; |
5413 | 5470 |
| 5471 /** Specifies the intended aspects for the product. */ |
| 5472 core.List<ProductAspect> aspects; |
| 5473 |
5414 /** Availability status of the item. */ | 5474 /** Availability status of the item. */ |
5415 core.String availability; | 5475 core.String availability; |
5416 | 5476 |
5417 /** | 5477 /** |
5418 * The day a pre-ordered product becomes available for delivery, in ISO 8601 | 5478 * The day a pre-ordered product becomes available for delivery, in ISO 8601 |
5419 * format. | 5479 * format. |
5420 */ | 5480 */ |
5421 core.String availabilityDate; | 5481 core.String availabilityDate; |
5422 | 5482 |
5423 /** Brand of the item. */ | 5483 /** Brand of the item. */ |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5647 } | 5707 } |
5648 if (_json.containsKey("adwordsLabels")) { | 5708 if (_json.containsKey("adwordsLabels")) { |
5649 adwordsLabels = _json["adwordsLabels"]; | 5709 adwordsLabels = _json["adwordsLabels"]; |
5650 } | 5710 } |
5651 if (_json.containsKey("adwordsRedirect")) { | 5711 if (_json.containsKey("adwordsRedirect")) { |
5652 adwordsRedirect = _json["adwordsRedirect"]; | 5712 adwordsRedirect = _json["adwordsRedirect"]; |
5653 } | 5713 } |
5654 if (_json.containsKey("ageGroup")) { | 5714 if (_json.containsKey("ageGroup")) { |
5655 ageGroup = _json["ageGroup"]; | 5715 ageGroup = _json["ageGroup"]; |
5656 } | 5716 } |
| 5717 if (_json.containsKey("aspects")) { |
| 5718 aspects = _json["aspects"].map((value) => new ProductAspect.fromJson(value
)).toList(); |
| 5719 } |
5657 if (_json.containsKey("availability")) { | 5720 if (_json.containsKey("availability")) { |
5658 availability = _json["availability"]; | 5721 availability = _json["availability"]; |
5659 } | 5722 } |
5660 if (_json.containsKey("availabilityDate")) { | 5723 if (_json.containsKey("availabilityDate")) { |
5661 availabilityDate = _json["availabilityDate"]; | 5724 availabilityDate = _json["availabilityDate"]; |
5662 } | 5725 } |
5663 if (_json.containsKey("brand")) { | 5726 if (_json.containsKey("brand")) { |
5664 brand = _json["brand"]; | 5727 brand = _json["brand"]; |
5665 } | 5728 } |
5666 if (_json.containsKey("channel")) { | 5729 if (_json.containsKey("channel")) { |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5855 } | 5918 } |
5856 if (adwordsLabels != null) { | 5919 if (adwordsLabels != null) { |
5857 _json["adwordsLabels"] = adwordsLabels; | 5920 _json["adwordsLabels"] = adwordsLabels; |
5858 } | 5921 } |
5859 if (adwordsRedirect != null) { | 5922 if (adwordsRedirect != null) { |
5860 _json["adwordsRedirect"] = adwordsRedirect; | 5923 _json["adwordsRedirect"] = adwordsRedirect; |
5861 } | 5924 } |
5862 if (ageGroup != null) { | 5925 if (ageGroup != null) { |
5863 _json["ageGroup"] = ageGroup; | 5926 _json["ageGroup"] = ageGroup; |
5864 } | 5927 } |
| 5928 if (aspects != null) { |
| 5929 _json["aspects"] = aspects.map((value) => (value).toJson()).toList(); |
| 5930 } |
5865 if (availability != null) { | 5931 if (availability != null) { |
5866 _json["availability"] = availability; | 5932 _json["availability"] = availability; |
5867 } | 5933 } |
5868 if (availabilityDate != null) { | 5934 if (availabilityDate != null) { |
5869 _json["availabilityDate"] = availabilityDate; | 5935 _json["availabilityDate"] = availabilityDate; |
5870 } | 5936 } |
5871 if (brand != null) { | 5937 if (brand != null) { |
5872 _json["brand"] = brand; | 5938 _json["brand"] = brand; |
5873 } | 5939 } |
5874 if (channel != null) { | 5940 if (channel != null) { |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6046 _json["validatedDestinations"] = validatedDestinations; | 6112 _json["validatedDestinations"] = validatedDestinations; |
6047 } | 6113 } |
6048 if (warnings != null) { | 6114 if (warnings != null) { |
6049 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); | 6115 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); |
6050 } | 6116 } |
6051 return _json; | 6117 return _json; |
6052 } | 6118 } |
6053 } | 6119 } |
6054 | 6120 |
6055 | 6121 |
6056 /** Not documented yet. */ | 6122 class ProductAspect { |
| 6123 /** The name of the aspect. */ |
| 6124 core.String aspectName; |
| 6125 |
| 6126 /** The name of the destination. Leave out to apply to all destinations. */ |
| 6127 core.String destinationName; |
| 6128 |
| 6129 /** Whether the aspect is required, excluded or should be validated. */ |
| 6130 core.String intention; |
| 6131 |
| 6132 |
| 6133 ProductAspect(); |
| 6134 |
| 6135 ProductAspect.fromJson(core.Map _json) { |
| 6136 if (_json.containsKey("aspectName")) { |
| 6137 aspectName = _json["aspectName"]; |
| 6138 } |
| 6139 if (_json.containsKey("destinationName")) { |
| 6140 destinationName = _json["destinationName"]; |
| 6141 } |
| 6142 if (_json.containsKey("intention")) { |
| 6143 intention = _json["intention"]; |
| 6144 } |
| 6145 } |
| 6146 |
| 6147 core.Map toJson() { |
| 6148 var _json = new core.Map(); |
| 6149 if (aspectName != null) { |
| 6150 _json["aspectName"] = aspectName; |
| 6151 } |
| 6152 if (destinationName != null) { |
| 6153 _json["destinationName"] = destinationName; |
| 6154 } |
| 6155 if (intention != null) { |
| 6156 _json["intention"] = intention; |
| 6157 } |
| 6158 return _json; |
| 6159 } |
| 6160 } |
| 6161 |
| 6162 |
6057 class ProductCustomAttribute { | 6163 class ProductCustomAttribute { |
6058 /** | 6164 /** |
6059 * The name of the attribute. Underscores will be replaced by spaces upon | 6165 * The name of the attribute. Underscores will be replaced by spaces upon |
6060 * insertion. | 6166 * insertion. |
6061 */ | 6167 */ |
6062 core.String name; | 6168 core.String name; |
6063 | 6169 |
6064 /** The type of the attribute. */ | 6170 /** The type of the attribute. */ |
6065 core.String type; | 6171 core.String type; |
6066 | 6172 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6103 _json["unit"] = unit; | 6209 _json["unit"] = unit; |
6104 } | 6210 } |
6105 if (value != null) { | 6211 if (value != null) { |
6106 _json["value"] = value; | 6212 _json["value"] = value; |
6107 } | 6213 } |
6108 return _json; | 6214 return _json; |
6109 } | 6215 } |
6110 } | 6216 } |
6111 | 6217 |
6112 | 6218 |
6113 /** Not documented yet. */ | |
6114 class ProductCustomGroup { | 6219 class ProductCustomGroup { |
6115 /** The sub-attributes. */ | 6220 /** The sub-attributes. */ |
6116 core.List<ProductCustomAttribute> attributes; | 6221 core.List<ProductCustomAttribute> attributes; |
6117 | 6222 |
6118 /** | 6223 /** |
6119 * The name of the group. Underscores will be replaced by spaces upon | 6224 * The name of the group. Underscores will be replaced by spaces upon |
6120 * insertion. | 6225 * insertion. |
6121 */ | 6226 */ |
6122 core.String name; | 6227 core.String name; |
6123 | 6228 |
(...skipping 15 matching lines...) Expand all Loading... |
6139 _json["attributes"] = attributes.map((value) => (value).toJson()).toList()
; | 6244 _json["attributes"] = attributes.map((value) => (value).toJson()).toList()
; |
6140 } | 6245 } |
6141 if (name != null) { | 6246 if (name != null) { |
6142 _json["name"] = name; | 6247 _json["name"] = name; |
6143 } | 6248 } |
6144 return _json; | 6249 return _json; |
6145 } | 6250 } |
6146 } | 6251 } |
6147 | 6252 |
6148 | 6253 |
6149 /** Not documented yet. */ | |
6150 class ProductDestination { | 6254 class ProductDestination { |
6151 /** The name of the destination. */ | 6255 /** The name of the destination. */ |
6152 core.String destinationName; | 6256 core.String destinationName; |
6153 | 6257 |
6154 /** Whether the destination is required, excluded or should be validated. */ | 6258 /** Whether the destination is required, excluded or should be validated. */ |
6155 core.String intention; | 6259 core.String intention; |
6156 | 6260 |
6157 | 6261 |
6158 ProductDestination(); | 6262 ProductDestination(); |
6159 | 6263 |
(...skipping 12 matching lines...) Expand all Loading... |
6172 _json["destinationName"] = destinationName; | 6276 _json["destinationName"] = destinationName; |
6173 } | 6277 } |
6174 if (intention != null) { | 6278 if (intention != null) { |
6175 _json["intention"] = intention; | 6279 _json["intention"] = intention; |
6176 } | 6280 } |
6177 return _json; | 6281 return _json; |
6178 } | 6282 } |
6179 } | 6283 } |
6180 | 6284 |
6181 | 6285 |
6182 /** Not documented yet. */ | |
6183 class ProductInstallment { | 6286 class ProductInstallment { |
6184 /** The amount the buyer has to pay per month. */ | 6287 /** The amount the buyer has to pay per month. */ |
6185 Price amount; | 6288 Price amount; |
6186 | 6289 |
6187 /** The number of installments the buyer has to pay. */ | 6290 /** The number of installments the buyer has to pay. */ |
6188 core.String months; | 6291 core.String months; |
6189 | 6292 |
6190 | 6293 |
6191 ProductInstallment(); | 6294 ProductInstallment(); |
6192 | 6295 |
(...skipping 12 matching lines...) Expand all Loading... |
6205 _json["amount"] = (amount).toJson(); | 6308 _json["amount"] = (amount).toJson(); |
6206 } | 6309 } |
6207 if (months != null) { | 6310 if (months != null) { |
6208 _json["months"] = months; | 6311 _json["months"] = months; |
6209 } | 6312 } |
6210 return _json; | 6313 return _json; |
6211 } | 6314 } |
6212 } | 6315 } |
6213 | 6316 |
6214 | 6317 |
6215 /** Not documented yet. */ | |
6216 class ProductShipping { | 6318 class ProductShipping { |
6217 /** | 6319 /** |
6218 * The two-letter ISO 3166 country code for the country to which an item will | 6320 * The two-letter ISO 3166 country code for the country to which an item will |
6219 * ship. | 6321 * ship. |
6220 */ | 6322 */ |
6221 core.String country; | 6323 core.String country; |
6222 | 6324 |
6223 /** | 6325 /** |
6224 * The location where the shipping is applicable, represented by a location | 6326 * The location where the shipping is applicable, represented by a location |
6225 * group name. | 6327 * group name. |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6298 _json["region"] = region; | 6400 _json["region"] = region; |
6299 } | 6401 } |
6300 if (service != null) { | 6402 if (service != null) { |
6301 _json["service"] = service; | 6403 _json["service"] = service; |
6302 } | 6404 } |
6303 return _json; | 6405 return _json; |
6304 } | 6406 } |
6305 } | 6407 } |
6306 | 6408 |
6307 | 6409 |
6308 /** Not documented yet. */ | |
6309 class ProductShippingDimension { | 6410 class ProductShippingDimension { |
6310 /** | 6411 /** |
6311 * The unit of value. | 6412 * The unit of value. |
6312 * | 6413 * |
6313 * Acceptable values are: | 6414 * Acceptable values are: |
6314 * - "cm" | 6415 * - "cm" |
6315 * - "in" | 6416 * - "in" |
6316 */ | 6417 */ |
6317 core.String unit; | 6418 core.String unit; |
6318 | 6419 |
(...skipping 21 matching lines...) Expand all Loading... |
6340 _json["unit"] = unit; | 6441 _json["unit"] = unit; |
6341 } | 6442 } |
6342 if (value != null) { | 6443 if (value != null) { |
6343 _json["value"] = value; | 6444 _json["value"] = value; |
6344 } | 6445 } |
6345 return _json; | 6446 return _json; |
6346 } | 6447 } |
6347 } | 6448 } |
6348 | 6449 |
6349 | 6450 |
6350 /** Not documented yet. */ | |
6351 class ProductShippingWeight { | 6451 class ProductShippingWeight { |
6352 /** The unit of value. */ | 6452 /** The unit of value. */ |
6353 core.String unit; | 6453 core.String unit; |
6354 | 6454 |
6355 /** | 6455 /** |
6356 * The weight of the product used to calculate the shipping cost of the item. | 6456 * The weight of the product used to calculate the shipping cost of the item. |
6357 */ | 6457 */ |
6358 core.double value; | 6458 core.double value; |
6359 | 6459 |
6360 | 6460 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6477 _json["productId"] = productId; | 6577 _json["productId"] = productId; |
6478 } | 6578 } |
6479 if (title != null) { | 6579 if (title != null) { |
6480 _json["title"] = title; | 6580 _json["title"] = title; |
6481 } | 6581 } |
6482 return _json; | 6582 return _json; |
6483 } | 6583 } |
6484 } | 6584 } |
6485 | 6585 |
6486 | 6586 |
6487 /** Not documented yet. */ | |
6488 class ProductStatusDataQualityIssue { | 6587 class ProductStatusDataQualityIssue { |
6489 /** A more detailed error string. */ | 6588 /** A more detailed error string. */ |
6490 core.String detail; | 6589 core.String detail; |
6491 | 6590 |
6492 /** The fetch status for landing_page_errors. */ | 6591 /** The fetch status for landing_page_errors. */ |
6493 core.String fetchStatus; | 6592 core.String fetchStatus; |
6494 | 6593 |
6495 /** The id of the data quality issue. */ | 6594 /** The id of the data quality issue. */ |
6496 core.String id; | 6595 core.String id; |
6497 | 6596 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6564 _json["valueOnLandingPage"] = valueOnLandingPage; | 6663 _json["valueOnLandingPage"] = valueOnLandingPage; |
6565 } | 6664 } |
6566 if (valueProvided != null) { | 6665 if (valueProvided != null) { |
6567 _json["valueProvided"] = valueProvided; | 6666 _json["valueProvided"] = valueProvided; |
6568 } | 6667 } |
6569 return _json; | 6668 return _json; |
6570 } | 6669 } |
6571 } | 6670 } |
6572 | 6671 |
6573 | 6672 |
6574 /** Not documented yet. */ | |
6575 class ProductStatusDestinationStatus { | 6673 class ProductStatusDestinationStatus { |
6576 /** The destination's approval status. */ | 6674 /** The destination's approval status. */ |
6577 core.String approvalStatus; | 6675 core.String approvalStatus; |
6578 | 6676 |
6579 /** The name of the destination */ | 6677 /** The name of the destination */ |
6580 core.String destination; | 6678 core.String destination; |
6581 | 6679 |
6582 /** | 6680 /** |
6583 * Whether the destination is required, excluded, selected by default or | 6681 * Whether the destination is required, excluded, selected by default or |
6584 * should be validated. | 6682 * should be validated. |
(...skipping 24 matching lines...) Expand all Loading... |
6609 _json["destination"] = destination; | 6707 _json["destination"] = destination; |
6610 } | 6708 } |
6611 if (intention != null) { | 6709 if (intention != null) { |
6612 _json["intention"] = intention; | 6710 _json["intention"] = intention; |
6613 } | 6711 } |
6614 return _json; | 6712 return _json; |
6615 } | 6713 } |
6616 } | 6714 } |
6617 | 6715 |
6618 | 6716 |
6619 /** Not documented yet. */ | |
6620 class ProductTax { | 6717 class ProductTax { |
6621 /** | 6718 /** |
6622 * The country within which the item is taxed, specified with a two-letter ISO | 6719 * The country within which the item is taxed, specified with a two-letter ISO |
6623 * 3166 country code. | 6720 * 3166 country code. |
6624 */ | 6721 */ |
6625 core.String country; | 6722 core.String country; |
6626 | 6723 |
6627 /** | 6724 /** |
6628 * The numeric id of a location that the tax rate applies to as defined in the | 6725 * The numeric id of a location that the tax rate applies to as defined in the |
6629 * AdWords API. | 6726 * AdWords API. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6689 _json["region"] = region; | 6786 _json["region"] = region; |
6690 } | 6787 } |
6691 if (taxShip != null) { | 6788 if (taxShip != null) { |
6692 _json["taxShip"] = taxShip; | 6789 _json["taxShip"] = taxShip; |
6693 } | 6790 } |
6694 return _json; | 6791 return _json; |
6695 } | 6792 } |
6696 } | 6793 } |
6697 | 6794 |
6698 | 6795 |
6699 /** Not documented yet. */ | |
6700 class ProductUnitPricingBaseMeasure { | 6796 class ProductUnitPricingBaseMeasure { |
6701 /** The unit of the denominator. */ | 6797 /** The unit of the denominator. */ |
6702 core.String unit; | 6798 core.String unit; |
6703 | 6799 |
6704 /** The denominator of the unit price. */ | 6800 /** The denominator of the unit price. */ |
6705 core.String value; | 6801 core.String value; |
6706 | 6802 |
6707 | 6803 |
6708 ProductUnitPricingBaseMeasure(); | 6804 ProductUnitPricingBaseMeasure(); |
6709 | 6805 |
(...skipping 12 matching lines...) Expand all Loading... |
6722 _json["unit"] = unit; | 6818 _json["unit"] = unit; |
6723 } | 6819 } |
6724 if (value != null) { | 6820 if (value != null) { |
6725 _json["value"] = value; | 6821 _json["value"] = value; |
6726 } | 6822 } |
6727 return _json; | 6823 return _json; |
6728 } | 6824 } |
6729 } | 6825 } |
6730 | 6826 |
6731 | 6827 |
6732 /** Not documented yet. */ | |
6733 class ProductUnitPricingMeasure { | 6828 class ProductUnitPricingMeasure { |
6734 /** The unit of the measure. */ | 6829 /** The unit of the measure. */ |
6735 core.String unit; | 6830 core.String unit; |
6736 | 6831 |
6737 /** The measure of an item. */ | 6832 /** The measure of an item. */ |
6738 core.double value; | 6833 core.double value; |
6739 | 6834 |
6740 | 6835 |
6741 ProductUnitPricingMeasure(); | 6836 ProductUnitPricingMeasure(); |
6742 | 6837 |
(...skipping 12 matching lines...) Expand all Loading... |
6755 _json["unit"] = unit; | 6850 _json["unit"] = unit; |
6756 } | 6851 } |
6757 if (value != null) { | 6852 if (value != null) { |
6758 _json["value"] = value; | 6853 _json["value"] = value; |
6759 } | 6854 } |
6760 return _json; | 6855 return _json; |
6761 } | 6856 } |
6762 } | 6857 } |
6763 | 6858 |
6764 | 6859 |
6765 /** Not documented yet. */ | |
6766 class ProductsCustomBatchRequest { | 6860 class ProductsCustomBatchRequest { |
6767 /** The request entries to be processed in the batch. */ | 6861 /** The request entries to be processed in the batch. */ |
6768 core.List<ProductsCustomBatchRequestEntry> entries; | 6862 core.List<ProductsCustomBatchRequestEntry> entries; |
6769 | 6863 |
6770 | 6864 |
6771 ProductsCustomBatchRequest(); | 6865 ProductsCustomBatchRequest(); |
6772 | 6866 |
6773 ProductsCustomBatchRequest.fromJson(core.Map _json) { | 6867 ProductsCustomBatchRequest.fromJson(core.Map _json) { |
6774 if (_json.containsKey("entries")) { | 6868 if (_json.containsKey("entries")) { |
6775 entries = _json["entries"].map((value) => new ProductsCustomBatchRequestEn
try.fromJson(value)).toList(); | 6869 entries = _json["entries"].map((value) => new ProductsCustomBatchRequestEn
try.fromJson(value)).toList(); |
(...skipping 11 matching lines...) Expand all Loading... |
6787 | 6881 |
6788 | 6882 |
6789 /** A batch entry encoding a single non-batch products request. */ | 6883 /** A batch entry encoding a single non-batch products request. */ |
6790 class ProductsCustomBatchRequestEntry { | 6884 class ProductsCustomBatchRequestEntry { |
6791 /** An entry ID, unique within the batch request. */ | 6885 /** An entry ID, unique within the batch request. */ |
6792 core.int batchId; | 6886 core.int batchId; |
6793 | 6887 |
6794 /** The ID of the managing account. */ | 6888 /** The ID of the managing account. */ |
6795 core.String merchantId; | 6889 core.String merchantId; |
6796 | 6890 |
6797 /** Not documented yet. */ | |
6798 core.String method; | 6891 core.String method; |
6799 | 6892 |
6800 /** The product to insert. Only required if the method is insert. */ | 6893 /** The product to insert. Only required if the method is insert. */ |
6801 Product product; | 6894 Product product; |
6802 | 6895 |
6803 /** | 6896 /** |
6804 * The ID of the product to get or delete. Only defined if the method is get | 6897 * The ID of the product to get or delete. Only defined if the method is get |
6805 * or delete. | 6898 * or delete. |
6806 */ | 6899 */ |
6807 core.String productId; | 6900 core.String productId; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6842 _json["product"] = (product).toJson(); | 6935 _json["product"] = (product).toJson(); |
6843 } | 6936 } |
6844 if (productId != null) { | 6937 if (productId != null) { |
6845 _json["productId"] = productId; | 6938 _json["productId"] = productId; |
6846 } | 6939 } |
6847 return _json; | 6940 return _json; |
6848 } | 6941 } |
6849 } | 6942 } |
6850 | 6943 |
6851 | 6944 |
6852 /** Not documented yet. */ | |
6853 class ProductsCustomBatchResponse { | 6945 class ProductsCustomBatchResponse { |
6854 /** The result of the execution of the batch requests. */ | 6946 /** The result of the execution of the batch requests. */ |
6855 core.List<ProductsCustomBatchResponseEntry> entries; | 6947 core.List<ProductsCustomBatchResponseEntry> entries; |
6856 | 6948 |
6857 /** | 6949 /** |
6858 * Identifies what kind of resource this is. Value: the fixed string | 6950 * Identifies what kind of resource this is. Value: the fixed string |
6859 * "content#productsCustomBatchResponse". | 6951 * "content#productsCustomBatchResponse". |
6860 */ | 6952 */ |
6861 core.String kind; | 6953 core.String kind; |
6862 | 6954 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6935 _json["kind"] = kind; | 7027 _json["kind"] = kind; |
6936 } | 7028 } |
6937 if (product != null) { | 7029 if (product != null) { |
6938 _json["product"] = (product).toJson(); | 7030 _json["product"] = (product).toJson(); |
6939 } | 7031 } |
6940 return _json; | 7032 return _json; |
6941 } | 7033 } |
6942 } | 7034 } |
6943 | 7035 |
6944 | 7036 |
6945 /** Not documented yet. */ | |
6946 class ProductsListResponse { | 7037 class ProductsListResponse { |
6947 /** | 7038 /** |
6948 * Identifies what kind of resource this is. Value: the fixed string | 7039 * Identifies what kind of resource this is. Value: the fixed string |
6949 * "content#productsListResponse". | 7040 * "content#productsListResponse". |
6950 */ | 7041 */ |
6951 core.String kind; | 7042 core.String kind; |
6952 | 7043 |
6953 /** The token for the retrieval of the next page of products. */ | 7044 /** The token for the retrieval of the next page of products. */ |
6954 core.String nextPageToken; | 7045 core.String nextPageToken; |
6955 | 7046 |
6956 /** Not documented yet. */ | |
6957 core.List<Product> resources; | 7047 core.List<Product> resources; |
6958 | 7048 |
6959 | 7049 |
6960 ProductsListResponse(); | 7050 ProductsListResponse(); |
6961 | 7051 |
6962 ProductsListResponse.fromJson(core.Map _json) { | 7052 ProductsListResponse.fromJson(core.Map _json) { |
6963 if (_json.containsKey("kind")) { | 7053 if (_json.containsKey("kind")) { |
6964 kind = _json["kind"]; | 7054 kind = _json["kind"]; |
6965 } | 7055 } |
6966 if (_json.containsKey("nextPageToken")) { | 7056 if (_json.containsKey("nextPageToken")) { |
(...skipping 13 matching lines...) Expand all Loading... |
6980 _json["nextPageToken"] = nextPageToken; | 7070 _json["nextPageToken"] = nextPageToken; |
6981 } | 7071 } |
6982 if (resources != null) { | 7072 if (resources != null) { |
6983 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 7073 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
6984 } | 7074 } |
6985 return _json; | 7075 return _json; |
6986 } | 7076 } |
6987 } | 7077 } |
6988 | 7078 |
6989 | 7079 |
6990 /** Not documented yet. */ | |
6991 class ProductstatusesCustomBatchRequest { | 7080 class ProductstatusesCustomBatchRequest { |
6992 /** The request entries to be processed in the batch. */ | 7081 /** The request entries to be processed in the batch. */ |
6993 core.List<ProductstatusesCustomBatchRequestEntry> entries; | 7082 core.List<ProductstatusesCustomBatchRequestEntry> entries; |
6994 | 7083 |
6995 | 7084 |
6996 ProductstatusesCustomBatchRequest(); | 7085 ProductstatusesCustomBatchRequest(); |
6997 | 7086 |
6998 ProductstatusesCustomBatchRequest.fromJson(core.Map _json) { | 7087 ProductstatusesCustomBatchRequest.fromJson(core.Map _json) { |
6999 if (_json.containsKey("entries")) { | 7088 if (_json.containsKey("entries")) { |
7000 entries = _json["entries"].map((value) => new ProductstatusesCustomBatchRe
questEntry.fromJson(value)).toList(); | 7089 entries = _json["entries"].map((value) => new ProductstatusesCustomBatchRe
questEntry.fromJson(value)).toList(); |
(...skipping 11 matching lines...) Expand all Loading... |
7012 | 7101 |
7013 | 7102 |
7014 /** A batch entry encoding a single non-batch productstatuses request. */ | 7103 /** A batch entry encoding a single non-batch productstatuses request. */ |
7015 class ProductstatusesCustomBatchRequestEntry { | 7104 class ProductstatusesCustomBatchRequestEntry { |
7016 /** An entry ID, unique within the batch request. */ | 7105 /** An entry ID, unique within the batch request. */ |
7017 core.int batchId; | 7106 core.int batchId; |
7018 | 7107 |
7019 /** The ID of the managing account. */ | 7108 /** The ID of the managing account. */ |
7020 core.String merchantId; | 7109 core.String merchantId; |
7021 | 7110 |
7022 /** Not documented yet. */ | |
7023 core.String method; | 7111 core.String method; |
7024 | 7112 |
7025 /** The ID of the product whose status to get. */ | 7113 /** The ID of the product whose status to get. */ |
7026 core.String productId; | 7114 core.String productId; |
7027 | 7115 |
7028 | 7116 |
7029 ProductstatusesCustomBatchRequestEntry(); | 7117 ProductstatusesCustomBatchRequestEntry(); |
7030 | 7118 |
7031 ProductstatusesCustomBatchRequestEntry.fromJson(core.Map _json) { | 7119 ProductstatusesCustomBatchRequestEntry.fromJson(core.Map _json) { |
7032 if (_json.containsKey("batchId")) { | 7120 if (_json.containsKey("batchId")) { |
(...skipping 22 matching lines...) Expand all Loading... |
7055 _json["method"] = method; | 7143 _json["method"] = method; |
7056 } | 7144 } |
7057 if (productId != null) { | 7145 if (productId != null) { |
7058 _json["productId"] = productId; | 7146 _json["productId"] = productId; |
7059 } | 7147 } |
7060 return _json; | 7148 return _json; |
7061 } | 7149 } |
7062 } | 7150 } |
7063 | 7151 |
7064 | 7152 |
7065 /** Not documented yet. */ | |
7066 class ProductstatusesCustomBatchResponse { | 7153 class ProductstatusesCustomBatchResponse { |
7067 /** The result of the execution of the batch requests. */ | 7154 /** The result of the execution of the batch requests. */ |
7068 core.List<ProductstatusesCustomBatchResponseEntry> entries; | 7155 core.List<ProductstatusesCustomBatchResponseEntry> entries; |
7069 | 7156 |
7070 /** | 7157 /** |
7071 * Identifies what kind of resource this is. Value: the fixed string | 7158 * Identifies what kind of resource this is. Value: the fixed string |
7072 * "content#productstatusesCustomBatchResponse". | 7159 * "content#productstatusesCustomBatchResponse". |
7073 */ | 7160 */ |
7074 core.String kind; | 7161 core.String kind; |
7075 | 7162 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7147 _json["kind"] = kind; | 7234 _json["kind"] = kind; |
7148 } | 7235 } |
7149 if (productStatus != null) { | 7236 if (productStatus != null) { |
7150 _json["productStatus"] = (productStatus).toJson(); | 7237 _json["productStatus"] = (productStatus).toJson(); |
7151 } | 7238 } |
7152 return _json; | 7239 return _json; |
7153 } | 7240 } |
7154 } | 7241 } |
7155 | 7242 |
7156 | 7243 |
7157 /** Not documented yet. */ | |
7158 class ProductstatusesListResponse { | 7244 class ProductstatusesListResponse { |
7159 /** | 7245 /** |
7160 * Identifies what kind of resource this is. Value: the fixed string | 7246 * Identifies what kind of resource this is. Value: the fixed string |
7161 * "content#productstatusesListResponse". | 7247 * "content#productstatusesListResponse". |
7162 */ | 7248 */ |
7163 core.String kind; | 7249 core.String kind; |
7164 | 7250 |
7165 /** The token for the retrieval of the next page of products statuses. */ | 7251 /** The token for the retrieval of the next page of products statuses. */ |
7166 core.String nextPageToken; | 7252 core.String nextPageToken; |
7167 | 7253 |
7168 /** Not documented yet. */ | |
7169 core.List<ProductStatus> resources; | 7254 core.List<ProductStatus> resources; |
7170 | 7255 |
7171 | 7256 |
7172 ProductstatusesListResponse(); | 7257 ProductstatusesListResponse(); |
7173 | 7258 |
7174 ProductstatusesListResponse.fromJson(core.Map _json) { | 7259 ProductstatusesListResponse.fromJson(core.Map _json) { |
7175 if (_json.containsKey("kind")) { | 7260 if (_json.containsKey("kind")) { |
7176 kind = _json["kind"]; | 7261 kind = _json["kind"]; |
7177 } | 7262 } |
7178 if (_json.containsKey("nextPageToken")) { | 7263 if (_json.containsKey("nextPageToken")) { |
(...skipping 13 matching lines...) Expand all Loading... |
7192 _json["nextPageToken"] = nextPageToken; | 7277 _json["nextPageToken"] = nextPageToken; |
7193 } | 7278 } |
7194 if (resources != null) { | 7279 if (resources != null) { |
7195 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 7280 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
7196 } | 7281 } |
7197 return _json; | 7282 return _json; |
7198 } | 7283 } |
7199 } | 7284 } |
7200 | 7285 |
7201 | 7286 |
7202 /** Not documented yet. */ | |
7203 class Weight { | 7287 class Weight { |
7204 /** The weight unit. */ | 7288 /** The weight unit. */ |
7205 core.String unit; | 7289 core.String unit; |
7206 | 7290 |
7207 /** The weight represented as a number. */ | 7291 /** The weight represented as a number. */ |
7208 core.String value; | 7292 core.String value; |
7209 | 7293 |
7210 | 7294 |
7211 Weight(); | 7295 Weight(); |
7212 | 7296 |
(...skipping 10 matching lines...) Expand all Loading... |
7223 var _json = new core.Map(); | 7307 var _json = new core.Map(); |
7224 if (unit != null) { | 7308 if (unit != null) { |
7225 _json["unit"] = unit; | 7309 _json["unit"] = unit; |
7226 } | 7310 } |
7227 if (value != null) { | 7311 if (value != null) { |
7228 _json["value"] = value; | 7312 _json["value"] = value; |
7229 } | 7313 } |
7230 return _json; | 7314 return _json; |
7231 } | 7315 } |
7232 } | 7316 } |
7233 | |
7234 | |
OLD | NEW |