@maxim_mazurok/gapi.client.merchantapi-accounts_v1 0.0.20250820 → 0.0.20250823

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.
Files changed (2) hide show
  1. package/index.d.ts +213 -1
  2. package/package.json +1 -1
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_v1
12
- // Revision: 20250820
12
+ // Revision: 20250823
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -177,6 +177,26 @@ declare namespace gapi.client {
177
177
  /** Enables automatic shipping improvements. */
178
178
  allowShippingImprovements?: boolean;
179
179
  }
180
+ interface BatchCreateRegionsRequest {
181
+ /** Required. The region(s) to create. The maximum number of regions that can be created in a batch is 100. */
182
+ requests?: CreateRegionRequest[];
183
+ }
184
+ interface BatchCreateRegionsResponse {
185
+ /** The created region(s). */
186
+ regions?: Region[];
187
+ }
188
+ interface BatchDeleteRegionsRequest {
189
+ /** Required. The names of the regions to delete. A maximum of 1000 regions can be deleted in a batch. */
190
+ requests?: DeleteRegionRequest[];
191
+ }
192
+ interface BatchUpdateRegionsRequest {
193
+ /** Required. The region(s) to update. The maximum number of regions that can be updated in a batch is 100. */
194
+ requests?: UpdateRegionRequest[];
195
+ }
196
+ interface BatchUpdateRegionsResponse {
197
+ /** The updated region(s). */
198
+ regions?: Region[];
199
+ }
180
200
  interface BusinessDayConfig {
181
201
  /** Required. Regular business days. May not be empty. */
182
202
  businessDays?: string[];
@@ -256,6 +276,14 @@ declare namespace gapi.client {
256
276
  /** Optional. Users to be added to the account. */
257
277
  user?: AddUser[];
258
278
  }
279
+ interface CreateRegionRequest {
280
+ /** Required. The account to create a region for. Format: `accounts/{account}` */
281
+ parent?: string;
282
+ /** Required. The region to create. */
283
+ region?: Region;
284
+ /** Required. The identifier for the region, unique over all regions of the same account. */
285
+ regionId?: string;
286
+ }
259
287
  interface CustomerService {
260
288
  /** Optional. The email address where customer service may be reached. */
261
289
  email?: string;
@@ -288,6 +316,10 @@ declare namespace gapi.client {
288
316
  /** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
289
317
  year?: number;
290
318
  }
319
+ interface DeleteRegionRequest {
320
+ /** Required. The name of the region to delete. Format: `accounts/{account}/regions/{region}` */
321
+ name?: string;
322
+ }
291
323
  interface DeliveryTime {
292
324
  /** Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST. */
293
325
  cutoffTime?: CutoffTime;
@@ -911,6 +943,12 @@ declare namespace gapi.client {
911
943
  }
912
944
  interface UnclaimHomepageRequest {}
913
945
  interface UnregisterGcpRequest {}
946
+ interface UpdateRegionRequest {
947
+ /** Required. The updated region. */
948
+ region?: Region;
949
+ /** Optional. The comma-separated field mask indicating the fields to update. Example: `"displayName,postalCodeArea.regionCode"`. */
950
+ updateMask?: string;
951
+ }
914
952
  interface UriSettings {
915
953
  /** 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) */
916
954
  cartUriTemplate?: string;
@@ -2733,6 +2771,180 @@ declare namespace gapi.client {
2733
2771
  checkoutSettings: CheckoutSettingsResource;
2734
2772
  }
2735
2773
  interface RegionsResource {
2774
+ /** Creates one or more regions in your Merchant Center account. Executing this method requires admin access. */
2775
+ batchCreate(request: {
2776
+ /** V1 error format. */
2777
+ '$.xgafv'?: string;
2778
+ /** OAuth access token. */
2779
+ access_token?: string;
2780
+ /** Data format for response. */
2781
+ alt?: string;
2782
+ /** JSONP */
2783
+ callback?: string;
2784
+ /** Selector specifying which fields to include in a partial response. */
2785
+ fields?: string;
2786
+ /** 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. */
2787
+ key?: string;
2788
+ /** OAuth 2.0 token for the current user. */
2789
+ oauth_token?: string;
2790
+ /** Required. The account to create one or more regions for. Format: `accounts/{account}` */
2791
+ parent: string;
2792
+ /** Returns response with indentations and line breaks. */
2793
+ prettyPrint?: boolean;
2794
+ /** 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. */
2795
+ quotaUser?: string;
2796
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2797
+ upload_protocol?: string;
2798
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2799
+ uploadType?: string;
2800
+ /** Request body */
2801
+ resource: BatchCreateRegionsRequest;
2802
+ }): Request<BatchCreateRegionsResponse>;
2803
+ batchCreate(
2804
+ request: {
2805
+ /** V1 error format. */
2806
+ '$.xgafv'?: string;
2807
+ /** OAuth access token. */
2808
+ access_token?: string;
2809
+ /** Data format for response. */
2810
+ alt?: string;
2811
+ /** JSONP */
2812
+ callback?: string;
2813
+ /** Selector specifying which fields to include in a partial response. */
2814
+ fields?: string;
2815
+ /** 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. */
2816
+ key?: string;
2817
+ /** OAuth 2.0 token for the current user. */
2818
+ oauth_token?: string;
2819
+ /** Required. The account to create one or more regions for. Format: `accounts/{account}` */
2820
+ parent: string;
2821
+ /** Returns response with indentations and line breaks. */
2822
+ prettyPrint?: boolean;
2823
+ /** 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. */
2824
+ quotaUser?: string;
2825
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2826
+ upload_protocol?: string;
2827
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2828
+ uploadType?: string;
2829
+ },
2830
+ body: BatchCreateRegionsRequest,
2831
+ ): Request<BatchCreateRegionsResponse>;
2832
+ /** Deletes multiple regions by name from your Merchant Center account. Executing this method requires admin access. */
2833
+ batchDelete(request: {
2834
+ /** V1 error format. */
2835
+ '$.xgafv'?: string;
2836
+ /** OAuth access token. */
2837
+ access_token?: string;
2838
+ /** Data format for response. */
2839
+ alt?: string;
2840
+ /** JSONP */
2841
+ callback?: string;
2842
+ /** Selector specifying which fields to include in a partial response. */
2843
+ fields?: string;
2844
+ /** 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. */
2845
+ key?: string;
2846
+ /** OAuth 2.0 token for the current user. */
2847
+ oauth_token?: string;
2848
+ /** Required. The account to create a region for. Format: `accounts/{account}` */
2849
+ parent: string;
2850
+ /** Returns response with indentations and line breaks. */
2851
+ prettyPrint?: boolean;
2852
+ /** 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. */
2853
+ quotaUser?: string;
2854
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2855
+ upload_protocol?: string;
2856
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2857
+ uploadType?: string;
2858
+ /** Request body */
2859
+ resource: BatchDeleteRegionsRequest;
2860
+ }): Request<{}>;
2861
+ batchDelete(
2862
+ request: {
2863
+ /** V1 error format. */
2864
+ '$.xgafv'?: string;
2865
+ /** OAuth access token. */
2866
+ access_token?: string;
2867
+ /** Data format for response. */
2868
+ alt?: string;
2869
+ /** JSONP */
2870
+ callback?: string;
2871
+ /** Selector specifying which fields to include in a partial response. */
2872
+ fields?: string;
2873
+ /** 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. */
2874
+ key?: string;
2875
+ /** OAuth 2.0 token for the current user. */
2876
+ oauth_token?: string;
2877
+ /** Required. The account to create a region for. Format: `accounts/{account}` */
2878
+ parent: string;
2879
+ /** Returns response with indentations and line breaks. */
2880
+ prettyPrint?: boolean;
2881
+ /** 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. */
2882
+ quotaUser?: string;
2883
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2884
+ upload_protocol?: string;
2885
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2886
+ uploadType?: string;
2887
+ },
2888
+ body: BatchDeleteRegionsRequest,
2889
+ ): Request<{}>;
2890
+ /** Updates one or more regions in your Merchant Center account. Executing this method requires admin access. */
2891
+ batchUpdate(request: {
2892
+ /** V1 error format. */
2893
+ '$.xgafv'?: string;
2894
+ /** OAuth access token. */
2895
+ access_token?: string;
2896
+ /** Data format for response. */
2897
+ alt?: string;
2898
+ /** JSONP */
2899
+ callback?: string;
2900
+ /** Selector specifying which fields to include in a partial response. */
2901
+ fields?: string;
2902
+ /** 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. */
2903
+ key?: string;
2904
+ /** OAuth 2.0 token for the current user. */
2905
+ oauth_token?: string;
2906
+ /** Required. The account to update one or more regions for. Format: `accounts/{account}` */
2907
+ parent: string;
2908
+ /** Returns response with indentations and line breaks. */
2909
+ prettyPrint?: boolean;
2910
+ /** 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. */
2911
+ quotaUser?: string;
2912
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2913
+ upload_protocol?: string;
2914
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2915
+ uploadType?: string;
2916
+ /** Request body */
2917
+ resource: BatchUpdateRegionsRequest;
2918
+ }): Request<BatchUpdateRegionsResponse>;
2919
+ batchUpdate(
2920
+ request: {
2921
+ /** V1 error format. */
2922
+ '$.xgafv'?: string;
2923
+ /** OAuth access token. */
2924
+ access_token?: string;
2925
+ /** Data format for response. */
2926
+ alt?: string;
2927
+ /** JSONP */
2928
+ callback?: string;
2929
+ /** Selector specifying which fields to include in a partial response. */
2930
+ fields?: string;
2931
+ /** 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. */
2932
+ key?: string;
2933
+ /** OAuth 2.0 token for the current user. */
2934
+ oauth_token?: string;
2935
+ /** Required. The account to update one or more regions for. Format: `accounts/{account}` */
2936
+ parent: string;
2937
+ /** Returns response with indentations and line breaks. */
2938
+ prettyPrint?: boolean;
2939
+ /** 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. */
2940
+ quotaUser?: string;
2941
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2942
+ upload_protocol?: string;
2943
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2944
+ uploadType?: string;
2945
+ },
2946
+ body: BatchUpdateRegionsRequest,
2947
+ ): Request<BatchUpdateRegionsResponse>;
2736
2948
  /** Creates a region definition in your Merchant Center account. Executing this method requires admin access. */
2737
2949
  create(request: {
2738
2950
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.merchantapi-accounts_v1",
3
- "version": "0.0.20250820",
3
+ "version": "0.0.20250823",
4
4
  "description": "TypeScript typings for Merchant API accounts_v1",
5
5
  "repository": {
6
6
  "type": "git",