@maxim_mazurok/gapi.client.merchantapi-accounts_v1 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.
- package/index.d.ts +30 -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_v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250910
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -383,6 +383,10 @@ declare namespace gapi.client {
|
|
|
383
383
|
/** 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). */
|
|
384
384
|
geotargetCriteriaIds?: string[];
|
|
385
385
|
}
|
|
386
|
+
interface GetAccountForGcpRegistrationResponse {
|
|
387
|
+
/** The name of the merchant account id that the GCP is registered with. */
|
|
388
|
+
name?: string;
|
|
389
|
+
}
|
|
386
390
|
interface Handshake {
|
|
387
391
|
/** Output only. The most recent account to modify the account service's `approval_status`. */
|
|
388
392
|
actor?: string;
|
|
@@ -3976,6 +3980,31 @@ declare namespace gapi.client {
|
|
|
3976
3980
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3977
3981
|
uploadType?: string;
|
|
3978
3982
|
}): Request<Account>;
|
|
3983
|
+
/** Retrieves the merchant account that the calling GCP is registered with. */
|
|
3984
|
+
getAccountForGcpRegistration(request?: {
|
|
3985
|
+
/** V1 error format. */
|
|
3986
|
+
'$.xgafv'?: string;
|
|
3987
|
+
/** OAuth access token. */
|
|
3988
|
+
access_token?: string;
|
|
3989
|
+
/** Data format for response. */
|
|
3990
|
+
alt?: string;
|
|
3991
|
+
/** JSONP */
|
|
3992
|
+
callback?: string;
|
|
3993
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3994
|
+
fields?: string;
|
|
3995
|
+
/** 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. */
|
|
3996
|
+
key?: string;
|
|
3997
|
+
/** OAuth 2.0 token for the current user. */
|
|
3998
|
+
oauth_token?: string;
|
|
3999
|
+
/** Returns response with indentations and line breaks. */
|
|
4000
|
+
prettyPrint?: boolean;
|
|
4001
|
+
/** 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. */
|
|
4002
|
+
quotaUser?: string;
|
|
4003
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4004
|
+
upload_protocol?: string;
|
|
4005
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4006
|
+
uploadType?: string;
|
|
4007
|
+
}): Request<GetAccountForGcpRegistrationResponse>;
|
|
3979
4008
|
/** 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. */
|
|
3980
4009
|
list(request?: {
|
|
3981
4010
|
/** V1 error format. */
|
package/package.json
CHANGED
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
|
*/
|