@googleapis/merchantapi 4.1.0 → 6.0.1

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 (48) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/accounts_v1beta.ts +1693 -565
  3. package/build/accounts_v1beta.d.ts +535 -168
  4. package/build/accounts_v1beta.js +309 -30
  5. package/build/accounts_v1beta.js.map +1 -1
  6. package/build/conversions_v1beta.d.ts +28 -25
  7. package/build/conversions_v1beta.js.map +1 -1
  8. package/build/datasources_v1beta.d.ts +19 -19
  9. package/build/datasources_v1beta.js.map +1 -1
  10. package/build/index.d.ts +11 -1
  11. package/build/index.js +7 -1
  12. package/build/index.js.map +1 -1
  13. package/build/inventories_v1beta.d.ts +14 -14
  14. package/build/inventories_v1beta.js.map +1 -1
  15. package/build/issueresolution_v1beta.d.ts +661 -0
  16. package/build/issueresolution_v1beta.js +148 -0
  17. package/build/issueresolution_v1beta.js.map +1 -0
  18. package/build/lfp_v1beta.d.ts +134 -13
  19. package/build/lfp_v1beta.js +39 -0
  20. package/build/lfp_v1beta.js.map +1 -1
  21. package/build/notifications_v1beta.d.ts +11 -11
  22. package/build/notifications_v1beta.js.map +1 -1
  23. package/build/ordertracking_v1beta.d.ts +385 -0
  24. package/build/ordertracking_v1beta.js +91 -0
  25. package/build/ordertracking_v1beta.js.map +1 -0
  26. package/build/products_v1beta.d.ts +45 -24
  27. package/build/products_v1beta.js.map +1 -1
  28. package/build/promotions_v1beta.d.ts +7 -7
  29. package/build/promotions_v1beta.js.map +1 -1
  30. package/build/quota_v1beta.d.ts +3 -3
  31. package/build/reports_v1beta.d.ts +4 -4
  32. package/build/reports_v1beta.js.map +1 -1
  33. package/build/reviews_v1beta.d.ts +17 -17
  34. package/build/reviews_v1beta.js.map +1 -1
  35. package/conversions_v1beta.ts +50 -32
  36. package/datasources_v1beta.ts +45 -27
  37. package/index.ts +24 -1
  38. package/inventories_v1beta.ts +32 -23
  39. package/issueresolution_v1beta.ts +962 -0
  40. package/lfp_v1beta.ts +241 -20
  41. package/notifications_v1beta.ts +27 -20
  42. package/ordertracking_v1beta.ts +525 -0
  43. package/package.json +2 -2
  44. package/products_v1beta.ts +63 -30
  45. package/promotions_v1beta.ts +17 -11
  46. package/quota_v1beta.ts +5 -5
  47. package/reports_v1beta.ts +8 -5
  48. package/reviews_v1beta.ts +45 -27
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -135,14 +135,23 @@ export namespace merchantapi_accounts_v1beta {
135
135
  */
136
136
  acceptedBy?: string | null;
137
137
  /**
138
- * The accepted [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService).
138
+ * The accepted termsOfService.
139
139
  */
140
140
  termsOfService?: string | null;
141
141
  /**
142
- * When set, it states that the accepted [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService) is only valid until the end of this date (in UTC). A new one must be accepted before then. The information of the required [TermsOfService](google.shopping.merchant.accounts.v1main.TermsOfService) is found in the [Required](Required) message.
142
+ * When set, it states that the accepted `TermsOfService` is only valid until the end of this date (in UTC). A new one must be accepted before then. The information of the required `TermsOfService` is found in the `Required` message.
143
143
  */
144
144
  validUntil?: Schema$Date;
145
145
  }
146
+ /**
147
+ * Response message for the `AcceptTermsOfService` method.
148
+ */
149
+ export interface Schema$AcceptTermsOfServiceResponse {
150
+ /**
151
+ * The agreement state after accepting the ToS.
152
+ */
153
+ termsOfServiceAgreementState?: Schema$TermsOfServiceAgreementState;
154
+ }
146
155
  /**
147
156
  * The `Account` message represents a merchant's account within Shopping Ads. It's the primary entity for managing product data, settings, and interactions with Google's services and external providers. Accounts can operate as standalone entities or be part of a multi-client account (MCA) structure. In an MCA setup the parent account manages multiple sub-accounts. Establishing an account involves configuring attributes like the account name, time zone, and language preferences. The `Account` message is the parent entity for many other resources, for example, `AccountRelationship`, `Homepage`, `BusinessInfo` and so on.
148
157
  */
@@ -172,7 +181,7 @@ export namespace merchantapi_accounts_v1beta {
172
181
  */
173
182
  testAccount?: boolean | null;
174
183
  /**
175
- * Required. The time zone of the account. On writes, `time_zone` sets both the `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the `display_time_zone`. If `display_time_zone` doesn't exist for your account, `time_zone` is empty.
184
+ * Required. The time zone of the account. On writes, `time_zone` sets both the `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the `display_time_zone`. If `display_time_zone` doesn't exist for your account, `time_zone` is empty. The `version` field is not supported, won't be set in responses and will be silently ignored if specified in requests.
176
185
  */
177
186
  timeZone?: Schema$TimeZone;
178
187
  }
@@ -209,6 +218,76 @@ export namespace merchantapi_accounts_v1beta {
209
218
  */
210
219
  title?: string | null;
211
220
  }
221
+ /**
222
+ * `AccountManagement` payload.
223
+ */
224
+ export interface Schema$AccountManagement {}
225
+ /**
226
+ * The `AccountRelationship` message defines a formal connection between a merchant's account and a service provider's account. This relationship enables the provider to offer specific services to the merchant, such as product management or campaign management. It specifies the access rights and permissions to the merchant's data relevant to those services. Establishing an account relationship involves linking the merchant's account with a provider's account. The provider could be another Google account (like Google Ads or Google My Business) or a third-party platform (such as Shopify or WooCommerce).
227
+ */
228
+ export interface Schema$AccountRelationship {
229
+ /**
230
+ * Optional. An optional alias you can assign to this account relationship. This alias acts as a convenient identifier for your own reference and management. It must be unique among all your account relationships with the same provider. For example, you might use `account_id_alias` to assign a friendly name to this relationship for easier identification in your systems.
231
+ */
232
+ accountIdAlias?: string | null;
233
+ /**
234
+ * Identifier. The resource name of the account relationship. Format: `accounts/{account\}/relationships/{relationship\}`
235
+ */
236
+ name?: string | null;
237
+ /**
238
+ * Immutable. 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`).
239
+ */
240
+ provider?: string | null;
241
+ /**
242
+ * Output only. The human-readable display name of the provider account.
243
+ */
244
+ providerDisplayName?: string | null;
245
+ }
246
+ /**
247
+ * The `AccountService` message represents a specific service that a provider account offers to a merchant account. `AccountService` defines the permissions and capabilities granted to the provider, allowing for operations such as product management or campaign management. The lifecycle of an `AccountService` involves a proposal phase, where one party suggests the service, and an approval phase, where the other party accepts or rejects it. This handshake mechanism ensures mutual consent before any access is granted. This mechanism safeguards both parties by ensuring that access rights are granted appropriately and that both the merchant and provider are aware of the services enabled. In scenarios where a user is an admin of both accounts, the approval can happen automatically. The mutability of a service is also managed through `AccountService`. Some services might be immutable, for example, if they were established through other systems or APIs, and you cannot alter them through this API.
248
+ */
249
+ export interface Schema$AccountService {
250
+ /**
251
+ * Service type for account aggregation. This enables the provider, which is a Multi-Client Account (MCA), to manage multiple sub-accounts (client accounts). Through this service, the MCA provider can perform administrative and operational tasks across all linked sub-accounts. This is useful for agencies, aggregators, or large retailers that need centralized control over many merchant accounts.
252
+ */
253
+ accountAggregation?: Schema$AccountAggregation;
254
+ /**
255
+ * Service type for account management. Enables the provider to perform administrative actions on the merchant's account, such as configuring account settings, managing users, or updating business information.
256
+ */
257
+ accountManagement?: Schema$AccountManagement;
258
+ /**
259
+ * Service type for managing advertising campaigns. Grants the provider access to create and manage the merchant's ad campaigns, including setting up campaigns, adjusting bids, and optimizing performance.
260
+ */
261
+ campaignsManagement?: Schema$CampaignsManagement;
262
+ /**
263
+ * 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.
264
+ */
265
+ externalAccountId?: string | null;
266
+ /**
267
+ * Output only. Information about the state of the service in terms of establishing it (e.g. is it pending approval or approved).
268
+ */
269
+ handshake?: Schema$Handshake;
270
+ /**
271
+ * Output only. Whether the service is mutable (e.g. through Approve / Reject RPCs). A service that was created through another system or API might be immutable.
272
+ */
273
+ mutability?: string | null;
274
+ /**
275
+ * Identifier. The resource name of the account service. Format: `accounts/{account\}/services/{service\}`
276
+ */
277
+ name?: string | null;
278
+ /**
279
+ * Service type for managing products. This allows the provider to handle product data on behalf of the merchant, including reading and writing product listings. It's commonly used when the provider offers inventory management or catalog synchronization services to keep the merchant's product information up-to-date across platforms.
280
+ */
281
+ productsManagement?: Schema$ProductsManagement;
282
+ /**
283
+ * Output only. 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`).
284
+ */
285
+ provider?: string | null;
286
+ /**
287
+ * Output only. The human-readable display name of the provider account.
288
+ */
289
+ providerDisplayName?: string | null;
290
+ }
212
291
  /**
213
292
  * Additional instructions to add account services during creation of the account.
214
293
  */
@@ -260,6 +339,10 @@ export namespace merchantapi_accounts_v1beta {
260
339
  */
261
340
  userId?: string | null;
262
341
  }
342
+ /**
343
+ * Request to approve an account service.
344
+ */
345
+ export interface Schema$ApproveAccountServiceRequest {}
263
346
  /**
264
347
  * Collection of information related to the [autofeed](https://support.google.com/merchants/answer/7538732) settings.
265
348
  */
@@ -416,6 +499,10 @@ export namespace merchantapi_accounts_v1beta {
416
499
  */
417
500
  phoneVerificationState?: string | null;
418
501
  }
502
+ /**
503
+ * `CampaignManagement` payload.
504
+ */
505
+ export interface Schema$CampaignsManagement {}
419
506
  /**
420
507
  * A list of carrier rates that can be referred to by `main_table` or `single_value`. Supported carrier services are defined in https://support.google.com/merchants/answer/12577710?ref_topic=12570808&sjid=10662598224319463032-NC#zippy=%2Cdelivery-cost-rate-type%2Ccarrier-rate-au-de-uk-and-us-only.
421
508
  */
@@ -450,7 +537,7 @@ export namespace merchantapi_accounts_v1beta {
450
537
  */
451
538
  export interface Schema$ClaimHomepageRequest {
452
539
  /**
453
- * Optional. When set to `true`, this option removes any existing claim on the requested website and replaces it with a claim from the account that makes the request.
540
+ * Optional. When set to `true`, this option removes any existing claim on the requested website from any other account to the account making the request, effectively replacing the previous claim.
454
541
  */
455
542
  overwrite?: boolean | null;
456
543
  }
@@ -648,6 +735,19 @@ export namespace merchantapi_accounts_v1beta {
648
735
  */
649
736
  geotargetCriteriaIds?: string[] | null;
650
737
  }
738
+ /**
739
+ * The current status of establishing of the service. (for example, pending approval or approved).
740
+ */
741
+ export interface Schema$Handshake {
742
+ /**
743
+ * Output only. The most recent account to modify the account service's `approval_status`.
744
+ */
745
+ actor?: string | null;
746
+ /**
747
+ * Output only. The approval state of this handshake.
748
+ */
749
+ approvalState?: string | null;
750
+ }
651
751
  /**
652
752
  * A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set.
653
753
  */
@@ -768,6 +868,32 @@ export namespace merchantapi_accounts_v1beta {
768
868
  */
769
869
  nextPageToken?: string | null;
770
870
  }
871
+ /**
872
+ * Response after trying to list account relationships.
873
+ */
874
+ export interface Schema$ListAccountRelationshipsResponse {
875
+ /**
876
+ * The account relationships that match your filter.
877
+ */
878
+ accountRelationships?: Schema$AccountRelationship[];
879
+ /**
880
+ * A page token. You can send the `page_token` to get the next page. Only included in the `list` response if there are more pages.
881
+ */
882
+ nextPageToken?: string | null;
883
+ }
884
+ /**
885
+ * Response after trying to list account services.
886
+ */
887
+ export interface Schema$ListAccountServicesResponse {
888
+ /**
889
+ * The account services that match your filter.
890
+ */
891
+ accountServices?: Schema$AccountService[];
892
+ /**
893
+ * A page token. You can send the `page_token` to get the next page. Only included in the `list` response if there are more pages.
894
+ */
895
+ nextPageToken?: string | null;
896
+ }
771
897
  /**
772
898
  * Response message for the `ListAccounts` method.
773
899
  */
@@ -904,11 +1030,11 @@ export namespace merchantapi_accounts_v1beta {
904
1030
  */
905
1031
  export interface Schema$OnlineReturnPolicy {
906
1032
  /**
907
- * This field specifies if merchant only accepts defective products for returns, and this field is required.
1033
+ * Optional. This field specifies if merchant only accepts defective products for returns.
908
1034
  */
909
1035
  acceptDefectiveOnly?: boolean | null;
910
1036
  /**
911
- * This field specifies if merchant allows customers to exchange products, this field is required.
1037
+ * Optional. This field specifies if merchant allows customers to exchange products.
912
1038
  */
913
1039
  acceptExchange?: boolean | null;
914
1040
  /**
@@ -932,13 +1058,17 @@ export namespace merchantapi_accounts_v1beta {
932
1058
  */
933
1059
  policy?: Schema$Policy;
934
1060
  /**
935
- * The field specifies the number of days it takes for merchants to process refunds, field is optional.
1061
+ * Optional. The field specifies the number of days it takes for merchants to process refunds.
936
1062
  */
937
1063
  processRefundDays?: number | null;
938
1064
  /**
939
1065
  * Optional. The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set.
940
1066
  */
941
1067
  restockingFee?: Schema$RestockingFee;
1068
+ /**
1069
+ * Optional. The field specifies the return label source.
1070
+ */
1071
+ returnLabelSource?: string | null;
942
1072
  /**
943
1073
  * Optional. The return methods of how customers can return an item. This value is required to not be empty unless the type of return policy is noReturns.
944
1074
  */
@@ -991,15 +1121,15 @@ export namespace merchantapi_accounts_v1beta {
991
1121
  type?: string | null;
992
1122
  }
993
1123
  /**
994
- * Represents a postal address. For example for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created by user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, see: https://support.google.com/business/answer/6397478
1124
+ * Represents a postal address (for example, for postal delivery or payments addresses). Given a postal address, a postal service can deliver items to a premise, P.O. box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage, an address would be created by user input or from importing existing data, depending on the type of process. Advice on address input or editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput. - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, see: https://support.google.com/business/answer/6397478.
995
1125
  */
996
1126
  export interface Schema$PostalAddress {
997
1127
  /**
998
- * Unstructured address lines describing the lower levels of an address. Because values in address_lines do not have type information and may sometimes contain multiple values in a single field (For example "Austin, TX"), it is important that the line order is clear. The order of address lines should be "envelope order" for the country/region of the address. In places where this can vary (For example Japan), address_language is used to make it explicit (For example "ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large). This way, the most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a region_code with all remaining information placed in the address_lines. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of the address components until it was at least partially resolved. Creating an address only containing a region_code and address_lines, and then geocoding is the recommended way to handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas).
1128
+ * Unstructured address lines describing the lower levels of an address. Because values in `address_lines` do not have type information and may sometimes contain multiple values in a single field (for example, "Austin, TX"), it is important that the line order is clear. The order of address lines should be "envelope order" for the country or region of the address. In places where this can vary (for example, Japan), `address_language` is used to make it explicit (for example, "ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this way, the most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a `region_code` with all remaining information placed in the `address_lines`. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of the address components until it was at least partially resolved. Creating an address only containing a `region_code` and `address_lines` and then geocoding is the recommended way to handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas).
999
1129
  */
1000
1130
  addressLines?: string[] | null;
1001
1131
  /**
1002
- * Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. Specifically, for Spain this is the province and not the autonomous community (For example "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. For example in Switzerland this should be left unpopulated.
1132
+ * Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. For Spain, this is the province and not the autonomous community (for example, "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. For example, in Switzerland, this should be left unpopulated.
1003
1133
  */
1004
1134
  administrativeArea?: string | null;
1005
1135
  /**
@@ -1007,7 +1137,7 @@ export namespace merchantapi_accounts_v1beta {
1007
1137
  */
1008
1138
  languageCode?: string | null;
1009
1139
  /**
1010
- * Optional. Generally refers to the city/town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave locality empty and use address_lines.
1140
+ * Optional. Generally refers to the city or town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave `locality` empty and use `address_lines`.
1011
1141
  */
1012
1142
  locality?: string | null;
1013
1143
  /**
@@ -1015,7 +1145,7 @@ export namespace merchantapi_accounts_v1beta {
1015
1145
  */
1016
1146
  organization?: string | null;
1017
1147
  /**
1018
- * Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (For example state/zip validation in the U.S.A.).
1148
+ * Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (for example, state or zip code validation in the United States).
1019
1149
  */
1020
1150
  postalCode?: string | null;
1021
1151
  /**
@@ -1031,11 +1161,11 @@ export namespace merchantapi_accounts_v1beta {
1031
1161
  */
1032
1162
  revision?: number | null;
1033
1163
  /**
1034
- * Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like "CEDEX", optionally followed by a number (For example "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) or "post office indicator" (For example Côte d'Ivoire).
1164
+ * Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
1035
1165
  */
1036
1166
  sortingCode?: string | null;
1037
1167
  /**
1038
- * Optional. Sublocality of the address. For example, this can be neighborhoods, boroughs, districts.
1168
+ * Optional. Sublocality of the address. For example, this can be a neighborhood, borough, or district.
1039
1169
  */
1040
1170
  sublocality?: string | null;
1041
1171
  }
@@ -1099,6 +1229,10 @@ export namespace merchantapi_accounts_v1beta {
1099
1229
  */
1100
1230
  reportingContext?: string | null;
1101
1231
  }
1232
+ /**
1233
+ * `ProductsManagement` payload.
1234
+ */
1235
+ export interface Schema$ProductsManagement {}
1102
1236
  /**
1103
1237
  * The message that the merchant will receive to notify about product status change event
1104
1238
  */
@@ -1141,7 +1275,7 @@ export namespace merchantapi_accounts_v1beta {
1141
1275
  resourceType?: string | null;
1142
1276
  }
1143
1277
  /**
1144
- * Defines participation in a given program for the specified account. Programs provide a mechanism for adding functionality to merchant accounts. A typical example of this is the [Free product listings](https://support.google.com/merchants/topic/9240261?ref_topic=7257954,7259405,&sjid=796648681813264022-EU) program, which enables products from a merchant's store to be shown across Google for free. The following list is the available set of program resource IDs accessible through the API: * `free-listings` * `shopping-ads` * `youtube-shopping-checkout`
1278
+ * Defines participation in a given program for the specified account. Programs provide a mechanism for adding functionality to merchant accounts. A typical example of this is the [Free product listings](https://support.google.com/merchants/answer/13889434) program, which enables products from a merchant's store to be shown across Google for free. The following list is the available set of program resource IDs accessible through the API: * `free-listings` * `shopping-ads` * `youtube-shopping-checkout`
1145
1279
  */
1146
1280
  export interface Schema$Program {
1147
1281
  /**
@@ -1165,6 +1299,19 @@ export namespace merchantapi_accounts_v1beta {
1165
1299
  */
1166
1300
  unmetRequirements?: Schema$Requirement[];
1167
1301
  }
1302
+ /**
1303
+ * Request to propose an account service.
1304
+ */
1305
+ export interface Schema$ProposeAccountServiceRequest {
1306
+ /**
1307
+ * Required. The account service to propose.
1308
+ */
1309
+ accountService?: Schema$AccountService;
1310
+ /**
1311
+ * 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`).
1312
+ */
1313
+ provider?: string | null;
1314
+ }
1168
1315
  /**
1169
1316
  * 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.
1170
1317
  */
@@ -1223,16 +1370,20 @@ export namespace merchantapi_accounts_v1beta {
1223
1370
  */
1224
1371
  shippingEligible?: boolean | null;
1225
1372
  }
1373
+ /**
1374
+ * Request to reject an account service.
1375
+ */
1376
+ export interface Schema$RejectAccountServiceRequest {}
1226
1377
  /**
1227
1378
  * Describes the terms of service which are required to be accepted.
1228
1379
  */
1229
1380
  export interface Schema$Required {
1230
1381
  /**
1231
- * The [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService) that need to be accepted.
1382
+ * The `TermsOfService` that need to be accepted.
1232
1383
  */
1233
1384
  termsOfService?: string | null;
1234
1385
  /**
1235
- * Full URL to the terms of service file. This field is the same as [TermsOfService.file_uri](TermsOfService.file_uri), it is added here for convenience only.
1386
+ * Full URL to the terms of service file. This field is the same as `TermsOfService.file_uri`, it is added here for convenience only.
1236
1387
  */
1237
1388
  tosFileUri?: string | null;
1238
1389
  }
@@ -1319,7 +1470,7 @@ export namespace merchantapi_accounts_v1beta {
1319
1470
  */
1320
1471
  active?: boolean | null;
1321
1472
  /**
1322
- * The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
1473
+ * Required. The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
1323
1474
  */
1324
1475
  currencyCode?: string | null;
1325
1476
  /**
@@ -1360,7 +1511,7 @@ export namespace merchantapi_accounts_v1beta {
1360
1511
  storeConfig?: Schema$StoreConfig;
1361
1512
  }
1362
1513
  /**
1363
- * The merchant account's [shipping setting](https://support.google.com/merchants/answer/6069284).
1514
+ * The merchant account's [shipping settings](https://support.google.com/merchants/answer/6069284).
1364
1515
  */
1365
1516
  export interface Schema$ShippingSettings {
1366
1517
  /**
@@ -1368,7 +1519,7 @@ export namespace merchantapi_accounts_v1beta {
1368
1519
  */
1369
1520
  etag?: string | null;
1370
1521
  /**
1371
- * Identifier. The resource name of the shipping setting. Format: `accounts/{account\}/shippingSetting`
1522
+ * Identifier. The resource name of the shipping settings. Format: `accounts/{account\}/shippingSettings`
1372
1523
  */
1373
1524
  name?: string | null;
1374
1525
  /**
@@ -1449,7 +1600,7 @@ export namespace merchantapi_accounts_v1beta {
1449
1600
  rows?: Schema$Row[];
1450
1601
  }
1451
1602
  /**
1452
- * The `TermsOfService` message represents a specific version of the terms of service that merchants must accept to access certain features or services (see https://support.google.com/merchants/answer/160173). This message is important for the onboarding process, ensuring that merchants agree to the necessary legal agreements for using the service. Merchants can retrieve the latest terms of service for a given `kind` and `region` through `RetrieveLatestTermsOfService`, and accept them as required through `AcceptTermsOfService`.
1603
+ * The `TermsOfService` message represents a specific version of the terms of service that merchants must accept to access certain features or services. For more information, see [Terms of Service](https://support.google.com/merchants/answer/160173). This message is important for the onboarding process, ensuring that merchants agree to the necessary legal agreements for using the service. Merchants can retrieve the latest terms of service for a given `kind` and `region` through `RetrieveLatestTermsOfService`, and accept them as required through `AcceptTermsOfService`.
1453
1604
  */
1454
1605
  export interface Schema$TermsOfService {
1455
1606
  /**
@@ -1474,7 +1625,7 @@ export namespace merchantapi_accounts_v1beta {
1474
1625
  regionCode?: string | null;
1475
1626
  }
1476
1627
  /**
1477
- * This resource represents the agreement state for a given account and terms of service kind. The state is as follows: * If the merchant has accepted a terms of service: [accepted](TermsOfServiceAggrementState.accepted) will be populated, otherwise it will be empty * If the merchant must sign a terms of service: [required](TermsOfServiceAggrementState.required) will be populated, otherwise it will be empty. Note that both [required](TermsOfServiceAggrementState.required) and [accepted](TermsOfServiceAggrementState.accepted) can be present. In this case the `accepted` terms of services will have an expiration date set in the [valid_until](Accepted.valid_until) field. The `required` terms of services need to be accepted before `valid_until` in order for the account to continue having a valid agreement. When accepting new terms of services we expect 3Ps to display the text associated with the given terms of service agreement (the url to the file containing the text is added in the Required message below as [tos_file_uri](Accepted.tos_file_uri). The actual acceptance of the terms of service is done by calling accept on the [TermsOfService](TermsOfService) resource.
1628
+ * This resource represents the agreement state for a given account and terms of service kind. The state is as follows: * If the merchant has accepted a terms of service, `accepted` will be populated, otherwise it will be empty * If the merchant must sign a terms of service, `required` will be populated, otherwise it will be empty. Note that both `required` and `accepted` can be present. In this case the `accepted` terms of services will have an expiration date set in the `valid_until` field. The `required` terms of services need to be accepted before `valid_until` in order for the account to continue having a valid agreement. When accepting new terms of services we expect 3Ps to display the text associated with the given terms of service agreement (the url to the file containing the text is added in the Required message below as `tos_file_uri`). The actual acceptance of the terms of service is done by calling accept on the `TermsOfService` resource.
1478
1629
  */
1479
1630
  export interface Schema$TermsOfServiceAgreementState {
1480
1631
  /**
@@ -1634,7 +1785,7 @@ export namespace merchantapi_accounts_v1beta {
1634
1785
  */
1635
1786
  carrierService?: string | null;
1636
1787
  /**
1637
- * Required. Warehouse name. This should match warehouse
1788
+ * Required. Warehouse name. This should match [warehouse](/merchant/api/reference/rest/accounts_v1beta/accounts.shippingSettings#warehouse)
1638
1789
  */
1639
1790
  warehouse?: string | null;
1640
1791
  }
@@ -1668,6 +1819,7 @@ export namespace merchantapi_accounts_v1beta {
1668
1819
  export class Resource$Accounts {
1669
1820
  context: APIRequestContext;
1670
1821
  autofeedSettings: Resource$Accounts$Autofeedsettings;
1822
+ automaticImprovements: Resource$Accounts$Automaticimprovements;
1671
1823
  businessIdentity: Resource$Accounts$Businessidentity;
1672
1824
  businessInfo: Resource$Accounts$Businessinfo;
1673
1825
  emailPreferences: Resource$Accounts$Emailpreferences;
@@ -1676,6 +1828,8 @@ export namespace merchantapi_accounts_v1beta {
1676
1828
  onlineReturnPolicies: Resource$Accounts$Onlinereturnpolicies;
1677
1829
  programs: Resource$Accounts$Programs;
1678
1830
  regions: Resource$Accounts$Regions;
1831
+ relationships: Resource$Accounts$Relationships;
1832
+ services: Resource$Accounts$Services;
1679
1833
  shippingSettings: Resource$Accounts$Shippingsettings;
1680
1834
  termsOfServiceAgreementStates: Resource$Accounts$Termsofserviceagreementstates;
1681
1835
  users: Resource$Accounts$Users;
@@ -1684,6 +1838,9 @@ export namespace merchantapi_accounts_v1beta {
1684
1838
  this.autofeedSettings = new Resource$Accounts$Autofeedsettings(
1685
1839
  this.context
1686
1840
  );
1841
+ this.automaticImprovements = new Resource$Accounts$Automaticimprovements(
1842
+ this.context
1843
+ );
1687
1844
  this.businessIdentity = new Resource$Accounts$Businessidentity(
1688
1845
  this.context
1689
1846
  );
@@ -1698,6 +1855,8 @@ export namespace merchantapi_accounts_v1beta {
1698
1855
  );
1699
1856
  this.programs = new Resource$Accounts$Programs(this.context);
1700
1857
  this.regions = new Resource$Accounts$Regions(this.context);
1858
+ this.relationships = new Resource$Accounts$Relationships(this.context);
1859
+ this.services = new Resource$Accounts$Services(this.context);
1701
1860
  this.shippingSettings = new Resource$Accounts$Shippingsettings(
1702
1861
  this.context
1703
1862
  );
@@ -1707,7 +1866,7 @@ export namespace merchantapi_accounts_v1beta {
1707
1866
  }
1708
1867
 
1709
1868
  /**
1710
- * Creates a standalone Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.
1869
+ * Creates a Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.
1711
1870
  *
1712
1871
  * @param params - Parameters for request
1713
1872
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1717,11 +1876,11 @@ export namespace merchantapi_accounts_v1beta {
1717
1876
  createAndConfigure(
1718
1877
  params: Params$Resource$Accounts$Createandconfigure,
1719
1878
  options: StreamMethodOptions
1720
- ): GaxiosPromise<Readable>;
1879
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1721
1880
  createAndConfigure(
1722
1881
  params?: Params$Resource$Accounts$Createandconfigure,
1723
1882
  options?: MethodOptions
1724
- ): GaxiosPromise<Schema$Account>;
1883
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Account>>;
1725
1884
  createAndConfigure(
1726
1885
  params: Params$Resource$Accounts$Createandconfigure,
1727
1886
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1750,7 +1909,10 @@ export namespace merchantapi_accounts_v1beta {
1750
1909
  callback?:
1751
1910
  | BodyResponseCallback<Schema$Account>
1752
1911
  | BodyResponseCallback<Readable>
1753
- ): void | GaxiosPromise<Schema$Account> | GaxiosPromise<Readable> {
1912
+ ):
1913
+ | void
1914
+ | Promise<GaxiosResponseWithHTTP2<Schema$Account>>
1915
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1754
1916
  let params = (paramsOrCallback ||
1755
1917
  {}) as Params$Resource$Accounts$Createandconfigure;
1756
1918
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1804,11 +1966,11 @@ export namespace merchantapi_accounts_v1beta {
1804
1966
  delete(
1805
1967
  params: Params$Resource$Accounts$Delete,
1806
1968
  options: StreamMethodOptions
1807
- ): GaxiosPromise<Readable>;
1969
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1808
1970
  delete(
1809
1971
  params?: Params$Resource$Accounts$Delete,
1810
1972
  options?: MethodOptions
1811
- ): GaxiosPromise<Schema$Empty>;
1973
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
1812
1974
  delete(
1813
1975
  params: Params$Resource$Accounts$Delete,
1814
1976
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1837,7 +1999,10 @@ export namespace merchantapi_accounts_v1beta {
1837
1999
  callback?:
1838
2000
  | BodyResponseCallback<Schema$Empty>
1839
2001
  | BodyResponseCallback<Readable>
1840
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
2002
+ ):
2003
+ | void
2004
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
2005
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1841
2006
  let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Delete;
1842
2007
  let options = (optionsOrCallback || {}) as MethodOptions;
1843
2008
 
@@ -1891,11 +2056,11 @@ export namespace merchantapi_accounts_v1beta {
1891
2056
  get(
1892
2057
  params: Params$Resource$Accounts$Get,
1893
2058
  options: StreamMethodOptions
1894
- ): GaxiosPromise<Readable>;
2059
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1895
2060
  get(
1896
2061
  params?: Params$Resource$Accounts$Get,
1897
2062
  options?: MethodOptions
1898
- ): GaxiosPromise<Schema$Account>;
2063
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Account>>;
1899
2064
  get(
1900
2065
  params: Params$Resource$Accounts$Get,
1901
2066
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1924,7 +2089,10 @@ export namespace merchantapi_accounts_v1beta {
1924
2089
  callback?:
1925
2090
  | BodyResponseCallback<Schema$Account>
1926
2091
  | BodyResponseCallback<Readable>
1927
- ): void | GaxiosPromise<Schema$Account> | GaxiosPromise<Readable> {
2092
+ ):
2093
+ | void
2094
+ | Promise<GaxiosResponseWithHTTP2<Schema$Account>>
2095
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1928
2096
  let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Get;
1929
2097
  let options = (optionsOrCallback || {}) as MethodOptions;
1930
2098
 
@@ -1967,101 +2135,6 @@ export namespace merchantapi_accounts_v1beta {
1967
2135
  }
1968
2136
  }
1969
2137
 
1970
- /**
1971
- * Retrieves the automatic improvements of an account.
1972
- *
1973
- * @param params - Parameters for request
1974
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1975
- * @param callback - Optional callback that handles the response.
1976
- * @returns A promise if used with async/await, or void if used with a callback.
1977
- */
1978
- getAutomaticImprovements(
1979
- params: Params$Resource$Accounts$Getautomaticimprovements,
1980
- options: StreamMethodOptions
1981
- ): GaxiosPromise<Readable>;
1982
- getAutomaticImprovements(
1983
- params?: Params$Resource$Accounts$Getautomaticimprovements,
1984
- options?: MethodOptions
1985
- ): GaxiosPromise<Schema$AutomaticImprovements>;
1986
- getAutomaticImprovements(
1987
- params: Params$Resource$Accounts$Getautomaticimprovements,
1988
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
1989
- callback: BodyResponseCallback<Readable>
1990
- ): void;
1991
- getAutomaticImprovements(
1992
- params: Params$Resource$Accounts$Getautomaticimprovements,
1993
- options:
1994
- | MethodOptions
1995
- | BodyResponseCallback<Schema$AutomaticImprovements>,
1996
- callback: BodyResponseCallback<Schema$AutomaticImprovements>
1997
- ): void;
1998
- getAutomaticImprovements(
1999
- params: Params$Resource$Accounts$Getautomaticimprovements,
2000
- callback: BodyResponseCallback<Schema$AutomaticImprovements>
2001
- ): void;
2002
- getAutomaticImprovements(
2003
- callback: BodyResponseCallback<Schema$AutomaticImprovements>
2004
- ): void;
2005
- getAutomaticImprovements(
2006
- paramsOrCallback?:
2007
- | Params$Resource$Accounts$Getautomaticimprovements
2008
- | BodyResponseCallback<Schema$AutomaticImprovements>
2009
- | BodyResponseCallback<Readable>,
2010
- optionsOrCallback?:
2011
- | MethodOptions
2012
- | StreamMethodOptions
2013
- | BodyResponseCallback<Schema$AutomaticImprovements>
2014
- | BodyResponseCallback<Readable>,
2015
- callback?:
2016
- | BodyResponseCallback<Schema$AutomaticImprovements>
2017
- | BodyResponseCallback<Readable>
2018
- ):
2019
- | void
2020
- | GaxiosPromise<Schema$AutomaticImprovements>
2021
- | GaxiosPromise<Readable> {
2022
- let params = (paramsOrCallback ||
2023
- {}) as Params$Resource$Accounts$Getautomaticimprovements;
2024
- let options = (optionsOrCallback || {}) as MethodOptions;
2025
-
2026
- if (typeof paramsOrCallback === 'function') {
2027
- callback = paramsOrCallback;
2028
- params = {} as Params$Resource$Accounts$Getautomaticimprovements;
2029
- options = {};
2030
- }
2031
-
2032
- if (typeof optionsOrCallback === 'function') {
2033
- callback = optionsOrCallback;
2034
- options = {};
2035
- }
2036
-
2037
- const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
2038
- const parameters = {
2039
- options: Object.assign(
2040
- {
2041
- url: (rootUrl + '/accounts/v1beta/{+name}').replace(
2042
- /([^:]\/)\/+/g,
2043
- '$1'
2044
- ),
2045
- method: 'GET',
2046
- apiVersion: '',
2047
- },
2048
- options
2049
- ),
2050
- params,
2051
- requiredParams: ['name'],
2052
- pathParams: ['name'],
2053
- context: this.context,
2054
- };
2055
- if (callback) {
2056
- createAPIRequest<Schema$AutomaticImprovements>(
2057
- parameters,
2058
- callback as BodyResponseCallback<unknown>
2059
- );
2060
- } else {
2061
- return createAPIRequest<Schema$AutomaticImprovements>(parameters);
2062
- }
2063
- }
2064
-
2065
2138
  /**
2066
2139
  * Lists accounts accessible to the calling user and matching the constraints of the request such as page size or filters. This is not just listing the sub-accounts of an MCA, but all accounts the calling user has access to including other MCAs, linked accounts, standalone accounts and so on. If no filter is provided, then it returns all the accounts the user has access to. This method is eventually consistent, meaning changes such as creating, updating an account or a change of relationships between accounts may not show up in the results immediately. Instead, these changes propagate over a short period, after which the updated information can match the associated predicates. That means, that searching by account name might not return a recently changed account even though it satisfies the predicate.
2067
2140
  *
@@ -2073,11 +2146,11 @@ export namespace merchantapi_accounts_v1beta {
2073
2146
  list(
2074
2147
  params: Params$Resource$Accounts$List,
2075
2148
  options: StreamMethodOptions
2076
- ): GaxiosPromise<Readable>;
2149
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2077
2150
  list(
2078
2151
  params?: Params$Resource$Accounts$List,
2079
2152
  options?: MethodOptions
2080
- ): GaxiosPromise<Schema$ListAccountsResponse>;
2153
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListAccountsResponse>>;
2081
2154
  list(
2082
2155
  params: Params$Resource$Accounts$List,
2083
2156
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2110,8 +2183,8 @@ export namespace merchantapi_accounts_v1beta {
2110
2183
  | BodyResponseCallback<Readable>
2111
2184
  ):
2112
2185
  | void
2113
- | GaxiosPromise<Schema$ListAccountsResponse>
2114
- | GaxiosPromise<Readable> {
2186
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListAccountsResponse>>
2187
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2115
2188
  let params = (paramsOrCallback || {}) as Params$Resource$Accounts$List;
2116
2189
  let options = (optionsOrCallback || {}) as MethodOptions;
2117
2190
 
@@ -2165,11 +2238,11 @@ export namespace merchantapi_accounts_v1beta {
2165
2238
  listSubaccounts(
2166
2239
  params: Params$Resource$Accounts$Listsubaccounts,
2167
2240
  options: StreamMethodOptions
2168
- ): GaxiosPromise<Readable>;
2241
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2169
2242
  listSubaccounts(
2170
2243
  params?: Params$Resource$Accounts$Listsubaccounts,
2171
2244
  options?: MethodOptions
2172
- ): GaxiosPromise<Schema$ListSubAccountsResponse>;
2245
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListSubAccountsResponse>>;
2173
2246
  listSubaccounts(
2174
2247
  params: Params$Resource$Accounts$Listsubaccounts,
2175
2248
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2204,8 +2277,8 @@ export namespace merchantapi_accounts_v1beta {
2204
2277
  | BodyResponseCallback<Readable>
2205
2278
  ):
2206
2279
  | void
2207
- | GaxiosPromise<Schema$ListSubAccountsResponse>
2208
- | GaxiosPromise<Readable> {
2280
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListSubAccountsResponse>>
2281
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2209
2282
  let params = (paramsOrCallback ||
2210
2283
  {}) as Params$Resource$Accounts$Listsubaccounts;
2211
2284
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2259,11 +2332,11 @@ export namespace merchantapi_accounts_v1beta {
2259
2332
  patch(
2260
2333
  params: Params$Resource$Accounts$Patch,
2261
2334
  options: StreamMethodOptions
2262
- ): GaxiosPromise<Readable>;
2335
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2263
2336
  patch(
2264
2337
  params?: Params$Resource$Accounts$Patch,
2265
2338
  options?: MethodOptions
2266
- ): GaxiosPromise<Schema$Account>;
2339
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Account>>;
2267
2340
  patch(
2268
2341
  params: Params$Resource$Accounts$Patch,
2269
2342
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2292,7 +2365,10 @@ export namespace merchantapi_accounts_v1beta {
2292
2365
  callback?:
2293
2366
  | BodyResponseCallback<Schema$Account>
2294
2367
  | BodyResponseCallback<Readable>
2295
- ): void | GaxiosPromise<Schema$Account> | GaxiosPromise<Readable> {
2368
+ ):
2369
+ | void
2370
+ | Promise<GaxiosResponseWithHTTP2<Schema$Account>>
2371
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2296
2372
  let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Patch;
2297
2373
  let options = (optionsOrCallback || {}) as MethodOptions;
2298
2374
 
@@ -2334,107 +2410,12 @@ export namespace merchantapi_accounts_v1beta {
2334
2410
  return createAPIRequest<Schema$Account>(parameters);
2335
2411
  }
2336
2412
  }
2413
+ }
2337
2414
 
2415
+ export interface Params$Resource$Accounts$Createandconfigure
2416
+ extends StandardParameters {
2338
2417
  /**
2339
- * Updates the automatic improvements of an account.
2340
- *
2341
- * @param params - Parameters for request
2342
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2343
- * @param callback - Optional callback that handles the response.
2344
- * @returns A promise if used with async/await, or void if used with a callback.
2345
- */
2346
- updateAutomaticImprovements(
2347
- params: Params$Resource$Accounts$Updateautomaticimprovements,
2348
- options: StreamMethodOptions
2349
- ): GaxiosPromise<Readable>;
2350
- updateAutomaticImprovements(
2351
- params?: Params$Resource$Accounts$Updateautomaticimprovements,
2352
- options?: MethodOptions
2353
- ): GaxiosPromise<Schema$AutomaticImprovements>;
2354
- updateAutomaticImprovements(
2355
- params: Params$Resource$Accounts$Updateautomaticimprovements,
2356
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
2357
- callback: BodyResponseCallback<Readable>
2358
- ): void;
2359
- updateAutomaticImprovements(
2360
- params: Params$Resource$Accounts$Updateautomaticimprovements,
2361
- options:
2362
- | MethodOptions
2363
- | BodyResponseCallback<Schema$AutomaticImprovements>,
2364
- callback: BodyResponseCallback<Schema$AutomaticImprovements>
2365
- ): void;
2366
- updateAutomaticImprovements(
2367
- params: Params$Resource$Accounts$Updateautomaticimprovements,
2368
- callback: BodyResponseCallback<Schema$AutomaticImprovements>
2369
- ): void;
2370
- updateAutomaticImprovements(
2371
- callback: BodyResponseCallback<Schema$AutomaticImprovements>
2372
- ): void;
2373
- updateAutomaticImprovements(
2374
- paramsOrCallback?:
2375
- | Params$Resource$Accounts$Updateautomaticimprovements
2376
- | BodyResponseCallback<Schema$AutomaticImprovements>
2377
- | BodyResponseCallback<Readable>,
2378
- optionsOrCallback?:
2379
- | MethodOptions
2380
- | StreamMethodOptions
2381
- | BodyResponseCallback<Schema$AutomaticImprovements>
2382
- | BodyResponseCallback<Readable>,
2383
- callback?:
2384
- | BodyResponseCallback<Schema$AutomaticImprovements>
2385
- | BodyResponseCallback<Readable>
2386
- ):
2387
- | void
2388
- | GaxiosPromise<Schema$AutomaticImprovements>
2389
- | GaxiosPromise<Readable> {
2390
- let params = (paramsOrCallback ||
2391
- {}) as Params$Resource$Accounts$Updateautomaticimprovements;
2392
- let options = (optionsOrCallback || {}) as MethodOptions;
2393
-
2394
- if (typeof paramsOrCallback === 'function') {
2395
- callback = paramsOrCallback;
2396
- params = {} as Params$Resource$Accounts$Updateautomaticimprovements;
2397
- options = {};
2398
- }
2399
-
2400
- if (typeof optionsOrCallback === 'function') {
2401
- callback = optionsOrCallback;
2402
- options = {};
2403
- }
2404
-
2405
- const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
2406
- const parameters = {
2407
- options: Object.assign(
2408
- {
2409
- url: (rootUrl + '/accounts/v1beta/{+name}').replace(
2410
- /([^:]\/)\/+/g,
2411
- '$1'
2412
- ),
2413
- method: 'PATCH',
2414
- apiVersion: '',
2415
- },
2416
- options
2417
- ),
2418
- params,
2419
- requiredParams: ['name'],
2420
- pathParams: ['name'],
2421
- context: this.context,
2422
- };
2423
- if (callback) {
2424
- createAPIRequest<Schema$AutomaticImprovements>(
2425
- parameters,
2426
- callback as BodyResponseCallback<unknown>
2427
- );
2428
- } else {
2429
- return createAPIRequest<Schema$AutomaticImprovements>(parameters);
2430
- }
2431
- }
2432
- }
2433
-
2434
- export interface Params$Resource$Accounts$Createandconfigure
2435
- extends StandardParameters {
2436
- /**
2437
- * Request body metadata
2418
+ * Request body metadata
2438
2419
  */
2439
2420
  requestBody?: Schema$CreateAndConfigureAccountRequest;
2440
2421
  }
@@ -2454,13 +2435,6 @@ export namespace merchantapi_accounts_v1beta {
2454
2435
  */
2455
2436
  name?: string;
2456
2437
  }
2457
- export interface Params$Resource$Accounts$Getautomaticimprovements
2458
- extends StandardParameters {
2459
- /**
2460
- * Required. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`
2461
- */
2462
- name?: string;
2463
- }
2464
2438
  export interface Params$Resource$Accounts$List extends StandardParameters {
2465
2439
  /**
2466
2440
  * Optional. Returns only accounts that match the [filter](https://developers.google.com/merchant/api/guides/accounts/filter). For more details, see the [filter syntax reference](https://developers.google.com/merchant/api/guides/accounts/filter-syntax).
@@ -2486,7 +2460,7 @@ export namespace merchantapi_accounts_v1beta {
2486
2460
  */
2487
2461
  pageToken?: string;
2488
2462
  /**
2489
- * Required. The aggregation service provider. Format: `providers/{providerId\}`
2463
+ * Required. The aggregation service provider. Format: `accounts/{accountId\}`
2490
2464
  */
2491
2465
  provider?: string;
2492
2466
  }
@@ -2505,22 +2479,6 @@ export namespace merchantapi_accounts_v1beta {
2505
2479
  */
2506
2480
  requestBody?: Schema$Account;
2507
2481
  }
2508
- export interface Params$Resource$Accounts$Updateautomaticimprovements
2509
- extends StandardParameters {
2510
- /**
2511
- * Identifier. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`.
2512
- */
2513
- name?: string;
2514
- /**
2515
- * Required. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `item_updates` - `item_updates.account_level_settings` - `image_improvements` - `image_improvements.account_level_settings` - `shipping_improvements` - `shipping_improvements.allow_shipping_improvements`
2516
- */
2517
- updateMask?: string;
2518
-
2519
- /**
2520
- * Request body metadata
2521
- */
2522
- requestBody?: Schema$AutomaticImprovements;
2523
- }
2524
2482
 
2525
2483
  export class Resource$Accounts$Autofeedsettings {
2526
2484
  context: APIRequestContext;
@@ -2539,11 +2497,11 @@ export namespace merchantapi_accounts_v1beta {
2539
2497
  getAutofeedSettings(
2540
2498
  params: Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings,
2541
2499
  options: StreamMethodOptions
2542
- ): GaxiosPromise<Readable>;
2500
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2543
2501
  getAutofeedSettings(
2544
2502
  params?: Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings,
2545
2503
  options?: MethodOptions
2546
- ): GaxiosPromise<Schema$AutofeedSettings>;
2504
+ ): Promise<GaxiosResponseWithHTTP2<Schema$AutofeedSettings>>;
2547
2505
  getAutofeedSettings(
2548
2506
  params: Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings,
2549
2507
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2574,7 +2532,10 @@ export namespace merchantapi_accounts_v1beta {
2574
2532
  callback?:
2575
2533
  | BodyResponseCallback<Schema$AutofeedSettings>
2576
2534
  | BodyResponseCallback<Readable>
2577
- ): void | GaxiosPromise<Schema$AutofeedSettings> | GaxiosPromise<Readable> {
2535
+ ):
2536
+ | void
2537
+ | Promise<GaxiosResponseWithHTTP2<Schema$AutofeedSettings>>
2538
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2578
2539
  let params = (paramsOrCallback ||
2579
2540
  {}) as Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings;
2580
2541
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2630,11 +2591,11 @@ export namespace merchantapi_accounts_v1beta {
2630
2591
  updateAutofeedSettings(
2631
2592
  params: Params$Resource$Accounts$Autofeedsettings$Updateautofeedsettings,
2632
2593
  options: StreamMethodOptions
2633
- ): GaxiosPromise<Readable>;
2594
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2634
2595
  updateAutofeedSettings(
2635
2596
  params?: Params$Resource$Accounts$Autofeedsettings$Updateautofeedsettings,
2636
2597
  options?: MethodOptions
2637
- ): GaxiosPromise<Schema$AutofeedSettings>;
2598
+ ): Promise<GaxiosResponseWithHTTP2<Schema$AutofeedSettings>>;
2638
2599
  updateAutofeedSettings(
2639
2600
  params: Params$Resource$Accounts$Autofeedsettings$Updateautofeedsettings,
2640
2601
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2665,7 +2626,10 @@ export namespace merchantapi_accounts_v1beta {
2665
2626
  callback?:
2666
2627
  | BodyResponseCallback<Schema$AutofeedSettings>
2667
2628
  | BodyResponseCallback<Readable>
2668
- ): void | GaxiosPromise<Schema$AutofeedSettings> | GaxiosPromise<Readable> {
2629
+ ):
2630
+ | void
2631
+ | Promise<GaxiosResponseWithHTTP2<Schema$AutofeedSettings>>
2632
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2669
2633
  let params = (paramsOrCallback ||
2670
2634
  {}) as Params$Resource$Accounts$Autofeedsettings$Updateautofeedsettings;
2671
2635
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2735,6 +2699,229 @@ export namespace merchantapi_accounts_v1beta {
2735
2699
  requestBody?: Schema$AutofeedSettings;
2736
2700
  }
2737
2701
 
2702
+ export class Resource$Accounts$Automaticimprovements {
2703
+ context: APIRequestContext;
2704
+ constructor(context: APIRequestContext) {
2705
+ this.context = context;
2706
+ }
2707
+
2708
+ /**
2709
+ * Retrieves the automatic improvements of an account.
2710
+ *
2711
+ * @param params - Parameters for request
2712
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2713
+ * @param callback - Optional callback that handles the response.
2714
+ * @returns A promise if used with async/await, or void if used with a callback.
2715
+ */
2716
+ getAutomaticImprovements(
2717
+ params: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements,
2718
+ options: StreamMethodOptions
2719
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2720
+ getAutomaticImprovements(
2721
+ params?: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements,
2722
+ options?: MethodOptions
2723
+ ): Promise<GaxiosResponseWithHTTP2<Schema$AutomaticImprovements>>;
2724
+ getAutomaticImprovements(
2725
+ params: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements,
2726
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2727
+ callback: BodyResponseCallback<Readable>
2728
+ ): void;
2729
+ getAutomaticImprovements(
2730
+ params: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements,
2731
+ options:
2732
+ | MethodOptions
2733
+ | BodyResponseCallback<Schema$AutomaticImprovements>,
2734
+ callback: BodyResponseCallback<Schema$AutomaticImprovements>
2735
+ ): void;
2736
+ getAutomaticImprovements(
2737
+ params: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements,
2738
+ callback: BodyResponseCallback<Schema$AutomaticImprovements>
2739
+ ): void;
2740
+ getAutomaticImprovements(
2741
+ callback: BodyResponseCallback<Schema$AutomaticImprovements>
2742
+ ): void;
2743
+ getAutomaticImprovements(
2744
+ paramsOrCallback?:
2745
+ | Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements
2746
+ | BodyResponseCallback<Schema$AutomaticImprovements>
2747
+ | BodyResponseCallback<Readable>,
2748
+ optionsOrCallback?:
2749
+ | MethodOptions
2750
+ | StreamMethodOptions
2751
+ | BodyResponseCallback<Schema$AutomaticImprovements>
2752
+ | BodyResponseCallback<Readable>,
2753
+ callback?:
2754
+ | BodyResponseCallback<Schema$AutomaticImprovements>
2755
+ | BodyResponseCallback<Readable>
2756
+ ):
2757
+ | void
2758
+ | Promise<GaxiosResponseWithHTTP2<Schema$AutomaticImprovements>>
2759
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2760
+ let params = (paramsOrCallback ||
2761
+ {}) as Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements;
2762
+ let options = (optionsOrCallback || {}) as MethodOptions;
2763
+
2764
+ if (typeof paramsOrCallback === 'function') {
2765
+ callback = paramsOrCallback;
2766
+ params =
2767
+ {} as Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements;
2768
+ options = {};
2769
+ }
2770
+
2771
+ if (typeof optionsOrCallback === 'function') {
2772
+ callback = optionsOrCallback;
2773
+ options = {};
2774
+ }
2775
+
2776
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
2777
+ const parameters = {
2778
+ options: Object.assign(
2779
+ {
2780
+ url: (rootUrl + '/accounts/v1beta/{+name}').replace(
2781
+ /([^:]\/)\/+/g,
2782
+ '$1'
2783
+ ),
2784
+ method: 'GET',
2785
+ apiVersion: '',
2786
+ },
2787
+ options
2788
+ ),
2789
+ params,
2790
+ requiredParams: ['name'],
2791
+ pathParams: ['name'],
2792
+ context: this.context,
2793
+ };
2794
+ if (callback) {
2795
+ createAPIRequest<Schema$AutomaticImprovements>(
2796
+ parameters,
2797
+ callback as BodyResponseCallback<unknown>
2798
+ );
2799
+ } else {
2800
+ return createAPIRequest<Schema$AutomaticImprovements>(parameters);
2801
+ }
2802
+ }
2803
+
2804
+ /**
2805
+ * Updates the automatic improvements of an account.
2806
+ *
2807
+ * @param params - Parameters for request
2808
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2809
+ * @param callback - Optional callback that handles the response.
2810
+ * @returns A promise if used with async/await, or void if used with a callback.
2811
+ */
2812
+ updateAutomaticImprovements(
2813
+ params: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements,
2814
+ options: StreamMethodOptions
2815
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2816
+ updateAutomaticImprovements(
2817
+ params?: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements,
2818
+ options?: MethodOptions
2819
+ ): Promise<GaxiosResponseWithHTTP2<Schema$AutomaticImprovements>>;
2820
+ updateAutomaticImprovements(
2821
+ params: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements,
2822
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2823
+ callback: BodyResponseCallback<Readable>
2824
+ ): void;
2825
+ updateAutomaticImprovements(
2826
+ params: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements,
2827
+ options:
2828
+ | MethodOptions
2829
+ | BodyResponseCallback<Schema$AutomaticImprovements>,
2830
+ callback: BodyResponseCallback<Schema$AutomaticImprovements>
2831
+ ): void;
2832
+ updateAutomaticImprovements(
2833
+ params: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements,
2834
+ callback: BodyResponseCallback<Schema$AutomaticImprovements>
2835
+ ): void;
2836
+ updateAutomaticImprovements(
2837
+ callback: BodyResponseCallback<Schema$AutomaticImprovements>
2838
+ ): void;
2839
+ updateAutomaticImprovements(
2840
+ paramsOrCallback?:
2841
+ | Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements
2842
+ | BodyResponseCallback<Schema$AutomaticImprovements>
2843
+ | BodyResponseCallback<Readable>,
2844
+ optionsOrCallback?:
2845
+ | MethodOptions
2846
+ | StreamMethodOptions
2847
+ | BodyResponseCallback<Schema$AutomaticImprovements>
2848
+ | BodyResponseCallback<Readable>,
2849
+ callback?:
2850
+ | BodyResponseCallback<Schema$AutomaticImprovements>
2851
+ | BodyResponseCallback<Readable>
2852
+ ):
2853
+ | void
2854
+ | Promise<GaxiosResponseWithHTTP2<Schema$AutomaticImprovements>>
2855
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2856
+ let params = (paramsOrCallback ||
2857
+ {}) as Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements;
2858
+ let options = (optionsOrCallback || {}) as MethodOptions;
2859
+
2860
+ if (typeof paramsOrCallback === 'function') {
2861
+ callback = paramsOrCallback;
2862
+ params =
2863
+ {} as Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements;
2864
+ options = {};
2865
+ }
2866
+
2867
+ if (typeof optionsOrCallback === 'function') {
2868
+ callback = optionsOrCallback;
2869
+ options = {};
2870
+ }
2871
+
2872
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
2873
+ const parameters = {
2874
+ options: Object.assign(
2875
+ {
2876
+ url: (rootUrl + '/accounts/v1beta/{+name}').replace(
2877
+ /([^:]\/)\/+/g,
2878
+ '$1'
2879
+ ),
2880
+ method: 'PATCH',
2881
+ apiVersion: '',
2882
+ },
2883
+ options
2884
+ ),
2885
+ params,
2886
+ requiredParams: ['name'],
2887
+ pathParams: ['name'],
2888
+ context: this.context,
2889
+ };
2890
+ if (callback) {
2891
+ createAPIRequest<Schema$AutomaticImprovements>(
2892
+ parameters,
2893
+ callback as BodyResponseCallback<unknown>
2894
+ );
2895
+ } else {
2896
+ return createAPIRequest<Schema$AutomaticImprovements>(parameters);
2897
+ }
2898
+ }
2899
+ }
2900
+
2901
+ export interface Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements
2902
+ extends StandardParameters {
2903
+ /**
2904
+ * Required. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`
2905
+ */
2906
+ name?: string;
2907
+ }
2908
+ export interface Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements
2909
+ extends StandardParameters {
2910
+ /**
2911
+ * Identifier. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`.
2912
+ */
2913
+ name?: string;
2914
+ /**
2915
+ * Required. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `item_updates` - `item_updates.account_level_settings` - `image_improvements` - `image_improvements.account_level_settings` - `shipping_improvements` - `shipping_improvements.allow_shipping_improvements`
2916
+ */
2917
+ updateMask?: string;
2918
+
2919
+ /**
2920
+ * Request body metadata
2921
+ */
2922
+ requestBody?: Schema$AutomaticImprovements;
2923
+ }
2924
+
2738
2925
  export class Resource$Accounts$Businessidentity {
2739
2926
  context: APIRequestContext;
2740
2927
  constructor(context: APIRequestContext) {
@@ -2752,11 +2939,11 @@ export namespace merchantapi_accounts_v1beta {
2752
2939
  getBusinessIdentity(
2753
2940
  params: Params$Resource$Accounts$Businessidentity$Getbusinessidentity,
2754
2941
  options: StreamMethodOptions
2755
- ): GaxiosPromise<Readable>;
2942
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2756
2943
  getBusinessIdentity(
2757
2944
  params?: Params$Resource$Accounts$Businessidentity$Getbusinessidentity,
2758
2945
  options?: MethodOptions
2759
- ): GaxiosPromise<Schema$BusinessIdentity>;
2946
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BusinessIdentity>>;
2760
2947
  getBusinessIdentity(
2761
2948
  params: Params$Resource$Accounts$Businessidentity$Getbusinessidentity,
2762
2949
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2787,7 +2974,10 @@ export namespace merchantapi_accounts_v1beta {
2787
2974
  callback?:
2788
2975
  | BodyResponseCallback<Schema$BusinessIdentity>
2789
2976
  | BodyResponseCallback<Readable>
2790
- ): void | GaxiosPromise<Schema$BusinessIdentity> | GaxiosPromise<Readable> {
2977
+ ):
2978
+ | void
2979
+ | Promise<GaxiosResponseWithHTTP2<Schema$BusinessIdentity>>
2980
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2791
2981
  let params = (paramsOrCallback ||
2792
2982
  {}) as Params$Resource$Accounts$Businessidentity$Getbusinessidentity;
2793
2983
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2843,11 +3033,11 @@ export namespace merchantapi_accounts_v1beta {
2843
3033
  updateBusinessIdentity(
2844
3034
  params: Params$Resource$Accounts$Businessidentity$Updatebusinessidentity,
2845
3035
  options: StreamMethodOptions
2846
- ): GaxiosPromise<Readable>;
3036
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2847
3037
  updateBusinessIdentity(
2848
3038
  params?: Params$Resource$Accounts$Businessidentity$Updatebusinessidentity,
2849
3039
  options?: MethodOptions
2850
- ): GaxiosPromise<Schema$BusinessIdentity>;
3040
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BusinessIdentity>>;
2851
3041
  updateBusinessIdentity(
2852
3042
  params: Params$Resource$Accounts$Businessidentity$Updatebusinessidentity,
2853
3043
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2878,7 +3068,10 @@ export namespace merchantapi_accounts_v1beta {
2878
3068
  callback?:
2879
3069
  | BodyResponseCallback<Schema$BusinessIdentity>
2880
3070
  | BodyResponseCallback<Readable>
2881
- ): void | GaxiosPromise<Schema$BusinessIdentity> | GaxiosPromise<Readable> {
3071
+ ):
3072
+ | void
3073
+ | Promise<GaxiosResponseWithHTTP2<Schema$BusinessIdentity>>
3074
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2882
3075
  let params = (paramsOrCallback ||
2883
3076
  {}) as Params$Resource$Accounts$Businessidentity$Updatebusinessidentity;
2884
3077
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2965,11 +3158,11 @@ export namespace merchantapi_accounts_v1beta {
2965
3158
  getBusinessInfo(
2966
3159
  params: Params$Resource$Accounts$Businessinfo$Getbusinessinfo,
2967
3160
  options: StreamMethodOptions
2968
- ): GaxiosPromise<Readable>;
3161
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2969
3162
  getBusinessInfo(
2970
3163
  params?: Params$Resource$Accounts$Businessinfo$Getbusinessinfo,
2971
3164
  options?: MethodOptions
2972
- ): GaxiosPromise<Schema$BusinessInfo>;
3165
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BusinessInfo>>;
2973
3166
  getBusinessInfo(
2974
3167
  params: Params$Resource$Accounts$Businessinfo$Getbusinessinfo,
2975
3168
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2998,7 +3191,10 @@ export namespace merchantapi_accounts_v1beta {
2998
3191
  callback?:
2999
3192
  | BodyResponseCallback<Schema$BusinessInfo>
3000
3193
  | BodyResponseCallback<Readable>
3001
- ): void | GaxiosPromise<Schema$BusinessInfo> | GaxiosPromise<Readable> {
3194
+ ):
3195
+ | void
3196
+ | Promise<GaxiosResponseWithHTTP2<Schema$BusinessInfo>>
3197
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3002
3198
  let params = (paramsOrCallback ||
3003
3199
  {}) as Params$Resource$Accounts$Businessinfo$Getbusinessinfo;
3004
3200
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3053,11 +3249,11 @@ export namespace merchantapi_accounts_v1beta {
3053
3249
  updateBusinessInfo(
3054
3250
  params: Params$Resource$Accounts$Businessinfo$Updatebusinessinfo,
3055
3251
  options: StreamMethodOptions
3056
- ): GaxiosPromise<Readable>;
3252
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3057
3253
  updateBusinessInfo(
3058
3254
  params?: Params$Resource$Accounts$Businessinfo$Updatebusinessinfo,
3059
3255
  options?: MethodOptions
3060
- ): GaxiosPromise<Schema$BusinessInfo>;
3256
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BusinessInfo>>;
3061
3257
  updateBusinessInfo(
3062
3258
  params: Params$Resource$Accounts$Businessinfo$Updatebusinessinfo,
3063
3259
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3088,7 +3284,10 @@ export namespace merchantapi_accounts_v1beta {
3088
3284
  callback?:
3089
3285
  | BodyResponseCallback<Schema$BusinessInfo>
3090
3286
  | BodyResponseCallback<Readable>
3091
- ): void | GaxiosPromise<Schema$BusinessInfo> | GaxiosPromise<Readable> {
3287
+ ):
3288
+ | void
3289
+ | Promise<GaxiosResponseWithHTTP2<Schema$BusinessInfo>>
3290
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3092
3291
  let params = (paramsOrCallback ||
3093
3292
  {}) as Params$Resource$Accounts$Businessinfo$Updatebusinessinfo;
3094
3293
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3174,11 +3373,11 @@ export namespace merchantapi_accounts_v1beta {
3174
3373
  getEmailPreferences(
3175
3374
  params: Params$Resource$Accounts$Emailpreferences$Getemailpreferences,
3176
3375
  options: StreamMethodOptions
3177
- ): GaxiosPromise<Readable>;
3376
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3178
3377
  getEmailPreferences(
3179
3378
  params?: Params$Resource$Accounts$Emailpreferences$Getemailpreferences,
3180
3379
  options?: MethodOptions
3181
- ): GaxiosPromise<Schema$EmailPreferences>;
3380
+ ): Promise<GaxiosResponseWithHTTP2<Schema$EmailPreferences>>;
3182
3381
  getEmailPreferences(
3183
3382
  params: Params$Resource$Accounts$Emailpreferences$Getemailpreferences,
3184
3383
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3209,7 +3408,10 @@ export namespace merchantapi_accounts_v1beta {
3209
3408
  callback?:
3210
3409
  | BodyResponseCallback<Schema$EmailPreferences>
3211
3410
  | BodyResponseCallback<Readable>
3212
- ): void | GaxiosPromise<Schema$EmailPreferences> | GaxiosPromise<Readable> {
3411
+ ):
3412
+ | void
3413
+ | Promise<GaxiosResponseWithHTTP2<Schema$EmailPreferences>>
3414
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3213
3415
  let params = (paramsOrCallback ||
3214
3416
  {}) as Params$Resource$Accounts$Emailpreferences$Getemailpreferences;
3215
3417
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3265,11 +3467,11 @@ export namespace merchantapi_accounts_v1beta {
3265
3467
  updateEmailPreferences(
3266
3468
  params: Params$Resource$Accounts$Emailpreferences$Updateemailpreferences,
3267
3469
  options: StreamMethodOptions
3268
- ): GaxiosPromise<Readable>;
3470
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3269
3471
  updateEmailPreferences(
3270
3472
  params?: Params$Resource$Accounts$Emailpreferences$Updateemailpreferences,
3271
3473
  options?: MethodOptions
3272
- ): GaxiosPromise<Schema$EmailPreferences>;
3474
+ ): Promise<GaxiosResponseWithHTTP2<Schema$EmailPreferences>>;
3273
3475
  updateEmailPreferences(
3274
3476
  params: Params$Resource$Accounts$Emailpreferences$Updateemailpreferences,
3275
3477
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3300,7 +3502,10 @@ export namespace merchantapi_accounts_v1beta {
3300
3502
  callback?:
3301
3503
  | BodyResponseCallback<Schema$EmailPreferences>
3302
3504
  | BodyResponseCallback<Readable>
3303
- ): void | GaxiosPromise<Schema$EmailPreferences> | GaxiosPromise<Readable> {
3505
+ ):
3506
+ | void
3507
+ | Promise<GaxiosResponseWithHTTP2<Schema$EmailPreferences>>
3508
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3304
3509
  let params = (paramsOrCallback ||
3305
3510
  {}) as Params$Resource$Accounts$Emailpreferences$Updateemailpreferences;
3306
3511
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3377,7 +3582,7 @@ export namespace merchantapi_accounts_v1beta {
3377
3582
  }
3378
3583
 
3379
3584
  /**
3380
- * Claims a store's homepage. Executing this method requires admin access. If the homepage is already claimed, this will recheck the verification (unless the merchant is exempted from claiming, which also exempts from verification) and return a successful response. If ownership can no longer be verified, it will return an error, but it won't clear the claim. In case of failure, a canonical error message will be returned: * PERMISSION_DENIED: user doesn't have the necessary permissions on this MC account; * FAILED_PRECONDITION: - The account is not a Merchant Center account; - MC account doesn't have a homepage; - claiming failed (in this case the error message will contain more details).
3585
+ * Claims a store's homepage. Executing this method requires admin access. If the homepage is already claimed, this will recheck the verification (unless the merchant is exempted from claiming, which also exempts from verification) and return a successful response. If ownership can no longer be verified, it will return an error, but it won't clear the claim. In case of failure, a canonical error message is returned: * PERMISSION_DENIED: User doesn't have the necessary permissions on this Merchant Center account. * FAILED_PRECONDITION: - The account is not a Merchant Center account. - Merchant Center account doesn't have a homepage. - Claiming failed (in this case the error message contains more details).
3381
3586
  *
3382
3587
  * @param params - Parameters for request
3383
3588
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3387,11 +3592,11 @@ export namespace merchantapi_accounts_v1beta {
3387
3592
  claim(
3388
3593
  params: Params$Resource$Accounts$Homepage$Claim,
3389
3594
  options: StreamMethodOptions
3390
- ): GaxiosPromise<Readable>;
3595
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3391
3596
  claim(
3392
3597
  params?: Params$Resource$Accounts$Homepage$Claim,
3393
3598
  options?: MethodOptions
3394
- ): GaxiosPromise<Schema$Homepage>;
3599
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Homepage>>;
3395
3600
  claim(
3396
3601
  params: Params$Resource$Accounts$Homepage$Claim,
3397
3602
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3420,7 +3625,10 @@ export namespace merchantapi_accounts_v1beta {
3420
3625
  callback?:
3421
3626
  | BodyResponseCallback<Schema$Homepage>
3422
3627
  | BodyResponseCallback<Readable>
3423
- ): void | GaxiosPromise<Schema$Homepage> | GaxiosPromise<Readable> {
3628
+ ):
3629
+ | void
3630
+ | Promise<GaxiosResponseWithHTTP2<Schema$Homepage>>
3631
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3424
3632
  let params = (paramsOrCallback ||
3425
3633
  {}) as Params$Resource$Accounts$Homepage$Claim;
3426
3634
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3475,11 +3683,11 @@ export namespace merchantapi_accounts_v1beta {
3475
3683
  getHomepage(
3476
3684
  params: Params$Resource$Accounts$Homepage$Gethomepage,
3477
3685
  options: StreamMethodOptions
3478
- ): GaxiosPromise<Readable>;
3686
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3479
3687
  getHomepage(
3480
3688
  params?: Params$Resource$Accounts$Homepage$Gethomepage,
3481
3689
  options?: MethodOptions
3482
- ): GaxiosPromise<Schema$Homepage>;
3690
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Homepage>>;
3483
3691
  getHomepage(
3484
3692
  params: Params$Resource$Accounts$Homepage$Gethomepage,
3485
3693
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3508,7 +3716,10 @@ export namespace merchantapi_accounts_v1beta {
3508
3716
  callback?:
3509
3717
  | BodyResponseCallback<Schema$Homepage>
3510
3718
  | BodyResponseCallback<Readable>
3511
- ): void | GaxiosPromise<Schema$Homepage> | GaxiosPromise<Readable> {
3719
+ ):
3720
+ | void
3721
+ | Promise<GaxiosResponseWithHTTP2<Schema$Homepage>>
3722
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3512
3723
  let params = (paramsOrCallback ||
3513
3724
  {}) as Params$Resource$Accounts$Homepage$Gethomepage;
3514
3725
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3563,11 +3774,11 @@ export namespace merchantapi_accounts_v1beta {
3563
3774
  unclaim(
3564
3775
  params: Params$Resource$Accounts$Homepage$Unclaim,
3565
3776
  options: StreamMethodOptions
3566
- ): GaxiosPromise<Readable>;
3777
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3567
3778
  unclaim(
3568
3779
  params?: Params$Resource$Accounts$Homepage$Unclaim,
3569
3780
  options?: MethodOptions
3570
- ): GaxiosPromise<Schema$Homepage>;
3781
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Homepage>>;
3571
3782
  unclaim(
3572
3783
  params: Params$Resource$Accounts$Homepage$Unclaim,
3573
3784
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3596,7 +3807,10 @@ export namespace merchantapi_accounts_v1beta {
3596
3807
  callback?:
3597
3808
  | BodyResponseCallback<Schema$Homepage>
3598
3809
  | BodyResponseCallback<Readable>
3599
- ): void | GaxiosPromise<Schema$Homepage> | GaxiosPromise<Readable> {
3810
+ ):
3811
+ | void
3812
+ | Promise<GaxiosResponseWithHTTP2<Schema$Homepage>>
3813
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3600
3814
  let params = (paramsOrCallback ||
3601
3815
  {}) as Params$Resource$Accounts$Homepage$Unclaim;
3602
3816
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3651,11 +3865,11 @@ export namespace merchantapi_accounts_v1beta {
3651
3865
  updateHomepage(
3652
3866
  params: Params$Resource$Accounts$Homepage$Updatehomepage,
3653
3867
  options: StreamMethodOptions
3654
- ): GaxiosPromise<Readable>;
3868
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3655
3869
  updateHomepage(
3656
3870
  params?: Params$Resource$Accounts$Homepage$Updatehomepage,
3657
3871
  options?: MethodOptions
3658
- ): GaxiosPromise<Schema$Homepage>;
3872
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Homepage>>;
3659
3873
  updateHomepage(
3660
3874
  params: Params$Resource$Accounts$Homepage$Updatehomepage,
3661
3875
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3684,8 +3898,11 @@ export namespace merchantapi_accounts_v1beta {
3684
3898
  callback?:
3685
3899
  | BodyResponseCallback<Schema$Homepage>
3686
3900
  | BodyResponseCallback<Readable>
3687
- ): void | GaxiosPromise<Schema$Homepage> | GaxiosPromise<Readable> {
3688
- let params = (paramsOrCallback ||
3901
+ ):
3902
+ | void
3903
+ | Promise<GaxiosResponseWithHTTP2<Schema$Homepage>>
3904
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3905
+ let params = (paramsOrCallback ||
3689
3906
  {}) as Params$Resource$Accounts$Homepage$Updatehomepage;
3690
3907
  let options = (optionsOrCallback || {}) as MethodOptions;
3691
3908
 
@@ -3784,7 +4001,7 @@ export namespace merchantapi_accounts_v1beta {
3784
4001
  }
3785
4002
 
3786
4003
  /**
3787
- * Lists all account issues of a Merchant Center account.
4004
+ * Lists all account issues of a Merchant Center account. When called on a multi-client account, this method only returns issues belonging to that account, not its sub-accounts. To retrieve issues for sub-accounts, you must first call the accounts.listSubaccounts method to obtain a list of sub-accounts, and then call `accounts.issues.list` for each sub-account individually.
3788
4005
  *
3789
4006
  * @param params - Parameters for request
3790
4007
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3794,11 +4011,11 @@ export namespace merchantapi_accounts_v1beta {
3794
4011
  list(
3795
4012
  params: Params$Resource$Accounts$Issues$List,
3796
4013
  options: StreamMethodOptions
3797
- ): GaxiosPromise<Readable>;
4014
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3798
4015
  list(
3799
4016
  params?: Params$Resource$Accounts$Issues$List,
3800
4017
  options?: MethodOptions
3801
- ): GaxiosPromise<Schema$ListAccountIssuesResponse>;
4018
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListAccountIssuesResponse>>;
3802
4019
  list(
3803
4020
  params: Params$Resource$Accounts$Issues$List,
3804
4021
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3833,8 +4050,8 @@ export namespace merchantapi_accounts_v1beta {
3833
4050
  | BodyResponseCallback<Readable>
3834
4051
  ):
3835
4052
  | void
3836
- | GaxiosPromise<Schema$ListAccountIssuesResponse>
3837
- | GaxiosPromise<Readable> {
4053
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListAccountIssuesResponse>>
4054
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3838
4055
  let params = (paramsOrCallback ||
3839
4056
  {}) as Params$Resource$Accounts$Issues$List;
3840
4057
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3886,7 +4103,7 @@ export namespace merchantapi_accounts_v1beta {
3886
4103
  */
3887
4104
  languageCode?: string;
3888
4105
  /**
3889
- * Optional. The maximum number of issues 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
4106
+ * Optional. The maximum number of issues to return. The service may return fewer than this value. If unspecified, at most 50 issues will be returned. The maximum value is 100; values above 100 will be coerced to 100
3890
4107
  */
3891
4108
  pageSize?: number;
3892
4109
  /**
@@ -3920,11 +4137,11 @@ export namespace merchantapi_accounts_v1beta {
3920
4137
  get(
3921
4138
  params: Params$Resource$Accounts$Onlinereturnpolicies$Get,
3922
4139
  options: StreamMethodOptions
3923
- ): GaxiosPromise<Readable>;
4140
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3924
4141
  get(
3925
4142
  params?: Params$Resource$Accounts$Onlinereturnpolicies$Get,
3926
4143
  options?: MethodOptions
3927
- ): GaxiosPromise<Schema$OnlineReturnPolicy>;
4144
+ ): Promise<GaxiosResponseWithHTTP2<Schema$OnlineReturnPolicy>>;
3928
4145
  get(
3929
4146
  params: Params$Resource$Accounts$Onlinereturnpolicies$Get,
3930
4147
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3955,8 +4172,8 @@ export namespace merchantapi_accounts_v1beta {
3955
4172
  | BodyResponseCallback<Readable>
3956
4173
  ):
3957
4174
  | void
3958
- | GaxiosPromise<Schema$OnlineReturnPolicy>
3959
- | GaxiosPromise<Readable> {
4175
+ | Promise<GaxiosResponseWithHTTP2<Schema$OnlineReturnPolicy>>
4176
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3960
4177
  let params = (paramsOrCallback ||
3961
4178
  {}) as Params$Resource$Accounts$Onlinereturnpolicies$Get;
3962
4179
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4011,11 +4228,13 @@ export namespace merchantapi_accounts_v1beta {
4011
4228
  list(
4012
4229
  params: Params$Resource$Accounts$Onlinereturnpolicies$List,
4013
4230
  options: StreamMethodOptions
4014
- ): GaxiosPromise<Readable>;
4231
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4015
4232
  list(
4016
4233
  params?: Params$Resource$Accounts$Onlinereturnpolicies$List,
4017
4234
  options?: MethodOptions
4018
- ): GaxiosPromise<Schema$ListOnlineReturnPoliciesResponse>;
4235
+ ): Promise<
4236
+ GaxiosResponseWithHTTP2<Schema$ListOnlineReturnPoliciesResponse>
4237
+ >;
4019
4238
  list(
4020
4239
  params: Params$Resource$Accounts$Onlinereturnpolicies$List,
4021
4240
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4050,8 +4269,10 @@ export namespace merchantapi_accounts_v1beta {
4050
4269
  | BodyResponseCallback<Readable>
4051
4270
  ):
4052
4271
  | void
4053
- | GaxiosPromise<Schema$ListOnlineReturnPoliciesResponse>
4054
- | GaxiosPromise<Readable> {
4272
+ | Promise<
4273
+ GaxiosResponseWithHTTP2<Schema$ListOnlineReturnPoliciesResponse>
4274
+ >
4275
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4055
4276
  let params = (paramsOrCallback ||
4056
4277
  {}) as Params$Resource$Accounts$Onlinereturnpolicies$List;
4057
4278
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4137,11 +4358,11 @@ export namespace merchantapi_accounts_v1beta {
4137
4358
  disable(
4138
4359
  params: Params$Resource$Accounts$Programs$Disable,
4139
4360
  options: StreamMethodOptions
4140
- ): GaxiosPromise<Readable>;
4361
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4141
4362
  disable(
4142
4363
  params?: Params$Resource$Accounts$Programs$Disable,
4143
4364
  options?: MethodOptions
4144
- ): GaxiosPromise<Schema$Program>;
4365
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Program>>;
4145
4366
  disable(
4146
4367
  params: Params$Resource$Accounts$Programs$Disable,
4147
4368
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4170,7 +4391,10 @@ export namespace merchantapi_accounts_v1beta {
4170
4391
  callback?:
4171
4392
  | BodyResponseCallback<Schema$Program>
4172
4393
  | BodyResponseCallback<Readable>
4173
- ): void | GaxiosPromise<Schema$Program> | GaxiosPromise<Readable> {
4394
+ ):
4395
+ | void
4396
+ | Promise<GaxiosResponseWithHTTP2<Schema$Program>>
4397
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4174
4398
  let params = (paramsOrCallback ||
4175
4399
  {}) as Params$Resource$Accounts$Programs$Disable;
4176
4400
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4225,11 +4449,11 @@ export namespace merchantapi_accounts_v1beta {
4225
4449
  enable(
4226
4450
  params: Params$Resource$Accounts$Programs$Enable,
4227
4451
  options: StreamMethodOptions
4228
- ): GaxiosPromise<Readable>;
4452
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4229
4453
  enable(
4230
4454
  params?: Params$Resource$Accounts$Programs$Enable,
4231
4455
  options?: MethodOptions
4232
- ): GaxiosPromise<Schema$Program>;
4456
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Program>>;
4233
4457
  enable(
4234
4458
  params: Params$Resource$Accounts$Programs$Enable,
4235
4459
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4258,7 +4482,10 @@ export namespace merchantapi_accounts_v1beta {
4258
4482
  callback?:
4259
4483
  | BodyResponseCallback<Schema$Program>
4260
4484
  | BodyResponseCallback<Readable>
4261
- ): void | GaxiosPromise<Schema$Program> | GaxiosPromise<Readable> {
4485
+ ):
4486
+ | void
4487
+ | Promise<GaxiosResponseWithHTTP2<Schema$Program>>
4488
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4262
4489
  let params = (paramsOrCallback ||
4263
4490
  {}) as Params$Resource$Accounts$Programs$Enable;
4264
4491
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4313,11 +4540,11 @@ export namespace merchantapi_accounts_v1beta {
4313
4540
  get(
4314
4541
  params: Params$Resource$Accounts$Programs$Get,
4315
4542
  options: StreamMethodOptions
4316
- ): GaxiosPromise<Readable>;
4543
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4317
4544
  get(
4318
4545
  params?: Params$Resource$Accounts$Programs$Get,
4319
4546
  options?: MethodOptions
4320
- ): GaxiosPromise<Schema$Program>;
4547
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Program>>;
4321
4548
  get(
4322
4549
  params: Params$Resource$Accounts$Programs$Get,
4323
4550
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4346,7 +4573,10 @@ export namespace merchantapi_accounts_v1beta {
4346
4573
  callback?:
4347
4574
  | BodyResponseCallback<Schema$Program>
4348
4575
  | BodyResponseCallback<Readable>
4349
- ): void | GaxiosPromise<Schema$Program> | GaxiosPromise<Readable> {
4576
+ ):
4577
+ | void
4578
+ | Promise<GaxiosResponseWithHTTP2<Schema$Program>>
4579
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4350
4580
  let params = (paramsOrCallback ||
4351
4581
  {}) as Params$Resource$Accounts$Programs$Get;
4352
4582
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4401,11 +4631,11 @@ export namespace merchantapi_accounts_v1beta {
4401
4631
  list(
4402
4632
  params: Params$Resource$Accounts$Programs$List,
4403
4633
  options: StreamMethodOptions
4404
- ): GaxiosPromise<Readable>;
4634
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4405
4635
  list(
4406
4636
  params?: Params$Resource$Accounts$Programs$List,
4407
4637
  options?: MethodOptions
4408
- ): GaxiosPromise<Schema$ListProgramsResponse>;
4638
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListProgramsResponse>>;
4409
4639
  list(
4410
4640
  params: Params$Resource$Accounts$Programs$List,
4411
4641
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4438,8 +4668,8 @@ export namespace merchantapi_accounts_v1beta {
4438
4668
  | BodyResponseCallback<Readable>
4439
4669
  ):
4440
4670
  | void
4441
- | GaxiosPromise<Schema$ListProgramsResponse>
4442
- | GaxiosPromise<Readable> {
4671
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListProgramsResponse>>
4672
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4443
4673
  let params = (paramsOrCallback ||
4444
4674
  {}) as Params$Resource$Accounts$Programs$List;
4445
4675
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4518,77 +4748,933 @@ export namespace merchantapi_accounts_v1beta {
4518
4748
  export interface Params$Resource$Accounts$Programs$List
4519
4749
  extends StandardParameters {
4520
4750
  /**
4521
- * 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.
4751
+ * 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.
4752
+ */
4753
+ pageSize?: number;
4754
+ /**
4755
+ * Optional. A continuation token, received from a previous `ListPrograms` call. Provide this to retrieve the next page.
4756
+ */
4757
+ pageToken?: string;
4758
+ /**
4759
+ * Required. The name of the account for which to retrieve all programs. Format: `accounts/{account\}`
4760
+ */
4761
+ parent?: string;
4762
+ }
4763
+
4764
+ export class Resource$Accounts$Regions {
4765
+ context: APIRequestContext;
4766
+ constructor(context: APIRequestContext) {
4767
+ this.context = context;
4768
+ }
4769
+
4770
+ /**
4771
+ * Creates a region definition in your Merchant Center account. Executing this method requires admin access.
4772
+ *
4773
+ * @param params - Parameters for request
4774
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4775
+ * @param callback - Optional callback that handles the response.
4776
+ * @returns A promise if used with async/await, or void if used with a callback.
4777
+ */
4778
+ create(
4779
+ params: Params$Resource$Accounts$Regions$Create,
4780
+ options: StreamMethodOptions
4781
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4782
+ create(
4783
+ params?: Params$Resource$Accounts$Regions$Create,
4784
+ options?: MethodOptions
4785
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Region>>;
4786
+ create(
4787
+ params: Params$Resource$Accounts$Regions$Create,
4788
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4789
+ callback: BodyResponseCallback<Readable>
4790
+ ): void;
4791
+ create(
4792
+ params: Params$Resource$Accounts$Regions$Create,
4793
+ options: MethodOptions | BodyResponseCallback<Schema$Region>,
4794
+ callback: BodyResponseCallback<Schema$Region>
4795
+ ): void;
4796
+ create(
4797
+ params: Params$Resource$Accounts$Regions$Create,
4798
+ callback: BodyResponseCallback<Schema$Region>
4799
+ ): void;
4800
+ create(callback: BodyResponseCallback<Schema$Region>): void;
4801
+ create(
4802
+ paramsOrCallback?:
4803
+ | Params$Resource$Accounts$Regions$Create
4804
+ | BodyResponseCallback<Schema$Region>
4805
+ | BodyResponseCallback<Readable>,
4806
+ optionsOrCallback?:
4807
+ | MethodOptions
4808
+ | StreamMethodOptions
4809
+ | BodyResponseCallback<Schema$Region>
4810
+ | BodyResponseCallback<Readable>,
4811
+ callback?:
4812
+ | BodyResponseCallback<Schema$Region>
4813
+ | BodyResponseCallback<Readable>
4814
+ ):
4815
+ | void
4816
+ | Promise<GaxiosResponseWithHTTP2<Schema$Region>>
4817
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4818
+ let params = (paramsOrCallback ||
4819
+ {}) as Params$Resource$Accounts$Regions$Create;
4820
+ let options = (optionsOrCallback || {}) as MethodOptions;
4821
+
4822
+ if (typeof paramsOrCallback === 'function') {
4823
+ callback = paramsOrCallback;
4824
+ params = {} as Params$Resource$Accounts$Regions$Create;
4825
+ options = {};
4826
+ }
4827
+
4828
+ if (typeof optionsOrCallback === 'function') {
4829
+ callback = optionsOrCallback;
4830
+ options = {};
4831
+ }
4832
+
4833
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
4834
+ const parameters = {
4835
+ options: Object.assign(
4836
+ {
4837
+ url: (rootUrl + '/accounts/v1beta/{+parent}/regions').replace(
4838
+ /([^:]\/)\/+/g,
4839
+ '$1'
4840
+ ),
4841
+ method: 'POST',
4842
+ apiVersion: '',
4843
+ },
4844
+ options
4845
+ ),
4846
+ params,
4847
+ requiredParams: ['parent'],
4848
+ pathParams: ['parent'],
4849
+ context: this.context,
4850
+ };
4851
+ if (callback) {
4852
+ createAPIRequest<Schema$Region>(
4853
+ parameters,
4854
+ callback as BodyResponseCallback<unknown>
4855
+ );
4856
+ } else {
4857
+ return createAPIRequest<Schema$Region>(parameters);
4858
+ }
4859
+ }
4860
+
4861
+ /**
4862
+ * Deletes a region definition from your Merchant Center account. Executing this method requires admin access.
4863
+ *
4864
+ * @param params - Parameters for request
4865
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4866
+ * @param callback - Optional callback that handles the response.
4867
+ * @returns A promise if used with async/await, or void if used with a callback.
4868
+ */
4869
+ delete(
4870
+ params: Params$Resource$Accounts$Regions$Delete,
4871
+ options: StreamMethodOptions
4872
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4873
+ delete(
4874
+ params?: Params$Resource$Accounts$Regions$Delete,
4875
+ options?: MethodOptions
4876
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
4877
+ delete(
4878
+ params: Params$Resource$Accounts$Regions$Delete,
4879
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4880
+ callback: BodyResponseCallback<Readable>
4881
+ ): void;
4882
+ delete(
4883
+ params: Params$Resource$Accounts$Regions$Delete,
4884
+ options: MethodOptions | BodyResponseCallback<Schema$Empty>,
4885
+ callback: BodyResponseCallback<Schema$Empty>
4886
+ ): void;
4887
+ delete(
4888
+ params: Params$Resource$Accounts$Regions$Delete,
4889
+ callback: BodyResponseCallback<Schema$Empty>
4890
+ ): void;
4891
+ delete(callback: BodyResponseCallback<Schema$Empty>): void;
4892
+ delete(
4893
+ paramsOrCallback?:
4894
+ | Params$Resource$Accounts$Regions$Delete
4895
+ | BodyResponseCallback<Schema$Empty>
4896
+ | BodyResponseCallback<Readable>,
4897
+ optionsOrCallback?:
4898
+ | MethodOptions
4899
+ | StreamMethodOptions
4900
+ | BodyResponseCallback<Schema$Empty>
4901
+ | BodyResponseCallback<Readable>,
4902
+ callback?:
4903
+ | BodyResponseCallback<Schema$Empty>
4904
+ | BodyResponseCallback<Readable>
4905
+ ):
4906
+ | void
4907
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
4908
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4909
+ let params = (paramsOrCallback ||
4910
+ {}) as Params$Resource$Accounts$Regions$Delete;
4911
+ let options = (optionsOrCallback || {}) as MethodOptions;
4912
+
4913
+ if (typeof paramsOrCallback === 'function') {
4914
+ callback = paramsOrCallback;
4915
+ params = {} as Params$Resource$Accounts$Regions$Delete;
4916
+ options = {};
4917
+ }
4918
+
4919
+ if (typeof optionsOrCallback === 'function') {
4920
+ callback = optionsOrCallback;
4921
+ options = {};
4922
+ }
4923
+
4924
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
4925
+ const parameters = {
4926
+ options: Object.assign(
4927
+ {
4928
+ url: (rootUrl + '/accounts/v1beta/{+name}').replace(
4929
+ /([^:]\/)\/+/g,
4930
+ '$1'
4931
+ ),
4932
+ method: 'DELETE',
4933
+ apiVersion: '',
4934
+ },
4935
+ options
4936
+ ),
4937
+ params,
4938
+ requiredParams: ['name'],
4939
+ pathParams: ['name'],
4940
+ context: this.context,
4941
+ };
4942
+ if (callback) {
4943
+ createAPIRequest<Schema$Empty>(
4944
+ parameters,
4945
+ callback as BodyResponseCallback<unknown>
4946
+ );
4947
+ } else {
4948
+ return createAPIRequest<Schema$Empty>(parameters);
4949
+ }
4950
+ }
4951
+
4952
+ /**
4953
+ * Retrieves a region defined in your Merchant Center account.
4954
+ *
4955
+ * @param params - Parameters for request
4956
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4957
+ * @param callback - Optional callback that handles the response.
4958
+ * @returns A promise if used with async/await, or void if used with a callback.
4959
+ */
4960
+ get(
4961
+ params: Params$Resource$Accounts$Regions$Get,
4962
+ options: StreamMethodOptions
4963
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4964
+ get(
4965
+ params?: Params$Resource$Accounts$Regions$Get,
4966
+ options?: MethodOptions
4967
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Region>>;
4968
+ get(
4969
+ params: Params$Resource$Accounts$Regions$Get,
4970
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4971
+ callback: BodyResponseCallback<Readable>
4972
+ ): void;
4973
+ get(
4974
+ params: Params$Resource$Accounts$Regions$Get,
4975
+ options: MethodOptions | BodyResponseCallback<Schema$Region>,
4976
+ callback: BodyResponseCallback<Schema$Region>
4977
+ ): void;
4978
+ get(
4979
+ params: Params$Resource$Accounts$Regions$Get,
4980
+ callback: BodyResponseCallback<Schema$Region>
4981
+ ): void;
4982
+ get(callback: BodyResponseCallback<Schema$Region>): void;
4983
+ get(
4984
+ paramsOrCallback?:
4985
+ | Params$Resource$Accounts$Regions$Get
4986
+ | BodyResponseCallback<Schema$Region>
4987
+ | BodyResponseCallback<Readable>,
4988
+ optionsOrCallback?:
4989
+ | MethodOptions
4990
+ | StreamMethodOptions
4991
+ | BodyResponseCallback<Schema$Region>
4992
+ | BodyResponseCallback<Readable>,
4993
+ callback?:
4994
+ | BodyResponseCallback<Schema$Region>
4995
+ | BodyResponseCallback<Readable>
4996
+ ):
4997
+ | void
4998
+ | Promise<GaxiosResponseWithHTTP2<Schema$Region>>
4999
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5000
+ let params = (paramsOrCallback ||
5001
+ {}) as Params$Resource$Accounts$Regions$Get;
5002
+ let options = (optionsOrCallback || {}) as MethodOptions;
5003
+
5004
+ if (typeof paramsOrCallback === 'function') {
5005
+ callback = paramsOrCallback;
5006
+ params = {} as Params$Resource$Accounts$Regions$Get;
5007
+ options = {};
5008
+ }
5009
+
5010
+ if (typeof optionsOrCallback === 'function') {
5011
+ callback = optionsOrCallback;
5012
+ options = {};
5013
+ }
5014
+
5015
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
5016
+ const parameters = {
5017
+ options: Object.assign(
5018
+ {
5019
+ url: (rootUrl + '/accounts/v1beta/{+name}').replace(
5020
+ /([^:]\/)\/+/g,
5021
+ '$1'
5022
+ ),
5023
+ method: 'GET',
5024
+ apiVersion: '',
5025
+ },
5026
+ options
5027
+ ),
5028
+ params,
5029
+ requiredParams: ['name'],
5030
+ pathParams: ['name'],
5031
+ context: this.context,
5032
+ };
5033
+ if (callback) {
5034
+ createAPIRequest<Schema$Region>(
5035
+ parameters,
5036
+ callback as BodyResponseCallback<unknown>
5037
+ );
5038
+ } else {
5039
+ return createAPIRequest<Schema$Region>(parameters);
5040
+ }
5041
+ }
5042
+
5043
+ /**
5044
+ * Lists the regions in your Merchant Center account.
5045
+ *
5046
+ * @param params - Parameters for request
5047
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5048
+ * @param callback - Optional callback that handles the response.
5049
+ * @returns A promise if used with async/await, or void if used with a callback.
5050
+ */
5051
+ list(
5052
+ params: Params$Resource$Accounts$Regions$List,
5053
+ options: StreamMethodOptions
5054
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5055
+ list(
5056
+ params?: Params$Resource$Accounts$Regions$List,
5057
+ options?: MethodOptions
5058
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListRegionsResponse>>;
5059
+ list(
5060
+ params: Params$Resource$Accounts$Regions$List,
5061
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5062
+ callback: BodyResponseCallback<Readable>
5063
+ ): void;
5064
+ list(
5065
+ params: Params$Resource$Accounts$Regions$List,
5066
+ options: MethodOptions | BodyResponseCallback<Schema$ListRegionsResponse>,
5067
+ callback: BodyResponseCallback<Schema$ListRegionsResponse>
5068
+ ): void;
5069
+ list(
5070
+ params: Params$Resource$Accounts$Regions$List,
5071
+ callback: BodyResponseCallback<Schema$ListRegionsResponse>
5072
+ ): void;
5073
+ list(callback: BodyResponseCallback<Schema$ListRegionsResponse>): void;
5074
+ list(
5075
+ paramsOrCallback?:
5076
+ | Params$Resource$Accounts$Regions$List
5077
+ | BodyResponseCallback<Schema$ListRegionsResponse>
5078
+ | BodyResponseCallback<Readable>,
5079
+ optionsOrCallback?:
5080
+ | MethodOptions
5081
+ | StreamMethodOptions
5082
+ | BodyResponseCallback<Schema$ListRegionsResponse>
5083
+ | BodyResponseCallback<Readable>,
5084
+ callback?:
5085
+ | BodyResponseCallback<Schema$ListRegionsResponse>
5086
+ | BodyResponseCallback<Readable>
5087
+ ):
5088
+ | void
5089
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListRegionsResponse>>
5090
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5091
+ let params = (paramsOrCallback ||
5092
+ {}) as Params$Resource$Accounts$Regions$List;
5093
+ let options = (optionsOrCallback || {}) as MethodOptions;
5094
+
5095
+ if (typeof paramsOrCallback === 'function') {
5096
+ callback = paramsOrCallback;
5097
+ params = {} as Params$Resource$Accounts$Regions$List;
5098
+ options = {};
5099
+ }
5100
+
5101
+ if (typeof optionsOrCallback === 'function') {
5102
+ callback = optionsOrCallback;
5103
+ options = {};
5104
+ }
5105
+
5106
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
5107
+ const parameters = {
5108
+ options: Object.assign(
5109
+ {
5110
+ url: (rootUrl + '/accounts/v1beta/{+parent}/regions').replace(
5111
+ /([^:]\/)\/+/g,
5112
+ '$1'
5113
+ ),
5114
+ method: 'GET',
5115
+ apiVersion: '',
5116
+ },
5117
+ options
5118
+ ),
5119
+ params,
5120
+ requiredParams: ['parent'],
5121
+ pathParams: ['parent'],
5122
+ context: this.context,
5123
+ };
5124
+ if (callback) {
5125
+ createAPIRequest<Schema$ListRegionsResponse>(
5126
+ parameters,
5127
+ callback as BodyResponseCallback<unknown>
5128
+ );
5129
+ } else {
5130
+ return createAPIRequest<Schema$ListRegionsResponse>(parameters);
5131
+ }
5132
+ }
5133
+
5134
+ /**
5135
+ * Updates a region definition in your Merchant Center account. Executing this method requires admin access.
5136
+ *
5137
+ * @param params - Parameters for request
5138
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5139
+ * @param callback - Optional callback that handles the response.
5140
+ * @returns A promise if used with async/await, or void if used with a callback.
5141
+ */
5142
+ patch(
5143
+ params: Params$Resource$Accounts$Regions$Patch,
5144
+ options: StreamMethodOptions
5145
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5146
+ patch(
5147
+ params?: Params$Resource$Accounts$Regions$Patch,
5148
+ options?: MethodOptions
5149
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Region>>;
5150
+ patch(
5151
+ params: Params$Resource$Accounts$Regions$Patch,
5152
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5153
+ callback: BodyResponseCallback<Readable>
5154
+ ): void;
5155
+ patch(
5156
+ params: Params$Resource$Accounts$Regions$Patch,
5157
+ options: MethodOptions | BodyResponseCallback<Schema$Region>,
5158
+ callback: BodyResponseCallback<Schema$Region>
5159
+ ): void;
5160
+ patch(
5161
+ params: Params$Resource$Accounts$Regions$Patch,
5162
+ callback: BodyResponseCallback<Schema$Region>
5163
+ ): void;
5164
+ patch(callback: BodyResponseCallback<Schema$Region>): void;
5165
+ patch(
5166
+ paramsOrCallback?:
5167
+ | Params$Resource$Accounts$Regions$Patch
5168
+ | BodyResponseCallback<Schema$Region>
5169
+ | BodyResponseCallback<Readable>,
5170
+ optionsOrCallback?:
5171
+ | MethodOptions
5172
+ | StreamMethodOptions
5173
+ | BodyResponseCallback<Schema$Region>
5174
+ | BodyResponseCallback<Readable>,
5175
+ callback?:
5176
+ | BodyResponseCallback<Schema$Region>
5177
+ | BodyResponseCallback<Readable>
5178
+ ):
5179
+ | void
5180
+ | Promise<GaxiosResponseWithHTTP2<Schema$Region>>
5181
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5182
+ let params = (paramsOrCallback ||
5183
+ {}) as Params$Resource$Accounts$Regions$Patch;
5184
+ let options = (optionsOrCallback || {}) as MethodOptions;
5185
+
5186
+ if (typeof paramsOrCallback === 'function') {
5187
+ callback = paramsOrCallback;
5188
+ params = {} as Params$Resource$Accounts$Regions$Patch;
5189
+ options = {};
5190
+ }
5191
+
5192
+ if (typeof optionsOrCallback === 'function') {
5193
+ callback = optionsOrCallback;
5194
+ options = {};
5195
+ }
5196
+
5197
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
5198
+ const parameters = {
5199
+ options: Object.assign(
5200
+ {
5201
+ url: (rootUrl + '/accounts/v1beta/{+name}').replace(
5202
+ /([^:]\/)\/+/g,
5203
+ '$1'
5204
+ ),
5205
+ method: 'PATCH',
5206
+ apiVersion: '',
5207
+ },
5208
+ options
5209
+ ),
5210
+ params,
5211
+ requiredParams: ['name'],
5212
+ pathParams: ['name'],
5213
+ context: this.context,
5214
+ };
5215
+ if (callback) {
5216
+ createAPIRequest<Schema$Region>(
5217
+ parameters,
5218
+ callback as BodyResponseCallback<unknown>
5219
+ );
5220
+ } else {
5221
+ return createAPIRequest<Schema$Region>(parameters);
5222
+ }
5223
+ }
5224
+ }
5225
+
5226
+ export interface Params$Resource$Accounts$Regions$Create
5227
+ extends StandardParameters {
5228
+ /**
5229
+ * Required. The account to create a region for. Format: `accounts/{account\}`
5230
+ */
5231
+ parent?: string;
5232
+ /**
5233
+ * Required. The identifier for the region, unique over all regions of the same account.
5234
+ */
5235
+ regionId?: string;
5236
+
5237
+ /**
5238
+ * Request body metadata
5239
+ */
5240
+ requestBody?: Schema$Region;
5241
+ }
5242
+ export interface Params$Resource$Accounts$Regions$Delete
5243
+ extends StandardParameters {
5244
+ /**
5245
+ * Required. The name of the region to delete. Format: `accounts/{account\}/regions/{region\}`
5246
+ */
5247
+ name?: string;
5248
+ }
5249
+ export interface Params$Resource$Accounts$Regions$Get
5250
+ extends StandardParameters {
5251
+ /**
5252
+ * Required. The name of the region to retrieve. Format: `accounts/{account\}/regions/{region\}`
5253
+ */
5254
+ name?: string;
5255
+ }
5256
+ export interface Params$Resource$Accounts$Regions$List
5257
+ extends StandardParameters {
5258
+ /**
5259
+ * 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.
5260
+ */
5261
+ pageSize?: number;
5262
+ /**
5263
+ * Optional. A page token, received from a previous `ListRegions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRegions` must match the call that provided the page token.
5264
+ */
5265
+ pageToken?: string;
5266
+ /**
5267
+ * Required. The account to list regions for. Format: `accounts/{account\}`
5268
+ */
5269
+ parent?: string;
5270
+ }
5271
+ export interface Params$Resource$Accounts$Regions$Patch
5272
+ extends StandardParameters {
5273
+ /**
5274
+ * Identifier. The resource name of the region. Format: `accounts/{account\}/regions/{region\}`
5275
+ */
5276
+ name?: string;
5277
+ /**
5278
+ * Optional. The comma-separated field mask indicating the fields to update. Example: `"displayName,postalCodeArea.regionCode"`.
5279
+ */
5280
+ updateMask?: string;
5281
+
5282
+ /**
5283
+ * Request body metadata
5284
+ */
5285
+ requestBody?: Schema$Region;
5286
+ }
5287
+
5288
+ export class Resource$Accounts$Relationships {
5289
+ context: APIRequestContext;
5290
+ constructor(context: APIRequestContext) {
5291
+ this.context = context;
5292
+ }
5293
+
5294
+ /**
5295
+ * Retrieve an account relationship.
5296
+ *
5297
+ * @param params - Parameters for request
5298
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5299
+ * @param callback - Optional callback that handles the response.
5300
+ * @returns A promise if used with async/await, or void if used with a callback.
5301
+ */
5302
+ get(
5303
+ params: Params$Resource$Accounts$Relationships$Get,
5304
+ options: StreamMethodOptions
5305
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5306
+ get(
5307
+ params?: Params$Resource$Accounts$Relationships$Get,
5308
+ options?: MethodOptions
5309
+ ): Promise<GaxiosResponseWithHTTP2<Schema$AccountRelationship>>;
5310
+ get(
5311
+ params: Params$Resource$Accounts$Relationships$Get,
5312
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5313
+ callback: BodyResponseCallback<Readable>
5314
+ ): void;
5315
+ get(
5316
+ params: Params$Resource$Accounts$Relationships$Get,
5317
+ options: MethodOptions | BodyResponseCallback<Schema$AccountRelationship>,
5318
+ callback: BodyResponseCallback<Schema$AccountRelationship>
5319
+ ): void;
5320
+ get(
5321
+ params: Params$Resource$Accounts$Relationships$Get,
5322
+ callback: BodyResponseCallback<Schema$AccountRelationship>
5323
+ ): void;
5324
+ get(callback: BodyResponseCallback<Schema$AccountRelationship>): void;
5325
+ get(
5326
+ paramsOrCallback?:
5327
+ | Params$Resource$Accounts$Relationships$Get
5328
+ | BodyResponseCallback<Schema$AccountRelationship>
5329
+ | BodyResponseCallback<Readable>,
5330
+ optionsOrCallback?:
5331
+ | MethodOptions
5332
+ | StreamMethodOptions
5333
+ | BodyResponseCallback<Schema$AccountRelationship>
5334
+ | BodyResponseCallback<Readable>,
5335
+ callback?:
5336
+ | BodyResponseCallback<Schema$AccountRelationship>
5337
+ | BodyResponseCallback<Readable>
5338
+ ):
5339
+ | void
5340
+ | Promise<GaxiosResponseWithHTTP2<Schema$AccountRelationship>>
5341
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5342
+ let params = (paramsOrCallback ||
5343
+ {}) as Params$Resource$Accounts$Relationships$Get;
5344
+ let options = (optionsOrCallback || {}) as MethodOptions;
5345
+
5346
+ if (typeof paramsOrCallback === 'function') {
5347
+ callback = paramsOrCallback;
5348
+ params = {} as Params$Resource$Accounts$Relationships$Get;
5349
+ options = {};
5350
+ }
5351
+
5352
+ if (typeof optionsOrCallback === 'function') {
5353
+ callback = optionsOrCallback;
5354
+ options = {};
5355
+ }
5356
+
5357
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
5358
+ const parameters = {
5359
+ options: Object.assign(
5360
+ {
5361
+ url: (rootUrl + '/accounts/v1beta/{+name}').replace(
5362
+ /([^:]\/)\/+/g,
5363
+ '$1'
5364
+ ),
5365
+ method: 'GET',
5366
+ apiVersion: '',
5367
+ },
5368
+ options
5369
+ ),
5370
+ params,
5371
+ requiredParams: ['name'],
5372
+ pathParams: ['name'],
5373
+ context: this.context,
5374
+ };
5375
+ if (callback) {
5376
+ createAPIRequest<Schema$AccountRelationship>(
5377
+ parameters,
5378
+ callback as BodyResponseCallback<unknown>
5379
+ );
5380
+ } else {
5381
+ return createAPIRequest<Schema$AccountRelationship>(parameters);
5382
+ }
5383
+ }
5384
+
5385
+ /**
5386
+ * List account relationships for the specified account.
5387
+ *
5388
+ * @param params - Parameters for request
5389
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5390
+ * @param callback - Optional callback that handles the response.
5391
+ * @returns A promise if used with async/await, or void if used with a callback.
5392
+ */
5393
+ list(
5394
+ params: Params$Resource$Accounts$Relationships$List,
5395
+ options: StreamMethodOptions
5396
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5397
+ list(
5398
+ params?: Params$Resource$Accounts$Relationships$List,
5399
+ options?: MethodOptions
5400
+ ): Promise<
5401
+ GaxiosResponseWithHTTP2<Schema$ListAccountRelationshipsResponse>
5402
+ >;
5403
+ list(
5404
+ params: Params$Resource$Accounts$Relationships$List,
5405
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5406
+ callback: BodyResponseCallback<Readable>
5407
+ ): void;
5408
+ list(
5409
+ params: Params$Resource$Accounts$Relationships$List,
5410
+ options:
5411
+ | MethodOptions
5412
+ | BodyResponseCallback<Schema$ListAccountRelationshipsResponse>,
5413
+ callback: BodyResponseCallback<Schema$ListAccountRelationshipsResponse>
5414
+ ): void;
5415
+ list(
5416
+ params: Params$Resource$Accounts$Relationships$List,
5417
+ callback: BodyResponseCallback<Schema$ListAccountRelationshipsResponse>
5418
+ ): void;
5419
+ list(
5420
+ callback: BodyResponseCallback<Schema$ListAccountRelationshipsResponse>
5421
+ ): void;
5422
+ list(
5423
+ paramsOrCallback?:
5424
+ | Params$Resource$Accounts$Relationships$List
5425
+ | BodyResponseCallback<Schema$ListAccountRelationshipsResponse>
5426
+ | BodyResponseCallback<Readable>,
5427
+ optionsOrCallback?:
5428
+ | MethodOptions
5429
+ | StreamMethodOptions
5430
+ | BodyResponseCallback<Schema$ListAccountRelationshipsResponse>
5431
+ | BodyResponseCallback<Readable>,
5432
+ callback?:
5433
+ | BodyResponseCallback<Schema$ListAccountRelationshipsResponse>
5434
+ | BodyResponseCallback<Readable>
5435
+ ):
5436
+ | void
5437
+ | Promise<
5438
+ GaxiosResponseWithHTTP2<Schema$ListAccountRelationshipsResponse>
5439
+ >
5440
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5441
+ let params = (paramsOrCallback ||
5442
+ {}) as Params$Resource$Accounts$Relationships$List;
5443
+ let options = (optionsOrCallback || {}) as MethodOptions;
5444
+
5445
+ if (typeof paramsOrCallback === 'function') {
5446
+ callback = paramsOrCallback;
5447
+ params = {} as Params$Resource$Accounts$Relationships$List;
5448
+ options = {};
5449
+ }
5450
+
5451
+ if (typeof optionsOrCallback === 'function') {
5452
+ callback = optionsOrCallback;
5453
+ options = {};
5454
+ }
5455
+
5456
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
5457
+ const parameters = {
5458
+ options: Object.assign(
5459
+ {
5460
+ url: (rootUrl + '/accounts/v1beta/{+parent}/relationships').replace(
5461
+ /([^:]\/)\/+/g,
5462
+ '$1'
5463
+ ),
5464
+ method: 'GET',
5465
+ apiVersion: '',
5466
+ },
5467
+ options
5468
+ ),
5469
+ params,
5470
+ requiredParams: ['parent'],
5471
+ pathParams: ['parent'],
5472
+ context: this.context,
5473
+ };
5474
+ if (callback) {
5475
+ createAPIRequest<Schema$ListAccountRelationshipsResponse>(
5476
+ parameters,
5477
+ callback as BodyResponseCallback<unknown>
5478
+ );
5479
+ } else {
5480
+ return createAPIRequest<Schema$ListAccountRelationshipsResponse>(
5481
+ parameters
5482
+ );
5483
+ }
5484
+ }
5485
+
5486
+ /**
5487
+ * Updates the account relationship. Executing this method requires admin access.
5488
+ *
5489
+ * @param params - Parameters for request
5490
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5491
+ * @param callback - Optional callback that handles the response.
5492
+ * @returns A promise if used with async/await, or void if used with a callback.
5493
+ */
5494
+ patch(
5495
+ params: Params$Resource$Accounts$Relationships$Patch,
5496
+ options: StreamMethodOptions
5497
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5498
+ patch(
5499
+ params?: Params$Resource$Accounts$Relationships$Patch,
5500
+ options?: MethodOptions
5501
+ ): Promise<GaxiosResponseWithHTTP2<Schema$AccountRelationship>>;
5502
+ patch(
5503
+ params: Params$Resource$Accounts$Relationships$Patch,
5504
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5505
+ callback: BodyResponseCallback<Readable>
5506
+ ): void;
5507
+ patch(
5508
+ params: Params$Resource$Accounts$Relationships$Patch,
5509
+ options: MethodOptions | BodyResponseCallback<Schema$AccountRelationship>,
5510
+ callback: BodyResponseCallback<Schema$AccountRelationship>
5511
+ ): void;
5512
+ patch(
5513
+ params: Params$Resource$Accounts$Relationships$Patch,
5514
+ callback: BodyResponseCallback<Schema$AccountRelationship>
5515
+ ): void;
5516
+ patch(callback: BodyResponseCallback<Schema$AccountRelationship>): void;
5517
+ patch(
5518
+ paramsOrCallback?:
5519
+ | Params$Resource$Accounts$Relationships$Patch
5520
+ | BodyResponseCallback<Schema$AccountRelationship>
5521
+ | BodyResponseCallback<Readable>,
5522
+ optionsOrCallback?:
5523
+ | MethodOptions
5524
+ | StreamMethodOptions
5525
+ | BodyResponseCallback<Schema$AccountRelationship>
5526
+ | BodyResponseCallback<Readable>,
5527
+ callback?:
5528
+ | BodyResponseCallback<Schema$AccountRelationship>
5529
+ | BodyResponseCallback<Readable>
5530
+ ):
5531
+ | void
5532
+ | Promise<GaxiosResponseWithHTTP2<Schema$AccountRelationship>>
5533
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5534
+ let params = (paramsOrCallback ||
5535
+ {}) as Params$Resource$Accounts$Relationships$Patch;
5536
+ let options = (optionsOrCallback || {}) as MethodOptions;
5537
+
5538
+ if (typeof paramsOrCallback === 'function') {
5539
+ callback = paramsOrCallback;
5540
+ params = {} as Params$Resource$Accounts$Relationships$Patch;
5541
+ options = {};
5542
+ }
5543
+
5544
+ if (typeof optionsOrCallback === 'function') {
5545
+ callback = optionsOrCallback;
5546
+ options = {};
5547
+ }
5548
+
5549
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
5550
+ const parameters = {
5551
+ options: Object.assign(
5552
+ {
5553
+ url: (rootUrl + '/accounts/v1beta/{+name}').replace(
5554
+ /([^:]\/)\/+/g,
5555
+ '$1'
5556
+ ),
5557
+ method: 'PATCH',
5558
+ apiVersion: '',
5559
+ },
5560
+ options
5561
+ ),
5562
+ params,
5563
+ requiredParams: ['name'],
5564
+ pathParams: ['name'],
5565
+ context: this.context,
5566
+ };
5567
+ if (callback) {
5568
+ createAPIRequest<Schema$AccountRelationship>(
5569
+ parameters,
5570
+ callback as BodyResponseCallback<unknown>
5571
+ );
5572
+ } else {
5573
+ return createAPIRequest<Schema$AccountRelationship>(parameters);
5574
+ }
5575
+ }
5576
+ }
5577
+
5578
+ export interface Params$Resource$Accounts$Relationships$Get
5579
+ extends StandardParameters {
5580
+ /**
5581
+ * Required. The resource name of the account relationship to get. Format: `accounts/{account\}/relationships/{relationship\}`
5582
+ */
5583
+ name?: string;
5584
+ }
5585
+ export interface Params$Resource$Accounts$Relationships$List
5586
+ extends StandardParameters {
5587
+ /**
5588
+ * 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`.
5589
+ */
5590
+ pageSize?: number;
5591
+ /**
5592
+ * Optional. The token returned by the previous `list` request.
5593
+ */
5594
+ pageToken?: string;
5595
+ /**
5596
+ * Required. The parent account of the account relationship to filter by. Format: `accounts/{account\}`
5597
+ */
5598
+ parent?: string;
5599
+ }
5600
+ export interface Params$Resource$Accounts$Relationships$Patch
5601
+ extends StandardParameters {
5602
+ /**
5603
+ * Identifier. The resource name of the account relationship. Format: `accounts/{account\}/relationships/{relationship\}`
4522
5604
  */
4523
- pageSize?: number;
5605
+ name?: string;
4524
5606
  /**
4525
- * Optional. A continuation token, received from a previous `ListPrograms` call. Provide this to retrieve the next page.
5607
+ * Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `account_id_alias`
4526
5608
  */
4527
- pageToken?: string;
5609
+ updateMask?: string;
5610
+
4528
5611
  /**
4529
- * Required. The name of the account for which to retrieve all programs. Format: `accounts/{account\}`
5612
+ * Request body metadata
4530
5613
  */
4531
- parent?: string;
5614
+ requestBody?: Schema$AccountRelationship;
4532
5615
  }
4533
5616
 
4534
- export class Resource$Accounts$Regions {
5617
+ export class Resource$Accounts$Services {
4535
5618
  context: APIRequestContext;
4536
5619
  constructor(context: APIRequestContext) {
4537
5620
  this.context = context;
4538
5621
  }
4539
5622
 
4540
5623
  /**
4541
- * Creates a region definition in your Merchant Center account. Executing this method requires admin access.
5624
+ * Approve an account service proposal.
4542
5625
  *
4543
5626
  * @param params - Parameters for request
4544
5627
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4545
5628
  * @param callback - Optional callback that handles the response.
4546
5629
  * @returns A promise if used with async/await, or void if used with a callback.
4547
5630
  */
4548
- create(
4549
- params: Params$Resource$Accounts$Regions$Create,
5631
+ approve(
5632
+ params: Params$Resource$Accounts$Services$Approve,
4550
5633
  options: StreamMethodOptions
4551
- ): GaxiosPromise<Readable>;
4552
- create(
4553
- params?: Params$Resource$Accounts$Regions$Create,
5634
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5635
+ approve(
5636
+ params?: Params$Resource$Accounts$Services$Approve,
4554
5637
  options?: MethodOptions
4555
- ): GaxiosPromise<Schema$Region>;
4556
- create(
4557
- params: Params$Resource$Accounts$Regions$Create,
5638
+ ): Promise<GaxiosResponseWithHTTP2<Schema$AccountService>>;
5639
+ approve(
5640
+ params: Params$Resource$Accounts$Services$Approve,
4558
5641
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
4559
5642
  callback: BodyResponseCallback<Readable>
4560
5643
  ): void;
4561
- create(
4562
- params: Params$Resource$Accounts$Regions$Create,
4563
- options: MethodOptions | BodyResponseCallback<Schema$Region>,
4564
- callback: BodyResponseCallback<Schema$Region>
5644
+ approve(
5645
+ params: Params$Resource$Accounts$Services$Approve,
5646
+ options: MethodOptions | BodyResponseCallback<Schema$AccountService>,
5647
+ callback: BodyResponseCallback<Schema$AccountService>
4565
5648
  ): void;
4566
- create(
4567
- params: Params$Resource$Accounts$Regions$Create,
4568
- callback: BodyResponseCallback<Schema$Region>
5649
+ approve(
5650
+ params: Params$Resource$Accounts$Services$Approve,
5651
+ callback: BodyResponseCallback<Schema$AccountService>
4569
5652
  ): void;
4570
- create(callback: BodyResponseCallback<Schema$Region>): void;
4571
- create(
5653
+ approve(callback: BodyResponseCallback<Schema$AccountService>): void;
5654
+ approve(
4572
5655
  paramsOrCallback?:
4573
- | Params$Resource$Accounts$Regions$Create
4574
- | BodyResponseCallback<Schema$Region>
5656
+ | Params$Resource$Accounts$Services$Approve
5657
+ | BodyResponseCallback<Schema$AccountService>
4575
5658
  | BodyResponseCallback<Readable>,
4576
5659
  optionsOrCallback?:
4577
5660
  | MethodOptions
4578
5661
  | StreamMethodOptions
4579
- | BodyResponseCallback<Schema$Region>
5662
+ | BodyResponseCallback<Schema$AccountService>
4580
5663
  | BodyResponseCallback<Readable>,
4581
5664
  callback?:
4582
- | BodyResponseCallback<Schema$Region>
5665
+ | BodyResponseCallback<Schema$AccountService>
4583
5666
  | BodyResponseCallback<Readable>
4584
- ): void | GaxiosPromise<Schema$Region> | GaxiosPromise<Readable> {
5667
+ ):
5668
+ | void
5669
+ | Promise<GaxiosResponseWithHTTP2<Schema$AccountService>>
5670
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4585
5671
  let params = (paramsOrCallback ||
4586
- {}) as Params$Resource$Accounts$Regions$Create;
5672
+ {}) as Params$Resource$Accounts$Services$Approve;
4587
5673
  let options = (optionsOrCallback || {}) as MethodOptions;
4588
5674
 
4589
5675
  if (typeof paramsOrCallback === 'function') {
4590
5676
  callback = paramsOrCallback;
4591
- params = {} as Params$Resource$Accounts$Regions$Create;
5677
+ params = {} as Params$Resource$Accounts$Services$Approve;
4592
5678
  options = {};
4593
5679
  }
4594
5680
 
@@ -4601,7 +5687,7 @@ export namespace merchantapi_accounts_v1beta {
4601
5687
  const parameters = {
4602
5688
  options: Object.assign(
4603
5689
  {
4604
- url: (rootUrl + '/accounts/v1beta/{+parent}/regions').replace(
5690
+ url: (rootUrl + '/accounts/v1beta/{+name}:approve').replace(
4605
5691
  /([^:]\/)\/+/g,
4606
5692
  '$1'
4607
5693
  ),
@@ -4611,72 +5697,75 @@ export namespace merchantapi_accounts_v1beta {
4611
5697
  options
4612
5698
  ),
4613
5699
  params,
4614
- requiredParams: ['parent'],
4615
- pathParams: ['parent'],
5700
+ requiredParams: ['name'],
5701
+ pathParams: ['name'],
4616
5702
  context: this.context,
4617
5703
  };
4618
5704
  if (callback) {
4619
- createAPIRequest<Schema$Region>(
5705
+ createAPIRequest<Schema$AccountService>(
4620
5706
  parameters,
4621
5707
  callback as BodyResponseCallback<unknown>
4622
5708
  );
4623
5709
  } else {
4624
- return createAPIRequest<Schema$Region>(parameters);
5710
+ return createAPIRequest<Schema$AccountService>(parameters);
4625
5711
  }
4626
5712
  }
4627
5713
 
4628
5714
  /**
4629
- * Deletes a region definition from your Merchant Center account. Executing this method requires admin access.
5715
+ * Retrieve an account service.
4630
5716
  *
4631
5717
  * @param params - Parameters for request
4632
5718
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4633
5719
  * @param callback - Optional callback that handles the response.
4634
5720
  * @returns A promise if used with async/await, or void if used with a callback.
4635
5721
  */
4636
- delete(
4637
- params: Params$Resource$Accounts$Regions$Delete,
5722
+ get(
5723
+ params: Params$Resource$Accounts$Services$Get,
4638
5724
  options: StreamMethodOptions
4639
- ): GaxiosPromise<Readable>;
4640
- delete(
4641
- params?: Params$Resource$Accounts$Regions$Delete,
5725
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5726
+ get(
5727
+ params?: Params$Resource$Accounts$Services$Get,
4642
5728
  options?: MethodOptions
4643
- ): GaxiosPromise<Schema$Empty>;
4644
- delete(
4645
- params: Params$Resource$Accounts$Regions$Delete,
5729
+ ): Promise<GaxiosResponseWithHTTP2<Schema$AccountService>>;
5730
+ get(
5731
+ params: Params$Resource$Accounts$Services$Get,
4646
5732
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
4647
5733
  callback: BodyResponseCallback<Readable>
4648
5734
  ): void;
4649
- delete(
4650
- params: Params$Resource$Accounts$Regions$Delete,
4651
- options: MethodOptions | BodyResponseCallback<Schema$Empty>,
4652
- callback: BodyResponseCallback<Schema$Empty>
5735
+ get(
5736
+ params: Params$Resource$Accounts$Services$Get,
5737
+ options: MethodOptions | BodyResponseCallback<Schema$AccountService>,
5738
+ callback: BodyResponseCallback<Schema$AccountService>
4653
5739
  ): void;
4654
- delete(
4655
- params: Params$Resource$Accounts$Regions$Delete,
4656
- callback: BodyResponseCallback<Schema$Empty>
5740
+ get(
5741
+ params: Params$Resource$Accounts$Services$Get,
5742
+ callback: BodyResponseCallback<Schema$AccountService>
4657
5743
  ): void;
4658
- delete(callback: BodyResponseCallback<Schema$Empty>): void;
4659
- delete(
5744
+ get(callback: BodyResponseCallback<Schema$AccountService>): void;
5745
+ get(
4660
5746
  paramsOrCallback?:
4661
- | Params$Resource$Accounts$Regions$Delete
4662
- | BodyResponseCallback<Schema$Empty>
5747
+ | Params$Resource$Accounts$Services$Get
5748
+ | BodyResponseCallback<Schema$AccountService>
4663
5749
  | BodyResponseCallback<Readable>,
4664
5750
  optionsOrCallback?:
4665
5751
  | MethodOptions
4666
5752
  | StreamMethodOptions
4667
- | BodyResponseCallback<Schema$Empty>
5753
+ | BodyResponseCallback<Schema$AccountService>
4668
5754
  | BodyResponseCallback<Readable>,
4669
5755
  callback?:
4670
- | BodyResponseCallback<Schema$Empty>
5756
+ | BodyResponseCallback<Schema$AccountService>
4671
5757
  | BodyResponseCallback<Readable>
4672
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
5758
+ ):
5759
+ | void
5760
+ | Promise<GaxiosResponseWithHTTP2<Schema$AccountService>>
5761
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4673
5762
  let params = (paramsOrCallback ||
4674
- {}) as Params$Resource$Accounts$Regions$Delete;
5763
+ {}) as Params$Resource$Accounts$Services$Get;
4675
5764
  let options = (optionsOrCallback || {}) as MethodOptions;
4676
5765
 
4677
5766
  if (typeof paramsOrCallback === 'function') {
4678
5767
  callback = paramsOrCallback;
4679
- params = {} as Params$Resource$Accounts$Regions$Delete;
5768
+ params = {} as Params$Resource$Accounts$Services$Get;
4680
5769
  options = {};
4681
5770
  }
4682
5771
 
@@ -4693,7 +5782,7 @@ export namespace merchantapi_accounts_v1beta {
4693
5782
  /([^:]\/)\/+/g,
4694
5783
  '$1'
4695
5784
  ),
4696
- method: 'DELETE',
5785
+ method: 'GET',
4697
5786
  apiVersion: '',
4698
5787
  },
4699
5788
  options
@@ -4704,67 +5793,74 @@ export namespace merchantapi_accounts_v1beta {
4704
5793
  context: this.context,
4705
5794
  };
4706
5795
  if (callback) {
4707
- createAPIRequest<Schema$Empty>(
5796
+ createAPIRequest<Schema$AccountService>(
4708
5797
  parameters,
4709
5798
  callback as BodyResponseCallback<unknown>
4710
5799
  );
4711
5800
  } else {
4712
- return createAPIRequest<Schema$Empty>(parameters);
5801
+ return createAPIRequest<Schema$AccountService>(parameters);
4713
5802
  }
4714
5803
  }
4715
5804
 
4716
5805
  /**
4717
- * Retrieves a region defined in your Merchant Center account.
5806
+ * List account services for the specified accounts. Supports filtering.
4718
5807
  *
4719
5808
  * @param params - Parameters for request
4720
5809
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4721
5810
  * @param callback - Optional callback that handles the response.
4722
5811
  * @returns A promise if used with async/await, or void if used with a callback.
4723
5812
  */
4724
- get(
4725
- params: Params$Resource$Accounts$Regions$Get,
5813
+ list(
5814
+ params: Params$Resource$Accounts$Services$List,
4726
5815
  options: StreamMethodOptions
4727
- ): GaxiosPromise<Readable>;
4728
- get(
4729
- params?: Params$Resource$Accounts$Regions$Get,
5816
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5817
+ list(
5818
+ params?: Params$Resource$Accounts$Services$List,
4730
5819
  options?: MethodOptions
4731
- ): GaxiosPromise<Schema$Region>;
4732
- get(
4733
- params: Params$Resource$Accounts$Regions$Get,
5820
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListAccountServicesResponse>>;
5821
+ list(
5822
+ params: Params$Resource$Accounts$Services$List,
4734
5823
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
4735
5824
  callback: BodyResponseCallback<Readable>
4736
5825
  ): void;
4737
- get(
4738
- params: Params$Resource$Accounts$Regions$Get,
4739
- options: MethodOptions | BodyResponseCallback<Schema$Region>,
4740
- callback: BodyResponseCallback<Schema$Region>
5826
+ list(
5827
+ params: Params$Resource$Accounts$Services$List,
5828
+ options:
5829
+ | MethodOptions
5830
+ | BodyResponseCallback<Schema$ListAccountServicesResponse>,
5831
+ callback: BodyResponseCallback<Schema$ListAccountServicesResponse>
4741
5832
  ): void;
4742
- get(
4743
- params: Params$Resource$Accounts$Regions$Get,
4744
- callback: BodyResponseCallback<Schema$Region>
5833
+ list(
5834
+ params: Params$Resource$Accounts$Services$List,
5835
+ callback: BodyResponseCallback<Schema$ListAccountServicesResponse>
4745
5836
  ): void;
4746
- get(callback: BodyResponseCallback<Schema$Region>): void;
4747
- get(
5837
+ list(
5838
+ callback: BodyResponseCallback<Schema$ListAccountServicesResponse>
5839
+ ): void;
5840
+ list(
4748
5841
  paramsOrCallback?:
4749
- | Params$Resource$Accounts$Regions$Get
4750
- | BodyResponseCallback<Schema$Region>
5842
+ | Params$Resource$Accounts$Services$List
5843
+ | BodyResponseCallback<Schema$ListAccountServicesResponse>
4751
5844
  | BodyResponseCallback<Readable>,
4752
5845
  optionsOrCallback?:
4753
5846
  | MethodOptions
4754
5847
  | StreamMethodOptions
4755
- | BodyResponseCallback<Schema$Region>
5848
+ | BodyResponseCallback<Schema$ListAccountServicesResponse>
4756
5849
  | BodyResponseCallback<Readable>,
4757
5850
  callback?:
4758
- | BodyResponseCallback<Schema$Region>
5851
+ | BodyResponseCallback<Schema$ListAccountServicesResponse>
4759
5852
  | BodyResponseCallback<Readable>
4760
- ): void | GaxiosPromise<Schema$Region> | GaxiosPromise<Readable> {
5853
+ ):
5854
+ | void
5855
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListAccountServicesResponse>>
5856
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4761
5857
  let params = (paramsOrCallback ||
4762
- {}) as Params$Resource$Accounts$Regions$Get;
5858
+ {}) as Params$Resource$Accounts$Services$List;
4763
5859
  let options = (optionsOrCallback || {}) as MethodOptions;
4764
5860
 
4765
5861
  if (typeof paramsOrCallback === 'function') {
4766
5862
  callback = paramsOrCallback;
4767
- params = {} as Params$Resource$Accounts$Regions$Get;
5863
+ params = {} as Params$Resource$Accounts$Services$List;
4768
5864
  options = {};
4769
5865
  }
4770
5866
 
@@ -4777,7 +5873,7 @@ export namespace merchantapi_accounts_v1beta {
4777
5873
  const parameters = {
4778
5874
  options: Object.assign(
4779
5875
  {
4780
- url: (rootUrl + '/accounts/v1beta/{+name}').replace(
5876
+ url: (rootUrl + '/accounts/v1beta/{+parent}/services').replace(
4781
5877
  /([^:]\/)\/+/g,
4782
5878
  '$1'
4783
5879
  ),
@@ -4787,75 +5883,75 @@ export namespace merchantapi_accounts_v1beta {
4787
5883
  options
4788
5884
  ),
4789
5885
  params,
4790
- requiredParams: ['name'],
4791
- pathParams: ['name'],
5886
+ requiredParams: ['parent'],
5887
+ pathParams: ['parent'],
4792
5888
  context: this.context,
4793
5889
  };
4794
5890
  if (callback) {
4795
- createAPIRequest<Schema$Region>(
5891
+ createAPIRequest<Schema$ListAccountServicesResponse>(
4796
5892
  parameters,
4797
5893
  callback as BodyResponseCallback<unknown>
4798
5894
  );
4799
5895
  } else {
4800
- return createAPIRequest<Schema$Region>(parameters);
5896
+ return createAPIRequest<Schema$ListAccountServicesResponse>(parameters);
4801
5897
  }
4802
5898
  }
4803
5899
 
4804
5900
  /**
4805
- * Lists the regions in your Merchant Center account.
5901
+ * Propose an account service.
4806
5902
  *
4807
5903
  * @param params - Parameters for request
4808
5904
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4809
5905
  * @param callback - Optional callback that handles the response.
4810
5906
  * @returns A promise if used with async/await, or void if used with a callback.
4811
5907
  */
4812
- list(
4813
- params: Params$Resource$Accounts$Regions$List,
5908
+ propose(
5909
+ params: Params$Resource$Accounts$Services$Propose,
4814
5910
  options: StreamMethodOptions
4815
- ): GaxiosPromise<Readable>;
4816
- list(
4817
- params?: Params$Resource$Accounts$Regions$List,
5911
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5912
+ propose(
5913
+ params?: Params$Resource$Accounts$Services$Propose,
4818
5914
  options?: MethodOptions
4819
- ): GaxiosPromise<Schema$ListRegionsResponse>;
4820
- list(
4821
- params: Params$Resource$Accounts$Regions$List,
5915
+ ): Promise<GaxiosResponseWithHTTP2<Schema$AccountService>>;
5916
+ propose(
5917
+ params: Params$Resource$Accounts$Services$Propose,
4822
5918
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
4823
5919
  callback: BodyResponseCallback<Readable>
4824
5920
  ): void;
4825
- list(
4826
- params: Params$Resource$Accounts$Regions$List,
4827
- options: MethodOptions | BodyResponseCallback<Schema$ListRegionsResponse>,
4828
- callback: BodyResponseCallback<Schema$ListRegionsResponse>
5921
+ propose(
5922
+ params: Params$Resource$Accounts$Services$Propose,
5923
+ options: MethodOptions | BodyResponseCallback<Schema$AccountService>,
5924
+ callback: BodyResponseCallback<Schema$AccountService>
4829
5925
  ): void;
4830
- list(
4831
- params: Params$Resource$Accounts$Regions$List,
4832
- callback: BodyResponseCallback<Schema$ListRegionsResponse>
5926
+ propose(
5927
+ params: Params$Resource$Accounts$Services$Propose,
5928
+ callback: BodyResponseCallback<Schema$AccountService>
4833
5929
  ): void;
4834
- list(callback: BodyResponseCallback<Schema$ListRegionsResponse>): void;
4835
- list(
5930
+ propose(callback: BodyResponseCallback<Schema$AccountService>): void;
5931
+ propose(
4836
5932
  paramsOrCallback?:
4837
- | Params$Resource$Accounts$Regions$List
4838
- | BodyResponseCallback<Schema$ListRegionsResponse>
5933
+ | Params$Resource$Accounts$Services$Propose
5934
+ | BodyResponseCallback<Schema$AccountService>
4839
5935
  | BodyResponseCallback<Readable>,
4840
5936
  optionsOrCallback?:
4841
5937
  | MethodOptions
4842
5938
  | StreamMethodOptions
4843
- | BodyResponseCallback<Schema$ListRegionsResponse>
5939
+ | BodyResponseCallback<Schema$AccountService>
4844
5940
  | BodyResponseCallback<Readable>,
4845
5941
  callback?:
4846
- | BodyResponseCallback<Schema$ListRegionsResponse>
5942
+ | BodyResponseCallback<Schema$AccountService>
4847
5943
  | BodyResponseCallback<Readable>
4848
5944
  ):
4849
5945
  | void
4850
- | GaxiosPromise<Schema$ListRegionsResponse>
4851
- | GaxiosPromise<Readable> {
5946
+ | Promise<GaxiosResponseWithHTTP2<Schema$AccountService>>
5947
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4852
5948
  let params = (paramsOrCallback ||
4853
- {}) as Params$Resource$Accounts$Regions$List;
5949
+ {}) as Params$Resource$Accounts$Services$Propose;
4854
5950
  let options = (optionsOrCallback || {}) as MethodOptions;
4855
5951
 
4856
5952
  if (typeof paramsOrCallback === 'function') {
4857
5953
  callback = paramsOrCallback;
4858
- params = {} as Params$Resource$Accounts$Regions$List;
5954
+ params = {} as Params$Resource$Accounts$Services$Propose;
4859
5955
  options = {};
4860
5956
  }
4861
5957
 
@@ -4868,11 +5964,10 @@ export namespace merchantapi_accounts_v1beta {
4868
5964
  const parameters = {
4869
5965
  options: Object.assign(
4870
5966
  {
4871
- url: (rootUrl + '/accounts/v1beta/{+parent}/regions').replace(
4872
- /([^:]\/)\/+/g,
4873
- '$1'
4874
- ),
4875
- method: 'GET',
5967
+ url: (
5968
+ rootUrl + '/accounts/v1beta/{+parent}/services:propose'
5969
+ ).replace(/([^:]\/)\/+/g, '$1'),
5970
+ method: 'POST',
4876
5971
  apiVersion: '',
4877
5972
  },
4878
5973
  options
@@ -4883,67 +5978,70 @@ export namespace merchantapi_accounts_v1beta {
4883
5978
  context: this.context,
4884
5979
  };
4885
5980
  if (callback) {
4886
- createAPIRequest<Schema$ListRegionsResponse>(
5981
+ createAPIRequest<Schema$AccountService>(
4887
5982
  parameters,
4888
5983
  callback as BodyResponseCallback<unknown>
4889
5984
  );
4890
5985
  } else {
4891
- return createAPIRequest<Schema$ListRegionsResponse>(parameters);
5986
+ return createAPIRequest<Schema$AccountService>(parameters);
4892
5987
  }
4893
5988
  }
4894
5989
 
4895
5990
  /**
4896
- * Updates a region definition in your Merchant Center account. Executing this method requires admin access.
5991
+ * Reject an account service (both proposed and approve services can be rejected).
4897
5992
  *
4898
5993
  * @param params - Parameters for request
4899
5994
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4900
5995
  * @param callback - Optional callback that handles the response.
4901
5996
  * @returns A promise if used with async/await, or void if used with a callback.
4902
5997
  */
4903
- patch(
4904
- params: Params$Resource$Accounts$Regions$Patch,
5998
+ reject(
5999
+ params: Params$Resource$Accounts$Services$Reject,
4905
6000
  options: StreamMethodOptions
4906
- ): GaxiosPromise<Readable>;
4907
- patch(
4908
- params?: Params$Resource$Accounts$Regions$Patch,
6001
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6002
+ reject(
6003
+ params?: Params$Resource$Accounts$Services$Reject,
4909
6004
  options?: MethodOptions
4910
- ): GaxiosPromise<Schema$Region>;
4911
- patch(
4912
- params: Params$Resource$Accounts$Regions$Patch,
6005
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
6006
+ reject(
6007
+ params: Params$Resource$Accounts$Services$Reject,
4913
6008
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
4914
6009
  callback: BodyResponseCallback<Readable>
4915
6010
  ): void;
4916
- patch(
4917
- params: Params$Resource$Accounts$Regions$Patch,
4918
- options: MethodOptions | BodyResponseCallback<Schema$Region>,
4919
- callback: BodyResponseCallback<Schema$Region>
6011
+ reject(
6012
+ params: Params$Resource$Accounts$Services$Reject,
6013
+ options: MethodOptions | BodyResponseCallback<Schema$Empty>,
6014
+ callback: BodyResponseCallback<Schema$Empty>
4920
6015
  ): void;
4921
- patch(
4922
- params: Params$Resource$Accounts$Regions$Patch,
4923
- callback: BodyResponseCallback<Schema$Region>
6016
+ reject(
6017
+ params: Params$Resource$Accounts$Services$Reject,
6018
+ callback: BodyResponseCallback<Schema$Empty>
4924
6019
  ): void;
4925
- patch(callback: BodyResponseCallback<Schema$Region>): void;
4926
- patch(
6020
+ reject(callback: BodyResponseCallback<Schema$Empty>): void;
6021
+ reject(
4927
6022
  paramsOrCallback?:
4928
- | Params$Resource$Accounts$Regions$Patch
4929
- | BodyResponseCallback<Schema$Region>
6023
+ | Params$Resource$Accounts$Services$Reject
6024
+ | BodyResponseCallback<Schema$Empty>
4930
6025
  | BodyResponseCallback<Readable>,
4931
6026
  optionsOrCallback?:
4932
6027
  | MethodOptions
4933
6028
  | StreamMethodOptions
4934
- | BodyResponseCallback<Schema$Region>
6029
+ | BodyResponseCallback<Schema$Empty>
4935
6030
  | BodyResponseCallback<Readable>,
4936
6031
  callback?:
4937
- | BodyResponseCallback<Schema$Region>
6032
+ | BodyResponseCallback<Schema$Empty>
4938
6033
  | BodyResponseCallback<Readable>
4939
- ): void | GaxiosPromise<Schema$Region> | GaxiosPromise<Readable> {
6034
+ ):
6035
+ | void
6036
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
6037
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4940
6038
  let params = (paramsOrCallback ||
4941
- {}) as Params$Resource$Accounts$Regions$Patch;
6039
+ {}) as Params$Resource$Accounts$Services$Reject;
4942
6040
  let options = (optionsOrCallback || {}) as MethodOptions;
4943
6041
 
4944
6042
  if (typeof paramsOrCallback === 'function') {
4945
6043
  callback = paramsOrCallback;
4946
- params = {} as Params$Resource$Accounts$Regions$Patch;
6044
+ params = {} as Params$Resource$Accounts$Services$Reject;
4947
6045
  options = {};
4948
6046
  }
4949
6047
 
@@ -4956,11 +6054,11 @@ export namespace merchantapi_accounts_v1beta {
4956
6054
  const parameters = {
4957
6055
  options: Object.assign(
4958
6056
  {
4959
- url: (rootUrl + '/accounts/v1beta/{+name}').replace(
6057
+ url: (rootUrl + '/accounts/v1beta/{+name}:reject').replace(
4960
6058
  /([^:]\/)\/+/g,
4961
6059
  '$1'
4962
6060
  ),
4963
- method: 'PATCH',
6061
+ method: 'POST',
4964
6062
  apiVersion: '',
4965
6063
  },
4966
6064
  options
@@ -4971,76 +6069,73 @@ export namespace merchantapi_accounts_v1beta {
4971
6069
  context: this.context,
4972
6070
  };
4973
6071
  if (callback) {
4974
- createAPIRequest<Schema$Region>(
6072
+ createAPIRequest<Schema$Empty>(
4975
6073
  parameters,
4976
6074
  callback as BodyResponseCallback<unknown>
4977
6075
  );
4978
6076
  } else {
4979
- return createAPIRequest<Schema$Region>(parameters);
6077
+ return createAPIRequest<Schema$Empty>(parameters);
4980
6078
  }
4981
6079
  }
4982
6080
  }
4983
6081
 
4984
- export interface Params$Resource$Accounts$Regions$Create
6082
+ export interface Params$Resource$Accounts$Services$Approve
4985
6083
  extends StandardParameters {
4986
6084
  /**
4987
- * Required. The account to create a region for. Format: `accounts/{account\}`
4988
- */
4989
- parent?: string;
4990
- /**
4991
- * Required. The identifier for the region, unique over all regions of the same account.
6085
+ * Required. The resource name of the account service to approve. Format: `accounts/{account\}/services/{service\}`
4992
6086
  */
4993
- regionId?: string;
6087
+ name?: string;
4994
6088
 
4995
6089
  /**
4996
6090
  * Request body metadata
4997
6091
  */
4998
- requestBody?: Schema$Region;
4999
- }
5000
- export interface Params$Resource$Accounts$Regions$Delete
5001
- extends StandardParameters {
5002
- /**
5003
- * Required. The name of the region to delete. Format: `accounts/{account\}/regions/{region\}`
5004
- */
5005
- name?: string;
6092
+ requestBody?: Schema$ApproveAccountServiceRequest;
5006
6093
  }
5007
- export interface Params$Resource$Accounts$Regions$Get
6094
+ export interface Params$Resource$Accounts$Services$Get
5008
6095
  extends StandardParameters {
5009
6096
  /**
5010
- * Required. The name of the region to retrieve. Format: `accounts/{account\}/regions/{region\}`
6097
+ * Required. The resource name of the account service to get. Format: `accounts/{account\}/services/{service\}`
5011
6098
  */
5012
6099
  name?: string;
5013
6100
  }
5014
- export interface Params$Resource$Accounts$Regions$List
6101
+ export interface Params$Resource$Accounts$Services$List
5015
6102
  extends StandardParameters {
5016
6103
  /**
5017
- * 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.
6104
+ * 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`.
5018
6105
  */
5019
6106
  pageSize?: number;
5020
6107
  /**
5021
- * Optional. A page token, received from a previous `ListRegions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRegions` must match the call that provided the page token.
6108
+ * Optional. The token returned by the previous `list` request.
5022
6109
  */
5023
6110
  pageToken?: string;
5024
6111
  /**
5025
- * Required. The account to list regions for. Format: `accounts/{account\}`
6112
+ * Required. The parent account of the account service to filter by. Format: `accounts/{account\}`
5026
6113
  */
5027
6114
  parent?: string;
5028
6115
  }
5029
- export interface Params$Resource$Accounts$Regions$Patch
6116
+ export interface Params$Resource$Accounts$Services$Propose
5030
6117
  extends StandardParameters {
5031
6118
  /**
5032
- * Identifier. The resource name of the region. Format: `accounts/{account\}/regions/{region\}`
6119
+ * Required. The resource name of the parent account for the service. Format: `accounts/{account\}`
5033
6120
  */
5034
- name?: string;
6121
+ parent?: string;
6122
+
5035
6123
  /**
5036
- * Optional. The comma-separated field mask indicating the fields to update. Example: `"displayName,postalCodeArea.regionCode"`.
6124
+ * Request body metadata
5037
6125
  */
5038
- updateMask?: string;
6126
+ requestBody?: Schema$ProposeAccountServiceRequest;
6127
+ }
6128
+ export interface Params$Resource$Accounts$Services$Reject
6129
+ extends StandardParameters {
6130
+ /**
6131
+ * Required. The resource name of the account service to reject. Format: `accounts/{account\}/services/{service\}`
6132
+ */
6133
+ name?: string;
5039
6134
 
5040
6135
  /**
5041
6136
  * Request body metadata
5042
6137
  */
5043
- requestBody?: Schema$Region;
6138
+ requestBody?: Schema$RejectAccountServiceRequest;
5044
6139
  }
5045
6140
 
5046
6141
  export class Resource$Accounts$Shippingsettings {
@@ -5060,11 +6155,11 @@ export namespace merchantapi_accounts_v1beta {
5060
6155
  getShippingSettings(
5061
6156
  params: Params$Resource$Accounts$Shippingsettings$Getshippingsettings,
5062
6157
  options: StreamMethodOptions
5063
- ): GaxiosPromise<Readable>;
6158
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5064
6159
  getShippingSettings(
5065
6160
  params?: Params$Resource$Accounts$Shippingsettings$Getshippingsettings,
5066
6161
  options?: MethodOptions
5067
- ): GaxiosPromise<Schema$ShippingSettings>;
6162
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ShippingSettings>>;
5068
6163
  getShippingSettings(
5069
6164
  params: Params$Resource$Accounts$Shippingsettings$Getshippingsettings,
5070
6165
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5095,7 +6190,10 @@ export namespace merchantapi_accounts_v1beta {
5095
6190
  callback?:
5096
6191
  | BodyResponseCallback<Schema$ShippingSettings>
5097
6192
  | BodyResponseCallback<Readable>
5098
- ): void | GaxiosPromise<Schema$ShippingSettings> | GaxiosPromise<Readable> {
6193
+ ):
6194
+ | void
6195
+ | Promise<GaxiosResponseWithHTTP2<Schema$ShippingSettings>>
6196
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5099
6197
  let params = (paramsOrCallback ||
5100
6198
  {}) as Params$Resource$Accounts$Shippingsettings$Getshippingsettings;
5101
6199
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5151,11 +6249,11 @@ export namespace merchantapi_accounts_v1beta {
5151
6249
  insert(
5152
6250
  params: Params$Resource$Accounts$Shippingsettings$Insert,
5153
6251
  options: StreamMethodOptions
5154
- ): GaxiosPromise<Readable>;
6252
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5155
6253
  insert(
5156
6254
  params?: Params$Resource$Accounts$Shippingsettings$Insert,
5157
6255
  options?: MethodOptions
5158
- ): GaxiosPromise<Schema$ShippingSettings>;
6256
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ShippingSettings>>;
5159
6257
  insert(
5160
6258
  params: Params$Resource$Accounts$Shippingsettings$Insert,
5161
6259
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5184,7 +6282,10 @@ export namespace merchantapi_accounts_v1beta {
5184
6282
  callback?:
5185
6283
  | BodyResponseCallback<Schema$ShippingSettings>
5186
6284
  | BodyResponseCallback<Readable>
5187
- ): void | GaxiosPromise<Schema$ShippingSettings> | GaxiosPromise<Readable> {
6285
+ ):
6286
+ | void
6287
+ | Promise<GaxiosResponseWithHTTP2<Schema$ShippingSettings>>
6288
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5188
6289
  let params = (paramsOrCallback ||
5189
6290
  {}) as Params$Resource$Accounts$Shippingsettings$Insert;
5190
6291
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5231,14 +6332,14 @@ export namespace merchantapi_accounts_v1beta {
5231
6332
  export interface Params$Resource$Accounts$Shippingsettings$Getshippingsettings
5232
6333
  extends StandardParameters {
5233
6334
  /**
5234
- * Required. The name of the shipping setting to retrieve. Format: `accounts/{account\}/shippingsetting`
6335
+ * Required. The name of the shipping setting to retrieve. Format: `accounts/{account\}/shippingsettings`
5235
6336
  */
5236
6337
  name?: string;
5237
6338
  }
5238
6339
  export interface Params$Resource$Accounts$Shippingsettings$Insert
5239
6340
  extends StandardParameters {
5240
6341
  /**
5241
- * Required. The account where this product will be inserted. Format: accounts/{account\}
6342
+ * 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\}`
5242
6343
  */
5243
6344
  parent?: string;
5244
6345
 
@@ -5265,11 +6366,11 @@ export namespace merchantapi_accounts_v1beta {
5265
6366
  get(
5266
6367
  params: Params$Resource$Accounts$Termsofserviceagreementstates$Get,
5267
6368
  options: StreamMethodOptions
5268
- ): GaxiosPromise<Readable>;
6369
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5269
6370
  get(
5270
6371
  params?: Params$Resource$Accounts$Termsofserviceagreementstates$Get,
5271
6372
  options?: MethodOptions
5272
- ): GaxiosPromise<Schema$TermsOfServiceAgreementState>;
6373
+ ): Promise<GaxiosResponseWithHTTP2<Schema$TermsOfServiceAgreementState>>;
5273
6374
  get(
5274
6375
  params: Params$Resource$Accounts$Termsofserviceagreementstates$Get,
5275
6376
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5304,8 +6405,8 @@ export namespace merchantapi_accounts_v1beta {
5304
6405
  | BodyResponseCallback<Readable>
5305
6406
  ):
5306
6407
  | void
5307
- | GaxiosPromise<Schema$TermsOfServiceAgreementState>
5308
- | GaxiosPromise<Readable> {
6408
+ | Promise<GaxiosResponseWithHTTP2<Schema$TermsOfServiceAgreementState>>
6409
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5309
6410
  let params = (paramsOrCallback ||
5310
6411
  {}) as Params$Resource$Accounts$Termsofserviceagreementstates$Get;
5311
6412
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5363,11 +6464,11 @@ export namespace merchantapi_accounts_v1beta {
5363
6464
  retrieveForApplication(
5364
6465
  params: Params$Resource$Accounts$Termsofserviceagreementstates$Retrieveforapplication,
5365
6466
  options: StreamMethodOptions
5366
- ): GaxiosPromise<Readable>;
6467
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5367
6468
  retrieveForApplication(
5368
6469
  params?: Params$Resource$Accounts$Termsofserviceagreementstates$Retrieveforapplication,
5369
6470
  options?: MethodOptions
5370
- ): GaxiosPromise<Schema$TermsOfServiceAgreementState>;
6471
+ ): Promise<GaxiosResponseWithHTTP2<Schema$TermsOfServiceAgreementState>>;
5371
6472
  retrieveForApplication(
5372
6473
  params: Params$Resource$Accounts$Termsofserviceagreementstates$Retrieveforapplication,
5373
6474
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5402,8 +6503,8 @@ export namespace merchantapi_accounts_v1beta {
5402
6503
  | BodyResponseCallback<Readable>
5403
6504
  ):
5404
6505
  | void
5405
- | GaxiosPromise<Schema$TermsOfServiceAgreementState>
5406
- | GaxiosPromise<Readable> {
6506
+ | Promise<GaxiosResponseWithHTTP2<Schema$TermsOfServiceAgreementState>>
6507
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5407
6508
  let params = (paramsOrCallback ||
5408
6509
  {}) as Params$Resource$Accounts$Termsofserviceagreementstates$Retrieveforapplication;
5409
6510
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5454,7 +6555,7 @@ export namespace merchantapi_accounts_v1beta {
5454
6555
  export interface Params$Resource$Accounts$Termsofserviceagreementstates$Get
5455
6556
  extends StandardParameters {
5456
6557
  /**
5457
- * Required. The resource name of the terms of service version. Format: `accounts/{account\}/termsOfServiceAgreementState/{identifier\}` The identifier format is: `{TermsOfServiceKind\}-{country\}`
6558
+ * Required. The resource name of the terms of service version. Format: `accounts/{account\}/termsOfServiceAgreementStates/{identifier\}` The identifier format is: `{TermsOfServiceKind\}-{country\}`
5458
6559
  */
5459
6560
  name?: string;
5460
6561
  }
@@ -5483,11 +6584,11 @@ export namespace merchantapi_accounts_v1beta {
5483
6584
  create(
5484
6585
  params: Params$Resource$Accounts$Users$Create,
5485
6586
  options: StreamMethodOptions
5486
- ): GaxiosPromise<Readable>;
6587
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5487
6588
  create(
5488
6589
  params?: Params$Resource$Accounts$Users$Create,
5489
6590
  options?: MethodOptions
5490
- ): GaxiosPromise<Schema$User>;
6591
+ ): Promise<GaxiosResponseWithHTTP2<Schema$User>>;
5491
6592
  create(
5492
6593
  params: Params$Resource$Accounts$Users$Create,
5493
6594
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5516,7 +6617,10 @@ export namespace merchantapi_accounts_v1beta {
5516
6617
  callback?:
5517
6618
  | BodyResponseCallback<Schema$User>
5518
6619
  | BodyResponseCallback<Readable>
5519
- ): void | GaxiosPromise<Schema$User> | GaxiosPromise<Readable> {
6620
+ ):
6621
+ | void
6622
+ | Promise<GaxiosResponseWithHTTP2<Schema$User>>
6623
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5520
6624
  let params = (paramsOrCallback ||
5521
6625
  {}) as Params$Resource$Accounts$Users$Create;
5522
6626
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5571,11 +6675,11 @@ export namespace merchantapi_accounts_v1beta {
5571
6675
  delete(
5572
6676
  params: Params$Resource$Accounts$Users$Delete,
5573
6677
  options: StreamMethodOptions
5574
- ): GaxiosPromise<Readable>;
6678
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5575
6679
  delete(
5576
6680
  params?: Params$Resource$Accounts$Users$Delete,
5577
6681
  options?: MethodOptions
5578
- ): GaxiosPromise<Schema$Empty>;
6682
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
5579
6683
  delete(
5580
6684
  params: Params$Resource$Accounts$Users$Delete,
5581
6685
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5604,7 +6708,10 @@ export namespace merchantapi_accounts_v1beta {
5604
6708
  callback?:
5605
6709
  | BodyResponseCallback<Schema$Empty>
5606
6710
  | BodyResponseCallback<Readable>
5607
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
6711
+ ):
6712
+ | void
6713
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
6714
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5608
6715
  let params = (paramsOrCallback ||
5609
6716
  {}) as Params$Resource$Accounts$Users$Delete;
5610
6717
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5659,11 +6766,11 @@ export namespace merchantapi_accounts_v1beta {
5659
6766
  get(
5660
6767
  params: Params$Resource$Accounts$Users$Get,
5661
6768
  options: StreamMethodOptions
5662
- ): GaxiosPromise<Readable>;
6769
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5663
6770
  get(
5664
6771
  params?: Params$Resource$Accounts$Users$Get,
5665
6772
  options?: MethodOptions
5666
- ): GaxiosPromise<Schema$User>;
6773
+ ): Promise<GaxiosResponseWithHTTP2<Schema$User>>;
5667
6774
  get(
5668
6775
  params: Params$Resource$Accounts$Users$Get,
5669
6776
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5692,7 +6799,10 @@ export namespace merchantapi_accounts_v1beta {
5692
6799
  callback?:
5693
6800
  | BodyResponseCallback<Schema$User>
5694
6801
  | BodyResponseCallback<Readable>
5695
- ): void | GaxiosPromise<Schema$User> | GaxiosPromise<Readable> {
6802
+ ):
6803
+ | void
6804
+ | Promise<GaxiosResponseWithHTTP2<Schema$User>>
6805
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5696
6806
  let params = (paramsOrCallback ||
5697
6807
  {}) as Params$Resource$Accounts$Users$Get;
5698
6808
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5747,11 +6857,11 @@ export namespace merchantapi_accounts_v1beta {
5747
6857
  list(
5748
6858
  params: Params$Resource$Accounts$Users$List,
5749
6859
  options: StreamMethodOptions
5750
- ): GaxiosPromise<Readable>;
6860
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5751
6861
  list(
5752
6862
  params?: Params$Resource$Accounts$Users$List,
5753
6863
  options?: MethodOptions
5754
- ): GaxiosPromise<Schema$ListUsersResponse>;
6864
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListUsersResponse>>;
5755
6865
  list(
5756
6866
  params: Params$Resource$Accounts$Users$List,
5757
6867
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5782,8 +6892,8 @@ export namespace merchantapi_accounts_v1beta {
5782
6892
  | BodyResponseCallback<Readable>
5783
6893
  ):
5784
6894
  | void
5785
- | GaxiosPromise<Schema$ListUsersResponse>
5786
- | GaxiosPromise<Readable> {
6895
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListUsersResponse>>
6896
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5787
6897
  let params = (paramsOrCallback ||
5788
6898
  {}) as Params$Resource$Accounts$Users$List;
5789
6899
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5838,11 +6948,11 @@ export namespace merchantapi_accounts_v1beta {
5838
6948
  patch(
5839
6949
  params: Params$Resource$Accounts$Users$Patch,
5840
6950
  options: StreamMethodOptions
5841
- ): GaxiosPromise<Readable>;
6951
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5842
6952
  patch(
5843
6953
  params?: Params$Resource$Accounts$Users$Patch,
5844
6954
  options?: MethodOptions
5845
- ): GaxiosPromise<Schema$User>;
6955
+ ): Promise<GaxiosResponseWithHTTP2<Schema$User>>;
5846
6956
  patch(
5847
6957
  params: Params$Resource$Accounts$Users$Patch,
5848
6958
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5871,7 +6981,10 @@ export namespace merchantapi_accounts_v1beta {
5871
6981
  callback?:
5872
6982
  | BodyResponseCallback<Schema$User>
5873
6983
  | BodyResponseCallback<Readable>
5874
- ): void | GaxiosPromise<Schema$User> | GaxiosPromise<Readable> {
6984
+ ):
6985
+ | void
6986
+ | Promise<GaxiosResponseWithHTTP2<Schema$User>>
6987
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5875
6988
  let params = (paramsOrCallback ||
5876
6989
  {}) as Params$Resource$Accounts$Users$Patch;
5877
6990
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5995,11 +7108,11 @@ export namespace merchantapi_accounts_v1beta {
5995
7108
  accept(
5996
7109
  params: Params$Resource$Termsofservice$Accept,
5997
7110
  options: StreamMethodOptions
5998
- ): GaxiosPromise<Readable>;
7111
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5999
7112
  accept(
6000
7113
  params?: Params$Resource$Termsofservice$Accept,
6001
7114
  options?: MethodOptions
6002
- ): GaxiosPromise<Schema$Empty>;
7115
+ ): Promise<GaxiosResponseWithHTTP2<Schema$AcceptTermsOfServiceResponse>>;
6003
7116
  accept(
6004
7117
  params: Params$Resource$Termsofservice$Accept,
6005
7118
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6007,28 +7120,35 @@ export namespace merchantapi_accounts_v1beta {
6007
7120
  ): void;
6008
7121
  accept(
6009
7122
  params: Params$Resource$Termsofservice$Accept,
6010
- options: MethodOptions | BodyResponseCallback<Schema$Empty>,
6011
- callback: BodyResponseCallback<Schema$Empty>
7123
+ options:
7124
+ | MethodOptions
7125
+ | BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>,
7126
+ callback: BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>
6012
7127
  ): void;
6013
7128
  accept(
6014
7129
  params: Params$Resource$Termsofservice$Accept,
6015
- callback: BodyResponseCallback<Schema$Empty>
7130
+ callback: BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>
7131
+ ): void;
7132
+ accept(
7133
+ callback: BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>
6016
7134
  ): void;
6017
- accept(callback: BodyResponseCallback<Schema$Empty>): void;
6018
7135
  accept(
6019
7136
  paramsOrCallback?:
6020
7137
  | Params$Resource$Termsofservice$Accept
6021
- | BodyResponseCallback<Schema$Empty>
7138
+ | BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>
6022
7139
  | BodyResponseCallback<Readable>,
6023
7140
  optionsOrCallback?:
6024
7141
  | MethodOptions
6025
7142
  | StreamMethodOptions
6026
- | BodyResponseCallback<Schema$Empty>
7143
+ | BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>
6027
7144
  | BodyResponseCallback<Readable>,
6028
7145
  callback?:
6029
- | BodyResponseCallback<Schema$Empty>
7146
+ | BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>
6030
7147
  | BodyResponseCallback<Readable>
6031
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
7148
+ ):
7149
+ | void
7150
+ | Promise<GaxiosResponseWithHTTP2<Schema$AcceptTermsOfServiceResponse>>
7151
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6032
7152
  let params = (paramsOrCallback ||
6033
7153
  {}) as Params$Resource$Termsofservice$Accept;
6034
7154
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6052,7 +7172,7 @@ export namespace merchantapi_accounts_v1beta {
6052
7172
  /([^:]\/)\/+/g,
6053
7173
  '$1'
6054
7174
  ),
6055
- method: 'GET',
7175
+ method: 'POST',
6056
7176
  apiVersion: '',
6057
7177
  },
6058
7178
  options
@@ -6063,12 +7183,14 @@ export namespace merchantapi_accounts_v1beta {
6063
7183
  context: this.context,
6064
7184
  };
6065
7185
  if (callback) {
6066
- createAPIRequest<Schema$Empty>(
7186
+ createAPIRequest<Schema$AcceptTermsOfServiceResponse>(
6067
7187
  parameters,
6068
7188
  callback as BodyResponseCallback<unknown>
6069
7189
  );
6070
7190
  } else {
6071
- return createAPIRequest<Schema$Empty>(parameters);
7191
+ return createAPIRequest<Schema$AcceptTermsOfServiceResponse>(
7192
+ parameters
7193
+ );
6072
7194
  }
6073
7195
  }
6074
7196
 
@@ -6083,11 +7205,11 @@ export namespace merchantapi_accounts_v1beta {
6083
7205
  get(
6084
7206
  params: Params$Resource$Termsofservice$Get,
6085
7207
  options: StreamMethodOptions
6086
- ): GaxiosPromise<Readable>;
7208
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6087
7209
  get(
6088
7210
  params?: Params$Resource$Termsofservice$Get,
6089
7211
  options?: MethodOptions
6090
- ): GaxiosPromise<Schema$TermsOfService>;
7212
+ ): Promise<GaxiosResponseWithHTTP2<Schema$TermsOfService>>;
6091
7213
  get(
6092
7214
  params: Params$Resource$Termsofservice$Get,
6093
7215
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6116,7 +7238,10 @@ export namespace merchantapi_accounts_v1beta {
6116
7238
  callback?:
6117
7239
  | BodyResponseCallback<Schema$TermsOfService>
6118
7240
  | BodyResponseCallback<Readable>
6119
- ): void | GaxiosPromise<Schema$TermsOfService> | GaxiosPromise<Readable> {
7241
+ ):
7242
+ | void
7243
+ | Promise<GaxiosResponseWithHTTP2<Schema$TermsOfService>>
7244
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6120
7245
  let params = (paramsOrCallback ||
6121
7246
  {}) as Params$Resource$Termsofservice$Get;
6122
7247
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6171,11 +7296,11 @@ export namespace merchantapi_accounts_v1beta {
6171
7296
  retrieveLatest(
6172
7297
  params: Params$Resource$Termsofservice$Retrievelatest,
6173
7298
  options: StreamMethodOptions
6174
- ): GaxiosPromise<Readable>;
7299
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6175
7300
  retrieveLatest(
6176
7301
  params?: Params$Resource$Termsofservice$Retrievelatest,
6177
7302
  options?: MethodOptions
6178
- ): GaxiosPromise<Schema$TermsOfService>;
7303
+ ): Promise<GaxiosResponseWithHTTP2<Schema$TermsOfService>>;
6179
7304
  retrieveLatest(
6180
7305
  params: Params$Resource$Termsofservice$Retrievelatest,
6181
7306
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6204,7 +7329,10 @@ export namespace merchantapi_accounts_v1beta {
6204
7329
  callback?:
6205
7330
  | BodyResponseCallback<Schema$TermsOfService>
6206
7331
  | BodyResponseCallback<Readable>
6207
- ): void | GaxiosPromise<Schema$TermsOfService> | GaxiosPromise<Readable> {
7332
+ ):
7333
+ | void
7334
+ | Promise<GaxiosResponseWithHTTP2<Schema$TermsOfService>>
7335
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6208
7336
  let params = (paramsOrCallback ||
6209
7337
  {}) as Params$Resource$Termsofservice$Retrievelatest;
6210
7338
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6251,7 +7379,7 @@ export namespace merchantapi_accounts_v1beta {
6251
7379
  export interface Params$Resource$Termsofservice$Accept
6252
7380
  extends StandardParameters {
6253
7381
  /**
6254
- * Required. The account for which to accept the ToS.
7382
+ * Required. The account for which to accept the ToS. Format: `accounts/{account\}`
6255
7383
  */
6256
7384
  account?: string;
6257
7385
  /**