@maxim_mazurok/gapi.client.merchantapi-accounts_v1 0.0.20260310 → 0.0.20260316

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 +59 -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_v1
12
- // Revision: 20260310
12
+ // Revision: 20260316
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -4056,6 +4056,64 @@ declare namespace gapi.client {
4056
4056
  },
4057
4057
  body: CreateAndConfigureAccountRequest,
4058
4058
  ): Request<Account>;
4059
+ /** Creates a Merchant Center test account. Test accounts are intended for development and testing purposes, such as validating API integrations or new feature behavior. Key characteristics and limitations of test accounts: - Immutable Type: A test account cannot be converted into a regular (live) Merchant Center account. Likewise, a regular account cannot be converted into a test account. - Non-Serving Products: Any products, offers, or data created within a test account will not be published or made visible to end-users on any Google surfaces. They are strictly for testing environments. - Separate Environment: Test accounts operate in a sandbox-like manner, isolated from live serving and real user traffic. */
4060
+ createTestAccount(request: {
4061
+ /** V1 error format. */
4062
+ '$.xgafv'?: string;
4063
+ /** OAuth access token. */
4064
+ access_token?: string;
4065
+ /** Data format for response. */
4066
+ alt?: string;
4067
+ /** JSONP */
4068
+ callback?: string;
4069
+ /** Selector specifying which fields to include in a partial response. */
4070
+ fields?: string;
4071
+ /** 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. */
4072
+ key?: string;
4073
+ /** OAuth 2.0 token for the current user. */
4074
+ oauth_token?: string;
4075
+ /** Required. The account resource name to create the test account under. Format: accounts/{account} */
4076
+ parent: string;
4077
+ /** Returns response with indentations and line breaks. */
4078
+ prettyPrint?: boolean;
4079
+ /** 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. */
4080
+ quotaUser?: string;
4081
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4082
+ upload_protocol?: string;
4083
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4084
+ uploadType?: string;
4085
+ /** Request body */
4086
+ resource: Account;
4087
+ }): Request<Account>;
4088
+ createTestAccount(
4089
+ request: {
4090
+ /** V1 error format. */
4091
+ '$.xgafv'?: string;
4092
+ /** OAuth access token. */
4093
+ access_token?: string;
4094
+ /** Data format for response. */
4095
+ alt?: string;
4096
+ /** JSONP */
4097
+ callback?: string;
4098
+ /** Selector specifying which fields to include in a partial response. */
4099
+ fields?: string;
4100
+ /** 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. */
4101
+ key?: string;
4102
+ /** OAuth 2.0 token for the current user. */
4103
+ oauth_token?: string;
4104
+ /** Required. The account resource name to create the test account under. Format: accounts/{account} */
4105
+ parent: string;
4106
+ /** Returns response with indentations and line breaks. */
4107
+ prettyPrint?: boolean;
4108
+ /** 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. */
4109
+ quotaUser?: string;
4110
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4111
+ upload_protocol?: string;
4112
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4113
+ uploadType?: string;
4114
+ },
4115
+ body: Account,
4116
+ ): Request<Account>;
4059
4117
  /** 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. */
4060
4118
  delete(request?: {
4061
4119
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.merchantapi-accounts_v1",
3
- "version": "0.0.20260310",
3
+ "version": "0.0.20260316",
4
4
  "description": "TypeScript typings for Merchant API accounts_v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -74,6 +74,11 @@ Creates a Merchant Center account with additional configuration. Adds the user t
74
74
  */
75
75
  await gapi.client.merchantapi.accounts.createAndConfigure({});
76
76
 
77
+ /*
78
+ Creates a Merchant Center test account. Test accounts are intended for development and testing purposes, such as validating API integrations or new feature behavior. Key characteristics and limitations of test accounts: - Immutable Type: A test account cannot be converted into a regular (live) Merchant Center account. Likewise, a regular account cannot be converted into a test account. - Non-Serving Products: Any products, offers, or data created within a test account will not be published or made visible to end-users on any Google surfaces. They are strictly for testing environments. - Separate Environment: Test accounts operate in a sandbox-like manner, isolated from live serving and real user traffic.
79
+ */
80
+ await gapi.client.merchantapi.accounts.createTestAccount({parent: 'parent'});
81
+
77
82
  /*
78
83
  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.
79
84
  */