@googleapis/merchantapi 4.1.0 → 6.0.1

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 (48) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/accounts_v1beta.ts +1693 -565
  3. package/build/accounts_v1beta.d.ts +535 -168
  4. package/build/accounts_v1beta.js +309 -30
  5. package/build/accounts_v1beta.js.map +1 -1
  6. package/build/conversions_v1beta.d.ts +28 -25
  7. package/build/conversions_v1beta.js.map +1 -1
  8. package/build/datasources_v1beta.d.ts +19 -19
  9. package/build/datasources_v1beta.js.map +1 -1
  10. package/build/index.d.ts +11 -1
  11. package/build/index.js +7 -1
  12. package/build/index.js.map +1 -1
  13. package/build/inventories_v1beta.d.ts +14 -14
  14. package/build/inventories_v1beta.js.map +1 -1
  15. package/build/issueresolution_v1beta.d.ts +661 -0
  16. package/build/issueresolution_v1beta.js +148 -0
  17. package/build/issueresolution_v1beta.js.map +1 -0
  18. package/build/lfp_v1beta.d.ts +134 -13
  19. package/build/lfp_v1beta.js +39 -0
  20. package/build/lfp_v1beta.js.map +1 -1
  21. package/build/notifications_v1beta.d.ts +11 -11
  22. package/build/notifications_v1beta.js.map +1 -1
  23. package/build/ordertracking_v1beta.d.ts +385 -0
  24. package/build/ordertracking_v1beta.js +91 -0
  25. package/build/ordertracking_v1beta.js.map +1 -0
  26. package/build/products_v1beta.d.ts +45 -24
  27. package/build/products_v1beta.js.map +1 -1
  28. package/build/promotions_v1beta.d.ts +7 -7
  29. package/build/promotions_v1beta.js.map +1 -1
  30. package/build/quota_v1beta.d.ts +3 -3
  31. package/build/reports_v1beta.d.ts +4 -4
  32. package/build/reports_v1beta.js.map +1 -1
  33. package/build/reviews_v1beta.d.ts +17 -17
  34. package/build/reviews_v1beta.js.map +1 -1
  35. package/conversions_v1beta.ts +50 -32
  36. package/datasources_v1beta.ts +45 -27
  37. package/index.ts +24 -1
  38. package/inventories_v1beta.ts +32 -23
  39. package/issueresolution_v1beta.ts +962 -0
  40. package/lfp_v1beta.ts +241 -20
  41. package/notifications_v1beta.ts +27 -20
  42. package/ordertracking_v1beta.ts +525 -0
  43. package/package.json +2 -2
  44. package/products_v1beta.ts +63 -30
  45. package/promotions_v1beta.ts +17 -11
  46. package/quota_v1beta.ts +5 -5
  47. package/reports_v1beta.ts +8 -5
  48. package/reviews_v1beta.ts +45 -27
package/lfp_v1beta.ts CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -124,10 +124,64 @@ export namespace merchantapi_lfp_v1beta {
124
124
  }
125
125
  }
126
126
 
127
+ /**
128
+ * Country-specific settings for the merchant.
129
+ */
130
+ export interface Schema$CountrySettings {
131
+ /**
132
+ * True if this merchant has enabled free local listings in MC.
133
+ */
134
+ freeLocalListingsEnabled?: boolean | null;
135
+ /**
136
+ * Output only. The verification state of this merchant's instock serving feature.
137
+ */
138
+ instockServingVerificationState?: string | null;
139
+ /**
140
+ * Output only. The verification state of this merchant's inventory check.
141
+ */
142
+ inventoryVerificationState?: string | null;
143
+ /**
144
+ * True if this merchant has enabled local inventory ads in MC.
145
+ */
146
+ localInventoryAdsEnabled?: boolean | null;
147
+ /**
148
+ * Output only. The verification state of this merchant's pickup serving feature.
149
+ */
150
+ pickupServingVerificationState?: string | null;
151
+ /**
152
+ * Output only. The product page type selected by this merchant.
153
+ */
154
+ productPageType?: string | null;
155
+ /**
156
+ * Required. The [CLDR territory code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml) for the country for which these settings are defined.
157
+ */
158
+ regionCode?: string | null;
159
+ }
127
160
  /**
128
161
  * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
129
162
  */
130
163
  export interface Schema$Empty {}
164
+ /**
165
+ * The inventory statistics for a merchant.
166
+ */
167
+ export interface Schema$InventoryStats {
168
+ /**
169
+ * Number of entries (understanding entry as a pair of product and store) that were built based on provided inventories/sales and submitted to Google.
170
+ */
171
+ submittedEntries?: string | null;
172
+ /**
173
+ * Number of submitted in stock entries.
174
+ */
175
+ submittedInStockEntries?: string | null;
176
+ /**
177
+ * Number of products from provided inventories/sales that were created from matches to existing online products provided by the merchant or to the Google catalog.
178
+ */
179
+ submittedProducts?: string | null;
180
+ /**
181
+ * Number of entries that were built based on provided inventories/sales and couldn't be submitted to Google due to errors like missing product.
182
+ */
183
+ unsubmittedEntries?: string | null;
184
+ }
131
185
  /**
132
186
  * Local Inventory for the merchant.
133
187
  */
@@ -189,6 +243,31 @@ export namespace merchantapi_lfp_v1beta {
189
243
  */
190
244
  targetAccount?: string | null;
191
245
  }
246
+ /**
247
+ * The LFP state of a merchant.
248
+ */
249
+ export interface Schema$LfpMerchantState {
250
+ /**
251
+ * Country-specific settings for the merchant.
252
+ */
253
+ countrySettings?: Schema$CountrySettings[];
254
+ /**
255
+ * The inventory statistics for the merchant. The field will be absent if the merchant has no inventory submitted through LFP.
256
+ */
257
+ inventoryStats?: Schema$InventoryStats;
258
+ /**
259
+ * Number of [GBPs](https://www.google.com/business/) this merchant has access to.
260
+ */
261
+ linkedGbps?: string | null;
262
+ /**
263
+ * Identifier. The name of the `LfpMerchantState` resource. Format: `accounts/{account\}/lfpMerchantStates/{target_merchant\}`
264
+ */
265
+ name?: string | null;
266
+ /**
267
+ * Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.
268
+ */
269
+ storeStates?: Schema$LfpStoreState[];
270
+ }
192
271
  /**
193
272
  * A sale for the merchant.
194
273
  */
@@ -291,6 +370,23 @@ export namespace merchantapi_lfp_v1beta {
291
370
  */
292
371
  websiteUri?: string | null;
293
372
  }
373
+ /**
374
+ * The state of a specific merchant's store.
375
+ */
376
+ export interface Schema$LfpStoreState {
377
+ /**
378
+ * Output only. The store matching state.
379
+ */
380
+ matchingState?: string | null;
381
+ /**
382
+ * The hint of why the matching has failed (only set if matching_state is FAILED).
383
+ */
384
+ matchingStateHint?: string | null;
385
+ /**
386
+ * Required. Immutable. The identifier of this store.
387
+ */
388
+ storeCode?: string | null;
389
+ }
294
390
  /**
295
391
  * Response message for the ListLfpStores method.
296
392
  */
@@ -383,11 +479,15 @@ export namespace merchantapi_lfp_v1beta {
383
479
  export class Resource$Accounts {
384
480
  context: APIRequestContext;
385
481
  lfpInventories: Resource$Accounts$Lfpinventories;
482
+ lfpMerchantStates: Resource$Accounts$Lfpmerchantstates;
386
483
  lfpSales: Resource$Accounts$Lfpsales;
387
484
  lfpStores: Resource$Accounts$Lfpstores;
388
485
  constructor(context: APIRequestContext) {
389
486
  this.context = context;
390
487
  this.lfpInventories = new Resource$Accounts$Lfpinventories(this.context);
488
+ this.lfpMerchantStates = new Resource$Accounts$Lfpmerchantstates(
489
+ this.context
490
+ );
391
491
  this.lfpSales = new Resource$Accounts$Lfpsales(this.context);
392
492
  this.lfpStores = new Resource$Accounts$Lfpstores(this.context);
393
493
  }
@@ -410,11 +510,11 @@ export namespace merchantapi_lfp_v1beta {
410
510
  insert(
411
511
  params: Params$Resource$Accounts$Lfpinventories$Insert,
412
512
  options: StreamMethodOptions
413
- ): GaxiosPromise<Readable>;
513
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
414
514
  insert(
415
515
  params?: Params$Resource$Accounts$Lfpinventories$Insert,
416
516
  options?: MethodOptions
417
- ): GaxiosPromise<Schema$LfpInventory>;
517
+ ): Promise<GaxiosResponseWithHTTP2<Schema$LfpInventory>>;
418
518
  insert(
419
519
  params: Params$Resource$Accounts$Lfpinventories$Insert,
420
520
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -443,7 +543,10 @@ export namespace merchantapi_lfp_v1beta {
443
543
  callback?:
444
544
  | BodyResponseCallback<Schema$LfpInventory>
445
545
  | BodyResponseCallback<Readable>
446
- ): void | GaxiosPromise<Schema$LfpInventory> | GaxiosPromise<Readable> {
546
+ ):
547
+ | void
548
+ | Promise<GaxiosResponseWithHTTP2<Schema$LfpInventory>>
549
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
447
550
  let params = (paramsOrCallback ||
448
551
  {}) as Params$Resource$Accounts$Lfpinventories$Insert;
449
552
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -500,6 +603,112 @@ export namespace merchantapi_lfp_v1beta {
500
603
  requestBody?: Schema$LfpInventory;
501
604
  }
502
605
 
606
+ export class Resource$Accounts$Lfpmerchantstates {
607
+ context: APIRequestContext;
608
+ constructor(context: APIRequestContext) {
609
+ this.context = context;
610
+ }
611
+
612
+ /**
613
+ * Gets the LFP state of a merchant
614
+ *
615
+ * @param params - Parameters for request
616
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
617
+ * @param callback - Optional callback that handles the response.
618
+ * @returns A promise if used with async/await, or void if used with a callback.
619
+ */
620
+ get(
621
+ params: Params$Resource$Accounts$Lfpmerchantstates$Get,
622
+ options: StreamMethodOptions
623
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
624
+ get(
625
+ params?: Params$Resource$Accounts$Lfpmerchantstates$Get,
626
+ options?: MethodOptions
627
+ ): Promise<GaxiosResponseWithHTTP2<Schema$LfpMerchantState>>;
628
+ get(
629
+ params: Params$Resource$Accounts$Lfpmerchantstates$Get,
630
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
631
+ callback: BodyResponseCallback<Readable>
632
+ ): void;
633
+ get(
634
+ params: Params$Resource$Accounts$Lfpmerchantstates$Get,
635
+ options: MethodOptions | BodyResponseCallback<Schema$LfpMerchantState>,
636
+ callback: BodyResponseCallback<Schema$LfpMerchantState>
637
+ ): void;
638
+ get(
639
+ params: Params$Resource$Accounts$Lfpmerchantstates$Get,
640
+ callback: BodyResponseCallback<Schema$LfpMerchantState>
641
+ ): void;
642
+ get(callback: BodyResponseCallback<Schema$LfpMerchantState>): void;
643
+ get(
644
+ paramsOrCallback?:
645
+ | Params$Resource$Accounts$Lfpmerchantstates$Get
646
+ | BodyResponseCallback<Schema$LfpMerchantState>
647
+ | BodyResponseCallback<Readable>,
648
+ optionsOrCallback?:
649
+ | MethodOptions
650
+ | StreamMethodOptions
651
+ | BodyResponseCallback<Schema$LfpMerchantState>
652
+ | BodyResponseCallback<Readable>,
653
+ callback?:
654
+ | BodyResponseCallback<Schema$LfpMerchantState>
655
+ | BodyResponseCallback<Readable>
656
+ ):
657
+ | void
658
+ | Promise<GaxiosResponseWithHTTP2<Schema$LfpMerchantState>>
659
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
660
+ let params = (paramsOrCallback ||
661
+ {}) as Params$Resource$Accounts$Lfpmerchantstates$Get;
662
+ let options = (optionsOrCallback || {}) as MethodOptions;
663
+
664
+ if (typeof paramsOrCallback === 'function') {
665
+ callback = paramsOrCallback;
666
+ params = {} as Params$Resource$Accounts$Lfpmerchantstates$Get;
667
+ options = {};
668
+ }
669
+
670
+ if (typeof optionsOrCallback === 'function') {
671
+ callback = optionsOrCallback;
672
+ options = {};
673
+ }
674
+
675
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
676
+ const parameters = {
677
+ options: Object.assign(
678
+ {
679
+ url: (rootUrl + '/lfp/v1beta/{+name}').replace(
680
+ /([^:]\/)\/+/g,
681
+ '$1'
682
+ ),
683
+ method: 'GET',
684
+ apiVersion: '',
685
+ },
686
+ options
687
+ ),
688
+ params,
689
+ requiredParams: ['name'],
690
+ pathParams: ['name'],
691
+ context: this.context,
692
+ };
693
+ if (callback) {
694
+ createAPIRequest<Schema$LfpMerchantState>(
695
+ parameters,
696
+ callback as BodyResponseCallback<unknown>
697
+ );
698
+ } else {
699
+ return createAPIRequest<Schema$LfpMerchantState>(parameters);
700
+ }
701
+ }
702
+ }
703
+
704
+ export interface Params$Resource$Accounts$Lfpmerchantstates$Get
705
+ extends StandardParameters {
706
+ /**
707
+ * Required. The name of the state to retrieve. Format: `accounts/{account\}/lfpMerchantStates/{target_merchant\}`
708
+ */
709
+ name?: string;
710
+ }
711
+
503
712
  export class Resource$Accounts$Lfpsales {
504
713
  context: APIRequestContext;
505
714
  constructor(context: APIRequestContext) {
@@ -517,11 +726,11 @@ export namespace merchantapi_lfp_v1beta {
517
726
  insert(
518
727
  params: Params$Resource$Accounts$Lfpsales$Insert,
519
728
  options: StreamMethodOptions
520
- ): GaxiosPromise<Readable>;
729
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
521
730
  insert(
522
731
  params?: Params$Resource$Accounts$Lfpsales$Insert,
523
732
  options?: MethodOptions
524
- ): GaxiosPromise<Schema$LfpSale>;
733
+ ): Promise<GaxiosResponseWithHTTP2<Schema$LfpSale>>;
525
734
  insert(
526
735
  params: Params$Resource$Accounts$Lfpsales$Insert,
527
736
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -550,7 +759,10 @@ export namespace merchantapi_lfp_v1beta {
550
759
  callback?:
551
760
  | BodyResponseCallback<Schema$LfpSale>
552
761
  | BodyResponseCallback<Readable>
553
- ): void | GaxiosPromise<Schema$LfpSale> | GaxiosPromise<Readable> {
762
+ ):
763
+ | void
764
+ | Promise<GaxiosResponseWithHTTP2<Schema$LfpSale>>
765
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
554
766
  let params = (paramsOrCallback ||
555
767
  {}) as Params$Resource$Accounts$Lfpsales$Insert;
556
768
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -625,11 +837,11 @@ export namespace merchantapi_lfp_v1beta {
625
837
  delete(
626
838
  params: Params$Resource$Accounts$Lfpstores$Delete,
627
839
  options: StreamMethodOptions
628
- ): GaxiosPromise<Readable>;
840
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
629
841
  delete(
630
842
  params?: Params$Resource$Accounts$Lfpstores$Delete,
631
843
  options?: MethodOptions
632
- ): GaxiosPromise<Schema$Empty>;
844
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
633
845
  delete(
634
846
  params: Params$Resource$Accounts$Lfpstores$Delete,
635
847
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -658,7 +870,10 @@ export namespace merchantapi_lfp_v1beta {
658
870
  callback?:
659
871
  | BodyResponseCallback<Schema$Empty>
660
872
  | BodyResponseCallback<Readable>
661
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
873
+ ):
874
+ | void
875
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
876
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
662
877
  let params = (paramsOrCallback ||
663
878
  {}) as Params$Resource$Accounts$Lfpstores$Delete;
664
879
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -713,11 +928,11 @@ export namespace merchantapi_lfp_v1beta {
713
928
  get(
714
929
  params: Params$Resource$Accounts$Lfpstores$Get,
715
930
  options: StreamMethodOptions
716
- ): GaxiosPromise<Readable>;
931
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
717
932
  get(
718
933
  params?: Params$Resource$Accounts$Lfpstores$Get,
719
934
  options?: MethodOptions
720
- ): GaxiosPromise<Schema$LfpStore>;
935
+ ): Promise<GaxiosResponseWithHTTP2<Schema$LfpStore>>;
721
936
  get(
722
937
  params: Params$Resource$Accounts$Lfpstores$Get,
723
938
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -746,7 +961,10 @@ export namespace merchantapi_lfp_v1beta {
746
961
  callback?:
747
962
  | BodyResponseCallback<Schema$LfpStore>
748
963
  | BodyResponseCallback<Readable>
749
- ): void | GaxiosPromise<Schema$LfpStore> | GaxiosPromise<Readable> {
964
+ ):
965
+ | void
966
+ | Promise<GaxiosResponseWithHTTP2<Schema$LfpStore>>
967
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
750
968
  let params = (paramsOrCallback ||
751
969
  {}) as Params$Resource$Accounts$Lfpstores$Get;
752
970
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -801,11 +1019,11 @@ export namespace merchantapi_lfp_v1beta {
801
1019
  insert(
802
1020
  params: Params$Resource$Accounts$Lfpstores$Insert,
803
1021
  options: StreamMethodOptions
804
- ): GaxiosPromise<Readable>;
1022
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
805
1023
  insert(
806
1024
  params?: Params$Resource$Accounts$Lfpstores$Insert,
807
1025
  options?: MethodOptions
808
- ): GaxiosPromise<Schema$LfpStore>;
1026
+ ): Promise<GaxiosResponseWithHTTP2<Schema$LfpStore>>;
809
1027
  insert(
810
1028
  params: Params$Resource$Accounts$Lfpstores$Insert,
811
1029
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -834,7 +1052,10 @@ export namespace merchantapi_lfp_v1beta {
834
1052
  callback?:
835
1053
  | BodyResponseCallback<Schema$LfpStore>
836
1054
  | BodyResponseCallback<Readable>
837
- ): void | GaxiosPromise<Schema$LfpStore> | GaxiosPromise<Readable> {
1055
+ ):
1056
+ | void
1057
+ | Promise<GaxiosResponseWithHTTP2<Schema$LfpStore>>
1058
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
838
1059
  let params = (paramsOrCallback ||
839
1060
  {}) as Params$Resource$Accounts$Lfpstores$Insert;
840
1061
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -889,11 +1110,11 @@ export namespace merchantapi_lfp_v1beta {
889
1110
  list(
890
1111
  params: Params$Resource$Accounts$Lfpstores$List,
891
1112
  options: StreamMethodOptions
892
- ): GaxiosPromise<Readable>;
1113
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
893
1114
  list(
894
1115
  params?: Params$Resource$Accounts$Lfpstores$List,
895
1116
  options?: MethodOptions
896
- ): GaxiosPromise<Schema$ListLfpStoresResponse>;
1117
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListLfpStoresResponse>>;
897
1118
  list(
898
1119
  params: Params$Resource$Accounts$Lfpstores$List,
899
1120
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -926,8 +1147,8 @@ export namespace merchantapi_lfp_v1beta {
926
1147
  | BodyResponseCallback<Readable>
927
1148
  ):
928
1149
  | void
929
- | GaxiosPromise<Schema$ListLfpStoresResponse>
930
- | GaxiosPromise<Readable> {
1150
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListLfpStoresResponse>>
1151
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
931
1152
  let params = (paramsOrCallback ||
932
1153
  {}) as Params$Resource$Accounts$Lfpstores$List;
933
1154
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -256,11 +256,11 @@ export namespace merchantapi_notifications_v1beta {
256
256
  create(
257
257
  params: Params$Resource$Accounts$Notificationsubscriptions$Create,
258
258
  options: StreamMethodOptions
259
- ): GaxiosPromise<Readable>;
259
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
260
260
  create(
261
261
  params?: Params$Resource$Accounts$Notificationsubscriptions$Create,
262
262
  options?: MethodOptions
263
- ): GaxiosPromise<Schema$NotificationSubscription>;
263
+ ): Promise<GaxiosResponseWithHTTP2<Schema$NotificationSubscription>>;
264
264
  create(
265
265
  params: Params$Resource$Accounts$Notificationsubscriptions$Create,
266
266
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -295,8 +295,8 @@ export namespace merchantapi_notifications_v1beta {
295
295
  | BodyResponseCallback<Readable>
296
296
  ):
297
297
  | void
298
- | GaxiosPromise<Schema$NotificationSubscription>
299
- | GaxiosPromise<Readable> {
298
+ | Promise<GaxiosResponseWithHTTP2<Schema$NotificationSubscription>>
299
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
300
300
  let params = (paramsOrCallback ||
301
301
  {}) as Params$Resource$Accounts$Notificationsubscriptions$Create;
302
302
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -352,11 +352,11 @@ export namespace merchantapi_notifications_v1beta {
352
352
  delete(
353
353
  params: Params$Resource$Accounts$Notificationsubscriptions$Delete,
354
354
  options: StreamMethodOptions
355
- ): GaxiosPromise<Readable>;
355
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
356
356
  delete(
357
357
  params?: Params$Resource$Accounts$Notificationsubscriptions$Delete,
358
358
  options?: MethodOptions
359
- ): GaxiosPromise<Schema$Empty>;
359
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
360
360
  delete(
361
361
  params: Params$Resource$Accounts$Notificationsubscriptions$Delete,
362
362
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -385,7 +385,10 @@ export namespace merchantapi_notifications_v1beta {
385
385
  callback?:
386
386
  | BodyResponseCallback<Schema$Empty>
387
387
  | BodyResponseCallback<Readable>
388
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
388
+ ):
389
+ | void
390
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
391
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
389
392
  let params = (paramsOrCallback ||
390
393
  {}) as Params$Resource$Accounts$Notificationsubscriptions$Delete;
391
394
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -441,11 +444,11 @@ export namespace merchantapi_notifications_v1beta {
441
444
  get(
442
445
  params: Params$Resource$Accounts$Notificationsubscriptions$Get,
443
446
  options: StreamMethodOptions
444
- ): GaxiosPromise<Readable>;
447
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
445
448
  get(
446
449
  params?: Params$Resource$Accounts$Notificationsubscriptions$Get,
447
450
  options?: MethodOptions
448
- ): GaxiosPromise<Schema$NotificationSubscription>;
451
+ ): Promise<GaxiosResponseWithHTTP2<Schema$NotificationSubscription>>;
449
452
  get(
450
453
  params: Params$Resource$Accounts$Notificationsubscriptions$Get,
451
454
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -478,8 +481,8 @@ export namespace merchantapi_notifications_v1beta {
478
481
  | BodyResponseCallback<Readable>
479
482
  ):
480
483
  | void
481
- | GaxiosPromise<Schema$NotificationSubscription>
482
- | GaxiosPromise<Readable> {
484
+ | Promise<GaxiosResponseWithHTTP2<Schema$NotificationSubscription>>
485
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
483
486
  let params = (paramsOrCallback ||
484
487
  {}) as Params$Resource$Accounts$Notificationsubscriptions$Get;
485
488
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -534,11 +537,13 @@ export namespace merchantapi_notifications_v1beta {
534
537
  list(
535
538
  params: Params$Resource$Accounts$Notificationsubscriptions$List,
536
539
  options: StreamMethodOptions
537
- ): GaxiosPromise<Readable>;
540
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
538
541
  list(
539
542
  params?: Params$Resource$Accounts$Notificationsubscriptions$List,
540
543
  options?: MethodOptions
541
- ): GaxiosPromise<Schema$ListNotificationSubscriptionsResponse>;
544
+ ): Promise<
545
+ GaxiosResponseWithHTTP2<Schema$ListNotificationSubscriptionsResponse>
546
+ >;
542
547
  list(
543
548
  params: Params$Resource$Accounts$Notificationsubscriptions$List,
544
549
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -573,8 +578,10 @@ export namespace merchantapi_notifications_v1beta {
573
578
  | BodyResponseCallback<Readable>
574
579
  ):
575
580
  | void
576
- | GaxiosPromise<Schema$ListNotificationSubscriptionsResponse>
577
- | GaxiosPromise<Readable> {
581
+ | Promise<
582
+ GaxiosResponseWithHTTP2<Schema$ListNotificationSubscriptionsResponse>
583
+ >
584
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
578
585
  let params = (paramsOrCallback ||
579
586
  {}) as Params$Resource$Accounts$Notificationsubscriptions$List;
580
587
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -631,11 +638,11 @@ export namespace merchantapi_notifications_v1beta {
631
638
  patch(
632
639
  params: Params$Resource$Accounts$Notificationsubscriptions$Patch,
633
640
  options: StreamMethodOptions
634
- ): GaxiosPromise<Readable>;
641
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
635
642
  patch(
636
643
  params?: Params$Resource$Accounts$Notificationsubscriptions$Patch,
637
644
  options?: MethodOptions
638
- ): GaxiosPromise<Schema$NotificationSubscription>;
645
+ ): Promise<GaxiosResponseWithHTTP2<Schema$NotificationSubscription>>;
639
646
  patch(
640
647
  params: Params$Resource$Accounts$Notificationsubscriptions$Patch,
641
648
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -670,8 +677,8 @@ export namespace merchantapi_notifications_v1beta {
670
677
  | BodyResponseCallback<Readable>
671
678
  ):
672
679
  | void
673
- | GaxiosPromise<Schema$NotificationSubscription>
674
- | GaxiosPromise<Readable> {
680
+ | Promise<GaxiosResponseWithHTTP2<Schema$NotificationSubscription>>
681
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
675
682
  let params = (paramsOrCallback ||
676
683
  {}) as Params$Resource$Accounts$Notificationsubscriptions$Patch;
677
684
  let options = (optionsOrCallback || {}) as MethodOptions;