@maxim_mazurok/gapi.client.merchantapi-accounts_v1beta 0.0.20250630 → 0.0.20250710
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 +161 -4
- 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: 20250710
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -318,6 +318,12 @@ declare namespace gapi.client {
|
|
|
318
318
|
/** Optional. Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in delivery time should be set. */
|
|
319
319
|
warehouseBasedDeliveryTimes?: WarehouseBasedDeliveryTime[];
|
|
320
320
|
}
|
|
321
|
+
interface DeveloperRegistration {
|
|
322
|
+
/** Output only. The GCP ids attached to this developer registration */
|
|
323
|
+
gcpIds?: string[];
|
|
324
|
+
/** Identifier. The `name` (ID) of the developer registration. Generated by the Content API upon creation of a new `DeveloperRegistration`. The `account` represents the merchant ID of the merchant that owns the registration. */
|
|
325
|
+
name?: string;
|
|
326
|
+
}
|
|
321
327
|
interface DisableProgramRequest {}
|
|
322
328
|
interface Distance {
|
|
323
329
|
/** Unit can differ based on country, it is parameterized to include miles and kilometers. */
|
|
@@ -585,7 +591,7 @@ declare namespace gapi.client {
|
|
|
585
591
|
countries?: string[];
|
|
586
592
|
/** Optional. The item conditions accepted for returns must not be empty unless the type of return policy is 'noReturns'. */
|
|
587
593
|
itemConditions?: string[];
|
|
588
|
-
/**
|
|
594
|
+
/** Optional. Immutable. This field represents the unique user-defined label of the return policy for the given country. It is important to note that the same label cannot be used in different return policies for the same country. If not given, policies will be automatically treated as the 'default' for the country. When using label, you are creating an exception policy in that country to assign a custom return policy to certain product groups, follow the instructions provided in the [Return policy label] (https://support.google.com/merchants/answer/9445425). The label can contain up to 50 characters. */
|
|
589
595
|
label?: string;
|
|
590
596
|
/** Identifier. The name of the `OnlineReturnPolicy` resource. Format: `accounts/{account}/onlineReturnPolicies/{return_policy}` */
|
|
591
597
|
name?: string;
|
|
@@ -747,6 +753,10 @@ declare namespace gapi.client {
|
|
|
747
753
|
/** Output only. Indicates if the region is eligible for use in the Shipping Services configuration. */
|
|
748
754
|
shippingEligible?: boolean;
|
|
749
755
|
}
|
|
756
|
+
interface RegisterGCPRequest {
|
|
757
|
+
/** Immutable. If the developer email provided is associated with a user in the merchant account provided, the user will be updated to have "API developer" access type and the email preference corresponding to that user will be updated to have the new "API notifications" preference. If the developer email provided is not associated with any user we will just add it as a contact. The email preference corresponding to that contact will have the new "API notifications" preference */
|
|
758
|
+
developerEmail?: string;
|
|
759
|
+
}
|
|
750
760
|
interface RejectAccountServiceRequest {}
|
|
751
761
|
interface RequestInventoryVerificationRequest {}
|
|
752
762
|
interface RequestInventoryVerificationResponse {
|
|
@@ -910,6 +920,7 @@ declare namespace gapi.client {
|
|
|
910
920
|
minTransitDays?: number;
|
|
911
921
|
}
|
|
912
922
|
interface UnclaimHomepageRequest {}
|
|
923
|
+
interface UnregisterGCPRequest {}
|
|
913
924
|
interface UriSettings {
|
|
914
925
|
/** Cart URL template. When the placeholders are expanded will redirect the buyer to the cart page on the merchant website with the selected item in cart. For more details, check the [help center doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting) */
|
|
915
926
|
cartUriTemplate?: string;
|
|
@@ -1332,6 +1343,124 @@ declare namespace gapi.client {
|
|
|
1332
1343
|
body: BusinessInfo,
|
|
1333
1344
|
): Request<BusinessInfo>;
|
|
1334
1345
|
}
|
|
1346
|
+
interface DeveloperRegistrationResource {
|
|
1347
|
+
/** Registers the GCP used for the API call to the shopping account passed in the request. Will create a user with an "API developer" and add the "developer_email" as a contact with "API notifications" email preference on. */
|
|
1348
|
+
registerGcp(request: {
|
|
1349
|
+
/** V1 error format. */
|
|
1350
|
+
'$.xgafv'?: string;
|
|
1351
|
+
/** OAuth access token. */
|
|
1352
|
+
access_token?: string;
|
|
1353
|
+
/** Data format for response. */
|
|
1354
|
+
alt?: string;
|
|
1355
|
+
/** JSONP */
|
|
1356
|
+
callback?: string;
|
|
1357
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1358
|
+
fields?: string;
|
|
1359
|
+
/** 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. */
|
|
1360
|
+
key?: string;
|
|
1361
|
+
/** Required. The name of the developer registration to be created for the merchant account that the GCP will be registered with. Format: `accounts/{account}/developerRegistration` */
|
|
1362
|
+
name: string;
|
|
1363
|
+
/** OAuth 2.0 token for the current user. */
|
|
1364
|
+
oauth_token?: string;
|
|
1365
|
+
/** Returns response with indentations and line breaks. */
|
|
1366
|
+
prettyPrint?: boolean;
|
|
1367
|
+
/** 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. */
|
|
1368
|
+
quotaUser?: string;
|
|
1369
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1370
|
+
upload_protocol?: string;
|
|
1371
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1372
|
+
uploadType?: string;
|
|
1373
|
+
/** Request body */
|
|
1374
|
+
resource: RegisterGCPRequest;
|
|
1375
|
+
}): Request<DeveloperRegistration>;
|
|
1376
|
+
registerGcp(
|
|
1377
|
+
request: {
|
|
1378
|
+
/** V1 error format. */
|
|
1379
|
+
'$.xgafv'?: string;
|
|
1380
|
+
/** OAuth access token. */
|
|
1381
|
+
access_token?: string;
|
|
1382
|
+
/** Data format for response. */
|
|
1383
|
+
alt?: string;
|
|
1384
|
+
/** JSONP */
|
|
1385
|
+
callback?: string;
|
|
1386
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1387
|
+
fields?: string;
|
|
1388
|
+
/** 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. */
|
|
1389
|
+
key?: string;
|
|
1390
|
+
/** Required. The name of the developer registration to be created for the merchant account that the GCP will be registered with. Format: `accounts/{account}/developerRegistration` */
|
|
1391
|
+
name: string;
|
|
1392
|
+
/** OAuth 2.0 token for the current user. */
|
|
1393
|
+
oauth_token?: string;
|
|
1394
|
+
/** Returns response with indentations and line breaks. */
|
|
1395
|
+
prettyPrint?: boolean;
|
|
1396
|
+
/** 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. */
|
|
1397
|
+
quotaUser?: string;
|
|
1398
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1399
|
+
upload_protocol?: string;
|
|
1400
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1401
|
+
uploadType?: string;
|
|
1402
|
+
},
|
|
1403
|
+
body: RegisterGCPRequest,
|
|
1404
|
+
): Request<DeveloperRegistration>;
|
|
1405
|
+
/** Unregister the calling GCP from the calling shopping account. Note that the GCP will still be able to access the API for at most 1 day from the unregister succussful call. */
|
|
1406
|
+
unregisterGcp(request: {
|
|
1407
|
+
/** V1 error format. */
|
|
1408
|
+
'$.xgafv'?: string;
|
|
1409
|
+
/** OAuth access token. */
|
|
1410
|
+
access_token?: string;
|
|
1411
|
+
/** Data format for response. */
|
|
1412
|
+
alt?: string;
|
|
1413
|
+
/** JSONP */
|
|
1414
|
+
callback?: string;
|
|
1415
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1416
|
+
fields?: string;
|
|
1417
|
+
/** 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. */
|
|
1418
|
+
key?: string;
|
|
1419
|
+
/** Required. The name of the developer registration to be created for the merchant account that the GCP will be registered with. Format: `accounts/{account}/developerRegistration` */
|
|
1420
|
+
name: string;
|
|
1421
|
+
/** OAuth 2.0 token for the current user. */
|
|
1422
|
+
oauth_token?: string;
|
|
1423
|
+
/** Returns response with indentations and line breaks. */
|
|
1424
|
+
prettyPrint?: boolean;
|
|
1425
|
+
/** 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. */
|
|
1426
|
+
quotaUser?: string;
|
|
1427
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1428
|
+
upload_protocol?: string;
|
|
1429
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1430
|
+
uploadType?: string;
|
|
1431
|
+
/** Request body */
|
|
1432
|
+
resource: UnregisterGCPRequest;
|
|
1433
|
+
}): Request<{}>;
|
|
1434
|
+
unregisterGcp(
|
|
1435
|
+
request: {
|
|
1436
|
+
/** V1 error format. */
|
|
1437
|
+
'$.xgafv'?: string;
|
|
1438
|
+
/** OAuth access token. */
|
|
1439
|
+
access_token?: string;
|
|
1440
|
+
/** Data format for response. */
|
|
1441
|
+
alt?: string;
|
|
1442
|
+
/** JSONP */
|
|
1443
|
+
callback?: string;
|
|
1444
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1445
|
+
fields?: string;
|
|
1446
|
+
/** 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. */
|
|
1447
|
+
key?: string;
|
|
1448
|
+
/** Required. The name of the developer registration to be created for the merchant account that the GCP will be registered with. Format: `accounts/{account}/developerRegistration` */
|
|
1449
|
+
name: string;
|
|
1450
|
+
/** OAuth 2.0 token for the current user. */
|
|
1451
|
+
oauth_token?: string;
|
|
1452
|
+
/** Returns response with indentations and line breaks. */
|
|
1453
|
+
prettyPrint?: boolean;
|
|
1454
|
+
/** 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. */
|
|
1455
|
+
quotaUser?: string;
|
|
1456
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1457
|
+
upload_protocol?: string;
|
|
1458
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1459
|
+
uploadType?: string;
|
|
1460
|
+
},
|
|
1461
|
+
body: UnregisterGCPRequest,
|
|
1462
|
+
): Request<{}>;
|
|
1463
|
+
}
|
|
1335
1464
|
interface EmailPreferencesResource {
|
|
1336
1465
|
/** Returns the email preferences for a Merchant Center account user. This service only permits retrieving and updating email preferences for the authenticated user. Use the name=accounts/*/users/me/emailPreferences alias to get preferences for the authenticated user. */
|
|
1337
1466
|
getEmailPreferences(request?: {
|
|
@@ -2254,7 +2383,7 @@ declare namespace gapi.client {
|
|
|
2254
2383
|
prettyPrint?: boolean;
|
|
2255
2384
|
/** 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. */
|
|
2256
2385
|
quotaUser?: string;
|
|
2257
|
-
/** Optional.
|
|
2386
|
+
/** Optional. Only support updating the entire OnlineReturnPolicy message. For update_mask, always use `*`. */
|
|
2258
2387
|
updateMask?: string;
|
|
2259
2388
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2260
2389
|
upload_protocol?: string;
|
|
@@ -2285,7 +2414,7 @@ declare namespace gapi.client {
|
|
|
2285
2414
|
prettyPrint?: boolean;
|
|
2286
2415
|
/** 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. */
|
|
2287
2416
|
quotaUser?: string;
|
|
2288
|
-
/** Optional.
|
|
2417
|
+
/** Optional. Only support updating the entire OnlineReturnPolicy message. For update_mask, always use `*`. */
|
|
2289
2418
|
updateMask?: string;
|
|
2290
2419
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2291
2420
|
upload_protocol?: string;
|
|
@@ -3680,6 +3809,33 @@ declare namespace gapi.client {
|
|
|
3680
3809
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3681
3810
|
uploadType?: string;
|
|
3682
3811
|
}): Request<Account>;
|
|
3812
|
+
/** Retrieves a developer registration for a merchant. */
|
|
3813
|
+
getDeveloperRegistration(request?: {
|
|
3814
|
+
/** V1 error format. */
|
|
3815
|
+
'$.xgafv'?: string;
|
|
3816
|
+
/** OAuth access token. */
|
|
3817
|
+
access_token?: string;
|
|
3818
|
+
/** Data format for response. */
|
|
3819
|
+
alt?: string;
|
|
3820
|
+
/** JSONP */
|
|
3821
|
+
callback?: string;
|
|
3822
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3823
|
+
fields?: string;
|
|
3824
|
+
/** 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. */
|
|
3825
|
+
key?: string;
|
|
3826
|
+
/** Required. The `name` (ID) of the developer registration. */
|
|
3827
|
+
name: string;
|
|
3828
|
+
/** OAuth 2.0 token for the current user. */
|
|
3829
|
+
oauth_token?: string;
|
|
3830
|
+
/** Returns response with indentations and line breaks. */
|
|
3831
|
+
prettyPrint?: boolean;
|
|
3832
|
+
/** 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. */
|
|
3833
|
+
quotaUser?: string;
|
|
3834
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3835
|
+
upload_protocol?: string;
|
|
3836
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3837
|
+
uploadType?: string;
|
|
3838
|
+
}): Request<DeveloperRegistration>;
|
|
3683
3839
|
/** 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. */
|
|
3684
3840
|
list(request?: {
|
|
3685
3841
|
/** V1 error format. */
|
|
@@ -3808,6 +3964,7 @@ declare namespace gapi.client {
|
|
|
3808
3964
|
automaticImprovements: AutomaticImprovementsResource;
|
|
3809
3965
|
businessIdentity: BusinessIdentityResource;
|
|
3810
3966
|
businessInfo: BusinessInfoResource;
|
|
3967
|
+
developerRegistration: DeveloperRegistrationResource;
|
|
3811
3968
|
emailPreferences: EmailPreferencesResource;
|
|
3812
3969
|
gbpAccounts: GbpAccountsResource;
|
|
3813
3970
|
homepage: HomepageResource;
|
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 a developer registration for a merchant.
|
|
89
|
+
*/
|
|
90
|
+
await gapi.client.merchantapi.accounts.getDeveloperRegistration({name: 'name'});
|
|
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
|
*/
|