@googleapis/merchantapi 13.0.0 → 15.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## [15.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/merchantapi-v14.0.0...merchantapi-v15.0.0) (2025-11-04)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * **merchantapi:** This release has breaking changes.
9
+
10
+ ### Features
11
+
12
+ * **merchantapi:** update the API ([e54c417](https://github.com/googleapis/google-api-nodejs-client/commit/e54c417628a4f222d52e5b8ae02738611413ef16))
13
+
14
+ ## [14.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/merchantapi-v13.1.0...merchantapi-v14.0.0) (2025-10-15)
15
+
16
+
17
+ ### ⚠ BREAKING CHANGES
18
+
19
+ * This release has breaking changes.
20
+
21
+ ### Features
22
+
23
+ * run the generator ([#3814](https://github.com/googleapis/google-api-nodejs-client/issues/3814)) ([4ba19d0](https://github.com/googleapis/google-api-nodejs-client/commit/4ba19d068b2b8deb28d773ebc6a3418f5e4a7162))
24
+
25
+ ## [13.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/merchantapi-v13.0.0...merchantapi-v13.1.0) (2025-10-09)
26
+
27
+
28
+ ### Features
29
+
30
+ * **merchantapi:** update the API ([8ec435a](https://github.com/googleapis/google-api-nodejs-client/commit/8ec435af38786a20d9b66e6531b51c78c5c657aa))
31
+
3
32
  ## [13.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/merchantapi-v12.0.0...merchantapi-v13.0.0) (2025-09-30)
4
33
 
5
34
 
package/accounts_v1.ts CHANGED
@@ -2123,7 +2123,7 @@ export namespace merchantapi_accounts_v1 {
2123
2123
  checkoutUriTemplate?: string | null;
2124
2124
  }
2125
2125
  /**
2126
- * The `User` message represents a user associated with a Merchant Center account. It is used to manage user permissions and access rights within the account. For more information, see [Frequently asked questions about people and access levels](//support.google.com/merchants/answer/12160472).
2126
+ * The `User` resource represents a user associated with a Merchant Center account. It is used to manage user permissions and access rights within the account. For more information, see [Frequently asked questions about people and access levels](//support.google.com/merchants/answer/12160472).
2127
2127
  */
2128
2128
  export interface Schema$User {
2129
2129
  /**
@@ -2443,7 +2443,7 @@ export namespace merchantapi_accounts_v1 {
2443
2443
  }
2444
2444
 
2445
2445
  /**
2446
- * Deletes the specified account regardless of its type: standalone, advanced account or sub-account. Deleting an advanced account leads to the deletion of all of its sub-accounts. Executing this method requires admin access. The deletion succeeds only if the account does not provide services to any other account and has no processed offers. You can use the `force` parameter to override this.
2446
+ * Deletes the specified account regardless of its type: standalone, advanced account or sub-account. Deleting an advanced account leads to the deletion of all of its sub-accounts. This also deletes the account's [developer registration entity](/merchant/api/reference/rest/accounts_v1/accounts.developerRegistration) and any associated GCP project to the account. Executing this method requires admin access. The deletion succeeds only if the account does not provide services to any other account and has no processed offers. You can use the `force` parameter to override this.
2447
2447
  * @example
2448
2448
  * ```js
2449
2449
  * // Before running the sample:
@@ -2720,149 +2720,6 @@ export namespace merchantapi_accounts_v1 {
2720
2720
  }
2721
2721
  }
2722
2722
 
2723
- /**
2724
- * Retrieves the merchant account that the calling GCP is registered with.
2725
- * @example
2726
- * ```js
2727
- * // Before running the sample:
2728
- * // - Enable the API at:
2729
- * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
2730
- * // - Login into gcloud by running:
2731
- * // ```sh
2732
- * // $ gcloud auth application-default login
2733
- * // ```
2734
- * // - Install the npm module by running:
2735
- * // ```sh
2736
- * // $ npm install googleapis
2737
- * // ```
2738
- *
2739
- * const {google} = require('googleapis');
2740
- * const merchantapi = google.merchantapi('accounts_v1');
2741
- *
2742
- * async function main() {
2743
- * const auth = new google.auth.GoogleAuth({
2744
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2745
- * scopes: ['https://www.googleapis.com/auth/content'],
2746
- * });
2747
- *
2748
- * // Acquire an auth client, and bind it to all future calls
2749
- * const authClient = await auth.getClient();
2750
- * google.options({auth: authClient});
2751
- *
2752
- * // Do the magic
2753
- * const res = await merchantapi.accounts.getAccountForGcpRegistration({});
2754
- * console.log(res.data);
2755
- *
2756
- * // Example response
2757
- * // {
2758
- * // "name": "my_name"
2759
- * // }
2760
- * }
2761
- *
2762
- * main().catch(e => {
2763
- * console.error(e);
2764
- * throw e;
2765
- * });
2766
- *
2767
- * ```
2768
- *
2769
- * @param params - Parameters for request
2770
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2771
- * @param callback - Optional callback that handles the response.
2772
- * @returns A promise if used with async/await, or void if used with a callback.
2773
- */
2774
- getAccountForGcpRegistration(
2775
- params: Params$Resource$Accounts$Getaccountforgcpregistration,
2776
- options: StreamMethodOptions
2777
- ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2778
- getAccountForGcpRegistration(
2779
- params?: Params$Resource$Accounts$Getaccountforgcpregistration,
2780
- options?: MethodOptions
2781
- ): Promise<
2782
- GaxiosResponseWithHTTP2<Schema$GetAccountForGcpRegistrationResponse>
2783
- >;
2784
- getAccountForGcpRegistration(
2785
- params: Params$Resource$Accounts$Getaccountforgcpregistration,
2786
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
2787
- callback: BodyResponseCallback<Readable>
2788
- ): void;
2789
- getAccountForGcpRegistration(
2790
- params: Params$Resource$Accounts$Getaccountforgcpregistration,
2791
- options:
2792
- | MethodOptions
2793
- | BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>,
2794
- callback: BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
2795
- ): void;
2796
- getAccountForGcpRegistration(
2797
- params: Params$Resource$Accounts$Getaccountforgcpregistration,
2798
- callback: BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
2799
- ): void;
2800
- getAccountForGcpRegistration(
2801
- callback: BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
2802
- ): void;
2803
- getAccountForGcpRegistration(
2804
- paramsOrCallback?:
2805
- | Params$Resource$Accounts$Getaccountforgcpregistration
2806
- | BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
2807
- | BodyResponseCallback<Readable>,
2808
- optionsOrCallback?:
2809
- | MethodOptions
2810
- | StreamMethodOptions
2811
- | BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
2812
- | BodyResponseCallback<Readable>,
2813
- callback?:
2814
- | BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
2815
- | BodyResponseCallback<Readable>
2816
- ):
2817
- | void
2818
- | Promise<
2819
- GaxiosResponseWithHTTP2<Schema$GetAccountForGcpRegistrationResponse>
2820
- >
2821
- | Promise<GaxiosResponseWithHTTP2<Readable>> {
2822
- let params = (paramsOrCallback ||
2823
- {}) as Params$Resource$Accounts$Getaccountforgcpregistration;
2824
- let options = (optionsOrCallback || {}) as MethodOptions;
2825
-
2826
- if (typeof paramsOrCallback === 'function') {
2827
- callback = paramsOrCallback;
2828
- params = {} as Params$Resource$Accounts$Getaccountforgcpregistration;
2829
- options = {};
2830
- }
2831
-
2832
- if (typeof optionsOrCallback === 'function') {
2833
- callback = optionsOrCallback;
2834
- options = {};
2835
- }
2836
-
2837
- const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
2838
- const parameters = {
2839
- options: Object.assign(
2840
- {
2841
- url: (
2842
- rootUrl + '/accounts/v1/accounts:getAccountForGcpRegistration'
2843
- ).replace(/([^:]\/)\/+/g, '$1'),
2844
- method: 'GET',
2845
- apiVersion: '',
2846
- },
2847
- options
2848
- ),
2849
- params,
2850
- requiredParams: [],
2851
- pathParams: [],
2852
- context: this.context,
2853
- };
2854
- if (callback) {
2855
- createAPIRequest<Schema$GetAccountForGcpRegistrationResponse>(
2856
- parameters,
2857
- callback as BodyResponseCallback<unknown>
2858
- );
2859
- } else {
2860
- return createAPIRequest<Schema$GetAccountForGcpRegistrationResponse>(
2861
- parameters
2862
- );
2863
- }
2864
- }
2865
-
2866
2723
  /**
2867
2724
  * Note: For the `accounts.list` method, quota and limits usage are charged for each user, and not for the Merchant Center ID or the advanced account ID. To list several sub-accounts, you should use the `accounts.listSubaccounts` method, which is more suitable for advanced accounts use case.
2868
2725
  * @example
@@ -3334,8 +3191,6 @@ export namespace merchantapi_accounts_v1 {
3334
3191
  */
3335
3192
  name?: string;
3336
3193
  }
3337
- export interface Params$Resource$Accounts$Getaccountforgcpregistration
3338
- extends StandardParameters {}
3339
3194
  export interface Params$Resource$Accounts$List extends StandardParameters {
3340
3195
  /**
3341
3196
  * Optional. Returns only accounts that match the [filter](https://developers.google.com/merchant/api/guides/accounts/filter). For more details, see the [filter syntax reference](https://developers.google.com/merchant/api/guides/accounts/filter-syntax).
@@ -4725,6 +4580,153 @@ export namespace merchantapi_accounts_v1 {
4725
4580
  this.context = context;
4726
4581
  }
4727
4582
 
4583
+ /**
4584
+ * Retrieves the merchant account that the calling GCP is registered with.
4585
+ * @example
4586
+ * ```js
4587
+ * // Before running the sample:
4588
+ * // - Enable the API at:
4589
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
4590
+ * // - Login into gcloud by running:
4591
+ * // ```sh
4592
+ * // $ gcloud auth application-default login
4593
+ * // ```
4594
+ * // - Install the npm module by running:
4595
+ * // ```sh
4596
+ * // $ npm install googleapis
4597
+ * // ```
4598
+ *
4599
+ * const {google} = require('googleapis');
4600
+ * const merchantapi = google.merchantapi('accounts_v1');
4601
+ *
4602
+ * async function main() {
4603
+ * const auth = new google.auth.GoogleAuth({
4604
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4605
+ * scopes: ['https://www.googleapis.com/auth/content'],
4606
+ * });
4607
+ *
4608
+ * // Acquire an auth client, and bind it to all future calls
4609
+ * const authClient = await auth.getClient();
4610
+ * google.options({auth: authClient});
4611
+ *
4612
+ * // Do the magic
4613
+ * const res =
4614
+ * await merchantapi.accounts.developerRegistration.getAccountForGcpRegistration(
4615
+ * {},
4616
+ * );
4617
+ * console.log(res.data);
4618
+ *
4619
+ * // Example response
4620
+ * // {
4621
+ * // "name": "my_name"
4622
+ * // }
4623
+ * }
4624
+ *
4625
+ * main().catch(e => {
4626
+ * console.error(e);
4627
+ * throw e;
4628
+ * });
4629
+ *
4630
+ * ```
4631
+ *
4632
+ * @param params - Parameters for request
4633
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4634
+ * @param callback - Optional callback that handles the response.
4635
+ * @returns A promise if used with async/await, or void if used with a callback.
4636
+ */
4637
+ getAccountForGcpRegistration(
4638
+ params: Params$Resource$Accounts$Developerregistration$Getaccountforgcpregistration,
4639
+ options: StreamMethodOptions
4640
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4641
+ getAccountForGcpRegistration(
4642
+ params?: Params$Resource$Accounts$Developerregistration$Getaccountforgcpregistration,
4643
+ options?: MethodOptions
4644
+ ): Promise<
4645
+ GaxiosResponseWithHTTP2<Schema$GetAccountForGcpRegistrationResponse>
4646
+ >;
4647
+ getAccountForGcpRegistration(
4648
+ params: Params$Resource$Accounts$Developerregistration$Getaccountforgcpregistration,
4649
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4650
+ callback: BodyResponseCallback<Readable>
4651
+ ): void;
4652
+ getAccountForGcpRegistration(
4653
+ params: Params$Resource$Accounts$Developerregistration$Getaccountforgcpregistration,
4654
+ options:
4655
+ | MethodOptions
4656
+ | BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>,
4657
+ callback: BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
4658
+ ): void;
4659
+ getAccountForGcpRegistration(
4660
+ params: Params$Resource$Accounts$Developerregistration$Getaccountforgcpregistration,
4661
+ callback: BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
4662
+ ): void;
4663
+ getAccountForGcpRegistration(
4664
+ callback: BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
4665
+ ): void;
4666
+ getAccountForGcpRegistration(
4667
+ paramsOrCallback?:
4668
+ | Params$Resource$Accounts$Developerregistration$Getaccountforgcpregistration
4669
+ | BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
4670
+ | BodyResponseCallback<Readable>,
4671
+ optionsOrCallback?:
4672
+ | MethodOptions
4673
+ | StreamMethodOptions
4674
+ | BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
4675
+ | BodyResponseCallback<Readable>,
4676
+ callback?:
4677
+ | BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
4678
+ | BodyResponseCallback<Readable>
4679
+ ):
4680
+ | void
4681
+ | Promise<
4682
+ GaxiosResponseWithHTTP2<Schema$GetAccountForGcpRegistrationResponse>
4683
+ >
4684
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4685
+ let params = (paramsOrCallback ||
4686
+ {}) as Params$Resource$Accounts$Developerregistration$Getaccountforgcpregistration;
4687
+ let options = (optionsOrCallback || {}) as MethodOptions;
4688
+
4689
+ if (typeof paramsOrCallback === 'function') {
4690
+ callback = paramsOrCallback;
4691
+ params =
4692
+ {} as Params$Resource$Accounts$Developerregistration$Getaccountforgcpregistration;
4693
+ options = {};
4694
+ }
4695
+
4696
+ if (typeof optionsOrCallback === 'function') {
4697
+ callback = optionsOrCallback;
4698
+ options = {};
4699
+ }
4700
+
4701
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
4702
+ const parameters = {
4703
+ options: Object.assign(
4704
+ {
4705
+ url: (
4706
+ rootUrl + '/accounts/v1/accounts:getAccountForGcpRegistration'
4707
+ ).replace(/([^:]\/)\/+/g, '$1'),
4708
+ method: 'GET',
4709
+ apiVersion: '',
4710
+ },
4711
+ options
4712
+ ),
4713
+ params,
4714
+ requiredParams: [],
4715
+ pathParams: [],
4716
+ context: this.context,
4717
+ };
4718
+ if (callback) {
4719
+ createAPIRequest<Schema$GetAccountForGcpRegistrationResponse>(
4720
+ parameters,
4721
+ callback as BodyResponseCallback<unknown>
4722
+ );
4723
+ } else {
4724
+ return createAPIRequest<Schema$GetAccountForGcpRegistrationResponse>(
4725
+ parameters
4726
+ );
4727
+ }
4728
+ }
4729
+
4728
4730
  /**
4729
4731
  * Retrieves a developer registration for a merchant.
4730
4732
  * @example
@@ -5163,6 +5165,8 @@ export namespace merchantapi_accounts_v1 {
5163
5165
  }
5164
5166
  }
5165
5167
 
5168
+ export interface Params$Resource$Accounts$Developerregistration$Getaccountforgcpregistration
5169
+ extends StandardParameters {}
5166
5170
  export interface Params$Resource$Accounts$Developerregistration$Getdeveloperregistration
5167
5171
  extends StandardParameters {
5168
5172
  /**