@maxim_mazurok/gapi.client.merchantapi-accounts_v1beta 0.0.20250908 → 0.0.20250910

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 (3) hide show
  1. package/index.d.ts +30 -1
  2. package/package.json +1 -1
  3. package/readme.md +5 -0
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://merchantapi.googleapis.com/$discovery/rest?version=accounts_v1beta
12
- // Revision: 20250908
12
+ // Revision: 20250910
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -361,6 +361,10 @@ declare namespace gapi.client {
361
361
  /** Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (for example, state). */
362
362
  geotargetCriteriaIds?: string[];
363
363
  }
364
+ interface GetAccountForGcpRegistrationResponse {
365
+ /** The name of the merchant account id that the GCP is registered with. */
366
+ name?: string;
367
+ }
364
368
  interface Handshake {
365
369
  /** Output only. The most recent account to modify the account service's `approval_status`. */
366
370
  actor?: string;
@@ -3836,6 +3840,31 @@ declare namespace gapi.client {
3836
3840
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3837
3841
  uploadType?: string;
3838
3842
  }): Request<Account>;
3843
+ /** Retrieves the merchant account that the calling GCP is registered with. */
3844
+ getAccountForGcpRegistration(request?: {
3845
+ /** V1 error format. */
3846
+ '$.xgafv'?: string;
3847
+ /** OAuth access token. */
3848
+ access_token?: string;
3849
+ /** Data format for response. */
3850
+ alt?: string;
3851
+ /** JSONP */
3852
+ callback?: string;
3853
+ /** Selector specifying which fields to include in a partial response. */
3854
+ fields?: string;
3855
+ /** 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. */
3856
+ key?: string;
3857
+ /** OAuth 2.0 token for the current user. */
3858
+ oauth_token?: string;
3859
+ /** Returns response with indentations and line breaks. */
3860
+ prettyPrint?: boolean;
3861
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3862
+ quotaUser?: string;
3863
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3864
+ upload_protocol?: string;
3865
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3866
+ uploadType?: string;
3867
+ }): Request<GetAccountForGcpRegistrationResponse>;
3839
3868
  /** 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. */
3840
3869
  list(request?: {
3841
3870
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.merchantapi-accounts_v1beta",
3
- "version": "0.0.20250908",
3
+ "version": "0.0.20250910",
4
4
  "description": "TypeScript typings for Merchant API accounts_v1beta",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -84,6 +84,11 @@ Retrieves an account from your Merchant Center account. After inserting, updatin
84
84
  */
85
85
  await gapi.client.merchantapi.accounts.get({name: 'name'});
86
86
 
87
+ /*
88
+ Retrieves the merchant account that the calling GCP is registered with.
89
+ */
90
+ await gapi.client.merchantapi.accounts.getAccountForGcpRegistration({});
91
+
87
92
  /*
88
93
  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.
89
94
  */