@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
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
2
+ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
3
  import { Readable } from 'stream';
4
4
  export declare namespace merchantapi_accounts_v1beta {
5
5
  export interface Options extends GlobalOptions {
@@ -81,14 +81,23 @@ export declare namespace merchantapi_accounts_v1beta {
81
81
  */
82
82
  acceptedBy?: string | null;
83
83
  /**
84
- * The accepted [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService).
84
+ * The accepted termsOfService.
85
85
  */
86
86
  termsOfService?: string | null;
87
87
  /**
88
- * 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.
88
+ * 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.
89
89
  */
90
90
  validUntil?: Schema$Date;
91
91
  }
92
+ /**
93
+ * Response message for the `AcceptTermsOfService` method.
94
+ */
95
+ export interface Schema$AcceptTermsOfServiceResponse {
96
+ /**
97
+ * The agreement state after accepting the ToS.
98
+ */
99
+ termsOfServiceAgreementState?: Schema$TermsOfServiceAgreementState;
100
+ }
92
101
  /**
93
102
  * 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.
94
103
  */
@@ -118,7 +127,7 @@ export declare namespace merchantapi_accounts_v1beta {
118
127
  */
119
128
  testAccount?: boolean | null;
120
129
  /**
121
- * 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.
130
+ * 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.
122
131
  */
123
132
  timeZone?: Schema$TimeZone;
124
133
  }
@@ -156,6 +165,77 @@ export declare namespace merchantapi_accounts_v1beta {
156
165
  */
157
166
  title?: string | null;
158
167
  }
168
+ /**
169
+ * `AccountManagement` payload.
170
+ */
171
+ export interface Schema$AccountManagement {
172
+ }
173
+ /**
174
+ * 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).
175
+ */
176
+ export interface Schema$AccountRelationship {
177
+ /**
178
+ * 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.
179
+ */
180
+ accountIdAlias?: string | null;
181
+ /**
182
+ * Identifier. The resource name of the account relationship. Format: `accounts/{account\}/relationships/{relationship\}`
183
+ */
184
+ name?: string | null;
185
+ /**
186
+ * 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`).
187
+ */
188
+ provider?: string | null;
189
+ /**
190
+ * Output only. The human-readable display name of the provider account.
191
+ */
192
+ providerDisplayName?: string | null;
193
+ }
194
+ /**
195
+ * 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.
196
+ */
197
+ export interface Schema$AccountService {
198
+ /**
199
+ * 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.
200
+ */
201
+ accountAggregation?: Schema$AccountAggregation;
202
+ /**
203
+ * 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.
204
+ */
205
+ accountManagement?: Schema$AccountManagement;
206
+ /**
207
+ * 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.
208
+ */
209
+ campaignsManagement?: Schema$CampaignsManagement;
210
+ /**
211
+ * 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.
212
+ */
213
+ externalAccountId?: string | null;
214
+ /**
215
+ * Output only. Information about the state of the service in terms of establishing it (e.g. is it pending approval or approved).
216
+ */
217
+ handshake?: Schema$Handshake;
218
+ /**
219
+ * 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.
220
+ */
221
+ mutability?: string | null;
222
+ /**
223
+ * Identifier. The resource name of the account service. Format: `accounts/{account\}/services/{service\}`
224
+ */
225
+ name?: string | null;
226
+ /**
227
+ * 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.
228
+ */
229
+ productsManagement?: Schema$ProductsManagement;
230
+ /**
231
+ * 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`).
232
+ */
233
+ provider?: string | null;
234
+ /**
235
+ * Output only. The human-readable display name of the provider account.
236
+ */
237
+ providerDisplayName?: string | null;
238
+ }
159
239
  /**
160
240
  * Additional instructions to add account services during creation of the account.
161
241
  */
@@ -207,6 +287,11 @@ export declare namespace merchantapi_accounts_v1beta {
207
287
  */
208
288
  userId?: string | null;
209
289
  }
290
+ /**
291
+ * Request to approve an account service.
292
+ */
293
+ export interface Schema$ApproveAccountServiceRequest {
294
+ }
210
295
  /**
211
296
  * Collection of information related to the [autofeed](https://support.google.com/merchants/answer/7538732) settings.
212
297
  */
@@ -363,6 +448,11 @@ export declare namespace merchantapi_accounts_v1beta {
363
448
  */
364
449
  phoneVerificationState?: string | null;
365
450
  }
451
+ /**
452
+ * `CampaignManagement` payload.
453
+ */
454
+ export interface Schema$CampaignsManagement {
455
+ }
366
456
  /**
367
457
  * 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.
368
458
  */
@@ -397,7 +487,7 @@ export declare namespace merchantapi_accounts_v1beta {
397
487
  */
398
488
  export interface Schema$ClaimHomepageRequest {
399
489
  /**
400
- * 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.
490
+ * 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.
401
491
  */
402
492
  overwrite?: boolean | null;
403
493
  }
@@ -598,6 +688,19 @@ export declare namespace merchantapi_accounts_v1beta {
598
688
  */
599
689
  geotargetCriteriaIds?: string[] | null;
600
690
  }
691
+ /**
692
+ * The current status of establishing of the service. (for example, pending approval or approved).
693
+ */
694
+ export interface Schema$Handshake {
695
+ /**
696
+ * Output only. The most recent account to modify the account service's `approval_status`.
697
+ */
698
+ actor?: string | null;
699
+ /**
700
+ * Output only. The approval state of this handshake.
701
+ */
702
+ approvalState?: string | null;
703
+ }
601
704
  /**
602
705
  * 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.
603
706
  */
@@ -718,6 +821,32 @@ export declare namespace merchantapi_accounts_v1beta {
718
821
  */
719
822
  nextPageToken?: string | null;
720
823
  }
824
+ /**
825
+ * Response after trying to list account relationships.
826
+ */
827
+ export interface Schema$ListAccountRelationshipsResponse {
828
+ /**
829
+ * The account relationships that match your filter.
830
+ */
831
+ accountRelationships?: Schema$AccountRelationship[];
832
+ /**
833
+ * 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.
834
+ */
835
+ nextPageToken?: string | null;
836
+ }
837
+ /**
838
+ * Response after trying to list account services.
839
+ */
840
+ export interface Schema$ListAccountServicesResponse {
841
+ /**
842
+ * The account services that match your filter.
843
+ */
844
+ accountServices?: Schema$AccountService[];
845
+ /**
846
+ * 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.
847
+ */
848
+ nextPageToken?: string | null;
849
+ }
721
850
  /**
722
851
  * Response message for the `ListAccounts` method.
723
852
  */
@@ -854,11 +983,11 @@ export declare namespace merchantapi_accounts_v1beta {
854
983
  */
855
984
  export interface Schema$OnlineReturnPolicy {
856
985
  /**
857
- * This field specifies if merchant only accepts defective products for returns, and this field is required.
986
+ * Optional. This field specifies if merchant only accepts defective products for returns.
858
987
  */
859
988
  acceptDefectiveOnly?: boolean | null;
860
989
  /**
861
- * This field specifies if merchant allows customers to exchange products, this field is required.
990
+ * Optional. This field specifies if merchant allows customers to exchange products.
862
991
  */
863
992
  acceptExchange?: boolean | null;
864
993
  /**
@@ -882,13 +1011,17 @@ export declare namespace merchantapi_accounts_v1beta {
882
1011
  */
883
1012
  policy?: Schema$Policy;
884
1013
  /**
885
- * The field specifies the number of days it takes for merchants to process refunds, field is optional.
1014
+ * Optional. The field specifies the number of days it takes for merchants to process refunds.
886
1015
  */
887
1016
  processRefundDays?: number | null;
888
1017
  /**
889
1018
  * 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.
890
1019
  */
891
1020
  restockingFee?: Schema$RestockingFee;
1021
+ /**
1022
+ * Optional. The field specifies the return label source.
1023
+ */
1024
+ returnLabelSource?: string | null;
892
1025
  /**
893
1026
  * 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.
894
1027
  */
@@ -941,15 +1074,15 @@ export declare namespace merchantapi_accounts_v1beta {
941
1074
  type?: string | null;
942
1075
  }
943
1076
  /**
944
- * 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
1077
+ * 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.
945
1078
  */
946
1079
  export interface Schema$PostalAddress {
947
1080
  /**
948
- * 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).
1081
+ * 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).
949
1082
  */
950
1083
  addressLines?: string[] | null;
951
1084
  /**
952
- * 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.
1085
+ * 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.
953
1086
  */
954
1087
  administrativeArea?: string | null;
955
1088
  /**
@@ -957,7 +1090,7 @@ export declare namespace merchantapi_accounts_v1beta {
957
1090
  */
958
1091
  languageCode?: string | null;
959
1092
  /**
960
- * 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.
1093
+ * 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`.
961
1094
  */
962
1095
  locality?: string | null;
963
1096
  /**
@@ -965,7 +1098,7 @@ export declare namespace merchantapi_accounts_v1beta {
965
1098
  */
966
1099
  organization?: string | null;
967
1100
  /**
968
- * 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.).
1101
+ * 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).
969
1102
  */
970
1103
  postalCode?: string | null;
971
1104
  /**
@@ -981,11 +1114,11 @@ export declare namespace merchantapi_accounts_v1beta {
981
1114
  */
982
1115
  revision?: number | null;
983
1116
  /**
984
- * 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).
1117
+ * 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).
985
1118
  */
986
1119
  sortingCode?: string | null;
987
1120
  /**
988
- * Optional. Sublocality of the address. For example, this can be neighborhoods, boroughs, districts.
1121
+ * Optional. Sublocality of the address. For example, this can be a neighborhood, borough, or district.
989
1122
  */
990
1123
  sublocality?: string | null;
991
1124
  }
@@ -1049,6 +1182,11 @@ export declare namespace merchantapi_accounts_v1beta {
1049
1182
  */
1050
1183
  reportingContext?: string | null;
1051
1184
  }
1185
+ /**
1186
+ * `ProductsManagement` payload.
1187
+ */
1188
+ export interface Schema$ProductsManagement {
1189
+ }
1052
1190
  /**
1053
1191
  * The message that the merchant will receive to notify about product status change event
1054
1192
  */
@@ -1091,7 +1229,7 @@ export declare namespace merchantapi_accounts_v1beta {
1091
1229
  resourceType?: string | null;
1092
1230
  }
1093
1231
  /**
1094
- * 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`
1232
+ * 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`
1095
1233
  */
1096
1234
  export interface Schema$Program {
1097
1235
  /**
@@ -1115,6 +1253,19 @@ export declare namespace merchantapi_accounts_v1beta {
1115
1253
  */
1116
1254
  unmetRequirements?: Schema$Requirement[];
1117
1255
  }
1256
+ /**
1257
+ * Request to propose an account service.
1258
+ */
1259
+ export interface Schema$ProposeAccountServiceRequest {
1260
+ /**
1261
+ * Required. The account service to propose.
1262
+ */
1263
+ accountService?: Schema$AccountService;
1264
+ /**
1265
+ * 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`).
1266
+ */
1267
+ provider?: string | null;
1268
+ }
1118
1269
  /**
1119
1270
  * 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.
1120
1271
  */
@@ -1173,16 +1324,21 @@ export declare namespace merchantapi_accounts_v1beta {
1173
1324
  */
1174
1325
  shippingEligible?: boolean | null;
1175
1326
  }
1327
+ /**
1328
+ * Request to reject an account service.
1329
+ */
1330
+ export interface Schema$RejectAccountServiceRequest {
1331
+ }
1176
1332
  /**
1177
1333
  * Describes the terms of service which are required to be accepted.
1178
1334
  */
1179
1335
  export interface Schema$Required {
1180
1336
  /**
1181
- * The [termsOfService](google.shopping.merchant.accounts.v1main.TermsOfService) that need to be accepted.
1337
+ * The `TermsOfService` that need to be accepted.
1182
1338
  */
1183
1339
  termsOfService?: string | null;
1184
1340
  /**
1185
- * 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.
1341
+ * Full URL to the terms of service file. This field is the same as `TermsOfService.file_uri`, it is added here for convenience only.
1186
1342
  */
1187
1343
  tosFileUri?: string | null;
1188
1344
  }
@@ -1269,7 +1425,7 @@ export declare namespace merchantapi_accounts_v1beta {
1269
1425
  */
1270
1426
  active?: boolean | null;
1271
1427
  /**
1272
- * The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
1428
+ * Required. The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
1273
1429
  */
1274
1430
  currencyCode?: string | null;
1275
1431
  /**
@@ -1310,7 +1466,7 @@ export declare namespace merchantapi_accounts_v1beta {
1310
1466
  storeConfig?: Schema$StoreConfig;
1311
1467
  }
1312
1468
  /**
1313
- * The merchant account's [shipping setting](https://support.google.com/merchants/answer/6069284).
1469
+ * The merchant account's [shipping settings](https://support.google.com/merchants/answer/6069284).
1314
1470
  */
1315
1471
  export interface Schema$ShippingSettings {
1316
1472
  /**
@@ -1318,7 +1474,7 @@ export declare namespace merchantapi_accounts_v1beta {
1318
1474
  */
1319
1475
  etag?: string | null;
1320
1476
  /**
1321
- * Identifier. The resource name of the shipping setting. Format: `accounts/{account\}/shippingSetting`
1477
+ * Identifier. The resource name of the shipping settings. Format: `accounts/{account\}/shippingSettings`
1322
1478
  */
1323
1479
  name?: string | null;
1324
1480
  /**
@@ -1399,7 +1555,7 @@ export declare namespace merchantapi_accounts_v1beta {
1399
1555
  rows?: Schema$Row[];
1400
1556
  }
1401
1557
  /**
1402
- * 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`.
1558
+ * 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`.
1403
1559
  */
1404
1560
  export interface Schema$TermsOfService {
1405
1561
  /**
@@ -1424,7 +1580,7 @@ export declare namespace merchantapi_accounts_v1beta {
1424
1580
  regionCode?: string | null;
1425
1581
  }
1426
1582
  /**
1427
- * 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.
1583
+ * 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.
1428
1584
  */
1429
1585
  export interface Schema$TermsOfServiceAgreementState {
1430
1586
  /**
@@ -1585,7 +1741,7 @@ export declare namespace merchantapi_accounts_v1beta {
1585
1741
  */
1586
1742
  carrierService?: string | null;
1587
1743
  /**
1588
- * Required. Warehouse name. This should match warehouse
1744
+ * Required. Warehouse name. This should match [warehouse](/merchant/api/reference/rest/accounts_v1beta/accounts.shippingSettings#warehouse)
1589
1745
  */
1590
1746
  warehouse?: string | null;
1591
1747
  }
@@ -1618,6 +1774,7 @@ export declare namespace merchantapi_accounts_v1beta {
1618
1774
  export class Resource$Accounts {
1619
1775
  context: APIRequestContext;
1620
1776
  autofeedSettings: Resource$Accounts$Autofeedsettings;
1777
+ automaticImprovements: Resource$Accounts$Automaticimprovements;
1621
1778
  businessIdentity: Resource$Accounts$Businessidentity;
1622
1779
  businessInfo: Resource$Accounts$Businessinfo;
1623
1780
  emailPreferences: Resource$Accounts$Emailpreferences;
@@ -1626,20 +1783,22 @@ export declare namespace merchantapi_accounts_v1beta {
1626
1783
  onlineReturnPolicies: Resource$Accounts$Onlinereturnpolicies;
1627
1784
  programs: Resource$Accounts$Programs;
1628
1785
  regions: Resource$Accounts$Regions;
1786
+ relationships: Resource$Accounts$Relationships;
1787
+ services: Resource$Accounts$Services;
1629
1788
  shippingSettings: Resource$Accounts$Shippingsettings;
1630
1789
  termsOfServiceAgreementStates: Resource$Accounts$Termsofserviceagreementstates;
1631
1790
  users: Resource$Accounts$Users;
1632
1791
  constructor(context: APIRequestContext);
1633
1792
  /**
1634
- * Creates a standalone Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.
1793
+ * Creates a Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.
1635
1794
  *
1636
1795
  * @param params - Parameters for request
1637
1796
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1638
1797
  * @param callback - Optional callback that handles the response.
1639
1798
  * @returns A promise if used with async/await, or void if used with a callback.
1640
1799
  */
1641
- createAndConfigure(params: Params$Resource$Accounts$Createandconfigure, options: StreamMethodOptions): GaxiosPromise<Readable>;
1642
- createAndConfigure(params?: Params$Resource$Accounts$Createandconfigure, options?: MethodOptions): GaxiosPromise<Schema$Account>;
1800
+ createAndConfigure(params: Params$Resource$Accounts$Createandconfigure, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1801
+ createAndConfigure(params?: Params$Resource$Accounts$Createandconfigure, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Account>>;
1643
1802
  createAndConfigure(params: Params$Resource$Accounts$Createandconfigure, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1644
1803
  createAndConfigure(params: Params$Resource$Accounts$Createandconfigure, options: MethodOptions | BodyResponseCallback<Schema$Account>, callback: BodyResponseCallback<Schema$Account>): void;
1645
1804
  createAndConfigure(params: Params$Resource$Accounts$Createandconfigure, callback: BodyResponseCallback<Schema$Account>): void;
@@ -1652,8 +1811,8 @@ export declare namespace merchantapi_accounts_v1beta {
1652
1811
  * @param callback - Optional callback that handles the response.
1653
1812
  * @returns A promise if used with async/await, or void if used with a callback.
1654
1813
  */
1655
- delete(params: Params$Resource$Accounts$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
1656
- delete(params?: Params$Resource$Accounts$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
1814
+ delete(params: Params$Resource$Accounts$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1815
+ delete(params?: Params$Resource$Accounts$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
1657
1816
  delete(params: Params$Resource$Accounts$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1658
1817
  delete(params: Params$Resource$Accounts$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
1659
1818
  delete(params: Params$Resource$Accounts$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
@@ -1666,26 +1825,12 @@ export declare namespace merchantapi_accounts_v1beta {
1666
1825
  * @param callback - Optional callback that handles the response.
1667
1826
  * @returns A promise if used with async/await, or void if used with a callback.
1668
1827
  */
1669
- get(params: Params$Resource$Accounts$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
1670
- get(params?: Params$Resource$Accounts$Get, options?: MethodOptions): GaxiosPromise<Schema$Account>;
1828
+ get(params: Params$Resource$Accounts$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1829
+ get(params?: Params$Resource$Accounts$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Account>>;
1671
1830
  get(params: Params$Resource$Accounts$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1672
1831
  get(params: Params$Resource$Accounts$Get, options: MethodOptions | BodyResponseCallback<Schema$Account>, callback: BodyResponseCallback<Schema$Account>): void;
1673
1832
  get(params: Params$Resource$Accounts$Get, callback: BodyResponseCallback<Schema$Account>): void;
1674
1833
  get(callback: BodyResponseCallback<Schema$Account>): void;
1675
- /**
1676
- * Retrieves the automatic improvements of an account.
1677
- *
1678
- * @param params - Parameters for request
1679
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1680
- * @param callback - Optional callback that handles the response.
1681
- * @returns A promise if used with async/await, or void if used with a callback.
1682
- */
1683
- getAutomaticImprovements(params: Params$Resource$Accounts$Getautomaticimprovements, options: StreamMethodOptions): GaxiosPromise<Readable>;
1684
- getAutomaticImprovements(params?: Params$Resource$Accounts$Getautomaticimprovements, options?: MethodOptions): GaxiosPromise<Schema$AutomaticImprovements>;
1685
- getAutomaticImprovements(params: Params$Resource$Accounts$Getautomaticimprovements, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1686
- getAutomaticImprovements(params: Params$Resource$Accounts$Getautomaticimprovements, options: MethodOptions | BodyResponseCallback<Schema$AutomaticImprovements>, callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
1687
- getAutomaticImprovements(params: Params$Resource$Accounts$Getautomaticimprovements, callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
1688
- getAutomaticImprovements(callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
1689
1834
  /**
1690
1835
  * 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.
1691
1836
  *
@@ -1694,8 +1839,8 @@ export declare namespace merchantapi_accounts_v1beta {
1694
1839
  * @param callback - Optional callback that handles the response.
1695
1840
  * @returns A promise if used with async/await, or void if used with a callback.
1696
1841
  */
1697
- list(params: Params$Resource$Accounts$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
1698
- list(params?: Params$Resource$Accounts$List, options?: MethodOptions): GaxiosPromise<Schema$ListAccountsResponse>;
1842
+ list(params: Params$Resource$Accounts$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1843
+ list(params?: Params$Resource$Accounts$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListAccountsResponse>>;
1699
1844
  list(params: Params$Resource$Accounts$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1700
1845
  list(params: Params$Resource$Accounts$List, options: MethodOptions | BodyResponseCallback<Schema$ListAccountsResponse>, callback: BodyResponseCallback<Schema$ListAccountsResponse>): void;
1701
1846
  list(params: Params$Resource$Accounts$List, callback: BodyResponseCallback<Schema$ListAccountsResponse>): void;
@@ -1708,8 +1853,8 @@ export declare namespace merchantapi_accounts_v1beta {
1708
1853
  * @param callback - Optional callback that handles the response.
1709
1854
  * @returns A promise if used with async/await, or void if used with a callback.
1710
1855
  */
1711
- listSubaccounts(params: Params$Resource$Accounts$Listsubaccounts, options: StreamMethodOptions): GaxiosPromise<Readable>;
1712
- listSubaccounts(params?: Params$Resource$Accounts$Listsubaccounts, options?: MethodOptions): GaxiosPromise<Schema$ListSubAccountsResponse>;
1856
+ listSubaccounts(params: Params$Resource$Accounts$Listsubaccounts, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1857
+ listSubaccounts(params?: Params$Resource$Accounts$Listsubaccounts, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListSubAccountsResponse>>;
1713
1858
  listSubaccounts(params: Params$Resource$Accounts$Listsubaccounts, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1714
1859
  listSubaccounts(params: Params$Resource$Accounts$Listsubaccounts, options: MethodOptions | BodyResponseCallback<Schema$ListSubAccountsResponse>, callback: BodyResponseCallback<Schema$ListSubAccountsResponse>): void;
1715
1860
  listSubaccounts(params: Params$Resource$Accounts$Listsubaccounts, callback: BodyResponseCallback<Schema$ListSubAccountsResponse>): void;
@@ -1722,26 +1867,12 @@ export declare namespace merchantapi_accounts_v1beta {
1722
1867
  * @param callback - Optional callback that handles the response.
1723
1868
  * @returns A promise if used with async/await, or void if used with a callback.
1724
1869
  */
1725
- patch(params: Params$Resource$Accounts$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
1726
- patch(params?: Params$Resource$Accounts$Patch, options?: MethodOptions): GaxiosPromise<Schema$Account>;
1870
+ patch(params: Params$Resource$Accounts$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1871
+ patch(params?: Params$Resource$Accounts$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Account>>;
1727
1872
  patch(params: Params$Resource$Accounts$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1728
1873
  patch(params: Params$Resource$Accounts$Patch, options: MethodOptions | BodyResponseCallback<Schema$Account>, callback: BodyResponseCallback<Schema$Account>): void;
1729
1874
  patch(params: Params$Resource$Accounts$Patch, callback: BodyResponseCallback<Schema$Account>): void;
1730
1875
  patch(callback: BodyResponseCallback<Schema$Account>): void;
1731
- /**
1732
- * Updates the automatic improvements of an account.
1733
- *
1734
- * @param params - Parameters for request
1735
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1736
- * @param callback - Optional callback that handles the response.
1737
- * @returns A promise if used with async/await, or void if used with a callback.
1738
- */
1739
- updateAutomaticImprovements(params: Params$Resource$Accounts$Updateautomaticimprovements, options: StreamMethodOptions): GaxiosPromise<Readable>;
1740
- updateAutomaticImprovements(params?: Params$Resource$Accounts$Updateautomaticimprovements, options?: MethodOptions): GaxiosPromise<Schema$AutomaticImprovements>;
1741
- updateAutomaticImprovements(params: Params$Resource$Accounts$Updateautomaticimprovements, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1742
- updateAutomaticImprovements(params: Params$Resource$Accounts$Updateautomaticimprovements, options: MethodOptions | BodyResponseCallback<Schema$AutomaticImprovements>, callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
1743
- updateAutomaticImprovements(params: Params$Resource$Accounts$Updateautomaticimprovements, callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
1744
- updateAutomaticImprovements(callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
1745
1876
  }
1746
1877
  export interface Params$Resource$Accounts$Createandconfigure extends StandardParameters {
1747
1878
  /**
@@ -1765,12 +1896,6 @@ export declare namespace merchantapi_accounts_v1beta {
1765
1896
  */
1766
1897
  name?: string;
1767
1898
  }
1768
- export interface Params$Resource$Accounts$Getautomaticimprovements extends StandardParameters {
1769
- /**
1770
- * Required. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`
1771
- */
1772
- name?: string;
1773
- }
1774
1899
  export interface Params$Resource$Accounts$List extends StandardParameters {
1775
1900
  /**
1776
1901
  * 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).
@@ -1795,7 +1920,7 @@ export declare namespace merchantapi_accounts_v1beta {
1795
1920
  */
1796
1921
  pageToken?: string;
1797
1922
  /**
1798
- * Required. The aggregation service provider. Format: `providers/{providerId\}`
1923
+ * Required. The aggregation service provider. Format: `accounts/{accountId\}`
1799
1924
  */
1800
1925
  provider?: string;
1801
1926
  }
@@ -1813,20 +1938,6 @@ export declare namespace merchantapi_accounts_v1beta {
1813
1938
  */
1814
1939
  requestBody?: Schema$Account;
1815
1940
  }
1816
- export interface Params$Resource$Accounts$Updateautomaticimprovements extends StandardParameters {
1817
- /**
1818
- * Identifier. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`.
1819
- */
1820
- name?: string;
1821
- /**
1822
- * 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`
1823
- */
1824
- updateMask?: string;
1825
- /**
1826
- * Request body metadata
1827
- */
1828
- requestBody?: Schema$AutomaticImprovements;
1829
- }
1830
1941
  export class Resource$Accounts$Autofeedsettings {
1831
1942
  context: APIRequestContext;
1832
1943
  constructor(context: APIRequestContext);
@@ -1838,8 +1949,8 @@ export declare namespace merchantapi_accounts_v1beta {
1838
1949
  * @param callback - Optional callback that handles the response.
1839
1950
  * @returns A promise if used with async/await, or void if used with a callback.
1840
1951
  */
1841
- getAutofeedSettings(params: Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings, options: StreamMethodOptions): GaxiosPromise<Readable>;
1842
- getAutofeedSettings(params?: Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings, options?: MethodOptions): GaxiosPromise<Schema$AutofeedSettings>;
1952
+ getAutofeedSettings(params: Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1953
+ getAutofeedSettings(params?: Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$AutofeedSettings>>;
1843
1954
  getAutofeedSettings(params: Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1844
1955
  getAutofeedSettings(params: Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings, options: MethodOptions | BodyResponseCallback<Schema$AutofeedSettings>, callback: BodyResponseCallback<Schema$AutofeedSettings>): void;
1845
1956
  getAutofeedSettings(params: Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings, callback: BodyResponseCallback<Schema$AutofeedSettings>): void;
@@ -1852,8 +1963,8 @@ export declare namespace merchantapi_accounts_v1beta {
1852
1963
  * @param callback - Optional callback that handles the response.
1853
1964
  * @returns A promise if used with async/await, or void if used with a callback.
1854
1965
  */
1855
- updateAutofeedSettings(params: Params$Resource$Accounts$Autofeedsettings$Updateautofeedsettings, options: StreamMethodOptions): GaxiosPromise<Readable>;
1856
- updateAutofeedSettings(params?: Params$Resource$Accounts$Autofeedsettings$Updateautofeedsettings, options?: MethodOptions): GaxiosPromise<Schema$AutofeedSettings>;
1966
+ updateAutofeedSettings(params: Params$Resource$Accounts$Autofeedsettings$Updateautofeedsettings, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1967
+ updateAutofeedSettings(params?: Params$Resource$Accounts$Autofeedsettings$Updateautofeedsettings, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$AutofeedSettings>>;
1857
1968
  updateAutofeedSettings(params: Params$Resource$Accounts$Autofeedsettings$Updateautofeedsettings, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1858
1969
  updateAutofeedSettings(params: Params$Resource$Accounts$Autofeedsettings$Updateautofeedsettings, options: MethodOptions | BodyResponseCallback<Schema$AutofeedSettings>, callback: BodyResponseCallback<Schema$AutofeedSettings>): void;
1859
1970
  updateAutofeedSettings(params: Params$Resource$Accounts$Autofeedsettings$Updateautofeedsettings, callback: BodyResponseCallback<Schema$AutofeedSettings>): void;
@@ -1879,6 +1990,58 @@ export declare namespace merchantapi_accounts_v1beta {
1879
1990
  */
1880
1991
  requestBody?: Schema$AutofeedSettings;
1881
1992
  }
1993
+ export class Resource$Accounts$Automaticimprovements {
1994
+ context: APIRequestContext;
1995
+ constructor(context: APIRequestContext);
1996
+ /**
1997
+ * Retrieves the automatic improvements of an account.
1998
+ *
1999
+ * @param params - Parameters for request
2000
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2001
+ * @param callback - Optional callback that handles the response.
2002
+ * @returns A promise if used with async/await, or void if used with a callback.
2003
+ */
2004
+ getAutomaticImprovements(params: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2005
+ getAutomaticImprovements(params?: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$AutomaticImprovements>>;
2006
+ getAutomaticImprovements(params: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2007
+ getAutomaticImprovements(params: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements, options: MethodOptions | BodyResponseCallback<Schema$AutomaticImprovements>, callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
2008
+ getAutomaticImprovements(params: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements, callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
2009
+ getAutomaticImprovements(callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
2010
+ /**
2011
+ * Updates the automatic improvements of an account.
2012
+ *
2013
+ * @param params - Parameters for request
2014
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2015
+ * @param callback - Optional callback that handles the response.
2016
+ * @returns A promise if used with async/await, or void if used with a callback.
2017
+ */
2018
+ updateAutomaticImprovements(params: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2019
+ updateAutomaticImprovements(params?: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$AutomaticImprovements>>;
2020
+ updateAutomaticImprovements(params: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2021
+ updateAutomaticImprovements(params: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements, options: MethodOptions | BodyResponseCallback<Schema$AutomaticImprovements>, callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
2022
+ updateAutomaticImprovements(params: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements, callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
2023
+ updateAutomaticImprovements(callback: BodyResponseCallback<Schema$AutomaticImprovements>): void;
2024
+ }
2025
+ export interface Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements extends StandardParameters {
2026
+ /**
2027
+ * Required. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`
2028
+ */
2029
+ name?: string;
2030
+ }
2031
+ export interface Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements extends StandardParameters {
2032
+ /**
2033
+ * Identifier. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`.
2034
+ */
2035
+ name?: string;
2036
+ /**
2037
+ * 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`
2038
+ */
2039
+ updateMask?: string;
2040
+ /**
2041
+ * Request body metadata
2042
+ */
2043
+ requestBody?: Schema$AutomaticImprovements;
2044
+ }
1882
2045
  export class Resource$Accounts$Businessidentity {
1883
2046
  context: APIRequestContext;
1884
2047
  constructor(context: APIRequestContext);
@@ -1890,8 +2053,8 @@ export declare namespace merchantapi_accounts_v1beta {
1890
2053
  * @param callback - Optional callback that handles the response.
1891
2054
  * @returns A promise if used with async/await, or void if used with a callback.
1892
2055
  */
1893
- getBusinessIdentity(params: Params$Resource$Accounts$Businessidentity$Getbusinessidentity, options: StreamMethodOptions): GaxiosPromise<Readable>;
1894
- getBusinessIdentity(params?: Params$Resource$Accounts$Businessidentity$Getbusinessidentity, options?: MethodOptions): GaxiosPromise<Schema$BusinessIdentity>;
2056
+ getBusinessIdentity(params: Params$Resource$Accounts$Businessidentity$Getbusinessidentity, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2057
+ getBusinessIdentity(params?: Params$Resource$Accounts$Businessidentity$Getbusinessidentity, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$BusinessIdentity>>;
1895
2058
  getBusinessIdentity(params: Params$Resource$Accounts$Businessidentity$Getbusinessidentity, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1896
2059
  getBusinessIdentity(params: Params$Resource$Accounts$Businessidentity$Getbusinessidentity, options: MethodOptions | BodyResponseCallback<Schema$BusinessIdentity>, callback: BodyResponseCallback<Schema$BusinessIdentity>): void;
1897
2060
  getBusinessIdentity(params: Params$Resource$Accounts$Businessidentity$Getbusinessidentity, callback: BodyResponseCallback<Schema$BusinessIdentity>): void;
@@ -1904,8 +2067,8 @@ export declare namespace merchantapi_accounts_v1beta {
1904
2067
  * @param callback - Optional callback that handles the response.
1905
2068
  * @returns A promise if used with async/await, or void if used with a callback.
1906
2069
  */
1907
- updateBusinessIdentity(params: Params$Resource$Accounts$Businessidentity$Updatebusinessidentity, options: StreamMethodOptions): GaxiosPromise<Readable>;
1908
- updateBusinessIdentity(params?: Params$Resource$Accounts$Businessidentity$Updatebusinessidentity, options?: MethodOptions): GaxiosPromise<Schema$BusinessIdentity>;
2070
+ updateBusinessIdentity(params: Params$Resource$Accounts$Businessidentity$Updatebusinessidentity, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2071
+ updateBusinessIdentity(params?: Params$Resource$Accounts$Businessidentity$Updatebusinessidentity, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$BusinessIdentity>>;
1909
2072
  updateBusinessIdentity(params: Params$Resource$Accounts$Businessidentity$Updatebusinessidentity, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1910
2073
  updateBusinessIdentity(params: Params$Resource$Accounts$Businessidentity$Updatebusinessidentity, options: MethodOptions | BodyResponseCallback<Schema$BusinessIdentity>, callback: BodyResponseCallback<Schema$BusinessIdentity>): void;
1911
2074
  updateBusinessIdentity(params: Params$Resource$Accounts$Businessidentity$Updatebusinessidentity, callback: BodyResponseCallback<Schema$BusinessIdentity>): void;
@@ -1942,8 +2105,8 @@ export declare namespace merchantapi_accounts_v1beta {
1942
2105
  * @param callback - Optional callback that handles the response.
1943
2106
  * @returns A promise if used with async/await, or void if used with a callback.
1944
2107
  */
1945
- getBusinessInfo(params: Params$Resource$Accounts$Businessinfo$Getbusinessinfo, options: StreamMethodOptions): GaxiosPromise<Readable>;
1946
- getBusinessInfo(params?: Params$Resource$Accounts$Businessinfo$Getbusinessinfo, options?: MethodOptions): GaxiosPromise<Schema$BusinessInfo>;
2108
+ getBusinessInfo(params: Params$Resource$Accounts$Businessinfo$Getbusinessinfo, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2109
+ getBusinessInfo(params?: Params$Resource$Accounts$Businessinfo$Getbusinessinfo, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$BusinessInfo>>;
1947
2110
  getBusinessInfo(params: Params$Resource$Accounts$Businessinfo$Getbusinessinfo, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1948
2111
  getBusinessInfo(params: Params$Resource$Accounts$Businessinfo$Getbusinessinfo, options: MethodOptions | BodyResponseCallback<Schema$BusinessInfo>, callback: BodyResponseCallback<Schema$BusinessInfo>): void;
1949
2112
  getBusinessInfo(params: Params$Resource$Accounts$Businessinfo$Getbusinessinfo, callback: BodyResponseCallback<Schema$BusinessInfo>): void;
@@ -1956,8 +2119,8 @@ export declare namespace merchantapi_accounts_v1beta {
1956
2119
  * @param callback - Optional callback that handles the response.
1957
2120
  * @returns A promise if used with async/await, or void if used with a callback.
1958
2121
  */
1959
- updateBusinessInfo(params: Params$Resource$Accounts$Businessinfo$Updatebusinessinfo, options: StreamMethodOptions): GaxiosPromise<Readable>;
1960
- updateBusinessInfo(params?: Params$Resource$Accounts$Businessinfo$Updatebusinessinfo, options?: MethodOptions): GaxiosPromise<Schema$BusinessInfo>;
2122
+ updateBusinessInfo(params: Params$Resource$Accounts$Businessinfo$Updatebusinessinfo, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2123
+ updateBusinessInfo(params?: Params$Resource$Accounts$Businessinfo$Updatebusinessinfo, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$BusinessInfo>>;
1961
2124
  updateBusinessInfo(params: Params$Resource$Accounts$Businessinfo$Updatebusinessinfo, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1962
2125
  updateBusinessInfo(params: Params$Resource$Accounts$Businessinfo$Updatebusinessinfo, options: MethodOptions | BodyResponseCallback<Schema$BusinessInfo>, callback: BodyResponseCallback<Schema$BusinessInfo>): void;
1963
2126
  updateBusinessInfo(params: Params$Resource$Accounts$Businessinfo$Updatebusinessinfo, callback: BodyResponseCallback<Schema$BusinessInfo>): void;
@@ -1994,8 +2157,8 @@ export declare namespace merchantapi_accounts_v1beta {
1994
2157
  * @param callback - Optional callback that handles the response.
1995
2158
  * @returns A promise if used with async/await, or void if used with a callback.
1996
2159
  */
1997
- getEmailPreferences(params: Params$Resource$Accounts$Emailpreferences$Getemailpreferences, options: StreamMethodOptions): GaxiosPromise<Readable>;
1998
- getEmailPreferences(params?: Params$Resource$Accounts$Emailpreferences$Getemailpreferences, options?: MethodOptions): GaxiosPromise<Schema$EmailPreferences>;
2160
+ getEmailPreferences(params: Params$Resource$Accounts$Emailpreferences$Getemailpreferences, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2161
+ getEmailPreferences(params?: Params$Resource$Accounts$Emailpreferences$Getemailpreferences, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$EmailPreferences>>;
1999
2162
  getEmailPreferences(params: Params$Resource$Accounts$Emailpreferences$Getemailpreferences, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2000
2163
  getEmailPreferences(params: Params$Resource$Accounts$Emailpreferences$Getemailpreferences, options: MethodOptions | BodyResponseCallback<Schema$EmailPreferences>, callback: BodyResponseCallback<Schema$EmailPreferences>): void;
2001
2164
  getEmailPreferences(params: Params$Resource$Accounts$Emailpreferences$Getemailpreferences, callback: BodyResponseCallback<Schema$EmailPreferences>): void;
@@ -2008,8 +2171,8 @@ export declare namespace merchantapi_accounts_v1beta {
2008
2171
  * @param callback - Optional callback that handles the response.
2009
2172
  * @returns A promise if used with async/await, or void if used with a callback.
2010
2173
  */
2011
- updateEmailPreferences(params: Params$Resource$Accounts$Emailpreferences$Updateemailpreferences, options: StreamMethodOptions): GaxiosPromise<Readable>;
2012
- updateEmailPreferences(params?: Params$Resource$Accounts$Emailpreferences$Updateemailpreferences, options?: MethodOptions): GaxiosPromise<Schema$EmailPreferences>;
2174
+ updateEmailPreferences(params: Params$Resource$Accounts$Emailpreferences$Updateemailpreferences, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2175
+ updateEmailPreferences(params?: Params$Resource$Accounts$Emailpreferences$Updateemailpreferences, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$EmailPreferences>>;
2013
2176
  updateEmailPreferences(params: Params$Resource$Accounts$Emailpreferences$Updateemailpreferences, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2014
2177
  updateEmailPreferences(params: Params$Resource$Accounts$Emailpreferences$Updateemailpreferences, options: MethodOptions | BodyResponseCallback<Schema$EmailPreferences>, callback: BodyResponseCallback<Schema$EmailPreferences>): void;
2015
2178
  updateEmailPreferences(params: Params$Resource$Accounts$Emailpreferences$Updateemailpreferences, callback: BodyResponseCallback<Schema$EmailPreferences>): void;
@@ -2039,15 +2202,15 @@ export declare namespace merchantapi_accounts_v1beta {
2039
2202
  context: APIRequestContext;
2040
2203
  constructor(context: APIRequestContext);
2041
2204
  /**
2042
- * 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).
2205
+ * 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).
2043
2206
  *
2044
2207
  * @param params - Parameters for request
2045
2208
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2046
2209
  * @param callback - Optional callback that handles the response.
2047
2210
  * @returns A promise if used with async/await, or void if used with a callback.
2048
2211
  */
2049
- claim(params: Params$Resource$Accounts$Homepage$Claim, options: StreamMethodOptions): GaxiosPromise<Readable>;
2050
- claim(params?: Params$Resource$Accounts$Homepage$Claim, options?: MethodOptions): GaxiosPromise<Schema$Homepage>;
2212
+ claim(params: Params$Resource$Accounts$Homepage$Claim, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2213
+ claim(params?: Params$Resource$Accounts$Homepage$Claim, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Homepage>>;
2051
2214
  claim(params: Params$Resource$Accounts$Homepage$Claim, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2052
2215
  claim(params: Params$Resource$Accounts$Homepage$Claim, options: MethodOptions | BodyResponseCallback<Schema$Homepage>, callback: BodyResponseCallback<Schema$Homepage>): void;
2053
2216
  claim(params: Params$Resource$Accounts$Homepage$Claim, callback: BodyResponseCallback<Schema$Homepage>): void;
@@ -2060,8 +2223,8 @@ export declare namespace merchantapi_accounts_v1beta {
2060
2223
  * @param callback - Optional callback that handles the response.
2061
2224
  * @returns A promise if used with async/await, or void if used with a callback.
2062
2225
  */
2063
- getHomepage(params: Params$Resource$Accounts$Homepage$Gethomepage, options: StreamMethodOptions): GaxiosPromise<Readable>;
2064
- getHomepage(params?: Params$Resource$Accounts$Homepage$Gethomepage, options?: MethodOptions): GaxiosPromise<Schema$Homepage>;
2226
+ getHomepage(params: Params$Resource$Accounts$Homepage$Gethomepage, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2227
+ getHomepage(params?: Params$Resource$Accounts$Homepage$Gethomepage, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Homepage>>;
2065
2228
  getHomepage(params: Params$Resource$Accounts$Homepage$Gethomepage, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2066
2229
  getHomepage(params: Params$Resource$Accounts$Homepage$Gethomepage, options: MethodOptions | BodyResponseCallback<Schema$Homepage>, callback: BodyResponseCallback<Schema$Homepage>): void;
2067
2230
  getHomepage(params: Params$Resource$Accounts$Homepage$Gethomepage, callback: BodyResponseCallback<Schema$Homepage>): void;
@@ -2074,8 +2237,8 @@ export declare namespace merchantapi_accounts_v1beta {
2074
2237
  * @param callback - Optional callback that handles the response.
2075
2238
  * @returns A promise if used with async/await, or void if used with a callback.
2076
2239
  */
2077
- unclaim(params: Params$Resource$Accounts$Homepage$Unclaim, options: StreamMethodOptions): GaxiosPromise<Readable>;
2078
- unclaim(params?: Params$Resource$Accounts$Homepage$Unclaim, options?: MethodOptions): GaxiosPromise<Schema$Homepage>;
2240
+ unclaim(params: Params$Resource$Accounts$Homepage$Unclaim, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2241
+ unclaim(params?: Params$Resource$Accounts$Homepage$Unclaim, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Homepage>>;
2079
2242
  unclaim(params: Params$Resource$Accounts$Homepage$Unclaim, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2080
2243
  unclaim(params: Params$Resource$Accounts$Homepage$Unclaim, options: MethodOptions | BodyResponseCallback<Schema$Homepage>, callback: BodyResponseCallback<Schema$Homepage>): void;
2081
2244
  unclaim(params: Params$Resource$Accounts$Homepage$Unclaim, callback: BodyResponseCallback<Schema$Homepage>): void;
@@ -2088,8 +2251,8 @@ export declare namespace merchantapi_accounts_v1beta {
2088
2251
  * @param callback - Optional callback that handles the response.
2089
2252
  * @returns A promise if used with async/await, or void if used with a callback.
2090
2253
  */
2091
- updateHomepage(params: Params$Resource$Accounts$Homepage$Updatehomepage, options: StreamMethodOptions): GaxiosPromise<Readable>;
2092
- updateHomepage(params?: Params$Resource$Accounts$Homepage$Updatehomepage, options?: MethodOptions): GaxiosPromise<Schema$Homepage>;
2254
+ updateHomepage(params: Params$Resource$Accounts$Homepage$Updatehomepage, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2255
+ updateHomepage(params?: Params$Resource$Accounts$Homepage$Updatehomepage, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Homepage>>;
2093
2256
  updateHomepage(params: Params$Resource$Accounts$Homepage$Updatehomepage, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2094
2257
  updateHomepage(params: Params$Resource$Accounts$Homepage$Updatehomepage, options: MethodOptions | BodyResponseCallback<Schema$Homepage>, callback: BodyResponseCallback<Schema$Homepage>): void;
2095
2258
  updateHomepage(params: Params$Resource$Accounts$Homepage$Updatehomepage, callback: BodyResponseCallback<Schema$Homepage>): void;
@@ -2139,15 +2302,15 @@ export declare namespace merchantapi_accounts_v1beta {
2139
2302
  context: APIRequestContext;
2140
2303
  constructor(context: APIRequestContext);
2141
2304
  /**
2142
- * Lists all account issues of a Merchant Center account.
2305
+ * 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.
2143
2306
  *
2144
2307
  * @param params - Parameters for request
2145
2308
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2146
2309
  * @param callback - Optional callback that handles the response.
2147
2310
  * @returns A promise if used with async/await, or void if used with a callback.
2148
2311
  */
2149
- list(params: Params$Resource$Accounts$Issues$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
2150
- list(params?: Params$Resource$Accounts$Issues$List, options?: MethodOptions): GaxiosPromise<Schema$ListAccountIssuesResponse>;
2312
+ list(params: Params$Resource$Accounts$Issues$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2313
+ list(params?: Params$Resource$Accounts$Issues$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListAccountIssuesResponse>>;
2151
2314
  list(params: Params$Resource$Accounts$Issues$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2152
2315
  list(params: Params$Resource$Accounts$Issues$List, options: MethodOptions | BodyResponseCallback<Schema$ListAccountIssuesResponse>, callback: BodyResponseCallback<Schema$ListAccountIssuesResponse>): void;
2153
2316
  list(params: Params$Resource$Accounts$Issues$List, callback: BodyResponseCallback<Schema$ListAccountIssuesResponse>): void;
@@ -2159,7 +2322,7 @@ export declare namespace merchantapi_accounts_v1beta {
2159
2322
  */
2160
2323
  languageCode?: string;
2161
2324
  /**
2162
- * 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
2325
+ * 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
2163
2326
  */
2164
2327
  pageSize?: number;
2165
2328
  /**
@@ -2186,8 +2349,8 @@ export declare namespace merchantapi_accounts_v1beta {
2186
2349
  * @param callback - Optional callback that handles the response.
2187
2350
  * @returns A promise if used with async/await, or void if used with a callback.
2188
2351
  */
2189
- get(params: Params$Resource$Accounts$Onlinereturnpolicies$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
2190
- get(params?: Params$Resource$Accounts$Onlinereturnpolicies$Get, options?: MethodOptions): GaxiosPromise<Schema$OnlineReturnPolicy>;
2352
+ get(params: Params$Resource$Accounts$Onlinereturnpolicies$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2353
+ get(params?: Params$Resource$Accounts$Onlinereturnpolicies$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$OnlineReturnPolicy>>;
2191
2354
  get(params: Params$Resource$Accounts$Onlinereturnpolicies$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2192
2355
  get(params: Params$Resource$Accounts$Onlinereturnpolicies$Get, options: MethodOptions | BodyResponseCallback<Schema$OnlineReturnPolicy>, callback: BodyResponseCallback<Schema$OnlineReturnPolicy>): void;
2193
2356
  get(params: Params$Resource$Accounts$Onlinereturnpolicies$Get, callback: BodyResponseCallback<Schema$OnlineReturnPolicy>): void;
@@ -2200,8 +2363,8 @@ export declare namespace merchantapi_accounts_v1beta {
2200
2363
  * @param callback - Optional callback that handles the response.
2201
2364
  * @returns A promise if used with async/await, or void if used with a callback.
2202
2365
  */
2203
- list(params: Params$Resource$Accounts$Onlinereturnpolicies$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
2204
- list(params?: Params$Resource$Accounts$Onlinereturnpolicies$List, options?: MethodOptions): GaxiosPromise<Schema$ListOnlineReturnPoliciesResponse>;
2366
+ list(params: Params$Resource$Accounts$Onlinereturnpolicies$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2367
+ list(params?: Params$Resource$Accounts$Onlinereturnpolicies$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListOnlineReturnPoliciesResponse>>;
2205
2368
  list(params: Params$Resource$Accounts$Onlinereturnpolicies$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2206
2369
  list(params: Params$Resource$Accounts$Onlinereturnpolicies$List, options: MethodOptions | BodyResponseCallback<Schema$ListOnlineReturnPoliciesResponse>, callback: BodyResponseCallback<Schema$ListOnlineReturnPoliciesResponse>): void;
2207
2370
  list(params: Params$Resource$Accounts$Onlinereturnpolicies$List, callback: BodyResponseCallback<Schema$ListOnlineReturnPoliciesResponse>): void;
@@ -2238,8 +2401,8 @@ export declare namespace merchantapi_accounts_v1beta {
2238
2401
  * @param callback - Optional callback that handles the response.
2239
2402
  * @returns A promise if used with async/await, or void if used with a callback.
2240
2403
  */
2241
- disable(params: Params$Resource$Accounts$Programs$Disable, options: StreamMethodOptions): GaxiosPromise<Readable>;
2242
- disable(params?: Params$Resource$Accounts$Programs$Disable, options?: MethodOptions): GaxiosPromise<Schema$Program>;
2404
+ disable(params: Params$Resource$Accounts$Programs$Disable, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2405
+ disable(params?: Params$Resource$Accounts$Programs$Disable, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Program>>;
2243
2406
  disable(params: Params$Resource$Accounts$Programs$Disable, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2244
2407
  disable(params: Params$Resource$Accounts$Programs$Disable, options: MethodOptions | BodyResponseCallback<Schema$Program>, callback: BodyResponseCallback<Schema$Program>): void;
2245
2408
  disable(params: Params$Resource$Accounts$Programs$Disable, callback: BodyResponseCallback<Schema$Program>): void;
@@ -2252,8 +2415,8 @@ export declare namespace merchantapi_accounts_v1beta {
2252
2415
  * @param callback - Optional callback that handles the response.
2253
2416
  * @returns A promise if used with async/await, or void if used with a callback.
2254
2417
  */
2255
- enable(params: Params$Resource$Accounts$Programs$Enable, options: StreamMethodOptions): GaxiosPromise<Readable>;
2256
- enable(params?: Params$Resource$Accounts$Programs$Enable, options?: MethodOptions): GaxiosPromise<Schema$Program>;
2418
+ enable(params: Params$Resource$Accounts$Programs$Enable, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2419
+ enable(params?: Params$Resource$Accounts$Programs$Enable, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Program>>;
2257
2420
  enable(params: Params$Resource$Accounts$Programs$Enable, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2258
2421
  enable(params: Params$Resource$Accounts$Programs$Enable, options: MethodOptions | BodyResponseCallback<Schema$Program>, callback: BodyResponseCallback<Schema$Program>): void;
2259
2422
  enable(params: Params$Resource$Accounts$Programs$Enable, callback: BodyResponseCallback<Schema$Program>): void;
@@ -2266,8 +2429,8 @@ export declare namespace merchantapi_accounts_v1beta {
2266
2429
  * @param callback - Optional callback that handles the response.
2267
2430
  * @returns A promise if used with async/await, or void if used with a callback.
2268
2431
  */
2269
- get(params: Params$Resource$Accounts$Programs$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
2270
- get(params?: Params$Resource$Accounts$Programs$Get, options?: MethodOptions): GaxiosPromise<Schema$Program>;
2432
+ get(params: Params$Resource$Accounts$Programs$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2433
+ get(params?: Params$Resource$Accounts$Programs$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Program>>;
2271
2434
  get(params: Params$Resource$Accounts$Programs$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2272
2435
  get(params: Params$Resource$Accounts$Programs$Get, options: MethodOptions | BodyResponseCallback<Schema$Program>, callback: BodyResponseCallback<Schema$Program>): void;
2273
2436
  get(params: Params$Resource$Accounts$Programs$Get, callback: BodyResponseCallback<Schema$Program>): void;
@@ -2280,8 +2443,8 @@ export declare namespace merchantapi_accounts_v1beta {
2280
2443
  * @param callback - Optional callback that handles the response.
2281
2444
  * @returns A promise if used with async/await, or void if used with a callback.
2282
2445
  */
2283
- list(params: Params$Resource$Accounts$Programs$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
2284
- list(params?: Params$Resource$Accounts$Programs$List, options?: MethodOptions): GaxiosPromise<Schema$ListProgramsResponse>;
2446
+ list(params: Params$Resource$Accounts$Programs$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2447
+ list(params?: Params$Resource$Accounts$Programs$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListProgramsResponse>>;
2285
2448
  list(params: Params$Resource$Accounts$Programs$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2286
2449
  list(params: Params$Resource$Accounts$Programs$List, options: MethodOptions | BodyResponseCallback<Schema$ListProgramsResponse>, callback: BodyResponseCallback<Schema$ListProgramsResponse>): void;
2287
2450
  list(params: Params$Resource$Accounts$Programs$List, callback: BodyResponseCallback<Schema$ListProgramsResponse>): void;
@@ -2338,8 +2501,8 @@ export declare namespace merchantapi_accounts_v1beta {
2338
2501
  * @param callback - Optional callback that handles the response.
2339
2502
  * @returns A promise if used with async/await, or void if used with a callback.
2340
2503
  */
2341
- create(params: Params$Resource$Accounts$Regions$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
2342
- create(params?: Params$Resource$Accounts$Regions$Create, options?: MethodOptions): GaxiosPromise<Schema$Region>;
2504
+ create(params: Params$Resource$Accounts$Regions$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2505
+ create(params?: Params$Resource$Accounts$Regions$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Region>>;
2343
2506
  create(params: Params$Resource$Accounts$Regions$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2344
2507
  create(params: Params$Resource$Accounts$Regions$Create, options: MethodOptions | BodyResponseCallback<Schema$Region>, callback: BodyResponseCallback<Schema$Region>): void;
2345
2508
  create(params: Params$Resource$Accounts$Regions$Create, callback: BodyResponseCallback<Schema$Region>): void;
@@ -2352,8 +2515,8 @@ export declare namespace merchantapi_accounts_v1beta {
2352
2515
  * @param callback - Optional callback that handles the response.
2353
2516
  * @returns A promise if used with async/await, or void if used with a callback.
2354
2517
  */
2355
- delete(params: Params$Resource$Accounts$Regions$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
2356
- delete(params?: Params$Resource$Accounts$Regions$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
2518
+ delete(params: Params$Resource$Accounts$Regions$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2519
+ delete(params?: Params$Resource$Accounts$Regions$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
2357
2520
  delete(params: Params$Resource$Accounts$Regions$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2358
2521
  delete(params: Params$Resource$Accounts$Regions$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
2359
2522
  delete(params: Params$Resource$Accounts$Regions$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
@@ -2366,8 +2529,8 @@ export declare namespace merchantapi_accounts_v1beta {
2366
2529
  * @param callback - Optional callback that handles the response.
2367
2530
  * @returns A promise if used with async/await, or void if used with a callback.
2368
2531
  */
2369
- get(params: Params$Resource$Accounts$Regions$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
2370
- get(params?: Params$Resource$Accounts$Regions$Get, options?: MethodOptions): GaxiosPromise<Schema$Region>;
2532
+ get(params: Params$Resource$Accounts$Regions$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2533
+ get(params?: Params$Resource$Accounts$Regions$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Region>>;
2371
2534
  get(params: Params$Resource$Accounts$Regions$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2372
2535
  get(params: Params$Resource$Accounts$Regions$Get, options: MethodOptions | BodyResponseCallback<Schema$Region>, callback: BodyResponseCallback<Schema$Region>): void;
2373
2536
  get(params: Params$Resource$Accounts$Regions$Get, callback: BodyResponseCallback<Schema$Region>): void;
@@ -2380,8 +2543,8 @@ export declare namespace merchantapi_accounts_v1beta {
2380
2543
  * @param callback - Optional callback that handles the response.
2381
2544
  * @returns A promise if used with async/await, or void if used with a callback.
2382
2545
  */
2383
- list(params: Params$Resource$Accounts$Regions$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
2384
- list(params?: Params$Resource$Accounts$Regions$List, options?: MethodOptions): GaxiosPromise<Schema$ListRegionsResponse>;
2546
+ list(params: Params$Resource$Accounts$Regions$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2547
+ list(params?: Params$Resource$Accounts$Regions$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListRegionsResponse>>;
2385
2548
  list(params: Params$Resource$Accounts$Regions$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2386
2549
  list(params: Params$Resource$Accounts$Regions$List, options: MethodOptions | BodyResponseCallback<Schema$ListRegionsResponse>, callback: BodyResponseCallback<Schema$ListRegionsResponse>): void;
2387
2550
  list(params: Params$Resource$Accounts$Regions$List, callback: BodyResponseCallback<Schema$ListRegionsResponse>): void;
@@ -2394,8 +2557,8 @@ export declare namespace merchantapi_accounts_v1beta {
2394
2557
  * @param callback - Optional callback that handles the response.
2395
2558
  * @returns A promise if used with async/await, or void if used with a callback.
2396
2559
  */
2397
- patch(params: Params$Resource$Accounts$Regions$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
2398
- patch(params?: Params$Resource$Accounts$Regions$Patch, options?: MethodOptions): GaxiosPromise<Schema$Region>;
2560
+ patch(params: Params$Resource$Accounts$Regions$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2561
+ patch(params?: Params$Resource$Accounts$Regions$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Region>>;
2399
2562
  patch(params: Params$Resource$Accounts$Regions$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2400
2563
  patch(params: Params$Resource$Accounts$Regions$Patch, options: MethodOptions | BodyResponseCallback<Schema$Region>, callback: BodyResponseCallback<Schema$Region>): void;
2401
2564
  patch(params: Params$Resource$Accounts$Regions$Patch, callback: BodyResponseCallback<Schema$Region>): void;
@@ -2455,6 +2618,210 @@ export declare namespace merchantapi_accounts_v1beta {
2455
2618
  */
2456
2619
  requestBody?: Schema$Region;
2457
2620
  }
2621
+ export class Resource$Accounts$Relationships {
2622
+ context: APIRequestContext;
2623
+ constructor(context: APIRequestContext);
2624
+ /**
2625
+ * Retrieve an account relationship.
2626
+ *
2627
+ * @param params - Parameters for request
2628
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2629
+ * @param callback - Optional callback that handles the response.
2630
+ * @returns A promise if used with async/await, or void if used with a callback.
2631
+ */
2632
+ get(params: Params$Resource$Accounts$Relationships$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2633
+ get(params?: Params$Resource$Accounts$Relationships$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$AccountRelationship>>;
2634
+ get(params: Params$Resource$Accounts$Relationships$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2635
+ get(params: Params$Resource$Accounts$Relationships$Get, options: MethodOptions | BodyResponseCallback<Schema$AccountRelationship>, callback: BodyResponseCallback<Schema$AccountRelationship>): void;
2636
+ get(params: Params$Resource$Accounts$Relationships$Get, callback: BodyResponseCallback<Schema$AccountRelationship>): void;
2637
+ get(callback: BodyResponseCallback<Schema$AccountRelationship>): void;
2638
+ /**
2639
+ * List account relationships for the specified account.
2640
+ *
2641
+ * @param params - Parameters for request
2642
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2643
+ * @param callback - Optional callback that handles the response.
2644
+ * @returns A promise if used with async/await, or void if used with a callback.
2645
+ */
2646
+ list(params: Params$Resource$Accounts$Relationships$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2647
+ list(params?: Params$Resource$Accounts$Relationships$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListAccountRelationshipsResponse>>;
2648
+ list(params: Params$Resource$Accounts$Relationships$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2649
+ list(params: Params$Resource$Accounts$Relationships$List, options: MethodOptions | BodyResponseCallback<Schema$ListAccountRelationshipsResponse>, callback: BodyResponseCallback<Schema$ListAccountRelationshipsResponse>): void;
2650
+ list(params: Params$Resource$Accounts$Relationships$List, callback: BodyResponseCallback<Schema$ListAccountRelationshipsResponse>): void;
2651
+ list(callback: BodyResponseCallback<Schema$ListAccountRelationshipsResponse>): void;
2652
+ /**
2653
+ * Updates the account relationship. Executing this method requires admin access.
2654
+ *
2655
+ * @param params - Parameters for request
2656
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2657
+ * @param callback - Optional callback that handles the response.
2658
+ * @returns A promise if used with async/await, or void if used with a callback.
2659
+ */
2660
+ patch(params: Params$Resource$Accounts$Relationships$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2661
+ patch(params?: Params$Resource$Accounts$Relationships$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$AccountRelationship>>;
2662
+ patch(params: Params$Resource$Accounts$Relationships$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2663
+ patch(params: Params$Resource$Accounts$Relationships$Patch, options: MethodOptions | BodyResponseCallback<Schema$AccountRelationship>, callback: BodyResponseCallback<Schema$AccountRelationship>): void;
2664
+ patch(params: Params$Resource$Accounts$Relationships$Patch, callback: BodyResponseCallback<Schema$AccountRelationship>): void;
2665
+ patch(callback: BodyResponseCallback<Schema$AccountRelationship>): void;
2666
+ }
2667
+ export interface Params$Resource$Accounts$Relationships$Get extends StandardParameters {
2668
+ /**
2669
+ * Required. The resource name of the account relationship to get. Format: `accounts/{account\}/relationships/{relationship\}`
2670
+ */
2671
+ name?: string;
2672
+ }
2673
+ export interface Params$Resource$Accounts$Relationships$List extends StandardParameters {
2674
+ /**
2675
+ * 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`.
2676
+ */
2677
+ pageSize?: number;
2678
+ /**
2679
+ * Optional. The token returned by the previous `list` request.
2680
+ */
2681
+ pageToken?: string;
2682
+ /**
2683
+ * Required. The parent account of the account relationship to filter by. Format: `accounts/{account\}`
2684
+ */
2685
+ parent?: string;
2686
+ }
2687
+ export interface Params$Resource$Accounts$Relationships$Patch extends StandardParameters {
2688
+ /**
2689
+ * Identifier. The resource name of the account relationship. Format: `accounts/{account\}/relationships/{relationship\}`
2690
+ */
2691
+ name?: string;
2692
+ /**
2693
+ * Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `account_id_alias`
2694
+ */
2695
+ updateMask?: string;
2696
+ /**
2697
+ * Request body metadata
2698
+ */
2699
+ requestBody?: Schema$AccountRelationship;
2700
+ }
2701
+ export class Resource$Accounts$Services {
2702
+ context: APIRequestContext;
2703
+ constructor(context: APIRequestContext);
2704
+ /**
2705
+ * Approve an account service proposal.
2706
+ *
2707
+ * @param params - Parameters for request
2708
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2709
+ * @param callback - Optional callback that handles the response.
2710
+ * @returns A promise if used with async/await, or void if used with a callback.
2711
+ */
2712
+ approve(params: Params$Resource$Accounts$Services$Approve, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2713
+ approve(params?: Params$Resource$Accounts$Services$Approve, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$AccountService>>;
2714
+ approve(params: Params$Resource$Accounts$Services$Approve, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2715
+ approve(params: Params$Resource$Accounts$Services$Approve, options: MethodOptions | BodyResponseCallback<Schema$AccountService>, callback: BodyResponseCallback<Schema$AccountService>): void;
2716
+ approve(params: Params$Resource$Accounts$Services$Approve, callback: BodyResponseCallback<Schema$AccountService>): void;
2717
+ approve(callback: BodyResponseCallback<Schema$AccountService>): void;
2718
+ /**
2719
+ * Retrieve an account service.
2720
+ *
2721
+ * @param params - Parameters for request
2722
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2723
+ * @param callback - Optional callback that handles the response.
2724
+ * @returns A promise if used with async/await, or void if used with a callback.
2725
+ */
2726
+ get(params: Params$Resource$Accounts$Services$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2727
+ get(params?: Params$Resource$Accounts$Services$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$AccountService>>;
2728
+ get(params: Params$Resource$Accounts$Services$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2729
+ get(params: Params$Resource$Accounts$Services$Get, options: MethodOptions | BodyResponseCallback<Schema$AccountService>, callback: BodyResponseCallback<Schema$AccountService>): void;
2730
+ get(params: Params$Resource$Accounts$Services$Get, callback: BodyResponseCallback<Schema$AccountService>): void;
2731
+ get(callback: BodyResponseCallback<Schema$AccountService>): void;
2732
+ /**
2733
+ * List account services for the specified accounts. Supports filtering.
2734
+ *
2735
+ * @param params - Parameters for request
2736
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2737
+ * @param callback - Optional callback that handles the response.
2738
+ * @returns A promise if used with async/await, or void if used with a callback.
2739
+ */
2740
+ list(params: Params$Resource$Accounts$Services$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2741
+ list(params?: Params$Resource$Accounts$Services$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListAccountServicesResponse>>;
2742
+ list(params: Params$Resource$Accounts$Services$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2743
+ list(params: Params$Resource$Accounts$Services$List, options: MethodOptions | BodyResponseCallback<Schema$ListAccountServicesResponse>, callback: BodyResponseCallback<Schema$ListAccountServicesResponse>): void;
2744
+ list(params: Params$Resource$Accounts$Services$List, callback: BodyResponseCallback<Schema$ListAccountServicesResponse>): void;
2745
+ list(callback: BodyResponseCallback<Schema$ListAccountServicesResponse>): void;
2746
+ /**
2747
+ * Propose an account service.
2748
+ *
2749
+ * @param params - Parameters for request
2750
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2751
+ * @param callback - Optional callback that handles the response.
2752
+ * @returns A promise if used with async/await, or void if used with a callback.
2753
+ */
2754
+ propose(params: Params$Resource$Accounts$Services$Propose, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2755
+ propose(params?: Params$Resource$Accounts$Services$Propose, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$AccountService>>;
2756
+ propose(params: Params$Resource$Accounts$Services$Propose, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2757
+ propose(params: Params$Resource$Accounts$Services$Propose, options: MethodOptions | BodyResponseCallback<Schema$AccountService>, callback: BodyResponseCallback<Schema$AccountService>): void;
2758
+ propose(params: Params$Resource$Accounts$Services$Propose, callback: BodyResponseCallback<Schema$AccountService>): void;
2759
+ propose(callback: BodyResponseCallback<Schema$AccountService>): void;
2760
+ /**
2761
+ * Reject an account service (both proposed and approve services can be rejected).
2762
+ *
2763
+ * @param params - Parameters for request
2764
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2765
+ * @param callback - Optional callback that handles the response.
2766
+ * @returns A promise if used with async/await, or void if used with a callback.
2767
+ */
2768
+ reject(params: Params$Resource$Accounts$Services$Reject, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2769
+ reject(params?: Params$Resource$Accounts$Services$Reject, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
2770
+ reject(params: Params$Resource$Accounts$Services$Reject, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2771
+ reject(params: Params$Resource$Accounts$Services$Reject, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
2772
+ reject(params: Params$Resource$Accounts$Services$Reject, callback: BodyResponseCallback<Schema$Empty>): void;
2773
+ reject(callback: BodyResponseCallback<Schema$Empty>): void;
2774
+ }
2775
+ export interface Params$Resource$Accounts$Services$Approve extends StandardParameters {
2776
+ /**
2777
+ * Required. The resource name of the account service to approve. Format: `accounts/{account\}/services/{service\}`
2778
+ */
2779
+ name?: string;
2780
+ /**
2781
+ * Request body metadata
2782
+ */
2783
+ requestBody?: Schema$ApproveAccountServiceRequest;
2784
+ }
2785
+ export interface Params$Resource$Accounts$Services$Get extends StandardParameters {
2786
+ /**
2787
+ * Required. The resource name of the account service to get. Format: `accounts/{account\}/services/{service\}`
2788
+ */
2789
+ name?: string;
2790
+ }
2791
+ export interface Params$Resource$Accounts$Services$List extends StandardParameters {
2792
+ /**
2793
+ * 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`.
2794
+ */
2795
+ pageSize?: number;
2796
+ /**
2797
+ * Optional. The token returned by the previous `list` request.
2798
+ */
2799
+ pageToken?: string;
2800
+ /**
2801
+ * Required. The parent account of the account service to filter by. Format: `accounts/{account\}`
2802
+ */
2803
+ parent?: string;
2804
+ }
2805
+ export interface Params$Resource$Accounts$Services$Propose extends StandardParameters {
2806
+ /**
2807
+ * Required. The resource name of the parent account for the service. Format: `accounts/{account\}`
2808
+ */
2809
+ parent?: string;
2810
+ /**
2811
+ * Request body metadata
2812
+ */
2813
+ requestBody?: Schema$ProposeAccountServiceRequest;
2814
+ }
2815
+ export interface Params$Resource$Accounts$Services$Reject extends StandardParameters {
2816
+ /**
2817
+ * Required. The resource name of the account service to reject. Format: `accounts/{account\}/services/{service\}`
2818
+ */
2819
+ name?: string;
2820
+ /**
2821
+ * Request body metadata
2822
+ */
2823
+ requestBody?: Schema$RejectAccountServiceRequest;
2824
+ }
2458
2825
  export class Resource$Accounts$Shippingsettings {
2459
2826
  context: APIRequestContext;
2460
2827
  constructor(context: APIRequestContext);
@@ -2466,8 +2833,8 @@ export declare namespace merchantapi_accounts_v1beta {
2466
2833
  * @param callback - Optional callback that handles the response.
2467
2834
  * @returns A promise if used with async/await, or void if used with a callback.
2468
2835
  */
2469
- getShippingSettings(params: Params$Resource$Accounts$Shippingsettings$Getshippingsettings, options: StreamMethodOptions): GaxiosPromise<Readable>;
2470
- getShippingSettings(params?: Params$Resource$Accounts$Shippingsettings$Getshippingsettings, options?: MethodOptions): GaxiosPromise<Schema$ShippingSettings>;
2836
+ getShippingSettings(params: Params$Resource$Accounts$Shippingsettings$Getshippingsettings, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2837
+ getShippingSettings(params?: Params$Resource$Accounts$Shippingsettings$Getshippingsettings, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ShippingSettings>>;
2471
2838
  getShippingSettings(params: Params$Resource$Accounts$Shippingsettings$Getshippingsettings, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2472
2839
  getShippingSettings(params: Params$Resource$Accounts$Shippingsettings$Getshippingsettings, options: MethodOptions | BodyResponseCallback<Schema$ShippingSettings>, callback: BodyResponseCallback<Schema$ShippingSettings>): void;
2473
2840
  getShippingSettings(params: Params$Resource$Accounts$Shippingsettings$Getshippingsettings, callback: BodyResponseCallback<Schema$ShippingSettings>): void;
@@ -2480,8 +2847,8 @@ export declare namespace merchantapi_accounts_v1beta {
2480
2847
  * @param callback - Optional callback that handles the response.
2481
2848
  * @returns A promise if used with async/await, or void if used with a callback.
2482
2849
  */
2483
- insert(params: Params$Resource$Accounts$Shippingsettings$Insert, options: StreamMethodOptions): GaxiosPromise<Readable>;
2484
- insert(params?: Params$Resource$Accounts$Shippingsettings$Insert, options?: MethodOptions): GaxiosPromise<Schema$ShippingSettings>;
2850
+ insert(params: Params$Resource$Accounts$Shippingsettings$Insert, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2851
+ insert(params?: Params$Resource$Accounts$Shippingsettings$Insert, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ShippingSettings>>;
2485
2852
  insert(params: Params$Resource$Accounts$Shippingsettings$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2486
2853
  insert(params: Params$Resource$Accounts$Shippingsettings$Insert, options: MethodOptions | BodyResponseCallback<Schema$ShippingSettings>, callback: BodyResponseCallback<Schema$ShippingSettings>): void;
2487
2854
  insert(params: Params$Resource$Accounts$Shippingsettings$Insert, callback: BodyResponseCallback<Schema$ShippingSettings>): void;
@@ -2489,13 +2856,13 @@ export declare namespace merchantapi_accounts_v1beta {
2489
2856
  }
2490
2857
  export interface Params$Resource$Accounts$Shippingsettings$Getshippingsettings extends StandardParameters {
2491
2858
  /**
2492
- * Required. The name of the shipping setting to retrieve. Format: `accounts/{account\}/shippingsetting`
2859
+ * Required. The name of the shipping setting to retrieve. Format: `accounts/{account\}/shippingsettings`
2493
2860
  */
2494
2861
  name?: string;
2495
2862
  }
2496
2863
  export interface Params$Resource$Accounts$Shippingsettings$Insert extends StandardParameters {
2497
2864
  /**
2498
- * Required. The account where this product will be inserted. Format: accounts/{account\}
2865
+ * 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\}`
2499
2866
  */
2500
2867
  parent?: string;
2501
2868
  /**
@@ -2514,8 +2881,8 @@ export declare namespace merchantapi_accounts_v1beta {
2514
2881
  * @param callback - Optional callback that handles the response.
2515
2882
  * @returns A promise if used with async/await, or void if used with a callback.
2516
2883
  */
2517
- get(params: Params$Resource$Accounts$Termsofserviceagreementstates$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
2518
- get(params?: Params$Resource$Accounts$Termsofserviceagreementstates$Get, options?: MethodOptions): GaxiosPromise<Schema$TermsOfServiceAgreementState>;
2884
+ get(params: Params$Resource$Accounts$Termsofserviceagreementstates$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2885
+ get(params?: Params$Resource$Accounts$Termsofserviceagreementstates$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$TermsOfServiceAgreementState>>;
2519
2886
  get(params: Params$Resource$Accounts$Termsofserviceagreementstates$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2520
2887
  get(params: Params$Resource$Accounts$Termsofserviceagreementstates$Get, options: MethodOptions | BodyResponseCallback<Schema$TermsOfServiceAgreementState>, callback: BodyResponseCallback<Schema$TermsOfServiceAgreementState>): void;
2521
2888
  get(params: Params$Resource$Accounts$Termsofserviceagreementstates$Get, callback: BodyResponseCallback<Schema$TermsOfServiceAgreementState>): void;
@@ -2528,8 +2895,8 @@ export declare namespace merchantapi_accounts_v1beta {
2528
2895
  * @param callback - Optional callback that handles the response.
2529
2896
  * @returns A promise if used with async/await, or void if used with a callback.
2530
2897
  */
2531
- retrieveForApplication(params: Params$Resource$Accounts$Termsofserviceagreementstates$Retrieveforapplication, options: StreamMethodOptions): GaxiosPromise<Readable>;
2532
- retrieveForApplication(params?: Params$Resource$Accounts$Termsofserviceagreementstates$Retrieveforapplication, options?: MethodOptions): GaxiosPromise<Schema$TermsOfServiceAgreementState>;
2898
+ retrieveForApplication(params: Params$Resource$Accounts$Termsofserviceagreementstates$Retrieveforapplication, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2899
+ retrieveForApplication(params?: Params$Resource$Accounts$Termsofserviceagreementstates$Retrieveforapplication, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$TermsOfServiceAgreementState>>;
2533
2900
  retrieveForApplication(params: Params$Resource$Accounts$Termsofserviceagreementstates$Retrieveforapplication, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2534
2901
  retrieveForApplication(params: Params$Resource$Accounts$Termsofserviceagreementstates$Retrieveforapplication, options: MethodOptions | BodyResponseCallback<Schema$TermsOfServiceAgreementState>, callback: BodyResponseCallback<Schema$TermsOfServiceAgreementState>): void;
2535
2902
  retrieveForApplication(params: Params$Resource$Accounts$Termsofserviceagreementstates$Retrieveforapplication, callback: BodyResponseCallback<Schema$TermsOfServiceAgreementState>): void;
@@ -2537,7 +2904,7 @@ export declare namespace merchantapi_accounts_v1beta {
2537
2904
  }
2538
2905
  export interface Params$Resource$Accounts$Termsofserviceagreementstates$Get extends StandardParameters {
2539
2906
  /**
2540
- * Required. The resource name of the terms of service version. Format: `accounts/{account\}/termsOfServiceAgreementState/{identifier\}` The identifier format is: `{TermsOfServiceKind\}-{country\}`
2907
+ * Required. The resource name of the terms of service version. Format: `accounts/{account\}/termsOfServiceAgreementStates/{identifier\}` The identifier format is: `{TermsOfServiceKind\}-{country\}`
2541
2908
  */
2542
2909
  name?: string;
2543
2910
  }
@@ -2558,8 +2925,8 @@ export declare namespace merchantapi_accounts_v1beta {
2558
2925
  * @param callback - Optional callback that handles the response.
2559
2926
  * @returns A promise if used with async/await, or void if used with a callback.
2560
2927
  */
2561
- create(params: Params$Resource$Accounts$Users$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
2562
- create(params?: Params$Resource$Accounts$Users$Create, options?: MethodOptions): GaxiosPromise<Schema$User>;
2928
+ create(params: Params$Resource$Accounts$Users$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2929
+ create(params?: Params$Resource$Accounts$Users$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$User>>;
2563
2930
  create(params: Params$Resource$Accounts$Users$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2564
2931
  create(params: Params$Resource$Accounts$Users$Create, options: MethodOptions | BodyResponseCallback<Schema$User>, callback: BodyResponseCallback<Schema$User>): void;
2565
2932
  create(params: Params$Resource$Accounts$Users$Create, callback: BodyResponseCallback<Schema$User>): void;
@@ -2572,8 +2939,8 @@ export declare namespace merchantapi_accounts_v1beta {
2572
2939
  * @param callback - Optional callback that handles the response.
2573
2940
  * @returns A promise if used with async/await, or void if used with a callback.
2574
2941
  */
2575
- delete(params: Params$Resource$Accounts$Users$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
2576
- delete(params?: Params$Resource$Accounts$Users$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
2942
+ delete(params: Params$Resource$Accounts$Users$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2943
+ delete(params?: Params$Resource$Accounts$Users$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
2577
2944
  delete(params: Params$Resource$Accounts$Users$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2578
2945
  delete(params: Params$Resource$Accounts$Users$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
2579
2946
  delete(params: Params$Resource$Accounts$Users$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
@@ -2586,8 +2953,8 @@ export declare namespace merchantapi_accounts_v1beta {
2586
2953
  * @param callback - Optional callback that handles the response.
2587
2954
  * @returns A promise if used with async/await, or void if used with a callback.
2588
2955
  */
2589
- get(params: Params$Resource$Accounts$Users$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
2590
- get(params?: Params$Resource$Accounts$Users$Get, options?: MethodOptions): GaxiosPromise<Schema$User>;
2956
+ get(params: Params$Resource$Accounts$Users$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2957
+ get(params?: Params$Resource$Accounts$Users$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$User>>;
2591
2958
  get(params: Params$Resource$Accounts$Users$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2592
2959
  get(params: Params$Resource$Accounts$Users$Get, options: MethodOptions | BodyResponseCallback<Schema$User>, callback: BodyResponseCallback<Schema$User>): void;
2593
2960
  get(params: Params$Resource$Accounts$Users$Get, callback: BodyResponseCallback<Schema$User>): void;
@@ -2600,8 +2967,8 @@ export declare namespace merchantapi_accounts_v1beta {
2600
2967
  * @param callback - Optional callback that handles the response.
2601
2968
  * @returns A promise if used with async/await, or void if used with a callback.
2602
2969
  */
2603
- list(params: Params$Resource$Accounts$Users$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
2604
- list(params?: Params$Resource$Accounts$Users$List, options?: MethodOptions): GaxiosPromise<Schema$ListUsersResponse>;
2970
+ list(params: Params$Resource$Accounts$Users$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2971
+ list(params?: Params$Resource$Accounts$Users$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListUsersResponse>>;
2605
2972
  list(params: Params$Resource$Accounts$Users$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2606
2973
  list(params: Params$Resource$Accounts$Users$List, options: MethodOptions | BodyResponseCallback<Schema$ListUsersResponse>, callback: BodyResponseCallback<Schema$ListUsersResponse>): void;
2607
2974
  list(params: Params$Resource$Accounts$Users$List, callback: BodyResponseCallback<Schema$ListUsersResponse>): void;
@@ -2614,8 +2981,8 @@ export declare namespace merchantapi_accounts_v1beta {
2614
2981
  * @param callback - Optional callback that handles the response.
2615
2982
  * @returns A promise if used with async/await, or void if used with a callback.
2616
2983
  */
2617
- patch(params: Params$Resource$Accounts$Users$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
2618
- patch(params?: Params$Resource$Accounts$Users$Patch, options?: MethodOptions): GaxiosPromise<Schema$User>;
2984
+ patch(params: Params$Resource$Accounts$Users$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
2985
+ patch(params?: Params$Resource$Accounts$Users$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$User>>;
2619
2986
  patch(params: Params$Resource$Accounts$Users$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2620
2987
  patch(params: Params$Resource$Accounts$Users$Patch, options: MethodOptions | BodyResponseCallback<Schema$User>, callback: BodyResponseCallback<Schema$User>): void;
2621
2988
  patch(params: Params$Resource$Accounts$Users$Patch, callback: BodyResponseCallback<Schema$User>): void;
@@ -2686,12 +3053,12 @@ export declare namespace merchantapi_accounts_v1beta {
2686
3053
  * @param callback - Optional callback that handles the response.
2687
3054
  * @returns A promise if used with async/await, or void if used with a callback.
2688
3055
  */
2689
- accept(params: Params$Resource$Termsofservice$Accept, options: StreamMethodOptions): GaxiosPromise<Readable>;
2690
- accept(params?: Params$Resource$Termsofservice$Accept, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
3056
+ accept(params: Params$Resource$Termsofservice$Accept, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3057
+ accept(params?: Params$Resource$Termsofservice$Accept, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$AcceptTermsOfServiceResponse>>;
2691
3058
  accept(params: Params$Resource$Termsofservice$Accept, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2692
- accept(params: Params$Resource$Termsofservice$Accept, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
2693
- accept(params: Params$Resource$Termsofservice$Accept, callback: BodyResponseCallback<Schema$Empty>): void;
2694
- accept(callback: BodyResponseCallback<Schema$Empty>): void;
3059
+ accept(params: Params$Resource$Termsofservice$Accept, options: MethodOptions | BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>, callback: BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>): void;
3060
+ accept(params: Params$Resource$Termsofservice$Accept, callback: BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>): void;
3061
+ accept(callback: BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>): void;
2695
3062
  /**
2696
3063
  * Retrieves the `TermsOfService` associated with the provided version.
2697
3064
  *
@@ -2700,8 +3067,8 @@ export declare namespace merchantapi_accounts_v1beta {
2700
3067
  * @param callback - Optional callback that handles the response.
2701
3068
  * @returns A promise if used with async/await, or void if used with a callback.
2702
3069
  */
2703
- get(params: Params$Resource$Termsofservice$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
2704
- get(params?: Params$Resource$Termsofservice$Get, options?: MethodOptions): GaxiosPromise<Schema$TermsOfService>;
3070
+ get(params: Params$Resource$Termsofservice$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3071
+ get(params?: Params$Resource$Termsofservice$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$TermsOfService>>;
2705
3072
  get(params: Params$Resource$Termsofservice$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2706
3073
  get(params: Params$Resource$Termsofservice$Get, options: MethodOptions | BodyResponseCallback<Schema$TermsOfService>, callback: BodyResponseCallback<Schema$TermsOfService>): void;
2707
3074
  get(params: Params$Resource$Termsofservice$Get, callback: BodyResponseCallback<Schema$TermsOfService>): void;
@@ -2714,8 +3081,8 @@ export declare namespace merchantapi_accounts_v1beta {
2714
3081
  * @param callback - Optional callback that handles the response.
2715
3082
  * @returns A promise if used with async/await, or void if used with a callback.
2716
3083
  */
2717
- retrieveLatest(params: Params$Resource$Termsofservice$Retrievelatest, options: StreamMethodOptions): GaxiosPromise<Readable>;
2718
- retrieveLatest(params?: Params$Resource$Termsofservice$Retrievelatest, options?: MethodOptions): GaxiosPromise<Schema$TermsOfService>;
3084
+ retrieveLatest(params: Params$Resource$Termsofservice$Retrievelatest, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
3085
+ retrieveLatest(params?: Params$Resource$Termsofservice$Retrievelatest, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$TermsOfService>>;
2719
3086
  retrieveLatest(params: Params$Resource$Termsofservice$Retrievelatest, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2720
3087
  retrieveLatest(params: Params$Resource$Termsofservice$Retrievelatest, options: MethodOptions | BodyResponseCallback<Schema$TermsOfService>, callback: BodyResponseCallback<Schema$TermsOfService>): void;
2721
3088
  retrieveLatest(params: Params$Resource$Termsofservice$Retrievelatest, callback: BodyResponseCallback<Schema$TermsOfService>): void;
@@ -2723,7 +3090,7 @@ export declare namespace merchantapi_accounts_v1beta {
2723
3090
  }
2724
3091
  export interface Params$Resource$Termsofservice$Accept extends StandardParameters {
2725
3092
  /**
2726
- * Required. The account for which to accept the ToS.
3093
+ * Required. The account for which to accept the ToS. Format: `accounts/{account\}`
2727
3094
  */
2728
3095
  account?: string;
2729
3096
  /**