@maxim_mazurok/gapi.client.merchantapi-accounts_v1beta 0.0.20260310 → 0.0.20260315
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/index.d.ts +59 -1
- package/package.json +1 -1
- 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:
|
|
12
|
+
// Revision: 20260315
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -3916,6 +3916,64 @@ declare namespace gapi.client {
|
|
|
3916
3916
|
},
|
|
3917
3917
|
body: CreateAndConfigureAccountRequest,
|
|
3918
3918
|
): Request<Account>;
|
|
3919
|
+
/** 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. */
|
|
3920
|
+
createTestAccount(request: {
|
|
3921
|
+
/** V1 error format. */
|
|
3922
|
+
'$.xgafv'?: string;
|
|
3923
|
+
/** OAuth access token. */
|
|
3924
|
+
access_token?: string;
|
|
3925
|
+
/** Data format for response. */
|
|
3926
|
+
alt?: string;
|
|
3927
|
+
/** JSONP */
|
|
3928
|
+
callback?: string;
|
|
3929
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3930
|
+
fields?: string;
|
|
3931
|
+
/** 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. */
|
|
3932
|
+
key?: string;
|
|
3933
|
+
/** OAuth 2.0 token for the current user. */
|
|
3934
|
+
oauth_token?: string;
|
|
3935
|
+
/** Required. The account resource name to create the test account under. Format: accounts/{account} */
|
|
3936
|
+
parent: string;
|
|
3937
|
+
/** Returns response with indentations and line breaks. */
|
|
3938
|
+
prettyPrint?: boolean;
|
|
3939
|
+
/** 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. */
|
|
3940
|
+
quotaUser?: string;
|
|
3941
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3942
|
+
upload_protocol?: string;
|
|
3943
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3944
|
+
uploadType?: string;
|
|
3945
|
+
/** Request body */
|
|
3946
|
+
resource: Account;
|
|
3947
|
+
}): Request<Account>;
|
|
3948
|
+
createTestAccount(
|
|
3949
|
+
request: {
|
|
3950
|
+
/** V1 error format. */
|
|
3951
|
+
'$.xgafv'?: string;
|
|
3952
|
+
/** OAuth access token. */
|
|
3953
|
+
access_token?: string;
|
|
3954
|
+
/** Data format for response. */
|
|
3955
|
+
alt?: string;
|
|
3956
|
+
/** JSONP */
|
|
3957
|
+
callback?: string;
|
|
3958
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3959
|
+
fields?: string;
|
|
3960
|
+
/** 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. */
|
|
3961
|
+
key?: string;
|
|
3962
|
+
/** OAuth 2.0 token for the current user. */
|
|
3963
|
+
oauth_token?: string;
|
|
3964
|
+
/** Required. The account resource name to create the test account under. Format: accounts/{account} */
|
|
3965
|
+
parent: string;
|
|
3966
|
+
/** Returns response with indentations and line breaks. */
|
|
3967
|
+
prettyPrint?: boolean;
|
|
3968
|
+
/** 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. */
|
|
3969
|
+
quotaUser?: string;
|
|
3970
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3971
|
+
upload_protocol?: string;
|
|
3972
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3973
|
+
uploadType?: string;
|
|
3974
|
+
},
|
|
3975
|
+
body: Account,
|
|
3976
|
+
): Request<Account>;
|
|
3919
3977
|
/** 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_v1beta/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. */
|
|
3920
3978
|
delete(request?: {
|
|
3921
3979
|
/** V1 error format. */
|
package/package.json
CHANGED
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_v1beta/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
|
*/
|