@googleapis/merchantapi 16.0.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 +20 -0
  2. package/accounts_v1.ts +344 -140
  3. package/accounts_v1beta.ts +342 -136
  4. package/build/accounts_v1.d.ts +194 -0
  5. package/build/accounts_v1.js +41 -0
  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 -14
  15. package/build/inventories_v1.js.map +1 -1
  16. package/build/inventories_v1beta.d.ts +14 -14
  17. package/build/inventories_v1beta.js.map +1 -1
  18. package/build/issueresolution_v1.d.ts +2 -2
  19. package/build/issueresolution_v1.js.map +1 -1
  20. package/build/issueresolution_v1beta.d.ts +2 -2
  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 -9
  29. package/build/products_v1.js.map +1 -1
  30. package/build/products_v1beta.d.ts +9 -9
  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 -26
  47. package/inventories_v1beta.ts +20 -26
  48. package/issueresolution_v1.ts +6 -10
  49. package/issueresolution_v1beta.ts +6 -10
  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 -19
  58. package/products_v1beta.ts +14 -19
  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
@@ -272,6 +272,10 @@ export namespace merchantapi_accounts_v1beta {
272
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.
273
273
  */
274
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;
275
279
  /**
276
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.
277
281
  */
@@ -313,6 +317,26 @@ export namespace merchantapi_accounts_v1beta {
313
317
  * The provider is an [aggregator](https://support.google.com/merchants/answer/188487) for the account. Payload for service type Account Aggregation.
314
318
  */
315
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;
316
340
  /**
317
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`).
318
342
  */
@@ -355,6 +379,10 @@ export namespace merchantapi_accounts_v1beta {
355
379
  * Required. The email address of the user (for example, `john.doe@gmail.com`).
356
380
  */
357
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;
358
386
  }
359
387
  /**
360
388
  * Request to approve an account service.
@@ -595,6 +623,10 @@ export namespace merchantapi_accounts_v1beta {
595
623
  */
596
624
  overwrite?: boolean | null;
597
625
  }
626
+ /**
627
+ * `ComparisonShopping` payload.
628
+ */
629
+ export interface Schema$ComparisonShopping {}
598
630
  /**
599
631
  * Request message for the `CreateAndConfigureAccount` method.
600
632
  */
@@ -607,6 +639,10 @@ export namespace merchantapi_accounts_v1beta {
607
639
  * 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.
608
640
  */
609
641
  service?: Schema$AddAccountService[];
642
+ /**
643
+ * 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.
644
+ */
645
+ setAlias?: Schema$SetAliasForRelationship[];
610
646
  /**
611
647
  * Optional. Users to be added to the account.
612
648
  */
@@ -1003,6 +1039,19 @@ export namespace merchantapi_accounts_v1beta {
1003
1039
  */
1004
1040
  allowStrictAvailabilityUpdates?: boolean | null;
1005
1041
  }
1042
+ /**
1043
+ * 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.
1044
+ */
1045
+ export interface Schema$LatLng {
1046
+ /**
1047
+ * The latitude in degrees. It must be in the range [-90.0, +90.0].
1048
+ */
1049
+ latitude?: number | null;
1050
+ /**
1051
+ * The longitude in degrees. It must be in the range [-180.0, +180.0].
1052
+ */
1053
+ longitude?: number | null;
1054
+ }
1006
1055
  /**
1007
1056
  * Collection of information related to the LFP link.
1008
1057
  */
@@ -1627,6 +1676,27 @@ export namespace merchantapi_accounts_v1beta {
1627
1676
  */
1628
1677
  provider?: string | null;
1629
1678
  }
1679
+ /**
1680
+ * A radius area that defines the region area.
1681
+ */
1682
+ export interface Schema$RadiusArea {
1683
+ /**
1684
+ * Required. The center of the radius area. It represents a latitude/longitude pair in decimal degrees format.
1685
+ */
1686
+ latLng?: Schema$LatLng;
1687
+ /**
1688
+ * Required. The radius distance of the area.
1689
+ */
1690
+ radius?: number | null;
1691
+ /**
1692
+ * Optional. The unit of the radius.
1693
+ */
1694
+ radiusUnits?: string | null;
1695
+ /**
1696
+ * Required. [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) or the country the radius area applies to.
1697
+ */
1698
+ regionCode?: string | null;
1699
+ }
1630
1700
  /**
1631
1701
  * 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.
1632
1702
  */
@@ -1676,6 +1746,10 @@ export namespace merchantapi_accounts_v1beta {
1676
1746
  * Optional. A list of postal codes that defines the region area.
1677
1747
  */
1678
1748
  postalCodeArea?: Schema$PostalCodeArea;
1749
+ /**
1750
+ * Optional. A radius area that defines the region area.
1751
+ */
1752
+ radiusArea?: Schema$RadiusArea;
1679
1753
  /**
1680
1754
  * Output only. Indicates if the region is eligible for use in the Regional Inventory configuration.
1681
1755
  */
@@ -1847,6 +1921,19 @@ export namespace merchantapi_accounts_v1beta {
1847
1921
  */
1848
1922
  storeConfig?: Schema$StoreConfig;
1849
1923
  }
1924
+ /**
1925
+ * Set an alias for a relationship between a provider and the account to be created.
1926
+ */
1927
+ export interface Schema$SetAliasForRelationship {
1928
+ /**
1929
+ * 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.
1930
+ */
1931
+ accountIdAlias?: string | null;
1932
+ /**
1933
+ * 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.
1934
+ */
1935
+ provider?: string | null;
1936
+ }
1850
1937
  /**
1851
1938
  * 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.
1852
1939
  */
@@ -2101,6 +2188,19 @@ export namespace merchantapi_accounts_v1beta {
2101
2188
  */
2102
2189
  subtable?: string | null;
2103
2190
  }
2191
+ /**
2192
+ * Settings related to the verification email that is sent after adding a user.
2193
+ */
2194
+ export interface Schema$VerificationMailSettings {
2195
+ /**
2196
+ * Optional. Mode of the verification mail. If not set, the default is `SEND_VERIFICATION_MAIL`.
2197
+ */
2198
+ verificationMailMode?: string | null;
2199
+ }
2200
+ /**
2201
+ * Request message for the `VerifySelf` method.
2202
+ */
2203
+ export interface Schema$VerifySelfRequest {}
2104
2204
  /**
2105
2205
  * A fulfillment warehouse, which stores and handles inventory.
2106
2206
  */
@@ -2266,6 +2366,7 @@ export namespace merchantapi_accounts_v1beta {
2266
2366
  * // {
2267
2367
  * // "account": {},
2268
2368
  * // "service": [],
2369
+ * // "setAlias": [],
2269
2370
  * // "user": [],
2270
2371
  * // "users": []
2271
2372
  * // }
@@ -3104,8 +3205,7 @@ export namespace merchantapi_accounts_v1beta {
3104
3205
  }
3105
3206
  }
3106
3207
 
3107
- export interface Params$Resource$Accounts$Createandconfigure
3108
- extends StandardParameters {
3208
+ export interface Params$Resource$Accounts$Createandconfigure extends StandardParameters {
3109
3209
  /**
3110
3210
  * Request body metadata
3111
3211
  */
@@ -3141,8 +3241,7 @@ export namespace merchantapi_accounts_v1beta {
3141
3241
  */
3142
3242
  pageToken?: string;
3143
3243
  }
3144
- export interface Params$Resource$Accounts$Listsubaccounts
3145
- extends StandardParameters {
3244
+ export interface Params$Resource$Accounts$Listsubaccounts extends StandardParameters {
3146
3245
  /**
3147
3246
  * 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.
3148
3247
  */
@@ -3476,15 +3575,13 @@ export namespace merchantapi_accounts_v1beta {
3476
3575
  }
3477
3576
  }
3478
3577
 
3479
- export interface Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings
3480
- extends StandardParameters {
3578
+ export interface Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings extends StandardParameters {
3481
3579
  /**
3482
3580
  * Required. The resource name of the autofeed settings. Format: `accounts/{account\}/autofeedSettings`
3483
3581
  */
3484
3582
  name?: string;
3485
3583
  }
3486
- export interface Params$Resource$Accounts$Autofeedsettings$Updateautofeedsettings
3487
- extends StandardParameters {
3584
+ export interface Params$Resource$Accounts$Autofeedsettings$Updateautofeedsettings extends StandardParameters {
3488
3585
  /**
3489
3586
  * Identifier. The resource name of the autofeed settings. Format: `accounts/{account\}/autofeedSettings`.
3490
3587
  */
@@ -3814,15 +3911,13 @@ export namespace merchantapi_accounts_v1beta {
3814
3911
  }
3815
3912
  }
3816
3913
 
3817
- export interface Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements
3818
- extends StandardParameters {
3914
+ export interface Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements extends StandardParameters {
3819
3915
  /**
3820
3916
  * Required. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`
3821
3917
  */
3822
3918
  name?: string;
3823
3919
  }
3824
- export interface Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements
3825
- extends StandardParameters {
3920
+ export interface Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements extends StandardParameters {
3826
3921
  /**
3827
3922
  * Identifier. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`.
3828
3923
  */
@@ -4154,15 +4249,13 @@ export namespace merchantapi_accounts_v1beta {
4154
4249
  }
4155
4250
  }
4156
4251
 
4157
- export interface Params$Resource$Accounts$Businessidentity$Getbusinessidentity
4158
- extends StandardParameters {
4252
+ export interface Params$Resource$Accounts$Businessidentity$Getbusinessidentity extends StandardParameters {
4159
4253
  /**
4160
4254
  * Required. The resource name of the business identity. Format: `accounts/{account\}/businessIdentity`. For example, `accounts/123456/businessIdentity`.
4161
4255
  */
4162
4256
  name?: string;
4163
4257
  }
4164
- export interface Params$Resource$Accounts$Businessidentity$Updatebusinessidentity
4165
- extends StandardParameters {
4258
+ export interface Params$Resource$Accounts$Businessidentity$Updatebusinessidentity extends StandardParameters {
4166
4259
  /**
4167
4260
  * Identifier. The resource name of the business identity. Format: `accounts/{account\}/businessIdentity`
4168
4261
  */
@@ -4486,15 +4579,13 @@ export namespace merchantapi_accounts_v1beta {
4486
4579
  }
4487
4580
  }
4488
4581
 
4489
- export interface Params$Resource$Accounts$Businessinfo$Getbusinessinfo
4490
- extends StandardParameters {
4582
+ export interface Params$Resource$Accounts$Businessinfo$Getbusinessinfo extends StandardParameters {
4491
4583
  /**
4492
4584
  * Required. The resource name of the business info. Format: `accounts/{account\}/businessInfo`. For example, `accounts/123456/businessInfo`.
4493
4585
  */
4494
4586
  name?: string;
4495
4587
  }
4496
- export interface Params$Resource$Accounts$Businessinfo$Updatebusinessinfo
4497
- extends StandardParameters {
4588
+ export interface Params$Resource$Accounts$Businessinfo$Updatebusinessinfo extends StandardParameters {
4498
4589
  /**
4499
4590
  * Identifier. The resource name of the business info. Format: `accounts/{account\}/businessInfo`
4500
4591
  */
@@ -5101,17 +5192,14 @@ export namespace merchantapi_accounts_v1beta {
5101
5192
  }
5102
5193
  }
5103
5194
 
5104
- export interface Params$Resource$Accounts$Developerregistration$Getaccountforgcpregistration
5105
- extends StandardParameters {}
5106
- export interface Params$Resource$Accounts$Developerregistration$Getdeveloperregistration
5107
- extends StandardParameters {
5195
+ export interface Params$Resource$Accounts$Developerregistration$Getaccountforgcpregistration extends StandardParameters {}
5196
+ export interface Params$Resource$Accounts$Developerregistration$Getdeveloperregistration extends StandardParameters {
5108
5197
  /**
5109
5198
  * Required. The `name` (ID) of the developer registration.
5110
5199
  */
5111
5200
  name?: string;
5112
5201
  }
5113
- export interface Params$Resource$Accounts$Developerregistration$Registergcp
5114
- extends StandardParameters {
5202
+ export interface Params$Resource$Accounts$Developerregistration$Registergcp extends StandardParameters {
5115
5203
  /**
5116
5204
  * 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`
5117
5205
  */
@@ -5122,8 +5210,7 @@ export namespace merchantapi_accounts_v1beta {
5122
5210
  */
5123
5211
  requestBody?: Schema$RegisterGcpRequest;
5124
5212
  }
5125
- export interface Params$Resource$Accounts$Developerregistration$Unregistergcp
5126
- extends StandardParameters {
5213
+ export interface Params$Resource$Accounts$Developerregistration$Unregistergcp extends StandardParameters {
5127
5214
  /**
5128
5215
  * 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`
5129
5216
  */
@@ -5436,15 +5523,13 @@ export namespace merchantapi_accounts_v1beta {
5436
5523
  }
5437
5524
  }
5438
5525
 
5439
- export interface Params$Resource$Accounts$Emailpreferences$Getemailpreferences
5440
- extends StandardParameters {
5526
+ export interface Params$Resource$Accounts$Emailpreferences$Getemailpreferences extends StandardParameters {
5441
5527
  /**
5442
5528
  * Required. The name of the `EmailPreferences` resource. Format: `accounts/{account\}/users/{email\}/emailPreferences`
5443
5529
  */
5444
5530
  name?: string;
5445
5531
  }
5446
- export interface Params$Resource$Accounts$Emailpreferences$Updateemailpreferences
5447
- extends StandardParameters {
5532
+ export interface Params$Resource$Accounts$Emailpreferences$Updateemailpreferences extends StandardParameters {
5448
5533
  /**
5449
5534
  * Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user.
5450
5535
  */
@@ -5759,8 +5844,7 @@ export namespace merchantapi_accounts_v1beta {
5759
5844
  }
5760
5845
  }
5761
5846
 
5762
- export interface Params$Resource$Accounts$Gbpaccounts$Linkgbpaccount
5763
- extends StandardParameters {
5847
+ export interface Params$Resource$Accounts$Gbpaccounts$Linkgbpaccount extends StandardParameters {
5764
5848
  /**
5765
5849
  * Required. The name of the parent resource to which the GBP account is linked. Format: `accounts/{account\}`.
5766
5850
  */
@@ -5771,8 +5855,7 @@ export namespace merchantapi_accounts_v1beta {
5771
5855
  */
5772
5856
  requestBody?: Schema$LinkGbpAccountRequest;
5773
5857
  }
5774
- export interface Params$Resource$Accounts$Gbpaccounts$List
5775
- extends StandardParameters {
5858
+ export interface Params$Resource$Accounts$Gbpaccounts$List extends StandardParameters {
5776
5859
  /**
5777
5860
  * 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.
5778
5861
  */
@@ -6376,8 +6459,7 @@ export namespace merchantapi_accounts_v1beta {
6376
6459
  }
6377
6460
  }
6378
6461
 
6379
- export interface Params$Resource$Accounts$Homepage$Claim
6380
- extends StandardParameters {
6462
+ export interface Params$Resource$Accounts$Homepage$Claim extends StandardParameters {
6381
6463
  /**
6382
6464
  * Required. The name of the homepage to claim. Format: `accounts/{account\}/homepage`
6383
6465
  */
@@ -6388,15 +6470,13 @@ export namespace merchantapi_accounts_v1beta {
6388
6470
  */
6389
6471
  requestBody?: Schema$ClaimHomepageRequest;
6390
6472
  }
6391
- export interface Params$Resource$Accounts$Homepage$Gethomepage
6392
- extends StandardParameters {
6473
+ export interface Params$Resource$Accounts$Homepage$Gethomepage extends StandardParameters {
6393
6474
  /**
6394
6475
  * Required. The name of the homepage to retrieve. Format: `accounts/{account\}/homepage`
6395
6476
  */
6396
6477
  name?: string;
6397
6478
  }
6398
- export interface Params$Resource$Accounts$Homepage$Unclaim
6399
- extends StandardParameters {
6479
+ export interface Params$Resource$Accounts$Homepage$Unclaim extends StandardParameters {
6400
6480
  /**
6401
6481
  * Required. The name of the homepage to unclaim. Format: `accounts/{account\}/homepage`
6402
6482
  */
@@ -6407,8 +6487,7 @@ export namespace merchantapi_accounts_v1beta {
6407
6487
  */
6408
6488
  requestBody?: Schema$UnclaimHomepageRequest;
6409
6489
  }
6410
- export interface Params$Resource$Accounts$Homepage$Updatehomepage
6411
- extends StandardParameters {
6490
+ export interface Params$Resource$Accounts$Homepage$Updatehomepage extends StandardParameters {
6412
6491
  /**
6413
6492
  * Identifier. The resource name of the store's homepage. Format: `accounts/{account\}/homepage`
6414
6493
  */
@@ -6581,8 +6660,7 @@ export namespace merchantapi_accounts_v1beta {
6581
6660
  }
6582
6661
  }
6583
6662
 
6584
- export interface Params$Resource$Accounts$Issues$List
6585
- extends StandardParameters {
6663
+ export interface Params$Resource$Accounts$Issues$List extends StandardParameters {
6586
6664
  /**
6587
6665
  * 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.
6588
6666
  */
@@ -7386,8 +7464,7 @@ export namespace merchantapi_accounts_v1beta {
7386
7464
  }
7387
7465
  }
7388
7466
 
7389
- export interface Params$Resource$Accounts$Omnichannelsettings$Create
7390
- extends StandardParameters {
7467
+ export interface Params$Resource$Accounts$Omnichannelsettings$Create extends StandardParameters {
7391
7468
  /**
7392
7469
  * Required. The parent resource where this omnichannel setting will be created. Format: `accounts/{account\}`
7393
7470
  */
@@ -7398,15 +7475,13 @@ export namespace merchantapi_accounts_v1beta {
7398
7475
  */
7399
7476
  requestBody?: Schema$OmnichannelSetting;
7400
7477
  }
7401
- export interface Params$Resource$Accounts$Omnichannelsettings$Get
7402
- extends StandardParameters {
7478
+ export interface Params$Resource$Accounts$Omnichannelsettings$Get extends StandardParameters {
7403
7479
  /**
7404
7480
  * Required. The name of the omnichannel setting to retrieve. Format: `accounts/{account\}/omnichannelSettings/{omnichannel_setting\}`
7405
7481
  */
7406
7482
  name?: string;
7407
7483
  }
7408
- export interface Params$Resource$Accounts$Omnichannelsettings$List
7409
- extends StandardParameters {
7484
+ export interface Params$Resource$Accounts$Omnichannelsettings$List extends StandardParameters {
7410
7485
  /**
7411
7486
  * 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.
7412
7487
  */
@@ -7420,8 +7495,7 @@ export namespace merchantapi_accounts_v1beta {
7420
7495
  */
7421
7496
  parent?: string;
7422
7497
  }
7423
- export interface Params$Resource$Accounts$Omnichannelsettings$Patch
7424
- extends StandardParameters {
7498
+ export interface Params$Resource$Accounts$Omnichannelsettings$Patch extends StandardParameters {
7425
7499
  /**
7426
7500
  * Identifier. The resource name of the omnichannel setting. Format: `accounts/{account\}/omnichannelSettings/{omnichannel_setting\}`
7427
7501
  */
@@ -7436,8 +7510,7 @@ export namespace merchantapi_accounts_v1beta {
7436
7510
  */
7437
7511
  requestBody?: Schema$OmnichannelSetting;
7438
7512
  }
7439
- export interface Params$Resource$Accounts$Omnichannelsettings$Requestinventoryverification
7440
- extends StandardParameters {
7513
+ export interface Params$Resource$Accounts$Omnichannelsettings$Requestinventoryverification extends StandardParameters {
7441
7514
  /**
7442
7515
  * Required. The name of the omnichannel setting to request inventory verification. Format: `accounts/{account\}/omnichannelSettings/{omnichannel_setting\}`
7443
7516
  */
@@ -7753,8 +7826,7 @@ export namespace merchantapi_accounts_v1beta {
7753
7826
  }
7754
7827
  }
7755
7828
 
7756
- export interface Params$Resource$Accounts$Omnichannelsettings$Lfpproviders$Find
7757
- extends StandardParameters {
7829
+ export interface Params$Resource$Accounts$Omnichannelsettings$Lfpproviders$Find extends StandardParameters {
7758
7830
  /**
7759
7831
  * 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.
7760
7832
  */
@@ -7768,8 +7840,7 @@ export namespace merchantapi_accounts_v1beta {
7768
7840
  */
7769
7841
  parent?: string;
7770
7842
  }
7771
- export interface Params$Resource$Accounts$Omnichannelsettings$Lfpproviders$Linklfpprovider
7772
- extends StandardParameters {
7843
+ export interface Params$Resource$Accounts$Omnichannelsettings$Lfpproviders$Linklfpprovider extends StandardParameters {
7773
7844
  /**
7774
7845
  * 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.
7775
7846
  */
@@ -8572,8 +8643,7 @@ export namespace merchantapi_accounts_v1beta {
8572
8643
  }
8573
8644
  }
8574
8645
 
8575
- export interface Params$Resource$Accounts$Onlinereturnpolicies$Create
8576
- extends StandardParameters {
8646
+ export interface Params$Resource$Accounts$Onlinereturnpolicies$Create extends StandardParameters {
8577
8647
  /**
8578
8648
  * Required. The Merchant Center account for which the return policy will be created. Format: `accounts/{account\}`
8579
8649
  */
@@ -8584,22 +8654,19 @@ export namespace merchantapi_accounts_v1beta {
8584
8654
  */
8585
8655
  requestBody?: Schema$OnlineReturnPolicy;
8586
8656
  }
8587
- export interface Params$Resource$Accounts$Onlinereturnpolicies$Delete
8588
- extends StandardParameters {
8657
+ export interface Params$Resource$Accounts$Onlinereturnpolicies$Delete extends StandardParameters {
8589
8658
  /**
8590
8659
  * Required. The name of the return policy to delete. Format: `accounts/{account\}/onlineReturnPolicies/{return_policy\}`
8591
8660
  */
8592
8661
  name?: string;
8593
8662
  }
8594
- export interface Params$Resource$Accounts$Onlinereturnpolicies$Get
8595
- extends StandardParameters {
8663
+ export interface Params$Resource$Accounts$Onlinereturnpolicies$Get extends StandardParameters {
8596
8664
  /**
8597
8665
  * Required. The name of the return policy to retrieve. Format: `accounts/{account\}/onlineReturnPolicies/{return_policy\}`
8598
8666
  */
8599
8667
  name?: string;
8600
8668
  }
8601
- export interface Params$Resource$Accounts$Onlinereturnpolicies$List
8602
- extends StandardParameters {
8669
+ export interface Params$Resource$Accounts$Onlinereturnpolicies$List extends StandardParameters {
8603
8670
  /**
8604
8671
  * 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
8605
8672
  */
@@ -8613,8 +8680,7 @@ export namespace merchantapi_accounts_v1beta {
8613
8680
  */
8614
8681
  parent?: string;
8615
8682
  }
8616
- export interface Params$Resource$Accounts$Onlinereturnpolicies$Patch
8617
- extends StandardParameters {
8683
+ export interface Params$Resource$Accounts$Onlinereturnpolicies$Patch extends StandardParameters {
8618
8684
  /**
8619
8685
  * Identifier. The name of the `OnlineReturnPolicy` resource. Format: `accounts/{account\}/onlineReturnPolicies/{return_policy\}`
8620
8686
  */
@@ -9220,8 +9286,7 @@ export namespace merchantapi_accounts_v1beta {
9220
9286
  }
9221
9287
  }
9222
9288
 
9223
- export interface Params$Resource$Accounts$Programs$Disable
9224
- extends StandardParameters {
9289
+ export interface Params$Resource$Accounts$Programs$Disable extends StandardParameters {
9225
9290
  /**
9226
9291
  * 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`.
9227
9292
  */
@@ -9232,8 +9297,7 @@ export namespace merchantapi_accounts_v1beta {
9232
9297
  */
9233
9298
  requestBody?: Schema$DisableProgramRequest;
9234
9299
  }
9235
- export interface Params$Resource$Accounts$Programs$Enable
9236
- extends StandardParameters {
9300
+ export interface Params$Resource$Accounts$Programs$Enable extends StandardParameters {
9237
9301
  /**
9238
9302
  * 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`.
9239
9303
  */
@@ -9244,15 +9308,13 @@ export namespace merchantapi_accounts_v1beta {
9244
9308
  */
9245
9309
  requestBody?: Schema$EnableProgramRequest;
9246
9310
  }
9247
- export interface Params$Resource$Accounts$Programs$Get
9248
- extends StandardParameters {
9311
+ export interface Params$Resource$Accounts$Programs$Get extends StandardParameters {
9249
9312
  /**
9250
9313
  * Required. The name of the program to retrieve. Format: `accounts/{account\}/programs/{program\}`. For example, `accounts/123456/programs/free-listings`.
9251
9314
  */
9252
9315
  name?: string;
9253
9316
  }
9254
- export interface Params$Resource$Accounts$Programs$List
9255
- extends StandardParameters {
9317
+ export interface Params$Resource$Accounts$Programs$List extends StandardParameters {
9256
9318
  /**
9257
9319
  * 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.
9258
9320
  */
@@ -9887,8 +9949,7 @@ export namespace merchantapi_accounts_v1beta {
9887
9949
  }
9888
9950
  }
9889
9951
 
9890
- export interface Params$Resource$Accounts$Programs$Checkoutsettings$Create
9891
- extends StandardParameters {
9952
+ export interface Params$Resource$Accounts$Programs$Checkoutsettings$Create extends StandardParameters {
9892
9953
  /**
9893
9954
  * Required. The merchant account for which the `CheckoutSettings` will be created.
9894
9955
  */
@@ -9899,22 +9960,19 @@ export namespace merchantapi_accounts_v1beta {
9899
9960
  */
9900
9961
  requestBody?: Schema$CheckoutSettings;
9901
9962
  }
9902
- export interface Params$Resource$Accounts$Programs$Checkoutsettings$Deletecheckoutsettings
9903
- extends StandardParameters {
9963
+ export interface Params$Resource$Accounts$Programs$Checkoutsettings$Deletecheckoutsettings extends StandardParameters {
9904
9964
  /**
9905
9965
  * Required. The name/identifier of the merchant account. Format: `accounts/{account\}/programs/{program\}/checkoutSettings`
9906
9966
  */
9907
9967
  name?: string;
9908
9968
  }
9909
- export interface Params$Resource$Accounts$Programs$Checkoutsettings$Getcheckoutsettings
9910
- extends StandardParameters {
9969
+ export interface Params$Resource$Accounts$Programs$Checkoutsettings$Getcheckoutsettings extends StandardParameters {
9911
9970
  /**
9912
9971
  * Required. The name/identifier of the merchant account. Format: `accounts/{account\}/programs/{program\}/checkoutSettings`
9913
9972
  */
9914
9973
  name?: string;
9915
9974
  }
9916
- export interface Params$Resource$Accounts$Programs$Checkoutsettings$Updatecheckoutsettings
9917
- extends StandardParameters {
9975
+ export interface Params$Resource$Accounts$Programs$Checkoutsettings$Updatecheckoutsettings extends StandardParameters {
9918
9976
  /**
9919
9977
  * Identifier. The resource name of the program configuration settings. Format: `accounts/{account\}/programs/{program\}/checkoutSettings`
9920
9978
  */
@@ -9980,6 +10038,7 @@ export namespace merchantapi_accounts_v1beta {
9980
10038
  * // "geotargetArea": {},
9981
10039
  * // "name": "my_name",
9982
10040
  * // "postalCodeArea": {},
10041
+ * // "radiusArea": {},
9983
10042
  * // "regionalInventoryEligible": false,
9984
10043
  * // "shippingEligible": false
9985
10044
  * // }
@@ -9993,6 +10052,7 @@ export namespace merchantapi_accounts_v1beta {
9993
10052
  * // "geotargetArea": {},
9994
10053
  * // "name": "my_name",
9995
10054
  * // "postalCodeArea": {},
10055
+ * // "radiusArea": {},
9996
10056
  * // "regionalInventoryEligible": false,
9997
10057
  * // "shippingEligible": false
9998
10058
  * // }
@@ -10270,6 +10330,7 @@ export namespace merchantapi_accounts_v1beta {
10270
10330
  * // "geotargetArea": {},
10271
10331
  * // "name": "my_name",
10272
10332
  * // "postalCodeArea": {},
10333
+ * // "radiusArea": {},
10273
10334
  * // "regionalInventoryEligible": false,
10274
10335
  * // "shippingEligible": false
10275
10336
  * // }
@@ -10556,6 +10617,7 @@ export namespace merchantapi_accounts_v1beta {
10556
10617
  * // "geotargetArea": {},
10557
10618
  * // "name": "my_name",
10558
10619
  * // "postalCodeArea": {},
10620
+ * // "radiusArea": {},
10559
10621
  * // "regionalInventoryEligible": false,
10560
10622
  * // "shippingEligible": false
10561
10623
  * // }
@@ -10569,6 +10631,7 @@ export namespace merchantapi_accounts_v1beta {
10569
10631
  * // "geotargetArea": {},
10570
10632
  * // "name": "my_name",
10571
10633
  * // "postalCodeArea": {},
10634
+ * // "radiusArea": {},
10572
10635
  * // "regionalInventoryEligible": false,
10573
10636
  * // "shippingEligible": false
10574
10637
  * // }
@@ -10670,8 +10733,7 @@ export namespace merchantapi_accounts_v1beta {
10670
10733
  }
10671
10734
  }
10672
10735
 
10673
- export interface Params$Resource$Accounts$Regions$Create
10674
- extends StandardParameters {
10736
+ export interface Params$Resource$Accounts$Regions$Create extends StandardParameters {
10675
10737
  /**
10676
10738
  * Required. The account to create a region for. Format: `accounts/{account\}`
10677
10739
  */
@@ -10686,22 +10748,19 @@ export namespace merchantapi_accounts_v1beta {
10686
10748
  */
10687
10749
  requestBody?: Schema$Region;
10688
10750
  }
10689
- export interface Params$Resource$Accounts$Regions$Delete
10690
- extends StandardParameters {
10751
+ export interface Params$Resource$Accounts$Regions$Delete extends StandardParameters {
10691
10752
  /**
10692
10753
  * Required. The name of the region to delete. Format: `accounts/{account\}/regions/{region\}`
10693
10754
  */
10694
10755
  name?: string;
10695
10756
  }
10696
- export interface Params$Resource$Accounts$Regions$Get
10697
- extends StandardParameters {
10757
+ export interface Params$Resource$Accounts$Regions$Get extends StandardParameters {
10698
10758
  /**
10699
10759
  * Required. The name of the region to retrieve. Format: `accounts/{account\}/regions/{region\}`
10700
10760
  */
10701
10761
  name?: string;
10702
10762
  }
10703
- export interface Params$Resource$Accounts$Regions$List
10704
- extends StandardParameters {
10763
+ export interface Params$Resource$Accounts$Regions$List extends StandardParameters {
10705
10764
  /**
10706
10765
  * 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.
10707
10766
  */
@@ -10715,8 +10774,7 @@ export namespace merchantapi_accounts_v1beta {
10715
10774
  */
10716
10775
  parent?: string;
10717
10776
  }
10718
- export interface Params$Resource$Accounts$Regions$Patch
10719
- extends StandardParameters {
10777
+ export interface Params$Resource$Accounts$Regions$Patch extends StandardParameters {
10720
10778
  /**
10721
10779
  * Identifier. The resource name of the region. Format: `accounts/{account\}/regions/{region\}`
10722
10780
  */
@@ -11184,15 +11242,13 @@ export namespace merchantapi_accounts_v1beta {
11184
11242
  }
11185
11243
  }
11186
11244
 
11187
- export interface Params$Resource$Accounts$Relationships$Get
11188
- extends StandardParameters {
11245
+ export interface Params$Resource$Accounts$Relationships$Get extends StandardParameters {
11189
11246
  /**
11190
11247
  * Required. The resource name of the account relationship to get. Format: `accounts/{account\}/relationships/{relationship\}`. For example, `accounts/123456/relationships/567890`.
11191
11248
  */
11192
11249
  name?: string;
11193
11250
  }
11194
- export interface Params$Resource$Accounts$Relationships$List
11195
- extends StandardParameters {
11251
+ export interface Params$Resource$Accounts$Relationships$List extends StandardParameters {
11196
11252
  /**
11197
11253
  * 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`.
11198
11254
  */
@@ -11206,8 +11262,7 @@ export namespace merchantapi_accounts_v1beta {
11206
11262
  */
11207
11263
  parent?: string;
11208
11264
  }
11209
- export interface Params$Resource$Accounts$Relationships$Patch
11210
- extends StandardParameters {
11265
+ export interface Params$Resource$Accounts$Relationships$Patch extends StandardParameters {
11211
11266
  /**
11212
11267
  * Identifier. The resource name of the account relationship. Format: `accounts/{account\}/relationships/{relationship\}`. For example, `accounts/123456/relationships/567890`.
11213
11268
  */
@@ -11276,6 +11331,7 @@ export namespace merchantapi_accounts_v1beta {
11276
11331
  * // "accountAggregation": {},
11277
11332
  * // "accountManagement": {},
11278
11333
  * // "campaignsManagement": {},
11334
+ * // "comparisonShopping": {},
11279
11335
  * // "externalAccountId": "my_externalAccountId",
11280
11336
  * // "handshake": {},
11281
11337
  * // "localListingManagement": {},
@@ -11423,6 +11479,7 @@ export namespace merchantapi_accounts_v1beta {
11423
11479
  * // "accountAggregation": {},
11424
11480
  * // "accountManagement": {},
11425
11481
  * // "campaignsManagement": {},
11482
+ * // "comparisonShopping": {},
11426
11483
  * // "externalAccountId": "my_externalAccountId",
11427
11484
  * // "handshake": {},
11428
11485
  * // "localListingManagement": {},
@@ -11725,6 +11782,7 @@ export namespace merchantapi_accounts_v1beta {
11725
11782
  * // "accountAggregation": {},
11726
11783
  * // "accountManagement": {},
11727
11784
  * // "campaignsManagement": {},
11785
+ * // "comparisonShopping": {},
11728
11786
  * // "externalAccountId": "my_externalAccountId",
11729
11787
  * // "handshake": {},
11730
11788
  * // "localListingManagement": {},
@@ -11972,8 +12030,7 @@ export namespace merchantapi_accounts_v1beta {
11972
12030
  }
11973
12031
  }
11974
12032
 
11975
- export interface Params$Resource$Accounts$Services$Approve
11976
- extends StandardParameters {
12033
+ export interface Params$Resource$Accounts$Services$Approve extends StandardParameters {
11977
12034
  /**
11978
12035
  * Required. The resource name of the account service to approve. Format: `accounts/{account\}/services/{service\}`
11979
12036
  */
@@ -11984,15 +12041,13 @@ export namespace merchantapi_accounts_v1beta {
11984
12041
  */
11985
12042
  requestBody?: Schema$ApproveAccountServiceRequest;
11986
12043
  }
11987
- export interface Params$Resource$Accounts$Services$Get
11988
- extends StandardParameters {
12044
+ export interface Params$Resource$Accounts$Services$Get extends StandardParameters {
11989
12045
  /**
11990
12046
  * Required. The resource name of the account service to get. Format: `accounts/{account\}/services/{service\}`
11991
12047
  */
11992
12048
  name?: string;
11993
12049
  }
11994
- export interface Params$Resource$Accounts$Services$List
11995
- extends StandardParameters {
12050
+ export interface Params$Resource$Accounts$Services$List extends StandardParameters {
11996
12051
  /**
11997
12052
  * 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`.
11998
12053
  */
@@ -12006,8 +12061,7 @@ export namespace merchantapi_accounts_v1beta {
12006
12061
  */
12007
12062
  parent?: string;
12008
12063
  }
12009
- export interface Params$Resource$Accounts$Services$Propose
12010
- extends StandardParameters {
12064
+ export interface Params$Resource$Accounts$Services$Propose extends StandardParameters {
12011
12065
  /**
12012
12066
  * Required. The resource name of the parent account for the service. Format: `accounts/{account\}`
12013
12067
  */
@@ -12018,8 +12072,7 @@ export namespace merchantapi_accounts_v1beta {
12018
12072
  */
12019
12073
  requestBody?: Schema$ProposeAccountServiceRequest;
12020
12074
  }
12021
- export interface Params$Resource$Accounts$Services$Reject
12022
- extends StandardParameters {
12075
+ export interface Params$Resource$Accounts$Services$Reject extends StandardParameters {
12023
12076
  /**
12024
12077
  * Required. The resource name of the account service to reject. Format: `accounts/{account\}/services/{service\}`
12025
12078
  */
@@ -12331,15 +12384,13 @@ export namespace merchantapi_accounts_v1beta {
12331
12384
  }
12332
12385
  }
12333
12386
 
12334
- export interface Params$Resource$Accounts$Shippingsettings$Getshippingsettings
12335
- extends StandardParameters {
12387
+ export interface Params$Resource$Accounts$Shippingsettings$Getshippingsettings extends StandardParameters {
12336
12388
  /**
12337
12389
  * Required. The name of the shipping setting to retrieve. Format: `accounts/{account\}/shippingsettings`
12338
12390
  */
12339
12391
  name?: string;
12340
12392
  }
12341
- export interface Params$Resource$Accounts$Shippingsettings$Insert
12342
- extends StandardParameters {
12393
+ export interface Params$Resource$Accounts$Shippingsettings$Insert extends StandardParameters {
12343
12394
  /**
12344
12395
  * 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\}`
12345
12396
  */
@@ -12657,15 +12708,13 @@ export namespace merchantapi_accounts_v1beta {
12657
12708
  }
12658
12709
  }
12659
12710
 
12660
- export interface Params$Resource$Accounts$Termsofserviceagreementstates$Get
12661
- extends StandardParameters {
12711
+ export interface Params$Resource$Accounts$Termsofserviceagreementstates$Get extends StandardParameters {
12662
12712
  /**
12663
12713
  * Required. The resource name of the terms of service version. Format: `accounts/{account\}/termsOfServiceAgreementStates/{identifier\}` The identifier format is: `{TermsOfServiceKind\}-{country\}`
12664
12714
  */
12665
12715
  name?: string;
12666
12716
  }
12667
- export interface Params$Resource$Accounts$Termsofserviceagreementstates$Retrieveforapplication
12668
- extends StandardParameters {
12717
+ export interface Params$Resource$Accounts$Termsofserviceagreementstates$Retrieveforapplication extends StandardParameters {
12669
12718
  /**
12670
12719
  * Required. The account for which to get a TermsOfServiceAgreementState Format: `accounts/{account\}`
12671
12720
  */
@@ -12674,8 +12723,10 @@ export namespace merchantapi_accounts_v1beta {
12674
12723
 
12675
12724
  export class Resource$Accounts$Users {
12676
12725
  context: APIRequestContext;
12726
+ me: Resource$Accounts$Users$Me;
12677
12727
  constructor(context: APIRequestContext) {
12678
12728
  this.context = context;
12729
+ this.me = new Resource$Accounts$Users$Me(this.context);
12679
12730
  }
12680
12731
 
12681
12732
  /**
@@ -13397,8 +13448,7 @@ export namespace merchantapi_accounts_v1beta {
13397
13448
  }
13398
13449
  }
13399
13450
 
13400
- export interface Params$Resource$Accounts$Users$Create
13401
- extends StandardParameters {
13451
+ export interface Params$Resource$Accounts$Users$Create extends StandardParameters {
13402
13452
  /**
13403
13453
  * Required. The resource name of the account for which a user will be created. Format: `accounts/{account\}`
13404
13454
  */
@@ -13413,22 +13463,19 @@ export namespace merchantapi_accounts_v1beta {
13413
13463
  */
13414
13464
  requestBody?: Schema$User;
13415
13465
  }
13416
- export interface Params$Resource$Accounts$Users$Delete
13417
- extends StandardParameters {
13466
+ export interface Params$Resource$Accounts$Users$Delete extends StandardParameters {
13418
13467
  /**
13419
13468
  * 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`.
13420
13469
  */
13421
13470
  name?: string;
13422
13471
  }
13423
- export interface Params$Resource$Accounts$Users$Get
13424
- extends StandardParameters {
13472
+ export interface Params$Resource$Accounts$Users$Get extends StandardParameters {
13425
13473
  /**
13426
13474
  * 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`.
13427
13475
  */
13428
13476
  name?: string;
13429
13477
  }
13430
- export interface Params$Resource$Accounts$Users$List
13431
- extends StandardParameters {
13478
+ export interface Params$Resource$Accounts$Users$List extends StandardParameters {
13432
13479
  /**
13433
13480
  * 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
13434
13481
  */
@@ -13442,8 +13489,7 @@ export namespace merchantapi_accounts_v1beta {
13442
13489
  */
13443
13490
  parent?: string;
13444
13491
  }
13445
- export interface Params$Resource$Accounts$Users$Patch
13446
- extends StandardParameters {
13492
+ export interface Params$Resource$Accounts$Users$Patch extends StandardParameters {
13447
13493
  /**
13448
13494
  * 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`.
13449
13495
  */
@@ -13459,6 +13505,169 @@ export namespace merchantapi_accounts_v1beta {
13459
13505
  requestBody?: Schema$User;
13460
13506
  }
13461
13507
 
13508
+ export class Resource$Accounts$Users$Me {
13509
+ context: APIRequestContext;
13510
+ constructor(context: APIRequestContext) {
13511
+ this.context = context;
13512
+ }
13513
+
13514
+ /**
13515
+ * Updates the user that is represented by the caller from pending to verified.
13516
+ * @example
13517
+ * ```js
13518
+ * // Before running the sample:
13519
+ * // - Enable the API at:
13520
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
13521
+ * // - Login into gcloud by running:
13522
+ * // ```sh
13523
+ * // $ gcloud auth application-default login
13524
+ * // ```
13525
+ * // - Install the npm module by running:
13526
+ * // ```sh
13527
+ * // $ npm install googleapis
13528
+ * // ```
13529
+ *
13530
+ * const {google} = require('googleapis');
13531
+ * const merchantapi = google.merchantapi('accounts_v1beta');
13532
+ *
13533
+ * async function main() {
13534
+ * const auth = new google.auth.GoogleAuth({
13535
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
13536
+ * scopes: ['https://www.googleapis.com/auth/content'],
13537
+ * });
13538
+ *
13539
+ * // Acquire an auth client, and bind it to all future calls
13540
+ * const authClient = await auth.getClient();
13541
+ * google.options({auth: authClient});
13542
+ *
13543
+ * // Do the magic
13544
+ * const res = await merchantapi.accounts.users.me.verifySelf({
13545
+ * // Required. The name of the account under which the caller is a user. Format: `accounts/{account\}`
13546
+ * account: 'accounts/my-account',
13547
+ *
13548
+ * // Request body metadata
13549
+ * requestBody: {
13550
+ * // request body parameters
13551
+ * // {}
13552
+ * },
13553
+ * });
13554
+ * console.log(res.data);
13555
+ *
13556
+ * // Example response
13557
+ * // {
13558
+ * // "accessRights": [],
13559
+ * // "name": "my_name",
13560
+ * // "state": "my_state"
13561
+ * // }
13562
+ * }
13563
+ *
13564
+ * main().catch(e => {
13565
+ * console.error(e);
13566
+ * throw e;
13567
+ * });
13568
+ *
13569
+ * ```
13570
+ *
13571
+ * @param params - Parameters for request
13572
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
13573
+ * @param callback - Optional callback that handles the response.
13574
+ * @returns A promise if used with async/await, or void if used with a callback.
13575
+ */
13576
+ verifySelf(
13577
+ params: Params$Resource$Accounts$Users$Me$Verifyself,
13578
+ options: StreamMethodOptions
13579
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
13580
+ verifySelf(
13581
+ params?: Params$Resource$Accounts$Users$Me$Verifyself,
13582
+ options?: MethodOptions
13583
+ ): Promise<GaxiosResponseWithHTTP2<Schema$User>>;
13584
+ verifySelf(
13585
+ params: Params$Resource$Accounts$Users$Me$Verifyself,
13586
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
13587
+ callback: BodyResponseCallback<Readable>
13588
+ ): void;
13589
+ verifySelf(
13590
+ params: Params$Resource$Accounts$Users$Me$Verifyself,
13591
+ options: MethodOptions | BodyResponseCallback<Schema$User>,
13592
+ callback: BodyResponseCallback<Schema$User>
13593
+ ): void;
13594
+ verifySelf(
13595
+ params: Params$Resource$Accounts$Users$Me$Verifyself,
13596
+ callback: BodyResponseCallback<Schema$User>
13597
+ ): void;
13598
+ verifySelf(callback: BodyResponseCallback<Schema$User>): void;
13599
+ verifySelf(
13600
+ paramsOrCallback?:
13601
+ | Params$Resource$Accounts$Users$Me$Verifyself
13602
+ | BodyResponseCallback<Schema$User>
13603
+ | BodyResponseCallback<Readable>,
13604
+ optionsOrCallback?:
13605
+ | MethodOptions
13606
+ | StreamMethodOptions
13607
+ | BodyResponseCallback<Schema$User>
13608
+ | BodyResponseCallback<Readable>,
13609
+ callback?:
13610
+ | BodyResponseCallback<Schema$User>
13611
+ | BodyResponseCallback<Readable>
13612
+ ):
13613
+ | void
13614
+ | Promise<GaxiosResponseWithHTTP2<Schema$User>>
13615
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
13616
+ let params = (paramsOrCallback ||
13617
+ {}) as Params$Resource$Accounts$Users$Me$Verifyself;
13618
+ let options = (optionsOrCallback || {}) as MethodOptions;
13619
+
13620
+ if (typeof paramsOrCallback === 'function') {
13621
+ callback = paramsOrCallback;
13622
+ params = {} as Params$Resource$Accounts$Users$Me$Verifyself;
13623
+ options = {};
13624
+ }
13625
+
13626
+ if (typeof optionsOrCallback === 'function') {
13627
+ callback = optionsOrCallback;
13628
+ options = {};
13629
+ }
13630
+
13631
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
13632
+ const parameters = {
13633
+ options: Object.assign(
13634
+ {
13635
+ url: (
13636
+ rootUrl + '/accounts/v1beta/{+account}/users/me:verifySelf'
13637
+ ).replace(/([^:]\/)\/+/g, '$1'),
13638
+ method: 'PATCH',
13639
+ apiVersion: '',
13640
+ },
13641
+ options
13642
+ ),
13643
+ params,
13644
+ requiredParams: ['account'],
13645
+ pathParams: ['account'],
13646
+ context: this.context,
13647
+ };
13648
+ if (callback) {
13649
+ createAPIRequest<Schema$User>(
13650
+ parameters,
13651
+ callback as BodyResponseCallback<unknown>
13652
+ );
13653
+ } else {
13654
+ return createAPIRequest<Schema$User>(parameters);
13655
+ }
13656
+ }
13657
+ }
13658
+
13659
+ export interface Params$Resource$Accounts$Users$Me$Verifyself extends StandardParameters {
13660
+ /**
13661
+ * Required. The name of the account under which the caller is a user. Format: `accounts/{account\}`
13662
+ */
13663
+ account?: string;
13664
+
13665
+ /**
13666
+ * Request body metadata
13667
+ */
13668
+ requestBody?: Schema$VerifySelfRequest;
13669
+ }
13670
+
13462
13671
  export class Resource$Termsofservice {
13463
13672
  context: APIRequestContext;
13464
13673
  constructor(context: APIRequestContext) {
@@ -13896,8 +14105,7 @@ export namespace merchantapi_accounts_v1beta {
13896
14105
  }
13897
14106
  }
13898
14107
 
13899
- export interface Params$Resource$Termsofservice$Accept
13900
- extends StandardParameters {
14108
+ export interface Params$Resource$Termsofservice$Accept extends StandardParameters {
13901
14109
  /**
13902
14110
  * Required. The account for which to accept the ToS. Format: `accounts/{account\}`
13903
14111
  */
@@ -13911,15 +14119,13 @@ export namespace merchantapi_accounts_v1beta {
13911
14119
  */
13912
14120
  regionCode?: string;
13913
14121
  }
13914
- export interface Params$Resource$Termsofservice$Get
13915
- extends StandardParameters {
14122
+ export interface Params$Resource$Termsofservice$Get extends StandardParameters {
13916
14123
  /**
13917
14124
  * Required. The resource name of the terms of service version. Format: `termsOfService/{version\}`
13918
14125
  */
13919
14126
  name?: string;
13920
14127
  }
13921
- export interface Params$Resource$Termsofservice$Retrievelatest
13922
- extends StandardParameters {
14128
+ export interface Params$Resource$Termsofservice$Retrievelatest extends StandardParameters {
13923
14129
  /**
13924
14130
  * Required. The Kind this terms of service version applies to.
13925
14131
  */