@googleapis/merchantapi 8.0.0 → 9.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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [9.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/merchantapi-v8.0.0...merchantapi-v9.0.0) (2025-07-15)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * **merchantapi:** This release has breaking changes.
9
+
10
+ ### Features
11
+
12
+ * **merchantapi:** update the API ([b42712e](https://github.com/googleapis/google-api-nodejs-client/commit/b42712eb921872c2b8edb7630c87802b665a1621))
13
+
3
14
  ## [8.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/merchantapi-v7.0.0...merchantapi-v8.0.0) (2025-07-08)
4
15
 
5
16
 
@@ -742,6 +742,19 @@ export namespace merchantapi_accounts_v1beta {
742
742
  */
743
743
  warehouseBasedDeliveryTimes?: Schema$WarehouseBasedDeliveryTime[];
744
744
  }
745
+ /**
746
+ * Represents a developer registration owned by a Merchant account.
747
+ */
748
+ export interface Schema$DeveloperRegistration {
749
+ /**
750
+ * Output only. The GCP ids attached to this developer registration
751
+ */
752
+ gcpIds?: string[] | null;
753
+ /**
754
+ * 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.
755
+ */
756
+ name?: string | null;
757
+ }
745
758
  /**
746
759
  * Request message for the DisableProgram method.
747
760
  */
@@ -1326,7 +1339,7 @@ export namespace merchantapi_accounts_v1beta {
1326
1339
  */
1327
1340
  itemConditions?: string[] | null;
1328
1341
  /**
1329
- * Required. Immutable. This field represents the unique user-defined label of the return policy. It is important to note that the same label cannot be used in different return policies for the same country. Unless a product specifies a specific label attribute, policies will be automatically labeled as 'default'. 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.
1342
+ * 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.
1330
1343
  */
1331
1344
  label?: string | null;
1332
1345
  /**
@@ -1663,6 +1676,15 @@ export namespace merchantapi_accounts_v1beta {
1663
1676
  */
1664
1677
  shippingEligible?: boolean | null;
1665
1678
  }
1679
+ /**
1680
+ * Request message for the RegisterGCP method.
1681
+ */
1682
+ export interface Schema$RegisterGCPRequest {
1683
+ /**
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
+ */
1686
+ developerEmail?: string | null;
1687
+ }
1666
1688
  /**
1667
1689
  * Request to reject an account service.
1668
1690
  */
@@ -2011,6 +2033,10 @@ export namespace merchantapi_accounts_v1beta {
2011
2033
  * Request message for the `UnclaimHomepage` method.
2012
2034
  */
2013
2035
  export interface Schema$UnclaimHomepageRequest {}
2036
+ /**
2037
+ * Request message for the UnregisterGCP method.
2038
+ */
2039
+ export interface Schema$UnregisterGCPRequest {}
2014
2040
  /**
2015
2041
  * URL settings for cart or checkout URL.
2016
2042
  */
@@ -2141,6 +2167,7 @@ export namespace merchantapi_accounts_v1beta {
2141
2167
  automaticImprovements: Resource$Accounts$Automaticimprovements;
2142
2168
  businessIdentity: Resource$Accounts$Businessidentity;
2143
2169
  businessInfo: Resource$Accounts$Businessinfo;
2170
+ developerRegistration: Resource$Accounts$Developerregistration;
2144
2171
  emailPreferences: Resource$Accounts$Emailpreferences;
2145
2172
  gbpAccounts: Resource$Accounts$Gbpaccounts;
2146
2173
  homepage: Resource$Accounts$Homepage;
@@ -2166,6 +2193,9 @@ export namespace merchantapi_accounts_v1beta {
2166
2193
  this.context
2167
2194
  );
2168
2195
  this.businessInfo = new Resource$Accounts$Businessinfo(this.context);
2196
+ this.developerRegistration = new Resource$Accounts$Developerregistration(
2197
+ this.context
2198
+ );
2169
2199
  this.emailPreferences = new Resource$Accounts$Emailpreferences(
2170
2200
  this.context
2171
2201
  );
@@ -2618,6 +2648,148 @@ export namespace merchantapi_accounts_v1beta {
2618
2648
  }
2619
2649
  }
2620
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
+
2621
2793
  /**
2622
2794
  * 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.
2623
2795
  * @example
@@ -3088,6 +3260,13 @@ export namespace merchantapi_accounts_v1beta {
3088
3260
  */
3089
3261
  name?: string;
3090
3262
  }
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
+ }
3091
3270
  export interface Params$Resource$Accounts$List extends StandardParameters {
3092
3271
  /**
3093
3272
  * 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).
@@ -4471,6 +4650,331 @@ export namespace merchantapi_accounts_v1beta {
4471
4650
  requestBody?: Schema$BusinessInfo;
4472
4651
  }
4473
4652
 
4653
+ export class Resource$Accounts$Developerregistration {
4654
+ context: APIRequestContext;
4655
+ constructor(context: APIRequestContext) {
4656
+ this.context = context;
4657
+ }
4658
+
4659
+ /**
4660
+ * 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
+ * @example
4662
+ * ```js
4663
+ * // Before running the sample:
4664
+ * // - Enable the API at:
4665
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
4666
+ * // - Login into gcloud by running:
4667
+ * // ```sh
4668
+ * // $ gcloud auth application-default login
4669
+ * // ```
4670
+ * // - Install the npm module by running:
4671
+ * // ```sh
4672
+ * // $ npm install googleapis
4673
+ * // ```
4674
+ *
4675
+ * const {google} = require('googleapis');
4676
+ * const merchantapi = google.merchantapi('accounts_v1beta');
4677
+ *
4678
+ * async function main() {
4679
+ * const auth = new google.auth.GoogleAuth({
4680
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4681
+ * scopes: ['https://www.googleapis.com/auth/content'],
4682
+ * });
4683
+ *
4684
+ * // Acquire an auth client, and bind it to all future calls
4685
+ * const authClient = await auth.getClient();
4686
+ * google.options({auth: authClient});
4687
+ *
4688
+ * // Do the magic
4689
+ * const res = await merchantapi.accounts.developerRegistration.registerGcp({
4690
+ * // 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`
4691
+ * name: 'accounts/my-account/developerRegistration',
4692
+ *
4693
+ * // Request body metadata
4694
+ * requestBody: {
4695
+ * // request body parameters
4696
+ * // {
4697
+ * // "developerEmail": "my_developerEmail"
4698
+ * // }
4699
+ * },
4700
+ * });
4701
+ * console.log(res.data);
4702
+ *
4703
+ * // Example response
4704
+ * // {
4705
+ * // "gcpIds": [],
4706
+ * // "name": "my_name"
4707
+ * // }
4708
+ * }
4709
+ *
4710
+ * main().catch(e => {
4711
+ * console.error(e);
4712
+ * throw e;
4713
+ * });
4714
+ *
4715
+ * ```
4716
+ *
4717
+ * @param params - Parameters for request
4718
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4719
+ * @param callback - Optional callback that handles the response.
4720
+ * @returns A promise if used with async/await, or void if used with a callback.
4721
+ */
4722
+ registerGcp(
4723
+ params: Params$Resource$Accounts$Developerregistration$Registergcp,
4724
+ options: StreamMethodOptions
4725
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4726
+ registerGcp(
4727
+ params?: Params$Resource$Accounts$Developerregistration$Registergcp,
4728
+ options?: MethodOptions
4729
+ ): Promise<GaxiosResponseWithHTTP2<Schema$DeveloperRegistration>>;
4730
+ registerGcp(
4731
+ params: Params$Resource$Accounts$Developerregistration$Registergcp,
4732
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4733
+ callback: BodyResponseCallback<Readable>
4734
+ ): void;
4735
+ registerGcp(
4736
+ params: Params$Resource$Accounts$Developerregistration$Registergcp,
4737
+ options:
4738
+ | MethodOptions
4739
+ | BodyResponseCallback<Schema$DeveloperRegistration>,
4740
+ callback: BodyResponseCallback<Schema$DeveloperRegistration>
4741
+ ): void;
4742
+ registerGcp(
4743
+ params: Params$Resource$Accounts$Developerregistration$Registergcp,
4744
+ callback: BodyResponseCallback<Schema$DeveloperRegistration>
4745
+ ): void;
4746
+ registerGcp(
4747
+ callback: BodyResponseCallback<Schema$DeveloperRegistration>
4748
+ ): void;
4749
+ registerGcp(
4750
+ paramsOrCallback?:
4751
+ | Params$Resource$Accounts$Developerregistration$Registergcp
4752
+ | BodyResponseCallback<Schema$DeveloperRegistration>
4753
+ | BodyResponseCallback<Readable>,
4754
+ optionsOrCallback?:
4755
+ | MethodOptions
4756
+ | StreamMethodOptions
4757
+ | BodyResponseCallback<Schema$DeveloperRegistration>
4758
+ | BodyResponseCallback<Readable>,
4759
+ callback?:
4760
+ | BodyResponseCallback<Schema$DeveloperRegistration>
4761
+ | BodyResponseCallback<Readable>
4762
+ ):
4763
+ | void
4764
+ | Promise<GaxiosResponseWithHTTP2<Schema$DeveloperRegistration>>
4765
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4766
+ let params = (paramsOrCallback ||
4767
+ {}) as Params$Resource$Accounts$Developerregistration$Registergcp;
4768
+ let options = (optionsOrCallback || {}) as MethodOptions;
4769
+
4770
+ if (typeof paramsOrCallback === 'function') {
4771
+ callback = paramsOrCallback;
4772
+ params =
4773
+ {} as Params$Resource$Accounts$Developerregistration$Registergcp;
4774
+ options = {};
4775
+ }
4776
+
4777
+ if (typeof optionsOrCallback === 'function') {
4778
+ callback = optionsOrCallback;
4779
+ options = {};
4780
+ }
4781
+
4782
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
4783
+ const parameters = {
4784
+ options: Object.assign(
4785
+ {
4786
+ url: (rootUrl + '/accounts/v1beta/{+name}:registerGcp').replace(
4787
+ /([^:]\/)\/+/g,
4788
+ '$1'
4789
+ ),
4790
+ method: 'POST',
4791
+ apiVersion: '',
4792
+ },
4793
+ options
4794
+ ),
4795
+ params,
4796
+ requiredParams: ['name'],
4797
+ pathParams: ['name'],
4798
+ context: this.context,
4799
+ };
4800
+ if (callback) {
4801
+ createAPIRequest<Schema$DeveloperRegistration>(
4802
+ parameters,
4803
+ callback as BodyResponseCallback<unknown>
4804
+ );
4805
+ } else {
4806
+ return createAPIRequest<Schema$DeveloperRegistration>(parameters);
4807
+ }
4808
+ }
4809
+
4810
+ /**
4811
+ * 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.
4812
+ * @example
4813
+ * ```js
4814
+ * // Before running the sample:
4815
+ * // - Enable the API at:
4816
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
4817
+ * // - Login into gcloud by running:
4818
+ * // ```sh
4819
+ * // $ gcloud auth application-default login
4820
+ * // ```
4821
+ * // - Install the npm module by running:
4822
+ * // ```sh
4823
+ * // $ npm install googleapis
4824
+ * // ```
4825
+ *
4826
+ * const {google} = require('googleapis');
4827
+ * const merchantapi = google.merchantapi('accounts_v1beta');
4828
+ *
4829
+ * async function main() {
4830
+ * const auth = new google.auth.GoogleAuth({
4831
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4832
+ * scopes: ['https://www.googleapis.com/auth/content'],
4833
+ * });
4834
+ *
4835
+ * // Acquire an auth client, and bind it to all future calls
4836
+ * const authClient = await auth.getClient();
4837
+ * google.options({auth: authClient});
4838
+ *
4839
+ * // Do the magic
4840
+ * const res = await merchantapi.accounts.developerRegistration.unregisterGcp({
4841
+ * // 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`
4842
+ * name: 'accounts/my-account/developerRegistration',
4843
+ *
4844
+ * // Request body metadata
4845
+ * requestBody: {
4846
+ * // request body parameters
4847
+ * // {}
4848
+ * },
4849
+ * });
4850
+ * console.log(res.data);
4851
+ *
4852
+ * // Example response
4853
+ * // {}
4854
+ * }
4855
+ *
4856
+ * main().catch(e => {
4857
+ * console.error(e);
4858
+ * throw e;
4859
+ * });
4860
+ *
4861
+ * ```
4862
+ *
4863
+ * @param params - Parameters for request
4864
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4865
+ * @param callback - Optional callback that handles the response.
4866
+ * @returns A promise if used with async/await, or void if used with a callback.
4867
+ */
4868
+ unregisterGcp(
4869
+ params: Params$Resource$Accounts$Developerregistration$Unregistergcp,
4870
+ options: StreamMethodOptions
4871
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4872
+ unregisterGcp(
4873
+ params?: Params$Resource$Accounts$Developerregistration$Unregistergcp,
4874
+ options?: MethodOptions
4875
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
4876
+ unregisterGcp(
4877
+ params: Params$Resource$Accounts$Developerregistration$Unregistergcp,
4878
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4879
+ callback: BodyResponseCallback<Readable>
4880
+ ): void;
4881
+ unregisterGcp(
4882
+ params: Params$Resource$Accounts$Developerregistration$Unregistergcp,
4883
+ options: MethodOptions | BodyResponseCallback<Schema$Empty>,
4884
+ callback: BodyResponseCallback<Schema$Empty>
4885
+ ): void;
4886
+ unregisterGcp(
4887
+ params: Params$Resource$Accounts$Developerregistration$Unregistergcp,
4888
+ callback: BodyResponseCallback<Schema$Empty>
4889
+ ): void;
4890
+ unregisterGcp(callback: BodyResponseCallback<Schema$Empty>): void;
4891
+ unregisterGcp(
4892
+ paramsOrCallback?:
4893
+ | Params$Resource$Accounts$Developerregistration$Unregistergcp
4894
+ | BodyResponseCallback<Schema$Empty>
4895
+ | BodyResponseCallback<Readable>,
4896
+ optionsOrCallback?:
4897
+ | MethodOptions
4898
+ | StreamMethodOptions
4899
+ | BodyResponseCallback<Schema$Empty>
4900
+ | BodyResponseCallback<Readable>,
4901
+ callback?:
4902
+ | BodyResponseCallback<Schema$Empty>
4903
+ | BodyResponseCallback<Readable>
4904
+ ):
4905
+ | void
4906
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
4907
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4908
+ let params = (paramsOrCallback ||
4909
+ {}) as Params$Resource$Accounts$Developerregistration$Unregistergcp;
4910
+ let options = (optionsOrCallback || {}) as MethodOptions;
4911
+
4912
+ if (typeof paramsOrCallback === 'function') {
4913
+ callback = paramsOrCallback;
4914
+ params =
4915
+ {} as Params$Resource$Accounts$Developerregistration$Unregistergcp;
4916
+ options = {};
4917
+ }
4918
+
4919
+ if (typeof optionsOrCallback === 'function') {
4920
+ callback = optionsOrCallback;
4921
+ options = {};
4922
+ }
4923
+
4924
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
4925
+ const parameters = {
4926
+ options: Object.assign(
4927
+ {
4928
+ url: (rootUrl + '/accounts/v1beta/{+name}:unregisterGcp').replace(
4929
+ /([^:]\/)\/+/g,
4930
+ '$1'
4931
+ ),
4932
+ method: 'POST',
4933
+ apiVersion: '',
4934
+ },
4935
+ options
4936
+ ),
4937
+ params,
4938
+ requiredParams: ['name'],
4939
+ pathParams: ['name'],
4940
+ context: this.context,
4941
+ };
4942
+ if (callback) {
4943
+ createAPIRequest<Schema$Empty>(
4944
+ parameters,
4945
+ callback as BodyResponseCallback<unknown>
4946
+ );
4947
+ } else {
4948
+ return createAPIRequest<Schema$Empty>(parameters);
4949
+ }
4950
+ }
4951
+ }
4952
+
4953
+ export interface Params$Resource$Accounts$Developerregistration$Registergcp
4954
+ extends StandardParameters {
4955
+ /**
4956
+ * 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`
4957
+ */
4958
+ name?: string;
4959
+
4960
+ /**
4961
+ * Request body metadata
4962
+ */
4963
+ requestBody?: Schema$RegisterGCPRequest;
4964
+ }
4965
+ export interface Params$Resource$Accounts$Developerregistration$Unregistergcp
4966
+ extends StandardParameters {
4967
+ /**
4968
+ * 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`
4969
+ */
4970
+ name?: string;
4971
+
4972
+ /**
4973
+ * Request body metadata
4974
+ */
4975
+ requestBody?: Schema$UnregisterGCPRequest;
4976
+ }
4977
+
4474
4978
  export class Resource$Accounts$Emailpreferences {
4475
4979
  context: APIRequestContext;
4476
4980
  constructor(context: APIRequestContext) {
@@ -7765,7 +8269,7 @@ export namespace merchantapi_accounts_v1beta {
7765
8269
  * const res = await merchantapi.accounts.onlineReturnPolicies.patch({
7766
8270
  * // Identifier. The name of the `OnlineReturnPolicy` resource. Format: `accounts/{account\}/onlineReturnPolicies/{return_policy\}`
7767
8271
  * name: 'accounts/my-account/onlineReturnPolicies/my-onlineReturnPolicie',
7768
- * // Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `accept_defective_only` - `accept_exchange` - `item_conditions` - `policy` - `process_refund_days` - `restocking_fee` - `return_methods` - `return_policy_uri` - `return_shipping_fee`
8272
+ * // Optional. Only support updating the entire OnlineReturnPolicy message. For update_mask, always use `*`.
7769
8273
  * updateMask: 'placeholder-value',
7770
8274
  *
7771
8275
  * // Request body metadata
@@ -7956,7 +8460,7 @@ export namespace merchantapi_accounts_v1beta {
7956
8460
  */
7957
8461
  name?: string;
7958
8462
  /**
7959
- * Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `accept_defective_only` - `accept_exchange` - `item_conditions` - `policy` - `process_refund_days` - `restocking_fee` - `return_methods` - `return_policy_uri` - `return_shipping_fee`
8463
+ * Optional. Only support updating the entire OnlineReturnPolicy message. For update_mask, always use `*`.
7960
8464
  */
7961
8465
  updateMask?: string;
7962
8466