@googleapis/merchantapi 6.0.1 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +9 -0
  3. package/accounts_v1beta.ts +6894 -534
  4. package/build/accounts_v1beta.d.ts +4933 -137
  5. package/build/accounts_v1beta.js +679 -26
  6. package/build/accounts_v1beta.js.map +1 -1
  7. package/build/conversions_v1beta.d.ts +336 -1
  8. package/build/conversions_v1beta.js.map +1 -1
  9. package/build/datasources_v1beta.d.ts +412 -6
  10. package/build/datasources_v1beta.js.map +1 -1
  11. package/build/inventories_v1beta.d.ts +336 -2
  12. package/build/inventories_v1beta.js.map +1 -1
  13. package/build/issueresolution_v1beta.d.ts +367 -1
  14. package/build/issueresolution_v1beta.js +48 -0
  15. package/build/issueresolution_v1beta.js.map +1 -1
  16. package/build/lfp_v1beta.d.ts +436 -3
  17. package/build/lfp_v1beta.js.map +1 -1
  18. package/build/notifications_v1beta.d.ts +272 -1
  19. package/build/notifications_v1beta.js.map +1 -1
  20. package/build/ordertracking_v1beta.d.ts +75 -1
  21. package/build/ordertracking_v1beta.js.map +1 -1
  22. package/build/products_v1beta.d.ts +352 -45
  23. package/build/products_v1beta.js.map +1 -1
  24. package/build/promotions_v1beta.d.ts +171 -4
  25. package/build/promotions_v1beta.js.map +1 -1
  26. package/build/quota_v1beta.d.ts +52 -1
  27. package/build/quota_v1beta.js.map +1 -1
  28. package/build/reports_v1beta.d.ts +58 -1
  29. package/build/reports_v1beta.js.map +1 -1
  30. package/build/reviews_v1beta.d.ts +434 -2
  31. package/build/reviews_v1beta.js.map +1 -1
  32. package/conversions_v1beta.ts +336 -1
  33. package/datasources_v1beta.ts +412 -6
  34. package/inventories_v1beta.ts +336 -2
  35. package/issueresolution_v1beta.ts +465 -1
  36. package/lfp_v1beta.ts +436 -3
  37. package/notifications_v1beta.ts +272 -1
  38. package/ordertracking_v1beta.ts +75 -1
  39. package/package.json +1 -1
  40. package/products_v1beta.ts +352 -45
  41. package/promotions_v1beta.ts +171 -4
  42. package/quota_v1beta.ts +52 -1
  43. package/reports_v1beta.ts +58 -1
  44. package/reviews_v1beta.ts +434 -2
@@ -50,9 +50,12 @@ var merchantapi_accounts_v1beta;
50
50
  this.automaticImprovements = new Resource$Accounts$Automaticimprovements(this.context);
51
51
  this.businessIdentity = new Resource$Accounts$Businessidentity(this.context);
52
52
  this.businessInfo = new Resource$Accounts$Businessinfo(this.context);
53
+ this.developerRegistration = new Resource$Accounts$Developerregistration(this.context);
53
54
  this.emailPreferences = new Resource$Accounts$Emailpreferences(this.context);
55
+ this.gbpAccounts = new Resource$Accounts$Gbpaccounts(this.context);
54
56
  this.homepage = new Resource$Accounts$Homepage(this.context);
55
57
  this.issues = new Resource$Accounts$Issues(this.context);
58
+ this.omnichannelSettings = new Resource$Accounts$Omnichannelsettings(this.context);
56
59
  this.onlineReturnPolicies = new Resource$Accounts$Onlinereturnpolicies(this.context);
57
60
  this.programs = new Resource$Accounts$Programs(this.context);
58
61
  this.regions = new Resource$Accounts$Regions(this.context);
@@ -157,6 +160,38 @@ var merchantapi_accounts_v1beta;
157
160
  return (0, googleapis_common_1.createAPIRequest)(parameters);
158
161
  }
159
162
  }
163
+ getDeveloperRegistration(paramsOrCallback, optionsOrCallback, callback) {
164
+ let params = (paramsOrCallback ||
165
+ {});
166
+ let options = (optionsOrCallback || {});
167
+ if (typeof paramsOrCallback === 'function') {
168
+ callback = paramsOrCallback;
169
+ params = {};
170
+ options = {};
171
+ }
172
+ if (typeof optionsOrCallback === 'function') {
173
+ callback = optionsOrCallback;
174
+ options = {};
175
+ }
176
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
177
+ const parameters = {
178
+ options: Object.assign({
179
+ url: (rootUrl + '/accounts/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
180
+ method: 'GET',
181
+ apiVersion: '',
182
+ }, options),
183
+ params,
184
+ requiredParams: ['name'],
185
+ pathParams: ['name'],
186
+ context: this.context,
187
+ };
188
+ if (callback) {
189
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
190
+ }
191
+ else {
192
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
193
+ }
194
+ }
160
195
  list(paramsOrCallback, optionsOrCallback, callback) {
161
196
  let params = (paramsOrCallback || {});
162
197
  let options = (optionsOrCallback || {});
@@ -539,6 +574,78 @@ var merchantapi_accounts_v1beta;
539
574
  }
540
575
  }
541
576
  merchantapi_accounts_v1beta.Resource$Accounts$Businessinfo = Resource$Accounts$Businessinfo;
577
+ class Resource$Accounts$Developerregistration {
578
+ constructor(context) {
579
+ this.context = context;
580
+ }
581
+ registerGcp(paramsOrCallback, optionsOrCallback, callback) {
582
+ let params = (paramsOrCallback ||
583
+ {});
584
+ let options = (optionsOrCallback || {});
585
+ if (typeof paramsOrCallback === 'function') {
586
+ callback = paramsOrCallback;
587
+ params =
588
+ {};
589
+ options = {};
590
+ }
591
+ if (typeof optionsOrCallback === 'function') {
592
+ callback = optionsOrCallback;
593
+ options = {};
594
+ }
595
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
596
+ const parameters = {
597
+ options: Object.assign({
598
+ url: (rootUrl + '/accounts/v1beta/{+name}:registerGcp').replace(/([^:]\/)\/+/g, '$1'),
599
+ method: 'POST',
600
+ apiVersion: '',
601
+ }, options),
602
+ params,
603
+ requiredParams: ['name'],
604
+ pathParams: ['name'],
605
+ context: this.context,
606
+ };
607
+ if (callback) {
608
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
609
+ }
610
+ else {
611
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
612
+ }
613
+ }
614
+ unregisterGcp(paramsOrCallback, optionsOrCallback, callback) {
615
+ let params = (paramsOrCallback ||
616
+ {});
617
+ let options = (optionsOrCallback || {});
618
+ if (typeof paramsOrCallback === 'function') {
619
+ callback = paramsOrCallback;
620
+ params =
621
+ {};
622
+ options = {};
623
+ }
624
+ if (typeof optionsOrCallback === 'function') {
625
+ callback = optionsOrCallback;
626
+ options = {};
627
+ }
628
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
629
+ const parameters = {
630
+ options: Object.assign({
631
+ url: (rootUrl + '/accounts/v1beta/{+name}:unregisterGcp').replace(/([^:]\/)\/+/g, '$1'),
632
+ method: 'POST',
633
+ apiVersion: '',
634
+ }, options),
635
+ params,
636
+ requiredParams: ['name'],
637
+ pathParams: ['name'],
638
+ context: this.context,
639
+ };
640
+ if (callback) {
641
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
642
+ }
643
+ else {
644
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
645
+ }
646
+ }
647
+ }
648
+ merchantapi_accounts_v1beta.Resource$Accounts$Developerregistration = Resource$Accounts$Developerregistration;
542
649
  class Resource$Accounts$Emailpreferences {
543
650
  constructor(context) {
544
651
  this.context = context;
@@ -611,6 +718,76 @@ var merchantapi_accounts_v1beta;
611
718
  }
612
719
  }
613
720
  merchantapi_accounts_v1beta.Resource$Accounts$Emailpreferences = Resource$Accounts$Emailpreferences;
721
+ class Resource$Accounts$Gbpaccounts {
722
+ constructor(context) {
723
+ this.context = context;
724
+ }
725
+ linkGbpAccount(paramsOrCallback, optionsOrCallback, callback) {
726
+ let params = (paramsOrCallback ||
727
+ {});
728
+ let options = (optionsOrCallback || {});
729
+ if (typeof paramsOrCallback === 'function') {
730
+ callback = paramsOrCallback;
731
+ params = {};
732
+ options = {};
733
+ }
734
+ if (typeof optionsOrCallback === 'function') {
735
+ callback = optionsOrCallback;
736
+ options = {};
737
+ }
738
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
739
+ const parameters = {
740
+ options: Object.assign({
741
+ url: (rootUrl + '/accounts/v1beta/{+parent}/gbpAccounts:linkGbpAccount').replace(/([^:]\/)\/+/g, '$1'),
742
+ method: 'POST',
743
+ apiVersion: '',
744
+ }, options),
745
+ params,
746
+ requiredParams: ['parent'],
747
+ pathParams: ['parent'],
748
+ context: this.context,
749
+ };
750
+ if (callback) {
751
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
752
+ }
753
+ else {
754
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
755
+ }
756
+ }
757
+ list(paramsOrCallback, optionsOrCallback, callback) {
758
+ let params = (paramsOrCallback ||
759
+ {});
760
+ let options = (optionsOrCallback || {});
761
+ if (typeof paramsOrCallback === 'function') {
762
+ callback = paramsOrCallback;
763
+ params = {};
764
+ options = {};
765
+ }
766
+ if (typeof optionsOrCallback === 'function') {
767
+ callback = optionsOrCallback;
768
+ options = {};
769
+ }
770
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
771
+ const parameters = {
772
+ options: Object.assign({
773
+ url: (rootUrl + '/accounts/v1beta/{+parent}/gbpAccounts').replace(/([^:]\/)\/+/g, '$1'),
774
+ method: 'GET',
775
+ apiVersion: '',
776
+ }, options),
777
+ params,
778
+ requiredParams: ['parent'],
779
+ pathParams: ['parent'],
780
+ context: this.context,
781
+ };
782
+ if (callback) {
783
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
784
+ }
785
+ else {
786
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
787
+ }
788
+ }
789
+ }
790
+ merchantapi_accounts_v1beta.Resource$Accounts$Gbpaccounts = Resource$Accounts$Gbpaccounts;
614
791
  class Resource$Accounts$Homepage {
615
792
  constructor(context) {
616
793
  this.context = context;
@@ -783,9 +960,43 @@ var merchantapi_accounts_v1beta;
783
960
  }
784
961
  }
785
962
  merchantapi_accounts_v1beta.Resource$Accounts$Issues = Resource$Accounts$Issues;
786
- class Resource$Accounts$Onlinereturnpolicies {
963
+ class Resource$Accounts$Omnichannelsettings {
787
964
  constructor(context) {
788
965
  this.context = context;
966
+ this.lfpProviders =
967
+ new Resource$Accounts$Omnichannelsettings$Lfpproviders(this.context);
968
+ }
969
+ create(paramsOrCallback, optionsOrCallback, callback) {
970
+ let params = (paramsOrCallback ||
971
+ {});
972
+ let options = (optionsOrCallback || {});
973
+ if (typeof paramsOrCallback === 'function') {
974
+ callback = paramsOrCallback;
975
+ params = {};
976
+ options = {};
977
+ }
978
+ if (typeof optionsOrCallback === 'function') {
979
+ callback = optionsOrCallback;
980
+ options = {};
981
+ }
982
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
983
+ const parameters = {
984
+ options: Object.assign({
985
+ url: (rootUrl + '/accounts/v1beta/{+parent}/omnichannelSettings').replace(/([^:]\/)\/+/g, '$1'),
986
+ method: 'POST',
987
+ apiVersion: '',
988
+ }, options),
989
+ params,
990
+ requiredParams: ['parent'],
991
+ pathParams: ['parent'],
992
+ context: this.context,
993
+ };
994
+ if (callback) {
995
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
996
+ }
997
+ else {
998
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
999
+ }
789
1000
  }
790
1001
  get(paramsOrCallback, optionsOrCallback, callback) {
791
1002
  let params = (paramsOrCallback ||
@@ -835,7 +1046,7 @@ var merchantapi_accounts_v1beta;
835
1046
  const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
836
1047
  const parameters = {
837
1048
  options: Object.assign({
838
- url: (rootUrl + '/accounts/v1beta/{+parent}/onlineReturnPolicies').replace(/([^:]\/)\/+/g, '$1'),
1049
+ url: (rootUrl + '/accounts/v1beta/{+parent}/omnichannelSettings').replace(/([^:]\/)\/+/g, '$1'),
839
1050
  method: 'GET',
840
1051
  apiVersion: '',
841
1052
  }, options),
@@ -851,13 +1062,7 @@ var merchantapi_accounts_v1beta;
851
1062
  return (0, googleapis_common_1.createAPIRequest)(parameters);
852
1063
  }
853
1064
  }
854
- }
855
- merchantapi_accounts_v1beta.Resource$Accounts$Onlinereturnpolicies = Resource$Accounts$Onlinereturnpolicies;
856
- class Resource$Accounts$Programs {
857
- constructor(context) {
858
- this.context = context;
859
- }
860
- disable(paramsOrCallback, optionsOrCallback, callback) {
1065
+ patch(paramsOrCallback, optionsOrCallback, callback) {
861
1066
  let params = (paramsOrCallback ||
862
1067
  {});
863
1068
  let options = (optionsOrCallback || {});
@@ -873,8 +1078,8 @@ var merchantapi_accounts_v1beta;
873
1078
  const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
874
1079
  const parameters = {
875
1080
  options: Object.assign({
876
- url: (rootUrl + '/accounts/v1beta/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'),
877
- method: 'POST',
1081
+ url: (rootUrl + '/accounts/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1082
+ method: 'PATCH',
878
1083
  apiVersion: '',
879
1084
  }, options),
880
1085
  params,
@@ -889,13 +1094,14 @@ var merchantapi_accounts_v1beta;
889
1094
  return (0, googleapis_common_1.createAPIRequest)(parameters);
890
1095
  }
891
1096
  }
892
- enable(paramsOrCallback, optionsOrCallback, callback) {
1097
+ requestInventoryVerification(paramsOrCallback, optionsOrCallback, callback) {
893
1098
  let params = (paramsOrCallback ||
894
1099
  {});
895
1100
  let options = (optionsOrCallback || {});
896
1101
  if (typeof paramsOrCallback === 'function') {
897
1102
  callback = paramsOrCallback;
898
- params = {};
1103
+ params =
1104
+ {};
899
1105
  options = {};
900
1106
  }
901
1107
  if (typeof optionsOrCallback === 'function') {
@@ -905,7 +1111,7 @@ var merchantapi_accounts_v1beta;
905
1111
  const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
906
1112
  const parameters = {
907
1113
  options: Object.assign({
908
- url: (rootUrl + '/accounts/v1beta/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'),
1114
+ url: (rootUrl + '/accounts/v1beta/{+name}:requestInventoryVerification').replace(/([^:]\/)\/+/g, '$1'),
909
1115
  method: 'POST',
910
1116
  apiVersion: '',
911
1117
  }, options),
@@ -921,13 +1127,20 @@ var merchantapi_accounts_v1beta;
921
1127
  return (0, googleapis_common_1.createAPIRequest)(parameters);
922
1128
  }
923
1129
  }
924
- get(paramsOrCallback, optionsOrCallback, callback) {
1130
+ }
1131
+ merchantapi_accounts_v1beta.Resource$Accounts$Omnichannelsettings = Resource$Accounts$Omnichannelsettings;
1132
+ class Resource$Accounts$Omnichannelsettings$Lfpproviders {
1133
+ constructor(context) {
1134
+ this.context = context;
1135
+ }
1136
+ find(paramsOrCallback, optionsOrCallback, callback) {
925
1137
  let params = (paramsOrCallback ||
926
1138
  {});
927
1139
  let options = (optionsOrCallback || {});
928
1140
  if (typeof paramsOrCallback === 'function') {
929
1141
  callback = paramsOrCallback;
930
- params = {};
1142
+ params =
1143
+ {};
931
1144
  options = {};
932
1145
  }
933
1146
  if (typeof optionsOrCallback === 'function') {
@@ -937,13 +1150,13 @@ var merchantapi_accounts_v1beta;
937
1150
  const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
938
1151
  const parameters = {
939
1152
  options: Object.assign({
940
- url: (rootUrl + '/accounts/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1153
+ url: (rootUrl + '/accounts/v1beta/{+parent}/lfpProviders:find').replace(/([^:]\/)\/+/g, '$1'),
941
1154
  method: 'GET',
942
1155
  apiVersion: '',
943
1156
  }, options),
944
1157
  params,
945
- requiredParams: ['name'],
946
- pathParams: ['name'],
1158
+ requiredParams: ['parent'],
1159
+ pathParams: ['parent'],
947
1160
  context: this.context,
948
1161
  };
949
1162
  if (callback) {
@@ -953,13 +1166,14 @@ var merchantapi_accounts_v1beta;
953
1166
  return (0, googleapis_common_1.createAPIRequest)(parameters);
954
1167
  }
955
1168
  }
956
- list(paramsOrCallback, optionsOrCallback, callback) {
1169
+ linkLfpProvider(paramsOrCallback, optionsOrCallback, callback) {
957
1170
  let params = (paramsOrCallback ||
958
1171
  {});
959
1172
  let options = (optionsOrCallback || {});
960
1173
  if (typeof paramsOrCallback === 'function') {
961
1174
  callback = paramsOrCallback;
962
- params = {};
1175
+ params =
1176
+ {};
963
1177
  options = {};
964
1178
  }
965
1179
  if (typeof optionsOrCallback === 'function') {
@@ -969,13 +1183,13 @@ var merchantapi_accounts_v1beta;
969
1183
  const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
970
1184
  const parameters = {
971
1185
  options: Object.assign({
972
- url: (rootUrl + '/accounts/v1beta/{+parent}/programs').replace(/([^:]\/)\/+/g, '$1'),
973
- method: 'GET',
1186
+ url: (rootUrl + '/accounts/v1beta/{+name}:linkLfpProvider').replace(/([^:]\/)\/+/g, '$1'),
1187
+ method: 'POST',
974
1188
  apiVersion: '',
975
1189
  }, options),
976
1190
  params,
977
- requiredParams: ['parent'],
978
- pathParams: ['parent'],
1191
+ requiredParams: ['name'],
1192
+ pathParams: ['name'],
979
1193
  context: this.context,
980
1194
  };
981
1195
  if (callback) {
@@ -986,7 +1200,446 @@ var merchantapi_accounts_v1beta;
986
1200
  }
987
1201
  }
988
1202
  }
989
- merchantapi_accounts_v1beta.Resource$Accounts$Programs = Resource$Accounts$Programs;
1203
+ merchantapi_accounts_v1beta.Resource$Accounts$Omnichannelsettings$Lfpproviders = Resource$Accounts$Omnichannelsettings$Lfpproviders;
1204
+ class Resource$Accounts$Onlinereturnpolicies {
1205
+ constructor(context) {
1206
+ this.context = context;
1207
+ }
1208
+ create(paramsOrCallback, optionsOrCallback, callback) {
1209
+ let params = (paramsOrCallback ||
1210
+ {});
1211
+ let options = (optionsOrCallback || {});
1212
+ if (typeof paramsOrCallback === 'function') {
1213
+ callback = paramsOrCallback;
1214
+ params = {};
1215
+ options = {};
1216
+ }
1217
+ if (typeof optionsOrCallback === 'function') {
1218
+ callback = optionsOrCallback;
1219
+ options = {};
1220
+ }
1221
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1222
+ const parameters = {
1223
+ options: Object.assign({
1224
+ url: (rootUrl + '/accounts/v1beta/{+parent}/onlineReturnPolicies').replace(/([^:]\/)\/+/g, '$1'),
1225
+ method: 'POST',
1226
+ apiVersion: '',
1227
+ }, options),
1228
+ params,
1229
+ requiredParams: ['parent'],
1230
+ pathParams: ['parent'],
1231
+ context: this.context,
1232
+ };
1233
+ if (callback) {
1234
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1235
+ }
1236
+ else {
1237
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1238
+ }
1239
+ }
1240
+ delete(paramsOrCallback, optionsOrCallback, callback) {
1241
+ let params = (paramsOrCallback ||
1242
+ {});
1243
+ let options = (optionsOrCallback || {});
1244
+ if (typeof paramsOrCallback === 'function') {
1245
+ callback = paramsOrCallback;
1246
+ params = {};
1247
+ options = {};
1248
+ }
1249
+ if (typeof optionsOrCallback === 'function') {
1250
+ callback = optionsOrCallback;
1251
+ options = {};
1252
+ }
1253
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1254
+ const parameters = {
1255
+ options: Object.assign({
1256
+ url: (rootUrl + '/accounts/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1257
+ method: 'DELETE',
1258
+ apiVersion: '',
1259
+ }, options),
1260
+ params,
1261
+ requiredParams: ['name'],
1262
+ pathParams: ['name'],
1263
+ context: this.context,
1264
+ };
1265
+ if (callback) {
1266
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1267
+ }
1268
+ else {
1269
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1270
+ }
1271
+ }
1272
+ get(paramsOrCallback, optionsOrCallback, callback) {
1273
+ let params = (paramsOrCallback ||
1274
+ {});
1275
+ let options = (optionsOrCallback || {});
1276
+ if (typeof paramsOrCallback === 'function') {
1277
+ callback = paramsOrCallback;
1278
+ params = {};
1279
+ options = {};
1280
+ }
1281
+ if (typeof optionsOrCallback === 'function') {
1282
+ callback = optionsOrCallback;
1283
+ options = {};
1284
+ }
1285
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1286
+ const parameters = {
1287
+ options: Object.assign({
1288
+ url: (rootUrl + '/accounts/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1289
+ method: 'GET',
1290
+ apiVersion: '',
1291
+ }, options),
1292
+ params,
1293
+ requiredParams: ['name'],
1294
+ pathParams: ['name'],
1295
+ context: this.context,
1296
+ };
1297
+ if (callback) {
1298
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1299
+ }
1300
+ else {
1301
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1302
+ }
1303
+ }
1304
+ list(paramsOrCallback, optionsOrCallback, callback) {
1305
+ let params = (paramsOrCallback ||
1306
+ {});
1307
+ let options = (optionsOrCallback || {});
1308
+ if (typeof paramsOrCallback === 'function') {
1309
+ callback = paramsOrCallback;
1310
+ params = {};
1311
+ options = {};
1312
+ }
1313
+ if (typeof optionsOrCallback === 'function') {
1314
+ callback = optionsOrCallback;
1315
+ options = {};
1316
+ }
1317
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1318
+ const parameters = {
1319
+ options: Object.assign({
1320
+ url: (rootUrl + '/accounts/v1beta/{+parent}/onlineReturnPolicies').replace(/([^:]\/)\/+/g, '$1'),
1321
+ method: 'GET',
1322
+ apiVersion: '',
1323
+ }, options),
1324
+ params,
1325
+ requiredParams: ['parent'],
1326
+ pathParams: ['parent'],
1327
+ context: this.context,
1328
+ };
1329
+ if (callback) {
1330
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1331
+ }
1332
+ else {
1333
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1334
+ }
1335
+ }
1336
+ patch(paramsOrCallback, optionsOrCallback, callback) {
1337
+ let params = (paramsOrCallback ||
1338
+ {});
1339
+ let options = (optionsOrCallback || {});
1340
+ if (typeof paramsOrCallback === 'function') {
1341
+ callback = paramsOrCallback;
1342
+ params = {};
1343
+ options = {};
1344
+ }
1345
+ if (typeof optionsOrCallback === 'function') {
1346
+ callback = optionsOrCallback;
1347
+ options = {};
1348
+ }
1349
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1350
+ const parameters = {
1351
+ options: Object.assign({
1352
+ url: (rootUrl + '/accounts/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1353
+ method: 'PATCH',
1354
+ apiVersion: '',
1355
+ }, options),
1356
+ params,
1357
+ requiredParams: ['name'],
1358
+ pathParams: ['name'],
1359
+ context: this.context,
1360
+ };
1361
+ if (callback) {
1362
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1363
+ }
1364
+ else {
1365
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1366
+ }
1367
+ }
1368
+ }
1369
+ merchantapi_accounts_v1beta.Resource$Accounts$Onlinereturnpolicies = Resource$Accounts$Onlinereturnpolicies;
1370
+ class Resource$Accounts$Programs {
1371
+ constructor(context) {
1372
+ this.context = context;
1373
+ this.checkoutSettings = new Resource$Accounts$Programs$Checkoutsettings(this.context);
1374
+ }
1375
+ disable(paramsOrCallback, optionsOrCallback, callback) {
1376
+ let params = (paramsOrCallback ||
1377
+ {});
1378
+ let options = (optionsOrCallback || {});
1379
+ if (typeof paramsOrCallback === 'function') {
1380
+ callback = paramsOrCallback;
1381
+ params = {};
1382
+ options = {};
1383
+ }
1384
+ if (typeof optionsOrCallback === 'function') {
1385
+ callback = optionsOrCallback;
1386
+ options = {};
1387
+ }
1388
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1389
+ const parameters = {
1390
+ options: Object.assign({
1391
+ url: (rootUrl + '/accounts/v1beta/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'),
1392
+ method: 'POST',
1393
+ apiVersion: '',
1394
+ }, options),
1395
+ params,
1396
+ requiredParams: ['name'],
1397
+ pathParams: ['name'],
1398
+ context: this.context,
1399
+ };
1400
+ if (callback) {
1401
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1402
+ }
1403
+ else {
1404
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1405
+ }
1406
+ }
1407
+ enable(paramsOrCallback, optionsOrCallback, callback) {
1408
+ let params = (paramsOrCallback ||
1409
+ {});
1410
+ let options = (optionsOrCallback || {});
1411
+ if (typeof paramsOrCallback === 'function') {
1412
+ callback = paramsOrCallback;
1413
+ params = {};
1414
+ options = {};
1415
+ }
1416
+ if (typeof optionsOrCallback === 'function') {
1417
+ callback = optionsOrCallback;
1418
+ options = {};
1419
+ }
1420
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1421
+ const parameters = {
1422
+ options: Object.assign({
1423
+ url: (rootUrl + '/accounts/v1beta/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'),
1424
+ method: 'POST',
1425
+ apiVersion: '',
1426
+ }, options),
1427
+ params,
1428
+ requiredParams: ['name'],
1429
+ pathParams: ['name'],
1430
+ context: this.context,
1431
+ };
1432
+ if (callback) {
1433
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1434
+ }
1435
+ else {
1436
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1437
+ }
1438
+ }
1439
+ get(paramsOrCallback, optionsOrCallback, callback) {
1440
+ let params = (paramsOrCallback ||
1441
+ {});
1442
+ let options = (optionsOrCallback || {});
1443
+ if (typeof paramsOrCallback === 'function') {
1444
+ callback = paramsOrCallback;
1445
+ params = {};
1446
+ options = {};
1447
+ }
1448
+ if (typeof optionsOrCallback === 'function') {
1449
+ callback = optionsOrCallback;
1450
+ options = {};
1451
+ }
1452
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1453
+ const parameters = {
1454
+ options: Object.assign({
1455
+ url: (rootUrl + '/accounts/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1456
+ method: 'GET',
1457
+ apiVersion: '',
1458
+ }, options),
1459
+ params,
1460
+ requiredParams: ['name'],
1461
+ pathParams: ['name'],
1462
+ context: this.context,
1463
+ };
1464
+ if (callback) {
1465
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1466
+ }
1467
+ else {
1468
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1469
+ }
1470
+ }
1471
+ list(paramsOrCallback, optionsOrCallback, callback) {
1472
+ let params = (paramsOrCallback ||
1473
+ {});
1474
+ let options = (optionsOrCallback || {});
1475
+ if (typeof paramsOrCallback === 'function') {
1476
+ callback = paramsOrCallback;
1477
+ params = {};
1478
+ options = {};
1479
+ }
1480
+ if (typeof optionsOrCallback === 'function') {
1481
+ callback = optionsOrCallback;
1482
+ options = {};
1483
+ }
1484
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1485
+ const parameters = {
1486
+ options: Object.assign({
1487
+ url: (rootUrl + '/accounts/v1beta/{+parent}/programs').replace(/([^:]\/)\/+/g, '$1'),
1488
+ method: 'GET',
1489
+ apiVersion: '',
1490
+ }, options),
1491
+ params,
1492
+ requiredParams: ['parent'],
1493
+ pathParams: ['parent'],
1494
+ context: this.context,
1495
+ };
1496
+ if (callback) {
1497
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1498
+ }
1499
+ else {
1500
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1501
+ }
1502
+ }
1503
+ }
1504
+ merchantapi_accounts_v1beta.Resource$Accounts$Programs = Resource$Accounts$Programs;
1505
+ class Resource$Accounts$Programs$Checkoutsettings {
1506
+ constructor(context) {
1507
+ this.context = context;
1508
+ }
1509
+ create(paramsOrCallback, optionsOrCallback, callback) {
1510
+ let params = (paramsOrCallback ||
1511
+ {});
1512
+ let options = (optionsOrCallback || {});
1513
+ if (typeof paramsOrCallback === 'function') {
1514
+ callback = paramsOrCallback;
1515
+ params =
1516
+ {};
1517
+ options = {};
1518
+ }
1519
+ if (typeof optionsOrCallback === 'function') {
1520
+ callback = optionsOrCallback;
1521
+ options = {};
1522
+ }
1523
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1524
+ const parameters = {
1525
+ options: Object.assign({
1526
+ url: (rootUrl + '/accounts/v1beta/{+parent}/checkoutSettings').replace(/([^:]\/)\/+/g, '$1'),
1527
+ method: 'POST',
1528
+ apiVersion: '',
1529
+ }, options),
1530
+ params,
1531
+ requiredParams: ['parent'],
1532
+ pathParams: ['parent'],
1533
+ context: this.context,
1534
+ };
1535
+ if (callback) {
1536
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1537
+ }
1538
+ else {
1539
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1540
+ }
1541
+ }
1542
+ deleteCheckoutSettings(paramsOrCallback, optionsOrCallback, callback) {
1543
+ let params = (paramsOrCallback ||
1544
+ {});
1545
+ let options = (optionsOrCallback || {});
1546
+ if (typeof paramsOrCallback === 'function') {
1547
+ callback = paramsOrCallback;
1548
+ params =
1549
+ {};
1550
+ options = {};
1551
+ }
1552
+ if (typeof optionsOrCallback === 'function') {
1553
+ callback = optionsOrCallback;
1554
+ options = {};
1555
+ }
1556
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1557
+ const parameters = {
1558
+ options: Object.assign({
1559
+ url: (rootUrl + '/accounts/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1560
+ method: 'DELETE',
1561
+ apiVersion: '',
1562
+ }, options),
1563
+ params,
1564
+ requiredParams: ['name'],
1565
+ pathParams: ['name'],
1566
+ context: this.context,
1567
+ };
1568
+ if (callback) {
1569
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1570
+ }
1571
+ else {
1572
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1573
+ }
1574
+ }
1575
+ getCheckoutSettings(paramsOrCallback, optionsOrCallback, callback) {
1576
+ let params = (paramsOrCallback ||
1577
+ {});
1578
+ let options = (optionsOrCallback || {});
1579
+ if (typeof paramsOrCallback === 'function') {
1580
+ callback = paramsOrCallback;
1581
+ params =
1582
+ {};
1583
+ options = {};
1584
+ }
1585
+ if (typeof optionsOrCallback === 'function') {
1586
+ callback = optionsOrCallback;
1587
+ options = {};
1588
+ }
1589
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1590
+ const parameters = {
1591
+ options: Object.assign({
1592
+ url: (rootUrl + '/accounts/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1593
+ method: 'GET',
1594
+ apiVersion: '',
1595
+ }, options),
1596
+ params,
1597
+ requiredParams: ['name'],
1598
+ pathParams: ['name'],
1599
+ context: this.context,
1600
+ };
1601
+ if (callback) {
1602
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1603
+ }
1604
+ else {
1605
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1606
+ }
1607
+ }
1608
+ updateCheckoutSettings(paramsOrCallback, optionsOrCallback, callback) {
1609
+ let params = (paramsOrCallback ||
1610
+ {});
1611
+ let options = (optionsOrCallback || {});
1612
+ if (typeof paramsOrCallback === 'function') {
1613
+ callback = paramsOrCallback;
1614
+ params =
1615
+ {};
1616
+ options = {};
1617
+ }
1618
+ if (typeof optionsOrCallback === 'function') {
1619
+ callback = optionsOrCallback;
1620
+ options = {};
1621
+ }
1622
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
1623
+ const parameters = {
1624
+ options: Object.assign({
1625
+ url: (rootUrl + '/accounts/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1626
+ method: 'PATCH',
1627
+ apiVersion: '',
1628
+ }, options),
1629
+ params,
1630
+ requiredParams: ['name'],
1631
+ pathParams: ['name'],
1632
+ context: this.context,
1633
+ };
1634
+ if (callback) {
1635
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1636
+ }
1637
+ else {
1638
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1639
+ }
1640
+ }
1641
+ }
1642
+ merchantapi_accounts_v1beta.Resource$Accounts$Programs$Checkoutsettings = Resource$Accounts$Programs$Checkoutsettings;
990
1643
  class Resource$Accounts$Regions {
991
1644
  constructor(context) {
992
1645
  this.context = context;