Skip to content

Commit eb5d9a1

Browse files
feat(merchantapi): update the API
#### merchantapi:accounts_v1beta The following keys were added: - schemas.AddUser.description - schemas.AddUser.id - schemas.AddUser.properties.user.$ref - schemas.AddUser.properties.user.description - schemas.AddUser.properties.userId.description - schemas.AddUser.properties.userId.type - schemas.AddUser.type - schemas.CreateAndConfigureAccountRequest.properties.user.description - schemas.CreateAndConfigureAccountRequest.properties.user.items.$ref - schemas.CreateAndConfigureAccountRequest.properties.user.type - schemas.CreateAndConfigureAccountRequest.properties.users.deprecated The following keys were changed: - schemas.CreateAndConfigureAccountRequest.properties.users.description
1 parent 2305000 commit eb5d9a1

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

discovery/merchantapi-accounts_v1beta.json

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@
14171417
}
14181418
}
14191419
},
1420-
"revision": "20250115",
1420+
"revision": "20250125",
14211421
"rootUrl": "https://merchantapi.googleapis.com/",
14221422
"schemas": {
14231423
"Accepted": {
@@ -1544,6 +1544,21 @@
15441544
},
15451545
"type": "object"
15461546
},
1547+
"AddUser": {
1548+
"description": "Instruction for adding a user to the account during creation.",
1549+
"id": "AddUser",
1550+
"properties": {
1551+
"user": {
1552+
"$ref": "User",
1553+
"description": "Optional. Details about the user to be added. At the moment, only access rights may be specified."
1554+
},
1555+
"userId": {
1556+
"description": "Required. The email address of the user (for example, `[email protected]`).",
1557+
"type": "string"
1558+
}
1559+
},
1560+
"type": "object"
1561+
},
15471562
"Address": {
15481563
"description": "Shipping address of the warehouse.",
15491564
"id": "Address",
@@ -1770,8 +1785,16 @@
17701785
},
17711786
"type": "array"
17721787
},
1773-
"users": {
1788+
"user": {
17741789
"description": "Optional. Users to be added to the account.",
1790+
"items": {
1791+
"$ref": "AddUser"
1792+
},
1793+
"type": "array"
1794+
},
1795+
"users": {
1796+
"deprecated": true,
1797+
"description": "Optional. Users to be added to the account. This field is deprecated and will not exist after the API evolves out of beta. Use the `user` field instead.",
17751798
"items": {
17761799
"$ref": "CreateUserRequest"
17771800
},

src/apis/merchantapi/accounts_v1beta.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,19 @@ export namespace merchantapi_accounts_v1beta {
247247
*/
248248
streetAddress?: string | null;
249249
}
250+
/**
251+
* Instruction for adding a user to the account during creation.
252+
*/
253+
export interface Schema$AddUser {
254+
/**
255+
* Optional. Details about the user to be added. At the moment, only access rights may be specified.
256+
*/
257+
user?: Schema$User;
258+
/**
259+
* Required. The email address of the user (for example, `[email protected]`).
260+
*/
261+
userId?: string | null;
262+
}
250263
/**
251264
* Collection of information related to the [autofeed](https://support.google.com/merchants/answer/7538732) settings.
252265
*/
@@ -388,6 +401,10 @@ export namespace merchantapi_accounts_v1beta {
388401
/**
389402
* Optional. Users to be added to the account.
390403
*/
404+
user?: Schema$AddUser[];
405+
/**
406+
* Optional. Users to be added to the account. This field is deprecated and will not exist after the API evolves out of beta. Use the `user` field instead.
407+
*/
391408
users?: Schema$CreateUserRequest[];
392409
}
393410
/**

0 commit comments

Comments
 (0)