@googleapis/merchantapi 11.0.0 → 13.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 +227 -0
- package/accounts_v1.ts +14278 -0
- package/accounts_v1beta.ts +160 -6
- package/build/accounts_v1.d.ts +8168 -0
- package/build/accounts_v1.js +2632 -0
- package/build/accounts_v1.js.map +1 -0
- package/build/accounts_v1beta.d.ts +74 -7
- package/build/accounts_v1beta.js +78 -1
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1.d.ts +748 -0
- package/build/conversions_v1.js +256 -0
- package/build/conversions_v1.js.map +1 -0
- package/build/conversions_v1beta.d.ts +0 -1
- package/build/conversions_v1beta.js +6 -1
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1.d.ts +1075 -0
- package/build/datasources_v1.js +297 -0
- package/build/datasources_v1.js.map +1 -0
- package/build/datasources_v1beta.d.ts +0 -1
- package/build/datasources_v1beta.js +8 -1
- package/build/datasources_v1beta.js.map +1 -1
- package/build/index.d.ts +60 -0
- package/build/index.js +38 -2
- package/build/index.js.map +1 -1
- package/build/inventories_v1.d.ts +766 -0
- package/build/inventories_v1.js +280 -0
- package/build/inventories_v1.js.map +1 -0
- package/build/inventories_v1beta.d.ts +0 -1
- package/build/inventories_v1beta.js +10 -1
- package/build/inventories_v1beta.js.map +1 -1
- package/build/issueresolution_v1.d.ts +1026 -0
- package/build/issueresolution_v1.js +202 -0
- package/build/issueresolution_v1.js.map +1 -0
- package/build/issueresolution_v1beta.d.ts +0 -1
- package/build/issueresolution_v1beta.js +8 -1
- package/build/issueresolution_v1beta.js.map +1 -1
- package/build/lfp_v1.d.ts +1047 -0
- package/build/lfp_v1.js +315 -0
- package/build/lfp_v1.js.map +1 -0
- package/build/lfp_v1beta.d.ts +1 -2
- package/build/lfp_v1beta.js +12 -1
- package/build/lfp_v1beta.js.map +1 -1
- package/build/notifications_v1.d.ts +579 -0
- package/build/notifications_v1.js +227 -0
- package/build/notifications_v1.js.map +1 -0
- package/build/notifications_v1beta.d.ts +0 -1
- package/build/notifications_v1beta.js +6 -1
- package/build/notifications_v1beta.js.map +1 -1
- package/build/ordertracking_v1.d.ts +458 -0
- package/build/ordertracking_v1.js +96 -0
- package/build/ordertracking_v1.js.map +1 -0
- package/build/ordertracking_v1beta.d.ts +4 -1
- package/build/ordertracking_v1beta.js +6 -1
- package/build/ordertracking_v1beta.js.map +1 -1
- package/build/products_v1.d.ts +1555 -0
- package/build/products_v1.js +233 -0
- package/build/products_v1.js.map +1 -0
- package/build/products_v1beta.d.ts +3 -4
- package/build/products_v1beta.js +8 -1
- package/build/products_v1beta.js.map +1 -1
- package/build/promotions_v1.d.ts +698 -0
- package/build/promotions_v1.js +160 -0
- package/build/promotions_v1.js.map +1 -0
- package/build/promotions_v1beta.d.ts +4 -5
- package/build/promotions_v1beta.js +6 -1
- package/build/promotions_v1beta.js.map +1 -1
- package/build/quota_v1.d.ts +283 -0
- package/build/quota_v1.js +96 -0
- package/build/quota_v1.js.map +1 -0
- package/build/quota_v1beta.d.ts +0 -1
- package/build/quota_v1beta.js +6 -1
- package/build/quota_v1beta.js.map +1 -1
- package/build/reports_v1.d.ts +1065 -0
- package/build/reports_v1.js +96 -0
- package/build/reports_v1.js.map +1 -0
- package/build/reports_v1beta.d.ts +1 -2
- package/build/reports_v1beta.js +6 -1
- package/build/reports_v1beta.js.map +1 -1
- package/build/reviews_v1beta.d.ts +0 -1
- package/build/reviews_v1beta.js +8 -1
- package/build/reviews_v1beta.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -0
- package/conversions_v1.ts +1284 -0
- package/datasources_v1.ts +1690 -0
- package/index.ts +142 -0
- package/inventories_v1.ts +1321 -0
- package/issueresolution_v1.ts +1425 -0
- package/lfp_v1.ts +1666 -0
- package/lfp_v1beta.ts +1 -1
- package/notifications_v1.ts +1052 -0
- package/ordertracking_v1.ts +599 -0
- package/ordertracking_v1beta.ts +4 -0
- package/package.json +4 -4
- package/products_v1.ts +2013 -0
- package/products_v1beta.ts +3 -3
- package/promotions_v1.ts +995 -0
- package/promotions_v1beta.ts +4 -4
- package/quota_v1.ts +424 -0
- package/reports_v1.ts +1205 -0
- package/reports_v1beta.ts +1 -1
package/accounts_v1beta.ts
CHANGED
|
@@ -127,7 +127,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
|
-
* Collection of information related to the about page ([impressum](https://support.google.com/merchants/answer/14675634?
|
|
130
|
+
* Collection of information related to the about page ([impressum](https://support.google.com/merchants/answer/14675634?ref_topic=15145634&sjid=6892280366904591178-NC)).
|
|
131
131
|
*/
|
|
132
132
|
export interface Schema$About {
|
|
133
133
|
/**
|
|
@@ -840,6 +840,15 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
840
840
|
*/
|
|
841
841
|
geotargetCriteriaIds?: string[] | null;
|
|
842
842
|
}
|
|
843
|
+
/**
|
|
844
|
+
* Response message for the GetAccountForGcpRegistration method.
|
|
845
|
+
*/
|
|
846
|
+
export interface Schema$GetAccountForGcpRegistrationResponse {
|
|
847
|
+
/**
|
|
848
|
+
* The name of the merchant account id that the GCP is registered with.
|
|
849
|
+
*/
|
|
850
|
+
name?: string | null;
|
|
851
|
+
}
|
|
843
852
|
/**
|
|
844
853
|
* The current status of establishing of the service. (for example, pending approval or approved).
|
|
845
854
|
*/
|
|
@@ -953,7 +962,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
953
962
|
uri?: string | null;
|
|
954
963
|
}
|
|
955
964
|
/**
|
|
956
|
-
* Collection of information related to [inventory verification](https://support.google.com/merchants/answer/14684499?
|
|
965
|
+
* Collection of information related to [inventory verification](https://support.google.com/merchants/answer/14684499?ref_topic=15145634&sjid=6892280366904591178-NC).
|
|
957
966
|
*/
|
|
958
967
|
export interface Schema$InventoryVerification {
|
|
959
968
|
/**
|
|
@@ -1306,7 +1315,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1306
1315
|
regionCode?: string | null;
|
|
1307
1316
|
}
|
|
1308
1317
|
/**
|
|
1309
|
-
* Collection of information related to the on display to order ([ODO](https://support.google.com/merchants/answer/14615056?
|
|
1318
|
+
* Collection of information related to the on display to order ([ODO](https://support.google.com/merchants/answer/14615056?ref_topic=15145747&sjid=6892280366904591178-NC)).
|
|
1310
1319
|
*/
|
|
1311
1320
|
export interface Schema$OnDisplayToOrder {
|
|
1312
1321
|
/**
|
|
@@ -1581,7 +1590,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1581
1590
|
resourceType?: string | null;
|
|
1582
1591
|
}
|
|
1583
1592
|
/**
|
|
1584
|
-
* Defines participation in a given program for the specified account. Programs provide a mechanism for adding functionality to a Merchant Center accounts. A typical example of this is the [Free product listings](https://support.google.com/merchants/answer/13889434) program, which enables products from a business's store to be shown across Google for free. The following list is the available set of program resource IDs accessible through the API: * `free-listings` * `shopping-ads` * `youtube-shopping-checkout`
|
|
1593
|
+
* Defines participation in a given program for the specified account. Programs provide a mechanism for adding functionality to a Merchant Center accounts. A typical example of this is the [Free product listings](https://support.google.com/merchants/answer/13889434) program, which enables products from a business's store to be shown across Google for free. The following list is the available set of program resource IDs accessible through the API: * `checkout` * `free-listings` * `shopping-ads` * `youtube-shopping-checkout`
|
|
1585
1594
|
*/
|
|
1586
1595
|
export interface Schema$Program {
|
|
1587
1596
|
/**
|
|
@@ -1681,7 +1690,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1681
1690
|
*/
|
|
1682
1691
|
export interface Schema$RegisterGcpRequest {
|
|
1683
1692
|
/**
|
|
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
|
|
1693
|
+
* 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. Make sure the email used is associated with a Google Account (Google Workspace account or Gmail account) and is not a service account as service accounts can't receive emails.
|
|
1685
1694
|
*/
|
|
1686
1695
|
developerEmail?: string | null;
|
|
1687
1696
|
}
|
|
@@ -1953,7 +1962,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1953
1962
|
regionCode?: string | null;
|
|
1954
1963
|
}
|
|
1955
1964
|
/**
|
|
1956
|
-
* This resource represents the agreement state for a given account and terms of service kind. The state is as follows: * If the business has accepted a terms of service, `accepted` will be populated, otherwise it will be empty * If the business must sign a terms of service, `required` will be populated, otherwise it will be empty. Note that both `required` and `accepted` can be present. In this case the `accepted` terms of services will have an expiration date set in the `valid_until` field. The `required` terms of services need to be accepted before `valid_until` in order for the account to continue having a valid agreement. When accepting new terms of services we expect third-party providers to display the text associated with the given terms of service agreement (the url to the file containing the text is added in the Required message below as `tos_file_uri`). The actual acceptance of the terms of service is done by calling accept on the `TermsOfService` resource. `valid_until` field.
|
|
1965
|
+
* This resource represents the agreement state for a given account and terms of service kind. The state is as follows: * If the business has accepted a terms of service, `accepted` will be populated, otherwise it will be empty * If the business must sign a terms of service, `required` will be populated, otherwise it will be empty. Note that both `required` and `accepted` can be present. In this case the `accepted` terms of services will have an expiration date set in the `valid_until` field. The `required` terms of services need to be accepted before `valid_until` in order for the account to continue having a valid agreement. When accepting new terms of services we expect third-party providers to display the text associated with the given terms of service agreement (the url to the file containing the text is added in the Required message below as `tos_file_uri`). The actual acceptance of the terms of service is done by calling accept on the `TermsOfService` resource. `valid_until` field.
|
|
1957
1966
|
*/
|
|
1958
1967
|
export interface Schema$TermsOfServiceAgreementState {
|
|
1959
1968
|
/**
|
|
@@ -2648,6 +2657,149 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
2648
2657
|
}
|
|
2649
2658
|
}
|
|
2650
2659
|
|
|
2660
|
+
/**
|
|
2661
|
+
* Retrieves the merchant account that the calling GCP is registered with.
|
|
2662
|
+
* @example
|
|
2663
|
+
* ```js
|
|
2664
|
+
* // Before running the sample:
|
|
2665
|
+
* // - Enable the API at:
|
|
2666
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
2667
|
+
* // - Login into gcloud by running:
|
|
2668
|
+
* // ```sh
|
|
2669
|
+
* // $ gcloud auth application-default login
|
|
2670
|
+
* // ```
|
|
2671
|
+
* // - Install the npm module by running:
|
|
2672
|
+
* // ```sh
|
|
2673
|
+
* // $ npm install googleapis
|
|
2674
|
+
* // ```
|
|
2675
|
+
*
|
|
2676
|
+
* const {google} = require('googleapis');
|
|
2677
|
+
* const merchantapi = google.merchantapi('accounts_v1beta');
|
|
2678
|
+
*
|
|
2679
|
+
* async function main() {
|
|
2680
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2681
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2682
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
2683
|
+
* });
|
|
2684
|
+
*
|
|
2685
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2686
|
+
* const authClient = await auth.getClient();
|
|
2687
|
+
* google.options({auth: authClient});
|
|
2688
|
+
*
|
|
2689
|
+
* // Do the magic
|
|
2690
|
+
* const res = await merchantapi.accounts.getAccountForGcpRegistration({});
|
|
2691
|
+
* console.log(res.data);
|
|
2692
|
+
*
|
|
2693
|
+
* // Example response
|
|
2694
|
+
* // {
|
|
2695
|
+
* // "name": "my_name"
|
|
2696
|
+
* // }
|
|
2697
|
+
* }
|
|
2698
|
+
*
|
|
2699
|
+
* main().catch(e => {
|
|
2700
|
+
* console.error(e);
|
|
2701
|
+
* throw e;
|
|
2702
|
+
* });
|
|
2703
|
+
*
|
|
2704
|
+
* ```
|
|
2705
|
+
*
|
|
2706
|
+
* @param params - Parameters for request
|
|
2707
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2708
|
+
* @param callback - Optional callback that handles the response.
|
|
2709
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2710
|
+
*/
|
|
2711
|
+
getAccountForGcpRegistration(
|
|
2712
|
+
params: Params$Resource$Accounts$Getaccountforgcpregistration,
|
|
2713
|
+
options: StreamMethodOptions
|
|
2714
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2715
|
+
getAccountForGcpRegistration(
|
|
2716
|
+
params?: Params$Resource$Accounts$Getaccountforgcpregistration,
|
|
2717
|
+
options?: MethodOptions
|
|
2718
|
+
): Promise<
|
|
2719
|
+
GaxiosResponseWithHTTP2<Schema$GetAccountForGcpRegistrationResponse>
|
|
2720
|
+
>;
|
|
2721
|
+
getAccountForGcpRegistration(
|
|
2722
|
+
params: Params$Resource$Accounts$Getaccountforgcpregistration,
|
|
2723
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2724
|
+
callback: BodyResponseCallback<Readable>
|
|
2725
|
+
): void;
|
|
2726
|
+
getAccountForGcpRegistration(
|
|
2727
|
+
params: Params$Resource$Accounts$Getaccountforgcpregistration,
|
|
2728
|
+
options:
|
|
2729
|
+
| MethodOptions
|
|
2730
|
+
| BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>,
|
|
2731
|
+
callback: BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
|
|
2732
|
+
): void;
|
|
2733
|
+
getAccountForGcpRegistration(
|
|
2734
|
+
params: Params$Resource$Accounts$Getaccountforgcpregistration,
|
|
2735
|
+
callback: BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
|
|
2736
|
+
): void;
|
|
2737
|
+
getAccountForGcpRegistration(
|
|
2738
|
+
callback: BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
|
|
2739
|
+
): void;
|
|
2740
|
+
getAccountForGcpRegistration(
|
|
2741
|
+
paramsOrCallback?:
|
|
2742
|
+
| Params$Resource$Accounts$Getaccountforgcpregistration
|
|
2743
|
+
| BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
|
|
2744
|
+
| BodyResponseCallback<Readable>,
|
|
2745
|
+
optionsOrCallback?:
|
|
2746
|
+
| MethodOptions
|
|
2747
|
+
| StreamMethodOptions
|
|
2748
|
+
| BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
|
|
2749
|
+
| BodyResponseCallback<Readable>,
|
|
2750
|
+
callback?:
|
|
2751
|
+
| BodyResponseCallback<Schema$GetAccountForGcpRegistrationResponse>
|
|
2752
|
+
| BodyResponseCallback<Readable>
|
|
2753
|
+
):
|
|
2754
|
+
| void
|
|
2755
|
+
| Promise<
|
|
2756
|
+
GaxiosResponseWithHTTP2<Schema$GetAccountForGcpRegistrationResponse>
|
|
2757
|
+
>
|
|
2758
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2759
|
+
let params = (paramsOrCallback ||
|
|
2760
|
+
{}) as Params$Resource$Accounts$Getaccountforgcpregistration;
|
|
2761
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2762
|
+
|
|
2763
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2764
|
+
callback = paramsOrCallback;
|
|
2765
|
+
params = {} as Params$Resource$Accounts$Getaccountforgcpregistration;
|
|
2766
|
+
options = {};
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2769
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2770
|
+
callback = optionsOrCallback;
|
|
2771
|
+
options = {};
|
|
2772
|
+
}
|
|
2773
|
+
|
|
2774
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
2775
|
+
const parameters = {
|
|
2776
|
+
options: Object.assign(
|
|
2777
|
+
{
|
|
2778
|
+
url: (
|
|
2779
|
+
rootUrl + '/accounts/v1beta/accounts:getAccountForGcpRegistration'
|
|
2780
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
2781
|
+
method: 'GET',
|
|
2782
|
+
apiVersion: '',
|
|
2783
|
+
},
|
|
2784
|
+
options
|
|
2785
|
+
),
|
|
2786
|
+
params,
|
|
2787
|
+
requiredParams: [],
|
|
2788
|
+
pathParams: [],
|
|
2789
|
+
context: this.context,
|
|
2790
|
+
};
|
|
2791
|
+
if (callback) {
|
|
2792
|
+
createAPIRequest<Schema$GetAccountForGcpRegistrationResponse>(
|
|
2793
|
+
parameters,
|
|
2794
|
+
callback as BodyResponseCallback<unknown>
|
|
2795
|
+
);
|
|
2796
|
+
} else {
|
|
2797
|
+
return createAPIRequest<Schema$GetAccountForGcpRegistrationResponse>(
|
|
2798
|
+
parameters
|
|
2799
|
+
);
|
|
2800
|
+
}
|
|
2801
|
+
}
|
|
2802
|
+
|
|
2651
2803
|
/**
|
|
2652
2804
|
* 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.
|
|
2653
2805
|
* @example
|
|
@@ -3118,6 +3270,8 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
3118
3270
|
*/
|
|
3119
3271
|
name?: string;
|
|
3120
3272
|
}
|
|
3273
|
+
export interface Params$Resource$Accounts$Getaccountforgcpregistration
|
|
3274
|
+
extends StandardParameters {}
|
|
3121
3275
|
export interface Params$Resource$Accounts$List extends StandardParameters {
|
|
3122
3276
|
/**
|
|
3123
3277
|
* 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).
|