@googleapis/merchantapi 16.1.0 → 17.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.
Files changed (65) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/accounts_v1.ts +344 -501
  3. package/accounts_v1beta.ts +342 -136
  4. package/build/accounts_v1.d.ts +194 -196
  5. package/build/accounts_v1.js +41 -73
  6. package/build/accounts_v1.js.map +1 -1
  7. package/build/accounts_v1beta.d.ts +194 -0
  8. package/build/accounts_v1beta.js +41 -0
  9. package/build/accounts_v1beta.js.map +1 -1
  10. package/build/conversions_v1.js.map +1 -1
  11. package/build/conversions_v1beta.js.map +1 -1
  12. package/build/datasources_v1.js.map +1 -1
  13. package/build/datasources_v1beta.js.map +1 -1
  14. package/build/inventories_v1.d.ts +14 -50
  15. package/build/inventories_v1.js.map +1 -1
  16. package/build/inventories_v1beta.d.ts +14 -50
  17. package/build/inventories_v1beta.js.map +1 -1
  18. package/build/issueresolution_v1.d.ts +2 -8
  19. package/build/issueresolution_v1.js.map +1 -1
  20. package/build/issueresolution_v1beta.d.ts +2 -8
  21. package/build/issueresolution_v1beta.js.map +1 -1
  22. package/build/lfp_v1.js.map +1 -1
  23. package/build/lfp_v1beta.js.map +1 -1
  24. package/build/notifications_v1.js.map +1 -1
  25. package/build/notifications_v1beta.js.map +1 -1
  26. package/build/ordertracking_v1.js.map +1 -1
  27. package/build/ordertracking_v1beta.js.map +1 -1
  28. package/build/products_v1.d.ts +9 -27
  29. package/build/products_v1.js.map +1 -1
  30. package/build/products_v1beta.d.ts +9 -27
  31. package/build/products_v1beta.js.map +1 -1
  32. package/build/promotions_v1.js.map +1 -1
  33. package/build/promotions_v1beta.js.map +1 -1
  34. package/build/quota_v1.d.ts +196 -0
  35. package/build/quota_v1.js +73 -0
  36. package/build/quota_v1.js.map +1 -1
  37. package/build/quota_v1beta.js.map +1 -1
  38. package/build/reports_v1.js.map +1 -1
  39. package/build/reports_v1beta.js.map +1 -1
  40. package/build/reviews_v1beta.js.map +1 -1
  41. package/build/tsconfig.tsbuildinfo +1 -1
  42. package/conversions_v1.ts +6 -12
  43. package/conversions_v1beta.ts +6 -12
  44. package/datasources_v1.ts +7 -14
  45. package/datasources_v1beta.ts +7 -14
  46. package/inventories_v1.ts +20 -62
  47. package/inventories_v1beta.ts +20 -62
  48. package/issueresolution_v1.ts +6 -16
  49. package/issueresolution_v1beta.ts +6 -16
  50. package/lfp_v1.ts +7 -14
  51. package/lfp_v1beta.ts +7 -14
  52. package/notifications_v1.ts +5 -10
  53. package/notifications_v1beta.ts +5 -10
  54. package/ordertracking_v1.ts +1 -2
  55. package/ordertracking_v1beta.ts +1 -2
  56. package/package.json +1 -1
  57. package/products_v1.ts +14 -37
  58. package/products_v1beta.ts +14 -37
  59. package/promotions_v1.ts +3 -6
  60. package/promotions_v1beta.ts +3 -6
  61. package/quota_v1.ts +357 -2
  62. package/quota_v1beta.ts +1 -2
  63. package/reports_v1.ts +1 -2
  64. package/reports_v1beta.ts +1 -2
  65. package/reviews_v1beta.ts +8 -16
package/accounts_v1.ts CHANGED
@@ -231,19 +231,6 @@ export namespace merchantapi_accounts_v1 {
231
231
  */
232
232
  title?: string | null;
233
233
  }
234
- /**
235
- * A limit of a certain type that is applied to an account.
236
- */
237
- export interface Schema$AccountLimit {
238
- /**
239
- * Identifier. The limit part of the name will be a combination of the type and the scope. For example: `accounts/123/limits/products~ADS_NON_EEA` Format: `accounts/{account\}/limits/{limit\}`
240
- */
241
- name?: string | null;
242
- /**
243
- * The limit for products.
244
- */
245
- products?: Schema$ProductLimit;
246
- }
247
234
  /**
248
235
  * `AccountManagement` payload.
249
236
  */
@@ -285,6 +272,10 @@ export namespace merchantapi_accounts_v1 {
285
272
  * Service type for managing advertising campaigns. Grants the provider access to create and manage the business's ad campaigns, including setting up campaigns, adjusting bids, and optimizing performance.
286
273
  */
287
274
  campaignsManagement?: Schema$CampaignsManagement;
275
+ /**
276
+ * Service type for comparison shopping. The provider is a CSS (Comparison Shopping Service) managing the account. See https://support.google.com/merchants/answer/12653197
277
+ */
278
+ comparisonShopping?: Schema$ComparisonShopping;
288
279
  /**
289
280
  * Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider's system (for example, your shop ID in Shopify). If you have multiple accounts with the same provider - for instance, different accounts for various regions — the `external_account_id` differentiates between them, ensuring accurate linking and integration between Google and the provider.
290
281
  */
@@ -326,6 +317,26 @@ export namespace merchantapi_accounts_v1 {
326
317
  * The provider is an [aggregator](https://support.google.com/merchants/answer/188487) for the account. Payload for service type Account Aggregation.
327
318
  */
328
319
  accountAggregation?: Schema$AccountAggregation;
320
+ /**
321
+ * The provider manages this account. Payload for service type Account Management.
322
+ */
323
+ accountManagement?: Schema$AccountManagement;
324
+ /**
325
+ * The provider manages campaigns for this account. Payload for service type campaigns management.
326
+ */
327
+ campaignsManagement?: Schema$CampaignsManagement;
328
+ /**
329
+ * The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type Comparison Shopping.
330
+ */
331
+ comparisonShopping?: Schema$ComparisonShopping;
332
+ /**
333
+ * Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider's system (for example, your shop ID in Shopify). If you have multiple accounts with the same provider - for instance, different accounts for various regions — the `external_account_id` differentiates between them, ensuring accurate linking and integration between Google and the provider. The external account ID must be specified for the campaigns management service type. The external account ID must not be specified for the account aggregation service type. The external account ID is optional / may be specified for all other service types.
334
+ */
335
+ externalAccountId?: string | null;
336
+ /**
337
+ * The provider manages products for this account. Payload for service type products management.
338
+ */
339
+ productsManagement?: Schema$ProductsManagement;
329
340
  /**
330
341
  * Required. The provider of the service. Either the reference to an account such as `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`).
331
342
  */
@@ -368,6 +379,10 @@ export namespace merchantapi_accounts_v1 {
368
379
  * Required. The email address of the user (for example, `john.doe@gmail.com`).
369
380
  */
370
381
  userId?: string | null;
382
+ /**
383
+ * Optional. Settings related to configuring the verification email that is sent after adding a user.
384
+ */
385
+ verificationMailSettings?: Schema$VerificationMailSettings;
371
386
  }
372
387
  /**
373
388
  * Request to approve an account service.
@@ -653,6 +668,10 @@ export namespace merchantapi_accounts_v1 {
653
668
  */
654
669
  overwrite?: boolean | null;
655
670
  }
671
+ /**
672
+ * `ComparisonShopping` payload.
673
+ */
674
+ export interface Schema$ComparisonShopping {}
656
675
  /**
657
676
  * Request message for the `CreateAndConfigureAccount` method.
658
677
  */
@@ -665,6 +684,10 @@ export namespace merchantapi_accounts_v1 {
665
684
  * Required. An account service between the account to be created and the provider account is initialized as part of the creation. At least one such service needs to be provided. Currently exactly one of these needs to be `account_aggregation` and `accounts.createAndConfigure` method can be used to create a sub-account under an existing advanced account through this method. Additional `account_management` or `product_management` services may be provided.
666
685
  */
667
686
  service?: Schema$AddAccountService[];
687
+ /**
688
+ * Optional. If a relationship is created with a provider, you can set an alias for it with this field. The calling user must be an admin on the provider to be able to set an alias.
689
+ */
690
+ setAlias?: Schema$SetAliasForRelationship[];
668
691
  /**
669
692
  * Optional. Users to be added to the account.
670
693
  */
@@ -1066,6 +1089,19 @@ export namespace merchantapi_accounts_v1 {
1066
1089
  */
1067
1090
  allowStrictAvailabilityUpdates?: boolean | null;
1068
1091
  }
1092
+ /**
1093
+ * An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.
1094
+ */
1095
+ export interface Schema$LatLng {
1096
+ /**
1097
+ * The latitude in degrees. It must be in the range [-90.0, +90.0].
1098
+ */
1099
+ latitude?: number | null;
1100
+ /**
1101
+ * The longitude in degrees. It must be in the range [-180.0, +180.0].
1102
+ */
1103
+ longitude?: number | null;
1104
+ }
1069
1105
  /**
1070
1106
  * Collection of information related to the LFP link.
1071
1107
  */
@@ -1149,19 +1185,6 @@ export namespace merchantapi_accounts_v1 {
1149
1185
  */
1150
1186
  nextPageToken?: string | null;
1151
1187
  }
1152
- /**
1153
- * Response message for the `ListAccountLimits` method.
1154
- */
1155
- export interface Schema$ListAccountLimitsResponse {
1156
- /**
1157
- * The limits for the given account.
1158
- */
1159
- accountLimits?: Schema$AccountLimit[];
1160
- /**
1161
- * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
1162
- */
1163
- nextPageToken?: string | null;
1164
- }
1165
1188
  /**
1166
1189
  * Response after trying to list account relationships.
1167
1190
  */
@@ -1620,19 +1643,6 @@ export namespace merchantapi_accounts_v1 {
1620
1643
  */
1621
1644
  reportingContext?: string | null;
1622
1645
  }
1623
- /**
1624
- * The limit for products.
1625
- */
1626
- export interface Schema$ProductLimit {
1627
- /**
1628
- * Required. The maximum number of products that are allowed in the account in the given scope.
1629
- */
1630
- limit?: string | null;
1631
- /**
1632
- * Required. The scope of the product limit.
1633
- */
1634
- scope?: string | null;
1635
- }
1636
1646
  /**
1637
1647
  * `ProductsManagement` payload.
1638
1648
  */
@@ -1716,6 +1726,27 @@ export namespace merchantapi_accounts_v1 {
1716
1726
  */
1717
1727
  provider?: string | null;
1718
1728
  }
1729
+ /**
1730
+ * A radius area that defines the region area.
1731
+ */
1732
+ export interface Schema$RadiusArea {
1733
+ /**
1734
+ * Required. The center of the radius area. It represents a latitude/longitude pair in decimal degrees format.
1735
+ */
1736
+ latLng?: Schema$LatLng;
1737
+ /**
1738
+ * Required. The radius distance of the area.
1739
+ */
1740
+ radius?: number | null;
1741
+ /**
1742
+ * Optional. The unit of the radius.
1743
+ */
1744
+ radiusUnits?: string | null;
1745
+ /**
1746
+ * Required. [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) or the country the radius area applies to.
1747
+ */
1748
+ regionCode?: string | null;
1749
+ }
1719
1750
  /**
1720
1751
  * Shipping rate group definitions. Only the last one is allowed to have an empty `applicable_shipping_labels`, which means "everything else". The other `applicable_shipping_labels` must not overlap.
1721
1752
  */
@@ -1765,6 +1796,10 @@ export namespace merchantapi_accounts_v1 {
1765
1796
  * Optional. A list of postal codes that defines the region area.
1766
1797
  */
1767
1798
  postalCodeArea?: Schema$PostalCodeArea;
1799
+ /**
1800
+ * Optional. A radius area that defines the region area.
1801
+ */
1802
+ radiusArea?: Schema$RadiusArea;
1768
1803
  /**
1769
1804
  * Output only. Indicates if the region is eligible for use in the Regional Inventory configuration.
1770
1805
  */
@@ -1936,6 +1971,19 @@ export namespace merchantapi_accounts_v1 {
1936
1971
  */
1937
1972
  storeConfig?: Schema$StoreConfig;
1938
1973
  }
1974
+ /**
1975
+ * Set an alias for a relationship between a provider and the account to be created.
1976
+ */
1977
+ export interface Schema$SetAliasForRelationship {
1978
+ /**
1979
+ * Required. The unique ID of this account in the provider's system. The value must be unique across all accounts on the platform for this provider.
1980
+ */
1981
+ accountIdAlias?: string | null;
1982
+ /**
1983
+ * Required. The provider of the service. This is a reference to an account such as `providers/123` or `accounts/123`. The same provider must be specified in at least one of the `service` fields.
1984
+ */
1985
+ provider?: string | null;
1986
+ }
1939
1987
  /**
1940
1988
  * The Merchant Center account's [shipping settings](https://support.google.com/merchants/answer/6069284). The `ShippingSettings` resource lets you retrieve and update the shipping settings of your advanced account and all its associated sub-accounts.
1941
1989
  */
@@ -2203,6 +2251,19 @@ export namespace merchantapi_accounts_v1 {
2203
2251
  */
2204
2252
  subtable?: string | null;
2205
2253
  }
2254
+ /**
2255
+ * Settings related to the verification email that is sent after adding a user.
2256
+ */
2257
+ export interface Schema$VerificationMailSettings {
2258
+ /**
2259
+ * Optional. Mode of the verification mail. If not set, the default is `SEND_VERIFICATION_MAIL`.
2260
+ */
2261
+ verificationMailMode?: string | null;
2262
+ }
2263
+ /**
2264
+ * Request message for the `VerifySelf` method.
2265
+ */
2266
+ export interface Schema$VerifySelfRequest {}
2206
2267
  /**
2207
2268
  * A fulfillment warehouse, which stores and handles inventory.
2208
2269
  */
@@ -2283,7 +2344,6 @@ export namespace merchantapi_accounts_v1 {
2283
2344
  gbpAccounts: Resource$Accounts$Gbpaccounts;
2284
2345
  homepage: Resource$Accounts$Homepage;
2285
2346
  issues: Resource$Accounts$Issues;
2286
- limits: Resource$Accounts$Limits;
2287
2347
  omnichannelSettings: Resource$Accounts$Omnichannelsettings;
2288
2348
  onlineReturnPolicies: Resource$Accounts$Onlinereturnpolicies;
2289
2349
  programs: Resource$Accounts$Programs;
@@ -2314,7 +2374,6 @@ export namespace merchantapi_accounts_v1 {
2314
2374
  this.gbpAccounts = new Resource$Accounts$Gbpaccounts(this.context);
2315
2375
  this.homepage = new Resource$Accounts$Homepage(this.context);
2316
2376
  this.issues = new Resource$Accounts$Issues(this.context);
2317
- this.limits = new Resource$Accounts$Limits(this.context);
2318
2377
  this.omnichannelSettings = new Resource$Accounts$Omnichannelsettings(
2319
2378
  this.context
2320
2379
  );
@@ -2370,6 +2429,7 @@ export namespace merchantapi_accounts_v1 {
2370
2429
  * // {
2371
2430
  * // "account": {},
2372
2431
  * // "service": [],
2432
+ * // "setAlias": [],
2373
2433
  * // "user": []
2374
2434
  * // }
2375
2435
  * },
@@ -3209,8 +3269,7 @@ export namespace merchantapi_accounts_v1 {
3209
3269
  }
3210
3270
  }
3211
3271
 
3212
- export interface Params$Resource$Accounts$Createandconfigure
3213
- extends StandardParameters {
3272
+ export interface Params$Resource$Accounts$Createandconfigure extends StandardParameters {
3214
3273
  /**
3215
3274
  * Request body metadata
3216
3275
  */
@@ -3246,8 +3305,7 @@ export namespace merchantapi_accounts_v1 {
3246
3305
  */
3247
3306
  pageToken?: string;
3248
3307
  }
3249
- export interface Params$Resource$Accounts$Listsubaccounts
3250
- extends StandardParameters {
3308
+ export interface Params$Resource$Accounts$Listsubaccounts extends StandardParameters {
3251
3309
  /**
3252
3310
  * Optional. The maximum number of accounts to return. The service may return fewer than this value. If unspecified, at most 250 accounts are returned. The maximum value is 500; values above 500 are coerced to 500.
3253
3311
  */
@@ -3581,15 +3639,13 @@ export namespace merchantapi_accounts_v1 {
3581
3639
  }
3582
3640
  }
3583
3641
 
3584
- export interface Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings
3585
- extends StandardParameters {
3642
+ export interface Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings extends StandardParameters {
3586
3643
  /**
3587
3644
  * Required. The resource name of the autofeed settings. Format: `accounts/{account\}/autofeedSettings`
3588
3645
  */
3589
3646
  name?: string;
3590
3647
  }
3591
- export interface Params$Resource$Accounts$Autofeedsettings$Updateautofeedsettings
3592
- extends StandardParameters {
3648
+ export interface Params$Resource$Accounts$Autofeedsettings$Updateautofeedsettings extends StandardParameters {
3593
3649
  /**
3594
3650
  * Identifier. The resource name of the autofeed settings. Format: `accounts/{account\}/autofeedSettings`.
3595
3651
  */
@@ -3919,15 +3975,13 @@ export namespace merchantapi_accounts_v1 {
3919
3975
  }
3920
3976
  }
3921
3977
 
3922
- export interface Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements
3923
- extends StandardParameters {
3978
+ export interface Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements extends StandardParameters {
3924
3979
  /**
3925
3980
  * Required. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`
3926
3981
  */
3927
3982
  name?: string;
3928
3983
  }
3929
- export interface Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements
3930
- extends StandardParameters {
3984
+ export interface Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements extends StandardParameters {
3931
3985
  /**
3932
3986
  * Identifier. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`.
3933
3987
  */
@@ -4259,15 +4313,13 @@ export namespace merchantapi_accounts_v1 {
4259
4313
  }
4260
4314
  }
4261
4315
 
4262
- export interface Params$Resource$Accounts$Businessidentity$Getbusinessidentity
4263
- extends StandardParameters {
4316
+ export interface Params$Resource$Accounts$Businessidentity$Getbusinessidentity extends StandardParameters {
4264
4317
  /**
4265
4318
  * Required. The resource name of the business identity. Format: `accounts/{account\}/businessIdentity`. For example, `accounts/123456/businessIdentity`.
4266
4319
  */
4267
4320
  name?: string;
4268
4321
  }
4269
- export interface Params$Resource$Accounts$Businessidentity$Updatebusinessidentity
4270
- extends StandardParameters {
4322
+ export interface Params$Resource$Accounts$Businessidentity$Updatebusinessidentity extends StandardParameters {
4271
4323
  /**
4272
4324
  * Identifier. The resource name of the business identity. Format: `accounts/{account\}/businessIdentity`
4273
4325
  */
@@ -4591,15 +4643,13 @@ export namespace merchantapi_accounts_v1 {
4591
4643
  }
4592
4644
  }
4593
4645
 
4594
- export interface Params$Resource$Accounts$Businessinfo$Getbusinessinfo
4595
- extends StandardParameters {
4646
+ export interface Params$Resource$Accounts$Businessinfo$Getbusinessinfo extends StandardParameters {
4596
4647
  /**
4597
4648
  * Required. The resource name of the business info. Format: `accounts/{account\}/businessInfo`. For example, `accounts/123456/businessInfo`.
4598
4649
  */
4599
4650
  name?: string;
4600
4651
  }
4601
- export interface Params$Resource$Accounts$Businessinfo$Updatebusinessinfo
4602
- extends StandardParameters {
4652
+ export interface Params$Resource$Accounts$Businessinfo$Updatebusinessinfo extends StandardParameters {
4603
4653
  /**
4604
4654
  * Identifier. The resource name of the business info. Format: `accounts/{account\}/businessInfo`
4605
4655
  */
@@ -5206,17 +5256,14 @@ export namespace merchantapi_accounts_v1 {
5206
5256
  }
5207
5257
  }
5208
5258
 
5209
- export interface Params$Resource$Accounts$Developerregistration$Getaccountforgcpregistration
5210
- extends StandardParameters {}
5211
- export interface Params$Resource$Accounts$Developerregistration$Getdeveloperregistration
5212
- extends StandardParameters {
5259
+ export interface Params$Resource$Accounts$Developerregistration$Getaccountforgcpregistration extends StandardParameters {}
5260
+ export interface Params$Resource$Accounts$Developerregistration$Getdeveloperregistration extends StandardParameters {
5213
5261
  /**
5214
5262
  * Required. The `name` (ID) of the developer registration.
5215
5263
  */
5216
5264
  name?: string;
5217
5265
  }
5218
- export interface Params$Resource$Accounts$Developerregistration$Registergcp
5219
- extends StandardParameters {
5266
+ export interface Params$Resource$Accounts$Developerregistration$Registergcp extends StandardParameters {
5220
5267
  /**
5221
5268
  * 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`
5222
5269
  */
@@ -5227,8 +5274,7 @@ export namespace merchantapi_accounts_v1 {
5227
5274
  */
5228
5275
  requestBody?: Schema$RegisterGcpRequest;
5229
5276
  }
5230
- export interface Params$Resource$Accounts$Developerregistration$Unregistergcp
5231
- extends StandardParameters {
5277
+ export interface Params$Resource$Accounts$Developerregistration$Unregistergcp extends StandardParameters {
5232
5278
  /**
5233
5279
  * 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`
5234
5280
  */
@@ -5541,15 +5587,13 @@ export namespace merchantapi_accounts_v1 {
5541
5587
  }
5542
5588
  }
5543
5589
 
5544
- export interface Params$Resource$Accounts$Emailpreferences$Getemailpreferences
5545
- extends StandardParameters {
5590
+ export interface Params$Resource$Accounts$Emailpreferences$Getemailpreferences extends StandardParameters {
5546
5591
  /**
5547
5592
  * Required. The name of the `EmailPreferences` resource. Format: `accounts/{account\}/users/{email\}/emailPreferences`
5548
5593
  */
5549
5594
  name?: string;
5550
5595
  }
5551
- export interface Params$Resource$Accounts$Emailpreferences$Updateemailpreferences
5552
- extends StandardParameters {
5596
+ export interface Params$Resource$Accounts$Emailpreferences$Updateemailpreferences extends StandardParameters {
5553
5597
  /**
5554
5598
  * Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user.
5555
5599
  */
@@ -5864,8 +5908,7 @@ export namespace merchantapi_accounts_v1 {
5864
5908
  }
5865
5909
  }
5866
5910
 
5867
- export interface Params$Resource$Accounts$Gbpaccounts$Linkgbpaccount
5868
- extends StandardParameters {
5911
+ export interface Params$Resource$Accounts$Gbpaccounts$Linkgbpaccount extends StandardParameters {
5869
5912
  /**
5870
5913
  * Required. The name of the parent resource to which the GBP account is linked. Format: `accounts/{account\}`.
5871
5914
  */
@@ -5876,8 +5919,7 @@ export namespace merchantapi_accounts_v1 {
5876
5919
  */
5877
5920
  requestBody?: Schema$LinkGbpAccountRequest;
5878
5921
  }
5879
- export interface Params$Resource$Accounts$Gbpaccounts$List
5880
- extends StandardParameters {
5922
+ export interface Params$Resource$Accounts$Gbpaccounts$List extends StandardParameters {
5881
5923
  /**
5882
5924
  * Optional. The maximum number of `GbpAccount` resources to return. The service returns fewer than this value if the number of gbp accounts is less that than the `pageSize`. The default value is 50. The maximum value is 1000; If a value higher than the maximum is specified, then the `pageSize` will default to the maximum.
5883
5925
  */
@@ -6481,8 +6523,7 @@ export namespace merchantapi_accounts_v1 {
6481
6523
  }
6482
6524
  }
6483
6525
 
6484
- export interface Params$Resource$Accounts$Homepage$Claim
6485
- extends StandardParameters {
6526
+ export interface Params$Resource$Accounts$Homepage$Claim extends StandardParameters {
6486
6527
  /**
6487
6528
  * Required. The name of the homepage to claim. Format: `accounts/{account\}/homepage`
6488
6529
  */
@@ -6493,15 +6534,13 @@ export namespace merchantapi_accounts_v1 {
6493
6534
  */
6494
6535
  requestBody?: Schema$ClaimHomepageRequest;
6495
6536
  }
6496
- export interface Params$Resource$Accounts$Homepage$Gethomepage
6497
- extends StandardParameters {
6537
+ export interface Params$Resource$Accounts$Homepage$Gethomepage extends StandardParameters {
6498
6538
  /**
6499
6539
  * Required. The name of the homepage to retrieve. Format: `accounts/{account\}/homepage`
6500
6540
  */
6501
6541
  name?: string;
6502
6542
  }
6503
- export interface Params$Resource$Accounts$Homepage$Unclaim
6504
- extends StandardParameters {
6543
+ export interface Params$Resource$Accounts$Homepage$Unclaim extends StandardParameters {
6505
6544
  /**
6506
6545
  * Required. The name of the homepage to unclaim. Format: `accounts/{account\}/homepage`
6507
6546
  */
@@ -6512,8 +6551,7 @@ export namespace merchantapi_accounts_v1 {
6512
6551
  */
6513
6552
  requestBody?: Schema$UnclaimHomepageRequest;
6514
6553
  }
6515
- export interface Params$Resource$Accounts$Homepage$Updatehomepage
6516
- extends StandardParameters {
6554
+ export interface Params$Resource$Accounts$Homepage$Updatehomepage extends StandardParameters {
6517
6555
  /**
6518
6556
  * Identifier. The resource name of the store's homepage. Format: `accounts/{account\}/homepage`
6519
6557
  */
@@ -6686,8 +6724,7 @@ export namespace merchantapi_accounts_v1 {
6686
6724
  }
6687
6725
  }
6688
6726
 
6689
- export interface Params$Resource$Accounts$Issues$List
6690
- extends StandardParameters {
6727
+ export interface Params$Resource$Accounts$Issues$List extends StandardParameters {
6691
6728
  /**
6692
6729
  * Optional. The issues in the response will have human-readable fields in the given language. The format is [BCP-47](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`. If not value is provided, `en-US` will be used.
6693
6730
  */
@@ -6710,326 +6747,6 @@ export namespace merchantapi_accounts_v1 {
6710
6747
  timeZone?: string;
6711
6748
  }
6712
6749
 
6713
- export class Resource$Accounts$Limits {
6714
- context: APIRequestContext;
6715
- constructor(context: APIRequestContext) {
6716
- this.context = context;
6717
- }
6718
-
6719
- /**
6720
- * Retrieves an account limit.
6721
- * @example
6722
- * ```js
6723
- * // Before running the sample:
6724
- * // - Enable the API at:
6725
- * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
6726
- * // - Login into gcloud by running:
6727
- * // ```sh
6728
- * // $ gcloud auth application-default login
6729
- * // ```
6730
- * // - Install the npm module by running:
6731
- * // ```sh
6732
- * // $ npm install googleapis
6733
- * // ```
6734
- *
6735
- * const {google} = require('googleapis');
6736
- * const merchantapi = google.merchantapi('accounts_v1');
6737
- *
6738
- * async function main() {
6739
- * const auth = new google.auth.GoogleAuth({
6740
- * // Scopes can be specified either as an array or as a single, space-delimited string.
6741
- * scopes: ['https://www.googleapis.com/auth/content'],
6742
- * });
6743
- *
6744
- * // Acquire an auth client, and bind it to all future calls
6745
- * const authClient = await auth.getClient();
6746
- * google.options({auth: authClient});
6747
- *
6748
- * // Do the magic
6749
- * const res = await merchantapi.accounts.limits.get({
6750
- * // Required. The name of the limit to retrieve. Format: `accounts/{account\}/limits/{limit\}` For example: `accounts/123/limits/products~ADS_NON_EEA`
6751
- * name: 'accounts/my-account/limits/my-limit',
6752
- * });
6753
- * console.log(res.data);
6754
- *
6755
- * // Example response
6756
- * // {
6757
- * // "name": "my_name",
6758
- * // "products": {}
6759
- * // }
6760
- * }
6761
- *
6762
- * main().catch(e => {
6763
- * console.error(e);
6764
- * throw e;
6765
- * });
6766
- *
6767
- * ```
6768
- *
6769
- * @param params - Parameters for request
6770
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6771
- * @param callback - Optional callback that handles the response.
6772
- * @returns A promise if used with async/await, or void if used with a callback.
6773
- */
6774
- get(
6775
- params: Params$Resource$Accounts$Limits$Get,
6776
- options: StreamMethodOptions
6777
- ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6778
- get(
6779
- params?: Params$Resource$Accounts$Limits$Get,
6780
- options?: MethodOptions
6781
- ): Promise<GaxiosResponseWithHTTP2<Schema$AccountLimit>>;
6782
- get(
6783
- params: Params$Resource$Accounts$Limits$Get,
6784
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
6785
- callback: BodyResponseCallback<Readable>
6786
- ): void;
6787
- get(
6788
- params: Params$Resource$Accounts$Limits$Get,
6789
- options: MethodOptions | BodyResponseCallback<Schema$AccountLimit>,
6790
- callback: BodyResponseCallback<Schema$AccountLimit>
6791
- ): void;
6792
- get(
6793
- params: Params$Resource$Accounts$Limits$Get,
6794
- callback: BodyResponseCallback<Schema$AccountLimit>
6795
- ): void;
6796
- get(callback: BodyResponseCallback<Schema$AccountLimit>): void;
6797
- get(
6798
- paramsOrCallback?:
6799
- | Params$Resource$Accounts$Limits$Get
6800
- | BodyResponseCallback<Schema$AccountLimit>
6801
- | BodyResponseCallback<Readable>,
6802
- optionsOrCallback?:
6803
- | MethodOptions
6804
- | StreamMethodOptions
6805
- | BodyResponseCallback<Schema$AccountLimit>
6806
- | BodyResponseCallback<Readable>,
6807
- callback?:
6808
- | BodyResponseCallback<Schema$AccountLimit>
6809
- | BodyResponseCallback<Readable>
6810
- ):
6811
- | void
6812
- | Promise<GaxiosResponseWithHTTP2<Schema$AccountLimit>>
6813
- | Promise<GaxiosResponseWithHTTP2<Readable>> {
6814
- let params = (paramsOrCallback ||
6815
- {}) as Params$Resource$Accounts$Limits$Get;
6816
- let options = (optionsOrCallback || {}) as MethodOptions;
6817
-
6818
- if (typeof paramsOrCallback === 'function') {
6819
- callback = paramsOrCallback;
6820
- params = {} as Params$Resource$Accounts$Limits$Get;
6821
- options = {};
6822
- }
6823
-
6824
- if (typeof optionsOrCallback === 'function') {
6825
- callback = optionsOrCallback;
6826
- options = {};
6827
- }
6828
-
6829
- const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
6830
- const parameters = {
6831
- options: Object.assign(
6832
- {
6833
- url: (rootUrl + '/accounts/v1/{+name}').replace(
6834
- /([^:]\/)\/+/g,
6835
- '$1'
6836
- ),
6837
- method: 'GET',
6838
- apiVersion: '',
6839
- },
6840
- options
6841
- ),
6842
- params,
6843
- requiredParams: ['name'],
6844
- pathParams: ['name'],
6845
- context: this.context,
6846
- };
6847
- if (callback) {
6848
- createAPIRequest<Schema$AccountLimit>(
6849
- parameters,
6850
- callback as BodyResponseCallback<unknown>
6851
- );
6852
- } else {
6853
- return createAPIRequest<Schema$AccountLimit>(parameters);
6854
- }
6855
- }
6856
-
6857
- /**
6858
- * Lists the limits of an account.
6859
- * @example
6860
- * ```js
6861
- * // Before running the sample:
6862
- * // - Enable the API at:
6863
- * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
6864
- * // - Login into gcloud by running:
6865
- * // ```sh
6866
- * // $ gcloud auth application-default login
6867
- * // ```
6868
- * // - Install the npm module by running:
6869
- * // ```sh
6870
- * // $ npm install googleapis
6871
- * // ```
6872
- *
6873
- * const {google} = require('googleapis');
6874
- * const merchantapi = google.merchantapi('accounts_v1');
6875
- *
6876
- * async function main() {
6877
- * const auth = new google.auth.GoogleAuth({
6878
- * // Scopes can be specified either as an array or as a single, space-delimited string.
6879
- * scopes: ['https://www.googleapis.com/auth/content'],
6880
- * });
6881
- *
6882
- * // Acquire an auth client, and bind it to all future calls
6883
- * const authClient = await auth.getClient();
6884
- * google.options({auth: authClient});
6885
- *
6886
- * // Do the magic
6887
- * const res = await merchantapi.accounts.limits.list({
6888
- * // Required. A filter on the limit `type` is required, for example, `type = "products"`.
6889
- * filter: 'placeholder-value',
6890
- * // Optional. The maximum number of limits to return. The service may return fewer than this value. If unspecified, at most 100 limits will be returned. The maximum value is 100; values above 100 will be coerced to 100.
6891
- * pageSize: 'placeholder-value',
6892
- * // Optional. A page token, received from a previous `ListAccountLimits` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccountLimits` must match the call that provided the page token.
6893
- * pageToken: 'placeholder-value',
6894
- * // Required. The parent account. Format: `accounts/{account\}`
6895
- * parent: 'accounts/my-account',
6896
- * });
6897
- * console.log(res.data);
6898
- *
6899
- * // Example response
6900
- * // {
6901
- * // "accountLimits": [],
6902
- * // "nextPageToken": "my_nextPageToken"
6903
- * // }
6904
- * }
6905
- *
6906
- * main().catch(e => {
6907
- * console.error(e);
6908
- * throw e;
6909
- * });
6910
- *
6911
- * ```
6912
- *
6913
- * @param params - Parameters for request
6914
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6915
- * @param callback - Optional callback that handles the response.
6916
- * @returns A promise if used with async/await, or void if used with a callback.
6917
- */
6918
- list(
6919
- params: Params$Resource$Accounts$Limits$List,
6920
- options: StreamMethodOptions
6921
- ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6922
- list(
6923
- params?: Params$Resource$Accounts$Limits$List,
6924
- options?: MethodOptions
6925
- ): Promise<GaxiosResponseWithHTTP2<Schema$ListAccountLimitsResponse>>;
6926
- list(
6927
- params: Params$Resource$Accounts$Limits$List,
6928
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
6929
- callback: BodyResponseCallback<Readable>
6930
- ): void;
6931
- list(
6932
- params: Params$Resource$Accounts$Limits$List,
6933
- options:
6934
- | MethodOptions
6935
- | BodyResponseCallback<Schema$ListAccountLimitsResponse>,
6936
- callback: BodyResponseCallback<Schema$ListAccountLimitsResponse>
6937
- ): void;
6938
- list(
6939
- params: Params$Resource$Accounts$Limits$List,
6940
- callback: BodyResponseCallback<Schema$ListAccountLimitsResponse>
6941
- ): void;
6942
- list(
6943
- callback: BodyResponseCallback<Schema$ListAccountLimitsResponse>
6944
- ): void;
6945
- list(
6946
- paramsOrCallback?:
6947
- | Params$Resource$Accounts$Limits$List
6948
- | BodyResponseCallback<Schema$ListAccountLimitsResponse>
6949
- | BodyResponseCallback<Readable>,
6950
- optionsOrCallback?:
6951
- | MethodOptions
6952
- | StreamMethodOptions
6953
- | BodyResponseCallback<Schema$ListAccountLimitsResponse>
6954
- | BodyResponseCallback<Readable>,
6955
- callback?:
6956
- | BodyResponseCallback<Schema$ListAccountLimitsResponse>
6957
- | BodyResponseCallback<Readable>
6958
- ):
6959
- | void
6960
- | Promise<GaxiosResponseWithHTTP2<Schema$ListAccountLimitsResponse>>
6961
- | Promise<GaxiosResponseWithHTTP2<Readable>> {
6962
- let params = (paramsOrCallback ||
6963
- {}) as Params$Resource$Accounts$Limits$List;
6964
- let options = (optionsOrCallback || {}) as MethodOptions;
6965
-
6966
- if (typeof paramsOrCallback === 'function') {
6967
- callback = paramsOrCallback;
6968
- params = {} as Params$Resource$Accounts$Limits$List;
6969
- options = {};
6970
- }
6971
-
6972
- if (typeof optionsOrCallback === 'function') {
6973
- callback = optionsOrCallback;
6974
- options = {};
6975
- }
6976
-
6977
- const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
6978
- const parameters = {
6979
- options: Object.assign(
6980
- {
6981
- url: (rootUrl + '/accounts/v1/{+parent}/limits').replace(
6982
- /([^:]\/)\/+/g,
6983
- '$1'
6984
- ),
6985
- method: 'GET',
6986
- apiVersion: '',
6987
- },
6988
- options
6989
- ),
6990
- params,
6991
- requiredParams: ['parent'],
6992
- pathParams: ['parent'],
6993
- context: this.context,
6994
- };
6995
- if (callback) {
6996
- createAPIRequest<Schema$ListAccountLimitsResponse>(
6997
- parameters,
6998
- callback as BodyResponseCallback<unknown>
6999
- );
7000
- } else {
7001
- return createAPIRequest<Schema$ListAccountLimitsResponse>(parameters);
7002
- }
7003
- }
7004
- }
7005
-
7006
- export interface Params$Resource$Accounts$Limits$Get
7007
- extends StandardParameters {
7008
- /**
7009
- * Required. The name of the limit to retrieve. Format: `accounts/{account\}/limits/{limit\}` For example: `accounts/123/limits/products~ADS_NON_EEA`
7010
- */
7011
- name?: string;
7012
- }
7013
- export interface Params$Resource$Accounts$Limits$List
7014
- extends StandardParameters {
7015
- /**
7016
- * Required. A filter on the limit `type` is required, for example, `type = "products"`.
7017
- */
7018
- filter?: string;
7019
- /**
7020
- * Optional. The maximum number of limits to return. The service may return fewer than this value. If unspecified, at most 100 limits will be returned. The maximum value is 100; values above 100 will be coerced to 100.
7021
- */
7022
- pageSize?: number;
7023
- /**
7024
- * Optional. A page token, received from a previous `ListAccountLimits` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccountLimits` must match the call that provided the page token.
7025
- */
7026
- pageToken?: string;
7027
- /**
7028
- * Required. The parent account. Format: `accounts/{account\}`
7029
- */
7030
- parent?: string;
7031
- }
7032
-
7033
6750
  export class Resource$Accounts$Omnichannelsettings {
7034
6751
  context: APIRequestContext;
7035
6752
  lfpProviders: Resource$Accounts$Omnichannelsettings$Lfpproviders;
@@ -7811,8 +7528,7 @@ export namespace merchantapi_accounts_v1 {
7811
7528
  }
7812
7529
  }
7813
7530
 
7814
- export interface Params$Resource$Accounts$Omnichannelsettings$Create
7815
- extends StandardParameters {
7531
+ export interface Params$Resource$Accounts$Omnichannelsettings$Create extends StandardParameters {
7816
7532
  /**
7817
7533
  * Required. The parent resource where this omnichannel setting will be created. Format: `accounts/{account\}`
7818
7534
  */
@@ -7823,15 +7539,13 @@ export namespace merchantapi_accounts_v1 {
7823
7539
  */
7824
7540
  requestBody?: Schema$OmnichannelSetting;
7825
7541
  }
7826
- export interface Params$Resource$Accounts$Omnichannelsettings$Get
7827
- extends StandardParameters {
7542
+ export interface Params$Resource$Accounts$Omnichannelsettings$Get extends StandardParameters {
7828
7543
  /**
7829
7544
  * Required. The name of the omnichannel setting to retrieve. Format: `accounts/{account\}/omnichannelSettings/{omnichannel_setting\}`
7830
7545
  */
7831
7546
  name?: string;
7832
7547
  }
7833
- export interface Params$Resource$Accounts$Omnichannelsettings$List
7834
- extends StandardParameters {
7548
+ export interface Params$Resource$Accounts$Omnichannelsettings$List extends StandardParameters {
7835
7549
  /**
7836
7550
  * Optional. The maximum number of omnichannel settings to return. The service may return fewer than this value. If unspecified, at most 50 omnichannel settings will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
7837
7551
  */
@@ -7845,8 +7559,7 @@ export namespace merchantapi_accounts_v1 {
7845
7559
  */
7846
7560
  parent?: string;
7847
7561
  }
7848
- export interface Params$Resource$Accounts$Omnichannelsettings$Patch
7849
- extends StandardParameters {
7562
+ export interface Params$Resource$Accounts$Omnichannelsettings$Patch extends StandardParameters {
7850
7563
  /**
7851
7564
  * Identifier. The resource name of the omnichannel setting. Format: `accounts/{account\}/omnichannelSettings/{omnichannel_setting\}`
7852
7565
  */
@@ -7861,8 +7574,7 @@ export namespace merchantapi_accounts_v1 {
7861
7574
  */
7862
7575
  requestBody?: Schema$OmnichannelSetting;
7863
7576
  }
7864
- export interface Params$Resource$Accounts$Omnichannelsettings$Requestinventoryverification
7865
- extends StandardParameters {
7577
+ export interface Params$Resource$Accounts$Omnichannelsettings$Requestinventoryverification extends StandardParameters {
7866
7578
  /**
7867
7579
  * Required. The name of the omnichannel setting to request inventory verification. Format: `accounts/{account\}/omnichannelSettings/{omnichannel_setting\}`
7868
7580
  */
@@ -8179,8 +7891,7 @@ export namespace merchantapi_accounts_v1 {
8179
7891
  }
8180
7892
  }
8181
7893
 
8182
- export interface Params$Resource$Accounts$Omnichannelsettings$Lfpproviders$Find
8183
- extends StandardParameters {
7894
+ export interface Params$Resource$Accounts$Omnichannelsettings$Lfpproviders$Find extends StandardParameters {
8184
7895
  /**
8185
7896
  * Optional. The maximum number of `LfpProvider` resources to return. The service returns fewer than this value if the number of lfp providers is less that than the `pageSize`. The default value is 50. The maximum value is 1000; If a value higher than the maximum is specified, then the `pageSize` will default to the maximum.
8186
7897
  */
@@ -8194,8 +7905,7 @@ export namespace merchantapi_accounts_v1 {
8194
7905
  */
8195
7906
  parent?: string;
8196
7907
  }
8197
- export interface Params$Resource$Accounts$Omnichannelsettings$Lfpproviders$Linklfpprovider
8198
- extends StandardParameters {
7908
+ export interface Params$Resource$Accounts$Omnichannelsettings$Lfpproviders$Linklfpprovider extends StandardParameters {
8199
7909
  /**
8200
7910
  * Required. The name of the LFP provider resource to link. Format: `accounts/{account\}/omnichannelSettings/{omnichannel_setting\}/lfpProviders/{lfp_provider\}`. The `lfp_provider` is the LFP provider ID.
8201
7911
  */
@@ -8823,8 +8533,7 @@ export namespace merchantapi_accounts_v1 {
8823
8533
  }
8824
8534
  }
8825
8535
 
8826
- export interface Params$Resource$Accounts$Onlinereturnpolicies$Create
8827
- extends StandardParameters {
8536
+ export interface Params$Resource$Accounts$Onlinereturnpolicies$Create extends StandardParameters {
8828
8537
  /**
8829
8538
  * Required. The Merchant Center account for which the return policy will be created. Format: `accounts/{account\}`
8830
8539
  */
@@ -8835,22 +8544,19 @@ export namespace merchantapi_accounts_v1 {
8835
8544
  */
8836
8545
  requestBody?: Schema$OnlineReturnPolicy;
8837
8546
  }
8838
- export interface Params$Resource$Accounts$Onlinereturnpolicies$Delete
8839
- extends StandardParameters {
8547
+ export interface Params$Resource$Accounts$Onlinereturnpolicies$Delete extends StandardParameters {
8840
8548
  /**
8841
8549
  * Required. The name of the return policy to delete. Format: `accounts/{account\}/onlineReturnPolicies/{return_policy\}`
8842
8550
  */
8843
8551
  name?: string;
8844
8552
  }
8845
- export interface Params$Resource$Accounts$Onlinereturnpolicies$Get
8846
- extends StandardParameters {
8553
+ export interface Params$Resource$Accounts$Onlinereturnpolicies$Get extends StandardParameters {
8847
8554
  /**
8848
8555
  * Required. The name of the return policy to retrieve. Format: `accounts/{account\}/onlineReturnPolicies/{return_policy\}`
8849
8556
  */
8850
8557
  name?: string;
8851
8558
  }
8852
- export interface Params$Resource$Accounts$Onlinereturnpolicies$List
8853
- extends StandardParameters {
8559
+ export interface Params$Resource$Accounts$Onlinereturnpolicies$List extends StandardParameters {
8854
8560
  /**
8855
8561
  * Optional. The maximum number of `OnlineReturnPolicy` resources to return. The service returns fewer than this value if the number of return policies for the given business is less that than the `pageSize`. The default value is 10. The maximum value is 100; If a value higher than the maximum is specified, then the `pageSize` will default to the maximum
8856
8562
  */
@@ -9455,8 +9161,7 @@ export namespace merchantapi_accounts_v1 {
9455
9161
  }
9456
9162
  }
9457
9163
 
9458
- export interface Params$Resource$Accounts$Programs$Disable
9459
- extends StandardParameters {
9164
+ export interface Params$Resource$Accounts$Programs$Disable extends StandardParameters {
9460
9165
  /**
9461
9166
  * Required. The name of the program for which to disable participation for the given account. Format: `accounts/{account\}/programs/{program\}`. For example, `accounts/123456/programs/free-listings`.
9462
9167
  */
@@ -9467,8 +9172,7 @@ export namespace merchantapi_accounts_v1 {
9467
9172
  */
9468
9173
  requestBody?: Schema$DisableProgramRequest;
9469
9174
  }
9470
- export interface Params$Resource$Accounts$Programs$Enable
9471
- extends StandardParameters {
9175
+ export interface Params$Resource$Accounts$Programs$Enable extends StandardParameters {
9472
9176
  /**
9473
9177
  * Required. The name of the program for which to enable participation for the given account. Format: `accounts/{account\}/programs/{program\}`. For example, `accounts/123456/programs/free-listings`.
9474
9178
  */
@@ -9479,15 +9183,13 @@ export namespace merchantapi_accounts_v1 {
9479
9183
  */
9480
9184
  requestBody?: Schema$EnableProgramRequest;
9481
9185
  }
9482
- export interface Params$Resource$Accounts$Programs$Get
9483
- extends StandardParameters {
9186
+ export interface Params$Resource$Accounts$Programs$Get extends StandardParameters {
9484
9187
  /**
9485
9188
  * Required. The name of the program to retrieve. Format: `accounts/{account\}/programs/{program\}`. For example, `accounts/123456/programs/free-listings`.
9486
9189
  */
9487
9190
  name?: string;
9488
9191
  }
9489
- export interface Params$Resource$Accounts$Programs$List
9490
- extends StandardParameters {
9192
+ export interface Params$Resource$Accounts$Programs$List extends StandardParameters {
9491
9193
  /**
9492
9194
  * Optional. The maximum number of programs to return in a single response. If unspecified (or 0), a default size of 1000 is used. The maximum value is 1000; values above 1000 will be coerced to 1000.
9493
9195
  */
@@ -10123,8 +9825,7 @@ export namespace merchantapi_accounts_v1 {
10123
9825
  }
10124
9826
  }
10125
9827
 
10126
- export interface Params$Resource$Accounts$Programs$Checkoutsettings$Create
10127
- extends StandardParameters {
9828
+ export interface Params$Resource$Accounts$Programs$Checkoutsettings$Create extends StandardParameters {
10128
9829
  /**
10129
9830
  * Required. The merchant account for which the `CheckoutSettings` will be created.
10130
9831
  */
@@ -10135,22 +9836,19 @@ export namespace merchantapi_accounts_v1 {
10135
9836
  */
10136
9837
  requestBody?: Schema$CheckoutSettings;
10137
9838
  }
10138
- export interface Params$Resource$Accounts$Programs$Checkoutsettings$Deletecheckoutsettings
10139
- extends StandardParameters {
9839
+ export interface Params$Resource$Accounts$Programs$Checkoutsettings$Deletecheckoutsettings extends StandardParameters {
10140
9840
  /**
10141
9841
  * Required. The name/identifier of the merchant account. Format: `accounts/{account\}/programs/{program\}/checkoutSettings`
10142
9842
  */
10143
9843
  name?: string;
10144
9844
  }
10145
- export interface Params$Resource$Accounts$Programs$Checkoutsettings$Getcheckoutsettings
10146
- extends StandardParameters {
9845
+ export interface Params$Resource$Accounts$Programs$Checkoutsettings$Getcheckoutsettings extends StandardParameters {
10147
9846
  /**
10148
9847
  * Required. The name/identifier of the merchant account. Format: `accounts/{account\}/programs/{program\}/checkoutSettings`
10149
9848
  */
10150
9849
  name?: string;
10151
9850
  }
10152
- export interface Params$Resource$Accounts$Programs$Checkoutsettings$Updatecheckoutsettings
10153
- extends StandardParameters {
9851
+ export interface Params$Resource$Accounts$Programs$Checkoutsettings$Updatecheckoutsettings extends StandardParameters {
10154
9852
  /**
10155
9853
  * Identifier. The resource name of the program configuration settings. Format: `accounts/{account\}/programs/{program\}/checkoutSettings`
10156
9854
  */
@@ -10654,6 +10352,7 @@ export namespace merchantapi_accounts_v1 {
10654
10352
  * // "geotargetArea": {},
10655
10353
  * // "name": "my_name",
10656
10354
  * // "postalCodeArea": {},
10355
+ * // "radiusArea": {},
10657
10356
  * // "regionalInventoryEligible": false,
10658
10357
  * // "shippingEligible": false
10659
10358
  * // }
@@ -10667,6 +10366,7 @@ export namespace merchantapi_accounts_v1 {
10667
10366
  * // "geotargetArea": {},
10668
10367
  * // "name": "my_name",
10669
10368
  * // "postalCodeArea": {},
10369
+ * // "radiusArea": {},
10670
10370
  * // "regionalInventoryEligible": false,
10671
10371
  * // "shippingEligible": false
10672
10372
  * // }
@@ -10944,6 +10644,7 @@ export namespace merchantapi_accounts_v1 {
10944
10644
  * // "geotargetArea": {},
10945
10645
  * // "name": "my_name",
10946
10646
  * // "postalCodeArea": {},
10647
+ * // "radiusArea": {},
10947
10648
  * // "regionalInventoryEligible": false,
10948
10649
  * // "shippingEligible": false
10949
10650
  * // }
@@ -11230,6 +10931,7 @@ export namespace merchantapi_accounts_v1 {
11230
10931
  * // "geotargetArea": {},
11231
10932
  * // "name": "my_name",
11232
10933
  * // "postalCodeArea": {},
10934
+ * // "radiusArea": {},
11233
10935
  * // "regionalInventoryEligible": false,
11234
10936
  * // "shippingEligible": false
11235
10937
  * // }
@@ -11243,6 +10945,7 @@ export namespace merchantapi_accounts_v1 {
11243
10945
  * // "geotargetArea": {},
11244
10946
  * // "name": "my_name",
11245
10947
  * // "postalCodeArea": {},
10948
+ * // "radiusArea": {},
11246
10949
  * // "regionalInventoryEligible": false,
11247
10950
  * // "shippingEligible": false
11248
10951
  * // }
@@ -11344,8 +11047,7 @@ export namespace merchantapi_accounts_v1 {
11344
11047
  }
11345
11048
  }
11346
11049
 
11347
- export interface Params$Resource$Accounts$Regions$Batchcreate
11348
- extends StandardParameters {
11050
+ export interface Params$Resource$Accounts$Regions$Batchcreate extends StandardParameters {
11349
11051
  /**
11350
11052
  * Required. The account to create one or more regions for. Format: `accounts/{account\}`
11351
11053
  */
@@ -11356,8 +11058,7 @@ export namespace merchantapi_accounts_v1 {
11356
11058
  */
11357
11059
  requestBody?: Schema$BatchCreateRegionsRequest;
11358
11060
  }
11359
- export interface Params$Resource$Accounts$Regions$Batchdelete
11360
- extends StandardParameters {
11061
+ export interface Params$Resource$Accounts$Regions$Batchdelete extends StandardParameters {
11361
11062
  /**
11362
11063
  * Required. The account to delete one or more regions from. Format: `accounts/{account\}`
11363
11064
  */
@@ -11368,8 +11069,7 @@ export namespace merchantapi_accounts_v1 {
11368
11069
  */
11369
11070
  requestBody?: Schema$BatchDeleteRegionsRequest;
11370
11071
  }
11371
- export interface Params$Resource$Accounts$Regions$Batchupdate
11372
- extends StandardParameters {
11072
+ export interface Params$Resource$Accounts$Regions$Batchupdate extends StandardParameters {
11373
11073
  /**
11374
11074
  * Required. The account to update one or more regions for. Format: `accounts/{account\}`
11375
11075
  */
@@ -11380,8 +11080,7 @@ export namespace merchantapi_accounts_v1 {
11380
11080
  */
11381
11081
  requestBody?: Schema$BatchUpdateRegionsRequest;
11382
11082
  }
11383
- export interface Params$Resource$Accounts$Regions$Create
11384
- extends StandardParameters {
11083
+ export interface Params$Resource$Accounts$Regions$Create extends StandardParameters {
11385
11084
  /**
11386
11085
  * Required. The account to create a region for. Format: `accounts/{account\}`
11387
11086
  */
@@ -11396,22 +11095,19 @@ export namespace merchantapi_accounts_v1 {
11396
11095
  */
11397
11096
  requestBody?: Schema$Region;
11398
11097
  }
11399
- export interface Params$Resource$Accounts$Regions$Delete
11400
- extends StandardParameters {
11098
+ export interface Params$Resource$Accounts$Regions$Delete extends StandardParameters {
11401
11099
  /**
11402
11100
  * Required. The name of the region to delete. Format: `accounts/{account\}/regions/{region\}`
11403
11101
  */
11404
11102
  name?: string;
11405
11103
  }
11406
- export interface Params$Resource$Accounts$Regions$Get
11407
- extends StandardParameters {
11104
+ export interface Params$Resource$Accounts$Regions$Get extends StandardParameters {
11408
11105
  /**
11409
11106
  * Required. The name of the region to retrieve. Format: `accounts/{account\}/regions/{region\}`
11410
11107
  */
11411
11108
  name?: string;
11412
11109
  }
11413
- export interface Params$Resource$Accounts$Regions$List
11414
- extends StandardParameters {
11110
+ export interface Params$Resource$Accounts$Regions$List extends StandardParameters {
11415
11111
  /**
11416
11112
  * Optional. The maximum number of regions to return. The service may return fewer than this value. If unspecified, at most 50 regions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
11417
11113
  */
@@ -11425,8 +11121,7 @@ export namespace merchantapi_accounts_v1 {
11425
11121
  */
11426
11122
  parent?: string;
11427
11123
  }
11428
- export interface Params$Resource$Accounts$Regions$Patch
11429
- extends StandardParameters {
11124
+ export interface Params$Resource$Accounts$Regions$Patch extends StandardParameters {
11430
11125
  /**
11431
11126
  * Identifier. The resource name of the region. Format: `accounts/{account\}/regions/{region\}`
11432
11127
  */
@@ -11894,15 +11589,13 @@ export namespace merchantapi_accounts_v1 {
11894
11589
  }
11895
11590
  }
11896
11591
 
11897
- export interface Params$Resource$Accounts$Relationships$Get
11898
- extends StandardParameters {
11592
+ export interface Params$Resource$Accounts$Relationships$Get extends StandardParameters {
11899
11593
  /**
11900
11594
  * Required. The resource name of the account relationship to get. Format: `accounts/{account\}/relationships/{relationship\}`. For example, `accounts/123456/relationships/567890`.
11901
11595
  */
11902
11596
  name?: string;
11903
11597
  }
11904
- export interface Params$Resource$Accounts$Relationships$List
11905
- extends StandardParameters {
11598
+ export interface Params$Resource$Accounts$Relationships$List extends StandardParameters {
11906
11599
  /**
11907
11600
  * Optional. The maximum number of elements to return in the response. Use for paging. If no `page_size` is specified, `100` is used as the default value. The maximum allowed value is `1000`.
11908
11601
  */
@@ -11916,8 +11609,7 @@ export namespace merchantapi_accounts_v1 {
11916
11609
  */
11917
11610
  parent?: string;
11918
11611
  }
11919
- export interface Params$Resource$Accounts$Relationships$Patch
11920
- extends StandardParameters {
11612
+ export interface Params$Resource$Accounts$Relationships$Patch extends StandardParameters {
11921
11613
  /**
11922
11614
  * Identifier. The resource name of the account relationship. Format: `accounts/{account\}/relationships/{relationship\}`. For example, `accounts/123456/relationships/567890`.
11923
11615
  */
@@ -11986,6 +11678,7 @@ export namespace merchantapi_accounts_v1 {
11986
11678
  * // "accountAggregation": {},
11987
11679
  * // "accountManagement": {},
11988
11680
  * // "campaignsManagement": {},
11681
+ * // "comparisonShopping": {},
11989
11682
  * // "externalAccountId": "my_externalAccountId",
11990
11683
  * // "handshake": {},
11991
11684
  * // "localListingManagement": {},
@@ -12133,6 +11826,7 @@ export namespace merchantapi_accounts_v1 {
12133
11826
  * // "accountAggregation": {},
12134
11827
  * // "accountManagement": {},
12135
11828
  * // "campaignsManagement": {},
11829
+ * // "comparisonShopping": {},
12136
11830
  * // "externalAccountId": "my_externalAccountId",
12137
11831
  * // "handshake": {},
12138
11832
  * // "localListingManagement": {},
@@ -12435,6 +12129,7 @@ export namespace merchantapi_accounts_v1 {
12435
12129
  * // "accountAggregation": {},
12436
12130
  * // "accountManagement": {},
12437
12131
  * // "campaignsManagement": {},
12132
+ * // "comparisonShopping": {},
12438
12133
  * // "externalAccountId": "my_externalAccountId",
12439
12134
  * // "handshake": {},
12440
12135
  * // "localListingManagement": {},
@@ -12683,8 +12378,7 @@ export namespace merchantapi_accounts_v1 {
12683
12378
  }
12684
12379
  }
12685
12380
 
12686
- export interface Params$Resource$Accounts$Services$Approve
12687
- extends StandardParameters {
12381
+ export interface Params$Resource$Accounts$Services$Approve extends StandardParameters {
12688
12382
  /**
12689
12383
  * Required. The resource name of the account service to approve. Format: `accounts/{account\}/services/{service\}`
12690
12384
  */
@@ -12695,15 +12389,13 @@ export namespace merchantapi_accounts_v1 {
12695
12389
  */
12696
12390
  requestBody?: Schema$ApproveAccountServiceRequest;
12697
12391
  }
12698
- export interface Params$Resource$Accounts$Services$Get
12699
- extends StandardParameters {
12392
+ export interface Params$Resource$Accounts$Services$Get extends StandardParameters {
12700
12393
  /**
12701
12394
  * Required. The resource name of the account service to get. Format: `accounts/{account\}/services/{service\}`
12702
12395
  */
12703
12396
  name?: string;
12704
12397
  }
12705
- export interface Params$Resource$Accounts$Services$List
12706
- extends StandardParameters {
12398
+ export interface Params$Resource$Accounts$Services$List extends StandardParameters {
12707
12399
  /**
12708
12400
  * Optional. The maximum number of elements to return in the response. Use for paging. If no `page_size` is specified, `100` is used as the default value. The maximum allowed value is `1000`.
12709
12401
  */
@@ -12717,8 +12409,7 @@ export namespace merchantapi_accounts_v1 {
12717
12409
  */
12718
12410
  parent?: string;
12719
12411
  }
12720
- export interface Params$Resource$Accounts$Services$Propose
12721
- extends StandardParameters {
12412
+ export interface Params$Resource$Accounts$Services$Propose extends StandardParameters {
12722
12413
  /**
12723
12414
  * Required. The resource name of the parent account for the service. Format: `accounts/{account\}`
12724
12415
  */
@@ -12729,8 +12420,7 @@ export namespace merchantapi_accounts_v1 {
12729
12420
  */
12730
12421
  requestBody?: Schema$ProposeAccountServiceRequest;
12731
12422
  }
12732
- export interface Params$Resource$Accounts$Services$Reject
12733
- extends StandardParameters {
12423
+ export interface Params$Resource$Accounts$Services$Reject extends StandardParameters {
12734
12424
  /**
12735
12425
  * Required. The resource name of the account service to reject. Format: `accounts/{account\}/services/{service\}`
12736
12426
  */
@@ -13042,15 +12732,13 @@ export namespace merchantapi_accounts_v1 {
13042
12732
  }
13043
12733
  }
13044
12734
 
13045
- export interface Params$Resource$Accounts$Shippingsettings$Getshippingsettings
13046
- extends StandardParameters {
12735
+ export interface Params$Resource$Accounts$Shippingsettings$Getshippingsettings extends StandardParameters {
13047
12736
  /**
13048
12737
  * Required. The name of the shipping setting to retrieve. Format: `accounts/{account\}/shippingsettings`
13049
12738
  */
13050
12739
  name?: string;
13051
12740
  }
13052
- export interface Params$Resource$Accounts$Shippingsettings$Insert
13053
- extends StandardParameters {
12741
+ export interface Params$Resource$Accounts$Shippingsettings$Insert extends StandardParameters {
13054
12742
  /**
13055
12743
  * Required. The account for which this shipping setting will be inserted. If you are using an advanced account, you must specify the unique identifier of the sub-account for which you want to insert the shipping setting. Format: `accounts/{ACCOUNT_ID\}`
13056
12744
  */
@@ -13368,15 +13056,13 @@ export namespace merchantapi_accounts_v1 {
13368
13056
  }
13369
13057
  }
13370
13058
 
13371
- export interface Params$Resource$Accounts$Termsofserviceagreementstates$Get
13372
- extends StandardParameters {
13059
+ export interface Params$Resource$Accounts$Termsofserviceagreementstates$Get extends StandardParameters {
13373
13060
  /**
13374
13061
  * Required. The resource name of the terms of service version. Format: `accounts/{account\}/termsOfServiceAgreementStates/{identifier\}` The identifier format is: `{TermsOfServiceKind\}-{country\}`
13375
13062
  */
13376
13063
  name?: string;
13377
13064
  }
13378
- export interface Params$Resource$Accounts$Termsofserviceagreementstates$Retrieveforapplication
13379
- extends StandardParameters {
13065
+ export interface Params$Resource$Accounts$Termsofserviceagreementstates$Retrieveforapplication extends StandardParameters {
13380
13066
  /**
13381
13067
  * Required. The account for which to get a TermsOfServiceAgreementState Format: `accounts/{account\}`
13382
13068
  */
@@ -13385,8 +13071,10 @@ export namespace merchantapi_accounts_v1 {
13385
13071
 
13386
13072
  export class Resource$Accounts$Users {
13387
13073
  context: APIRequestContext;
13074
+ me: Resource$Accounts$Users$Me;
13388
13075
  constructor(context: APIRequestContext) {
13389
13076
  this.context = context;
13077
+ this.me = new Resource$Accounts$Users$Me(this.context);
13390
13078
  }
13391
13079
 
13392
13080
  /**
@@ -14108,8 +13796,7 @@ export namespace merchantapi_accounts_v1 {
14108
13796
  }
14109
13797
  }
14110
13798
 
14111
- export interface Params$Resource$Accounts$Users$Create
14112
- extends StandardParameters {
13799
+ export interface Params$Resource$Accounts$Users$Create extends StandardParameters {
14113
13800
  /**
14114
13801
  * Required. The resource name of the account for which a user will be created. Format: `accounts/{account\}`
14115
13802
  */
@@ -14124,22 +13811,19 @@ export namespace merchantapi_accounts_v1 {
14124
13811
  */
14125
13812
  requestBody?: Schema$User;
14126
13813
  }
14127
- export interface Params$Resource$Accounts$Users$Delete
14128
- extends StandardParameters {
13814
+ export interface Params$Resource$Accounts$Users$Delete extends StandardParameters {
14129
13815
  /**
14130
13816
  * Required. The name of the user to delete. Format: `accounts/{account\}/users/{email\}` It is also possible to delete the user corresponding to the caller by using `me` rather than an email address as in `accounts/{account\}/users/me`.
14131
13817
  */
14132
13818
  name?: string;
14133
13819
  }
14134
- export interface Params$Resource$Accounts$Users$Get
14135
- extends StandardParameters {
13820
+ export interface Params$Resource$Accounts$Users$Get extends StandardParameters {
14136
13821
  /**
14137
13822
  * Required. The name of the user to retrieve. Format: `accounts/{account\}/users/{email\}` It is also possible to retrieve the user corresponding to the caller by using `me` rather than an email address as in `accounts/{account\}/users/me`.
14138
13823
  */
14139
13824
  name?: string;
14140
13825
  }
14141
- export interface Params$Resource$Accounts$Users$List
14142
- extends StandardParameters {
13826
+ export interface Params$Resource$Accounts$Users$List extends StandardParameters {
14143
13827
  /**
14144
13828
  * Optional. The maximum number of users to return. The service may return fewer than this value. If unspecified, at most 50 users will be returned. The maximum value is 100; values above 100 will be coerced to 100
14145
13829
  */
@@ -14153,8 +13837,7 @@ export namespace merchantapi_accounts_v1 {
14153
13837
  */
14154
13838
  parent?: string;
14155
13839
  }
14156
- export interface Params$Resource$Accounts$Users$Patch
14157
- extends StandardParameters {
13840
+ export interface Params$Resource$Accounts$Users$Patch extends StandardParameters {
14158
13841
  /**
14159
13842
  * Identifier. The resource name of the user. Format: `accounts/{account\}/user/{email\}` Use `me` to refer to your own email address, for example `accounts/{account\}/users/me`.
14160
13843
  */
@@ -14170,6 +13853,169 @@ export namespace merchantapi_accounts_v1 {
14170
13853
  requestBody?: Schema$User;
14171
13854
  }
14172
13855
 
13856
+ export class Resource$Accounts$Users$Me {
13857
+ context: APIRequestContext;
13858
+ constructor(context: APIRequestContext) {
13859
+ this.context = context;
13860
+ }
13861
+
13862
+ /**
13863
+ * Updates the user that is represented by the caller from pending to verified.
13864
+ * @example
13865
+ * ```js
13866
+ * // Before running the sample:
13867
+ * // - Enable the API at:
13868
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
13869
+ * // - Login into gcloud by running:
13870
+ * // ```sh
13871
+ * // $ gcloud auth application-default login
13872
+ * // ```
13873
+ * // - Install the npm module by running:
13874
+ * // ```sh
13875
+ * // $ npm install googleapis
13876
+ * // ```
13877
+ *
13878
+ * const {google} = require('googleapis');
13879
+ * const merchantapi = google.merchantapi('accounts_v1');
13880
+ *
13881
+ * async function main() {
13882
+ * const auth = new google.auth.GoogleAuth({
13883
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
13884
+ * scopes: ['https://www.googleapis.com/auth/content'],
13885
+ * });
13886
+ *
13887
+ * // Acquire an auth client, and bind it to all future calls
13888
+ * const authClient = await auth.getClient();
13889
+ * google.options({auth: authClient});
13890
+ *
13891
+ * // Do the magic
13892
+ * const res = await merchantapi.accounts.users.me.verifySelf({
13893
+ * // Required. The name of the account under which the caller is a user. Format: `accounts/{account\}`
13894
+ * account: 'accounts/my-account',
13895
+ *
13896
+ * // Request body metadata
13897
+ * requestBody: {
13898
+ * // request body parameters
13899
+ * // {}
13900
+ * },
13901
+ * });
13902
+ * console.log(res.data);
13903
+ *
13904
+ * // Example response
13905
+ * // {
13906
+ * // "accessRights": [],
13907
+ * // "name": "my_name",
13908
+ * // "state": "my_state"
13909
+ * // }
13910
+ * }
13911
+ *
13912
+ * main().catch(e => {
13913
+ * console.error(e);
13914
+ * throw e;
13915
+ * });
13916
+ *
13917
+ * ```
13918
+ *
13919
+ * @param params - Parameters for request
13920
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
13921
+ * @param callback - Optional callback that handles the response.
13922
+ * @returns A promise if used with async/await, or void if used with a callback.
13923
+ */
13924
+ verifySelf(
13925
+ params: Params$Resource$Accounts$Users$Me$Verifyself,
13926
+ options: StreamMethodOptions
13927
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
13928
+ verifySelf(
13929
+ params?: Params$Resource$Accounts$Users$Me$Verifyself,
13930
+ options?: MethodOptions
13931
+ ): Promise<GaxiosResponseWithHTTP2<Schema$User>>;
13932
+ verifySelf(
13933
+ params: Params$Resource$Accounts$Users$Me$Verifyself,
13934
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
13935
+ callback: BodyResponseCallback<Readable>
13936
+ ): void;
13937
+ verifySelf(
13938
+ params: Params$Resource$Accounts$Users$Me$Verifyself,
13939
+ options: MethodOptions | BodyResponseCallback<Schema$User>,
13940
+ callback: BodyResponseCallback<Schema$User>
13941
+ ): void;
13942
+ verifySelf(
13943
+ params: Params$Resource$Accounts$Users$Me$Verifyself,
13944
+ callback: BodyResponseCallback<Schema$User>
13945
+ ): void;
13946
+ verifySelf(callback: BodyResponseCallback<Schema$User>): void;
13947
+ verifySelf(
13948
+ paramsOrCallback?:
13949
+ | Params$Resource$Accounts$Users$Me$Verifyself
13950
+ | BodyResponseCallback<Schema$User>
13951
+ | BodyResponseCallback<Readable>,
13952
+ optionsOrCallback?:
13953
+ | MethodOptions
13954
+ | StreamMethodOptions
13955
+ | BodyResponseCallback<Schema$User>
13956
+ | BodyResponseCallback<Readable>,
13957
+ callback?:
13958
+ | BodyResponseCallback<Schema$User>
13959
+ | BodyResponseCallback<Readable>
13960
+ ):
13961
+ | void
13962
+ | Promise<GaxiosResponseWithHTTP2<Schema$User>>
13963
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
13964
+ let params = (paramsOrCallback ||
13965
+ {}) as Params$Resource$Accounts$Users$Me$Verifyself;
13966
+ let options = (optionsOrCallback || {}) as MethodOptions;
13967
+
13968
+ if (typeof paramsOrCallback === 'function') {
13969
+ callback = paramsOrCallback;
13970
+ params = {} as Params$Resource$Accounts$Users$Me$Verifyself;
13971
+ options = {};
13972
+ }
13973
+
13974
+ if (typeof optionsOrCallback === 'function') {
13975
+ callback = optionsOrCallback;
13976
+ options = {};
13977
+ }
13978
+
13979
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
13980
+ const parameters = {
13981
+ options: Object.assign(
13982
+ {
13983
+ url: (
13984
+ rootUrl + '/accounts/v1/{+account}/users/me:verifySelf'
13985
+ ).replace(/([^:]\/)\/+/g, '$1'),
13986
+ method: 'PATCH',
13987
+ apiVersion: '',
13988
+ },
13989
+ options
13990
+ ),
13991
+ params,
13992
+ requiredParams: ['account'],
13993
+ pathParams: ['account'],
13994
+ context: this.context,
13995
+ };
13996
+ if (callback) {
13997
+ createAPIRequest<Schema$User>(
13998
+ parameters,
13999
+ callback as BodyResponseCallback<unknown>
14000
+ );
14001
+ } else {
14002
+ return createAPIRequest<Schema$User>(parameters);
14003
+ }
14004
+ }
14005
+ }
14006
+
14007
+ export interface Params$Resource$Accounts$Users$Me$Verifyself extends StandardParameters {
14008
+ /**
14009
+ * Required. The name of the account under which the caller is a user. Format: `accounts/{account\}`
14010
+ */
14011
+ account?: string;
14012
+
14013
+ /**
14014
+ * Request body metadata
14015
+ */
14016
+ requestBody?: Schema$VerifySelfRequest;
14017
+ }
14018
+
14173
14019
  export class Resource$Termsofservice {
14174
14020
  context: APIRequestContext;
14175
14021
  constructor(context: APIRequestContext) {
@@ -14607,8 +14453,7 @@ export namespace merchantapi_accounts_v1 {
14607
14453
  }
14608
14454
  }
14609
14455
 
14610
- export interface Params$Resource$Termsofservice$Accept
14611
- extends StandardParameters {
14456
+ export interface Params$Resource$Termsofservice$Accept extends StandardParameters {
14612
14457
  /**
14613
14458
  * Required. The account for which to accept the ToS. Format: `accounts/{account\}`
14614
14459
  */
@@ -14622,15 +14467,13 @@ export namespace merchantapi_accounts_v1 {
14622
14467
  */
14623
14468
  regionCode?: string;
14624
14469
  }
14625
- export interface Params$Resource$Termsofservice$Get
14626
- extends StandardParameters {
14470
+ export interface Params$Resource$Termsofservice$Get extends StandardParameters {
14627
14471
  /**
14628
14472
  * Required. The resource name of the terms of service version. Format: `termsOfService/{version\}`
14629
14473
  */
14630
14474
  name?: string;
14631
14475
  }
14632
- export interface Params$Resource$Termsofservice$Retrievelatest
14633
- extends StandardParameters {
14476
+ export interface Params$Resource$Termsofservice$Retrievelatest extends StandardParameters {
14634
14477
  /**
14635
14478
  * Required. The Kind this terms of service version applies to.
14636
14479
  */