@googleapis/merchantapi 10.0.0 → 11.0.0
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/CHANGELOG.md +23 -0
- package/accounts_v1beta.ts +158 -156
- package/build/accounts_v1beta.d.ts +75 -74
- package/build/accounts_v1beta.js +33 -32
- package/build/accounts_v1beta.js.map +1 -1
- package/build/inventories_v1beta.d.ts +6 -6
- package/build/ordertracking_v1beta.d.ts +2 -2
- package/build/ordertracking_v1beta.js +2 -2
- package/build/products_v1beta.d.ts +10 -10
- package/build/promotions_v1beta.d.ts +1 -1
- package/inventories_v1beta.ts +6 -6
- package/ordertracking_v1beta.ts +4 -4
- package/package.json +1 -1
- package/products_v1beta.ts +10 -10
- package/promotions_v1beta.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [11.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/merchantapi-v10.1.0...merchantapi-v11.0.0) (2025-08-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* **merchantapi:** This release has breaking changes.
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **merchantapi:** update the API ([daa4e02](https://github.com/googleapis/google-api-nodejs-client/commit/daa4e02f0f31eb5dc9499d2723fb3e2d8d1979cf))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **merchantapi:** update the API ([117a719](https://github.com/googleapis/google-api-nodejs-client/commit/117a719096e9a5f77a46681c8d9216beb3580bfa))
|
|
18
|
+
|
|
19
|
+
## [10.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/merchantapi-v10.0.0...merchantapi-v10.1.0) (2025-07-25)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* run the generator ([#3721](https://github.com/googleapis/google-api-nodejs-client/issues/3721)) ([89a253d](https://github.com/googleapis/google-api-nodejs-client/commit/89a253dc14d931865a4a35fb9093a39a8804ec63))
|
|
25
|
+
|
|
3
26
|
## [10.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/merchantapi-v9.0.0...merchantapi-v10.0.0) (2025-07-22)
|
|
4
27
|
|
|
5
28
|
|
package/accounts_v1beta.ts
CHANGED
|
@@ -140,7 +140,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
140
140
|
uri?: string | null;
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
|
-
* Describes the [accepted terms of service](/merchant/api/guides/accounts/create-and-configure#accept_the_merchant_center_terms_of_service).
|
|
143
|
+
* Describes the [accepted terms of service](https://developers.google.com/merchant/api/guides/accounts/create-and-configure#accept_the_merchant_center_terms_of_service).
|
|
144
144
|
*/
|
|
145
145
|
export interface Schema$Accepted {
|
|
146
146
|
/**
|
|
@@ -566,7 +566,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
566
566
|
*/
|
|
567
567
|
effectiveUriSettings?: Schema$UriSettings;
|
|
568
568
|
/**
|
|
569
|
-
* Optional. The destinations to which the checkout program applies, valid destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
|
|
569
|
+
* Optional. The destinations (also known as [Marketing methods](https://support.google.com/merchants/answer/15130232)) to which the checkout program applies, valid destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
|
|
570
570
|
*/
|
|
571
571
|
eligibleDestinations?: string[] | null;
|
|
572
572
|
/**
|
|
@@ -1679,7 +1679,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1679
1679
|
/**
|
|
1680
1680
|
* Request message for the RegisterGCP method.
|
|
1681
1681
|
*/
|
|
1682
|
-
export interface Schema$
|
|
1682
|
+
export interface Schema$RegisterGcpRequest {
|
|
1683
1683
|
/**
|
|
1684
1684
|
* 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
|
|
1685
1685
|
*/
|
|
@@ -2036,7 +2036,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
2036
2036
|
/**
|
|
2037
2037
|
* Request message for the UnregisterGCP method.
|
|
2038
2038
|
*/
|
|
2039
|
-
export interface Schema$
|
|
2039
|
+
export interface Schema$UnregisterGcpRequest {}
|
|
2040
2040
|
/**
|
|
2041
2041
|
* URL settings for cart or checkout URL.
|
|
2042
2042
|
*/
|
|
@@ -2130,7 +2130,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
2130
2130
|
*/
|
|
2131
2131
|
carrierService?: string | null;
|
|
2132
2132
|
/**
|
|
2133
|
-
* Required. Warehouse name. This should match
|
|
2133
|
+
* Required. Warehouse name. This should match warehouse.
|
|
2134
2134
|
*/
|
|
2135
2135
|
warehouse?: string | null;
|
|
2136
2136
|
}
|
|
@@ -2648,148 +2648,6 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
2648
2648
|
}
|
|
2649
2649
|
}
|
|
2650
2650
|
|
|
2651
|
-
/**
|
|
2652
|
-
* Retrieves a developer registration for a merchant.
|
|
2653
|
-
* @example
|
|
2654
|
-
* ```js
|
|
2655
|
-
* // Before running the sample:
|
|
2656
|
-
* // - Enable the API at:
|
|
2657
|
-
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
2658
|
-
* // - Login into gcloud by running:
|
|
2659
|
-
* // ```sh
|
|
2660
|
-
* // $ gcloud auth application-default login
|
|
2661
|
-
* // ```
|
|
2662
|
-
* // - Install the npm module by running:
|
|
2663
|
-
* // ```sh
|
|
2664
|
-
* // $ npm install googleapis
|
|
2665
|
-
* // ```
|
|
2666
|
-
*
|
|
2667
|
-
* const {google} = require('googleapis');
|
|
2668
|
-
* const merchantapi = google.merchantapi('accounts_v1beta');
|
|
2669
|
-
*
|
|
2670
|
-
* async function main() {
|
|
2671
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2672
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2673
|
-
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
2674
|
-
* });
|
|
2675
|
-
*
|
|
2676
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2677
|
-
* const authClient = await auth.getClient();
|
|
2678
|
-
* google.options({auth: authClient});
|
|
2679
|
-
*
|
|
2680
|
-
* // Do the magic
|
|
2681
|
-
* const res = await merchantapi.accounts.getDeveloperRegistration({
|
|
2682
|
-
* // Required. The `name` (ID) of the developer registration.
|
|
2683
|
-
* name: 'accounts/my-account/developerRegistration',
|
|
2684
|
-
* });
|
|
2685
|
-
* console.log(res.data);
|
|
2686
|
-
*
|
|
2687
|
-
* // Example response
|
|
2688
|
-
* // {
|
|
2689
|
-
* // "gcpIds": [],
|
|
2690
|
-
* // "name": "my_name"
|
|
2691
|
-
* // }
|
|
2692
|
-
* }
|
|
2693
|
-
*
|
|
2694
|
-
* main().catch(e => {
|
|
2695
|
-
* console.error(e);
|
|
2696
|
-
* throw e;
|
|
2697
|
-
* });
|
|
2698
|
-
*
|
|
2699
|
-
* ```
|
|
2700
|
-
*
|
|
2701
|
-
* @param params - Parameters for request
|
|
2702
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2703
|
-
* @param callback - Optional callback that handles the response.
|
|
2704
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2705
|
-
*/
|
|
2706
|
-
getDeveloperRegistration(
|
|
2707
|
-
params: Params$Resource$Accounts$Getdeveloperregistration,
|
|
2708
|
-
options: StreamMethodOptions
|
|
2709
|
-
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2710
|
-
getDeveloperRegistration(
|
|
2711
|
-
params?: Params$Resource$Accounts$Getdeveloperregistration,
|
|
2712
|
-
options?: MethodOptions
|
|
2713
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$DeveloperRegistration>>;
|
|
2714
|
-
getDeveloperRegistration(
|
|
2715
|
-
params: Params$Resource$Accounts$Getdeveloperregistration,
|
|
2716
|
-
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2717
|
-
callback: BodyResponseCallback<Readable>
|
|
2718
|
-
): void;
|
|
2719
|
-
getDeveloperRegistration(
|
|
2720
|
-
params: Params$Resource$Accounts$Getdeveloperregistration,
|
|
2721
|
-
options:
|
|
2722
|
-
| MethodOptions
|
|
2723
|
-
| BodyResponseCallback<Schema$DeveloperRegistration>,
|
|
2724
|
-
callback: BodyResponseCallback<Schema$DeveloperRegistration>
|
|
2725
|
-
): void;
|
|
2726
|
-
getDeveloperRegistration(
|
|
2727
|
-
params: Params$Resource$Accounts$Getdeveloperregistration,
|
|
2728
|
-
callback: BodyResponseCallback<Schema$DeveloperRegistration>
|
|
2729
|
-
): void;
|
|
2730
|
-
getDeveloperRegistration(
|
|
2731
|
-
callback: BodyResponseCallback<Schema$DeveloperRegistration>
|
|
2732
|
-
): void;
|
|
2733
|
-
getDeveloperRegistration(
|
|
2734
|
-
paramsOrCallback?:
|
|
2735
|
-
| Params$Resource$Accounts$Getdeveloperregistration
|
|
2736
|
-
| BodyResponseCallback<Schema$DeveloperRegistration>
|
|
2737
|
-
| BodyResponseCallback<Readable>,
|
|
2738
|
-
optionsOrCallback?:
|
|
2739
|
-
| MethodOptions
|
|
2740
|
-
| StreamMethodOptions
|
|
2741
|
-
| BodyResponseCallback<Schema$DeveloperRegistration>
|
|
2742
|
-
| BodyResponseCallback<Readable>,
|
|
2743
|
-
callback?:
|
|
2744
|
-
| BodyResponseCallback<Schema$DeveloperRegistration>
|
|
2745
|
-
| BodyResponseCallback<Readable>
|
|
2746
|
-
):
|
|
2747
|
-
| void
|
|
2748
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$DeveloperRegistration>>
|
|
2749
|
-
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2750
|
-
let params = (paramsOrCallback ||
|
|
2751
|
-
{}) as Params$Resource$Accounts$Getdeveloperregistration;
|
|
2752
|
-
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2753
|
-
|
|
2754
|
-
if (typeof paramsOrCallback === 'function') {
|
|
2755
|
-
callback = paramsOrCallback;
|
|
2756
|
-
params = {} as Params$Resource$Accounts$Getdeveloperregistration;
|
|
2757
|
-
options = {};
|
|
2758
|
-
}
|
|
2759
|
-
|
|
2760
|
-
if (typeof optionsOrCallback === 'function') {
|
|
2761
|
-
callback = optionsOrCallback;
|
|
2762
|
-
options = {};
|
|
2763
|
-
}
|
|
2764
|
-
|
|
2765
|
-
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
2766
|
-
const parameters = {
|
|
2767
|
-
options: Object.assign(
|
|
2768
|
-
{
|
|
2769
|
-
url: (rootUrl + '/accounts/v1beta/{+name}').replace(
|
|
2770
|
-
/([^:]\/)\/+/g,
|
|
2771
|
-
'$1'
|
|
2772
|
-
),
|
|
2773
|
-
method: 'GET',
|
|
2774
|
-
apiVersion: '',
|
|
2775
|
-
},
|
|
2776
|
-
options
|
|
2777
|
-
),
|
|
2778
|
-
params,
|
|
2779
|
-
requiredParams: ['name'],
|
|
2780
|
-
pathParams: ['name'],
|
|
2781
|
-
context: this.context,
|
|
2782
|
-
};
|
|
2783
|
-
if (callback) {
|
|
2784
|
-
createAPIRequest<Schema$DeveloperRegistration>(
|
|
2785
|
-
parameters,
|
|
2786
|
-
callback as BodyResponseCallback<unknown>
|
|
2787
|
-
);
|
|
2788
|
-
} else {
|
|
2789
|
-
return createAPIRequest<Schema$DeveloperRegistration>(parameters);
|
|
2790
|
-
}
|
|
2791
|
-
}
|
|
2792
|
-
|
|
2793
2651
|
/**
|
|
2794
2652
|
* 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.
|
|
2795
2653
|
* @example
|
|
@@ -3260,13 +3118,6 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
3260
3118
|
*/
|
|
3261
3119
|
name?: string;
|
|
3262
3120
|
}
|
|
3263
|
-
export interface Params$Resource$Accounts$Getdeveloperregistration
|
|
3264
|
-
extends StandardParameters {
|
|
3265
|
-
/**
|
|
3266
|
-
* Required. The `name` (ID) of the developer registration.
|
|
3267
|
-
*/
|
|
3268
|
-
name?: string;
|
|
3269
|
-
}
|
|
3270
3121
|
export interface Params$Resource$Accounts$List extends StandardParameters {
|
|
3271
3122
|
/**
|
|
3272
3123
|
* Optional. Returns only accounts that match the [filter](https://developers.google.com/merchant/api/guides/accounts/filter). For more details, see the [filter syntax reference](https://developers.google.com/merchant/api/guides/accounts/filter-syntax).
|
|
@@ -4656,6 +4507,150 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
4656
4507
|
this.context = context;
|
|
4657
4508
|
}
|
|
4658
4509
|
|
|
4510
|
+
/**
|
|
4511
|
+
* Retrieves a developer registration for a merchant.
|
|
4512
|
+
* @example
|
|
4513
|
+
* ```js
|
|
4514
|
+
* // Before running the sample:
|
|
4515
|
+
* // - Enable the API at:
|
|
4516
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
4517
|
+
* // - Login into gcloud by running:
|
|
4518
|
+
* // ```sh
|
|
4519
|
+
* // $ gcloud auth application-default login
|
|
4520
|
+
* // ```
|
|
4521
|
+
* // - Install the npm module by running:
|
|
4522
|
+
* // ```sh
|
|
4523
|
+
* // $ npm install googleapis
|
|
4524
|
+
* // ```
|
|
4525
|
+
*
|
|
4526
|
+
* const {google} = require('googleapis');
|
|
4527
|
+
* const merchantapi = google.merchantapi('accounts_v1beta');
|
|
4528
|
+
*
|
|
4529
|
+
* async function main() {
|
|
4530
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4531
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4532
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
4533
|
+
* });
|
|
4534
|
+
*
|
|
4535
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4536
|
+
* const authClient = await auth.getClient();
|
|
4537
|
+
* google.options({auth: authClient});
|
|
4538
|
+
*
|
|
4539
|
+
* // Do the magic
|
|
4540
|
+
* const res =
|
|
4541
|
+
* await merchantapi.accounts.developerRegistration.getDeveloperRegistration({
|
|
4542
|
+
* // Required. The `name` (ID) of the developer registration.
|
|
4543
|
+
* name: 'accounts/my-account/developerRegistration',
|
|
4544
|
+
* });
|
|
4545
|
+
* console.log(res.data);
|
|
4546
|
+
*
|
|
4547
|
+
* // Example response
|
|
4548
|
+
* // {
|
|
4549
|
+
* // "gcpIds": [],
|
|
4550
|
+
* // "name": "my_name"
|
|
4551
|
+
* // }
|
|
4552
|
+
* }
|
|
4553
|
+
*
|
|
4554
|
+
* main().catch(e => {
|
|
4555
|
+
* console.error(e);
|
|
4556
|
+
* throw e;
|
|
4557
|
+
* });
|
|
4558
|
+
*
|
|
4559
|
+
* ```
|
|
4560
|
+
*
|
|
4561
|
+
* @param params - Parameters for request
|
|
4562
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4563
|
+
* @param callback - Optional callback that handles the response.
|
|
4564
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4565
|
+
*/
|
|
4566
|
+
getDeveloperRegistration(
|
|
4567
|
+
params: Params$Resource$Accounts$Developerregistration$Getdeveloperregistration,
|
|
4568
|
+
options: StreamMethodOptions
|
|
4569
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4570
|
+
getDeveloperRegistration(
|
|
4571
|
+
params?: Params$Resource$Accounts$Developerregistration$Getdeveloperregistration,
|
|
4572
|
+
options?: MethodOptions
|
|
4573
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$DeveloperRegistration>>;
|
|
4574
|
+
getDeveloperRegistration(
|
|
4575
|
+
params: Params$Resource$Accounts$Developerregistration$Getdeveloperregistration,
|
|
4576
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4577
|
+
callback: BodyResponseCallback<Readable>
|
|
4578
|
+
): void;
|
|
4579
|
+
getDeveloperRegistration(
|
|
4580
|
+
params: Params$Resource$Accounts$Developerregistration$Getdeveloperregistration,
|
|
4581
|
+
options:
|
|
4582
|
+
| MethodOptions
|
|
4583
|
+
| BodyResponseCallback<Schema$DeveloperRegistration>,
|
|
4584
|
+
callback: BodyResponseCallback<Schema$DeveloperRegistration>
|
|
4585
|
+
): void;
|
|
4586
|
+
getDeveloperRegistration(
|
|
4587
|
+
params: Params$Resource$Accounts$Developerregistration$Getdeveloperregistration,
|
|
4588
|
+
callback: BodyResponseCallback<Schema$DeveloperRegistration>
|
|
4589
|
+
): void;
|
|
4590
|
+
getDeveloperRegistration(
|
|
4591
|
+
callback: BodyResponseCallback<Schema$DeveloperRegistration>
|
|
4592
|
+
): void;
|
|
4593
|
+
getDeveloperRegistration(
|
|
4594
|
+
paramsOrCallback?:
|
|
4595
|
+
| Params$Resource$Accounts$Developerregistration$Getdeveloperregistration
|
|
4596
|
+
| BodyResponseCallback<Schema$DeveloperRegistration>
|
|
4597
|
+
| BodyResponseCallback<Readable>,
|
|
4598
|
+
optionsOrCallback?:
|
|
4599
|
+
| MethodOptions
|
|
4600
|
+
| StreamMethodOptions
|
|
4601
|
+
| BodyResponseCallback<Schema$DeveloperRegistration>
|
|
4602
|
+
| BodyResponseCallback<Readable>,
|
|
4603
|
+
callback?:
|
|
4604
|
+
| BodyResponseCallback<Schema$DeveloperRegistration>
|
|
4605
|
+
| BodyResponseCallback<Readable>
|
|
4606
|
+
):
|
|
4607
|
+
| void
|
|
4608
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$DeveloperRegistration>>
|
|
4609
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4610
|
+
let params = (paramsOrCallback ||
|
|
4611
|
+
{}) as Params$Resource$Accounts$Developerregistration$Getdeveloperregistration;
|
|
4612
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4613
|
+
|
|
4614
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4615
|
+
callback = paramsOrCallback;
|
|
4616
|
+
params =
|
|
4617
|
+
{} as Params$Resource$Accounts$Developerregistration$Getdeveloperregistration;
|
|
4618
|
+
options = {};
|
|
4619
|
+
}
|
|
4620
|
+
|
|
4621
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4622
|
+
callback = optionsOrCallback;
|
|
4623
|
+
options = {};
|
|
4624
|
+
}
|
|
4625
|
+
|
|
4626
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
4627
|
+
const parameters = {
|
|
4628
|
+
options: Object.assign(
|
|
4629
|
+
{
|
|
4630
|
+
url: (rootUrl + '/accounts/v1beta/{+name}').replace(
|
|
4631
|
+
/([^:]\/)\/+/g,
|
|
4632
|
+
'$1'
|
|
4633
|
+
),
|
|
4634
|
+
method: 'GET',
|
|
4635
|
+
apiVersion: '',
|
|
4636
|
+
},
|
|
4637
|
+
options
|
|
4638
|
+
),
|
|
4639
|
+
params,
|
|
4640
|
+
requiredParams: ['name'],
|
|
4641
|
+
pathParams: ['name'],
|
|
4642
|
+
context: this.context,
|
|
4643
|
+
};
|
|
4644
|
+
if (callback) {
|
|
4645
|
+
createAPIRequest<Schema$DeveloperRegistration>(
|
|
4646
|
+
parameters,
|
|
4647
|
+
callback as BodyResponseCallback<unknown>
|
|
4648
|
+
);
|
|
4649
|
+
} else {
|
|
4650
|
+
return createAPIRequest<Schema$DeveloperRegistration>(parameters);
|
|
4651
|
+
}
|
|
4652
|
+
}
|
|
4653
|
+
|
|
4659
4654
|
/**
|
|
4660
4655
|
* 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.
|
|
4661
4656
|
* @example
|
|
@@ -4950,6 +4945,13 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
4950
4945
|
}
|
|
4951
4946
|
}
|
|
4952
4947
|
|
|
4948
|
+
export interface Params$Resource$Accounts$Developerregistration$Getdeveloperregistration
|
|
4949
|
+
extends StandardParameters {
|
|
4950
|
+
/**
|
|
4951
|
+
* Required. The `name` (ID) of the developer registration.
|
|
4952
|
+
*/
|
|
4953
|
+
name?: string;
|
|
4954
|
+
}
|
|
4953
4955
|
export interface Params$Resource$Accounts$Developerregistration$Registergcp
|
|
4954
4956
|
extends StandardParameters {
|
|
4955
4957
|
/**
|
|
@@ -4960,7 +4962,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
4960
4962
|
/**
|
|
4961
4963
|
* Request body metadata
|
|
4962
4964
|
*/
|
|
4963
|
-
requestBody?: Schema$
|
|
4965
|
+
requestBody?: Schema$RegisterGcpRequest;
|
|
4964
4966
|
}
|
|
4965
4967
|
export interface Params$Resource$Accounts$Developerregistration$Unregistergcp
|
|
4966
4968
|
extends StandardParameters {
|
|
@@ -4972,7 +4974,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
4972
4974
|
/**
|
|
4973
4975
|
* Request body metadata
|
|
4974
4976
|
*/
|
|
4975
|
-
requestBody?: Schema$
|
|
4977
|
+
requestBody?: Schema$UnregisterGcpRequest;
|
|
4976
4978
|
}
|
|
4977
4979
|
|
|
4978
4980
|
export class Resource$Accounts$Emailpreferences {
|
|
@@ -86,7 +86,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
86
86
|
uri?: string | null;
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
|
-
* Describes the [accepted terms of service](/merchant/api/guides/accounts/create-and-configure#accept_the_merchant_center_terms_of_service).
|
|
89
|
+
* Describes the [accepted terms of service](https://developers.google.com/merchant/api/guides/accounts/create-and-configure#accept_the_merchant_center_terms_of_service).
|
|
90
90
|
*/
|
|
91
91
|
export interface Schema$Accepted {
|
|
92
92
|
/**
|
|
@@ -516,7 +516,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
516
516
|
*/
|
|
517
517
|
effectiveUriSettings?: Schema$UriSettings;
|
|
518
518
|
/**
|
|
519
|
-
* Optional. The destinations to which the checkout program applies, valid destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
|
|
519
|
+
* Optional. The destinations (also known as [Marketing methods](https://support.google.com/merchants/answer/15130232)) to which the checkout program applies, valid destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
|
|
520
520
|
*/
|
|
521
521
|
eligibleDestinations?: string[] | null;
|
|
522
522
|
/**
|
|
@@ -1634,7 +1634,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1634
1634
|
/**
|
|
1635
1635
|
* Request message for the RegisterGCP method.
|
|
1636
1636
|
*/
|
|
1637
|
-
export interface Schema$
|
|
1637
|
+
export interface Schema$RegisterGcpRequest {
|
|
1638
1638
|
/**
|
|
1639
1639
|
* 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
|
|
1640
1640
|
*/
|
|
@@ -1994,7 +1994,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
1994
1994
|
/**
|
|
1995
1995
|
* Request message for the UnregisterGCP method.
|
|
1996
1996
|
*/
|
|
1997
|
-
export interface Schema$
|
|
1997
|
+
export interface Schema$UnregisterGcpRequest {
|
|
1998
1998
|
}
|
|
1999
1999
|
/**
|
|
2000
2000
|
* URL settings for cart or checkout URL.
|
|
@@ -2089,7 +2089,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
2089
2089
|
*/
|
|
2090
2090
|
carrierService?: string | null;
|
|
2091
2091
|
/**
|
|
2092
|
-
* Required. Warehouse name. This should match
|
|
2092
|
+
* Required. Warehouse name. This should match warehouse.
|
|
2093
2093
|
*/
|
|
2094
2094
|
warehouse?: string | null;
|
|
2095
2095
|
}
|
|
@@ -2340,67 +2340,6 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
2340
2340
|
get(params: Params$Resource$Accounts$Get, options: MethodOptions | BodyResponseCallback<Schema$Account>, callback: BodyResponseCallback<Schema$Account>): void;
|
|
2341
2341
|
get(params: Params$Resource$Accounts$Get, callback: BodyResponseCallback<Schema$Account>): void;
|
|
2342
2342
|
get(callback: BodyResponseCallback<Schema$Account>): void;
|
|
2343
|
-
/**
|
|
2344
|
-
* Retrieves a developer registration for a merchant.
|
|
2345
|
-
* @example
|
|
2346
|
-
* ```js
|
|
2347
|
-
* // Before running the sample:
|
|
2348
|
-
* // - Enable the API at:
|
|
2349
|
-
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
2350
|
-
* // - Login into gcloud by running:
|
|
2351
|
-
* // ```sh
|
|
2352
|
-
* // $ gcloud auth application-default login
|
|
2353
|
-
* // ```
|
|
2354
|
-
* // - Install the npm module by running:
|
|
2355
|
-
* // ```sh
|
|
2356
|
-
* // $ npm install googleapis
|
|
2357
|
-
* // ```
|
|
2358
|
-
*
|
|
2359
|
-
* const {google} = require('googleapis');
|
|
2360
|
-
* const merchantapi = google.merchantapi('accounts_v1beta');
|
|
2361
|
-
*
|
|
2362
|
-
* async function main() {
|
|
2363
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2364
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2365
|
-
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
2366
|
-
* });
|
|
2367
|
-
*
|
|
2368
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2369
|
-
* const authClient = await auth.getClient();
|
|
2370
|
-
* google.options({auth: authClient});
|
|
2371
|
-
*
|
|
2372
|
-
* // Do the magic
|
|
2373
|
-
* const res = await merchantapi.accounts.getDeveloperRegistration({
|
|
2374
|
-
* // Required. The `name` (ID) of the developer registration.
|
|
2375
|
-
* name: 'accounts/my-account/developerRegistration',
|
|
2376
|
-
* });
|
|
2377
|
-
* console.log(res.data);
|
|
2378
|
-
*
|
|
2379
|
-
* // Example response
|
|
2380
|
-
* // {
|
|
2381
|
-
* // "gcpIds": [],
|
|
2382
|
-
* // "name": "my_name"
|
|
2383
|
-
* // }
|
|
2384
|
-
* }
|
|
2385
|
-
*
|
|
2386
|
-
* main().catch(e => {
|
|
2387
|
-
* console.error(e);
|
|
2388
|
-
* throw e;
|
|
2389
|
-
* });
|
|
2390
|
-
*
|
|
2391
|
-
* ```
|
|
2392
|
-
*
|
|
2393
|
-
* @param params - Parameters for request
|
|
2394
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2395
|
-
* @param callback - Optional callback that handles the response.
|
|
2396
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2397
|
-
*/
|
|
2398
|
-
getDeveloperRegistration(params: Params$Resource$Accounts$Getdeveloperregistration, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2399
|
-
getDeveloperRegistration(params?: Params$Resource$Accounts$Getdeveloperregistration, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$DeveloperRegistration>>;
|
|
2400
|
-
getDeveloperRegistration(params: Params$Resource$Accounts$Getdeveloperregistration, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2401
|
-
getDeveloperRegistration(params: Params$Resource$Accounts$Getdeveloperregistration, options: MethodOptions | BodyResponseCallback<Schema$DeveloperRegistration>, callback: BodyResponseCallback<Schema$DeveloperRegistration>): void;
|
|
2402
|
-
getDeveloperRegistration(params: Params$Resource$Accounts$Getdeveloperregistration, callback: BodyResponseCallback<Schema$DeveloperRegistration>): void;
|
|
2403
|
-
getDeveloperRegistration(callback: BodyResponseCallback<Schema$DeveloperRegistration>): void;
|
|
2404
2343
|
/**
|
|
2405
2344
|
* 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.
|
|
2406
2345
|
* @example
|
|
@@ -2636,12 +2575,6 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
2636
2575
|
*/
|
|
2637
2576
|
name?: string;
|
|
2638
2577
|
}
|
|
2639
|
-
export interface Params$Resource$Accounts$Getdeveloperregistration extends StandardParameters {
|
|
2640
|
-
/**
|
|
2641
|
-
* Required. The `name` (ID) of the developer registration.
|
|
2642
|
-
*/
|
|
2643
|
-
name?: string;
|
|
2644
|
-
}
|
|
2645
2578
|
export interface Params$Resource$Accounts$List extends StandardParameters {
|
|
2646
2579
|
/**
|
|
2647
2580
|
* Optional. Returns only accounts that match the [filter](https://developers.google.com/merchant/api/guides/accounts/filter). For more details, see the [filter syntax reference](https://developers.google.com/merchant/api/guides/accounts/filter-syntax).
|
|
@@ -3357,6 +3290,68 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
3357
3290
|
export class Resource$Accounts$Developerregistration {
|
|
3358
3291
|
context: APIRequestContext;
|
|
3359
3292
|
constructor(context: APIRequestContext);
|
|
3293
|
+
/**
|
|
3294
|
+
* Retrieves a developer registration for a merchant.
|
|
3295
|
+
* @example
|
|
3296
|
+
* ```js
|
|
3297
|
+
* // Before running the sample:
|
|
3298
|
+
* // - Enable the API at:
|
|
3299
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
3300
|
+
* // - Login into gcloud by running:
|
|
3301
|
+
* // ```sh
|
|
3302
|
+
* // $ gcloud auth application-default login
|
|
3303
|
+
* // ```
|
|
3304
|
+
* // - Install the npm module by running:
|
|
3305
|
+
* // ```sh
|
|
3306
|
+
* // $ npm install googleapis
|
|
3307
|
+
* // ```
|
|
3308
|
+
*
|
|
3309
|
+
* const {google} = require('googleapis');
|
|
3310
|
+
* const merchantapi = google.merchantapi('accounts_v1beta');
|
|
3311
|
+
*
|
|
3312
|
+
* async function main() {
|
|
3313
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3314
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3315
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
3316
|
+
* });
|
|
3317
|
+
*
|
|
3318
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3319
|
+
* const authClient = await auth.getClient();
|
|
3320
|
+
* google.options({auth: authClient});
|
|
3321
|
+
*
|
|
3322
|
+
* // Do the magic
|
|
3323
|
+
* const res =
|
|
3324
|
+
* await merchantapi.accounts.developerRegistration.getDeveloperRegistration({
|
|
3325
|
+
* // Required. The `name` (ID) of the developer registration.
|
|
3326
|
+
* name: 'accounts/my-account/developerRegistration',
|
|
3327
|
+
* });
|
|
3328
|
+
* console.log(res.data);
|
|
3329
|
+
*
|
|
3330
|
+
* // Example response
|
|
3331
|
+
* // {
|
|
3332
|
+
* // "gcpIds": [],
|
|
3333
|
+
* // "name": "my_name"
|
|
3334
|
+
* // }
|
|
3335
|
+
* }
|
|
3336
|
+
*
|
|
3337
|
+
* main().catch(e => {
|
|
3338
|
+
* console.error(e);
|
|
3339
|
+
* throw e;
|
|
3340
|
+
* });
|
|
3341
|
+
*
|
|
3342
|
+
* ```
|
|
3343
|
+
*
|
|
3344
|
+
* @param params - Parameters for request
|
|
3345
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3346
|
+
* @param callback - Optional callback that handles the response.
|
|
3347
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3348
|
+
*/
|
|
3349
|
+
getDeveloperRegistration(params: Params$Resource$Accounts$Developerregistration$Getdeveloperregistration, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3350
|
+
getDeveloperRegistration(params?: Params$Resource$Accounts$Developerregistration$Getdeveloperregistration, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$DeveloperRegistration>>;
|
|
3351
|
+
getDeveloperRegistration(params: Params$Resource$Accounts$Developerregistration$Getdeveloperregistration, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3352
|
+
getDeveloperRegistration(params: Params$Resource$Accounts$Developerregistration$Getdeveloperregistration, options: MethodOptions | BodyResponseCallback<Schema$DeveloperRegistration>, callback: BodyResponseCallback<Schema$DeveloperRegistration>): void;
|
|
3353
|
+
getDeveloperRegistration(params: Params$Resource$Accounts$Developerregistration$Getdeveloperregistration, callback: BodyResponseCallback<Schema$DeveloperRegistration>): void;
|
|
3354
|
+
getDeveloperRegistration(callback: BodyResponseCallback<Schema$DeveloperRegistration>): void;
|
|
3360
3355
|
/**
|
|
3361
3356
|
* 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.
|
|
3362
3357
|
* @example
|
|
@@ -3491,6 +3486,12 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
3491
3486
|
unregisterGcp(params: Params$Resource$Accounts$Developerregistration$Unregistergcp, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
3492
3487
|
unregisterGcp(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
3493
3488
|
}
|
|
3489
|
+
export interface Params$Resource$Accounts$Developerregistration$Getdeveloperregistration extends StandardParameters {
|
|
3490
|
+
/**
|
|
3491
|
+
* Required. The `name` (ID) of the developer registration.
|
|
3492
|
+
*/
|
|
3493
|
+
name?: string;
|
|
3494
|
+
}
|
|
3494
3495
|
export interface Params$Resource$Accounts$Developerregistration$Registergcp extends StandardParameters {
|
|
3495
3496
|
/**
|
|
3496
3497
|
* 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`
|
|
@@ -3499,7 +3500,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
3499
3500
|
/**
|
|
3500
3501
|
* Request body metadata
|
|
3501
3502
|
*/
|
|
3502
|
-
requestBody?: Schema$
|
|
3503
|
+
requestBody?: Schema$RegisterGcpRequest;
|
|
3503
3504
|
}
|
|
3504
3505
|
export interface Params$Resource$Accounts$Developerregistration$Unregistergcp extends StandardParameters {
|
|
3505
3506
|
/**
|
|
@@ -3509,7 +3510,7 @@ export declare namespace merchantapi_accounts_v1beta {
|
|
|
3509
3510
|
/**
|
|
3510
3511
|
* Request body metadata
|
|
3511
3512
|
*/
|
|
3512
|
-
requestBody?: Schema$
|
|
3513
|
+
requestBody?: Schema$UnregisterGcpRequest;
|
|
3513
3514
|
}
|
|
3514
3515
|
export class Resource$Accounts$Emailpreferences {
|
|
3515
3516
|
context: APIRequestContext;
|