OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.content.v2; | 3 library googleapis.content.v2; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 "POST", | 121 "POST", |
122 body: _body, | 122 body: _body, |
123 queryParams: _queryParams, | 123 queryParams: _queryParams, |
124 uploadOptions: _uploadOptions, | 124 uploadOptions: _uploadOptions, |
125 uploadMedia: _uploadMedia, | 125 uploadMedia: _uploadMedia, |
126 downloadOptions: _downloadOptions); | 126 downloadOptions: _downloadOptions); |
127 return _response.then((data) => new AccountsCustomBatchResponse.fromJson(dat
a)); | 127 return _response.then((data) => new AccountsCustomBatchResponse.fromJson(dat
a)); |
128 } | 128 } |
129 | 129 |
130 /** | 130 /** |
131 * Deletes a Merchant Center sub-account. | 131 * Deletes a Merchant Center sub-account. This method can only be called for |
| 132 * multi-client accounts. |
132 * | 133 * |
133 * Request parameters: | 134 * Request parameters: |
134 * | 135 * |
135 * [merchantId] - The ID of the managing account. | 136 * [merchantId] - The ID of the managing account. |
136 * | 137 * |
137 * [accountId] - The ID of the account. | 138 * [accountId] - The ID of the account. |
138 * | 139 * |
139 * [dryRun] - Flag to run the request in dry-run mode. | 140 * [dryRun] - Flag to run the request in dry-run mode. |
140 * | 141 * |
141 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 142 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 28 matching lines...) Expand all Loading... |
170 "DELETE", | 171 "DELETE", |
171 body: _body, | 172 body: _body, |
172 queryParams: _queryParams, | 173 queryParams: _queryParams, |
173 uploadOptions: _uploadOptions, | 174 uploadOptions: _uploadOptions, |
174 uploadMedia: _uploadMedia, | 175 uploadMedia: _uploadMedia, |
175 downloadOptions: _downloadOptions); | 176 downloadOptions: _downloadOptions); |
176 return _response.then((data) => null); | 177 return _response.then((data) => null); |
177 } | 178 } |
178 | 179 |
179 /** | 180 /** |
180 * Retrieves a Merchant Center account. | 181 * Retrieves a Merchant Center account. This method can only be called for |
| 182 * accounts to which the managing account has access: either the managing |
| 183 * account itself or sub-accounts if the managing account is a multi-client |
| 184 * account. |
181 * | 185 * |
182 * Request parameters: | 186 * Request parameters: |
183 * | 187 * |
184 * [merchantId] - The ID of the managing account. | 188 * [merchantId] - The ID of the managing account. |
185 * | 189 * |
186 * [accountId] - The ID of the account. | 190 * [accountId] - The ID of the account. |
187 * | 191 * |
188 * Completes with a [Account]. | 192 * Completes with a [Account]. |
189 * | 193 * |
190 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 194 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 23 matching lines...) Expand all Loading... |
214 "GET", | 218 "GET", |
215 body: _body, | 219 body: _body, |
216 queryParams: _queryParams, | 220 queryParams: _queryParams, |
217 uploadOptions: _uploadOptions, | 221 uploadOptions: _uploadOptions, |
218 uploadMedia: _uploadMedia, | 222 uploadMedia: _uploadMedia, |
219 downloadOptions: _downloadOptions); | 223 downloadOptions: _downloadOptions); |
220 return _response.then((data) => new Account.fromJson(data)); | 224 return _response.then((data) => new Account.fromJson(data)); |
221 } | 225 } |
222 | 226 |
223 /** | 227 /** |
224 * Creates a Merchant Center sub-account. | 228 * Creates a Merchant Center sub-account. This method can only be called for |
| 229 * multi-client accounts. |
225 * | 230 * |
226 * [request] - The metadata request object. | 231 * [request] - The metadata request object. |
227 * | 232 * |
228 * Request parameters: | 233 * Request parameters: |
229 * | 234 * |
230 * [merchantId] - The ID of the managing account. | 235 * [merchantId] - The ID of the managing account. |
231 * | 236 * |
232 * [dryRun] - Flag to run the request in dry-run mode. | 237 * [dryRun] - Flag to run the request in dry-run mode. |
233 * | 238 * |
234 * Completes with a [Account]. | 239 * Completes with a [Account]. |
(...skipping 28 matching lines...) Expand all Loading... |
263 "POST", | 268 "POST", |
264 body: _body, | 269 body: _body, |
265 queryParams: _queryParams, | 270 queryParams: _queryParams, |
266 uploadOptions: _uploadOptions, | 271 uploadOptions: _uploadOptions, |
267 uploadMedia: _uploadMedia, | 272 uploadMedia: _uploadMedia, |
268 downloadOptions: _downloadOptions); | 273 downloadOptions: _downloadOptions); |
269 return _response.then((data) => new Account.fromJson(data)); | 274 return _response.then((data) => new Account.fromJson(data)); |
270 } | 275 } |
271 | 276 |
272 /** | 277 /** |
273 * Lists the sub-accounts in your Merchant Center account. | 278 * Lists the sub-accounts in your Merchant Center account. This method can |
| 279 * only be called for multi-client accounts. |
274 * | 280 * |
275 * Request parameters: | 281 * Request parameters: |
276 * | 282 * |
277 * [merchantId] - The ID of the managing account. | 283 * [merchantId] - The ID of the managing account. |
278 * | 284 * |
279 * [maxResults] - The maximum number of accounts to return in the response, | 285 * [maxResults] - The maximum number of accounts to return in the response, |
280 * used for paging. | 286 * used for paging. |
281 * | 287 * |
282 * [pageToken] - The token returned by the previous request. | 288 * [pageToken] - The token returned by the previous request. |
283 * | 289 * |
(...skipping 29 matching lines...) Expand all Loading... |
313 "GET", | 319 "GET", |
314 body: _body, | 320 body: _body, |
315 queryParams: _queryParams, | 321 queryParams: _queryParams, |
316 uploadOptions: _uploadOptions, | 322 uploadOptions: _uploadOptions, |
317 uploadMedia: _uploadMedia, | 323 uploadMedia: _uploadMedia, |
318 downloadOptions: _downloadOptions); | 324 downloadOptions: _downloadOptions); |
319 return _response.then((data) => new AccountsListResponse.fromJson(data)); | 325 return _response.then((data) => new AccountsListResponse.fromJson(data)); |
320 } | 326 } |
321 | 327 |
322 /** | 328 /** |
323 * Updates a Merchant Center account. This method supports patch semantics. | 329 * Updates a Merchant Center account. This method can only be called for |
| 330 * multi-client accounts. This method supports patch semantics. |
324 * | 331 * |
325 * [request] - The metadata request object. | 332 * [request] - The metadata request object. |
326 * | 333 * |
327 * Request parameters: | 334 * Request parameters: |
328 * | 335 * |
329 * [merchantId] - The ID of the managing account. | 336 * [merchantId] - The ID of the managing account. |
330 * | 337 * |
331 * [accountId] - The ID of the account. | 338 * [accountId] - The ID of the account. |
332 * | 339 * |
333 * [dryRun] - Flag to run the request in dry-run mode. | 340 * [dryRun] - Flag to run the request in dry-run mode. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 "PATCH", | 374 "PATCH", |
368 body: _body, | 375 body: _body, |
369 queryParams: _queryParams, | 376 queryParams: _queryParams, |
370 uploadOptions: _uploadOptions, | 377 uploadOptions: _uploadOptions, |
371 uploadMedia: _uploadMedia, | 378 uploadMedia: _uploadMedia, |
372 downloadOptions: _downloadOptions); | 379 downloadOptions: _downloadOptions); |
373 return _response.then((data) => new Account.fromJson(data)); | 380 return _response.then((data) => new Account.fromJson(data)); |
374 } | 381 } |
375 | 382 |
376 /** | 383 /** |
377 * Updates a Merchant Center account. | 384 * Updates a Merchant Center account. This method can only be called for |
| 385 * multi-client accounts. |
378 * | 386 * |
379 * [request] - The metadata request object. | 387 * [request] - The metadata request object. |
380 * | 388 * |
381 * Request parameters: | 389 * Request parameters: |
382 * | 390 * |
383 * [merchantId] - The ID of the managing account. | 391 * [merchantId] - The ID of the managing account. |
384 * | 392 * |
385 * [accountId] - The ID of the account. | 393 * [accountId] - The ID of the account. |
386 * | 394 * |
387 * [dryRun] - Flag to run the request in dry-run mode. | 395 * [dryRun] - Flag to run the request in dry-run mode. |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 "POST", | 483 "POST", |
476 body: _body, | 484 body: _body, |
477 queryParams: _queryParams, | 485 queryParams: _queryParams, |
478 uploadOptions: _uploadOptions, | 486 uploadOptions: _uploadOptions, |
479 uploadMedia: _uploadMedia, | 487 uploadMedia: _uploadMedia, |
480 downloadOptions: _downloadOptions); | 488 downloadOptions: _downloadOptions); |
481 return _response.then((data) => new AccountshippingCustomBatchResponse.fromJ
son(data)); | 489 return _response.then((data) => new AccountshippingCustomBatchResponse.fromJ
son(data)); |
482 } | 490 } |
483 | 491 |
484 /** | 492 /** |
485 * Retrieves the shipping settings of the account. | 493 * Retrieves the shipping settings of the account. This method can only be |
| 494 * called for accounts to which the managing account has access: either the |
| 495 * managing account itself or sub-accounts if the managing account is a |
| 496 * multi-client account. |
486 * | 497 * |
487 * Request parameters: | 498 * Request parameters: |
488 * | 499 * |
489 * [merchantId] - The ID of the managing account. | 500 * [merchantId] - The ID of the managing account. |
490 * | 501 * |
491 * [accountId] - The ID of the account for which to get/update account | 502 * [accountId] - The ID of the account for which to get/update account |
492 * shipping settings. | 503 * shipping settings. |
493 * | 504 * |
494 * Completes with a [AccountShipping]. | 505 * Completes with a [AccountShipping]. |
495 * | 506 * |
(...skipping 25 matching lines...) Expand all Loading... |
521 body: _body, | 532 body: _body, |
522 queryParams: _queryParams, | 533 queryParams: _queryParams, |
523 uploadOptions: _uploadOptions, | 534 uploadOptions: _uploadOptions, |
524 uploadMedia: _uploadMedia, | 535 uploadMedia: _uploadMedia, |
525 downloadOptions: _downloadOptions); | 536 downloadOptions: _downloadOptions); |
526 return _response.then((data) => new AccountShipping.fromJson(data)); | 537 return _response.then((data) => new AccountShipping.fromJson(data)); |
527 } | 538 } |
528 | 539 |
529 /** | 540 /** |
530 * Lists the shipping settings of the sub-accounts in your Merchant Center | 541 * Lists the shipping settings of the sub-accounts in your Merchant Center |
531 * account. | 542 * account. This method can only be called for multi-client accounts. |
532 * | 543 * |
533 * Request parameters: | 544 * Request parameters: |
534 * | 545 * |
535 * [merchantId] - The ID of the managing account. | 546 * [merchantId] - The ID of the managing account. |
536 * | 547 * |
537 * [maxResults] - The maximum number of shipping settings to return in the | 548 * [maxResults] - The maximum number of shipping settings to return in the |
538 * response, used for paging. | 549 * response, used for paging. |
539 * | 550 * |
540 * [pageToken] - The token returned by the previous request. | 551 * [pageToken] - The token returned by the previous request. |
541 * | 552 * |
(...skipping 29 matching lines...) Expand all Loading... |
571 "GET", | 582 "GET", |
572 body: _body, | 583 body: _body, |
573 queryParams: _queryParams, | 584 queryParams: _queryParams, |
574 uploadOptions: _uploadOptions, | 585 uploadOptions: _uploadOptions, |
575 uploadMedia: _uploadMedia, | 586 uploadMedia: _uploadMedia, |
576 downloadOptions: _downloadOptions); | 587 downloadOptions: _downloadOptions); |
577 return _response.then((data) => new AccountshippingListResponse.fromJson(dat
a)); | 588 return _response.then((data) => new AccountshippingListResponse.fromJson(dat
a)); |
578 } | 589 } |
579 | 590 |
580 /** | 591 /** |
581 * Updates the shipping settings of the account. This method supports patch | 592 * Updates the shipping settings of the account. This method can only be |
582 * semantics. | 593 * called for accounts to which the managing account has access: either the |
| 594 * managing account itself or sub-accounts if the managing account is a |
| 595 * multi-client account. This method supports patch semantics. |
583 * | 596 * |
584 * [request] - The metadata request object. | 597 * [request] - The metadata request object. |
585 * | 598 * |
586 * Request parameters: | 599 * Request parameters: |
587 * | 600 * |
588 * [merchantId] - The ID of the managing account. | 601 * [merchantId] - The ID of the managing account. |
589 * | 602 * |
590 * [accountId] - The ID of the account for which to get/update account | 603 * [accountId] - The ID of the account for which to get/update account |
591 * shipping settings. | 604 * shipping settings. |
592 * | 605 * |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 "PATCH", | 640 "PATCH", |
628 body: _body, | 641 body: _body, |
629 queryParams: _queryParams, | 642 queryParams: _queryParams, |
630 uploadOptions: _uploadOptions, | 643 uploadOptions: _uploadOptions, |
631 uploadMedia: _uploadMedia, | 644 uploadMedia: _uploadMedia, |
632 downloadOptions: _downloadOptions); | 645 downloadOptions: _downloadOptions); |
633 return _response.then((data) => new AccountShipping.fromJson(data)); | 646 return _response.then((data) => new AccountShipping.fromJson(data)); |
634 } | 647 } |
635 | 648 |
636 /** | 649 /** |
637 * Updates the shipping settings of the account. | 650 * Updates the shipping settings of the account. This method can only be |
| 651 * called for accounts to which the managing account has access: either the |
| 652 * managing account itself or sub-accounts if the managing account is a |
| 653 * multi-client account. |
638 * | 654 * |
639 * [request] - The metadata request object. | 655 * [request] - The metadata request object. |
640 * | 656 * |
641 * Request parameters: | 657 * Request parameters: |
642 * | 658 * |
643 * [merchantId] - The ID of the managing account. | 659 * [merchantId] - The ID of the managing account. |
644 * | 660 * |
645 * [accountId] - The ID of the account for which to get/update account | 661 * [accountId] - The ID of the account for which to get/update account |
646 * shipping settings. | 662 * shipping settings. |
647 * | 663 * |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 "POST", | 744 "POST", |
729 body: _body, | 745 body: _body, |
730 queryParams: _queryParams, | 746 queryParams: _queryParams, |
731 uploadOptions: _uploadOptions, | 747 uploadOptions: _uploadOptions, |
732 uploadMedia: _uploadMedia, | 748 uploadMedia: _uploadMedia, |
733 downloadOptions: _downloadOptions); | 749 downloadOptions: _downloadOptions); |
734 return _response.then((data) => new AccountstatusesCustomBatchResponse.fromJ
son(data)); | 750 return _response.then((data) => new AccountstatusesCustomBatchResponse.fromJ
son(data)); |
735 } | 751 } |
736 | 752 |
737 /** | 753 /** |
738 * Retrieves the status of a Merchant Center account. | 754 * Retrieves the status of a Merchant Center account. This method can only be |
| 755 * called for accounts to which the managing account has access: either the |
| 756 * managing account itself or sub-accounts if the managing account is a |
| 757 * multi-client account. |
739 * | 758 * |
740 * Request parameters: | 759 * Request parameters: |
741 * | 760 * |
742 * [merchantId] - The ID of the managing account. | 761 * [merchantId] - The ID of the managing account. |
743 * | 762 * |
744 * [accountId] - The ID of the account. | 763 * [accountId] - The ID of the account. |
745 * | 764 * |
746 * Completes with a [AccountStatus]. | 765 * Completes with a [AccountStatus]. |
747 * | 766 * |
748 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 767 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 24 matching lines...) Expand all Loading... |
773 body: _body, | 792 body: _body, |
774 queryParams: _queryParams, | 793 queryParams: _queryParams, |
775 uploadOptions: _uploadOptions, | 794 uploadOptions: _uploadOptions, |
776 uploadMedia: _uploadMedia, | 795 uploadMedia: _uploadMedia, |
777 downloadOptions: _downloadOptions); | 796 downloadOptions: _downloadOptions); |
778 return _response.then((data) => new AccountStatus.fromJson(data)); | 797 return _response.then((data) => new AccountStatus.fromJson(data)); |
779 } | 798 } |
780 | 799 |
781 /** | 800 /** |
782 * Lists the statuses of the sub-accounts in your Merchant Center account. | 801 * Lists the statuses of the sub-accounts in your Merchant Center account. |
| 802 * This method can only be called for multi-client accounts. |
783 * | 803 * |
784 * Request parameters: | 804 * Request parameters: |
785 * | 805 * |
786 * [merchantId] - The ID of the managing account. | 806 * [merchantId] - The ID of the managing account. |
787 * | 807 * |
788 * [maxResults] - The maximum number of account statuses to return in the | 808 * [maxResults] - The maximum number of account statuses to return in the |
789 * response, used for paging. | 809 * response, used for paging. |
790 * | 810 * |
791 * [pageToken] - The token returned by the previous request. | 811 * [pageToken] - The token returned by the previous request. |
792 * | 812 * |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 "POST", | 896 "POST", |
877 body: _body, | 897 body: _body, |
878 queryParams: _queryParams, | 898 queryParams: _queryParams, |
879 uploadOptions: _uploadOptions, | 899 uploadOptions: _uploadOptions, |
880 uploadMedia: _uploadMedia, | 900 uploadMedia: _uploadMedia, |
881 downloadOptions: _downloadOptions); | 901 downloadOptions: _downloadOptions); |
882 return _response.then((data) => new AccounttaxCustomBatchResponse.fromJson(d
ata)); | 902 return _response.then((data) => new AccounttaxCustomBatchResponse.fromJson(d
ata)); |
883 } | 903 } |
884 | 904 |
885 /** | 905 /** |
886 * Retrieves the tax settings of the account. | 906 * Retrieves the tax settings of the account. This method can only be called |
| 907 * for accounts to which the managing account has access: either the managing |
| 908 * account itself or sub-accounts if the managing account is a multi-client |
| 909 * account. |
887 * | 910 * |
888 * Request parameters: | 911 * Request parameters: |
889 * | 912 * |
890 * [merchantId] - The ID of the managing account. | 913 * [merchantId] - The ID of the managing account. |
891 * | 914 * |
892 * [accountId] - The ID of the account for which to get/update account tax | 915 * [accountId] - The ID of the account for which to get/update account tax |
893 * settings. | 916 * settings. |
894 * | 917 * |
895 * Completes with a [AccountTax]. | 918 * Completes with a [AccountTax]. |
896 * | 919 * |
(...skipping 25 matching lines...) Expand all Loading... |
922 body: _body, | 945 body: _body, |
923 queryParams: _queryParams, | 946 queryParams: _queryParams, |
924 uploadOptions: _uploadOptions, | 947 uploadOptions: _uploadOptions, |
925 uploadMedia: _uploadMedia, | 948 uploadMedia: _uploadMedia, |
926 downloadOptions: _downloadOptions); | 949 downloadOptions: _downloadOptions); |
927 return _response.then((data) => new AccountTax.fromJson(data)); | 950 return _response.then((data) => new AccountTax.fromJson(data)); |
928 } | 951 } |
929 | 952 |
930 /** | 953 /** |
931 * Lists the tax settings of the sub-accounts in your Merchant Center account. | 954 * Lists the tax settings of the sub-accounts in your Merchant Center account. |
| 955 * This method can only be called for multi-client accounts. |
932 * | 956 * |
933 * Request parameters: | 957 * Request parameters: |
934 * | 958 * |
935 * [merchantId] - The ID of the managing account. | 959 * [merchantId] - The ID of the managing account. |
936 * | 960 * |
937 * [maxResults] - The maximum number of tax settings to return in the | 961 * [maxResults] - The maximum number of tax settings to return in the |
938 * response, used for paging. | 962 * response, used for paging. |
939 * | 963 * |
940 * [pageToken] - The token returned by the previous request. | 964 * [pageToken] - The token returned by the previous request. |
941 * | 965 * |
(...skipping 29 matching lines...) Expand all Loading... |
971 "GET", | 995 "GET", |
972 body: _body, | 996 body: _body, |
973 queryParams: _queryParams, | 997 queryParams: _queryParams, |
974 uploadOptions: _uploadOptions, | 998 uploadOptions: _uploadOptions, |
975 uploadMedia: _uploadMedia, | 999 uploadMedia: _uploadMedia, |
976 downloadOptions: _downloadOptions); | 1000 downloadOptions: _downloadOptions); |
977 return _response.then((data) => new AccounttaxListResponse.fromJson(data)); | 1001 return _response.then((data) => new AccounttaxListResponse.fromJson(data)); |
978 } | 1002 } |
979 | 1003 |
980 /** | 1004 /** |
981 * Updates the tax settings of the account. This method supports patch | 1005 * Updates the tax settings of the account. This method can only be called for |
982 * semantics. | 1006 * accounts to which the managing account has access: either the managing |
| 1007 * account itself or sub-accounts if the managing account is a multi-client |
| 1008 * account. This method supports patch semantics. |
983 * | 1009 * |
984 * [request] - The metadata request object. | 1010 * [request] - The metadata request object. |
985 * | 1011 * |
986 * Request parameters: | 1012 * Request parameters: |
987 * | 1013 * |
988 * [merchantId] - The ID of the managing account. | 1014 * [merchantId] - The ID of the managing account. |
989 * | 1015 * |
990 * [accountId] - The ID of the account for which to get/update account tax | 1016 * [accountId] - The ID of the account for which to get/update account tax |
991 * settings. | 1017 * settings. |
992 * | 1018 * |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1027 "PATCH", | 1053 "PATCH", |
1028 body: _body, | 1054 body: _body, |
1029 queryParams: _queryParams, | 1055 queryParams: _queryParams, |
1030 uploadOptions: _uploadOptions, | 1056 uploadOptions: _uploadOptions, |
1031 uploadMedia: _uploadMedia, | 1057 uploadMedia: _uploadMedia, |
1032 downloadOptions: _downloadOptions); | 1058 downloadOptions: _downloadOptions); |
1033 return _response.then((data) => new AccountTax.fromJson(data)); | 1059 return _response.then((data) => new AccountTax.fromJson(data)); |
1034 } | 1060 } |
1035 | 1061 |
1036 /** | 1062 /** |
1037 * Updates the tax settings of the account. | 1063 * Updates the tax settings of the account. This method can only be called for |
| 1064 * accounts to which the managing account has access: either the managing |
| 1065 * account itself or sub-accounts if the managing account is a multi-client |
| 1066 * account. |
1038 * | 1067 * |
1039 * [request] - The metadata request object. | 1068 * [request] - The metadata request object. |
1040 * | 1069 * |
1041 * Request parameters: | 1070 * Request parameters: |
1042 * | 1071 * |
1043 * [merchantId] - The ID of the managing account. | 1072 * [merchantId] - The ID of the managing account. |
1044 * | 1073 * |
1045 * [accountId] - The ID of the account for which to get/update account tax | 1074 * [accountId] - The ID of the account for which to get/update account tax |
1046 * settings. | 1075 * settings. |
1047 * | 1076 * |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 "POST", | 1162 "POST", |
1134 body: _body, | 1163 body: _body, |
1135 queryParams: _queryParams, | 1164 queryParams: _queryParams, |
1136 uploadOptions: _uploadOptions, | 1165 uploadOptions: _uploadOptions, |
1137 uploadMedia: _uploadMedia, | 1166 uploadMedia: _uploadMedia, |
1138 downloadOptions: _downloadOptions); | 1167 downloadOptions: _downloadOptions); |
1139 return _response.then((data) => new DatafeedsCustomBatchResponse.fromJson(da
ta)); | 1168 return _response.then((data) => new DatafeedsCustomBatchResponse.fromJson(da
ta)); |
1140 } | 1169 } |
1141 | 1170 |
1142 /** | 1171 /** |
1143 * Deletes a datafeed from your Merchant Center account. | 1172 * Deletes a datafeed from your Merchant Center account. This method can only |
| 1173 * be called for non-multi-client accounts. |
1144 * | 1174 * |
1145 * Request parameters: | 1175 * Request parameters: |
1146 * | 1176 * |
1147 * [merchantId] - null | 1177 * [merchantId] - null |
1148 * | 1178 * |
1149 * [datafeedId] - null | 1179 * [datafeedId] - null |
1150 * | 1180 * |
1151 * [dryRun] - Flag to run the request in dry-run mode. | 1181 * [dryRun] - Flag to run the request in dry-run mode. |
1152 * | 1182 * |
1153 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1183 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 28 matching lines...) Expand all Loading... |
1182 "DELETE", | 1212 "DELETE", |
1183 body: _body, | 1213 body: _body, |
1184 queryParams: _queryParams, | 1214 queryParams: _queryParams, |
1185 uploadOptions: _uploadOptions, | 1215 uploadOptions: _uploadOptions, |
1186 uploadMedia: _uploadMedia, | 1216 uploadMedia: _uploadMedia, |
1187 downloadOptions: _downloadOptions); | 1217 downloadOptions: _downloadOptions); |
1188 return _response.then((data) => null); | 1218 return _response.then((data) => null); |
1189 } | 1219 } |
1190 | 1220 |
1191 /** | 1221 /** |
1192 * Retrieves a datafeed from your Merchant Center account. | 1222 * Retrieves a datafeed from your Merchant Center account. This method can |
| 1223 * only be called for non-multi-client accounts. |
1193 * | 1224 * |
1194 * Request parameters: | 1225 * Request parameters: |
1195 * | 1226 * |
1196 * [merchantId] - null | 1227 * [merchantId] - null |
1197 * | 1228 * |
1198 * [datafeedId] - null | 1229 * [datafeedId] - null |
1199 * | 1230 * |
1200 * Completes with a [Datafeed]. | 1231 * Completes with a [Datafeed]. |
1201 * | 1232 * |
1202 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1233 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 23 matching lines...) Expand all Loading... |
1226 "GET", | 1257 "GET", |
1227 body: _body, | 1258 body: _body, |
1228 queryParams: _queryParams, | 1259 queryParams: _queryParams, |
1229 uploadOptions: _uploadOptions, | 1260 uploadOptions: _uploadOptions, |
1230 uploadMedia: _uploadMedia, | 1261 uploadMedia: _uploadMedia, |
1231 downloadOptions: _downloadOptions); | 1262 downloadOptions: _downloadOptions); |
1232 return _response.then((data) => new Datafeed.fromJson(data)); | 1263 return _response.then((data) => new Datafeed.fromJson(data)); |
1233 } | 1264 } |
1234 | 1265 |
1235 /** | 1266 /** |
1236 * Registers a datafeed with your Merchant Center account. | 1267 * Registers a datafeed with your Merchant Center account. This method can |
| 1268 * only be called for non-multi-client accounts. |
1237 * | 1269 * |
1238 * [request] - The metadata request object. | 1270 * [request] - The metadata request object. |
1239 * | 1271 * |
1240 * Request parameters: | 1272 * Request parameters: |
1241 * | 1273 * |
1242 * [merchantId] - null | 1274 * [merchantId] - null |
1243 * | 1275 * |
1244 * [dryRun] - Flag to run the request in dry-run mode. | 1276 * [dryRun] - Flag to run the request in dry-run mode. |
1245 * | 1277 * |
1246 * Completes with a [Datafeed]. | 1278 * Completes with a [Datafeed]. |
(...skipping 28 matching lines...) Expand all Loading... |
1275 "POST", | 1307 "POST", |
1276 body: _body, | 1308 body: _body, |
1277 queryParams: _queryParams, | 1309 queryParams: _queryParams, |
1278 uploadOptions: _uploadOptions, | 1310 uploadOptions: _uploadOptions, |
1279 uploadMedia: _uploadMedia, | 1311 uploadMedia: _uploadMedia, |
1280 downloadOptions: _downloadOptions); | 1312 downloadOptions: _downloadOptions); |
1281 return _response.then((data) => new Datafeed.fromJson(data)); | 1313 return _response.then((data) => new Datafeed.fromJson(data)); |
1282 } | 1314 } |
1283 | 1315 |
1284 /** | 1316 /** |
1285 * Lists the datafeeds in your Merchant Center account. | 1317 * Lists the datafeeds in your Merchant Center account. This method can only |
| 1318 * be called for non-multi-client accounts. |
1286 * | 1319 * |
1287 * Request parameters: | 1320 * Request parameters: |
1288 * | 1321 * |
1289 * [merchantId] - The ID of the managing account. | 1322 * [merchantId] - The ID of the managing account. |
1290 * | 1323 * |
1291 * [maxResults] - The maximum number of products to return in the response, | 1324 * [maxResults] - The maximum number of products to return in the response, |
1292 * used for paging. | 1325 * used for paging. |
1293 * | 1326 * |
1294 * [pageToken] - The token returned by the previous request. | 1327 * [pageToken] - The token returned by the previous request. |
1295 * | 1328 * |
(...skipping 29 matching lines...) Expand all Loading... |
1325 "GET", | 1358 "GET", |
1326 body: _body, | 1359 body: _body, |
1327 queryParams: _queryParams, | 1360 queryParams: _queryParams, |
1328 uploadOptions: _uploadOptions, | 1361 uploadOptions: _uploadOptions, |
1329 uploadMedia: _uploadMedia, | 1362 uploadMedia: _uploadMedia, |
1330 downloadOptions: _downloadOptions); | 1363 downloadOptions: _downloadOptions); |
1331 return _response.then((data) => new DatafeedsListResponse.fromJson(data)); | 1364 return _response.then((data) => new DatafeedsListResponse.fromJson(data)); |
1332 } | 1365 } |
1333 | 1366 |
1334 /** | 1367 /** |
1335 * Updates a datafeed of your Merchant Center account. This method supports | 1368 * Updates a datafeed of your Merchant Center account. This method can only be |
1336 * patch semantics. | 1369 * called for non-multi-client accounts. This method supports patch semantics. |
1337 * | 1370 * |
1338 * [request] - The metadata request object. | 1371 * [request] - The metadata request object. |
1339 * | 1372 * |
1340 * Request parameters: | 1373 * Request parameters: |
1341 * | 1374 * |
1342 * [merchantId] - null | 1375 * [merchantId] - null |
1343 * | 1376 * |
1344 * [datafeedId] - null | 1377 * [datafeedId] - null |
1345 * | 1378 * |
1346 * [dryRun] - Flag to run the request in dry-run mode. | 1379 * [dryRun] - Flag to run the request in dry-run mode. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1380 "PATCH", | 1413 "PATCH", |
1381 body: _body, | 1414 body: _body, |
1382 queryParams: _queryParams, | 1415 queryParams: _queryParams, |
1383 uploadOptions: _uploadOptions, | 1416 uploadOptions: _uploadOptions, |
1384 uploadMedia: _uploadMedia, | 1417 uploadMedia: _uploadMedia, |
1385 downloadOptions: _downloadOptions); | 1418 downloadOptions: _downloadOptions); |
1386 return _response.then((data) => new Datafeed.fromJson(data)); | 1419 return _response.then((data) => new Datafeed.fromJson(data)); |
1387 } | 1420 } |
1388 | 1421 |
1389 /** | 1422 /** |
1390 * Updates a datafeed of your Merchant Center account. | 1423 * Updates a datafeed of your Merchant Center account. This method can only be |
| 1424 * called for non-multi-client accounts. |
1391 * | 1425 * |
1392 * [request] - The metadata request object. | 1426 * [request] - The metadata request object. |
1393 * | 1427 * |
1394 * Request parameters: | 1428 * Request parameters: |
1395 * | 1429 * |
1396 * [merchantId] - null | 1430 * [merchantId] - null |
1397 * | 1431 * |
1398 * [datafeedId] - null | 1432 * [datafeedId] - null |
1399 * | 1433 * |
1400 * [dryRun] - Flag to run the request in dry-run mode. | 1434 * [dryRun] - Flag to run the request in dry-run mode. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1480 "POST", | 1514 "POST", |
1481 body: _body, | 1515 body: _body, |
1482 queryParams: _queryParams, | 1516 queryParams: _queryParams, |
1483 uploadOptions: _uploadOptions, | 1517 uploadOptions: _uploadOptions, |
1484 uploadMedia: _uploadMedia, | 1518 uploadMedia: _uploadMedia, |
1485 downloadOptions: _downloadOptions); | 1519 downloadOptions: _downloadOptions); |
1486 return _response.then((data) => new DatafeedstatusesCustomBatchResponse.from
Json(data)); | 1520 return _response.then((data) => new DatafeedstatusesCustomBatchResponse.from
Json(data)); |
1487 } | 1521 } |
1488 | 1522 |
1489 /** | 1523 /** |
1490 * Retrieves the status of a datafeed from your Merchant Center account. | 1524 * Retrieves the status of a datafeed from your Merchant Center account. This |
| 1525 * method can only be called for non-multi-client accounts. |
1491 * | 1526 * |
1492 * Request parameters: | 1527 * Request parameters: |
1493 * | 1528 * |
1494 * [merchantId] - null | 1529 * [merchantId] - null |
1495 * | 1530 * |
1496 * [datafeedId] - null | 1531 * [datafeedId] - null |
1497 * | 1532 * |
1498 * Completes with a [DatafeedStatus]. | 1533 * Completes with a [DatafeedStatus]. |
1499 * | 1534 * |
1500 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1535 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 23 matching lines...) Expand all Loading... |
1524 "GET", | 1559 "GET", |
1525 body: _body, | 1560 body: _body, |
1526 queryParams: _queryParams, | 1561 queryParams: _queryParams, |
1527 uploadOptions: _uploadOptions, | 1562 uploadOptions: _uploadOptions, |
1528 uploadMedia: _uploadMedia, | 1563 uploadMedia: _uploadMedia, |
1529 downloadOptions: _downloadOptions); | 1564 downloadOptions: _downloadOptions); |
1530 return _response.then((data) => new DatafeedStatus.fromJson(data)); | 1565 return _response.then((data) => new DatafeedStatus.fromJson(data)); |
1531 } | 1566 } |
1532 | 1567 |
1533 /** | 1568 /** |
1534 * Lists the statuses of the datafeeds in your Merchant Center account. | 1569 * Lists the statuses of the datafeeds in your Merchant Center account. This |
| 1570 * method can only be called for non-multi-client accounts. |
1535 * | 1571 * |
1536 * Request parameters: | 1572 * Request parameters: |
1537 * | 1573 * |
1538 * [merchantId] - The ID of the managing account. | 1574 * [merchantId] - The ID of the managing account. |
1539 * | 1575 * |
1540 * [maxResults] - The maximum number of products to return in the response, | 1576 * [maxResults] - The maximum number of products to return in the response, |
1541 * used for paging. | 1577 * used for paging. |
1542 * | 1578 * |
1543 * [pageToken] - The token returned by the previous request. | 1579 * [pageToken] - The token returned by the previous request. |
1544 * | 1580 * |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1585 | 1621 |
1586 class InventoryResourceApi { | 1622 class InventoryResourceApi { |
1587 final commons.ApiRequester _requester; | 1623 final commons.ApiRequester _requester; |
1588 | 1624 |
1589 InventoryResourceApi(commons.ApiRequester client) : | 1625 InventoryResourceApi(commons.ApiRequester client) : |
1590 _requester = client; | 1626 _requester = client; |
1591 | 1627 |
1592 /** | 1628 /** |
1593 * Updates price and availability for multiple products or stores in a single | 1629 * Updates price and availability for multiple products or stores in a single |
1594 * request. This operation does not update the expiration date of the | 1630 * request. This operation does not update the expiration date of the |
1595 * products. | 1631 * products. This method can only be called for non-multi-client accounts. |
1596 * | 1632 * |
1597 * [request] - The metadata request object. | 1633 * [request] - The metadata request object. |
1598 * | 1634 * |
1599 * Request parameters: | 1635 * Request parameters: |
1600 * | 1636 * |
1601 * [dryRun] - Flag to run the request in dry-run mode. | 1637 * [dryRun] - Flag to run the request in dry-run mode. |
1602 * | 1638 * |
1603 * Completes with a [InventoryCustomBatchResponse]. | 1639 * Completes with a [InventoryCustomBatchResponse]. |
1604 * | 1640 * |
1605 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1641 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 25 matching lines...) Expand all Loading... |
1631 queryParams: _queryParams, | 1667 queryParams: _queryParams, |
1632 uploadOptions: _uploadOptions, | 1668 uploadOptions: _uploadOptions, |
1633 uploadMedia: _uploadMedia, | 1669 uploadMedia: _uploadMedia, |
1634 downloadOptions: _downloadOptions); | 1670 downloadOptions: _downloadOptions); |
1635 return _response.then((data) => new InventoryCustomBatchResponse.fromJson(da
ta)); | 1671 return _response.then((data) => new InventoryCustomBatchResponse.fromJson(da
ta)); |
1636 } | 1672 } |
1637 | 1673 |
1638 /** | 1674 /** |
1639 * Updates price and availability of a product in your Merchant Center | 1675 * Updates price and availability of a product in your Merchant Center |
1640 * account. This operation does not update the expiration date of the product. | 1676 * account. This operation does not update the expiration date of the product. |
| 1677 * This method can only be called for non-multi-client accounts. |
1641 * | 1678 * |
1642 * [request] - The metadata request object. | 1679 * [request] - The metadata request object. |
1643 * | 1680 * |
1644 * Request parameters: | 1681 * Request parameters: |
1645 * | 1682 * |
1646 * [merchantId] - The ID of the managing account. | 1683 * [merchantId] - The ID of the managing account. |
1647 * | 1684 * |
1648 * [storeCode] - The code of the store for which to update price and | 1685 * [storeCode] - The code of the store for which to update price and |
1649 * availability. Use online to update price and availability of an online | 1686 * availability. Use online to update price and availability of an online |
1650 * product. | 1687 * product. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1701 } | 1738 } |
1702 | 1739 |
1703 | 1740 |
1704 class OrdersResourceApi { | 1741 class OrdersResourceApi { |
1705 final commons.ApiRequester _requester; | 1742 final commons.ApiRequester _requester; |
1706 | 1743 |
1707 OrdersResourceApi(commons.ApiRequester client) : | 1744 OrdersResourceApi(commons.ApiRequester client) : |
1708 _requester = client; | 1745 _requester = client; |
1709 | 1746 |
1710 /** | 1747 /** |
1711 * Marks an order as acknowledged. | 1748 * Marks an order as acknowledged. This method can only be called for |
| 1749 * non-multi-client accounts. |
1712 * | 1750 * |
1713 * [request] - The metadata request object. | 1751 * [request] - The metadata request object. |
1714 * | 1752 * |
1715 * Request parameters: | 1753 * Request parameters: |
1716 * | 1754 * |
1717 * [merchantId] - The ID of the managing account. | 1755 * [merchantId] - The ID of the managing account. |
1718 * | 1756 * |
1719 * [orderId] - The ID of the order. | 1757 * [orderId] - The ID of the order. |
1720 * | 1758 * |
1721 * Completes with a [OrdersAcknowledgeResponse]. | 1759 * Completes with a [OrdersAcknowledgeResponse]. |
(...skipping 29 matching lines...) Expand all Loading... |
1751 body: _body, | 1789 body: _body, |
1752 queryParams: _queryParams, | 1790 queryParams: _queryParams, |
1753 uploadOptions: _uploadOptions, | 1791 uploadOptions: _uploadOptions, |
1754 uploadMedia: _uploadMedia, | 1792 uploadMedia: _uploadMedia, |
1755 downloadOptions: _downloadOptions); | 1793 downloadOptions: _downloadOptions); |
1756 return _response.then((data) => new OrdersAcknowledgeResponse.fromJson(data)
); | 1794 return _response.then((data) => new OrdersAcknowledgeResponse.fromJson(data)
); |
1757 } | 1795 } |
1758 | 1796 |
1759 /** | 1797 /** |
1760 * Sandbox only. Moves a test order from state "inProgress" to state | 1798 * Sandbox only. Moves a test order from state "inProgress" to state |
1761 * "pendingShipment". | 1799 * "pendingShipment". This method can only be called for non-multi-client |
| 1800 * accounts. |
1762 * | 1801 * |
1763 * Request parameters: | 1802 * Request parameters: |
1764 * | 1803 * |
1765 * [merchantId] - The ID of the managing account. | 1804 * [merchantId] - The ID of the managing account. |
1766 * | 1805 * |
1767 * [orderId] - The ID of the test order to modify. | 1806 * [orderId] - The ID of the test order to modify. |
1768 * | 1807 * |
1769 * Completes with a [OrdersAdvanceTestOrderResponse]. | 1808 * Completes with a [OrdersAdvanceTestOrderResponse]. |
1770 * | 1809 * |
1771 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1810 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 23 matching lines...) Expand all Loading... |
1795 "POST", | 1834 "POST", |
1796 body: _body, | 1835 body: _body, |
1797 queryParams: _queryParams, | 1836 queryParams: _queryParams, |
1798 uploadOptions: _uploadOptions, | 1837 uploadOptions: _uploadOptions, |
1799 uploadMedia: _uploadMedia, | 1838 uploadMedia: _uploadMedia, |
1800 downloadOptions: _downloadOptions); | 1839 downloadOptions: _downloadOptions); |
1801 return _response.then((data) => new OrdersAdvanceTestOrderResponse.fromJson(
data)); | 1840 return _response.then((data) => new OrdersAdvanceTestOrderResponse.fromJson(
data)); |
1802 } | 1841 } |
1803 | 1842 |
1804 /** | 1843 /** |
1805 * Cancels all line items in an order. | 1844 * Cancels all line items in an order. This method can only be called for |
| 1845 * non-multi-client accounts. |
1806 * | 1846 * |
1807 * [request] - The metadata request object. | 1847 * [request] - The metadata request object. |
1808 * | 1848 * |
1809 * Request parameters: | 1849 * Request parameters: |
1810 * | 1850 * |
1811 * [merchantId] - The ID of the managing account. | 1851 * [merchantId] - The ID of the managing account. |
1812 * | 1852 * |
1813 * [orderId] - The ID of the order to cancel. | 1853 * [orderId] - The ID of the order to cancel. |
1814 * | 1854 * |
1815 * Completes with a [OrdersCancelResponse]. | 1855 * Completes with a [OrdersCancelResponse]. |
(...skipping 28 matching lines...) Expand all Loading... |
1844 "POST", | 1884 "POST", |
1845 body: _body, | 1885 body: _body, |
1846 queryParams: _queryParams, | 1886 queryParams: _queryParams, |
1847 uploadOptions: _uploadOptions, | 1887 uploadOptions: _uploadOptions, |
1848 uploadMedia: _uploadMedia, | 1888 uploadMedia: _uploadMedia, |
1849 downloadOptions: _downloadOptions); | 1889 downloadOptions: _downloadOptions); |
1850 return _response.then((data) => new OrdersCancelResponse.fromJson(data)); | 1890 return _response.then((data) => new OrdersCancelResponse.fromJson(data)); |
1851 } | 1891 } |
1852 | 1892 |
1853 /** | 1893 /** |
1854 * Cancels a line item. | 1894 * Cancels a line item. This method can only be called for non-multi-client |
| 1895 * accounts. |
1855 * | 1896 * |
1856 * [request] - The metadata request object. | 1897 * [request] - The metadata request object. |
1857 * | 1898 * |
1858 * Request parameters: | 1899 * Request parameters: |
1859 * | 1900 * |
1860 * [merchantId] - The ID of the managing account. | 1901 * [merchantId] - The ID of the managing account. |
1861 * | 1902 * |
1862 * [orderId] - The ID of the order. | 1903 * [orderId] - The ID of the order. |
1863 * | 1904 * |
1864 * Completes with a [OrdersCancelLineItemResponse]. | 1905 * Completes with a [OrdersCancelLineItemResponse]. |
(...skipping 28 matching lines...) Expand all Loading... |
1893 "POST", | 1934 "POST", |
1894 body: _body, | 1935 body: _body, |
1895 queryParams: _queryParams, | 1936 queryParams: _queryParams, |
1896 uploadOptions: _uploadOptions, | 1937 uploadOptions: _uploadOptions, |
1897 uploadMedia: _uploadMedia, | 1938 uploadMedia: _uploadMedia, |
1898 downloadOptions: _downloadOptions); | 1939 downloadOptions: _downloadOptions); |
1899 return _response.then((data) => new OrdersCancelLineItemResponse.fromJson(da
ta)); | 1940 return _response.then((data) => new OrdersCancelLineItemResponse.fromJson(da
ta)); |
1900 } | 1941 } |
1901 | 1942 |
1902 /** | 1943 /** |
1903 * Sandbox only. Creates a test order. | 1944 * Sandbox only. Creates a test order. This method can only be called for |
| 1945 * non-multi-client accounts. |
1904 * | 1946 * |
1905 * [request] - The metadata request object. | 1947 * [request] - The metadata request object. |
1906 * | 1948 * |
1907 * Request parameters: | 1949 * Request parameters: |
1908 * | 1950 * |
1909 * [merchantId] - The ID of the managing account. | 1951 * [merchantId] - The ID of the managing account. |
1910 * | 1952 * |
1911 * Completes with a [OrdersCreateTestOrderResponse]. | 1953 * Completes with a [OrdersCreateTestOrderResponse]. |
1912 * | 1954 * |
1913 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1955 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 23 matching lines...) Expand all Loading... |
1937 "POST", | 1979 "POST", |
1938 body: _body, | 1980 body: _body, |
1939 queryParams: _queryParams, | 1981 queryParams: _queryParams, |
1940 uploadOptions: _uploadOptions, | 1982 uploadOptions: _uploadOptions, |
1941 uploadMedia: _uploadMedia, | 1983 uploadMedia: _uploadMedia, |
1942 downloadOptions: _downloadOptions); | 1984 downloadOptions: _downloadOptions); |
1943 return _response.then((data) => new OrdersCreateTestOrderResponse.fromJson(d
ata)); | 1985 return _response.then((data) => new OrdersCreateTestOrderResponse.fromJson(d
ata)); |
1944 } | 1986 } |
1945 | 1987 |
1946 /** | 1988 /** |
1947 * Retrieves or modifies multiple orders in a single request. | 1989 * Retrieves or modifies multiple orders in a single request. This method can |
| 1990 * only be called for non-multi-client accounts. |
1948 * | 1991 * |
1949 * [request] - The metadata request object. | 1992 * [request] - The metadata request object. |
1950 * | 1993 * |
1951 * Request parameters: | 1994 * Request parameters: |
1952 * | 1995 * |
1953 * Completes with a [OrdersCustomBatchResponse]. | 1996 * Completes with a [OrdersCustomBatchResponse]. |
1954 * | 1997 * |
1955 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1998 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1956 * error. | 1999 * error. |
1957 * | 2000 * |
(...skipping 18 matching lines...) Expand all Loading... |
1976 "POST", | 2019 "POST", |
1977 body: _body, | 2020 body: _body, |
1978 queryParams: _queryParams, | 2021 queryParams: _queryParams, |
1979 uploadOptions: _uploadOptions, | 2022 uploadOptions: _uploadOptions, |
1980 uploadMedia: _uploadMedia, | 2023 uploadMedia: _uploadMedia, |
1981 downloadOptions: _downloadOptions); | 2024 downloadOptions: _downloadOptions); |
1982 return _response.then((data) => new OrdersCustomBatchResponse.fromJson(data)
); | 2025 return _response.then((data) => new OrdersCustomBatchResponse.fromJson(data)
); |
1983 } | 2026 } |
1984 | 2027 |
1985 /** | 2028 /** |
1986 * Retrieves an order from your Merchant Center account. | 2029 * Retrieves an order from your Merchant Center account. This method can only |
| 2030 * be called for non-multi-client accounts. |
1987 * | 2031 * |
1988 * Request parameters: | 2032 * Request parameters: |
1989 * | 2033 * |
1990 * [merchantId] - The ID of the managing account. | 2034 * [merchantId] - The ID of the managing account. |
1991 * | 2035 * |
1992 * [orderId] - The ID of the order. | 2036 * [orderId] - The ID of the order. |
1993 * | 2037 * |
1994 * Completes with a [Order]. | 2038 * Completes with a [Order]. |
1995 * | 2039 * |
1996 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2040 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 23 matching lines...) Expand all Loading... |
2020 "GET", | 2064 "GET", |
2021 body: _body, | 2065 body: _body, |
2022 queryParams: _queryParams, | 2066 queryParams: _queryParams, |
2023 uploadOptions: _uploadOptions, | 2067 uploadOptions: _uploadOptions, |
2024 uploadMedia: _uploadMedia, | 2068 uploadMedia: _uploadMedia, |
2025 downloadOptions: _downloadOptions); | 2069 downloadOptions: _downloadOptions); |
2026 return _response.then((data) => new Order.fromJson(data)); | 2070 return _response.then((data) => new Order.fromJson(data)); |
2027 } | 2071 } |
2028 | 2072 |
2029 /** | 2073 /** |
2030 * Retrieves an order using merchant order id. | 2074 * Retrieves an order using merchant order id. This method can only be called |
| 2075 * for non-multi-client accounts. |
2031 * | 2076 * |
2032 * Request parameters: | 2077 * Request parameters: |
2033 * | 2078 * |
2034 * [merchantId] - The ID of the managing account. | 2079 * [merchantId] - The ID of the managing account. |
2035 * | 2080 * |
2036 * [merchantOrderId] - The merchant order id to be looked for. | 2081 * [merchantOrderId] - The merchant order id to be looked for. |
2037 * | 2082 * |
2038 * Completes with a [OrdersGetByMerchantOrderIdResponse]. | 2083 * Completes with a [OrdersGetByMerchantOrderIdResponse]. |
2039 * | 2084 * |
2040 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2085 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 24 matching lines...) Expand all Loading... |
2065 body: _body, | 2110 body: _body, |
2066 queryParams: _queryParams, | 2111 queryParams: _queryParams, |
2067 uploadOptions: _uploadOptions, | 2112 uploadOptions: _uploadOptions, |
2068 uploadMedia: _uploadMedia, | 2113 uploadMedia: _uploadMedia, |
2069 downloadOptions: _downloadOptions); | 2114 downloadOptions: _downloadOptions); |
2070 return _response.then((data) => new OrdersGetByMerchantOrderIdResponse.fromJ
son(data)); | 2115 return _response.then((data) => new OrdersGetByMerchantOrderIdResponse.fromJ
son(data)); |
2071 } | 2116 } |
2072 | 2117 |
2073 /** | 2118 /** |
2074 * Sandbox only. Retrieves an order template that can be used to quickly | 2119 * Sandbox only. Retrieves an order template that can be used to quickly |
2075 * create a new order in sandbox. | 2120 * create a new order in sandbox. This method can only be called for |
| 2121 * non-multi-client accounts. |
2076 * | 2122 * |
2077 * Request parameters: | 2123 * Request parameters: |
2078 * | 2124 * |
2079 * [merchantId] - The ID of the managing account. | 2125 * [merchantId] - The ID of the managing account. |
2080 * | 2126 * |
2081 * [templateName] - The name of the template to retrieve. | 2127 * [templateName] - The name of the template to retrieve. |
2082 * Possible string values are: | 2128 * Possible string values are: |
2083 * - "template1" | 2129 * - "template1" |
2084 * - "template1a" | 2130 * - "template1a" |
2085 * - "template1b" | 2131 * - "template1b" |
(...skipping 28 matching lines...) Expand all Loading... |
2114 "GET", | 2160 "GET", |
2115 body: _body, | 2161 body: _body, |
2116 queryParams: _queryParams, | 2162 queryParams: _queryParams, |
2117 uploadOptions: _uploadOptions, | 2163 uploadOptions: _uploadOptions, |
2118 uploadMedia: _uploadMedia, | 2164 uploadMedia: _uploadMedia, |
2119 downloadOptions: _downloadOptions); | 2165 downloadOptions: _downloadOptions); |
2120 return _response.then((data) => new OrdersGetTestOrderTemplateResponse.fromJ
son(data)); | 2166 return _response.then((data) => new OrdersGetTestOrderTemplateResponse.fromJ
son(data)); |
2121 } | 2167 } |
2122 | 2168 |
2123 /** | 2169 /** |
2124 * Lists the orders in your Merchant Center account. | 2170 * Lists the orders in your Merchant Center account. This method can only be |
| 2171 * called for non-multi-client accounts. |
2125 * | 2172 * |
2126 * Request parameters: | 2173 * Request parameters: |
2127 * | 2174 * |
2128 * [merchantId] - The ID of the managing account. | 2175 * [merchantId] - The ID of the managing account. |
2129 * | 2176 * |
2130 * [acknowledged] - Obtains orders that match the acknowledgement status. When | 2177 * [acknowledged] - Obtains orders that match the acknowledgement status. When |
2131 * set to true, obtains orders that have been acknowledged. When false, | 2178 * set to true, obtains orders that have been acknowledged. When false, |
2132 * obtains orders that have not been acknowledged. | 2179 * obtains orders that have not been acknowledged. |
2133 * We recommend using this filter set to false, in conjunction with the | 2180 * We recommend using this filter set to false, in conjunction with the |
2134 * acknowledge call, such that only un-acknowledged orders are returned. | 2181 * acknowledge call, such that only un-acknowledged orders are returned. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2210 "GET", | 2257 "GET", |
2211 body: _body, | 2258 body: _body, |
2212 queryParams: _queryParams, | 2259 queryParams: _queryParams, |
2213 uploadOptions: _uploadOptions, | 2260 uploadOptions: _uploadOptions, |
2214 uploadMedia: _uploadMedia, | 2261 uploadMedia: _uploadMedia, |
2215 downloadOptions: _downloadOptions); | 2262 downloadOptions: _downloadOptions); |
2216 return _response.then((data) => new OrdersListResponse.fromJson(data)); | 2263 return _response.then((data) => new OrdersListResponse.fromJson(data)); |
2217 } | 2264 } |
2218 | 2265 |
2219 /** | 2266 /** |
2220 * Refund a portion of the order, up to the full amount paid. | 2267 * Refund a portion of the order, up to the full amount paid. This method can |
| 2268 * only be called for non-multi-client accounts. |
2221 * | 2269 * |
2222 * [request] - The metadata request object. | 2270 * [request] - The metadata request object. |
2223 * | 2271 * |
2224 * Request parameters: | 2272 * Request parameters: |
2225 * | 2273 * |
2226 * [merchantId] - The ID of the managing account. | 2274 * [merchantId] - The ID of the managing account. |
2227 * | 2275 * |
2228 * [orderId] - The ID of the order to refund. | 2276 * [orderId] - The ID of the order to refund. |
2229 * | 2277 * |
2230 * Completes with a [OrdersRefundResponse]. | 2278 * Completes with a [OrdersRefundResponse]. |
(...skipping 28 matching lines...) Expand all Loading... |
2259 "POST", | 2307 "POST", |
2260 body: _body, | 2308 body: _body, |
2261 queryParams: _queryParams, | 2309 queryParams: _queryParams, |
2262 uploadOptions: _uploadOptions, | 2310 uploadOptions: _uploadOptions, |
2263 uploadMedia: _uploadMedia, | 2311 uploadMedia: _uploadMedia, |
2264 downloadOptions: _downloadOptions); | 2312 downloadOptions: _downloadOptions); |
2265 return _response.then((data) => new OrdersRefundResponse.fromJson(data)); | 2313 return _response.then((data) => new OrdersRefundResponse.fromJson(data)); |
2266 } | 2314 } |
2267 | 2315 |
2268 /** | 2316 /** |
2269 * Returns a line item. | 2317 * Returns a line item. This method can only be called for non-multi-client |
| 2318 * accounts. |
2270 * | 2319 * |
2271 * [request] - The metadata request object. | 2320 * [request] - The metadata request object. |
2272 * | 2321 * |
2273 * Request parameters: | 2322 * Request parameters: |
2274 * | 2323 * |
2275 * [merchantId] - The ID of the managing account. | 2324 * [merchantId] - The ID of the managing account. |
2276 * | 2325 * |
2277 * [orderId] - The ID of the order. | 2326 * [orderId] - The ID of the order. |
2278 * | 2327 * |
2279 * Completes with a [OrdersReturnLineItemResponse]. | 2328 * Completes with a [OrdersReturnLineItemResponse]. |
(...skipping 28 matching lines...) Expand all Loading... |
2308 "POST", | 2357 "POST", |
2309 body: _body, | 2358 body: _body, |
2310 queryParams: _queryParams, | 2359 queryParams: _queryParams, |
2311 uploadOptions: _uploadOptions, | 2360 uploadOptions: _uploadOptions, |
2312 uploadMedia: _uploadMedia, | 2361 uploadMedia: _uploadMedia, |
2313 downloadOptions: _downloadOptions); | 2362 downloadOptions: _downloadOptions); |
2314 return _response.then((data) => new OrdersReturnLineItemResponse.fromJson(da
ta)); | 2363 return _response.then((data) => new OrdersReturnLineItemResponse.fromJson(da
ta)); |
2315 } | 2364 } |
2316 | 2365 |
2317 /** | 2366 /** |
2318 * Marks line item(s) as shipped. | 2367 * Marks line item(s) as shipped. This method can only be called for |
| 2368 * non-multi-client accounts. |
2319 * | 2369 * |
2320 * [request] - The metadata request object. | 2370 * [request] - The metadata request object. |
2321 * | 2371 * |
2322 * Request parameters: | 2372 * Request parameters: |
2323 * | 2373 * |
2324 * [merchantId] - The ID of the managing account. | 2374 * [merchantId] - The ID of the managing account. |
2325 * | 2375 * |
2326 * [orderId] - The ID of the order. | 2376 * [orderId] - The ID of the order. |
2327 * | 2377 * |
2328 * Completes with a [OrdersShipLineItemsResponse]. | 2378 * Completes with a [OrdersShipLineItemsResponse]. |
(...skipping 28 matching lines...) Expand all Loading... |
2357 "POST", | 2407 "POST", |
2358 body: _body, | 2408 body: _body, |
2359 queryParams: _queryParams, | 2409 queryParams: _queryParams, |
2360 uploadOptions: _uploadOptions, | 2410 uploadOptions: _uploadOptions, |
2361 uploadMedia: _uploadMedia, | 2411 uploadMedia: _uploadMedia, |
2362 downloadOptions: _downloadOptions); | 2412 downloadOptions: _downloadOptions); |
2363 return _response.then((data) => new OrdersShipLineItemsResponse.fromJson(dat
a)); | 2413 return _response.then((data) => new OrdersShipLineItemsResponse.fromJson(dat
a)); |
2364 } | 2414 } |
2365 | 2415 |
2366 /** | 2416 /** |
2367 * Updates the merchant order ID for a given order. | 2417 * Updates the merchant order ID for a given order. This method can only be |
| 2418 * called for non-multi-client accounts. |
2368 * | 2419 * |
2369 * [request] - The metadata request object. | 2420 * [request] - The metadata request object. |
2370 * | 2421 * |
2371 * Request parameters: | 2422 * Request parameters: |
2372 * | 2423 * |
2373 * [merchantId] - The ID of the managing account. | 2424 * [merchantId] - The ID of the managing account. |
2374 * | 2425 * |
2375 * [orderId] - The ID of the order. | 2426 * [orderId] - The ID of the order. |
2376 * | 2427 * |
2377 * Completes with a [OrdersUpdateMerchantOrderIdResponse]. | 2428 * Completes with a [OrdersUpdateMerchantOrderIdResponse]. |
(...skipping 28 matching lines...) Expand all Loading... |
2406 "POST", | 2457 "POST", |
2407 body: _body, | 2458 body: _body, |
2408 queryParams: _queryParams, | 2459 queryParams: _queryParams, |
2409 uploadOptions: _uploadOptions, | 2460 uploadOptions: _uploadOptions, |
2410 uploadMedia: _uploadMedia, | 2461 uploadMedia: _uploadMedia, |
2411 downloadOptions: _downloadOptions); | 2462 downloadOptions: _downloadOptions); |
2412 return _response.then((data) => new OrdersUpdateMerchantOrderIdResponse.from
Json(data)); | 2463 return _response.then((data) => new OrdersUpdateMerchantOrderIdResponse.from
Json(data)); |
2413 } | 2464 } |
2414 | 2465 |
2415 /** | 2466 /** |
2416 * Updates a shipment's status, carrier, and/or tracking ID. | 2467 * Updates a shipment's status, carrier, and/or tracking ID. This method can |
| 2468 * only be called for non-multi-client accounts. |
2417 * | 2469 * |
2418 * [request] - The metadata request object. | 2470 * [request] - The metadata request object. |
2419 * | 2471 * |
2420 * Request parameters: | 2472 * Request parameters: |
2421 * | 2473 * |
2422 * [merchantId] - The ID of the managing account. | 2474 * [merchantId] - The ID of the managing account. |
2423 * | 2475 * |
2424 * [orderId] - The ID of the order. | 2476 * [orderId] - The ID of the order. |
2425 * | 2477 * |
2426 * Completes with a [OrdersUpdateShipmentResponse]. | 2478 * Completes with a [OrdersUpdateShipmentResponse]. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2464 } | 2516 } |
2465 | 2517 |
2466 | 2518 |
2467 class ProductsResourceApi { | 2519 class ProductsResourceApi { |
2468 final commons.ApiRequester _requester; | 2520 final commons.ApiRequester _requester; |
2469 | 2521 |
2470 ProductsResourceApi(commons.ApiRequester client) : | 2522 ProductsResourceApi(commons.ApiRequester client) : |
2471 _requester = client; | 2523 _requester = client; |
2472 | 2524 |
2473 /** | 2525 /** |
2474 * Retrieves, inserts, and deletes multiple products in a single request. | 2526 * Retrieves, inserts, and deletes multiple products in a single request. This |
| 2527 * method can only be called for non-multi-client accounts. |
2475 * | 2528 * |
2476 * [request] - The metadata request object. | 2529 * [request] - The metadata request object. |
2477 * | 2530 * |
2478 * Request parameters: | 2531 * Request parameters: |
2479 * | 2532 * |
2480 * [dryRun] - Flag to run the request in dry-run mode. | 2533 * [dryRun] - Flag to run the request in dry-run mode. |
2481 * | 2534 * |
2482 * Completes with a [ProductsCustomBatchResponse]. | 2535 * Completes with a [ProductsCustomBatchResponse]. |
2483 * | 2536 * |
2484 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2537 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 23 matching lines...) Expand all Loading... |
2508 "POST", | 2561 "POST", |
2509 body: _body, | 2562 body: _body, |
2510 queryParams: _queryParams, | 2563 queryParams: _queryParams, |
2511 uploadOptions: _uploadOptions, | 2564 uploadOptions: _uploadOptions, |
2512 uploadMedia: _uploadMedia, | 2565 uploadMedia: _uploadMedia, |
2513 downloadOptions: _downloadOptions); | 2566 downloadOptions: _downloadOptions); |
2514 return _response.then((data) => new ProductsCustomBatchResponse.fromJson(dat
a)); | 2567 return _response.then((data) => new ProductsCustomBatchResponse.fromJson(dat
a)); |
2515 } | 2568 } |
2516 | 2569 |
2517 /** | 2570 /** |
2518 * Deletes a product from your Merchant Center account. | 2571 * Deletes a product from your Merchant Center account. This method can only |
| 2572 * be called for non-multi-client accounts. |
2519 * | 2573 * |
2520 * Request parameters: | 2574 * Request parameters: |
2521 * | 2575 * |
2522 * [merchantId] - The ID of the managing account. | 2576 * [merchantId] - The ID of the managing account. |
2523 * | 2577 * |
2524 * [productId] - The ID of the product. | 2578 * [productId] - The ID of the product. |
2525 * | 2579 * |
2526 * [dryRun] - Flag to run the request in dry-run mode. | 2580 * [dryRun] - Flag to run the request in dry-run mode. |
2527 * | 2581 * |
2528 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2582 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 28 matching lines...) Expand all Loading... |
2557 "DELETE", | 2611 "DELETE", |
2558 body: _body, | 2612 body: _body, |
2559 queryParams: _queryParams, | 2613 queryParams: _queryParams, |
2560 uploadOptions: _uploadOptions, | 2614 uploadOptions: _uploadOptions, |
2561 uploadMedia: _uploadMedia, | 2615 uploadMedia: _uploadMedia, |
2562 downloadOptions: _downloadOptions); | 2616 downloadOptions: _downloadOptions); |
2563 return _response.then((data) => null); | 2617 return _response.then((data) => null); |
2564 } | 2618 } |
2565 | 2619 |
2566 /** | 2620 /** |
2567 * Retrieves a product from your Merchant Center account. | 2621 * Retrieves a product from your Merchant Center account. This method can only |
| 2622 * be called for non-multi-client accounts. |
2568 * | 2623 * |
2569 * Request parameters: | 2624 * Request parameters: |
2570 * | 2625 * |
2571 * [merchantId] - The ID of the managing account. | 2626 * [merchantId] - The ID of the managing account. |
2572 * | 2627 * |
2573 * [productId] - The ID of the product. | 2628 * [productId] - The ID of the product. |
2574 * | 2629 * |
2575 * Completes with a [Product]. | 2630 * Completes with a [Product]. |
2576 * | 2631 * |
2577 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2632 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 23 matching lines...) Expand all Loading... |
2601 "GET", | 2656 "GET", |
2602 body: _body, | 2657 body: _body, |
2603 queryParams: _queryParams, | 2658 queryParams: _queryParams, |
2604 uploadOptions: _uploadOptions, | 2659 uploadOptions: _uploadOptions, |
2605 uploadMedia: _uploadMedia, | 2660 uploadMedia: _uploadMedia, |
2606 downloadOptions: _downloadOptions); | 2661 downloadOptions: _downloadOptions); |
2607 return _response.then((data) => new Product.fromJson(data)); | 2662 return _response.then((data) => new Product.fromJson(data)); |
2608 } | 2663 } |
2609 | 2664 |
2610 /** | 2665 /** |
2611 * Uploads a product to your Merchant Center account. | 2666 * Uploads a product to your Merchant Center account. If an item with the same |
| 2667 * channel, contentLanguage, offerId, and targetCountry already exists, this |
| 2668 * method updates that entry. This method can only be called for |
| 2669 * non-multi-client accounts. |
2612 * | 2670 * |
2613 * [request] - The metadata request object. | 2671 * [request] - The metadata request object. |
2614 * | 2672 * |
2615 * Request parameters: | 2673 * Request parameters: |
2616 * | 2674 * |
2617 * [merchantId] - The ID of the managing account. | 2675 * [merchantId] - The ID of the managing account. |
2618 * | 2676 * |
2619 * [dryRun] - Flag to run the request in dry-run mode. | 2677 * [dryRun] - Flag to run the request in dry-run mode. |
2620 * | 2678 * |
2621 * Completes with a [Product]. | 2679 * Completes with a [Product]. |
(...skipping 28 matching lines...) Expand all Loading... |
2650 "POST", | 2708 "POST", |
2651 body: _body, | 2709 body: _body, |
2652 queryParams: _queryParams, | 2710 queryParams: _queryParams, |
2653 uploadOptions: _uploadOptions, | 2711 uploadOptions: _uploadOptions, |
2654 uploadMedia: _uploadMedia, | 2712 uploadMedia: _uploadMedia, |
2655 downloadOptions: _downloadOptions); | 2713 downloadOptions: _downloadOptions); |
2656 return _response.then((data) => new Product.fromJson(data)); | 2714 return _response.then((data) => new Product.fromJson(data)); |
2657 } | 2715 } |
2658 | 2716 |
2659 /** | 2717 /** |
2660 * Lists the products in your Merchant Center account. | 2718 * Lists the products in your Merchant Center account. This method can only be |
| 2719 * called for non-multi-client accounts. |
2661 * | 2720 * |
2662 * Request parameters: | 2721 * Request parameters: |
2663 * | 2722 * |
2664 * [merchantId] - The ID of the managing account. | 2723 * [merchantId] - The ID of the managing account. |
2665 * | 2724 * |
2666 * [includeInvalidInsertedItems] - Flag to include the invalid inserted items | 2725 * [includeInvalidInsertedItems] - Flag to include the invalid inserted items |
2667 * in the result of the list request. By default the invalid items are not | 2726 * in the result of the list request. By default the invalid items are not |
2668 * shown (the default value is false). | 2727 * shown (the default value is false). |
2669 * | 2728 * |
2670 * [maxResults] - The maximum number of products to return in the response, | 2729 * [maxResults] - The maximum number of products to return in the response, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2716 } | 2775 } |
2717 | 2776 |
2718 | 2777 |
2719 class ProductstatusesResourceApi { | 2778 class ProductstatusesResourceApi { |
2720 final commons.ApiRequester _requester; | 2779 final commons.ApiRequester _requester; |
2721 | 2780 |
2722 ProductstatusesResourceApi(commons.ApiRequester client) : | 2781 ProductstatusesResourceApi(commons.ApiRequester client) : |
2723 _requester = client; | 2782 _requester = client; |
2724 | 2783 |
2725 /** | 2784 /** |
2726 * Gets the statuses of multiple products in a single request. | 2785 * Gets the statuses of multiple products in a single request. This method can |
| 2786 * only be called for non-multi-client accounts. |
2727 * | 2787 * |
2728 * [request] - The metadata request object. | 2788 * [request] - The metadata request object. |
2729 * | 2789 * |
2730 * Request parameters: | 2790 * Request parameters: |
2731 * | 2791 * |
2732 * Completes with a [ProductstatusesCustomBatchResponse]. | 2792 * Completes with a [ProductstatusesCustomBatchResponse]. |
2733 * | 2793 * |
2734 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2794 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2735 * error. | 2795 * error. |
2736 * | 2796 * |
(...skipping 18 matching lines...) Expand all Loading... |
2755 "POST", | 2815 "POST", |
2756 body: _body, | 2816 body: _body, |
2757 queryParams: _queryParams, | 2817 queryParams: _queryParams, |
2758 uploadOptions: _uploadOptions, | 2818 uploadOptions: _uploadOptions, |
2759 uploadMedia: _uploadMedia, | 2819 uploadMedia: _uploadMedia, |
2760 downloadOptions: _downloadOptions); | 2820 downloadOptions: _downloadOptions); |
2761 return _response.then((data) => new ProductstatusesCustomBatchResponse.fromJ
son(data)); | 2821 return _response.then((data) => new ProductstatusesCustomBatchResponse.fromJ
son(data)); |
2762 } | 2822 } |
2763 | 2823 |
2764 /** | 2824 /** |
2765 * Gets the status of a product from your Merchant Center account. | 2825 * Gets the status of a product from your Merchant Center account. This method |
| 2826 * can only be called for non-multi-client accounts. |
2766 * | 2827 * |
2767 * Request parameters: | 2828 * Request parameters: |
2768 * | 2829 * |
2769 * [merchantId] - The ID of the managing account. | 2830 * [merchantId] - The ID of the managing account. |
2770 * | 2831 * |
2771 * [productId] - The ID of the product. | 2832 * [productId] - The ID of the product. |
2772 * | 2833 * |
2773 * Completes with a [ProductStatus]. | 2834 * Completes with a [ProductStatus]. |
2774 * | 2835 * |
2775 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2836 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 23 matching lines...) Expand all Loading... |
2799 "GET", | 2860 "GET", |
2800 body: _body, | 2861 body: _body, |
2801 queryParams: _queryParams, | 2862 queryParams: _queryParams, |
2802 uploadOptions: _uploadOptions, | 2863 uploadOptions: _uploadOptions, |
2803 uploadMedia: _uploadMedia, | 2864 uploadMedia: _uploadMedia, |
2804 downloadOptions: _downloadOptions); | 2865 downloadOptions: _downloadOptions); |
2805 return _response.then((data) => new ProductStatus.fromJson(data)); | 2866 return _response.then((data) => new ProductStatus.fromJson(data)); |
2806 } | 2867 } |
2807 | 2868 |
2808 /** | 2869 /** |
2809 * Lists the statuses of the products in your Merchant Center account. | 2870 * Lists the statuses of the products in your Merchant Center account. This |
| 2871 * method can only be called for non-multi-client accounts. |
2810 * | 2872 * |
2811 * Request parameters: | 2873 * Request parameters: |
2812 * | 2874 * |
2813 * [merchantId] - The ID of the managing account. | 2875 * [merchantId] - The ID of the managing account. |
2814 * | 2876 * |
2815 * [includeInvalidInsertedItems] - Flag to include the invalid inserted items | 2877 * [includeInvalidInsertedItems] - Flag to include the invalid inserted items |
2816 * in the result of the list request. By default the invalid items are not | 2878 * in the result of the list request. By default the invalid items are not |
2817 * shown (the default value is false). | 2879 * shown (the default value is false). |
2818 * | 2880 * |
2819 * [maxResults] - The maximum number of product statuses to return in the | 2881 * [maxResults] - The maximum number of product statuses to return in the |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2910 "POST", | 2972 "POST", |
2911 body: _body, | 2973 body: _body, |
2912 queryParams: _queryParams, | 2974 queryParams: _queryParams, |
2913 uploadOptions: _uploadOptions, | 2975 uploadOptions: _uploadOptions, |
2914 uploadMedia: _uploadMedia, | 2976 uploadMedia: _uploadMedia, |
2915 downloadOptions: _downloadOptions); | 2977 downloadOptions: _downloadOptions); |
2916 return _response.then((data) => new ShippingsettingsCustomBatchResponse.from
Json(data)); | 2978 return _response.then((data) => new ShippingsettingsCustomBatchResponse.from
Json(data)); |
2917 } | 2979 } |
2918 | 2980 |
2919 /** | 2981 /** |
2920 * Retrieves the shipping settings of the account. | 2982 * Retrieves the shipping settings of the account. This method can only be |
| 2983 * called for accounts to which the managing account has access: either the |
| 2984 * managing account itself or sub-accounts if the managing account is a |
| 2985 * multi-client account. |
2921 * | 2986 * |
2922 * Request parameters: | 2987 * Request parameters: |
2923 * | 2988 * |
2924 * [merchantId] - The ID of the managing account. | 2989 * [merchantId] - The ID of the managing account. |
2925 * | 2990 * |
2926 * [accountId] - The ID of the account for which to get/update shipping | 2991 * [accountId] - The ID of the account for which to get/update shipping |
2927 * settings. | 2992 * settings. |
2928 * | 2993 * |
2929 * Completes with a [ShippingSettings]. | 2994 * Completes with a [ShippingSettings]. |
2930 * | 2995 * |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2996 body: _body, | 3061 body: _body, |
2997 queryParams: _queryParams, | 3062 queryParams: _queryParams, |
2998 uploadOptions: _uploadOptions, | 3063 uploadOptions: _uploadOptions, |
2999 uploadMedia: _uploadMedia, | 3064 uploadMedia: _uploadMedia, |
3000 downloadOptions: _downloadOptions); | 3065 downloadOptions: _downloadOptions); |
3001 return _response.then((data) => new ShippingsettingsGetSupportedCarriersResp
onse.fromJson(data)); | 3066 return _response.then((data) => new ShippingsettingsGetSupportedCarriersResp
onse.fromJson(data)); |
3002 } | 3067 } |
3003 | 3068 |
3004 /** | 3069 /** |
3005 * Lists the shipping settings of the sub-accounts in your Merchant Center | 3070 * Lists the shipping settings of the sub-accounts in your Merchant Center |
3006 * account. | 3071 * account. This method can only be called for multi-client accounts. |
3007 * | 3072 * |
3008 * Request parameters: | 3073 * Request parameters: |
3009 * | 3074 * |
3010 * [merchantId] - The ID of the managing account. | 3075 * [merchantId] - The ID of the managing account. |
3011 * | 3076 * |
3012 * [maxResults] - The maximum number of shipping settings to return in the | 3077 * [maxResults] - The maximum number of shipping settings to return in the |
3013 * response, used for paging. | 3078 * response, used for paging. |
3014 * | 3079 * |
3015 * [pageToken] - The token returned by the previous request. | 3080 * [pageToken] - The token returned by the previous request. |
3016 * | 3081 * |
(...skipping 29 matching lines...) Expand all Loading... |
3046 "GET", | 3111 "GET", |
3047 body: _body, | 3112 body: _body, |
3048 queryParams: _queryParams, | 3113 queryParams: _queryParams, |
3049 uploadOptions: _uploadOptions, | 3114 uploadOptions: _uploadOptions, |
3050 uploadMedia: _uploadMedia, | 3115 uploadMedia: _uploadMedia, |
3051 downloadOptions: _downloadOptions); | 3116 downloadOptions: _downloadOptions); |
3052 return _response.then((data) => new ShippingsettingsListResponse.fromJson(da
ta)); | 3117 return _response.then((data) => new ShippingsettingsListResponse.fromJson(da
ta)); |
3053 } | 3118 } |
3054 | 3119 |
3055 /** | 3120 /** |
3056 * Updates the shipping settings of the account. This method supports patch | 3121 * Updates the shipping settings of the account. This method can only be |
3057 * semantics. | 3122 * called for accounts to which the managing account has access: either the |
| 3123 * managing account itself or sub-accounts if the managing account is a |
| 3124 * multi-client account. This method supports patch semantics. |
3058 * | 3125 * |
3059 * [request] - The metadata request object. | 3126 * [request] - The metadata request object. |
3060 * | 3127 * |
3061 * Request parameters: | 3128 * Request parameters: |
3062 * | 3129 * |
3063 * [merchantId] - The ID of the managing account. | 3130 * [merchantId] - The ID of the managing account. |
3064 * | 3131 * |
3065 * [accountId] - The ID of the account for which to get/update shipping | 3132 * [accountId] - The ID of the account for which to get/update shipping |
3066 * settings. | 3133 * settings. |
3067 * | 3134 * |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3102 "PATCH", | 3169 "PATCH", |
3103 body: _body, | 3170 body: _body, |
3104 queryParams: _queryParams, | 3171 queryParams: _queryParams, |
3105 uploadOptions: _uploadOptions, | 3172 uploadOptions: _uploadOptions, |
3106 uploadMedia: _uploadMedia, | 3173 uploadMedia: _uploadMedia, |
3107 downloadOptions: _downloadOptions); | 3174 downloadOptions: _downloadOptions); |
3108 return _response.then((data) => new ShippingSettings.fromJson(data)); | 3175 return _response.then((data) => new ShippingSettings.fromJson(data)); |
3109 } | 3176 } |
3110 | 3177 |
3111 /** | 3178 /** |
3112 * Updates the shipping settings of the account. | 3179 * Updates the shipping settings of the account. This method can only be |
| 3180 * called for accounts to which the managing account has access: either the |
| 3181 * managing account itself or sub-accounts if the managing account is a |
| 3182 * multi-client account. |
3113 * | 3183 * |
3114 * [request] - The metadata request object. | 3184 * [request] - The metadata request object. |
3115 * | 3185 * |
3116 * Request parameters: | 3186 * Request parameters: |
3117 * | 3187 * |
3118 * [merchantId] - The ID of the managing account. | 3188 * [merchantId] - The ID of the managing account. |
3119 * | 3189 * |
3120 * [accountId] - The ID of the account for which to get/update shipping | 3190 * [accountId] - The ID of the account for which to get/update shipping |
3121 * settings. | 3191 * settings. |
3122 * | 3192 * |
(...skipping 3903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7026 } | 7096 } |
7027 } | 7097 } |
7028 | 7098 |
7029 class OrderCustomer { | 7099 class OrderCustomer { |
7030 /** Email address of the customer. */ | 7100 /** Email address of the customer. */ |
7031 core.String email; | 7101 core.String email; |
7032 /** | 7102 /** |
7033 * If set, this indicates the user explicitly chose to opt in or out of | 7103 * If set, this indicates the user explicitly chose to opt in or out of |
7034 * providing marketing rights to the merchant. If unset, this indicates the | 7104 * providing marketing rights to the merchant. If unset, this indicates the |
7035 * user has already made this choice in a previous purchase, and was thus not | 7105 * user has already made this choice in a previous purchase, and was thus not |
7036 * shown the marketing right opt in/out checkbox during the Purchases on | 7106 * shown the marketing right opt in/out checkbox during the checkout flow. |
7037 * Google checkout flow. | |
7038 */ | 7107 */ |
7039 core.bool explicitMarketingPreference; | 7108 core.bool explicitMarketingPreference; |
7040 /** Full name of the customer. */ | 7109 /** Full name of the customer. */ |
7041 core.String fullName; | 7110 core.String fullName; |
7042 | 7111 |
7043 OrderCustomer(); | 7112 OrderCustomer(); |
7044 | 7113 |
7045 OrderCustomer.fromJson(core.Map _json) { | 7114 OrderCustomer.fromJson(core.Map _json) { |
7046 if (_json.containsKey("email")) { | 7115 if (_json.containsKey("email")) { |
7047 email = _json["email"]; | 7116 email = _json["email"]; |
(...skipping 4559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11607 } | 11676 } |
11608 } | 11677 } |
11609 | 11678 |
11610 class TestOrderCustomer { | 11679 class TestOrderCustomer { |
11611 /** Email address of the customer. */ | 11680 /** Email address of the customer. */ |
11612 core.String email; | 11681 core.String email; |
11613 /** | 11682 /** |
11614 * If set, this indicates the user explicitly chose to opt in or out of | 11683 * If set, this indicates the user explicitly chose to opt in or out of |
11615 * providing marketing rights to the merchant. If unset, this indicates the | 11684 * providing marketing rights to the merchant. If unset, this indicates the |
11616 * user has already made this choice in a previous purchase, and was thus not | 11685 * user has already made this choice in a previous purchase, and was thus not |
11617 * shown the marketing right opt in/out checkbox during the Purchases on | 11686 * shown the marketing right opt in/out checkbox during the checkout flow. |
11618 * Google checkout flow. Optional. | 11687 * Optional. |
11619 */ | 11688 */ |
11620 core.bool explicitMarketingPreference; | 11689 core.bool explicitMarketingPreference; |
11621 /** Full name of the customer. */ | 11690 /** Full name of the customer. */ |
11622 core.String fullName; | 11691 core.String fullName; |
11623 | 11692 |
11624 TestOrderCustomer(); | 11693 TestOrderCustomer(); |
11625 | 11694 |
11626 TestOrderCustomer.fromJson(core.Map _json) { | 11695 TestOrderCustomer.fromJson(core.Map _json) { |
11627 if (_json.containsKey("email")) { | 11696 if (_json.containsKey("email")) { |
11628 email = _json["email"]; | 11697 email = _json["email"]; |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11967 var _json = new core.Map(); | 12036 var _json = new core.Map(); |
11968 if (unit != null) { | 12037 if (unit != null) { |
11969 _json["unit"] = unit; | 12038 _json["unit"] = unit; |
11970 } | 12039 } |
11971 if (value != null) { | 12040 if (value != null) { |
11972 _json["value"] = value; | 12041 _json["value"] = value; |
11973 } | 12042 } |
11974 return _json; | 12043 return _json; |
11975 } | 12044 } |
11976 } | 12045 } |
OLD | NEW |