v2.1.d.ts
321 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { GaxiosPromise } from 'gaxios';
import { Compute, JWT, OAuth2Client, UserRefreshClient } from 'google-auth-library';
import { APIRequestContext, BodyResponseCallback, GlobalOptions, GoogleConfigurable, MethodOptions } from 'googleapis-common';
export declare namespace content_v2_1 {
interface Options extends GlobalOptions {
version: 'v2_1';
}
interface StandardParameters {
/**
* Data format for the response.
*/
alt?: string;
/**
* Selector specifying which fields to include in a partial response.
*/
fields?: string;
/**
* API key. Your API key identifies your project and provides you with API
* access, quota, and reports. Required unless you provide an OAuth 2.0
* token.
*/
key?: string;
/**
* OAuth 2.0 token for the current user.
*/
oauth_token?: string;
/**
* Returns response with indentations and line breaks.
*/
prettyPrint?: boolean;
/**
* An opaque string that represents a user for quota purposes. Must not
* exceed 40 characters.
*/
quotaUser?: string;
/**
* Deprecated. Please use quotaUser instead.
*/
userIp?: string;
}
/**
* Content API for Shopping
*
* Manages product items, inventory, and Merchant Center accounts for Google
* Shopping.
*
* @example
* const {google} = require('googleapis');
* const content = google.content('v2.1');
*
* @namespace content
* @type {Function}
* @version v2.1
* @variation v2.1
* @param {object=} options Options for Content
*/
class Content {
context: APIRequestContext;
accounts: Resource$Accounts;
accountstatuses: Resource$Accountstatuses;
accounttax: Resource$Accounttax;
datafeeds: Resource$Datafeeds;
datafeedstatuses: Resource$Datafeedstatuses;
liasettings: Resource$Liasettings;
orderinvoices: Resource$Orderinvoices;
orderreports: Resource$Orderreports;
orderreturns: Resource$Orderreturns;
orders: Resource$Orders;
pos: Resource$Pos;
products: Resource$Products;
productstatuses: Resource$Productstatuses;
regionalinventory: Resource$Regionalinventory;
shippingsettings: Resource$Shippingsettings;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
/**
* Account data. After the creation of a new account it may take a few minutes
* before it is fully operational. The methods delete, insert, patch, and
* update require the admin role.
*/
interface Schema$Account {
/**
* List of linked Ads accounts that are active or pending approval. To
* create a new link request, add a new link with status active to the list.
* It will remain in a pending state until approved or rejected either in
* the Ads interface or through the AdWords API. To delete an active link,
* or to cancel a link request, remove it from the list.
*/
adsLinks?: Schema$AccountAdsLink[];
/**
* Indicates whether the merchant sells adult content.
*/
adultContent?: boolean;
/**
* The business information of the account.
*/
businessInformation?: Schema$AccountBusinessInformation;
/**
* The GMB account which is linked or in the process of being linked with
* the Merchant Center account.
*/
googleMyBusinessLink?: Schema$AccountGoogleMyBusinessLink;
/**
* Merchant Center account ID.
*/
id?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#account".
*/
kind?: string;
/**
* Display name for the account.
*/
name?: string;
/**
* Client-specific, locally-unique, internal ID for the child account.
*/
sellerId?: string;
/**
* Users with access to the account. Every account (except for subaccounts)
* must have at least one admin user.
*/
users?: Schema$AccountUser[];
/**
* The merchant's website.
*/
websiteUrl?: string;
/**
* List of linked YouTube channels that are active or pending approval. To
* create a new link request, add a new link with status active to the list.
* It will remain in a pending state until approved or rejected in the YT
* Creator Studio interface. To delete an active link, or to cancel a link
* request, remove it from the list.
*/
youtubeChannelLinks?: Schema$AccountYouTubeChannelLink[];
}
interface Schema$AccountAddress {
/**
* CLDR country code (e.g. "US").
*/
country?: string;
/**
* City, town or commune. May also include dependent localities or
* sublocalities (e.g. neighborhoods or suburbs).
*/
locality?: string;
/**
* Postal code or ZIP (e.g. "94043").
*/
postalCode?: string;
/**
* Top-level administrative subdivision of the country. For example, a state
* like California ("CA") or a province like Quebec
* ("QC").
*/
region?: string;
/**
* Street-level part of the address.
*/
streetAddress?: string;
}
interface Schema$AccountAdsLink {
/**
* Customer ID of the Ads account.
*/
adsId?: string;
/**
* Status of the link between this Merchant Center account and the Ads
* account. Upon retrieval, it represents the actual status of the link and
* can be either active if it was approved in Google Ads or pending if
* it's pending approval. Upon insertion, it represents the intended
* status of the link. Re-uploading a link with status active when it's
* still pending or with status pending when it's already active will
* have no effect: the status will remain unchanged. Re-uploading a link
* with deprecated status inactive is equivalent to not submitting the link
* at all and will delete the link if it was active or cancel the link
* request if it was pending.
*/
status?: string;
}
interface Schema$AccountBusinessInformation {
/**
* The address of the business.
*/
address?: Schema$AccountAddress;
/**
* The customer service information of the business.
*/
customerService?: Schema$AccountCustomerService;
/**
* The phone number of the business.
*/
phoneNumber?: string;
}
interface Schema$AccountCustomerService {
/**
* Customer service email.
*/
email?: string;
/**
* Customer service phone number.
*/
phoneNumber?: string;
/**
* Customer service URL.
*/
url?: string;
}
interface Schema$AccountGoogleMyBusinessLink {
/**
* The GMB email address of which a specific account within a GMB account. A
* sample account within a GMB account could be a business account with set
* of locations, managed under the GMB account.
*/
gmbEmail?: string;
/**
* Status of the link between this Merchant Center account and the GMB
* account.
*/
status?: string;
}
interface Schema$AccountIdentifier {
/**
* The aggregator ID, set for aggregators and subaccounts (in that case, it
* represents the aggregator of the subaccount).
*/
aggregatorId?: string;
/**
* The merchant account ID, set for individual accounts and subaccounts.
*/
merchantId?: string;
}
interface Schema$AccountsAuthInfoResponse {
/**
* The account identifiers corresponding to the authenticated user. - For an
* individual account: only the merchant ID is defined - For an aggregator:
* only the aggregator ID is defined - For a subaccount of an MCA: both the
* merchant ID and the aggregator ID are defined.
*/
accountIdentifiers?: Schema$AccountIdentifier[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#accountsAuthInfoResponse".
*/
kind?: string;
}
interface Schema$AccountsClaimWebsiteResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#accountsClaimWebsiteResponse".
*/
kind?: string;
}
interface Schema$AccountsCustomBatchRequest {
/**
* The request entries to be processed in the batch.
*/
entries?: Schema$AccountsCustomBatchRequestEntry[];
}
/**
* A batch entry encoding a single non-batch accounts request.
*/
interface Schema$AccountsCustomBatchRequestEntry {
/**
* The account to create or update. Only defined if the method is insert or
* update.
*/
account?: Schema$Account;
/**
* The ID of the targeted account. Only defined if the method is not insert.
*/
accountId?: string;
/**
* An entry ID, unique within the batch request.
*/
batchId?: number;
/**
* Whether the account should be deleted if the account has offers. Only
* applicable if the method is delete.
*/
force?: boolean;
/**
* Details about the link request.
*/
linkRequest?: Schema$AccountsCustomBatchRequestEntryLinkRequest;
/**
* The ID of the managing account.
*/
merchantId?: string;
/**
* The method of the batch entry.
*/
method?: string;
/**
* Only applicable if the method is claimwebsite. Indicates whether or not
* to take the claim from another account in case there is a conflict.
*/
overwrite?: boolean;
}
interface Schema$AccountsCustomBatchRequestEntryLinkRequest {
/**
* Action to perform for this link. The "request" action is only
* available to select merchants.
*/
action?: string;
/**
* The ID of the linked account.
*/
linkedAccountId?: string;
/**
* Type of the link between the two accounts.
*/
linkType?: string;
}
interface Schema$AccountsCustomBatchResponse {
/**
* The result of the execution of the batch requests.
*/
entries?: Schema$AccountsCustomBatchResponseEntry[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#accountsCustomBatchResponse".
*/
kind?: string;
}
/**
* A batch entry encoding a single non-batch accounts response.
*/
interface Schema$AccountsCustomBatchResponseEntry {
/**
* The retrieved, created, or updated account. Not defined if the method was
* delete, claimwebsite or link.
*/
account?: Schema$Account;
/**
* The ID of the request entry this entry responds to.
*/
batchId?: number;
/**
* A list of errors defined if and only if the request failed.
*/
errors?: Schema$Errors;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#accountsCustomBatchResponseEntry".
*/
kind?: string;
}
interface Schema$AccountsLinkRequest {
/**
* Action to perform for this link. The "request" action is only
* available to select merchants.
*/
action?: string;
/**
* The ID of the linked account.
*/
linkedAccountId?: string;
/**
* Type of the link between the two accounts.
*/
linkType?: string;
}
interface Schema$AccountsLinkResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#accountsLinkResponse".
*/
kind?: string;
}
interface Schema$AccountsListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#accountsListResponse".
*/
kind?: string;
/**
* The token for the retrieval of the next page of accounts.
*/
nextPageToken?: string;
resources?: Schema$Account[];
}
/**
* The status of an account, i.e., information about its products, which is
* computed offline and not returned immediately at insertion time.
*/
interface Schema$AccountStatus {
/**
* The ID of the account for which the status is reported.
*/
accountId?: string;
/**
* A list of account level issues.
*/
accountLevelIssues?: Schema$AccountStatusAccountLevelIssue[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#accountStatus".
*/
kind?: string;
/**
* List of product-related data by channel, destination, and country. Data
* in this field may be delayed by up to 30 minutes.
*/
products?: Schema$AccountStatusProducts[];
/**
* Whether the account's website is claimed or not.
*/
websiteClaimed?: boolean;
}
interface Schema$AccountStatusAccountLevelIssue {
/**
* Country for which this issue is reported.
*/
country?: string;
/**
* The destination the issue applies to.
*/
destination?: string;
/**
* Additional details about the issue.
*/
detail?: string;
/**
* The URL of a web page to help resolving this issue.
*/
documentation?: string;
/**
* Issue identifier.
*/
id?: string;
/**
* Severity of the issue.
*/
severity?: string;
/**
* Short description of the issue.
*/
title?: string;
}
interface Schema$AccountstatusesCustomBatchRequest {
/**
* The request entries to be processed in the batch.
*/
entries?: Schema$AccountstatusesCustomBatchRequestEntry[];
}
/**
* A batch entry encoding a single non-batch accountstatuses request.
*/
interface Schema$AccountstatusesCustomBatchRequestEntry {
/**
* The ID of the (sub-)account whose status to get.
*/
accountId?: string;
/**
* An entry ID, unique within the batch request.
*/
batchId?: number;
/**
* If set, only issues for the specified destinations are returned,
* otherwise only issues for the Shopping destination.
*/
destinations?: string[];
/**
* The ID of the managing account.
*/
merchantId?: string;
/**
* The method (get).
*/
method?: string;
}
interface Schema$AccountstatusesCustomBatchResponse {
/**
* The result of the execution of the batch requests.
*/
entries?: Schema$AccountstatusesCustomBatchResponseEntry[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#accountstatusesCustomBatchResponse".
*/
kind?: string;
}
/**
* A batch entry encoding a single non-batch accountstatuses response.
*/
interface Schema$AccountstatusesCustomBatchResponseEntry {
/**
* The requested account status. Defined if and only if the request was
* successful.
*/
accountStatus?: Schema$AccountStatus;
/**
* The ID of the request entry this entry responds to.
*/
batchId?: number;
/**
* A list of errors defined if and only if the request failed.
*/
errors?: Schema$Errors;
}
interface Schema$AccountstatusesListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#accountstatusesListResponse".
*/
kind?: string;
/**
* The token for the retrieval of the next page of account statuses.
*/
nextPageToken?: string;
resources?: Schema$AccountStatus[];
}
interface Schema$AccountStatusItemLevelIssue {
/**
* The attribute's name, if the issue is caused by a single attribute.
*/
attributeName?: string;
/**
* The error code of the issue.
*/
code?: string;
/**
* A short issue description in English.
*/
description?: string;
/**
* A detailed issue description in English.
*/
detail?: string;
/**
* The URL of a web page to help with resolving this issue.
*/
documentation?: string;
/**
* Number of items with this issue.
*/
numItems?: string;
/**
* Whether the issue can be resolved by the merchant.
*/
resolution?: string;
/**
* How this issue affects serving of the offer.
*/
servability?: string;
}
interface Schema$AccountStatusProducts {
/**
* The channel the data applies to.
*/
channel?: string;
/**
* The country the data applies to.
*/
country?: string;
/**
* The destination the data applies to.
*/
destination?: string;
/**
* List of item-level issues.
*/
itemLevelIssues?: Schema$AccountStatusItemLevelIssue[];
/**
* Aggregated product statistics.
*/
statistics?: Schema$AccountStatusStatistics;
}
interface Schema$AccountStatusStatistics {
/**
* Number of active offers.
*/
active?: string;
/**
* Number of disapproved offers.
*/
disapproved?: string;
/**
* Number of expiring offers.
*/
expiring?: string;
/**
* Number of pending offers.
*/
pending?: string;
}
/**
* The tax settings of a merchant account. All methods require the admin role.
*/
interface Schema$AccountTax {
/**
* The ID of the account to which these account tax settings belong.
*/
accountId?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#accountTax".
*/
kind?: string;
/**
* Tax rules. Updating the tax rules will enable US taxes (not reversible).
* Defining no rules is equivalent to not charging tax at all.
*/
rules?: Schema$AccountTaxTaxRule[];
}
interface Schema$AccounttaxCustomBatchRequest {
/**
* The request entries to be processed in the batch.
*/
entries?: Schema$AccounttaxCustomBatchRequestEntry[];
}
/**
* A batch entry encoding a single non-batch accounttax request.
*/
interface Schema$AccounttaxCustomBatchRequestEntry {
/**
* The ID of the account for which to get/update account tax settings.
*/
accountId?: string;
/**
* The account tax settings to update. Only defined if the method is update.
*/
accountTax?: Schema$AccountTax;
/**
* An entry ID, unique within the batch request.
*/
batchId?: number;
/**
* The ID of the managing account.
*/
merchantId?: string;
method?: string;
}
interface Schema$AccounttaxCustomBatchResponse {
/**
* The result of the execution of the batch requests.
*/
entries?: Schema$AccounttaxCustomBatchResponseEntry[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#accounttaxCustomBatchResponse".
*/
kind?: string;
}
/**
* A batch entry encoding a single non-batch accounttax response.
*/
interface Schema$AccounttaxCustomBatchResponseEntry {
/**
* The retrieved or updated account tax settings.
*/
accountTax?: Schema$AccountTax;
/**
* The ID of the request entry this entry responds to.
*/
batchId?: number;
/**
* A list of errors defined if and only if the request failed.
*/
errors?: Schema$Errors;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#accounttaxCustomBatchResponseEntry".
*/
kind?: string;
}
interface Schema$AccounttaxListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#accounttaxListResponse".
*/
kind?: string;
/**
* The token for the retrieval of the next page of account tax settings.
*/
nextPageToken?: string;
resources?: Schema$AccountTax[];
}
/**
* Tax calculation rule to apply in a state or province (USA only).
*/
interface Schema$AccountTaxTaxRule {
/**
* Country code in which tax is applicable.
*/
country?: string;
/**
* State (or province) is which the tax is applicable, described by its
* location ID (also called criteria ID).
*/
locationId?: string;
/**
* Explicit tax rate in percent, represented as a floating point number
* without the percentage character. Must not be negative.
*/
ratePercent?: string;
/**
* If true, shipping charges are also taxed.
*/
shippingTaxed?: boolean;
/**
* Whether the tax rate is taken from a global tax table or specified
* explicitly.
*/
useGlobalRate?: boolean;
}
interface Schema$AccountUser {
/**
* Whether user is an admin.
*/
admin?: boolean;
/**
* User's email address.
*/
emailAddress?: string;
/**
* Whether user is an order manager.
*/
orderManager?: boolean;
/**
* Whether user can access payment statements.
*/
paymentsAnalyst?: boolean;
/**
* Whether user can manage payment settings.
*/
paymentsManager?: boolean;
}
interface Schema$AccountYouTubeChannelLink {
/**
* Channel ID.
*/
channelId?: string;
/**
* Status of the link between this Merchant Center account and the YouTube
* channel. Upon retrieval, it represents the actual status of the link and
* can be either active if it was approved in YT Creator Studio or pending
* if it's pending approval. Upon insertion, it represents the intended
* status of the link. Re-uploading a link with status active when it's
* still pending or with status pending when it's already active will
* have no effect: the status will remain unchanged. Re-uploading a link
* with deprecated status inactive is equivalent to not submitting the link
* at all and will delete the link if it was active or cancel the link
* request if it was pending.
*/
status?: string;
}
interface Schema$Amount {
/**
* [required] The pre-tax or post-tax price depending on the location of the
* order.
*/
priceAmount?: Schema$Price;
/**
* [required] Tax value.
*/
taxAmount?: Schema$Price;
}
interface Schema$CarrierRate {
/**
* Carrier service, such as "UPS" or "Fedex". The list
* of supported carriers can be retrieved via the getSupportedCarriers
* method. Required.
*/
carrierName?: string;
/**
* Carrier service, such as "ground" or "2 days". The
* list of supported services for a carrier can be retrieved via the
* getSupportedCarriers method. Required.
*/
carrierService?: string;
/**
* Additive shipping rate modifier. Can be negative. For example {
* "value": "1", "currency" : "USD"
* } adds $1 to the rate, { "value": "-3",
* "currency" : "USD" } removes $3 from the rate.
* Optional.
*/
flatAdjustment?: Schema$Price;
/**
* Name of the carrier rate. Must be unique per rate group. Required.
*/
name?: string;
/**
* Shipping origin for this carrier rate. Required.
*/
originPostalCode?: string;
/**
* Multiplicative shipping rate modifier as a number in decimal notation.
* Can be negative. For example "5.4" increases the rate by 5.4%,
* "-3" decreases the rate by 3%. Optional.
*/
percentageAdjustment?: string;
}
interface Schema$CarriersCarrier {
/**
* The CLDR country code of the carrier (e.g., "US"). Always
* present.
*/
country?: string;
/**
* The name of the carrier (e.g., "UPS"). Always present.
*/
name?: string;
/**
* A list of supported services (e.g., "ground") for that carrier.
* Contains at least one service.
*/
services?: string[];
}
interface Schema$CustomAttribute {
/**
* Subattributes within this attribute group. Exactly one of value or
* groupValues must be provided.
*/
groupValues?: Schema$CustomAttribute[];
/**
* The name of the attribute. Underscores will be replaced by spaces upon
* insertion.
*/
name?: string;
/**
* The value of the attribute.
*/
value?: string;
}
interface Schema$CustomerReturnReason {
description?: string;
reasonCode?: string;
}
interface Schema$CutoffTime {
/**
* Hour of the cutoff time until which an order has to be placed to be
* processed in the same day. Required.
*/
hour?: number;
/**
* Minute of the cutoff time until which an order has to be placed to be
* processed in the same day. Required.
*/
minute?: number;
/**
* Timezone identifier for the cutoff time. A list of identifiers can be
* found in the AdWords API documentation. E.g. "Europe/Zurich".
* Required.
*/
timezone?: string;
}
/**
* Datafeed configuration data.
*/
interface Schema$Datafeed {
/**
* The two-letter ISO 639-1 language in which the attributes are defined in
* the data feed.
*/
attributeLanguage?: string;
/**
* The type of data feed. For product inventory feeds, only feeds for local
* stores, not online stores, are supported.
*/
contentType?: string;
/**
* Fetch schedule for the feed file.
*/
fetchSchedule?: Schema$DatafeedFetchSchedule;
/**
* The filename of the feed. All feeds must have a unique file name.
*/
fileName?: string;
/**
* Format of the feed file.
*/
format?: Schema$DatafeedFormat;
/**
* The ID of the data feed.
*/
id?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#datafeed".
*/
kind?: string;
/**
* A descriptive name of the data feed.
*/
name?: string;
/**
* The targets this feed should apply to (country, language, destinations).
*/
targets?: Schema$DatafeedTarget[];
}
/**
* The required fields vary based on the frequency of fetching. For a monthly
* fetch schedule, day_of_month and hour are required. For a weekly fetch
* schedule, weekday and hour are required. For a daily fetch schedule, only
* hour is required.
*/
interface Schema$DatafeedFetchSchedule {
/**
* The day of the month the feed file should be fetched (1-31).
*/
dayOfMonth?: number;
/**
* The URL where the feed file can be fetched. Google Merchant Center will
* support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP
* protocols, so the value will need to be a valid link using one of those
* four protocols.
*/
fetchUrl?: string;
/**
* The hour of the day the feed file should be fetched (0-23).
*/
hour?: number;
/**
* The minute of the hour the feed file should be fetched (0-59). Read-only.
*/
minuteOfHour?: number;
/**
* An optional password for fetch_url.
*/
password?: string;
/**
* Whether the scheduled fetch is paused or not.
*/
paused?: boolean;
/**
* Time zone used for schedule. UTC by default. E.g.,
* "America/Los_Angeles".
*/
timeZone?: string;
/**
* An optional user name for fetch_url.
*/
username?: string;
/**
* The day of the week the feed file should be fetched.
*/
weekday?: string;
}
interface Schema$DatafeedFormat {
/**
* Delimiter for the separation of values in a delimiter-separated values
* feed. If not specified, the delimiter will be auto-detected. Ignored for
* non-DSV data feeds.
*/
columnDelimiter?: string;
/**
* Character encoding scheme of the data feed. If not specified, the
* encoding will be auto-detected.
*/
fileEncoding?: string;
/**
* Specifies how double quotes are interpreted. If not specified, the mode
* will be auto-detected. Ignored for non-DSV data feeds.
*/
quotingMode?: string;
}
interface Schema$DatafeedsCustomBatchRequest {
/**
* The request entries to be processed in the batch.
*/
entries?: Schema$DatafeedsCustomBatchRequestEntry[];
}
/**
* A batch entry encoding a single non-batch datafeeds request.
*/
interface Schema$DatafeedsCustomBatchRequestEntry {
/**
* An entry ID, unique within the batch request.
*/
batchId?: number;
/**
* The data feed to insert.
*/
datafeed?: Schema$Datafeed;
/**
* The ID of the data feed to get, delete or fetch.
*/
datafeedId?: string;
/**
* The ID of the managing account.
*/
merchantId?: string;
method?: string;
}
interface Schema$DatafeedsCustomBatchResponse {
/**
* The result of the execution of the batch requests.
*/
entries?: Schema$DatafeedsCustomBatchResponseEntry[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#datafeedsCustomBatchResponse".
*/
kind?: string;
}
/**
* A batch entry encoding a single non-batch datafeeds response.
*/
interface Schema$DatafeedsCustomBatchResponseEntry {
/**
* The ID of the request entry this entry responds to.
*/
batchId?: number;
/**
* The requested data feed. Defined if and only if the request was
* successful.
*/
datafeed?: Schema$Datafeed;
/**
* A list of errors defined if and only if the request failed.
*/
errors?: Schema$Errors;
}
interface Schema$DatafeedsFetchNowResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#datafeedsFetchNowResponse".
*/
kind?: string;
}
interface Schema$DatafeedsListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#datafeedsListResponse".
*/
kind?: string;
/**
* The token for the retrieval of the next page of datafeeds.
*/
nextPageToken?: string;
resources?: Schema$Datafeed[];
}
/**
* The status of a datafeed, i.e., the result of the last retrieval of the
* datafeed computed asynchronously when the feed processing is finished.
*/
interface Schema$DatafeedStatus {
/**
* The country for which the status is reported, represented as a CLDR
* territory code.
*/
country?: string;
/**
* The ID of the feed for which the status is reported.
*/
datafeedId?: string;
/**
* The list of errors occurring in the feed.
*/
errors?: Schema$DatafeedStatusError[];
/**
* The number of items in the feed that were processed.
*/
itemsTotal?: string;
/**
* The number of items in the feed that were valid.
*/
itemsValid?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#datafeedStatus".
*/
kind?: string;
/**
* The two-letter ISO 639-1 language for which the status is reported.
*/
language?: string;
/**
* The last date at which the feed was uploaded.
*/
lastUploadDate?: string;
/**
* The processing status of the feed.
*/
processingStatus?: string;
/**
* The list of errors occurring in the feed.
*/
warnings?: Schema$DatafeedStatusError[];
}
/**
* An error occurring in the feed, like "invalid price".
*/
interface Schema$DatafeedStatusError {
/**
* The code of the error, e.g., "validation/invalid_value".
*/
code?: string;
/**
* The number of occurrences of the error in the feed.
*/
count?: string;
/**
* A list of example occurrences of the error, grouped by product.
*/
examples?: Schema$DatafeedStatusExample[];
/**
* The error message, e.g., "Invalid price".
*/
message?: string;
}
interface Schema$DatafeedstatusesCustomBatchRequest {
/**
* The request entries to be processed in the batch.
*/
entries?: Schema$DatafeedstatusesCustomBatchRequestEntry[];
}
/**
* A batch entry encoding a single non-batch datafeedstatuses request.
*/
interface Schema$DatafeedstatusesCustomBatchRequestEntry {
/**
* An entry ID, unique within the batch request.
*/
batchId?: number;
/**
* The country for which to get the datafeed status. If this parameter is
* provided then language must also be provided. Note that for multi-target
* datafeeds this parameter is required.
*/
country?: string;
/**
* The ID of the data feed to get.
*/
datafeedId?: string;
/**
* The language for which to get the datafeed status. If this parameter is
* provided then country must also be provided. Note that for multi-target
* datafeeds this parameter is required.
*/
language?: string;
/**
* The ID of the managing account.
*/
merchantId?: string;
method?: string;
}
interface Schema$DatafeedstatusesCustomBatchResponse {
/**
* The result of the execution of the batch requests.
*/
entries?: Schema$DatafeedstatusesCustomBatchResponseEntry[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#datafeedstatusesCustomBatchResponse".
*/
kind?: string;
}
/**
* A batch entry encoding a single non-batch datafeedstatuses response.
*/
interface Schema$DatafeedstatusesCustomBatchResponseEntry {
/**
* The ID of the request entry this entry responds to.
*/
batchId?: number;
/**
* The requested data feed status. Defined if and only if the request was
* successful.
*/
datafeedStatus?: Schema$DatafeedStatus;
/**
* A list of errors defined if and only if the request failed.
*/
errors?: Schema$Errors;
}
interface Schema$DatafeedstatusesListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#datafeedstatusesListResponse".
*/
kind?: string;
/**
* The token for the retrieval of the next page of datafeed statuses.
*/
nextPageToken?: string;
resources?: Schema$DatafeedStatus[];
}
/**
* An example occurrence for a particular error.
*/
interface Schema$DatafeedStatusExample {
/**
* The ID of the example item.
*/
itemId?: string;
/**
* Line number in the data feed where the example is found.
*/
lineNumber?: string;
/**
* The problematic value.
*/
value?: string;
}
interface Schema$DatafeedTarget {
/**
* The country where the items in the feed will be included in the search
* index, represented as a CLDR territory code.
*/
country?: string;
/**
* The list of destinations to exclude for this target (corresponds to
* unchecked check boxes in Merchant Center).
*/
excludedDestinations?: string[];
/**
* The list of destinations to include for this target (corresponds to
* checked check boxes in Merchant Center). Default destinations are always
* included unless provided in the excluded_destination field.
*/
includedDestinations?: string[];
/**
* The two-letter ISO 639-1 language of the items in the feed. Must be a
* valid language for targets[].country.
*/
language?: string;
}
interface Schema$DeliveryTime {
/**
* Business days cutoff time definition. If not configured the cutoff time
* will be defaulted to 8AM PST.
*/
cutoffTime?: Schema$CutoffTime;
/**
* Holiday cutoff definitions. If configured, they specify order cutoff
* times for holiday-specific shipping.
*/
holidayCutoffs?: Schema$HolidayCutoff[];
/**
* Maximum number of business days spent before an order is shipped. 0 means
* same day shipped, 1 means next day shipped. Must be greater than or equal
* to minHandlingTimeInDays.
*/
maxHandlingTimeInDays?: number;
/**
* Maximum number of business days that is spent in transit. 0 means same
* day delivery, 1 means next day delivery. Must be greater than or equal to
* minTransitTimeInDays.
*/
maxTransitTimeInDays?: number;
/**
* Minimum number of business days spent before an order is shipped. 0 means
* same day shipped, 1 means next day shipped.
*/
minHandlingTimeInDays?: number;
/**
* Minimum number of business days that is spent in transit. 0 means same
* day delivery, 1 means next day delivery. Either
* {min,max}transitTimeInDays or transitTimeTable must be set, but not both.
*/
minTransitTimeInDays?: number;
/**
* Transit time table, number of business days spent in transit based on row
* and column dimensions. Either {min,max}transitTimeInDays or
* transitTimeTable can be set, but not both.
*/
transitTimeTable?: Schema$TransitTable;
}
/**
* An error returned by the API.
*/
interface Schema$Error {
/**
* The domain of the error.
*/
domain?: string;
/**
* A description of the error.
*/
message?: string;
/**
* The error code.
*/
reason?: string;
}
/**
* A list of errors returned by a failed batch entry.
*/
interface Schema$Errors {
/**
* The HTTP status of the first error in errors.
*/
code?: number;
/**
* A list of errors.
*/
errors?: Schema$Error[];
/**
* The message of the first error in errors.
*/
message?: string;
}
interface Schema$GmbAccounts {
/**
* The ID of the account.
*/
accountId?: string;
/**
* A list of GMB accounts which are available to the merchant.
*/
gmbAccounts?: Schema$GmbAccountsGmbAccount[];
}
interface Schema$GmbAccountsGmbAccount {
/**
* The email which identifies the GMB account.
*/
email?: string;
/**
* Number of listings under this account.
*/
listingCount?: string;
/**
* The name of the GMB account.
*/
name?: string;
/**
* The type of the GMB account (User or Business).
*/
type?: string;
}
/**
* A non-empty list of row or column headers for a table. Exactly one of
* prices, weights, numItems, postalCodeGroupNames, or location must be set.
*/
interface Schema$Headers {
/**
* A list of location ID sets. Must be non-empty. Can only be set if all
* other fields are not set.
*/
locations?: Schema$LocationIdSet[];
/**
* A list of inclusive number of items upper bounds. The last value can be
* "infinity". For example ["10", "50",
* "infinity"] represents the headers "<= 10 items",
* " 50 items". Must be non-empty. Can only be set if all other
* fields are not set.
*/
numberOfItems?: string[];
/**
* A list of postal group names. The last value can be "all other
* locations". Example: ["zone 1", "zone 2",
* "all other locations"]. The referred postal code groups must
* match the delivery country of the service. Must be non-empty. Can only be
* set if all other fields are not set.
*/
postalCodeGroupNames?: string[];
/**
* A list of inclusive order price upper bounds. The last price's value
* can be "infinity". For example [{"value":
* "10", "currency": "USD"},
* {"value": "500", "currency":
* "USD"}, {"value": "infinity",
* "currency": "USD"}] represents the headers
* "<= $10", " $500". All prices within a service
* must have the same currency. Must be non-empty. Can only be set if all
* other fields are not set.
*/
prices?: Schema$Price[];
/**
* A list of inclusive order weight upper bounds. The last weight's
* value can be "infinity". For example [{"value":
* "10", "unit": "kg"}, {"value":
* "50", "unit": "kg"}, {"value":
* "infinity", "unit": "kg"}] represents the
* headers "<= 10kg", " 50kg". All weights within a
* service must have the same unit. Must be non-empty. Can only be set if
* all other fields are not set.
*/
weights?: Schema$Weight[];
}
interface Schema$HolidayCutoff {
/**
* Date of the order deadline, in ISO 8601 format. E.g.
* "2016-11-29" for 29th November 2016. Required.
*/
deadlineDate?: string;
/**
* Hour of the day on the deadline date until which the order has to be
* placed to qualify for the delivery guarantee. Possible values are: 0
* (midnight), 1, ..., 12 (noon), 13, ..., 23. Required.
*/
deadlineHour?: number;
/**
* Timezone identifier for the deadline hour. A list of identifiers can be
* found in the AdWords API documentation. E.g. "Europe/Zurich".
* Required.
*/
deadlineTimezone?: string;
/**
* Unique identifier for the holiday. Required.
*/
holidayId?: string;
/**
* Date on which the deadline will become visible to consumers in ISO 8601
* format. E.g. "2016-10-31" for 31st October 2016. Required.
*/
visibleFromDate?: string;
}
interface Schema$HolidaysHoliday {
/**
* The CLDR territory code of the country in which the holiday is available.
* E.g. "US", "DE", "GB". A holiday cutoff can
* only be configured in a shipping settings service with matching delivery
* country. Always present.
*/
countryCode?: string;
/**
* Date of the holiday, in ISO 8601 format. E.g. "2016-12-25" for
* Christmas 2016. Always present.
*/
date?: string;
/**
* Date on which the order has to arrive at the customer's, in ISO 8601
* format. E.g. "2016-12-24" for 24th December 2016. Always
* present.
*/
deliveryGuaranteeDate?: string;
/**
* Hour of the day in the delivery location's timezone on the guaranteed
* delivery date by which the order has to arrive at the customer's.
* Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Always
* present.
*/
deliveryGuaranteeHour?: string;
/**
* Unique identifier for the holiday to be used when configuring holiday
* cutoffs. Always present.
*/
id?: string;
/**
* The holiday type. Always present.
*/
type?: string;
}
interface Schema$Installment {
/**
* The amount the buyer has to pay per month.
*/
amount?: Schema$Price;
/**
* The number of installments the buyer has to pay.
*/
months?: string;
}
interface Schema$InvoiceSummary {
/**
* Summary of the total amounts of the additional charges.
*/
additionalChargeSummaries?: Schema$InvoiceSummaryAdditionalChargeSummary[];
/**
* [required] Total price for the product.
*/
productTotal?: Schema$Amount;
}
interface Schema$InvoiceSummaryAdditionalChargeSummary {
/**
* [required] Total additional charge for this type.
*/
totalAmount?: Schema$Amount;
/**
* [required] Type of the additional charge.
*/
type?: string;
}
interface Schema$LiaAboutPageSettings {
/**
* The status of the verification process for the About page.
*/
status?: string;
/**
* The URL for the About page.
*/
url?: string;
}
interface Schema$LiaCountrySettings {
/**
* The settings for the About page.
*/
about?: Schema$LiaAboutPageSettings;
/**
* CLDR country code (e.g. "US").
*/
country?: string;
/**
* The status of the "Merchant hosted local storefront" feature.
*/
hostedLocalStorefrontActive?: boolean;
/**
* LIA inventory verification settings.
*/
inventory?: Schema$LiaInventorySettings;
/**
* LIA "On Display To Order" settings.
*/
onDisplayToOrder?: Schema$LiaOnDisplayToOrderSettings;
/**
* The POS data provider linked with this country.
*/
posDataProvider?: Schema$LiaPosDataProvider;
/**
* The status of the "Store pickup" feature.
*/
storePickupActive?: boolean;
}
interface Schema$LiaInventorySettings {
/**
* The email of the contact for the inventory verification process.
*/
inventoryVerificationContactEmail?: string;
/**
* The name of the contact for the inventory verification process.
*/
inventoryVerificationContactName?: string;
/**
* The status of the verification contact.
*/
inventoryVerificationContactStatus?: string;
/**
* The status of the inventory verification process.
*/
status?: string;
}
interface Schema$LiaOnDisplayToOrderSettings {
/**
* Shipping cost and policy URL.
*/
shippingCostPolicyUrl?: string;
/**
* The status of the ?On display to order? feature.
*/
status?: string;
}
interface Schema$LiaPosDataProvider {
/**
* The ID of the POS data provider.
*/
posDataProviderId?: string;
/**
* The account ID by which this merchant is known to the POS data provider.
*/
posExternalAccountId?: string;
}
/**
* Local Inventory ads (LIA) settings. All methods except listposdataproviders
* require the admin role.
*/
interface Schema$LiaSettings {
/**
* The ID of the account to which these LIA settings belong. Ignored upon
* update, always present in get request responses.
*/
accountId?: string;
/**
* The LIA settings for each country.
*/
countrySettings?: Schema$LiaCountrySettings[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#liaSettings".
*/
kind?: string;
}
interface Schema$LiasettingsCustomBatchRequest {
/**
* The request entries to be processed in the batch.
*/
entries?: Schema$LiasettingsCustomBatchRequestEntry[];
}
interface Schema$LiasettingsCustomBatchRequestEntry {
/**
* The ID of the account for which to get/update account shipping settings.
*/
accountId?: string;
/**
* An entry ID, unique within the batch request.
*/
batchId?: number;
/**
* Inventory validation contact email. Required only for
* SetInventoryValidationContact.
*/
contactEmail?: string;
/**
* Inventory validation contact name. Required only for
* SetInventoryValidationContact.
*/
contactName?: string;
/**
* The country code. Required only for RequestInventoryVerification.
*/
country?: string;
/**
* The GMB account. Required only for RequestGmbAccess.
*/
gmbEmail?: string;
/**
* The account Lia settings to update. Only defined if the method is update.
*/
liaSettings?: Schema$LiaSettings;
/**
* The ID of the managing account.
*/
merchantId?: string;
method?: string;
/**
* The ID of POS data provider. Required only for SetPosProvider.
*/
posDataProviderId?: string;
/**
* The account ID by which this merchant is known to the POS provider.
*/
posExternalAccountId?: string;
}
interface Schema$LiasettingsCustomBatchResponse {
/**
* The result of the execution of the batch requests.
*/
entries?: Schema$LiasettingsCustomBatchResponseEntry[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#liasettingsCustomBatchResponse".
*/
kind?: string;
}
interface Schema$LiasettingsCustomBatchResponseEntry {
/**
* The ID of the request entry to which this entry responds.
*/
batchId?: number;
/**
* A list of errors defined if, and only if, the request failed.
*/
errors?: Schema$Errors;
/**
* The the list of accessible GMB accounts.
*/
gmbAccounts?: Schema$GmbAccounts;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#liasettingsCustomBatchResponseEntry".
*/
kind?: string;
/**
* The retrieved or updated Lia settings.
*/
liaSettings?: Schema$LiaSettings;
/**
* The list of POS data providers.
*/
posDataProviders?: Schema$PosDataProviders[];
}
interface Schema$LiasettingsGetAccessibleGmbAccountsResponse {
/**
* The ID of the account.
*/
accountId?: string;
/**
* A list of GMB accounts which are available to the merchant.
*/
gmbAccounts?: Schema$GmbAccountsGmbAccount[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#liasettingsGetAccessibleGmbAccountsResponse".
*/
kind?: string;
}
interface Schema$LiasettingsListPosDataProvidersResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#liasettingsListPosDataProvidersResponse".
*/
kind?: string;
/**
* The list of POS data providers for each eligible country
*/
posDataProviders?: Schema$PosDataProviders[];
}
interface Schema$LiasettingsListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#liasettingsListResponse".
*/
kind?: string;
/**
* The token for the retrieval of the next page of LIA settings.
*/
nextPageToken?: string;
resources?: Schema$LiaSettings[];
}
interface Schema$LiasettingsRequestGmbAccessResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#liasettingsRequestGmbAccessResponse".
*/
kind?: string;
}
interface Schema$LiasettingsRequestInventoryVerificationResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#liasettingsRequestInventoryVerificationResponse".
*/
kind?: string;
}
interface Schema$LiasettingsSetInventoryVerificationContactResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#liasettingsSetInventoryVerificationContactResponse".
*/
kind?: string;
}
interface Schema$LiasettingsSetPosDataProviderResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#liasettingsSetPosDataProviderResponse".
*/
kind?: string;
}
interface Schema$LocationIdSet {
/**
* A non-empty list of location IDs. They must all be of the same location
* type (e.g., state).
*/
locationIds?: string[];
}
interface Schema$LoyaltyPoints {
/**
* Name of loyalty points program. It is recommended to limit the name to 12
* full-width characters or 24 Roman characters.
*/
name?: string;
/**
* The retailer's loyalty points in absolute value.
*/
pointsValue?: string;
/**
* The ratio of a point when converted to currency. Google assumes currency
* based on Merchant Center settings. If ratio is left out, it defaults
* to 1.0.
*/
ratio?: number;
}
interface Schema$MerchantOrderReturn {
creationDate?: string;
merchantOrderId?: string;
orderId?: string;
orderReturnId?: string;
returnItems?: Schema$MerchantOrderReturnItem[];
returnShipments?: Schema$ReturnShipment[];
}
interface Schema$MerchantOrderReturnItem {
customerReturnReason?: Schema$CustomerReturnReason;
itemId?: string;
merchantReturnReason?: Schema$RefundReason;
product?: Schema$OrderLineItemProduct;
returnShipmentIds?: string[];
state?: string;
}
/**
* Order. All methods require the order manager role.
*/
interface Schema$Order {
/**
* Whether the order was acknowledged.
*/
acknowledged?: boolean;
/**
* The billing address.
*/
billingAddress?: Schema$OrderAddress;
/**
* The details of the customer who placed the order.
*/
customer?: Schema$OrderCustomer;
/**
* The details for the delivery.
*/
deliveryDetails?: Schema$OrderDeliveryDetails;
/**
* The REST ID of the order. Globally unique.
*/
id?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#order".
*/
kind?: string;
/**
* Line items that are ordered.
*/
lineItems?: Schema$OrderLineItem[];
merchantId?: string;
/**
* Merchant-provided ID of the order.
*/
merchantOrderId?: string;
/**
* The net amount for the order (price part). For example, if an order was
* originally for $100 and a refund was issued for $20, the net amount will
* be $80.
*/
netPriceAmount?: Schema$Price;
/**
* The net amount for the order (tax part). Note that in certain cases due
* to taxable base adjustment netTaxAmount might not match to a sum of tax
* field across all lineItems and refunds.
*/
netTaxAmount?: Schema$Price;
/**
* The status of the payment.
*/
paymentStatus?: string;
/**
* The date when the order was placed, in ISO 8601 format.
*/
placedDate?: string;
/**
* Promotions associated with the order.
*/
promotions?: Schema$OrderPromotion[];
/**
* Refunds for the order.
*/
refunds?: Schema$OrderRefund[];
/**
* Shipments of the order.
*/
shipments?: Schema$OrderShipment[];
/**
* The total cost of shipping for all items.
*/
shippingCost?: Schema$Price;
/**
* The tax for the total shipping cost.
*/
shippingCostTax?: Schema$Price;
/**
* The status of the order.
*/
status?: string;
/**
* The party responsible for collecting and remitting taxes.
*/
taxCollector?: string;
}
interface Schema$OrderAddress {
/**
* CLDR country code (e.g. "US").
*/
country?: string;
/**
* Strings representing the lines of the printed label for mailing the
* order, for example: John Smith 1600 Amphitheatre Parkway Mountain View,
* CA, 94043 United States
*/
fullAddress?: string[];
/**
* Whether the address is a post office box.
*/
isPostOfficeBox?: boolean;
/**
* City, town or commune. May also include dependent localities or
* sublocalities (e.g. neighborhoods or suburbs).
*/
locality?: string;
/**
* Postal Code or ZIP (e.g. "94043").
*/
postalCode?: string;
/**
* Name of the recipient.
*/
recipientName?: string;
/**
* Top-level administrative subdivision of the country. For example, a state
* like California ("CA") or a province like Quebec
* ("QC").
*/
region?: string;
/**
* Street-level part of the address.
*/
streetAddress?: string[];
}
interface Schema$OrderCancellation {
/**
* The actor that created the cancellation.
*/
actor?: string;
/**
* Date on which the cancellation has been created, in ISO 8601 format.
*/
creationDate?: string;
/**
* The quantity that was canceled.
*/
quantity?: number;
/**
* The reason for the cancellation. Orders that are cancelled with a
* noInventory reason will lead to the removal of the product from Shopping
* Actions until you make an update to that product. This will not affect
* your Shopping ads.
*/
reason?: string;
/**
* The explanation of the reason.
*/
reasonText?: string;
}
interface Schema$OrderCustomer {
/**
* Full name of the customer.
*/
fullName?: string;
/**
* Customer's marketing preferences.
*/
marketingRightsInfo?: Schema$OrderCustomerMarketingRightsInfo;
}
interface Schema$OrderCustomerMarketingRightsInfo {
/**
* Last known user selection regarding marketing preferences. In certain
* cases this selection might not be known, so this field would be empty.
*/
explicitMarketingPreference?: string;
/**
* Timestamp when last time marketing preference was updated. Could be
* empty, if user wasn't offered a selection yet.
*/
lastUpdatedTimestamp?: string;
/**
* Email address that can be used for marketing purposes. The field may be
* empty even if explicitMarketingPreference is 'granted'. This
* happens when retrieving an old order from the customer who deleted their
* account.
*/
marketingEmailAddress?: string;
}
interface Schema$OrderDeliveryDetails {
/**
* The delivery address
*/
address?: Schema$OrderAddress;
/**
* The phone number of the person receiving the delivery.
*/
phoneNumber?: string;
}
interface Schema$OrderinvoicesCreateChargeInvoiceRequest {
/**
* [required] The ID of the invoice.
*/
invoiceId?: string;
/**
* [required] Invoice summary.
*/
invoiceSummary?: Schema$InvoiceSummary;
/**
* [required] Invoice details per line item.
*/
lineItemInvoices?: Schema$ShipmentInvoiceLineItemInvoice[];
/**
* [required] The ID of the operation, unique across all operations for a
* given order.
*/
operationId?: string;
/**
* [required] ID of the shipment group. It is assigned by the merchant in
* the shipLineItems method and is used to group multiple line items that
* have the same kind of shipping charges.
*/
shipmentGroupId?: string;
}
interface Schema$OrderinvoicesCreateChargeInvoiceResponse {
/**
* The status of the execution.
*/
executionStatus?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#orderinvoicesCreateChargeInvoiceResponse".
*/
kind?: string;
}
interface Schema$OrderinvoicesCreateRefundInvoiceRequest {
/**
* [required] The ID of the invoice.
*/
invoiceId?: string;
/**
* [required] The ID of the operation, unique across all operations for a
* given order.
*/
operationId?: string;
/**
* Option to create a refund-only invoice. Exactly one of refundOnlyOption
* or returnOption must be provided.
*/
refundOnlyOption?: Schema$OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption;
/**
* Option to create an invoice for a refund and mark all items within the
* invoice as returned. Exactly one of refundOnlyOption or returnOption must
* be provided.
*/
returnOption?: Schema$OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption;
/**
* Invoice details for different shipment groups.
*/
shipmentInvoices?: Schema$ShipmentInvoice[];
}
interface Schema$OrderinvoicesCreateRefundInvoiceResponse {
/**
* The status of the execution.
*/
executionStatus?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#orderinvoicesCreateRefundInvoiceResponse".
*/
kind?: string;
}
interface Schema$OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption {
/**
* Optional description of the refund reason.
*/
description?: string;
/**
* [required] Reason for the refund.
*/
reason?: string;
}
interface Schema$OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption {
/**
* Optional description of the return reason.
*/
description?: string;
/**
* [required] Reason for the return.
*/
reason?: string;
}
interface Schema$OrderLineItem {
/**
* Annotations that are attached to the line item.
*/
annotations?: Schema$OrderMerchantProvidedAnnotation[];
/**
* Cancellations of the line item.
*/
cancellations?: Schema$OrderCancellation[];
/**
* The ID of the line item.
*/
id?: string;
/**
* Total price for the line item. For example, if two items for $10 are
* purchased, the total price will be $20.
*/
price?: Schema$Price;
/**
* Product data as seen by customer from the time of the order placement.
* Note that certain attributes values (e.g. title or gtin) might be
* reformatted and no longer match values submitted via product feed.
*/
product?: Schema$OrderLineItemProduct;
/**
* Number of items canceled.
*/
quantityCanceled?: number;
/**
* Number of items delivered.
*/
quantityDelivered?: number;
/**
* Number of items ordered.
*/
quantityOrdered?: number;
/**
* Number of items pending.
*/
quantityPending?: number;
/**
* Number of items returned.
*/
quantityReturned?: number;
/**
* Number of items shipped.
*/
quantityShipped?: number;
/**
* Details of the return policy for the line item.
*/
returnInfo?: Schema$OrderLineItemReturnInfo;
/**
* Returns of the line item.
*/
returns?: Schema$OrderReturn[];
/**
* Details of the requested shipping for the line item.
*/
shippingDetails?: Schema$OrderLineItemShippingDetails;
/**
* Total tax amount for the line item. For example, if two items are
* purchased, and each have a cost tax of $2, the total tax amount will be
* $4.
*/
tax?: Schema$Price;
}
interface Schema$OrderLineItemProduct {
/**
* Brand of the item.
*/
brand?: string;
/**
* Condition or state of the item.
*/
condition?: string;
/**
* The two-letter ISO 639-1 language code for the item.
*/
contentLanguage?: string;
/**
* Associated fees at order creation time.
*/
fees?: Schema$OrderLineItemProductFee[];
/**
* Global Trade Item Number (GTIN) of the item.
*/
gtin?: string;
/**
* The REST ID of the product.
*/
id?: string;
/**
* URL of an image of the item.
*/
imageLink?: string;
/**
* Shared identifier for all variants of the same product.
*/
itemGroupId?: string;
/**
* Manufacturer Part Number (MPN) of the item.
*/
mpn?: string;
/**
* An identifier of the item.
*/
offerId?: string;
/**
* Price of the item.
*/
price?: Schema$Price;
/**
* URL to the cached image shown to the user when order was placed.
*/
shownImage?: string;
/**
* The CLDR territory code of the target country of the product.
*/
targetCountry?: string;
/**
* The title of the product.
*/
title?: string;
/**
* Variant attributes for the item. These are dimensions of the product,
* such as color, gender, material, pattern, and size. You can find a
* comprehensive list of variant attributes here.
*/
variantAttributes?: Schema$OrderLineItemProductVariantAttribute[];
}
interface Schema$OrderLineItemProductFee {
/**
* Amount of the fee.
*/
amount?: Schema$Price;
/**
* Name of the fee.
*/
name?: string;
}
interface Schema$OrderLineItemProductVariantAttribute {
/**
* The dimension of the variant.
*/
dimension?: string;
/**
* The value for the dimension.
*/
value?: string;
}
interface Schema$OrderLineItemReturnInfo {
/**
* How many days later the item can be returned.
*/
daysToReturn?: number;
/**
* Whether the item is returnable.
*/
isReturnable?: boolean;
/**
* URL of the item return policy.
*/
policyUrl?: string;
}
interface Schema$OrderLineItemShippingDetails {
/**
* The delivery by date, in ISO 8601 format.
*/
deliverByDate?: string;
/**
* Details of the shipping method.
*/
method?: Schema$OrderLineItemShippingDetailsMethod;
/**
* The ship by date, in ISO 8601 format.
*/
shipByDate?: string;
}
interface Schema$OrderLineItemShippingDetailsMethod {
/**
* The carrier for the shipping. Optional. See shipments[].carrier for a
* list of acceptable values.
*/
carrier?: string;
/**
* Maximum transit time.
*/
maxDaysInTransit?: number;
/**
* The name of the shipping method.
*/
methodName?: string;
/**
* Minimum transit time.
*/
minDaysInTransit?: number;
}
interface Schema$OrderMerchantProvidedAnnotation {
/**
* Key for additional merchant provided (as key-value pairs) annotation
* about the line item.
*/
key?: string;
/**
* Value for additional merchant provided (as key-value pairs) annotation
* about the line item.
*/
value?: string;
}
interface Schema$OrderPromotion {
/**
* Items which this promotion may be applied to. If empty, there are no
* restrictions on applicable items and quantity.
*/
applicableItems?: Schema$OrderPromotionItem[];
/**
* Items which this promotion have been applied to.
*/
appliedItems?: Schema$OrderPromotionItem[];
/**
* The party funding the promotion.
*/
funder?: string;
/**
* This field is used to identify promotions within merchants' own
* systems.
*/
merchantPromotionId?: string;
/**
* Estimated discount applied to price. Amount is pre-tax or post-tax
* depending on location of order.
*/
priceValue?: Schema$Price;
/**
* A short title of the promotion to be shown on the checkout page.
*/
shortTitle?: string;
/**
* The category of the promotion.
*/
subtype?: string;
/**
* Estimated discount applied to tax (if allowed by law).
*/
taxValue?: Schema$Price;
/**
* The title of the promotion.
*/
title?: string;
/**
* The scope of the promotion.
*/
type?: string;
}
interface Schema$OrderPromotionItem {
lineItemId?: string;
productId?: string;
/**
* The quantity of the associated product.
*/
quantity?: number;
}
interface Schema$OrderRefund {
/**
* The actor that created the refund.
*/
actor?: string;
/**
* The amount that is refunded.
*/
amount?: Schema$Price;
/**
* Date on which the item has been created, in ISO 8601 format.
*/
creationDate?: string;
/**
* The reason for the refund.
*/
reason?: string;
/**
* The explanation of the reason.
*/
reasonText?: string;
}
/**
* Order disbursement. All methods require the payment analyst role.
*/
interface Schema$OrderReportDisbursement {
/**
* The disbursement amount.
*/
disbursementAmount?: Schema$Price;
/**
* The disbursement date, in ISO 8601 format.
*/
disbursementCreationDate?: string;
/**
* The date the disbursement was initiated, in ISO 8601 format.
*/
disbursementDate?: string;
/**
* The ID of the disbursement.
*/
disbursementId?: string;
/**
* The ID of the managing account.
*/
merchantId?: string;
}
interface Schema$OrderreportsListDisbursementsResponse {
/**
* The list of disbursements.
*/
disbursements?: Schema$OrderReportDisbursement[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#orderreportsListDisbursementsResponse".
*/
kind?: string;
/**
* The token for the retrieval of the next page of disbursements.
*/
nextPageToken?: string;
}
interface Schema$OrderreportsListTransactionsResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#orderreportsListTransactionsResponse".
*/
kind?: string;
/**
* The token for the retrieval of the next page of transactions.
*/
nextPageToken?: string;
/**
* The list of transactions.
*/
transactions?: Schema$OrderReportTransaction[];
}
interface Schema$OrderReportTransaction {
/**
* The disbursement amount.
*/
disbursementAmount?: Schema$Price;
/**
* The date the disbursement was created, in ISO 8601 format.
*/
disbursementCreationDate?: string;
/**
* The date the disbursement was initiated, in ISO 8601 format.
*/
disbursementDate?: string;
/**
* The ID of the disbursement.
*/
disbursementId?: string;
/**
* The ID of the managing account.
*/
merchantId?: string;
/**
* Merchant-provided ID of the order.
*/
merchantOrderId?: string;
/**
* The ID of the order.
*/
orderId?: string;
/**
* Total amount for the items.
*/
productAmount?: Schema$ProductAmount;
/**
* The date of the transaction, in ISO 8601 format.
*/
transactionDate?: string;
}
interface Schema$OrderReturn {
/**
* The actor that created the refund.
*/
actor?: string;
/**
* Date on which the item has been created, in ISO 8601 format.
*/
creationDate?: string;
/**
* Quantity that is returned.
*/
quantity?: number;
/**
* The reason for the return.
*/
reason?: string;
/**
* The explanation of the reason.
*/
reasonText?: string;
}
interface Schema$OrderreturnsListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#orderreturnsListResponse".
*/
kind?: string;
/**
* The token for the retrieval of the next page of returns.
*/
nextPageToken?: string;
resources?: Schema$MerchantOrderReturn[];
}
interface Schema$OrdersAcknowledgeRequest {
/**
* The ID of the operation. Unique across all operations for a given order.
*/
operationId?: string;
}
interface Schema$OrdersAcknowledgeResponse {
/**
* The status of the execution.
*/
executionStatus?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersAcknowledgeResponse".
*/
kind?: string;
}
interface Schema$OrdersAdvanceTestOrderResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersAdvanceTestOrderResponse".
*/
kind?: string;
}
interface Schema$OrdersCancelLineItemRequest {
/**
* The ID of the line item to cancel. Either lineItemId or productId is
* required.
*/
lineItemId?: string;
/**
* The ID of the operation. Unique across all operations for a given order.
*/
operationId?: string;
/**
* The ID of the product to cancel. This is the REST ID used in the products
* service. Either lineItemId or productId is required.
*/
productId?: string;
/**
* The quantity to cancel.
*/
quantity?: number;
/**
* The reason for the cancellation.
*/
reason?: string;
/**
* The explanation of the reason.
*/
reasonText?: string;
}
interface Schema$OrdersCancelLineItemResponse {
/**
* The status of the execution.
*/
executionStatus?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersCancelLineItemResponse".
*/
kind?: string;
}
interface Schema$OrdersCancelRequest {
/**
* The ID of the operation. Unique across all operations for a given order.
*/
operationId?: string;
/**
* The reason for the cancellation.
*/
reason?: string;
/**
* The explanation of the reason.
*/
reasonText?: string;
}
interface Schema$OrdersCancelResponse {
/**
* The status of the execution.
*/
executionStatus?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersCancelResponse".
*/
kind?: string;
}
interface Schema$OrdersCancelTestOrderByCustomerRequest {
/**
* The reason for the cancellation.
*/
reason?: string;
}
interface Schema$OrdersCancelTestOrderByCustomerResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersCancelTestOrderByCustomerResponse".
*/
kind?: string;
}
interface Schema$OrdersCreateTestOrderRequest {
/**
* The CLDR territory code of the country of the test order to create.
* Affects the currency and addresses of orders created via template_name,
* or the addresses of orders created via test_order. Acceptable values
* are: - "US" - "FR" Defaults to US.
*/
country?: string;
/**
* The test order template to use. Specify as an alternative to testOrder as
* a shortcut for retrieving a template and then creating an order using
* that template.
*/
templateName?: string;
/**
* The test order to create.
*/
testOrder?: Schema$TestOrder;
}
interface Schema$OrdersCreateTestOrderResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersCreateTestOrderResponse".
*/
kind?: string;
/**
* The ID of the newly created test order.
*/
orderId?: string;
}
interface Schema$OrdersCreateTestReturnRequest {
/**
* Returned items.
*/
items?: Schema$OrdersCustomBatchRequestEntryCreateTestReturnReturnItem[];
}
interface Schema$OrdersCreateTestReturnResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersCreateTestReturnResponse".
*/
kind?: string;
/**
* The ID of the newly created test order return.
*/
returnId?: string;
}
interface Schema$OrdersCustomBatchRequestEntryCreateTestReturnReturnItem {
/**
* The ID of the line item to return.
*/
lineItemId?: string;
/**
* Quantity that is returned.
*/
quantity?: number;
}
interface Schema$OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo {
/**
* The carrier handling the shipment. See shipments[].carrier in the Orders
* resource representation for a list of acceptable values.
*/
carrier?: string;
/**
* The ID of the shipment. This is assigned by the merchant and is unique to
* each shipment.
*/
shipmentId?: string;
/**
* The tracking ID for the shipment.
*/
trackingId?: string;
}
interface Schema$OrdersGetByMerchantOrderIdResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersGetByMerchantOrderIdResponse".
*/
kind?: string;
/**
* The requested order.
*/
order?: Schema$Order;
}
interface Schema$OrdersGetTestOrderTemplateResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersGetTestOrderTemplateResponse".
*/
kind?: string;
/**
* The requested test order template.
*/
template?: Schema$TestOrder;
}
interface Schema$OrderShipment {
/**
* The carrier handling the shipment. Acceptable values for US are: -
* "gsx" - "ups" - "usps" -
* "fedex" - "dhl" - "ecourier" -
* "cxt" - "google" - "ontrac" -
* "emsy" - "ont" - "deliv" -
* "dynamex" - "lasership" - "mpx" -
* "uds" Acceptable values for FR are: -
* "colissimo" - "chronopost"
*/
carrier?: string;
/**
* Date on which the shipment has been created, in ISO 8601 format.
*/
creationDate?: string;
/**
* Date on which the shipment has been delivered, in ISO 8601 format.
* Present only if status is delivered
*/
deliveryDate?: string;
/**
* The ID of the shipment.
*/
id?: string;
/**
* The line items that are shipped.
*/
lineItems?: Schema$OrderShipmentLineItemShipment[];
/**
* The status of the shipment.
*/
status?: string;
/**
* The tracking ID for the shipment.
*/
trackingId?: string;
}
interface Schema$OrderShipmentLineItemShipment {
/**
* The ID of the line item that is shipped. Either lineItemId or productId
* is required.
*/
lineItemId?: string;
/**
* The ID of the product to ship. This is the REST ID used in the products
* service. Either lineItemId or productId is required.
*/
productId?: string;
/**
* The quantity that is shipped.
*/
quantity?: number;
}
interface Schema$OrdersInStoreRefundLineItemRequest {
/**
* The ID of the line item to return. Either lineItemId or productId is
* required.
*/
lineItemId?: string;
/**
* The ID of the operation. Unique across all operations for a given order.
*/
operationId?: string;
/**
* The amount to be refunded. This may be pre-tax or post-tax depending on
* the location of the order. Required.
*/
priceAmount?: Schema$Price;
/**
* The ID of the product to return. This is the REST ID used in the products
* service. Either lineItemId or productId is required.
*/
productId?: string;
/**
* The quantity to return and refund.
*/
quantity?: number;
/**
* The reason for the return.
*/
reason?: string;
/**
* The explanation of the reason.
*/
reasonText?: string;
/**
* The amount of tax to be refunded. Required.
*/
taxAmount?: Schema$Price;
}
interface Schema$OrdersInStoreRefundLineItemResponse {
/**
* The status of the execution.
*/
executionStatus?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersInStoreRefundLineItemResponse".
*/
kind?: string;
}
interface Schema$OrdersListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersListResponse".
*/
kind?: string;
/**
* The token for the retrieval of the next page of orders.
*/
nextPageToken?: string;
resources?: Schema$Order[];
}
interface Schema$OrdersRejectReturnLineItemRequest {
/**
* The ID of the line item to return. Either lineItemId or productId is
* required.
*/
lineItemId?: string;
/**
* The ID of the operation. Unique across all operations for a given order.
*/
operationId?: string;
/**
* The ID of the product to return. This is the REST ID used in the products
* service. Either lineItemId or productId is required.
*/
productId?: string;
/**
* The quantity to return and refund.
*/
quantity?: number;
/**
* The reason for the return.
*/
reason?: string;
/**
* The explanation of the reason.
*/
reasonText?: string;
}
interface Schema$OrdersRejectReturnLineItemResponse {
/**
* The status of the execution.
*/
executionStatus?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersRejectReturnLineItemResponse".
*/
kind?: string;
}
interface Schema$OrdersReturnRefundLineItemRequest {
/**
* The ID of the line item to return. Either lineItemId or productId is
* required.
*/
lineItemId?: string;
/**
* The ID of the operation. Unique across all operations for a given order.
*/
operationId?: string;
/**
* The amount to be refunded. This may be pre-tax or post-tax depending on
* the location of the order. If omitted, refundless return is assumed.
*/
priceAmount?: Schema$Price;
/**
* The ID of the product to return. This is the REST ID used in the products
* service. Either lineItemId or productId is required.
*/
productId?: string;
/**
* The quantity to return and refund.
*/
quantity?: number;
/**
* The reason for the return.
*/
reason?: string;
/**
* The explanation of the reason.
*/
reasonText?: string;
/**
* The amount of tax to be refunded. Optional, but if filled, then
* priceAmount must be set. Calculated automatically if not provided.
*/
taxAmount?: Schema$Price;
}
interface Schema$OrdersReturnRefundLineItemResponse {
/**
* The status of the execution.
*/
executionStatus?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersReturnRefundLineItemResponse".
*/
kind?: string;
}
interface Schema$OrdersSetLineItemMetadataRequest {
annotations?: Schema$OrderMerchantProvidedAnnotation[];
/**
* The ID of the line item to set metadata. Either lineItemId or productId
* is required.
*/
lineItemId?: string;
/**
* The ID of the operation. Unique across all operations for a given order.
*/
operationId?: string;
/**
* The ID of the product to set metadata. This is the REST ID used in the
* products service. Either lineItemId or productId is required.
*/
productId?: string;
}
interface Schema$OrdersSetLineItemMetadataResponse {
/**
* The status of the execution.
*/
executionStatus?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersSetLineItemMetadataResponse".
*/
kind?: string;
}
interface Schema$OrdersShipLineItemsRequest {
/**
* Line items to ship.
*/
lineItems?: Schema$OrderShipmentLineItemShipment[];
/**
* The ID of the operation. Unique across all operations for a given order.
*/
operationId?: string;
/**
* ID of the shipment group. Required for orders that use the orderinvoices
* service.
*/
shipmentGroupId?: string;
/**
* Shipment information. This field is repeated because a single line item
* can be shipped in several packages (and have several tracking IDs).
*/
shipmentInfos?: Schema$OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo[];
}
interface Schema$OrdersShipLineItemsResponse {
/**
* The status of the execution.
*/
executionStatus?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersShipLineItemsResponse".
*/
kind?: string;
}
interface Schema$OrdersUpdateLineItemShippingDetailsRequest {
/**
* Updated delivery by date, in ISO 8601 format. If not specified only ship
* by date is updated. Provided date should be within 1 year timeframe and
* can not be a date in the past.
*/
deliverByDate?: string;
/**
* The ID of the line item to set metadata. Either lineItemId or productId
* is required.
*/
lineItemId?: string;
/**
* The ID of the operation. Unique across all operations for a given order.
*/
operationId?: string;
/**
* The ID of the product to set metadata. This is the REST ID used in the
* products service. Either lineItemId or productId is required.
*/
productId?: string;
/**
* Updated ship by date, in ISO 8601 format. If not specified only deliver
* by date is updated. Provided date should be within 1 year timeframe and
* can not be a date in the past.
*/
shipByDate?: string;
}
interface Schema$OrdersUpdateLineItemShippingDetailsResponse {
/**
* The status of the execution.
*/
executionStatus?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersUpdateLineItemShippingDetailsResponse".
*/
kind?: string;
}
interface Schema$OrdersUpdateMerchantOrderIdRequest {
/**
* The merchant order id to be assigned to the order. Must be unique per
* merchant.
*/
merchantOrderId?: string;
/**
* The ID of the operation. Unique across all operations for a given order.
*/
operationId?: string;
}
interface Schema$OrdersUpdateMerchantOrderIdResponse {
/**
* The status of the execution.
*/
executionStatus?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersUpdateMerchantOrderIdResponse".
*/
kind?: string;
}
interface Schema$OrdersUpdateShipmentRequest {
/**
* The carrier handling the shipment. Not updated if missing. See
* shipments[].carrier in the Orders resource representation for a list of
* acceptable values.
*/
carrier?: string;
/**
* Date on which the shipment has been delivered, in ISO 8601 format.
* Optional and can be provided only if status is delivered.
*/
deliveryDate?: string;
/**
* The ID of the operation. Unique across all operations for a given order.
*/
operationId?: string;
/**
* The ID of the shipment.
*/
shipmentId?: string;
/**
* New status for the shipment. Not updated if missing.
*/
status?: string;
/**
* The tracking ID for the shipment. Not updated if missing.
*/
trackingId?: string;
}
interface Schema$OrdersUpdateShipmentResponse {
/**
* The status of the execution.
*/
executionStatus?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#ordersUpdateShipmentResponse".
*/
kind?: string;
}
interface Schema$PosCustomBatchRequest {
/**
* The request entries to be processed in the batch.
*/
entries?: Schema$PosCustomBatchRequestEntry[];
}
interface Schema$PosCustomBatchRequestEntry {
/**
* An entry ID, unique within the batch request.
*/
batchId?: number;
/**
* The inventory to submit. Set this only if the method is inventory.
*/
inventory?: Schema$PosInventory;
/**
* The ID of the POS data provider.
*/
merchantId?: string;
method?: string;
/**
* The sale information to submit. Set this only if the method is sale.
*/
sale?: Schema$PosSale;
/**
* The store information to submit. Set this only if the method is insert.
*/
store?: Schema$PosStore;
/**
* The store code. Set this only if the method is delete or get.
*/
storeCode?: string;
/**
* The ID of the account for which to get/submit data.
*/
targetMerchantId?: string;
}
interface Schema$PosCustomBatchResponse {
/**
* The result of the execution of the batch requests.
*/
entries?: Schema$PosCustomBatchResponseEntry[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#posCustomBatchResponse".
*/
kind?: string;
}
interface Schema$PosCustomBatchResponseEntry {
/**
* The ID of the request entry to which this entry responds.
*/
batchId?: number;
/**
* A list of errors defined if, and only if, the request failed.
*/
errors?: Schema$Errors;
/**
* The updated inventory information.
*/
inventory?: Schema$PosInventory;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#posCustomBatchResponseEntry".
*/
kind?: string;
/**
* The updated sale information.
*/
sale?: Schema$PosSale;
/**
* The retrieved or updated store information.
*/
store?: Schema$PosStore;
}
interface Schema$PosDataProviders {
/**
* Country code.
*/
country?: string;
/**
* A list of POS data providers.
*/
posDataProviders?: Schema$PosDataProvidersPosDataProvider[];
}
interface Schema$PosDataProvidersPosDataProvider {
/**
* The display name of Pos data Provider.
*/
displayName?: string;
/**
* The full name of this POS data Provider.
*/
fullName?: string;
/**
* The ID of the account.
*/
providerId?: string;
}
/**
* The absolute quantity of an item available at the given store.
*/
interface Schema$PosInventory {
/**
* The two-letter ISO 639-1 language code for the item.
*/
contentLanguage?: string;
/**
* Global Trade Item Number.
*/
gtin?: string;
/**
* A unique identifier for the item.
*/
itemId?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#posInventory".
*/
kind?: string;
/**
* The current price of the item.
*/
price?: Schema$Price;
/**
* The available quantity of the item.
*/
quantity?: string;
/**
* The identifier of the merchant's store. Either a storeCode inserted
* via the API or the code of the store in Google My Business.
*/
storeCode?: string;
/**
* The CLDR territory code for the item.
*/
targetCountry?: string;
/**
* The inventory timestamp, in ISO 8601 format.
*/
timestamp?: string;
}
interface Schema$PosInventoryRequest {
/**
* The two-letter ISO 639-1 language code for the item.
*/
contentLanguage?: string;
/**
* Global Trade Item Number.
*/
gtin?: string;
/**
* A unique identifier for the item.
*/
itemId?: string;
/**
* The current price of the item.
*/
price?: Schema$Price;
/**
* The available quantity of the item.
*/
quantity?: string;
/**
* The identifier of the merchant's store. Either a storeCode inserted
* via the API or the code of the store in Google My Business.
*/
storeCode?: string;
/**
* The CLDR territory code for the item.
*/
targetCountry?: string;
/**
* The inventory timestamp, in ISO 8601 format.
*/
timestamp?: string;
}
interface Schema$PosInventoryResponse {
/**
* The two-letter ISO 639-1 language code for the item.
*/
contentLanguage?: string;
/**
* Global Trade Item Number.
*/
gtin?: string;
/**
* A unique identifier for the item.
*/
itemId?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#posInventoryResponse".
*/
kind?: string;
/**
* The current price of the item.
*/
price?: Schema$Price;
/**
* The available quantity of the item.
*/
quantity?: string;
/**
* The identifier of the merchant's store. Either a storeCode inserted
* via the API or the code of the store in Google My Business.
*/
storeCode?: string;
/**
* The CLDR territory code for the item.
*/
targetCountry?: string;
/**
* The inventory timestamp, in ISO 8601 format.
*/
timestamp?: string;
}
interface Schema$PosListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#posListResponse".
*/
kind?: string;
resources?: Schema$PosStore[];
}
/**
* The change of the available quantity of an item at the given store.
*/
interface Schema$PosSale {
/**
* The two-letter ISO 639-1 language code for the item.
*/
contentLanguage?: string;
/**
* Global Trade Item Number.
*/
gtin?: string;
/**
* A unique identifier for the item.
*/
itemId?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#posSale".
*/
kind?: string;
/**
* The price of the item.
*/
price?: Schema$Price;
/**
* The relative change of the available quantity. Negative for items
* returned.
*/
quantity?: string;
/**
* A unique ID to group items from the same sale event.
*/
saleId?: string;
/**
* The identifier of the merchant's store. Either a storeCode inserted
* via the API or the code of the store in Google My Business.
*/
storeCode?: string;
/**
* The CLDR territory code for the item.
*/
targetCountry?: string;
/**
* The inventory timestamp, in ISO 8601 format.
*/
timestamp?: string;
}
interface Schema$PosSaleRequest {
/**
* The two-letter ISO 639-1 language code for the item.
*/
contentLanguage?: string;
/**
* Global Trade Item Number.
*/
gtin?: string;
/**
* A unique identifier for the item.
*/
itemId?: string;
/**
* The price of the item.
*/
price?: Schema$Price;
/**
* The relative change of the available quantity. Negative for items
* returned.
*/
quantity?: string;
/**
* A unique ID to group items from the same sale event.
*/
saleId?: string;
/**
* The identifier of the merchant's store. Either a storeCode inserted
* via the API or the code of the store in Google My Business.
*/
storeCode?: string;
/**
* The CLDR territory code for the item.
*/
targetCountry?: string;
/**
* The inventory timestamp, in ISO 8601 format.
*/
timestamp?: string;
}
interface Schema$PosSaleResponse {
/**
* The two-letter ISO 639-1 language code for the item.
*/
contentLanguage?: string;
/**
* Global Trade Item Number.
*/
gtin?: string;
/**
* A unique identifier for the item.
*/
itemId?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#posSaleResponse".
*/
kind?: string;
/**
* The price of the item.
*/
price?: Schema$Price;
/**
* The relative change of the available quantity. Negative for items
* returned.
*/
quantity?: string;
/**
* A unique ID to group items from the same sale event.
*/
saleId?: string;
/**
* The identifier of the merchant's store. Either a storeCode inserted
* via the API or the code of the store in Google My Business.
*/
storeCode?: string;
/**
* The CLDR territory code for the item.
*/
targetCountry?: string;
/**
* The inventory timestamp, in ISO 8601 format.
*/
timestamp?: string;
}
/**
* Store resource.
*/
interface Schema$PosStore {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#posStore".
*/
kind?: string;
/**
* The street address of the store.
*/
storeAddress?: string;
/**
* A store identifier that is unique for the given merchant.
*/
storeCode?: string;
}
interface Schema$PostalCodeGroup {
/**
* The CLDR territory code of the country the postal code group applies to.
* Required.
*/
country?: string;
/**
* The name of the postal code group, referred to in headers. Required.
*/
name?: string;
/**
* A range of postal codes. Required.
*/
postalCodeRanges?: Schema$PostalCodeRange[];
}
interface Schema$PostalCodeRange {
/**
* A postal code or a pattern of the form prefix* denoting the inclusive
* lower bound of the range defining the area. Examples values:
* "94108", "9410*", "9*". Required.
*/
postalCodeRangeBegin?: string;
/**
* A postal code or a pattern of the form prefix* denoting the inclusive
* upper bound of the range defining the area. It must have the same length
* as postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then
* postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is
* a pattern then postalCodeRangeEnd must be a pattern with the same prefix
* length. Optional: if not set, then the area is defined as being all the
* postal codes matching postalCodeRangeBegin.
*/
postalCodeRangeEnd?: string;
}
interface Schema$Price {
/**
* The currency of the price.
*/
currency?: string;
/**
* The price represented as a number.
*/
value?: string;
}
/**
* Product data. After inserting, updating, or deleting a product, it may take
* several minutes before changes take effect.
*/
interface Schema$Product {
/**
* Additional URLs of images of the item.
*/
additionalImageLinks?: string[];
/**
* Used to group items in an arbitrary way. Only for CPA%, discouraged
* otherwise.
*/
adsGrouping?: string;
/**
* Similar to ads_grouping, but only works on CPC.
*/
adsLabels?: string[];
/**
* Allows advertisers to override the item URL when the product is shown
* within the context of Product Ads.
*/
adsRedirect?: string;
/**
* Set to true if the item is targeted towards adults.
*/
adult?: boolean;
/**
* Target age group of the item.
*/
ageGroup?: string;
/**
* Availability status of the item.
*/
availability?: string;
/**
* The day a pre-ordered product becomes available for delivery, in ISO 8601
* format.
*/
availabilityDate?: string;
/**
* Brand of the item.
*/
brand?: string;
/**
* The item's channel (online or local).
*/
channel?: string;
/**
* Color of the item.
*/
color?: string;
/**
* Condition or state of the item.
*/
condition?: string;
/**
* The two-letter ISO 639-1 language code for the item.
*/
contentLanguage?: string;
/**
* Cost of goods sold. Used for gross profit reporting.
*/
costOfGoodsSold?: Schema$Price;
/**
* A list of custom (merchant-provided) attributes. It can also be used for
* submitting any attribute of the feed specification in its generic form
* (e.g., { "name": "size type", "value":
* "regular" }). This is useful for submitting attributes not
* explicitly exposed by the API.
*/
customAttributes?: Schema$CustomAttribute[];
/**
* Custom label 0 for custom grouping of items in a Shopping campaign.
*/
customLabel0?: string;
/**
* Custom label 1 for custom grouping of items in a Shopping campaign.
*/
customLabel1?: string;
/**
* Custom label 2 for custom grouping of items in a Shopping campaign.
*/
customLabel2?: string;
/**
* Custom label 3 for custom grouping of items in a Shopping campaign.
*/
customLabel3?: string;
/**
* Custom label 4 for custom grouping of items in a Shopping campaign.
*/
customLabel4?: string;
/**
* Description of the item.
*/
description?: string;
/**
* An identifier for an item for dynamic remarketing campaigns.
*/
displayAdsId?: string;
/**
* URL directly to your item's landing page for dynamic remarketing
* campaigns.
*/
displayAdsLink?: string;
/**
* Advertiser-specified recommendations.
*/
displayAdsSimilarIds?: string[];
/**
* Title of an item for dynamic remarketing campaigns.
*/
displayAdsTitle?: string;
/**
* Offer margin for dynamic remarketing campaigns.
*/
displayAdsValue?: number;
/**
* The energy efficiency class as defined in EU directive 2010/30/EU.
*/
energyEfficiencyClass?: string;
/**
* The list of destinations to exclude for this target (corresponds to
* unchecked check boxes in Merchant Center).
*/
excludedDestinations?: string[];
/**
* Date on which the item should expire, as specified upon insertion, in ISO
* 8601 format. The actual expiration date in Google Shopping is exposed in
* productstatuses as googleExpirationDate and might be earlier if
* expirationDate is too far in the future.
*/
expirationDate?: string;
/**
* Target gender of the item.
*/
gender?: string;
/**
* Google's category of the item (see Google product taxonomy).
*/
googleProductCategory?: string;
/**
* Global Trade Item Number (GTIN) of the item.
*/
gtin?: string;
/**
* The REST ID of the product. Content API methods that operate on products
* take this as their productId parameter. The REST ID for a product is of
* the form channel:contentLanguage:targetCountry:offerId.
*/
id?: string;
/**
* False when the item does not have unique product identifiers appropriate
* to its category, such as GTIN, MPN, and brand. Required according to the
* Unique Product Identifier Rules for all target countries except for
* Canada.
*/
identifierExists?: boolean;
/**
* URL of an image of the item.
*/
imageLink?: string;
/**
* The list of destinations to include for this target (corresponds to
* checked check boxes in Merchant Center). Default destinations are always
* included unless provided in the excluded_destination field.
*/
includedDestinations?: string[];
/**
* Number and amount of installments to pay for an item. Brazil only.
*/
installment?: Schema$Installment;
/**
* Whether the item is a merchant-defined bundle. A bundle is a custom
* grouping of different products sold by a merchant for a single price.
*/
isBundle?: boolean;
/**
* Shared identifier for all variants of the same product.
*/
itemGroupId?: string;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#product".
*/
kind?: string;
/**
* URL directly linking to your item's page on your website.
*/
link?: string;
/**
* Loyalty points that users receive after purchasing the item. Japan only.
*/
loyaltyPoints?: Schema$LoyaltyPoints;
/**
* The material of which the item is made.
*/
material?: string;
/**
* The energy efficiency class as defined in EU directive 2010/30/EU.
*/
maxEnergyEfficiencyClass?: string;
/**
* Maximal product handling time (in business days).
*/
maxHandlingTime?: string;
/**
* The energy efficiency class as defined in EU directive 2010/30/EU.
*/
minEnergyEfficiencyClass?: string;
/**
* Minimal product handling time (in business days).
*/
minHandlingTime?: string;
/**
* Link to a mobile-optimized version of the landing page.
*/
mobileLink?: string;
/**
* Manufacturer Part Number (MPN) of the item.
*/
mpn?: string;
/**
* The number of identical products in a merchant-defined multipack.
*/
multipack?: string;
/**
* A unique identifier for the item. Leading and trailing whitespaces are
* stripped and multiple whitespaces are replaced by a single whitespace
* upon submission. Only valid unicode characters are accepted. See the
* products feed specification for details. Note: Content API methods that
* operate on products take the REST ID of the product, not this identifier.
*/
offerId?: string;
/**
* The item's pattern (e.g. polka dots).
*/
pattern?: string;
/**
* Price of the item.
*/
price?: Schema$Price;
/**
* Categories of the item (formatted as in products feed specification).
*/
productTypes?: string[];
/**
* The unique ID of a promotion.
*/
promotionIds?: string[];
/**
* Advertised sale price of the item.
*/
salePrice?: Schema$Price;
/**
* Date range during which the item is on sale (see products feed
* specification).
*/
salePriceEffectiveDate?: string;
/**
* The quantity of the product that is available for selling on Google.
* Supported only for online products.
*/
sellOnGoogleQuantity?: string;
/**
* Shipping rules.
*/
shipping?: Schema$ProductShipping[];
/**
* Height of the item for shipping.
*/
shippingHeight?: Schema$ProductShippingDimension;
/**
* The shipping label of the product, used to group product in account-level
* shipping rules.
*/
shippingLabel?: string;
/**
* Length of the item for shipping.
*/
shippingLength?: Schema$ProductShippingDimension;
/**
* Weight of the item for shipping.
*/
shippingWeight?: Schema$ProductShippingWeight;
/**
* Width of the item for shipping.
*/
shippingWidth?: Schema$ProductShippingDimension;
/**
* Size of the item.
*/
sizes?: string[];
/**
* System in which the size is specified. Recommended for apparel items.
*/
sizeSystem?: string;
/**
* The cut of the item. Recommended for apparel items.
*/
sizeType?: string;
/**
* The source of the offer, i.e., how the offer was created.
*/
source?: string;
/**
* The CLDR territory code for the item.
*/
targetCountry?: string;
/**
* Tax information.
*/
taxes?: Schema$ProductTax[];
/**
* Title of the item.
*/
title?: string;
/**
* The preference of the denominator of the unit price.
*/
unitPricingBaseMeasure?: Schema$ProductUnitPricingBaseMeasure;
/**
* The measure and dimension of an item.
*/
unitPricingMeasure?: Schema$ProductUnitPricingMeasure;
}
interface Schema$ProductAmount {
/**
* The pre-tax or post-tax price depending on the location of the order.
*/
priceAmount?: Schema$Price;
/**
* Remitted tax value.
*/
remittedTaxAmount?: Schema$Price;
/**
* Tax value.
*/
taxAmount?: Schema$Price;
}
interface Schema$ProductsCustomBatchRequest {
/**
* The request entries to be processed in the batch.
*/
entries?: Schema$ProductsCustomBatchRequestEntry[];
}
/**
* A batch entry encoding a single non-batch products request.
*/
interface Schema$ProductsCustomBatchRequestEntry {
/**
* An entry ID, unique within the batch request.
*/
batchId?: number;
/**
* The ID of the managing account.
*/
merchantId?: string;
method?: string;
/**
* The product to insert. Only required if the method is insert.
*/
product?: Schema$Product;
/**
* The ID of the product to get or delete. Only defined if the method is get
* or delete.
*/
productId?: string;
}
interface Schema$ProductsCustomBatchResponse {
/**
* The result of the execution of the batch requests.
*/
entries?: Schema$ProductsCustomBatchResponseEntry[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#productsCustomBatchResponse".
*/
kind?: string;
}
/**
* A batch entry encoding a single non-batch products response.
*/
interface Schema$ProductsCustomBatchResponseEntry {
/**
* The ID of the request entry this entry responds to.
*/
batchId?: number;
/**
* A list of errors defined if and only if the request failed.
*/
errors?: Schema$Errors;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#productsCustomBatchResponseEntry".
*/
kind?: string;
/**
* The inserted product. Only defined if the method is insert and if the
* request was successful.
*/
product?: Schema$Product;
}
interface Schema$ProductShipping {
/**
* The CLDR territory code of the country to which an item will ship.
*/
country?: string;
/**
* The location where the shipping is applicable, represented by a location
* group name.
*/
locationGroupName?: string;
/**
* The numeric ID of a location that the shipping rate applies to as defined
* in the AdWords API.
*/
locationId?: string;
/**
* The postal code range that the shipping rate applies to, represented by a
* postal code, a postal code prefix followed by a * wildcard, a range
* between two postal codes or two postal code prefixes of equal length.
*/
postalCode?: string;
/**
* Fixed shipping price, represented as a number.
*/
price?: Schema$Price;
/**
* The geographic region to which a shipping rate applies.
*/
region?: string;
/**
* A free-form description of the service class or delivery speed.
*/
service?: string;
}
interface Schema$ProductShippingDimension {
/**
* The unit of value.
*/
unit?: string;
/**
* The dimension of the product used to calculate the shipping cost of the
* item.
*/
value?: number;
}
interface Schema$ProductShippingWeight {
/**
* The unit of value.
*/
unit?: string;
/**
* The weight of the product used to calculate the shipping cost of the
* item.
*/
value?: number;
}
interface Schema$ProductsListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#productsListResponse".
*/
kind?: string;
/**
* The token for the retrieval of the next page of products.
*/
nextPageToken?: string;
resources?: Schema$Product[];
}
/**
* The status of a product, i.e., information about a product computed
* asynchronously.
*/
interface Schema$ProductStatus {
/**
* Date on which the item has been created, in ISO 8601 format.
*/
creationDate?: string;
/**
* The intended destinations for the product.
*/
destinationStatuses?: Schema$ProductStatusDestinationStatus[];
/**
* Date on which the item expires in Google Shopping, in ISO 8601 format.
*/
googleExpirationDate?: string;
/**
* A list of all issues associated with the product.
*/
itemLevelIssues?: Schema$ProductStatusItemLevelIssue[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#productStatus".
*/
kind?: string;
/**
* Date on which the item has been last updated, in ISO 8601 format.
*/
lastUpdateDate?: string;
/**
* The link to the product.
*/
link?: string;
/**
* The ID of the product for which status is reported.
*/
productId?: string;
/**
* The title of the product.
*/
title?: string;
}
interface Schema$ProductStatusDestinationStatus {
/**
* The name of the destination
*/
destination?: string;
status?: string;
}
interface Schema$ProductstatusesCustomBatchRequest {
/**
* The request entries to be processed in the batch.
*/
entries?: Schema$ProductstatusesCustomBatchRequestEntry[];
}
/**
* A batch entry encoding a single non-batch productstatuses request.
*/
interface Schema$ProductstatusesCustomBatchRequestEntry {
/**
* An entry ID, unique within the batch request.
*/
batchId?: number;
/**
* If set, only issues for the specified destinations are returned,
* otherwise only issues for the Shopping destination.
*/
destinations?: string[];
includeAttributes?: boolean;
/**
* The ID of the managing account.
*/
merchantId?: string;
method?: string;
/**
* The ID of the product whose status to get.
*/
productId?: string;
}
interface Schema$ProductstatusesCustomBatchResponse {
/**
* The result of the execution of the batch requests.
*/
entries?: Schema$ProductstatusesCustomBatchResponseEntry[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#productstatusesCustomBatchResponse".
*/
kind?: string;
}
/**
* A batch entry encoding a single non-batch productstatuses response.
*/
interface Schema$ProductstatusesCustomBatchResponseEntry {
/**
* The ID of the request entry this entry responds to.
*/
batchId?: number;
/**
* A list of errors, if the request failed.
*/
errors?: Schema$Errors;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#productstatusesCustomBatchResponseEntry".
*/
kind?: string;
/**
* The requested product status. Only defined if the request was successful.
*/
productStatus?: Schema$ProductStatus;
}
interface Schema$ProductstatusesListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#productstatusesListResponse".
*/
kind?: string;
/**
* The token for the retrieval of the next page of products statuses.
*/
nextPageToken?: string;
resources?: Schema$ProductStatus[];
}
interface Schema$ProductStatusItemLevelIssue {
/**
* The attribute's name, if the issue is caused by a single attribute.
*/
attributeName?: string;
/**
* The error code of the issue.
*/
code?: string;
/**
* A short issue description in English.
*/
description?: string;
/**
* The destination the issue applies to.
*/
destination?: string;
/**
* A detailed issue description in English.
*/
detail?: string;
/**
* The URL of a web page to help with resolving this issue.
*/
documentation?: string;
/**
* Whether the issue can be resolved by the merchant.
*/
resolution?: string;
/**
* How this issue affects serving of the offer.
*/
servability?: string;
}
interface Schema$ProductTax {
/**
* The country within which the item is taxed, specified as a CLDR territory
* code.
*/
country?: string;
/**
* The numeric ID of a location that the tax rate applies to as defined in
* the AdWords API.
*/
locationId?: string;
/**
* The postal code range that the tax rate applies to, represented by a ZIP
* code, a ZIP code prefix using * wildcard, a range between two ZIP codes
* or two ZIP code prefixes of equal length. Examples: 94114, 94*,
* 94002-95460, 94*-95*.
*/
postalCode?: string;
/**
* The percentage of tax rate that applies to the item price.
*/
rate?: number;
/**
* The geographic region to which the tax rate applies.
*/
region?: string;
/**
* Set to true if tax is charged on shipping.
*/
taxShip?: boolean;
}
interface Schema$ProductUnitPricingBaseMeasure {
/**
* The unit of the denominator.
*/
unit?: string;
/**
* The denominator of the unit price.
*/
value?: string;
}
interface Schema$ProductUnitPricingMeasure {
/**
* The unit of the measure.
*/
unit?: string;
/**
* The measure of an item.
*/
value?: number;
}
interface Schema$RateGroup {
/**
* A list of shipping labels defining the products to which this rate group
* applies to. This is a disjunction: only one of the labels has to match
* for the rate group to apply. May only be empty for the last rate group of
* a service. Required.
*/
applicableShippingLabels?: string[];
/**
* A list of carrier rates that can be referred to by mainTable or
* singleValue.
*/
carrierRates?: Schema$CarrierRate[];
/**
* A table defining the rate group, when singleValue is not expressive
* enough. Can only be set if singleValue is not set.
*/
mainTable?: Schema$Table;
/**
* Name of the rate group. Optional. If set has to be unique within shipping
* service.
*/
name?: string;
/**
* The value of the rate group (e.g. flat rate $10). Can only be set if
* mainTable and subtables are not set.
*/
singleValue?: Schema$Value;
/**
* A list of subtables referred to by mainTable. Can only be set if
* mainTable is set.
*/
subtables?: Schema$Table[];
}
interface Schema$RefundReason {
description?: string;
reasonCode?: string;
}
/**
* Regional inventory resource. contains the regional name and all attributes
* which are overridden for the specified region.
*/
interface Schema$RegionalInventory {
/**
* The availability of the product.
*/
availability?: string;
/**
* A list of custom (merchant-provided) attributes. It can also be used for
* submitting any attribute of the feed specification in its generic form.
*/
customAttributes?: Schema$CustomAttribute[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#regionalInventory".
*/
kind?: string;
/**
* The price of the product.
*/
price?: Schema$Price;
/**
* The ID (name) of the region.
*/
regionId?: string;
/**
* The sale price of the product. Mandatory if sale_price_effective_date is
* defined.
*/
salePrice?: Schema$Price;
/**
* A date range represented by a pair of ISO 8601 dates separated by a
* space, comma, or slash. Both dates might be specified as 'null'
* if undecided.
*/
salePriceEffectiveDate?: string;
}
interface Schema$RegionalinventoryCustomBatchRequest {
/**
* The request entries to be processed in the batch.
*/
entries?: Schema$RegionalinventoryCustomBatchRequestEntry[];
}
/**
* A batch entry encoding a single non-batch regional inventory request.
*/
interface Schema$RegionalinventoryCustomBatchRequestEntry {
/**
* An entry ID, unique within the batch request.
*/
batchId?: number;
/**
* The ID of the managing account.
*/
merchantId?: string;
method?: string;
/**
* The ID of the product for which to update price and availability.
*/
productId?: string;
/**
* Price and availability of the product.
*/
regionalInventory?: Schema$RegionalInventory;
}
interface Schema$RegionalinventoryCustomBatchResponse {
/**
* The result of the execution of the batch requests.
*/
entries?: Schema$RegionalinventoryCustomBatchResponseEntry[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#regionalinventoryCustomBatchResponse".
*/
kind?: string;
}
/**
* A batch entry encoding a single non-batch regional inventory response.
*/
interface Schema$RegionalinventoryCustomBatchResponseEntry {
/**
* The ID of the request entry this entry responds to.
*/
batchId?: number;
/**
* A list of errors defined if and only if the request failed.
*/
errors?: Schema$Errors;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#regionalinventoryCustomBatchResponseEntry".
*/
kind?: string;
/**
* Price and availability of the product.
*/
regionalInventory?: Schema$RegionalInventory;
}
interface Schema$ReturnShipment {
creationDate?: string;
deliveryDate?: string;
returnMethodType?: string;
shipmentId?: string;
shipmentTrackingInfos?: Schema$ShipmentTrackingInfo[];
shippingDate?: string;
state?: string;
}
interface Schema$Row {
/**
* The list of cells that constitute the row. Must have the same length as
* columnHeaders for two-dimensional tables, a length of 1 for
* one-dimensional tables. Required.
*/
cells?: Schema$Value[];
}
interface Schema$Service {
/**
* A boolean exposing the active status of the shipping service. Required.
*/
active?: boolean;
/**
* The CLDR code of the currency to which this service applies. Must match
* that of the prices in rate groups.
*/
currency?: string;
/**
* The CLDR territory code of the country to which the service applies.
* Required.
*/
deliveryCountry?: string;
/**
* Time spent in various aspects from order to the delivery of the product.
* Required.
*/
deliveryTime?: Schema$DeliveryTime;
/**
* Eligibility for this service.
*/
eligibility?: string;
/**
* Minimum order value for this service. If set, indicates that customers
* will have to spend at least this amount. All prices within a service must
* have the same currency.
*/
minimumOrderValue?: Schema$Price;
/**
* Free-form name of the service. Must be unique within target account.
* Required.
*/
name?: string;
/**
* Shipping rate group definitions. Only the last one is allowed to have an
* empty applicableShippingLabels, which means "everything else".
* The other applicableShippingLabels must not overlap.
*/
rateGroups?: Schema$RateGroup[];
}
interface Schema$ShipmentInvoice {
/**
* [required] Invoice summary.
*/
invoiceSummary?: Schema$InvoiceSummary;
/**
* [required] Invoice details per line item.
*/
lineItemInvoices?: Schema$ShipmentInvoiceLineItemInvoice[];
/**
* [required] ID of the shipment group. It is assigned by the merchant in
* the shipLineItems method and is used to group multiple line items that
* have the same kind of shipping charges.
*/
shipmentGroupId?: string;
}
interface Schema$ShipmentInvoiceLineItemInvoice {
/**
* ID of the line item. Either lineItemId or productId must be set.
*/
lineItemId?: string;
/**
* ID of the product. This is the REST ID used in the products service.
* Either lineItemId or productId must be set.
*/
productId?: string;
/**
* [required] The shipment unit ID is assigned by the merchant and defines
* individual quantities within a line item. The same ID can be assigned to
* units that are the same while units that differ must be assigned a
* different ID (for example: free or promotional units).
*/
shipmentUnitIds?: string[];
/**
* [required] Invoice details for a single unit.
*/
unitInvoice?: Schema$UnitInvoice;
}
interface Schema$ShipmentTrackingInfo {
carrier?: string;
trackingNumber?: string;
}
/**
* The merchant account's shipping settings. All methods except
* getsupportedcarriers and getsupportedholidays require the admin role.
*/
interface Schema$ShippingSettings {
/**
* The ID of the account to which these account shipping settings belong.
* Ignored upon update, always present in get request responses.
*/
accountId?: string;
/**
* A list of postal code groups that can be referred to in services.
* Optional.
*/
postalCodeGroups?: Schema$PostalCodeGroup[];
/**
* The target account's list of services. Optional.
*/
services?: Schema$Service[];
}
interface Schema$ShippingsettingsCustomBatchRequest {
/**
* The request entries to be processed in the batch.
*/
entries?: Schema$ShippingsettingsCustomBatchRequestEntry[];
}
/**
* A batch entry encoding a single non-batch shippingsettings request.
*/
interface Schema$ShippingsettingsCustomBatchRequestEntry {
/**
* The ID of the account for which to get/update account shipping settings.
*/
accountId?: string;
/**
* An entry ID, unique within the batch request.
*/
batchId?: number;
/**
* The ID of the managing account.
*/
merchantId?: string;
method?: string;
/**
* The account shipping settings to update. Only defined if the method is
* update.
*/
shippingSettings?: Schema$ShippingSettings;
}
interface Schema$ShippingsettingsCustomBatchResponse {
/**
* The result of the execution of the batch requests.
*/
entries?: Schema$ShippingsettingsCustomBatchResponseEntry[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#shippingsettingsCustomBatchResponse".
*/
kind?: string;
}
/**
* A batch entry encoding a single non-batch shipping settings response.
*/
interface Schema$ShippingsettingsCustomBatchResponseEntry {
/**
* The ID of the request entry to which this entry responds.
*/
batchId?: number;
/**
* A list of errors defined if, and only if, the request failed.
*/
errors?: Schema$Errors;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#shippingsettingsCustomBatchResponseEntry".
*/
kind?: string;
/**
* The retrieved or updated account shipping settings.
*/
shippingSettings?: Schema$ShippingSettings;
}
interface Schema$ShippingsettingsGetSupportedCarriersResponse {
/**
* A list of supported carriers. May be empty.
*/
carriers?: Schema$CarriersCarrier[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#shippingsettingsGetSupportedCarriersResponse".
*/
kind?: string;
}
interface Schema$ShippingsettingsGetSupportedHolidaysResponse {
/**
* A list of holidays applicable for delivery guarantees. May be empty.
*/
holidays?: Schema$HolidaysHoliday[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#shippingsettingsGetSupportedHolidaysResponse".
*/
kind?: string;
}
interface Schema$ShippingsettingsListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#shippingsettingsListResponse".
*/
kind?: string;
/**
* The token for the retrieval of the next page of shipping settings.
*/
nextPageToken?: string;
resources?: Schema$ShippingSettings[];
}
interface Schema$Table {
/**
* Headers of the table's columns. Optional: if not set then the table
* has only one dimension.
*/
columnHeaders?: Schema$Headers;
/**
* Name of the table. Required for subtables, ignored for the main table.
*/
name?: string;
/**
* Headers of the table's rows. Required.
*/
rowHeaders?: Schema$Headers;
/**
* The list of rows that constitute the table. Must have the same length as
* rowHeaders. Required.
*/
rows?: Schema$Row[];
}
interface Schema$TestOrder {
/**
* Whether the orderinvoices service should support this order.
*/
enableOrderinvoices?: boolean;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "content#testOrder".
*/
kind?: string;
/**
* Line items that are ordered. At least one line item must be provided.
*/
lineItems?: Schema$TestOrderLineItem[];
/**
* Determines if test order must be pulled by merchant or pushed to merchant
* via push integration.
*/
notificationMode?: string;
/**
* The billing address.
*/
predefinedBillingAddress?: string;
/**
* Identifier of one of the predefined delivery addresses for the delivery.
*/
predefinedDeliveryAddress?: string;
/**
* Email address of the customer.
*/
predefinedEmail?: string;
/**
* Promotions associated with the order.
*/
promotions?: Schema$OrderPromotion[];
/**
* The price of shipping for all items. Shipping tax is automatically
* calculated for MFL orders. For non-MFL orders, tax settings from Merchant
* Center are applied. Note that shipping is not taxed in certain states.
*/
shippingCost?: Schema$Price;
/**
* The requested shipping option.
*/
shippingOption?: string;
}
interface Schema$TestOrderLineItem {
/**
* Product data from the time of the order placement.
*/
product?: Schema$TestOrderLineItemProduct;
/**
* Number of items ordered.
*/
quantityOrdered?: number;
/**
* Details of the return policy for the line item.
*/
returnInfo?: Schema$OrderLineItemReturnInfo;
/**
* Details of the requested shipping for the line item.
*/
shippingDetails?: Schema$OrderLineItemShippingDetails;
}
interface Schema$TestOrderLineItemProduct {
/**
* Brand of the item.
*/
brand?: string;
/**
* Condition or state of the item.
*/
condition?: string;
/**
* The two-letter ISO 639-1 language code for the item.
*/
contentLanguage?: string;
/**
* Global Trade Item Number (GTIN) of the item. Optional.
*/
gtin?: string;
/**
* URL of an image of the item.
*/
imageLink?: string;
/**
* Shared identifier for all variants of the same product. Optional.
*/
itemGroupId?: string;
/**
* Manufacturer Part Number (MPN) of the item. Optional.
*/
mpn?: string;
/**
* An identifier of the item.
*/
offerId?: string;
/**
* The price for the product. Tax is automatically calculated for MFL
* orders. For non-MFL orders, tax settings from Merchant Center are
* applied.
*/
price?: Schema$Price;
/**
* The CLDR territory code of the target country of the product.
*/
targetCountry?: string;
/**
* The title of the product.
*/
title?: string;
/**
* Variant attributes for the item. Optional.
*/
variantAttributes?: Schema$OrderLineItemProductVariantAttribute[];
}
interface Schema$TransitTable {
/**
* A list of postal group names. The last value can be "all other
* locations". Example: ["zone 1", "zone 2",
* "all other locations"]. The referred postal code groups must
* match the delivery country of the service.
*/
postalCodeGroupNames?: string[];
rows?: Schema$TransitTableTransitTimeRow[];
/**
* A list of transit time labels. The last value can be "all other
* labels". Example: ["food", "electronics",
* "all other labels"].
*/
transitTimeLabels?: string[];
}
interface Schema$TransitTableTransitTimeRow {
values?: Schema$TransitTableTransitTimeRowTransitTimeValue[];
}
interface Schema$TransitTableTransitTimeRowTransitTimeValue {
/**
* Must be greater than or equal to minTransitTimeInDays.
*/
maxTransitTimeInDays?: number;
/**
* Transit time range (min-max) in business days. 0 means same day delivery,
* 1 means next day delivery.
*/
minTransitTimeInDays?: number;
}
interface Schema$UnitInvoice {
/**
* Additional charges for a unit, e.g. shipping costs.
*/
additionalCharges?: Schema$UnitInvoiceAdditionalCharge[];
/**
* [required] Pre-tax or post-tax price of the unit depending on the
* locality of the order.
*/
unitPrice?: Schema$Price;
/**
* Tax amounts to apply to the unit price.
*/
unitPriceTaxes?: Schema$UnitInvoiceTaxLine[];
}
interface Schema$UnitInvoiceAdditionalCharge {
/**
* [required] Amount of the additional charge.
*/
additionalChargeAmount?: Schema$Amount;
/**
* [required] Type of the additional charge.
*/
type?: string;
}
interface Schema$UnitInvoiceTaxLine {
/**
* [required] Tax amount for the tax type.
*/
taxAmount?: Schema$Price;
/**
* Optional name of the tax type. This should only be provided if taxType is
* otherFeeTax.
*/
taxName?: string;
/**
* [required] Type of the tax.
*/
taxType?: string;
}
/**
* The single value of a rate group or the value of a rate group table's
* cell. Exactly one of noShipping, flatRate, pricePercentage,
* carrierRateName, subtableName must be set.
*/
interface Schema$Value {
/**
* The name of a carrier rate referring to a carrier rate defined in the
* same rate group. Can only be set if all other fields are not set.
*/
carrierRateName?: string;
/**
* A flat rate. Can only be set if all other fields are not set.
*/
flatRate?: Schema$Price;
/**
* If true, then the product can't ship. Must be true when set, can only
* be set if all other fields are not set.
*/
noShipping?: boolean;
/**
* A percentage of the price represented as a number in decimal notation
* (e.g., "5.4"). Can only be set if all other fields are not set.
*/
pricePercentage?: string;
/**
* The name of a subtable. Can only be set in table cells (i.e., not for
* single values), and only if all other fields are not set.
*/
subtableName?: string;
}
interface Schema$Weight {
/**
* The weight unit.
*/
unit?: string;
/**
* The weight represented as a number.
*/
value?: string;
}
class Resource$Accounts {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* content.accounts.authinfo
* @desc Returns information about the authenticated user.
* @alias content.accounts.authinfo
* @memberOf! ()
*
* @param {object=} params Parameters for request
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
authinfo(params?: Params$Resource$Accounts$Authinfo, options?: MethodOptions): GaxiosPromise<Schema$AccountsAuthInfoResponse>;
authinfo(params: Params$Resource$Accounts$Authinfo, options: MethodOptions | BodyResponseCallback<Schema$AccountsAuthInfoResponse>, callback: BodyResponseCallback<Schema$AccountsAuthInfoResponse>): void;
authinfo(params: Params$Resource$Accounts$Authinfo, callback: BodyResponseCallback<Schema$AccountsAuthInfoResponse>): void;
authinfo(callback: BodyResponseCallback<Schema$AccountsAuthInfoResponse>): void;
/**
* content.accounts.claimwebsite
* @desc Claims the website of a Merchant Center sub-account.
* @alias content.accounts.claimwebsite
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account whose website is claimed.
* @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
* @param {boolean=} params.overwrite Only available to selected merchants. When set to True, this flag removes any existing claim on the requested website by another account and replaces it with a claim from this account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
claimwebsite(params?: Params$Resource$Accounts$Claimwebsite, options?: MethodOptions): GaxiosPromise<Schema$AccountsClaimWebsiteResponse>;
claimwebsite(params: Params$Resource$Accounts$Claimwebsite, options: MethodOptions | BodyResponseCallback<Schema$AccountsClaimWebsiteResponse>, callback: BodyResponseCallback<Schema$AccountsClaimWebsiteResponse>): void;
claimwebsite(params: Params$Resource$Accounts$Claimwebsite, callback: BodyResponseCallback<Schema$AccountsClaimWebsiteResponse>): void;
claimwebsite(callback: BodyResponseCallback<Schema$AccountsClaimWebsiteResponse>): void;
/**
* content.accounts.custombatch
* @desc Retrieves, inserts, updates, and deletes multiple Merchant Center
* (sub-)accounts in a single request.
* @alias content.accounts.custombatch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {().AccountsCustomBatchRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
custombatch(params?: Params$Resource$Accounts$Custombatch, options?: MethodOptions): GaxiosPromise<Schema$AccountsCustomBatchResponse>;
custombatch(params: Params$Resource$Accounts$Custombatch, options: MethodOptions | BodyResponseCallback<Schema$AccountsCustomBatchResponse>, callback: BodyResponseCallback<Schema$AccountsCustomBatchResponse>): void;
custombatch(params: Params$Resource$Accounts$Custombatch, callback: BodyResponseCallback<Schema$AccountsCustomBatchResponse>): void;
custombatch(callback: BodyResponseCallback<Schema$AccountsCustomBatchResponse>): void;
/**
* content.accounts.delete
* @desc Deletes a Merchant Center sub-account.
* @alias content.accounts.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account.
* @param {boolean=} params.force Flag to delete sub-accounts with products. The default value is false.
* @param {string} params.merchantId The ID of the managing account. This must be a multi-client account, and accountId must be the ID of a sub-account of this account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Accounts$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Accounts$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Accounts$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* content.accounts.get
* @desc Retrieves a Merchant Center account.
* @alias content.accounts.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account.
* @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Accounts$Get, options?: MethodOptions): GaxiosPromise<Schema$Account>;
get(params: Params$Resource$Accounts$Get, options: MethodOptions | BodyResponseCallback<Schema$Account>, callback: BodyResponseCallback<Schema$Account>): void;
get(params: Params$Resource$Accounts$Get, callback: BodyResponseCallback<Schema$Account>): void;
get(callback: BodyResponseCallback<Schema$Account>): void;
/**
* content.accounts.insert
* @desc Creates a Merchant Center sub-account.
* @alias content.accounts.insert
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the managing account. This must be a multi-client account.
* @param {().Account} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
insert(params?: Params$Resource$Accounts$Insert, options?: MethodOptions): GaxiosPromise<Schema$Account>;
insert(params: Params$Resource$Accounts$Insert, options: MethodOptions | BodyResponseCallback<Schema$Account>, callback: BodyResponseCallback<Schema$Account>): void;
insert(params: Params$Resource$Accounts$Insert, callback: BodyResponseCallback<Schema$Account>): void;
insert(callback: BodyResponseCallback<Schema$Account>): void;
/**
* content.accounts.link
* @desc Performs an action on a link between a Merchant Center account and
* another account.
* @alias content.accounts.link
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account that should be linked.
* @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
* @param {().AccountsLinkRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
link(params?: Params$Resource$Accounts$Link, options?: MethodOptions): GaxiosPromise<Schema$AccountsLinkResponse>;
link(params: Params$Resource$Accounts$Link, options: MethodOptions | BodyResponseCallback<Schema$AccountsLinkResponse>, callback: BodyResponseCallback<Schema$AccountsLinkResponse>): void;
link(params: Params$Resource$Accounts$Link, callback: BodyResponseCallback<Schema$AccountsLinkResponse>): void;
link(callback: BodyResponseCallback<Schema$AccountsLinkResponse>): void;
/**
* content.accounts.list
* @desc Lists the sub-accounts in your Merchant Center account.
* @alias content.accounts.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer=} params.maxResults The maximum number of accounts to return in the response, used for paging.
* @param {string} params.merchantId The ID of the managing account. This must be a multi-client account.
* @param {string=} params.pageToken The token returned by the previous request.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Accounts$List, options?: MethodOptions): GaxiosPromise<Schema$AccountsListResponse>;
list(params: Params$Resource$Accounts$List, options: MethodOptions | BodyResponseCallback<Schema$AccountsListResponse>, callback: BodyResponseCallback<Schema$AccountsListResponse>): void;
list(params: Params$Resource$Accounts$List, callback: BodyResponseCallback<Schema$AccountsListResponse>): void;
list(callback: BodyResponseCallback<Schema$AccountsListResponse>): void;
/**
* content.accounts.update
* @desc Updates a Merchant Center account.
* @alias content.accounts.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account.
* @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
* @param {().Account} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Accounts$Update, options?: MethodOptions): GaxiosPromise<Schema$Account>;
update(params: Params$Resource$Accounts$Update, options: MethodOptions | BodyResponseCallback<Schema$Account>, callback: BodyResponseCallback<Schema$Account>): void;
update(params: Params$Resource$Accounts$Update, callback: BodyResponseCallback<Schema$Account>): void;
update(callback: BodyResponseCallback<Schema$Account>): void;
}
interface Params$Resource$Accounts$Authinfo extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
}
interface Params$Resource$Accounts$Claimwebsite extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account whose website is claimed.
*/
accountId?: string;
/**
* The ID of the managing account. If this parameter is not the same as
* accountId, then this account must be a multi-client account and accountId
* must be the ID of a sub-account of this account.
*/
merchantId?: string;
/**
* Only available to selected merchants. When set to True, this flag removes
* any existing claim on the requested website by another account and
* replaces it with a claim from this account.
*/
overwrite?: boolean;
}
interface Params$Resource$Accounts$Custombatch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Request body metadata
*/
requestBody?: Schema$AccountsCustomBatchRequest;
}
interface Params$Resource$Accounts$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account.
*/
accountId?: string;
/**
* Flag to delete sub-accounts with products. The default value is false.
*/
force?: boolean;
/**
* The ID of the managing account. This must be a multi-client account, and
* accountId must be the ID of a sub-account of this account.
*/
merchantId?: string;
}
interface Params$Resource$Accounts$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account.
*/
accountId?: string;
/**
* The ID of the managing account. If this parameter is not the same as
* accountId, then this account must be a multi-client account and accountId
* must be the ID of a sub-account of this account.
*/
merchantId?: string;
}
interface Params$Resource$Accounts$Insert extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the managing account. This must be a multi-client account.
*/
merchantId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Account;
}
interface Params$Resource$Accounts$Link extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that should be linked.
*/
accountId?: string;
/**
* The ID of the managing account. If this parameter is not the same as
* accountId, then this account must be a multi-client account and accountId
* must be the ID of a sub-account of this account.
*/
merchantId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$AccountsLinkRequest;
}
interface Params$Resource$Accounts$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The maximum number of accounts to return in the response, used for
* paging.
*/
maxResults?: number;
/**
* The ID of the managing account. This must be a multi-client account.
*/
merchantId?: string;
/**
* The token returned by the previous request.
*/
pageToken?: string;
}
interface Params$Resource$Accounts$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account.
*/
accountId?: string;
/**
* The ID of the managing account. If this parameter is not the same as
* accountId, then this account must be a multi-client account and accountId
* must be the ID of a sub-account of this account.
*/
merchantId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Account;
}
class Resource$Accountstatuses {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* content.accountstatuses.custombatch
* @desc Retrieves multiple Merchant Center account statuses in a single
* request.
* @alias content.accountstatuses.custombatch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {().AccountstatusesCustomBatchRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
custombatch(params?: Params$Resource$Accountstatuses$Custombatch, options?: MethodOptions): GaxiosPromise<Schema$AccountstatusesCustomBatchResponse>;
custombatch(params: Params$Resource$Accountstatuses$Custombatch, options: MethodOptions | BodyResponseCallback<Schema$AccountstatusesCustomBatchResponse>, callback: BodyResponseCallback<Schema$AccountstatusesCustomBatchResponse>): void;
custombatch(params: Params$Resource$Accountstatuses$Custombatch, callback: BodyResponseCallback<Schema$AccountstatusesCustomBatchResponse>): void;
custombatch(callback: BodyResponseCallback<Schema$AccountstatusesCustomBatchResponse>): void;
/**
* content.accountstatuses.get
* @desc Retrieves the status of a Merchant Center account. No
* itemLevelIssues are returned for multi-client accounts.
* @alias content.accountstatuses.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account.
* @param {string=} params.destinations If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.
* @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Accountstatuses$Get, options?: MethodOptions): GaxiosPromise<Schema$AccountStatus>;
get(params: Params$Resource$Accountstatuses$Get, options: MethodOptions | BodyResponseCallback<Schema$AccountStatus>, callback: BodyResponseCallback<Schema$AccountStatus>): void;
get(params: Params$Resource$Accountstatuses$Get, callback: BodyResponseCallback<Schema$AccountStatus>): void;
get(callback: BodyResponseCallback<Schema$AccountStatus>): void;
/**
* content.accountstatuses.list
* @desc Lists the statuses of the sub-accounts in your Merchant Center
* account.
* @alias content.accountstatuses.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string=} params.destinations If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.
* @param {integer=} params.maxResults The maximum number of account statuses to return in the response, used for paging.
* @param {string} params.merchantId The ID of the managing account. This must be a multi-client account.
* @param {string=} params.pageToken The token returned by the previous request.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Accountstatuses$List, options?: MethodOptions): GaxiosPromise<Schema$AccountstatusesListResponse>;
list(params: Params$Resource$Accountstatuses$List, options: MethodOptions | BodyResponseCallback<Schema$AccountstatusesListResponse>, callback: BodyResponseCallback<Schema$AccountstatusesListResponse>): void;
list(params: Params$Resource$Accountstatuses$List, callback: BodyResponseCallback<Schema$AccountstatusesListResponse>): void;
list(callback: BodyResponseCallback<Schema$AccountstatusesListResponse>): void;
}
interface Params$Resource$Accountstatuses$Custombatch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Request body metadata
*/
requestBody?: Schema$AccountstatusesCustomBatchRequest;
}
interface Params$Resource$Accountstatuses$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account.
*/
accountId?: string;
/**
* If set, only issues for the specified destinations are returned,
* otherwise only issues for the Shopping destination.
*/
destinations?: string[];
/**
* The ID of the managing account. If this parameter is not the same as
* accountId, then this account must be a multi-client account and accountId
* must be the ID of a sub-account of this account.
*/
merchantId?: string;
}
interface Params$Resource$Accountstatuses$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* If set, only issues for the specified destinations are returned,
* otherwise only issues for the Shopping destination.
*/
destinations?: string[];
/**
* The maximum number of account statuses to return in the response, used
* for paging.
*/
maxResults?: number;
/**
* The ID of the managing account. This must be a multi-client account.
*/
merchantId?: string;
/**
* The token returned by the previous request.
*/
pageToken?: string;
}
class Resource$Accounttax {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* content.accounttax.custombatch
* @desc Retrieves and updates tax settings of multiple accounts in a single
* request.
* @alias content.accounttax.custombatch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {().AccounttaxCustomBatchRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
custombatch(params?: Params$Resource$Accounttax$Custombatch, options?: MethodOptions): GaxiosPromise<Schema$AccounttaxCustomBatchResponse>;
custombatch(params: Params$Resource$Accounttax$Custombatch, options: MethodOptions | BodyResponseCallback<Schema$AccounttaxCustomBatchResponse>, callback: BodyResponseCallback<Schema$AccounttaxCustomBatchResponse>): void;
custombatch(params: Params$Resource$Accounttax$Custombatch, callback: BodyResponseCallback<Schema$AccounttaxCustomBatchResponse>): void;
custombatch(callback: BodyResponseCallback<Schema$AccounttaxCustomBatchResponse>): void;
/**
* content.accounttax.get
* @desc Retrieves the tax settings of the account.
* @alias content.accounttax.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account for which to get/update account tax settings.
* @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Accounttax$Get, options?: MethodOptions): GaxiosPromise<Schema$AccountTax>;
get(params: Params$Resource$Accounttax$Get, options: MethodOptions | BodyResponseCallback<Schema$AccountTax>, callback: BodyResponseCallback<Schema$AccountTax>): void;
get(params: Params$Resource$Accounttax$Get, callback: BodyResponseCallback<Schema$AccountTax>): void;
get(callback: BodyResponseCallback<Schema$AccountTax>): void;
/**
* content.accounttax.list
* @desc Lists the tax settings of the sub-accounts in your Merchant Center
* account.
* @alias content.accounttax.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer=} params.maxResults The maximum number of tax settings to return in the response, used for paging.
* @param {string} params.merchantId The ID of the managing account. This must be a multi-client account.
* @param {string=} params.pageToken The token returned by the previous request.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Accounttax$List, options?: MethodOptions): GaxiosPromise<Schema$AccounttaxListResponse>;
list(params: Params$Resource$Accounttax$List, options: MethodOptions | BodyResponseCallback<Schema$AccounttaxListResponse>, callback: BodyResponseCallback<Schema$AccounttaxListResponse>): void;
list(params: Params$Resource$Accounttax$List, callback: BodyResponseCallback<Schema$AccounttaxListResponse>): void;
list(callback: BodyResponseCallback<Schema$AccounttaxListResponse>): void;
/**
* content.accounttax.update
* @desc Updates the tax settings of the account.
* @alias content.accounttax.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account for which to get/update account tax settings.
* @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
* @param {().AccountTax} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Accounttax$Update, options?: MethodOptions): GaxiosPromise<Schema$AccountTax>;
update(params: Params$Resource$Accounttax$Update, options: MethodOptions | BodyResponseCallback<Schema$AccountTax>, callback: BodyResponseCallback<Schema$AccountTax>): void;
update(params: Params$Resource$Accounttax$Update, callback: BodyResponseCallback<Schema$AccountTax>): void;
update(callback: BodyResponseCallback<Schema$AccountTax>): void;
}
interface Params$Resource$Accounttax$Custombatch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Request body metadata
*/
requestBody?: Schema$AccounttaxCustomBatchRequest;
}
interface Params$Resource$Accounttax$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account for which to get/update account tax settings.
*/
accountId?: string;
/**
* The ID of the managing account. If this parameter is not the same as
* accountId, then this account must be a multi-client account and accountId
* must be the ID of a sub-account of this account.
*/
merchantId?: string;
}
interface Params$Resource$Accounttax$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The maximum number of tax settings to return in the response, used for
* paging.
*/
maxResults?: number;
/**
* The ID of the managing account. This must be a multi-client account.
*/
merchantId?: string;
/**
* The token returned by the previous request.
*/
pageToken?: string;
}
interface Params$Resource$Accounttax$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account for which to get/update account tax settings.
*/
accountId?: string;
/**
* The ID of the managing account. If this parameter is not the same as
* accountId, then this account must be a multi-client account and accountId
* must be the ID of a sub-account of this account.
*/
merchantId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$AccountTax;
}
class Resource$Datafeeds {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* content.datafeeds.custombatch
* @desc Deletes, fetches, gets, inserts and updates multiple datafeeds in a
* single request.
* @alias content.datafeeds.custombatch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {().DatafeedsCustomBatchRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
custombatch(params?: Params$Resource$Datafeeds$Custombatch, options?: MethodOptions): GaxiosPromise<Schema$DatafeedsCustomBatchResponse>;
custombatch(params: Params$Resource$Datafeeds$Custombatch, options: MethodOptions | BodyResponseCallback<Schema$DatafeedsCustomBatchResponse>, callback: BodyResponseCallback<Schema$DatafeedsCustomBatchResponse>): void;
custombatch(params: Params$Resource$Datafeeds$Custombatch, callback: BodyResponseCallback<Schema$DatafeedsCustomBatchResponse>): void;
custombatch(callback: BodyResponseCallback<Schema$DatafeedsCustomBatchResponse>): void;
/**
* content.datafeeds.delete
* @desc Deletes a datafeed configuration from your Merchant Center account.
* @alias content.datafeeds.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.datafeedId The ID of the datafeed.
* @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Datafeeds$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Datafeeds$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Datafeeds$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* content.datafeeds.fetchnow
* @desc Invokes a fetch for the datafeed in your Merchant Center account.
* @alias content.datafeeds.fetchnow
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.datafeedId The ID of the datafeed to be fetched.
* @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
fetchnow(params?: Params$Resource$Datafeeds$Fetchnow, options?: MethodOptions): GaxiosPromise<Schema$DatafeedsFetchNowResponse>;
fetchnow(params: Params$Resource$Datafeeds$Fetchnow, options: MethodOptions | BodyResponseCallback<Schema$DatafeedsFetchNowResponse>, callback: BodyResponseCallback<Schema$DatafeedsFetchNowResponse>): void;
fetchnow(params: Params$Resource$Datafeeds$Fetchnow, callback: BodyResponseCallback<Schema$DatafeedsFetchNowResponse>): void;
fetchnow(callback: BodyResponseCallback<Schema$DatafeedsFetchNowResponse>): void;
/**
* content.datafeeds.get
* @desc Retrieves a datafeed configuration from your Merchant Center
* account.
* @alias content.datafeeds.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.datafeedId The ID of the datafeed.
* @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Datafeeds$Get, options?: MethodOptions): GaxiosPromise<Schema$Datafeed>;
get(params: Params$Resource$Datafeeds$Get, options: MethodOptions | BodyResponseCallback<Schema$Datafeed>, callback: BodyResponseCallback<Schema$Datafeed>): void;
get(params: Params$Resource$Datafeeds$Get, callback: BodyResponseCallback<Schema$Datafeed>): void;
get(callback: BodyResponseCallback<Schema$Datafeed>): void;
/**
* content.datafeeds.insert
* @desc Registers a datafeed configuration with your Merchant Center
* account.
* @alias content.datafeeds.insert
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account.
* @param {().Datafeed} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
insert(params?: Params$Resource$Datafeeds$Insert, options?: MethodOptions): GaxiosPromise<Schema$Datafeed>;
insert(params: Params$Resource$Datafeeds$Insert, options: MethodOptions | BodyResponseCallback<Schema$Datafeed>, callback: BodyResponseCallback<Schema$Datafeed>): void;
insert(params: Params$Resource$Datafeeds$Insert, callback: BodyResponseCallback<Schema$Datafeed>): void;
insert(callback: BodyResponseCallback<Schema$Datafeed>): void;
/**
* content.datafeeds.list
* @desc Lists the configurations for datafeeds in your Merchant Center
* account.
* @alias content.datafeeds.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer=} params.maxResults The maximum number of products to return in the response, used for paging.
* @param {string} params.merchantId The ID of the account that manages the datafeeds. This account cannot be a multi-client account.
* @param {string=} params.pageToken The token returned by the previous request.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Datafeeds$List, options?: MethodOptions): GaxiosPromise<Schema$DatafeedsListResponse>;
list(params: Params$Resource$Datafeeds$List, options: MethodOptions | BodyResponseCallback<Schema$DatafeedsListResponse>, callback: BodyResponseCallback<Schema$DatafeedsListResponse>): void;
list(params: Params$Resource$Datafeeds$List, callback: BodyResponseCallback<Schema$DatafeedsListResponse>): void;
list(callback: BodyResponseCallback<Schema$DatafeedsListResponse>): void;
/**
* content.datafeeds.update
* @desc Updates a datafeed configuration of your Merchant Center account.
* @alias content.datafeeds.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.datafeedId The ID of the datafeed.
* @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account.
* @param {().Datafeed} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Datafeeds$Update, options?: MethodOptions): GaxiosPromise<Schema$Datafeed>;
update(params: Params$Resource$Datafeeds$Update, options: MethodOptions | BodyResponseCallback<Schema$Datafeed>, callback: BodyResponseCallback<Schema$Datafeed>): void;
update(params: Params$Resource$Datafeeds$Update, callback: BodyResponseCallback<Schema$Datafeed>): void;
update(callback: BodyResponseCallback<Schema$Datafeed>): void;
}
interface Params$Resource$Datafeeds$Custombatch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Request body metadata
*/
requestBody?: Schema$DatafeedsCustomBatchRequest;
}
interface Params$Resource$Datafeeds$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the datafeed.
*/
datafeedId?: string;
/**
* The ID of the account that manages the datafeed. This account cannot be a
* multi-client account.
*/
merchantId?: string;
}
interface Params$Resource$Datafeeds$Fetchnow extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the datafeed to be fetched.
*/
datafeedId?: string;
/**
* The ID of the account that manages the datafeed. This account cannot be a
* multi-client account.
*/
merchantId?: string;
}
interface Params$Resource$Datafeeds$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the datafeed.
*/
datafeedId?: string;
/**
* The ID of the account that manages the datafeed. This account cannot be a
* multi-client account.
*/
merchantId?: string;
}
interface Params$Resource$Datafeeds$Insert extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the datafeed. This account cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Datafeed;
}
interface Params$Resource$Datafeeds$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The maximum number of products to return in the response, used for
* paging.
*/
maxResults?: number;
/**
* The ID of the account that manages the datafeeds. This account cannot be
* a multi-client account.
*/
merchantId?: string;
/**
* The token returned by the previous request.
*/
pageToken?: string;
}
interface Params$Resource$Datafeeds$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the datafeed.
*/
datafeedId?: string;
/**
* The ID of the account that manages the datafeed. This account cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Datafeed;
}
class Resource$Datafeedstatuses {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* content.datafeedstatuses.custombatch
* @desc Gets multiple Merchant Center datafeed statuses in a single
* request.
* @alias content.datafeedstatuses.custombatch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {().DatafeedstatusesCustomBatchRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
custombatch(params?: Params$Resource$Datafeedstatuses$Custombatch, options?: MethodOptions): GaxiosPromise<Schema$DatafeedstatusesCustomBatchResponse>;
custombatch(params: Params$Resource$Datafeedstatuses$Custombatch, options: MethodOptions | BodyResponseCallback<Schema$DatafeedstatusesCustomBatchResponse>, callback: BodyResponseCallback<Schema$DatafeedstatusesCustomBatchResponse>): void;
custombatch(params: Params$Resource$Datafeedstatuses$Custombatch, callback: BodyResponseCallback<Schema$DatafeedstatusesCustomBatchResponse>): void;
custombatch(callback: BodyResponseCallback<Schema$DatafeedstatusesCustomBatchResponse>): void;
/**
* content.datafeedstatuses.get
* @desc Retrieves the status of a datafeed from your Merchant Center
* account.
* @alias content.datafeedstatuses.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string=} params.country The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target.
* @param {string} params.datafeedId The ID of the datafeed.
* @param {string=} params.language The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target.
* @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Datafeedstatuses$Get, options?: MethodOptions): GaxiosPromise<Schema$DatafeedStatus>;
get(params: Params$Resource$Datafeedstatuses$Get, options: MethodOptions | BodyResponseCallback<Schema$DatafeedStatus>, callback: BodyResponseCallback<Schema$DatafeedStatus>): void;
get(params: Params$Resource$Datafeedstatuses$Get, callback: BodyResponseCallback<Schema$DatafeedStatus>): void;
get(callback: BodyResponseCallback<Schema$DatafeedStatus>): void;
/**
* content.datafeedstatuses.list
* @desc Lists the statuses of the datafeeds in your Merchant Center
* account.
* @alias content.datafeedstatuses.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer=} params.maxResults The maximum number of products to return in the response, used for paging.
* @param {string} params.merchantId The ID of the account that manages the datafeeds. This account cannot be a multi-client account.
* @param {string=} params.pageToken The token returned by the previous request.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Datafeedstatuses$List, options?: MethodOptions): GaxiosPromise<Schema$DatafeedstatusesListResponse>;
list(params: Params$Resource$Datafeedstatuses$List, options: MethodOptions | BodyResponseCallback<Schema$DatafeedstatusesListResponse>, callback: BodyResponseCallback<Schema$DatafeedstatusesListResponse>): void;
list(params: Params$Resource$Datafeedstatuses$List, callback: BodyResponseCallback<Schema$DatafeedstatusesListResponse>): void;
list(callback: BodyResponseCallback<Schema$DatafeedstatusesListResponse>): void;
}
interface Params$Resource$Datafeedstatuses$Custombatch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Request body metadata
*/
requestBody?: Schema$DatafeedstatusesCustomBatchRequest;
}
interface Params$Resource$Datafeedstatuses$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The country for which to get the datafeed status. If this parameter is
* provided then language must also be provided. Note that this parameter is
* required for feeds targeting multiple countries and languages, since a
* feed may have a different status for each target.
*/
country?: string;
/**
* The ID of the datafeed.
*/
datafeedId?: string;
/**
* The language for which to get the datafeed status. If this parameter is
* provided then country must also be provided. Note that this parameter is
* required for feeds targeting multiple countries and languages, since a
* feed may have a different status for each target.
*/
language?: string;
/**
* The ID of the account that manages the datafeed. This account cannot be a
* multi-client account.
*/
merchantId?: string;
}
interface Params$Resource$Datafeedstatuses$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The maximum number of products to return in the response, used for
* paging.
*/
maxResults?: number;
/**
* The ID of the account that manages the datafeeds. This account cannot be
* a multi-client account.
*/
merchantId?: string;
/**
* The token returned by the previous request.
*/
pageToken?: string;
}
class Resource$Liasettings {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* content.liasettings.custombatch
* @desc Retrieves and/or updates the LIA settings of multiple accounts in a
* single request.
* @alias content.liasettings.custombatch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {().LiasettingsCustomBatchRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
custombatch(params?: Params$Resource$Liasettings$Custombatch, options?: MethodOptions): GaxiosPromise<Schema$LiasettingsCustomBatchResponse>;
custombatch(params: Params$Resource$Liasettings$Custombatch, options: MethodOptions | BodyResponseCallback<Schema$LiasettingsCustomBatchResponse>, callback: BodyResponseCallback<Schema$LiasettingsCustomBatchResponse>): void;
custombatch(params: Params$Resource$Liasettings$Custombatch, callback: BodyResponseCallback<Schema$LiasettingsCustomBatchResponse>): void;
custombatch(callback: BodyResponseCallback<Schema$LiasettingsCustomBatchResponse>): void;
/**
* content.liasettings.get
* @desc Retrieves the LIA settings of the account.
* @alias content.liasettings.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account for which to get or update LIA settings.
* @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Liasettings$Get, options?: MethodOptions): GaxiosPromise<Schema$LiaSettings>;
get(params: Params$Resource$Liasettings$Get, options: MethodOptions | BodyResponseCallback<Schema$LiaSettings>, callback: BodyResponseCallback<Schema$LiaSettings>): void;
get(params: Params$Resource$Liasettings$Get, callback: BodyResponseCallback<Schema$LiaSettings>): void;
get(callback: BodyResponseCallback<Schema$LiaSettings>): void;
/**
* content.liasettings.getaccessiblegmbaccounts
* @desc Retrieves the list of accessible Google My Business accounts.
* @alias content.liasettings.getaccessiblegmbaccounts
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account for which to retrieve accessible Google My Business accounts.
* @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
getaccessiblegmbaccounts(params?: Params$Resource$Liasettings$Getaccessiblegmbaccounts, options?: MethodOptions): GaxiosPromise<Schema$LiasettingsGetAccessibleGmbAccountsResponse>;
getaccessiblegmbaccounts(params: Params$Resource$Liasettings$Getaccessiblegmbaccounts, options: MethodOptions | BodyResponseCallback<Schema$LiasettingsGetAccessibleGmbAccountsResponse>, callback: BodyResponseCallback<Schema$LiasettingsGetAccessibleGmbAccountsResponse>): void;
getaccessiblegmbaccounts(params: Params$Resource$Liasettings$Getaccessiblegmbaccounts, callback: BodyResponseCallback<Schema$LiasettingsGetAccessibleGmbAccountsResponse>): void;
getaccessiblegmbaccounts(callback: BodyResponseCallback<Schema$LiasettingsGetAccessibleGmbAccountsResponse>): void;
/**
* content.liasettings.list
* @desc Lists the LIA settings of the sub-accounts in your Merchant Center
* account.
* @alias content.liasettings.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer=} params.maxResults The maximum number of LIA settings to return in the response, used for paging.
* @param {string} params.merchantId The ID of the managing account. This must be a multi-client account.
* @param {string=} params.pageToken The token returned by the previous request.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Liasettings$List, options?: MethodOptions): GaxiosPromise<Schema$LiasettingsListResponse>;
list(params: Params$Resource$Liasettings$List, options: MethodOptions | BodyResponseCallback<Schema$LiasettingsListResponse>, callback: BodyResponseCallback<Schema$LiasettingsListResponse>): void;
list(params: Params$Resource$Liasettings$List, callback: BodyResponseCallback<Schema$LiasettingsListResponse>): void;
list(callback: BodyResponseCallback<Schema$LiasettingsListResponse>): void;
/**
* content.liasettings.listposdataproviders
* @desc Retrieves the list of POS data providers that have active settings
* for the all eiligible countries.
* @alias content.liasettings.listposdataproviders
* @memberOf! ()
*
* @param {object=} params Parameters for request
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
listposdataproviders(params?: Params$Resource$Liasettings$Listposdataproviders, options?: MethodOptions): GaxiosPromise<Schema$LiasettingsListPosDataProvidersResponse>;
listposdataproviders(params: Params$Resource$Liasettings$Listposdataproviders, options: MethodOptions | BodyResponseCallback<Schema$LiasettingsListPosDataProvidersResponse>, callback: BodyResponseCallback<Schema$LiasettingsListPosDataProvidersResponse>): void;
listposdataproviders(params: Params$Resource$Liasettings$Listposdataproviders, callback: BodyResponseCallback<Schema$LiasettingsListPosDataProvidersResponse>): void;
listposdataproviders(callback: BodyResponseCallback<Schema$LiasettingsListPosDataProvidersResponse>): void;
/**
* content.liasettings.requestgmbaccess
* @desc Requests access to a specified Google My Business account.
* @alias content.liasettings.requestgmbaccess
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account for which GMB access is requested.
* @param {string} params.gmbEmail The email of the Google My Business account.
* @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
requestgmbaccess(params?: Params$Resource$Liasettings$Requestgmbaccess, options?: MethodOptions): GaxiosPromise<Schema$LiasettingsRequestGmbAccessResponse>;
requestgmbaccess(params: Params$Resource$Liasettings$Requestgmbaccess, options: MethodOptions | BodyResponseCallback<Schema$LiasettingsRequestGmbAccessResponse>, callback: BodyResponseCallback<Schema$LiasettingsRequestGmbAccessResponse>): void;
requestgmbaccess(params: Params$Resource$Liasettings$Requestgmbaccess, callback: BodyResponseCallback<Schema$LiasettingsRequestGmbAccessResponse>): void;
requestgmbaccess(callback: BodyResponseCallback<Schema$LiasettingsRequestGmbAccessResponse>): void;
/**
* content.liasettings.requestinventoryverification
* @desc Requests inventory validation for the specified country.
* @alias content.liasettings.requestinventoryverification
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.country The country for which inventory validation is requested.
* @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
requestinventoryverification(params?: Params$Resource$Liasettings$Requestinventoryverification, options?: MethodOptions): GaxiosPromise<Schema$LiasettingsRequestInventoryVerificationResponse>;
requestinventoryverification(params: Params$Resource$Liasettings$Requestinventoryverification, options: MethodOptions | BodyResponseCallback<Schema$LiasettingsRequestInventoryVerificationResponse>, callback: BodyResponseCallback<Schema$LiasettingsRequestInventoryVerificationResponse>): void;
requestinventoryverification(params: Params$Resource$Liasettings$Requestinventoryverification, callback: BodyResponseCallback<Schema$LiasettingsRequestInventoryVerificationResponse>): void;
requestinventoryverification(callback: BodyResponseCallback<Schema$LiasettingsRequestInventoryVerificationResponse>): void;
/**
* content.liasettings.setinventoryverificationcontact
* @desc Sets the inventory verification contract for the specified country.
* @alias content.liasettings.setinventoryverificationcontact
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.contactEmail The email of the inventory verification contact.
* @param {string} params.contactName The name of the inventory verification contact.
* @param {string} params.country The country for which inventory verification is requested.
* @param {string} params.language The language for which inventory verification is requested.
* @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
setinventoryverificationcontact(params?: Params$Resource$Liasettings$Setinventoryverificationcontact, options?: MethodOptions): GaxiosPromise<Schema$LiasettingsSetInventoryVerificationContactResponse>;
setinventoryverificationcontact(params: Params$Resource$Liasettings$Setinventoryverificationcontact, options: MethodOptions | BodyResponseCallback<Schema$LiasettingsSetInventoryVerificationContactResponse>, callback: BodyResponseCallback<Schema$LiasettingsSetInventoryVerificationContactResponse>): void;
setinventoryverificationcontact(params: Params$Resource$Liasettings$Setinventoryverificationcontact, callback: BodyResponseCallback<Schema$LiasettingsSetInventoryVerificationContactResponse>): void;
setinventoryverificationcontact(callback: BodyResponseCallback<Schema$LiasettingsSetInventoryVerificationContactResponse>): void;
/**
* content.liasettings.setposdataprovider
* @desc Sets the POS data provider for the specified country.
* @alias content.liasettings.setposdataprovider
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account for which to retrieve accessible Google My Business accounts.
* @param {string} params.country The country for which the POS data provider is selected.
* @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
* @param {string=} params.posDataProviderId The ID of POS data provider.
* @param {string=} params.posExternalAccountId The account ID by which this merchant is known to the POS data provider.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
setposdataprovider(params?: Params$Resource$Liasettings$Setposdataprovider, options?: MethodOptions): GaxiosPromise<Schema$LiasettingsSetPosDataProviderResponse>;
setposdataprovider(params: Params$Resource$Liasettings$Setposdataprovider, options: MethodOptions | BodyResponseCallback<Schema$LiasettingsSetPosDataProviderResponse>, callback: BodyResponseCallback<Schema$LiasettingsSetPosDataProviderResponse>): void;
setposdataprovider(params: Params$Resource$Liasettings$Setposdataprovider, callback: BodyResponseCallback<Schema$LiasettingsSetPosDataProviderResponse>): void;
setposdataprovider(callback: BodyResponseCallback<Schema$LiasettingsSetPosDataProviderResponse>): void;
/**
* content.liasettings.update
* @desc Updates the LIA settings of the account.
* @alias content.liasettings.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account for which to get or update LIA settings.
* @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
* @param {().LiaSettings} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Liasettings$Update, options?: MethodOptions): GaxiosPromise<Schema$LiaSettings>;
update(params: Params$Resource$Liasettings$Update, options: MethodOptions | BodyResponseCallback<Schema$LiaSettings>, callback: BodyResponseCallback<Schema$LiaSettings>): void;
update(params: Params$Resource$Liasettings$Update, callback: BodyResponseCallback<Schema$LiaSettings>): void;
update(callback: BodyResponseCallback<Schema$LiaSettings>): void;
}
interface Params$Resource$Liasettings$Custombatch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Request body metadata
*/
requestBody?: Schema$LiasettingsCustomBatchRequest;
}
interface Params$Resource$Liasettings$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account for which to get or update LIA settings.
*/
accountId?: string;
/**
* The ID of the managing account. If this parameter is not the same as
* accountId, then this account must be a multi-client account and accountId
* must be the ID of a sub-account of this account.
*/
merchantId?: string;
}
interface Params$Resource$Liasettings$Getaccessiblegmbaccounts extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account for which to retrieve accessible Google My Business
* accounts.
*/
accountId?: string;
/**
* The ID of the managing account. If this parameter is not the same as
* accountId, then this account must be a multi-client account and accountId
* must be the ID of a sub-account of this account.
*/
merchantId?: string;
}
interface Params$Resource$Liasettings$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The maximum number of LIA settings to return in the response, used for
* paging.
*/
maxResults?: number;
/**
* The ID of the managing account. This must be a multi-client account.
*/
merchantId?: string;
/**
* The token returned by the previous request.
*/
pageToken?: string;
}
interface Params$Resource$Liasettings$Listposdataproviders extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
}
interface Params$Resource$Liasettings$Requestgmbaccess extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account for which GMB access is requested.
*/
accountId?: string;
/**
* The email of the Google My Business account.
*/
gmbEmail?: string;
/**
* The ID of the managing account. If this parameter is not the same as
* accountId, then this account must be a multi-client account and accountId
* must be the ID of a sub-account of this account.
*/
merchantId?: string;
}
interface Params$Resource$Liasettings$Requestinventoryverification extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
accountId?: string;
/**
* The country for which inventory validation is requested.
*/
country?: string;
/**
* The ID of the managing account. If this parameter is not the same as
* accountId, then this account must be a multi-client account and accountId
* must be the ID of a sub-account of this account.
*/
merchantId?: string;
}
interface Params$Resource$Liasettings$Setinventoryverificationcontact extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
accountId?: string;
/**
* The email of the inventory verification contact.
*/
contactEmail?: string;
/**
* The name of the inventory verification contact.
*/
contactName?: string;
/**
* The country for which inventory verification is requested.
*/
country?: string;
/**
* The language for which inventory verification is requested.
*/
language?: string;
/**
* The ID of the managing account. If this parameter is not the same as
* accountId, then this account must be a multi-client account and accountId
* must be the ID of a sub-account of this account.
*/
merchantId?: string;
}
interface Params$Resource$Liasettings$Setposdataprovider extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account for which to retrieve accessible Google My Business
* accounts.
*/
accountId?: string;
/**
* The country for which the POS data provider is selected.
*/
country?: string;
/**
* The ID of the managing account. If this parameter is not the same as
* accountId, then this account must be a multi-client account and accountId
* must be the ID of a sub-account of this account.
*/
merchantId?: string;
/**
* The ID of POS data provider.
*/
posDataProviderId?: string;
/**
* The account ID by which this merchant is known to the POS data provider.
*/
posExternalAccountId?: string;
}
interface Params$Resource$Liasettings$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account for which to get or update LIA settings.
*/
accountId?: string;
/**
* The ID of the managing account. If this parameter is not the same as
* accountId, then this account must be a multi-client account and accountId
* must be the ID of a sub-account of this account.
*/
merchantId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$LiaSettings;
}
class Resource$Orderinvoices {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* content.orderinvoices.createchargeinvoice
* @desc Creates a charge invoice for a shipment group, and triggers a
* charge capture for non-facilitated payment orders.
* @alias content.orderinvoices.createchargeinvoice
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the order.
* @param {().OrderinvoicesCreateChargeInvoiceRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
createchargeinvoice(params?: Params$Resource$Orderinvoices$Createchargeinvoice, options?: MethodOptions): GaxiosPromise<Schema$OrderinvoicesCreateChargeInvoiceResponse>;
createchargeinvoice(params: Params$Resource$Orderinvoices$Createchargeinvoice, options: MethodOptions | BodyResponseCallback<Schema$OrderinvoicesCreateChargeInvoiceResponse>, callback: BodyResponseCallback<Schema$OrderinvoicesCreateChargeInvoiceResponse>): void;
createchargeinvoice(params: Params$Resource$Orderinvoices$Createchargeinvoice, callback: BodyResponseCallback<Schema$OrderinvoicesCreateChargeInvoiceResponse>): void;
createchargeinvoice(callback: BodyResponseCallback<Schema$OrderinvoicesCreateChargeInvoiceResponse>): void;
/**
* content.orderinvoices.createrefundinvoice
* @desc Creates a refund invoice for one or more shipment groups, and
* triggers a refund for non-facilitated payment orders. This can only be
* used for line items that have previously been charged using
* createChargeInvoice. All amounts (except for the summary) are incremental
* with respect to the previous invoice.
* @alias content.orderinvoices.createrefundinvoice
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the order.
* @param {().OrderinvoicesCreateRefundInvoiceRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
createrefundinvoice(params?: Params$Resource$Orderinvoices$Createrefundinvoice, options?: MethodOptions): GaxiosPromise<Schema$OrderinvoicesCreateRefundInvoiceResponse>;
createrefundinvoice(params: Params$Resource$Orderinvoices$Createrefundinvoice, options: MethodOptions | BodyResponseCallback<Schema$OrderinvoicesCreateRefundInvoiceResponse>, callback: BodyResponseCallback<Schema$OrderinvoicesCreateRefundInvoiceResponse>): void;
createrefundinvoice(params: Params$Resource$Orderinvoices$Createrefundinvoice, callback: BodyResponseCallback<Schema$OrderinvoicesCreateRefundInvoiceResponse>): void;
createrefundinvoice(callback: BodyResponseCallback<Schema$OrderinvoicesCreateRefundInvoiceResponse>): void;
}
interface Params$Resource$Orderinvoices$Createchargeinvoice extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the order.
*/
orderId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrderinvoicesCreateChargeInvoiceRequest;
}
interface Params$Resource$Orderinvoices$Createrefundinvoice extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the order.
*/
orderId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrderinvoicesCreateRefundInvoiceRequest;
}
class Resource$Orderreports {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* content.orderreports.listdisbursements
* @desc Retrieves a report for disbursements from your Merchant Center
* account.
* @alias content.orderreports.listdisbursements
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string=} params.disbursementEndDate The last date which disbursements occurred. In ISO 8601 format. Default: current date.
* @param {string} params.disbursementStartDate The first date which disbursements occurred. In ISO 8601 format.
* @param {integer=} params.maxResults The maximum number of disbursements to return in the response, used for paging.
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string=} params.pageToken The token returned by the previous request.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
listdisbursements(params?: Params$Resource$Orderreports$Listdisbursements, options?: MethodOptions): GaxiosPromise<Schema$OrderreportsListDisbursementsResponse>;
listdisbursements(params: Params$Resource$Orderreports$Listdisbursements, options: MethodOptions | BodyResponseCallback<Schema$OrderreportsListDisbursementsResponse>, callback: BodyResponseCallback<Schema$OrderreportsListDisbursementsResponse>): void;
listdisbursements(params: Params$Resource$Orderreports$Listdisbursements, callback: BodyResponseCallback<Schema$OrderreportsListDisbursementsResponse>): void;
listdisbursements(callback: BodyResponseCallback<Schema$OrderreportsListDisbursementsResponse>): void;
/**
* content.orderreports.listtransactions
* @desc Retrieves a list of transactions for a disbursement from your
* Merchant Center account.
* @alias content.orderreports.listtransactions
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.disbursementId The Google-provided ID of the disbursement (found in Wallet).
* @param {integer=} params.maxResults The maximum number of disbursements to return in the response, used for paging.
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string=} params.pageToken The token returned by the previous request.
* @param {string=} params.transactionEndDate The last date in which transaction occurred. In ISO 8601 format. Default: current date.
* @param {string} params.transactionStartDate The first date in which transaction occurred. In ISO 8601 format.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
listtransactions(params?: Params$Resource$Orderreports$Listtransactions, options?: MethodOptions): GaxiosPromise<Schema$OrderreportsListTransactionsResponse>;
listtransactions(params: Params$Resource$Orderreports$Listtransactions, options: MethodOptions | BodyResponseCallback<Schema$OrderreportsListTransactionsResponse>, callback: BodyResponseCallback<Schema$OrderreportsListTransactionsResponse>): void;
listtransactions(params: Params$Resource$Orderreports$Listtransactions, callback: BodyResponseCallback<Schema$OrderreportsListTransactionsResponse>): void;
listtransactions(callback: BodyResponseCallback<Schema$OrderreportsListTransactionsResponse>): void;
}
interface Params$Resource$Orderreports$Listdisbursements extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The last date which disbursements occurred. In ISO 8601 format. Default:
* current date.
*/
disbursementEndDate?: string;
/**
* The first date which disbursements occurred. In ISO 8601 format.
*/
disbursementStartDate?: string;
/**
* The maximum number of disbursements to return in the response, used for
* paging.
*/
maxResults?: number;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The token returned by the previous request.
*/
pageToken?: string;
}
interface Params$Resource$Orderreports$Listtransactions extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The Google-provided ID of the disbursement (found in Wallet).
*/
disbursementId?: string;
/**
* The maximum number of disbursements to return in the response, used for
* paging.
*/
maxResults?: number;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The token returned by the previous request.
*/
pageToken?: string;
/**
* The last date in which transaction occurred. In ISO 8601 format. Default:
* current date.
*/
transactionEndDate?: string;
/**
* The first date in which transaction occurred. In ISO 8601 format.
*/
transactionStartDate?: string;
}
class Resource$Orderreturns {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* content.orderreturns.get
* @desc Retrieves an order return from your Merchant Center account.
* @alias content.orderreturns.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.returnId Merchant order return ID generated by Google.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Orderreturns$Get, options?: MethodOptions): GaxiosPromise<Schema$MerchantOrderReturn>;
get(params: Params$Resource$Orderreturns$Get, options: MethodOptions | BodyResponseCallback<Schema$MerchantOrderReturn>, callback: BodyResponseCallback<Schema$MerchantOrderReturn>): void;
get(params: Params$Resource$Orderreturns$Get, callback: BodyResponseCallback<Schema$MerchantOrderReturn>): void;
get(callback: BodyResponseCallback<Schema$MerchantOrderReturn>): void;
/**
* content.orderreturns.list
* @desc Lists order returns in your Merchant Center account.
* @alias content.orderreturns.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string=} params.createdEndDate Obtains order returns created before this date (inclusively), in ISO 8601 format.
* @param {string=} params.createdStartDate Obtains order returns created after this date (inclusively), in ISO 8601 format.
* @param {integer=} params.maxResults The maximum number of order returns to return in the response, used for paging. The default value is 25 returns per page, and the maximum allowed value is 250 returns per page.
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string=} params.orderBy Return the results in the specified order.
* @param {string=} params.pageToken The token returned by the previous request.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Orderreturns$List, options?: MethodOptions): GaxiosPromise<Schema$OrderreturnsListResponse>;
list(params: Params$Resource$Orderreturns$List, options: MethodOptions | BodyResponseCallback<Schema$OrderreturnsListResponse>, callback: BodyResponseCallback<Schema$OrderreturnsListResponse>): void;
list(params: Params$Resource$Orderreturns$List, callback: BodyResponseCallback<Schema$OrderreturnsListResponse>): void;
list(callback: BodyResponseCallback<Schema$OrderreturnsListResponse>): void;
}
interface Params$Resource$Orderreturns$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* Merchant order return ID generated by Google.
*/
returnId?: string;
}
interface Params$Resource$Orderreturns$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Obtains order returns created before this date (inclusively), in ISO 8601
* format.
*/
createdEndDate?: string;
/**
* Obtains order returns created after this date (inclusively), in ISO 8601
* format.
*/
createdStartDate?: string;
/**
* The maximum number of order returns to return in the response, used for
* paging. The default value is 25 returns per page, and the maximum allowed
* value is 250 returns per page.
*/
maxResults?: number;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* Return the results in the specified order.
*/
orderBy?: string;
/**
* The token returned by the previous request.
*/
pageToken?: string;
}
class Resource$Orders {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* content.orders.acknowledge
* @desc Marks an order as acknowledged.
* @alias content.orders.acknowledge
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the order.
* @param {().OrdersAcknowledgeRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
acknowledge(params?: Params$Resource$Orders$Acknowledge, options?: MethodOptions): GaxiosPromise<Schema$OrdersAcknowledgeResponse>;
acknowledge(params: Params$Resource$Orders$Acknowledge, options: MethodOptions | BodyResponseCallback<Schema$OrdersAcknowledgeResponse>, callback: BodyResponseCallback<Schema$OrdersAcknowledgeResponse>): void;
acknowledge(params: Params$Resource$Orders$Acknowledge, callback: BodyResponseCallback<Schema$OrdersAcknowledgeResponse>): void;
acknowledge(callback: BodyResponseCallback<Schema$OrdersAcknowledgeResponse>): void;
/**
* content.orders.advancetestorder
* @desc Sandbox only. Moves a test order from state "inProgress" to state
* "pendingShipment".
* @alias content.orders.advancetestorder
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the test order to modify.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
advancetestorder(params?: Params$Resource$Orders$Advancetestorder, options?: MethodOptions): GaxiosPromise<Schema$OrdersAdvanceTestOrderResponse>;
advancetestorder(params: Params$Resource$Orders$Advancetestorder, options: MethodOptions | BodyResponseCallback<Schema$OrdersAdvanceTestOrderResponse>, callback: BodyResponseCallback<Schema$OrdersAdvanceTestOrderResponse>): void;
advancetestorder(params: Params$Resource$Orders$Advancetestorder, callback: BodyResponseCallback<Schema$OrdersAdvanceTestOrderResponse>): void;
advancetestorder(callback: BodyResponseCallback<Schema$OrdersAdvanceTestOrderResponse>): void;
/**
* content.orders.cancel
* @desc Cancels all line items in an order, making a full refund.
* @alias content.orders.cancel
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the order to cancel.
* @param {().OrdersCancelRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
cancel(params?: Params$Resource$Orders$Cancel, options?: MethodOptions): GaxiosPromise<Schema$OrdersCancelResponse>;
cancel(params: Params$Resource$Orders$Cancel, options: MethodOptions | BodyResponseCallback<Schema$OrdersCancelResponse>, callback: BodyResponseCallback<Schema$OrdersCancelResponse>): void;
cancel(params: Params$Resource$Orders$Cancel, callback: BodyResponseCallback<Schema$OrdersCancelResponse>): void;
cancel(callback: BodyResponseCallback<Schema$OrdersCancelResponse>): void;
/**
* content.orders.cancellineitem
* @desc Cancels a line item, making a full refund.
* @alias content.orders.cancellineitem
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the order.
* @param {().OrdersCancelLineItemRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
cancellineitem(params?: Params$Resource$Orders$Cancellineitem, options?: MethodOptions): GaxiosPromise<Schema$OrdersCancelLineItemResponse>;
cancellineitem(params: Params$Resource$Orders$Cancellineitem, options: MethodOptions | BodyResponseCallback<Schema$OrdersCancelLineItemResponse>, callback: BodyResponseCallback<Schema$OrdersCancelLineItemResponse>): void;
cancellineitem(params: Params$Resource$Orders$Cancellineitem, callback: BodyResponseCallback<Schema$OrdersCancelLineItemResponse>): void;
cancellineitem(callback: BodyResponseCallback<Schema$OrdersCancelLineItemResponse>): void;
/**
* content.orders.canceltestorderbycustomer
* @desc Sandbox only. Cancels a test order for customer-initiated
* cancellation.
* @alias content.orders.canceltestorderbycustomer
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the test order to cancel.
* @param {().OrdersCancelTestOrderByCustomerRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
canceltestorderbycustomer(params?: Params$Resource$Orders$Canceltestorderbycustomer, options?: MethodOptions): GaxiosPromise<Schema$OrdersCancelTestOrderByCustomerResponse>;
canceltestorderbycustomer(params: Params$Resource$Orders$Canceltestorderbycustomer, options: MethodOptions | BodyResponseCallback<Schema$OrdersCancelTestOrderByCustomerResponse>, callback: BodyResponseCallback<Schema$OrdersCancelTestOrderByCustomerResponse>): void;
canceltestorderbycustomer(params: Params$Resource$Orders$Canceltestorderbycustomer, callback: BodyResponseCallback<Schema$OrdersCancelTestOrderByCustomerResponse>): void;
canceltestorderbycustomer(callback: BodyResponseCallback<Schema$OrdersCancelTestOrderByCustomerResponse>): void;
/**
* content.orders.createtestorder
* @desc Sandbox only. Creates a test order.
* @alias content.orders.createtestorder
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that should manage the order. This cannot be a multi-client account.
* @param {().OrdersCreateTestOrderRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
createtestorder(params?: Params$Resource$Orders$Createtestorder, options?: MethodOptions): GaxiosPromise<Schema$OrdersCreateTestOrderResponse>;
createtestorder(params: Params$Resource$Orders$Createtestorder, options: MethodOptions | BodyResponseCallback<Schema$OrdersCreateTestOrderResponse>, callback: BodyResponseCallback<Schema$OrdersCreateTestOrderResponse>): void;
createtestorder(params: Params$Resource$Orders$Createtestorder, callback: BodyResponseCallback<Schema$OrdersCreateTestOrderResponse>): void;
createtestorder(callback: BodyResponseCallback<Schema$OrdersCreateTestOrderResponse>): void;
/**
* content.orders.createtestreturn
* @desc Sandbox only. Creates a test return.
* @alias content.orders.createtestreturn
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the order.
* @param {().OrdersCreateTestReturnRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
createtestreturn(params?: Params$Resource$Orders$Createtestreturn, options?: MethodOptions): GaxiosPromise<Schema$OrdersCreateTestReturnResponse>;
createtestreturn(params: Params$Resource$Orders$Createtestreturn, options: MethodOptions | BodyResponseCallback<Schema$OrdersCreateTestReturnResponse>, callback: BodyResponseCallback<Schema$OrdersCreateTestReturnResponse>): void;
createtestreturn(params: Params$Resource$Orders$Createtestreturn, callback: BodyResponseCallback<Schema$OrdersCreateTestReturnResponse>): void;
createtestreturn(callback: BodyResponseCallback<Schema$OrdersCreateTestReturnResponse>): void;
/**
* content.orders.get
* @desc Retrieves an order from your Merchant Center account.
* @alias content.orders.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the order.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Orders$Get, options?: MethodOptions): GaxiosPromise<Schema$Order>;
get(params: Params$Resource$Orders$Get, options: MethodOptions | BodyResponseCallback<Schema$Order>, callback: BodyResponseCallback<Schema$Order>): void;
get(params: Params$Resource$Orders$Get, callback: BodyResponseCallback<Schema$Order>): void;
get(callback: BodyResponseCallback<Schema$Order>): void;
/**
* content.orders.getbymerchantorderid
* @desc Retrieves an order using merchant order ID.
* @alias content.orders.getbymerchantorderid
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.merchantOrderId The merchant order ID to be looked for.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
getbymerchantorderid(params?: Params$Resource$Orders$Getbymerchantorderid, options?: MethodOptions): GaxiosPromise<Schema$OrdersGetByMerchantOrderIdResponse>;
getbymerchantorderid(params: Params$Resource$Orders$Getbymerchantorderid, options: MethodOptions | BodyResponseCallback<Schema$OrdersGetByMerchantOrderIdResponse>, callback: BodyResponseCallback<Schema$OrdersGetByMerchantOrderIdResponse>): void;
getbymerchantorderid(params: Params$Resource$Orders$Getbymerchantorderid, callback: BodyResponseCallback<Schema$OrdersGetByMerchantOrderIdResponse>): void;
getbymerchantorderid(callback: BodyResponseCallback<Schema$OrdersGetByMerchantOrderIdResponse>): void;
/**
* content.orders.gettestordertemplate
* @desc Sandbox only. Retrieves an order template that can be used to
* quickly create a new order in sandbox.
* @alias content.orders.gettestordertemplate
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string=} params.country The country of the template to retrieve. Defaults to US.
* @param {string} params.merchantId The ID of the account that should manage the order. This cannot be a multi-client account.
* @param {string} params.templateName The name of the template to retrieve.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
gettestordertemplate(params?: Params$Resource$Orders$Gettestordertemplate, options?: MethodOptions): GaxiosPromise<Schema$OrdersGetTestOrderTemplateResponse>;
gettestordertemplate(params: Params$Resource$Orders$Gettestordertemplate, options: MethodOptions | BodyResponseCallback<Schema$OrdersGetTestOrderTemplateResponse>, callback: BodyResponseCallback<Schema$OrdersGetTestOrderTemplateResponse>): void;
gettestordertemplate(params: Params$Resource$Orders$Gettestordertemplate, callback: BodyResponseCallback<Schema$OrdersGetTestOrderTemplateResponse>): void;
gettestordertemplate(callback: BodyResponseCallback<Schema$OrdersGetTestOrderTemplateResponse>): void;
/**
* content.orders.instorerefundlineitem
* @desc Notifies that item return and refund was handled directly by
* merchant outside of Google payments processing (e.g. cash refund done in
* store). Note: We recommend calling the returnrefundlineitem method to
* refund in-store returns. We will issue the refund directly to the
* customer. This helps to prevent possible differences arising between
* merchant and Google transaction records. We also recommend having the
* point of sale system communicate with Google to ensure that customers do
* not receive a double refund by first refunding via Google then via an
* in-store return.
* @alias content.orders.instorerefundlineitem
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the order.
* @param {().OrdersInStoreRefundLineItemRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
instorerefundlineitem(params?: Params$Resource$Orders$Instorerefundlineitem, options?: MethodOptions): GaxiosPromise<Schema$OrdersInStoreRefundLineItemResponse>;
instorerefundlineitem(params: Params$Resource$Orders$Instorerefundlineitem, options: MethodOptions | BodyResponseCallback<Schema$OrdersInStoreRefundLineItemResponse>, callback: BodyResponseCallback<Schema$OrdersInStoreRefundLineItemResponse>): void;
instorerefundlineitem(params: Params$Resource$Orders$Instorerefundlineitem, callback: BodyResponseCallback<Schema$OrdersInStoreRefundLineItemResponse>): void;
instorerefundlineitem(callback: BodyResponseCallback<Schema$OrdersInStoreRefundLineItemResponse>): void;
/**
* content.orders.list
* @desc Lists the orders in your Merchant Center account.
* @alias content.orders.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {boolean=} params.acknowledged Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged. We recommend using this filter set to false, in conjunction with the acknowledge call, such that only un-acknowledged orders are returned.
* @param {integer=} params.maxResults The maximum number of orders to return in the response, used for paging. The default value is 25 orders per page, and the maximum allowed value is 250 orders per page. Known issue: All List calls will return all Orders without limit regardless of the value of this field.
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string=} params.orderBy The ordering of the returned list. The only supported value are placedDate desc and placedDate asc for now, which returns orders sorted by placement date. "placedDate desc" stands for listing orders by placement date, from oldest to most recent. "placedDate asc" stands for listing orders by placement date, from most recent to oldest. In future releases we'll support other sorting criteria.
* @param {string=} params.pageToken The token returned by the previous request.
* @param {string=} params.placedDateEnd Obtains orders placed before this date (exclusively), in ISO 8601 format.
* @param {string=} params.placedDateStart Obtains orders placed after this date (inclusively), in ISO 8601 format.
* @param {string=} params.statuses Obtains orders that match any of the specified statuses. Multiple values can be specified with comma separation. Additionally, please note that active is a shortcut for pendingShipment and partiallyShipped, and completed is a shortcut for shipped , partiallyDelivered, delivered, partiallyReturned, returned, and canceled.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Orders$List, options?: MethodOptions): GaxiosPromise<Schema$OrdersListResponse>;
list(params: Params$Resource$Orders$List, options: MethodOptions | BodyResponseCallback<Schema$OrdersListResponse>, callback: BodyResponseCallback<Schema$OrdersListResponse>): void;
list(params: Params$Resource$Orders$List, callback: BodyResponseCallback<Schema$OrdersListResponse>): void;
list(callback: BodyResponseCallback<Schema$OrdersListResponse>): void;
/**
* content.orders.rejectreturnlineitem
* @desc Rejects return on an line item.
* @alias content.orders.rejectreturnlineitem
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the order.
* @param {().OrdersRejectReturnLineItemRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
rejectreturnlineitem(params?: Params$Resource$Orders$Rejectreturnlineitem, options?: MethodOptions): GaxiosPromise<Schema$OrdersRejectReturnLineItemResponse>;
rejectreturnlineitem(params: Params$Resource$Orders$Rejectreturnlineitem, options: MethodOptions | BodyResponseCallback<Schema$OrdersRejectReturnLineItemResponse>, callback: BodyResponseCallback<Schema$OrdersRejectReturnLineItemResponse>): void;
rejectreturnlineitem(params: Params$Resource$Orders$Rejectreturnlineitem, callback: BodyResponseCallback<Schema$OrdersRejectReturnLineItemResponse>): void;
rejectreturnlineitem(callback: BodyResponseCallback<Schema$OrdersRejectReturnLineItemResponse>): void;
/**
* content.orders.returnrefundlineitem
* @desc Returns and refunds a line item. Note that this method can only be
* called on fully shipped orders.
* @alias content.orders.returnrefundlineitem
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the order.
* @param {().OrdersReturnRefundLineItemRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
returnrefundlineitem(params?: Params$Resource$Orders$Returnrefundlineitem, options?: MethodOptions): GaxiosPromise<Schema$OrdersReturnRefundLineItemResponse>;
returnrefundlineitem(params: Params$Resource$Orders$Returnrefundlineitem, options: MethodOptions | BodyResponseCallback<Schema$OrdersReturnRefundLineItemResponse>, callback: BodyResponseCallback<Schema$OrdersReturnRefundLineItemResponse>): void;
returnrefundlineitem(params: Params$Resource$Orders$Returnrefundlineitem, callback: BodyResponseCallback<Schema$OrdersReturnRefundLineItemResponse>): void;
returnrefundlineitem(callback: BodyResponseCallback<Schema$OrdersReturnRefundLineItemResponse>): void;
/**
* content.orders.setlineitemmetadata
* @desc Sets (or overrides if it already exists) merchant provided
* annotations in the form of key-value pairs. A common use case would be to
* supply us with additional structured information about a line item that
* cannot be provided via other methods. Submitted key-value pairs can be
* retrieved as part of the orders resource.
* @alias content.orders.setlineitemmetadata
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the order.
* @param {().OrdersSetLineItemMetadataRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
setlineitemmetadata(params?: Params$Resource$Orders$Setlineitemmetadata, options?: MethodOptions): GaxiosPromise<Schema$OrdersSetLineItemMetadataResponse>;
setlineitemmetadata(params: Params$Resource$Orders$Setlineitemmetadata, options: MethodOptions | BodyResponseCallback<Schema$OrdersSetLineItemMetadataResponse>, callback: BodyResponseCallback<Schema$OrdersSetLineItemMetadataResponse>): void;
setlineitemmetadata(params: Params$Resource$Orders$Setlineitemmetadata, callback: BodyResponseCallback<Schema$OrdersSetLineItemMetadataResponse>): void;
setlineitemmetadata(callback: BodyResponseCallback<Schema$OrdersSetLineItemMetadataResponse>): void;
/**
* content.orders.shiplineitems
* @desc Marks line item(s) as shipped.
* @alias content.orders.shiplineitems
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the order.
* @param {().OrdersShipLineItemsRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
shiplineitems(params?: Params$Resource$Orders$Shiplineitems, options?: MethodOptions): GaxiosPromise<Schema$OrdersShipLineItemsResponse>;
shiplineitems(params: Params$Resource$Orders$Shiplineitems, options: MethodOptions | BodyResponseCallback<Schema$OrdersShipLineItemsResponse>, callback: BodyResponseCallback<Schema$OrdersShipLineItemsResponse>): void;
shiplineitems(params: Params$Resource$Orders$Shiplineitems, callback: BodyResponseCallback<Schema$OrdersShipLineItemsResponse>): void;
shiplineitems(callback: BodyResponseCallback<Schema$OrdersShipLineItemsResponse>): void;
/**
* content.orders.updatelineitemshippingdetails
* @desc Updates ship by and delivery by dates for a line item.
* @alias content.orders.updatelineitemshippingdetails
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the order.
* @param {().OrdersUpdateLineItemShippingDetailsRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
updatelineitemshippingdetails(params?: Params$Resource$Orders$Updatelineitemshippingdetails, options?: MethodOptions): GaxiosPromise<Schema$OrdersUpdateLineItemShippingDetailsResponse>;
updatelineitemshippingdetails(params: Params$Resource$Orders$Updatelineitemshippingdetails, options: MethodOptions | BodyResponseCallback<Schema$OrdersUpdateLineItemShippingDetailsResponse>, callback: BodyResponseCallback<Schema$OrdersUpdateLineItemShippingDetailsResponse>): void;
updatelineitemshippingdetails(params: Params$Resource$Orders$Updatelineitemshippingdetails, callback: BodyResponseCallback<Schema$OrdersUpdateLineItemShippingDetailsResponse>): void;
updatelineitemshippingdetails(callback: BodyResponseCallback<Schema$OrdersUpdateLineItemShippingDetailsResponse>): void;
/**
* content.orders.updatemerchantorderid
* @desc Updates the merchant order ID for a given order.
* @alias content.orders.updatemerchantorderid
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the order.
* @param {().OrdersUpdateMerchantOrderIdRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
updatemerchantorderid(params?: Params$Resource$Orders$Updatemerchantorderid, options?: MethodOptions): GaxiosPromise<Schema$OrdersUpdateMerchantOrderIdResponse>;
updatemerchantorderid(params: Params$Resource$Orders$Updatemerchantorderid, options: MethodOptions | BodyResponseCallback<Schema$OrdersUpdateMerchantOrderIdResponse>, callback: BodyResponseCallback<Schema$OrdersUpdateMerchantOrderIdResponse>): void;
updatemerchantorderid(params: Params$Resource$Orders$Updatemerchantorderid, callback: BodyResponseCallback<Schema$OrdersUpdateMerchantOrderIdResponse>): void;
updatemerchantorderid(callback: BodyResponseCallback<Schema$OrdersUpdateMerchantOrderIdResponse>): void;
/**
* content.orders.updateshipment
* @desc Updates a shipment's status, carrier, and/or tracking ID.
* @alias content.orders.updateshipment
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account.
* @param {string} params.orderId The ID of the order.
* @param {().OrdersUpdateShipmentRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
updateshipment(params?: Params$Resource$Orders$Updateshipment, options?: MethodOptions): GaxiosPromise<Schema$OrdersUpdateShipmentResponse>;
updateshipment(params: Params$Resource$Orders$Updateshipment, options: MethodOptions | BodyResponseCallback<Schema$OrdersUpdateShipmentResponse>, callback: BodyResponseCallback<Schema$OrdersUpdateShipmentResponse>): void;
updateshipment(params: Params$Resource$Orders$Updateshipment, callback: BodyResponseCallback<Schema$OrdersUpdateShipmentResponse>): void;
updateshipment(callback: BodyResponseCallback<Schema$OrdersUpdateShipmentResponse>): void;
}
interface Params$Resource$Orders$Acknowledge extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the order.
*/
orderId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrdersAcknowledgeRequest;
}
interface Params$Resource$Orders$Advancetestorder extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the test order to modify.
*/
orderId?: string;
}
interface Params$Resource$Orders$Cancel extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the order to cancel.
*/
orderId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrdersCancelRequest;
}
interface Params$Resource$Orders$Cancellineitem extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the order.
*/
orderId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrdersCancelLineItemRequest;
}
interface Params$Resource$Orders$Canceltestorderbycustomer extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the test order to cancel.
*/
orderId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrdersCancelTestOrderByCustomerRequest;
}
interface Params$Resource$Orders$Createtestorder extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that should manage the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrdersCreateTestOrderRequest;
}
interface Params$Resource$Orders$Createtestreturn extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the order.
*/
orderId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrdersCreateTestReturnRequest;
}
interface Params$Resource$Orders$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the order.
*/
orderId?: string;
}
interface Params$Resource$Orders$Getbymerchantorderid extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The merchant order ID to be looked for.
*/
merchantOrderId?: string;
}
interface Params$Resource$Orders$Gettestordertemplate extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The country of the template to retrieve. Defaults to US.
*/
country?: string;
/**
* The ID of the account that should manage the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The name of the template to retrieve.
*/
templateName?: string;
}
interface Params$Resource$Orders$Instorerefundlineitem extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the order.
*/
orderId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrdersInStoreRefundLineItemRequest;
}
interface Params$Resource$Orders$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Obtains orders that match the acknowledgement status. When set to true,
* obtains orders that have been acknowledged. When false, obtains orders
* that have not been acknowledged. We recommend using this filter set to
* false, in conjunction with the acknowledge call, such that only
* un-acknowledged orders are returned.
*/
acknowledged?: boolean;
/**
* The maximum number of orders to return in the response, used for paging.
* The default value is 25 orders per page, and the maximum allowed value is
* 250 orders per page. Known issue: All List calls will return all Orders
* without limit regardless of the value of this field.
*/
maxResults?: number;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ordering of the returned list. The only supported value are
* placedDate desc and placedDate asc for now, which returns orders sorted
* by placement date. "placedDate desc" stands for listing orders by
* placement date, from oldest to most recent. "placedDate asc" stands for
* listing orders by placement date, from most recent to oldest. In future
* releases we'll support other sorting criteria.
*/
orderBy?: string;
/**
* The token returned by the previous request.
*/
pageToken?: string;
/**
* Obtains orders placed before this date (exclusively), in ISO 8601 format.
*/
placedDateEnd?: string;
/**
* Obtains orders placed after this date (inclusively), in ISO 8601 format.
*/
placedDateStart?: string;
/**
* Obtains orders that match any of the specified statuses. Multiple values
* can be specified with comma separation. Additionally, please note that
* active is a shortcut for pendingShipment and partiallyShipped, and
* completed is a shortcut for shipped , partiallyDelivered, delivered,
* partiallyReturned, returned, and canceled.
*/
statuses?: string[];
}
interface Params$Resource$Orders$Rejectreturnlineitem extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the order.
*/
orderId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrdersRejectReturnLineItemRequest;
}
interface Params$Resource$Orders$Returnrefundlineitem extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the order.
*/
orderId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrdersReturnRefundLineItemRequest;
}
interface Params$Resource$Orders$Setlineitemmetadata extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the order.
*/
orderId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrdersSetLineItemMetadataRequest;
}
interface Params$Resource$Orders$Shiplineitems extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the order.
*/
orderId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrdersShipLineItemsRequest;
}
interface Params$Resource$Orders$Updatelineitemshippingdetails extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the order.
*/
orderId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrdersUpdateLineItemShippingDetailsRequest;
}
interface Params$Resource$Orders$Updatemerchantorderid extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the order.
*/
orderId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrdersUpdateMerchantOrderIdRequest;
}
interface Params$Resource$Orders$Updateshipment extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that manages the order. This cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The ID of the order.
*/
orderId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$OrdersUpdateShipmentRequest;
}
class Resource$Pos {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* content.pos.custombatch
* @desc Batches multiple POS-related calls in a single request.
* @alias content.pos.custombatch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {().PosCustomBatchRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
custombatch(params?: Params$Resource$Pos$Custombatch, options?: MethodOptions): GaxiosPromise<Schema$PosCustomBatchResponse>;
custombatch(params: Params$Resource$Pos$Custombatch, options: MethodOptions | BodyResponseCallback<Schema$PosCustomBatchResponse>, callback: BodyResponseCallback<Schema$PosCustomBatchResponse>): void;
custombatch(params: Params$Resource$Pos$Custombatch, callback: BodyResponseCallback<Schema$PosCustomBatchResponse>): void;
custombatch(callback: BodyResponseCallback<Schema$PosCustomBatchResponse>): void;
/**
* content.pos.delete
* @desc Deletes a store for the given merchant.
* @alias content.pos.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the POS or inventory data provider.
* @param {string} params.storeCode A store code that is unique per merchant.
* @param {string} params.targetMerchantId The ID of the target merchant.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Pos$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Pos$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Pos$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* content.pos.get
* @desc Retrieves information about the given store.
* @alias content.pos.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the POS or inventory data provider.
* @param {string} params.storeCode A store code that is unique per merchant.
* @param {string} params.targetMerchantId The ID of the target merchant.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Pos$Get, options?: MethodOptions): GaxiosPromise<Schema$PosStore>;
get(params: Params$Resource$Pos$Get, options: MethodOptions | BodyResponseCallback<Schema$PosStore>, callback: BodyResponseCallback<Schema$PosStore>): void;
get(params: Params$Resource$Pos$Get, callback: BodyResponseCallback<Schema$PosStore>): void;
get(callback: BodyResponseCallback<Schema$PosStore>): void;
/**
* content.pos.insert
* @desc Creates a store for the given merchant.
* @alias content.pos.insert
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the POS or inventory data provider.
* @param {string} params.targetMerchantId The ID of the target merchant.
* @param {().PosStore} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
insert(params?: Params$Resource$Pos$Insert, options?: MethodOptions): GaxiosPromise<Schema$PosStore>;
insert(params: Params$Resource$Pos$Insert, options: MethodOptions | BodyResponseCallback<Schema$PosStore>, callback: BodyResponseCallback<Schema$PosStore>): void;
insert(params: Params$Resource$Pos$Insert, callback: BodyResponseCallback<Schema$PosStore>): void;
insert(callback: BodyResponseCallback<Schema$PosStore>): void;
/**
* content.pos.inventory
* @desc Submit inventory for the given merchant.
* @alias content.pos.inventory
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the POS or inventory data provider.
* @param {string} params.targetMerchantId The ID of the target merchant.
* @param {().PosInventoryRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
inventory(params?: Params$Resource$Pos$Inventory, options?: MethodOptions): GaxiosPromise<Schema$PosInventoryResponse>;
inventory(params: Params$Resource$Pos$Inventory, options: MethodOptions | BodyResponseCallback<Schema$PosInventoryResponse>, callback: BodyResponseCallback<Schema$PosInventoryResponse>): void;
inventory(params: Params$Resource$Pos$Inventory, callback: BodyResponseCallback<Schema$PosInventoryResponse>): void;
inventory(callback: BodyResponseCallback<Schema$PosInventoryResponse>): void;
/**
* content.pos.list
* @desc Lists the stores of the target merchant.
* @alias content.pos.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the POS or inventory data provider.
* @param {string} params.targetMerchantId The ID of the target merchant.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Pos$List, options?: MethodOptions): GaxiosPromise<Schema$PosListResponse>;
list(params: Params$Resource$Pos$List, options: MethodOptions | BodyResponseCallback<Schema$PosListResponse>, callback: BodyResponseCallback<Schema$PosListResponse>): void;
list(params: Params$Resource$Pos$List, callback: BodyResponseCallback<Schema$PosListResponse>): void;
list(callback: BodyResponseCallback<Schema$PosListResponse>): void;
/**
* content.pos.sale
* @desc Submit a sale event for the given merchant.
* @alias content.pos.sale
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the POS or inventory data provider.
* @param {string} params.targetMerchantId The ID of the target merchant.
* @param {().PosSaleRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
sale(params?: Params$Resource$Pos$Sale, options?: MethodOptions): GaxiosPromise<Schema$PosSaleResponse>;
sale(params: Params$Resource$Pos$Sale, options: MethodOptions | BodyResponseCallback<Schema$PosSaleResponse>, callback: BodyResponseCallback<Schema$PosSaleResponse>): void;
sale(params: Params$Resource$Pos$Sale, callback: BodyResponseCallback<Schema$PosSaleResponse>): void;
sale(callback: BodyResponseCallback<Schema$PosSaleResponse>): void;
}
interface Params$Resource$Pos$Custombatch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Request body metadata
*/
requestBody?: Schema$PosCustomBatchRequest;
}
interface Params$Resource$Pos$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the POS or inventory data provider.
*/
merchantId?: string;
/**
* A store code that is unique per merchant.
*/
storeCode?: string;
/**
* The ID of the target merchant.
*/
targetMerchantId?: string;
}
interface Params$Resource$Pos$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the POS or inventory data provider.
*/
merchantId?: string;
/**
* A store code that is unique per merchant.
*/
storeCode?: string;
/**
* The ID of the target merchant.
*/
targetMerchantId?: string;
}
interface Params$Resource$Pos$Insert extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the POS or inventory data provider.
*/
merchantId?: string;
/**
* The ID of the target merchant.
*/
targetMerchantId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$PosStore;
}
interface Params$Resource$Pos$Inventory extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the POS or inventory data provider.
*/
merchantId?: string;
/**
* The ID of the target merchant.
*/
targetMerchantId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$PosInventoryRequest;
}
interface Params$Resource$Pos$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the POS or inventory data provider.
*/
merchantId?: string;
/**
* The ID of the target merchant.
*/
targetMerchantId?: string;
}
interface Params$Resource$Pos$Sale extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the POS or inventory data provider.
*/
merchantId?: string;
/**
* The ID of the target merchant.
*/
targetMerchantId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$PosSaleRequest;
}
class Resource$Products {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* content.products.custombatch
* @desc Retrieves, inserts, and deletes multiple products in a single
* request.
* @alias content.products.custombatch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {().ProductsCustomBatchRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
custombatch(params?: Params$Resource$Products$Custombatch, options?: MethodOptions): GaxiosPromise<Schema$ProductsCustomBatchResponse>;
custombatch(params: Params$Resource$Products$Custombatch, options: MethodOptions | BodyResponseCallback<Schema$ProductsCustomBatchResponse>, callback: BodyResponseCallback<Schema$ProductsCustomBatchResponse>): void;
custombatch(params: Params$Resource$Products$Custombatch, callback: BodyResponseCallback<Schema$ProductsCustomBatchResponse>): void;
custombatch(callback: BodyResponseCallback<Schema$ProductsCustomBatchResponse>): void;
/**
* content.products.delete
* @desc Deletes a product from your Merchant Center account.
* @alias content.products.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account.
* @param {string} params.productId The REST ID of the product.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Products$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Products$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Products$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* content.products.get
* @desc Retrieves a product from your Merchant Center account.
* @alias content.products.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account.
* @param {string} params.productId The REST ID of the product.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Products$Get, options?: MethodOptions): GaxiosPromise<Schema$Product>;
get(params: Params$Resource$Products$Get, options: MethodOptions | BodyResponseCallback<Schema$Product>, callback: BodyResponseCallback<Schema$Product>): void;
get(params: Params$Resource$Products$Get, callback: BodyResponseCallback<Schema$Product>): void;
get(callback: BodyResponseCallback<Schema$Product>): void;
/**
* content.products.insert
* @desc Uploads a product to your Merchant Center account. If an item with
* the same channel, contentLanguage, offerId, and targetCountry already
* exists, this method updates that entry.
* @alias content.products.insert
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account.
* @param {().Product} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
insert(params?: Params$Resource$Products$Insert, options?: MethodOptions): GaxiosPromise<Schema$Product>;
insert(params: Params$Resource$Products$Insert, options: MethodOptions | BodyResponseCallback<Schema$Product>, callback: BodyResponseCallback<Schema$Product>): void;
insert(params: Params$Resource$Products$Insert, callback: BodyResponseCallback<Schema$Product>): void;
insert(callback: BodyResponseCallback<Schema$Product>): void;
/**
* content.products.list
* @desc Lists the products in your Merchant Center account.
* @alias content.products.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer=} params.maxResults The maximum number of products to return in the response, used for paging.
* @param {string} params.merchantId The ID of the account that contains the products. This account cannot be a multi-client account.
* @param {string=} params.pageToken The token returned by the previous request.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Products$List, options?: MethodOptions): GaxiosPromise<Schema$ProductsListResponse>;
list(params: Params$Resource$Products$List, options: MethodOptions | BodyResponseCallback<Schema$ProductsListResponse>, callback: BodyResponseCallback<Schema$ProductsListResponse>): void;
list(params: Params$Resource$Products$List, callback: BodyResponseCallback<Schema$ProductsListResponse>): void;
list(callback: BodyResponseCallback<Schema$ProductsListResponse>): void;
}
interface Params$Resource$Products$Custombatch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Request body metadata
*/
requestBody?: Schema$ProductsCustomBatchRequest;
}
interface Params$Resource$Products$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that contains the product. This account cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The REST ID of the product.
*/
productId?: string;
}
interface Params$Resource$Products$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that contains the product. This account cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The REST ID of the product.
*/
productId?: string;
}
interface Params$Resource$Products$Insert extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that contains the product. This account cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Product;
}
interface Params$Resource$Products$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The maximum number of products to return in the response, used for
* paging.
*/
maxResults?: number;
/**
* The ID of the account that contains the products. This account cannot be
* a multi-client account.
*/
merchantId?: string;
/**
* The token returned by the previous request.
*/
pageToken?: string;
}
class Resource$Productstatuses {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* content.productstatuses.custombatch
* @desc Gets the statuses of multiple products in a single request.
* @alias content.productstatuses.custombatch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {().ProductstatusesCustomBatchRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
custombatch(params?: Params$Resource$Productstatuses$Custombatch, options?: MethodOptions): GaxiosPromise<Schema$ProductstatusesCustomBatchResponse>;
custombatch(params: Params$Resource$Productstatuses$Custombatch, options: MethodOptions | BodyResponseCallback<Schema$ProductstatusesCustomBatchResponse>, callback: BodyResponseCallback<Schema$ProductstatusesCustomBatchResponse>): void;
custombatch(params: Params$Resource$Productstatuses$Custombatch, callback: BodyResponseCallback<Schema$ProductstatusesCustomBatchResponse>): void;
custombatch(callback: BodyResponseCallback<Schema$ProductstatusesCustomBatchResponse>): void;
/**
* content.productstatuses.get
* @desc Gets the status of a product from your Merchant Center account.
* @alias content.productstatuses.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string=} params.destinations If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.
* @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account.
* @param {string} params.productId The REST ID of the product.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Productstatuses$Get, options?: MethodOptions): GaxiosPromise<Schema$ProductStatus>;
get(params: Params$Resource$Productstatuses$Get, options: MethodOptions | BodyResponseCallback<Schema$ProductStatus>, callback: BodyResponseCallback<Schema$ProductStatus>): void;
get(params: Params$Resource$Productstatuses$Get, callback: BodyResponseCallback<Schema$ProductStatus>): void;
get(callback: BodyResponseCallback<Schema$ProductStatus>): void;
/**
* content.productstatuses.list
* @desc Lists the statuses of the products in your Merchant Center account.
* @alias content.productstatuses.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string=} params.destinations If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.
* @param {integer=} params.maxResults The maximum number of product statuses to return in the response, used for paging.
* @param {string} params.merchantId The ID of the account that contains the products. This account cannot be a multi-client account.
* @param {string=} params.pageToken The token returned by the previous request.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Productstatuses$List, options?: MethodOptions): GaxiosPromise<Schema$ProductstatusesListResponse>;
list(params: Params$Resource$Productstatuses$List, options: MethodOptions | BodyResponseCallback<Schema$ProductstatusesListResponse>, callback: BodyResponseCallback<Schema$ProductstatusesListResponse>): void;
list(params: Params$Resource$Productstatuses$List, callback: BodyResponseCallback<Schema$ProductstatusesListResponse>): void;
list(callback: BodyResponseCallback<Schema$ProductstatusesListResponse>): void;
}
interface Params$Resource$Productstatuses$Custombatch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Request body metadata
*/
requestBody?: Schema$ProductstatusesCustomBatchRequest;
}
interface Params$Resource$Productstatuses$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* If set, only issues for the specified destinations are returned,
* otherwise only issues for the Shopping destination.
*/
destinations?: string[];
/**
* The ID of the account that contains the product. This account cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The REST ID of the product.
*/
productId?: string;
}
interface Params$Resource$Productstatuses$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* If set, only issues for the specified destinations are returned,
* otherwise only issues for the Shopping destination.
*/
destinations?: string[];
/**
* The maximum number of product statuses to return in the response, used
* for paging.
*/
maxResults?: number;
/**
* The ID of the account that contains the products. This account cannot be
* a multi-client account.
*/
merchantId?: string;
/**
* The token returned by the previous request.
*/
pageToken?: string;
}
class Resource$Regionalinventory {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* content.regionalinventory.custombatch
* @desc Updates regional inventory for multiple products or regions in a
* single request.
* @alias content.regionalinventory.custombatch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {().RegionalinventoryCustomBatchRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
custombatch(params?: Params$Resource$Regionalinventory$Custombatch, options?: MethodOptions): GaxiosPromise<Schema$RegionalinventoryCustomBatchResponse>;
custombatch(params: Params$Resource$Regionalinventory$Custombatch, options: MethodOptions | BodyResponseCallback<Schema$RegionalinventoryCustomBatchResponse>, callback: BodyResponseCallback<Schema$RegionalinventoryCustomBatchResponse>): void;
custombatch(params: Params$Resource$Regionalinventory$Custombatch, callback: BodyResponseCallback<Schema$RegionalinventoryCustomBatchResponse>): void;
custombatch(callback: BodyResponseCallback<Schema$RegionalinventoryCustomBatchResponse>): void;
/**
* content.regionalinventory.insert
* @desc Update the regional inventory of a product in your Merchant Center
* account. If a regional inventory with the same region ID already exists,
* this method updates that entry.
* @alias content.regionalinventory.insert
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account.
* @param {string} params.productId The REST ID of the product for which to update the regional inventory.
* @param {().RegionalInventory} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
insert(params?: Params$Resource$Regionalinventory$Insert, options?: MethodOptions): GaxiosPromise<Schema$RegionalInventory>;
insert(params: Params$Resource$Regionalinventory$Insert, options: MethodOptions | BodyResponseCallback<Schema$RegionalInventory>, callback: BodyResponseCallback<Schema$RegionalInventory>): void;
insert(params: Params$Resource$Regionalinventory$Insert, callback: BodyResponseCallback<Schema$RegionalInventory>): void;
insert(callback: BodyResponseCallback<Schema$RegionalInventory>): void;
}
interface Params$Resource$Regionalinventory$Custombatch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Request body metadata
*/
requestBody?: Schema$RegionalinventoryCustomBatchRequest;
}
interface Params$Resource$Regionalinventory$Insert extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account that contains the product. This account cannot be a
* multi-client account.
*/
merchantId?: string;
/**
* The REST ID of the product for which to update the regional inventory.
*/
productId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$RegionalInventory;
}
class Resource$Shippingsettings {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* content.shippingsettings.custombatch
* @desc Retrieves and updates the shipping settings of multiple accounts in
* a single request.
* @alias content.shippingsettings.custombatch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {().ShippingsettingsCustomBatchRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
custombatch(params?: Params$Resource$Shippingsettings$Custombatch, options?: MethodOptions): GaxiosPromise<Schema$ShippingsettingsCustomBatchResponse>;
custombatch(params: Params$Resource$Shippingsettings$Custombatch, options: MethodOptions | BodyResponseCallback<Schema$ShippingsettingsCustomBatchResponse>, callback: BodyResponseCallback<Schema$ShippingsettingsCustomBatchResponse>): void;
custombatch(params: Params$Resource$Shippingsettings$Custombatch, callback: BodyResponseCallback<Schema$ShippingsettingsCustomBatchResponse>): void;
custombatch(callback: BodyResponseCallback<Schema$ShippingsettingsCustomBatchResponse>): void;
/**
* content.shippingsettings.get
* @desc Retrieves the shipping settings of the account.
* @alias content.shippingsettings.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account for which to get/update shipping settings.
* @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Shippingsettings$Get, options?: MethodOptions): GaxiosPromise<Schema$ShippingSettings>;
get(params: Params$Resource$Shippingsettings$Get, options: MethodOptions | BodyResponseCallback<Schema$ShippingSettings>, callback: BodyResponseCallback<Schema$ShippingSettings>): void;
get(params: Params$Resource$Shippingsettings$Get, callback: BodyResponseCallback<Schema$ShippingSettings>): void;
get(callback: BodyResponseCallback<Schema$ShippingSettings>): void;
/**
* content.shippingsettings.getsupportedcarriers
* @desc Retrieves supported carriers and carrier services for an account.
* @alias content.shippingsettings.getsupportedcarriers
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account for which to retrieve the supported carriers.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
getsupportedcarriers(params?: Params$Resource$Shippingsettings$Getsupportedcarriers, options?: MethodOptions): GaxiosPromise<Schema$ShippingsettingsGetSupportedCarriersResponse>;
getsupportedcarriers(params: Params$Resource$Shippingsettings$Getsupportedcarriers, options: MethodOptions | BodyResponseCallback<Schema$ShippingsettingsGetSupportedCarriersResponse>, callback: BodyResponseCallback<Schema$ShippingsettingsGetSupportedCarriersResponse>): void;
getsupportedcarriers(params: Params$Resource$Shippingsettings$Getsupportedcarriers, callback: BodyResponseCallback<Schema$ShippingsettingsGetSupportedCarriersResponse>): void;
getsupportedcarriers(callback: BodyResponseCallback<Schema$ShippingsettingsGetSupportedCarriersResponse>): void;
/**
* content.shippingsettings.getsupportedholidays
* @desc Retrieves supported holidays for an account.
* @alias content.shippingsettings.getsupportedholidays
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.merchantId The ID of the account for which to retrieve the supported holidays.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
getsupportedholidays(params?: Params$Resource$Shippingsettings$Getsupportedholidays, options?: MethodOptions): GaxiosPromise<Schema$ShippingsettingsGetSupportedHolidaysResponse>;
getsupportedholidays(params: Params$Resource$Shippingsettings$Getsupportedholidays, options: MethodOptions | BodyResponseCallback<Schema$ShippingsettingsGetSupportedHolidaysResponse>, callback: BodyResponseCallback<Schema$ShippingsettingsGetSupportedHolidaysResponse>): void;
getsupportedholidays(params: Params$Resource$Shippingsettings$Getsupportedholidays, callback: BodyResponseCallback<Schema$ShippingsettingsGetSupportedHolidaysResponse>): void;
getsupportedholidays(callback: BodyResponseCallback<Schema$ShippingsettingsGetSupportedHolidaysResponse>): void;
/**
* content.shippingsettings.list
* @desc Lists the shipping settings of the sub-accounts in your Merchant
* Center account.
* @alias content.shippingsettings.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer=} params.maxResults The maximum number of shipping settings to return in the response, used for paging.
* @param {string} params.merchantId The ID of the managing account. This must be a multi-client account.
* @param {string=} params.pageToken The token returned by the previous request.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Shippingsettings$List, options?: MethodOptions): GaxiosPromise<Schema$ShippingsettingsListResponse>;
list(params: Params$Resource$Shippingsettings$List, options: MethodOptions | BodyResponseCallback<Schema$ShippingsettingsListResponse>, callback: BodyResponseCallback<Schema$ShippingsettingsListResponse>): void;
list(params: Params$Resource$Shippingsettings$List, callback: BodyResponseCallback<Schema$ShippingsettingsListResponse>): void;
list(callback: BodyResponseCallback<Schema$ShippingsettingsListResponse>): void;
/**
* content.shippingsettings.update
* @desc Updates the shipping settings of the account.
* @alias content.shippingsettings.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.accountId The ID of the account for which to get/update shipping settings.
* @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.
* @param {().ShippingSettings} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Shippingsettings$Update, options?: MethodOptions): GaxiosPromise<Schema$ShippingSettings>;
update(params: Params$Resource$Shippingsettings$Update, options: MethodOptions | BodyResponseCallback<Schema$ShippingSettings>, callback: BodyResponseCallback<Schema$ShippingSettings>): void;
update(params: Params$Resource$Shippingsettings$Update, callback: BodyResponseCallback<Schema$ShippingSettings>): void;
update(callback: BodyResponseCallback<Schema$ShippingSettings>): void;
}
interface Params$Resource$Shippingsettings$Custombatch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Request body metadata
*/
requestBody?: Schema$ShippingsettingsCustomBatchRequest;
}
interface Params$Resource$Shippingsettings$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account for which to get/update shipping settings.
*/
accountId?: string;
/**
* The ID of the managing account. If this parameter is not the same as
* accountId, then this account must be a multi-client account and accountId
* must be the ID of a sub-account of this account.
*/
merchantId?: string;
}
interface Params$Resource$Shippingsettings$Getsupportedcarriers extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account for which to retrieve the supported carriers.
*/
merchantId?: string;
}
interface Params$Resource$Shippingsettings$Getsupportedholidays extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account for which to retrieve the supported holidays.
*/
merchantId?: string;
}
interface Params$Resource$Shippingsettings$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The maximum number of shipping settings to return in the response, used
* for paging.
*/
maxResults?: number;
/**
* The ID of the managing account. This must be a multi-client account.
*/
merchantId?: string;
/**
* The token returned by the previous request.
*/
pageToken?: string;
}
interface Params$Resource$Shippingsettings$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* The ID of the account for which to get/update shipping settings.
*/
accountId?: string;
/**
* The ID of the managing account. If this parameter is not the same as
* accountId, then this account must be a multi-client account and accountId
* must be the ID of a sub-account of this account.
*/
merchantId?: string;
/**
* Request body metadata
*/
requestBody?: Schema$ShippingSettings;
}
}