@googleapis/merchantapi 4.1.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/accounts_v1beta.ts +1572 -557
- package/build/accounts_v1beta.d.ts +447 -80
- package/build/accounts_v1beta.js +309 -30
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1beta.d.ts +15 -12
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1beta.d.ts +3 -3
- package/build/inventories_v1beta.d.ts +1 -1
- package/build/lfp_v1beta.d.ts +121 -0
- package/build/lfp_v1beta.js +39 -0
- package/build/lfp_v1beta.js.map +1 -1
- package/build/products_v1beta.d.ts +34 -13
- package/build/products_v1beta.js.map +1 -1
- package/build/reports_v1beta.d.ts +1 -1
- package/conversions_v1beta.ts +15 -12
- package/datasources_v1beta.ts +3 -3
- package/inventories_v1beta.ts +1 -1
- package/lfp_v1beta.ts +203 -0
- package/package.json +1 -1
- package/products_v1beta.ts +34 -13
- package/reports_v1beta.ts +1 -1
package/accounts_v1beta.ts
CHANGED
|
@@ -135,14 +135,23 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
135
135
|
*/
|
|
136
136
|
acceptedBy?: string | null;
|
|
137
137
|
/**
|
|
138
|
-
* The accepted
|
|
138
|
+
* The accepted termsOfService.
|
|
139
139
|
*/
|
|
140
140
|
termsOfService?: string | null;
|
|
141
141
|
/**
|
|
142
|
-
* When set, it states that the accepted
|
|
142
|
+
* When set, it states that the accepted `TermsOfService` is only valid until the end of this date (in UTC). A new one must be accepted before then. The information of the required `TermsOfService` is found in the `Required` message.
|
|
143
143
|
*/
|
|
144
144
|
validUntil?: Schema$Date;
|
|
145
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* Response message for the `AcceptTermsOfService` method.
|
|
148
|
+
*/
|
|
149
|
+
export interface Schema$AcceptTermsOfServiceResponse {
|
|
150
|
+
/**
|
|
151
|
+
* The agreement state after accepting the ToS.
|
|
152
|
+
*/
|
|
153
|
+
termsOfServiceAgreementState?: Schema$TermsOfServiceAgreementState;
|
|
154
|
+
}
|
|
146
155
|
/**
|
|
147
156
|
* The `Account` message represents a merchant's account within Shopping Ads. It's the primary entity for managing product data, settings, and interactions with Google's services and external providers. Accounts can operate as standalone entities or be part of a multi-client account (MCA) structure. In an MCA setup the parent account manages multiple sub-accounts. Establishing an account involves configuring attributes like the account name, time zone, and language preferences. The `Account` message is the parent entity for many other resources, for example, `AccountRelationship`, `Homepage`, `BusinessInfo` and so on.
|
|
148
157
|
*/
|
|
@@ -172,7 +181,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
172
181
|
*/
|
|
173
182
|
testAccount?: boolean | null;
|
|
174
183
|
/**
|
|
175
|
-
* Required. The time zone of the account. On writes, `time_zone` sets both the `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the `display_time_zone`. If `display_time_zone` doesn't exist for your account, `time_zone` is empty.
|
|
184
|
+
* Required. The time zone of the account. On writes, `time_zone` sets both the `reporting_time_zone` and the `display_time_zone`. For reads, `time_zone` always returns the `display_time_zone`. If `display_time_zone` doesn't exist for your account, `time_zone` is empty. The `version` field is not supported, won't be set in responses and will be silently ignored if specified in requests.
|
|
176
185
|
*/
|
|
177
186
|
timeZone?: Schema$TimeZone;
|
|
178
187
|
}
|
|
@@ -209,6 +218,76 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
209
218
|
*/
|
|
210
219
|
title?: string | null;
|
|
211
220
|
}
|
|
221
|
+
/**
|
|
222
|
+
* `AccountManagement` payload.
|
|
223
|
+
*/
|
|
224
|
+
export interface Schema$AccountManagement {}
|
|
225
|
+
/**
|
|
226
|
+
* The `AccountRelationship` message defines a formal connection between a merchant's account and a service provider's account. This relationship enables the provider to offer specific services to the merchant, such as product management or campaign management. It specifies the access rights and permissions to the merchant's data relevant to those services. Establishing an account relationship involves linking the merchant's account with a provider's account. The provider could be another Google account (like Google Ads or Google My Business) or a third-party platform (such as Shopify or WooCommerce).
|
|
227
|
+
*/
|
|
228
|
+
export interface Schema$AccountRelationship {
|
|
229
|
+
/**
|
|
230
|
+
* Optional. An optional alias you can assign to this account relationship. This alias acts as a convenient identifier for your own reference and management. It must be unique among all your account relationships with the same provider. For example, you might use `account_id_alias` to assign a friendly name to this relationship for easier identification in your systems.
|
|
231
|
+
*/
|
|
232
|
+
accountIdAlias?: string | null;
|
|
233
|
+
/**
|
|
234
|
+
* Identifier. The resource name of the account relationship.
|
|
235
|
+
*/
|
|
236
|
+
name?: string | null;
|
|
237
|
+
/**
|
|
238
|
+
* Immutable. The provider of the service. Either the reference to an account such as `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`).
|
|
239
|
+
*/
|
|
240
|
+
provider?: string | null;
|
|
241
|
+
/**
|
|
242
|
+
* Output only. The human-readable display name of the provider account.
|
|
243
|
+
*/
|
|
244
|
+
providerDisplayName?: string | null;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* The `AccountService` message represents a specific service that a provider account offers to a merchant account. `AccountService` defines the permissions and capabilities granted to the provider, allowing for operations such as product management or campaign management. The lifecycle of an `AccountService` involves a proposal phase, where one party suggests the service, and an approval phase, where the other party accepts or rejects it. This handshake mechanism ensures mutual consent before any access is granted. This mechanism safeguards both parties by ensuring that access rights are granted appropriately and that both the merchant and provider are aware of the services enabled. In scenarios where a user is an admin of both accounts, the approval can happen automatically. The mutability of a service is also managed through `AccountService`. Some services might be immutable, for example, if they were established through other systems or APIs, and you cannot alter them through this API.
|
|
248
|
+
*/
|
|
249
|
+
export interface Schema$AccountService {
|
|
250
|
+
/**
|
|
251
|
+
* Service type for account aggregation. This enables the provider, which is a Multi-Client Account (MCA), to manage multiple sub-accounts (client accounts). Through this service, the MCA provider can perform administrative and operational tasks across all linked sub-accounts. This is useful for agencies, aggregators, or large retailers that need centralized control over many merchant accounts.
|
|
252
|
+
*/
|
|
253
|
+
accountAggregation?: Schema$AccountAggregation;
|
|
254
|
+
/**
|
|
255
|
+
* Service type for account management. Enables the provider to perform administrative actions on the merchant's account, such as configuring account settings, managing users, or updating business information.
|
|
256
|
+
*/
|
|
257
|
+
accountManagement?: Schema$AccountManagement;
|
|
258
|
+
/**
|
|
259
|
+
* Service type for managing advertising campaigns. Grants the provider access to create and manage the merchant's ad campaigns, including setting up campaigns, adjusting bids, and optimizing performance.
|
|
260
|
+
*/
|
|
261
|
+
campaignsManagement?: Schema$CampaignsManagement;
|
|
262
|
+
/**
|
|
263
|
+
* Immutable. An optional, immutable identifier that Google uses to refer to this account when communicating with the provider. This should be the unique account ID within the provider's system (for example, your shop ID in Shopify). If you have multiple accounts with the same provider - for instance, different accounts for various regions — the `external_account_id` differentiates between them, ensuring accurate linking and integration between Google and the provider.
|
|
264
|
+
*/
|
|
265
|
+
externalAccountId?: string | null;
|
|
266
|
+
/**
|
|
267
|
+
* Output only. Information about the state of the service in terms of establishing it (e.g. is it pending approval or approved).
|
|
268
|
+
*/
|
|
269
|
+
handshake?: Schema$Handshake;
|
|
270
|
+
/**
|
|
271
|
+
* Output only. Whether the service is mutable (e.g. through Approve / Reject RPCs). A service that was created through another system or API might be immutable.
|
|
272
|
+
*/
|
|
273
|
+
mutability?: string | null;
|
|
274
|
+
/**
|
|
275
|
+
* Identifier. The resource name of the account service.
|
|
276
|
+
*/
|
|
277
|
+
name?: string | null;
|
|
278
|
+
/**
|
|
279
|
+
* Service type for managing products. This allows the provider to handle product data on behalf of the merchant, including reading and writing product listings. It's commonly used when the provider offers inventory management or catalog synchronization services to keep the merchant's product information up-to-date across platforms.
|
|
280
|
+
*/
|
|
281
|
+
productsManagement?: Schema$ProductsManagement;
|
|
282
|
+
/**
|
|
283
|
+
* Output only. The provider of the service. Either the reference to an account such as `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`).
|
|
284
|
+
*/
|
|
285
|
+
provider?: string | null;
|
|
286
|
+
/**
|
|
287
|
+
* Output only. The human-readable display name of the provider account.
|
|
288
|
+
*/
|
|
289
|
+
providerDisplayName?: string | null;
|
|
290
|
+
}
|
|
212
291
|
/**
|
|
213
292
|
* Additional instructions to add account services during creation of the account.
|
|
214
293
|
*/
|
|
@@ -260,6 +339,10 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
260
339
|
*/
|
|
261
340
|
userId?: string | null;
|
|
262
341
|
}
|
|
342
|
+
/**
|
|
343
|
+
* Request to approve an account service.
|
|
344
|
+
*/
|
|
345
|
+
export interface Schema$ApproveAccountServiceRequest {}
|
|
263
346
|
/**
|
|
264
347
|
* Collection of information related to the [autofeed](https://support.google.com/merchants/answer/7538732) settings.
|
|
265
348
|
*/
|
|
@@ -416,6 +499,10 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
416
499
|
*/
|
|
417
500
|
phoneVerificationState?: string | null;
|
|
418
501
|
}
|
|
502
|
+
/**
|
|
503
|
+
* `CampaignManagement` payload.
|
|
504
|
+
*/
|
|
505
|
+
export interface Schema$CampaignsManagement {}
|
|
419
506
|
/**
|
|
420
507
|
* A list of carrier rates that can be referred to by `main_table` or `single_value`. Supported carrier services are defined in https://support.google.com/merchants/answer/12577710?ref_topic=12570808&sjid=10662598224319463032-NC#zippy=%2Cdelivery-cost-rate-type%2Ccarrier-rate-au-de-uk-and-us-only.
|
|
421
508
|
*/
|
|
@@ -648,6 +735,19 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
648
735
|
*/
|
|
649
736
|
geotargetCriteriaIds?: string[] | null;
|
|
650
737
|
}
|
|
738
|
+
/**
|
|
739
|
+
* The current status of establishing of the service. (for example, pending approval or approved).
|
|
740
|
+
*/
|
|
741
|
+
export interface Schema$Handshake {
|
|
742
|
+
/**
|
|
743
|
+
* Output only. The most recent account to modify the account service's `approval_status`.
|
|
744
|
+
*/
|
|
745
|
+
actor?: string | null;
|
|
746
|
+
/**
|
|
747
|
+
* Output only. The approval state of this handshake.
|
|
748
|
+
*/
|
|
749
|
+
approvalState?: string | null;
|
|
750
|
+
}
|
|
651
751
|
/**
|
|
652
752
|
* A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set.
|
|
653
753
|
*/
|
|
@@ -768,6 +868,32 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
768
868
|
*/
|
|
769
869
|
nextPageToken?: string | null;
|
|
770
870
|
}
|
|
871
|
+
/**
|
|
872
|
+
* Response after trying to list account relationships.
|
|
873
|
+
*/
|
|
874
|
+
export interface Schema$ListAccountRelationshipsResponse {
|
|
875
|
+
/**
|
|
876
|
+
* The account relationships that match your filter.
|
|
877
|
+
*/
|
|
878
|
+
accountRelationships?: Schema$AccountRelationship[];
|
|
879
|
+
/**
|
|
880
|
+
* A page token. You can send the `page_token` to get the next page. Only included in the `list` response if there are more pages.
|
|
881
|
+
*/
|
|
882
|
+
nextPageToken?: string | null;
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Response after trying to list account services.
|
|
886
|
+
*/
|
|
887
|
+
export interface Schema$ListAccountServicesResponse {
|
|
888
|
+
/**
|
|
889
|
+
* The account services that match your filter.
|
|
890
|
+
*/
|
|
891
|
+
accountServices?: Schema$AccountService[];
|
|
892
|
+
/**
|
|
893
|
+
* A page token. You can send the `page_token` to get the next page. Only included in the `list` response if there are more pages.
|
|
894
|
+
*/
|
|
895
|
+
nextPageToken?: string | null;
|
|
896
|
+
}
|
|
771
897
|
/**
|
|
772
898
|
* Response message for the `ListAccounts` method.
|
|
773
899
|
*/
|
|
@@ -904,11 +1030,11 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
904
1030
|
*/
|
|
905
1031
|
export interface Schema$OnlineReturnPolicy {
|
|
906
1032
|
/**
|
|
907
|
-
* This field specifies if merchant only accepts defective products for returns
|
|
1033
|
+
* Optional. This field specifies if merchant only accepts defective products for returns.
|
|
908
1034
|
*/
|
|
909
1035
|
acceptDefectiveOnly?: boolean | null;
|
|
910
1036
|
/**
|
|
911
|
-
* This field specifies if merchant allows customers to exchange products
|
|
1037
|
+
* Optional. This field specifies if merchant allows customers to exchange products.
|
|
912
1038
|
*/
|
|
913
1039
|
acceptExchange?: boolean | null;
|
|
914
1040
|
/**
|
|
@@ -932,13 +1058,17 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
932
1058
|
*/
|
|
933
1059
|
policy?: Schema$Policy;
|
|
934
1060
|
/**
|
|
935
|
-
* The field specifies the number of days it takes for merchants to process refunds
|
|
1061
|
+
* Optional. The field specifies the number of days it takes for merchants to process refunds.
|
|
936
1062
|
*/
|
|
937
1063
|
processRefundDays?: number | null;
|
|
938
1064
|
/**
|
|
939
1065
|
* Optional. The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set.
|
|
940
1066
|
*/
|
|
941
1067
|
restockingFee?: Schema$RestockingFee;
|
|
1068
|
+
/**
|
|
1069
|
+
* Optional. The field specifies the return label source.
|
|
1070
|
+
*/
|
|
1071
|
+
returnLabelSource?: string | null;
|
|
942
1072
|
/**
|
|
943
1073
|
* Optional. The return methods of how customers can return an item. This value is required to not be empty unless the type of return policy is noReturns.
|
|
944
1074
|
*/
|
|
@@ -991,15 +1121,15 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
991
1121
|
type?: string | null;
|
|
992
1122
|
}
|
|
993
1123
|
/**
|
|
994
|
-
* Represents a postal address
|
|
1124
|
+
* Represents a postal address (for example, for postal delivery or payments addresses). Given a postal address, a postal service can deliver items to a premise, P.O. box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage, an address would be created by user input or from importing existing data, depending on the type of process. Advice on address input or editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput. - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, see: https://support.google.com/business/answer/6397478.
|
|
995
1125
|
*/
|
|
996
1126
|
export interface Schema$PostalAddress {
|
|
997
1127
|
/**
|
|
998
|
-
* Unstructured address lines describing the lower levels of an address. Because values in address_lines do not have type information and may sometimes contain multiple values in a single field (
|
|
1128
|
+
* Unstructured address lines describing the lower levels of an address. Because values in `address_lines` do not have type information and may sometimes contain multiple values in a single field (for example, "Austin, TX"), it is important that the line order is clear. The order of address lines should be "envelope order" for the country or region of the address. In places where this can vary (for example, Japan), `address_language` is used to make it explicit (for example, "ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this way, the most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a `region_code` with all remaining information placed in the `address_lines`. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of the address components until it was at least partially resolved. Creating an address only containing a `region_code` and `address_lines` and then geocoding is the recommended way to handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas).
|
|
999
1129
|
*/
|
|
1000
1130
|
addressLines?: string[] | null;
|
|
1001
1131
|
/**
|
|
1002
|
-
* Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture.
|
|
1132
|
+
* Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. For Spain, this is the province and not the autonomous community (for example, "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. For example, in Switzerland, this should be left unpopulated.
|
|
1003
1133
|
*/
|
|
1004
1134
|
administrativeArea?: string | null;
|
|
1005
1135
|
/**
|
|
@@ -1007,7 +1137,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1007
1137
|
*/
|
|
1008
1138
|
languageCode?: string | null;
|
|
1009
1139
|
/**
|
|
1010
|
-
* Optional. Generally refers to the city
|
|
1140
|
+
* Optional. Generally refers to the city or town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave `locality` empty and use `address_lines`.
|
|
1011
1141
|
*/
|
|
1012
1142
|
locality?: string | null;
|
|
1013
1143
|
/**
|
|
@@ -1015,7 +1145,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1015
1145
|
*/
|
|
1016
1146
|
organization?: string | null;
|
|
1017
1147
|
/**
|
|
1018
|
-
* Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (
|
|
1148
|
+
* Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (for example, state or zip code validation in the United States).
|
|
1019
1149
|
*/
|
|
1020
1150
|
postalCode?: string | null;
|
|
1021
1151
|
/**
|
|
@@ -1031,11 +1161,11 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1031
1161
|
*/
|
|
1032
1162
|
revision?: number | null;
|
|
1033
1163
|
/**
|
|
1034
|
-
* Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like "CEDEX", optionally followed by a number (
|
|
1164
|
+
* Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
|
|
1035
1165
|
*/
|
|
1036
1166
|
sortingCode?: string | null;
|
|
1037
1167
|
/**
|
|
1038
|
-
* Optional. Sublocality of the address. For example, this can be
|
|
1168
|
+
* Optional. Sublocality of the address. For example, this can be a neighborhood, borough, or district.
|
|
1039
1169
|
*/
|
|
1040
1170
|
sublocality?: string | null;
|
|
1041
1171
|
}
|
|
@@ -1099,6 +1229,10 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1099
1229
|
*/
|
|
1100
1230
|
reportingContext?: string | null;
|
|
1101
1231
|
}
|
|
1232
|
+
/**
|
|
1233
|
+
* `ProductsManagement` payload.
|
|
1234
|
+
*/
|
|
1235
|
+
export interface Schema$ProductsManagement {}
|
|
1102
1236
|
/**
|
|
1103
1237
|
* The message that the merchant will receive to notify about product status change event
|
|
1104
1238
|
*/
|
|
@@ -1165,6 +1299,19 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1165
1299
|
*/
|
|
1166
1300
|
unmetRequirements?: Schema$Requirement[];
|
|
1167
1301
|
}
|
|
1302
|
+
/**
|
|
1303
|
+
* Request to propose an account service.
|
|
1304
|
+
*/
|
|
1305
|
+
export interface Schema$ProposeAccountServiceRequest {
|
|
1306
|
+
/**
|
|
1307
|
+
* Required. The account service to propose.
|
|
1308
|
+
*/
|
|
1309
|
+
accountService?: Schema$AccountService;
|
|
1310
|
+
/**
|
|
1311
|
+
* Required. The provider of the service. Either the reference to an account such as `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`).
|
|
1312
|
+
*/
|
|
1313
|
+
provider?: string | null;
|
|
1314
|
+
}
|
|
1168
1315
|
/**
|
|
1169
1316
|
* Shipping rate group definitions. Only the last one is allowed to have an empty `applicable_shipping_labels`, which means "everything else". The other `applicable_shipping_labels` must not overlap.
|
|
1170
1317
|
*/
|
|
@@ -1223,16 +1370,20 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1223
1370
|
*/
|
|
1224
1371
|
shippingEligible?: boolean | null;
|
|
1225
1372
|
}
|
|
1373
|
+
/**
|
|
1374
|
+
* Request to reject an account service.
|
|
1375
|
+
*/
|
|
1376
|
+
export interface Schema$RejectAccountServiceRequest {}
|
|
1226
1377
|
/**
|
|
1227
1378
|
* Describes the terms of service which are required to be accepted.
|
|
1228
1379
|
*/
|
|
1229
1380
|
export interface Schema$Required {
|
|
1230
1381
|
/**
|
|
1231
|
-
* The
|
|
1382
|
+
* The `TermsOfService` that need to be accepted.
|
|
1232
1383
|
*/
|
|
1233
1384
|
termsOfService?: string | null;
|
|
1234
1385
|
/**
|
|
1235
|
-
* Full URL to the terms of service file. This field is the same as
|
|
1386
|
+
* Full URL to the terms of service file. This field is the same as `TermsOfService.file_uri`, it is added here for convenience only.
|
|
1236
1387
|
*/
|
|
1237
1388
|
tosFileUri?: string | null;
|
|
1238
1389
|
}
|
|
@@ -1319,7 +1470,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1319
1470
|
*/
|
|
1320
1471
|
active?: boolean | null;
|
|
1321
1472
|
/**
|
|
1322
|
-
* The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
|
|
1473
|
+
* Required. The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
|
|
1323
1474
|
*/
|
|
1324
1475
|
currencyCode?: string | null;
|
|
1325
1476
|
/**
|
|
@@ -1360,7 +1511,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1360
1511
|
storeConfig?: Schema$StoreConfig;
|
|
1361
1512
|
}
|
|
1362
1513
|
/**
|
|
1363
|
-
* The merchant account's [shipping
|
|
1514
|
+
* The merchant account's [shipping settings](https://support.google.com/merchants/answer/6069284).
|
|
1364
1515
|
*/
|
|
1365
1516
|
export interface Schema$ShippingSettings {
|
|
1366
1517
|
/**
|
|
@@ -1368,7 +1519,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1368
1519
|
*/
|
|
1369
1520
|
etag?: string | null;
|
|
1370
1521
|
/**
|
|
1371
|
-
* Identifier. The resource name of the shipping
|
|
1522
|
+
* Identifier. The resource name of the shipping settings. Format: `accounts/{account\}/shippingSettings`
|
|
1372
1523
|
*/
|
|
1373
1524
|
name?: string | null;
|
|
1374
1525
|
/**
|
|
@@ -1449,7 +1600,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1449
1600
|
rows?: Schema$Row[];
|
|
1450
1601
|
}
|
|
1451
1602
|
/**
|
|
1452
|
-
* The `TermsOfService` message represents a specific version of the terms of service that merchants must accept to access certain features or services
|
|
1603
|
+
* The `TermsOfService` message represents a specific version of the terms of service that merchants must accept to access certain features or services. For more information, see [Terms of Service](https://support.google.com/merchants/answer/160173). This message is important for the onboarding process, ensuring that merchants agree to the necessary legal agreements for using the service. Merchants can retrieve the latest terms of service for a given `kind` and `region` through `RetrieveLatestTermsOfService`, and accept them as required through `AcceptTermsOfService`.
|
|
1453
1604
|
*/
|
|
1454
1605
|
export interface Schema$TermsOfService {
|
|
1455
1606
|
/**
|
|
@@ -1474,7 +1625,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1474
1625
|
regionCode?: string | null;
|
|
1475
1626
|
}
|
|
1476
1627
|
/**
|
|
1477
|
-
* This resource represents the agreement state for a given account and terms of service kind. The state is as follows: * If the merchant has accepted a terms of service
|
|
1628
|
+
* This resource represents the agreement state for a given account and terms of service kind. The state is as follows: * If the merchant has accepted a terms of service, `accepted` will be populated, otherwise it will be empty * If the merchant must sign a terms of service, `required` will be populated, otherwise it will be empty. Note that both `required` and `accepted` can be present. In this case the `accepted` terms of services will have an expiration date set in the `valid_until` field. The `required` terms of services need to be accepted before `valid_until` in order for the account to continue having a valid agreement. When accepting new terms of services we expect 3Ps to display the text associated with the given terms of service agreement (the url to the file containing the text is added in the Required message below as `tos_file_uri`). The actual acceptance of the terms of service is done by calling accept on the `TermsOfService` resource.
|
|
1478
1629
|
*/
|
|
1479
1630
|
export interface Schema$TermsOfServiceAgreementState {
|
|
1480
1631
|
/**
|
|
@@ -1668,6 +1819,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1668
1819
|
export class Resource$Accounts {
|
|
1669
1820
|
context: APIRequestContext;
|
|
1670
1821
|
autofeedSettings: Resource$Accounts$Autofeedsettings;
|
|
1822
|
+
automaticImprovements: Resource$Accounts$Automaticimprovements;
|
|
1671
1823
|
businessIdentity: Resource$Accounts$Businessidentity;
|
|
1672
1824
|
businessInfo: Resource$Accounts$Businessinfo;
|
|
1673
1825
|
emailPreferences: Resource$Accounts$Emailpreferences;
|
|
@@ -1676,6 +1828,8 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1676
1828
|
onlineReturnPolicies: Resource$Accounts$Onlinereturnpolicies;
|
|
1677
1829
|
programs: Resource$Accounts$Programs;
|
|
1678
1830
|
regions: Resource$Accounts$Regions;
|
|
1831
|
+
relationships: Resource$Accounts$Relationships;
|
|
1832
|
+
services: Resource$Accounts$Services;
|
|
1679
1833
|
shippingSettings: Resource$Accounts$Shippingsettings;
|
|
1680
1834
|
termsOfServiceAgreementStates: Resource$Accounts$Termsofserviceagreementstates;
|
|
1681
1835
|
users: Resource$Accounts$Users;
|
|
@@ -1684,6 +1838,9 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1684
1838
|
this.autofeedSettings = new Resource$Accounts$Autofeedsettings(
|
|
1685
1839
|
this.context
|
|
1686
1840
|
);
|
|
1841
|
+
this.automaticImprovements = new Resource$Accounts$Automaticimprovements(
|
|
1842
|
+
this.context
|
|
1843
|
+
);
|
|
1687
1844
|
this.businessIdentity = new Resource$Accounts$Businessidentity(
|
|
1688
1845
|
this.context
|
|
1689
1846
|
);
|
|
@@ -1698,6 +1855,8 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1698
1855
|
);
|
|
1699
1856
|
this.programs = new Resource$Accounts$Programs(this.context);
|
|
1700
1857
|
this.regions = new Resource$Accounts$Regions(this.context);
|
|
1858
|
+
this.relationships = new Resource$Accounts$Relationships(this.context);
|
|
1859
|
+
this.services = new Resource$Accounts$Services(this.context);
|
|
1701
1860
|
this.shippingSettings = new Resource$Accounts$Shippingsettings(
|
|
1702
1861
|
this.context
|
|
1703
1862
|
);
|
|
@@ -1707,7 +1866,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1707
1866
|
}
|
|
1708
1867
|
|
|
1709
1868
|
/**
|
|
1710
|
-
* Creates a
|
|
1869
|
+
* Creates a Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.
|
|
1711
1870
|
*
|
|
1712
1871
|
* @param params - Parameters for request
|
|
1713
1872
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1967,101 +2126,6 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
1967
2126
|
}
|
|
1968
2127
|
}
|
|
1969
2128
|
|
|
1970
|
-
/**
|
|
1971
|
-
* Retrieves the automatic improvements of an account.
|
|
1972
|
-
*
|
|
1973
|
-
* @param params - Parameters for request
|
|
1974
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1975
|
-
* @param callback - Optional callback that handles the response.
|
|
1976
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1977
|
-
*/
|
|
1978
|
-
getAutomaticImprovements(
|
|
1979
|
-
params: Params$Resource$Accounts$Getautomaticimprovements,
|
|
1980
|
-
options: StreamMethodOptions
|
|
1981
|
-
): GaxiosPromise<Readable>;
|
|
1982
|
-
getAutomaticImprovements(
|
|
1983
|
-
params?: Params$Resource$Accounts$Getautomaticimprovements,
|
|
1984
|
-
options?: MethodOptions
|
|
1985
|
-
): GaxiosPromise<Schema$AutomaticImprovements>;
|
|
1986
|
-
getAutomaticImprovements(
|
|
1987
|
-
params: Params$Resource$Accounts$Getautomaticimprovements,
|
|
1988
|
-
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
1989
|
-
callback: BodyResponseCallback<Readable>
|
|
1990
|
-
): void;
|
|
1991
|
-
getAutomaticImprovements(
|
|
1992
|
-
params: Params$Resource$Accounts$Getautomaticimprovements,
|
|
1993
|
-
options:
|
|
1994
|
-
| MethodOptions
|
|
1995
|
-
| BodyResponseCallback<Schema$AutomaticImprovements>,
|
|
1996
|
-
callback: BodyResponseCallback<Schema$AutomaticImprovements>
|
|
1997
|
-
): void;
|
|
1998
|
-
getAutomaticImprovements(
|
|
1999
|
-
params: Params$Resource$Accounts$Getautomaticimprovements,
|
|
2000
|
-
callback: BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2001
|
-
): void;
|
|
2002
|
-
getAutomaticImprovements(
|
|
2003
|
-
callback: BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2004
|
-
): void;
|
|
2005
|
-
getAutomaticImprovements(
|
|
2006
|
-
paramsOrCallback?:
|
|
2007
|
-
| Params$Resource$Accounts$Getautomaticimprovements
|
|
2008
|
-
| BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2009
|
-
| BodyResponseCallback<Readable>,
|
|
2010
|
-
optionsOrCallback?:
|
|
2011
|
-
| MethodOptions
|
|
2012
|
-
| StreamMethodOptions
|
|
2013
|
-
| BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2014
|
-
| BodyResponseCallback<Readable>,
|
|
2015
|
-
callback?:
|
|
2016
|
-
| BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2017
|
-
| BodyResponseCallback<Readable>
|
|
2018
|
-
):
|
|
2019
|
-
| void
|
|
2020
|
-
| GaxiosPromise<Schema$AutomaticImprovements>
|
|
2021
|
-
| GaxiosPromise<Readable> {
|
|
2022
|
-
let params = (paramsOrCallback ||
|
|
2023
|
-
{}) as Params$Resource$Accounts$Getautomaticimprovements;
|
|
2024
|
-
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2025
|
-
|
|
2026
|
-
if (typeof paramsOrCallback === 'function') {
|
|
2027
|
-
callback = paramsOrCallback;
|
|
2028
|
-
params = {} as Params$Resource$Accounts$Getautomaticimprovements;
|
|
2029
|
-
options = {};
|
|
2030
|
-
}
|
|
2031
|
-
|
|
2032
|
-
if (typeof optionsOrCallback === 'function') {
|
|
2033
|
-
callback = optionsOrCallback;
|
|
2034
|
-
options = {};
|
|
2035
|
-
}
|
|
2036
|
-
|
|
2037
|
-
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
2038
|
-
const parameters = {
|
|
2039
|
-
options: Object.assign(
|
|
2040
|
-
{
|
|
2041
|
-
url: (rootUrl + '/accounts/v1beta/{+name}').replace(
|
|
2042
|
-
/([^:]\/)\/+/g,
|
|
2043
|
-
'$1'
|
|
2044
|
-
),
|
|
2045
|
-
method: 'GET',
|
|
2046
|
-
apiVersion: '',
|
|
2047
|
-
},
|
|
2048
|
-
options
|
|
2049
|
-
),
|
|
2050
|
-
params,
|
|
2051
|
-
requiredParams: ['name'],
|
|
2052
|
-
pathParams: ['name'],
|
|
2053
|
-
context: this.context,
|
|
2054
|
-
};
|
|
2055
|
-
if (callback) {
|
|
2056
|
-
createAPIRequest<Schema$AutomaticImprovements>(
|
|
2057
|
-
parameters,
|
|
2058
|
-
callback as BodyResponseCallback<unknown>
|
|
2059
|
-
);
|
|
2060
|
-
} else {
|
|
2061
|
-
return createAPIRequest<Schema$AutomaticImprovements>(parameters);
|
|
2062
|
-
}
|
|
2063
|
-
}
|
|
2064
|
-
|
|
2065
2129
|
/**
|
|
2066
2130
|
* Lists accounts accessible to the calling user and matching the constraints of the request such as page size or filters. This is not just listing the sub-accounts of an MCA, but all accounts the calling user has access to including other MCAs, linked accounts, standalone accounts and so on. If no filter is provided, then it returns all the accounts the user has access to. This method is eventually consistent, meaning changes such as creating, updating an account or a change of relationships between accounts may not show up in the results immediately. Instead, these changes propagate over a short period, after which the updated information can match the associated predicates. That means, that searching by account name might not return a recently changed account even though it satisfies the predicate.
|
|
2067
2131
|
*
|
|
@@ -2334,210 +2398,92 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
2334
2398
|
return createAPIRequest<Schema$Account>(parameters);
|
|
2335
2399
|
}
|
|
2336
2400
|
}
|
|
2401
|
+
}
|
|
2337
2402
|
|
|
2403
|
+
export interface Params$Resource$Accounts$Createandconfigure
|
|
2404
|
+
extends StandardParameters {
|
|
2338
2405
|
/**
|
|
2339
|
-
*
|
|
2406
|
+
* Request body metadata
|
|
2407
|
+
*/
|
|
2408
|
+
requestBody?: Schema$CreateAndConfigureAccountRequest;
|
|
2409
|
+
}
|
|
2410
|
+
export interface Params$Resource$Accounts$Delete extends StandardParameters {
|
|
2411
|
+
/**
|
|
2412
|
+
* Optional. If set to `true`, the account is deleted even if it provides services to other accounts or has processed offers.
|
|
2413
|
+
*/
|
|
2414
|
+
force?: boolean;
|
|
2415
|
+
/**
|
|
2416
|
+
* Required. The name of the account to delete. Format: `accounts/{account\}`
|
|
2417
|
+
*/
|
|
2418
|
+
name?: string;
|
|
2419
|
+
}
|
|
2420
|
+
export interface Params$Resource$Accounts$Get extends StandardParameters {
|
|
2421
|
+
/**
|
|
2422
|
+
* Required. The name of the account to retrieve. Format: `accounts/{account\}`
|
|
2423
|
+
*/
|
|
2424
|
+
name?: string;
|
|
2425
|
+
}
|
|
2426
|
+
export interface Params$Resource$Accounts$List extends StandardParameters {
|
|
2427
|
+
/**
|
|
2428
|
+
* 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).
|
|
2429
|
+
*/
|
|
2430
|
+
filter?: string;
|
|
2431
|
+
/**
|
|
2432
|
+
* Optional. The maximum number of accounts to return. The service may return fewer than this value. If unspecified, at most 250 accounts are returned. The maximum value is 500; values above 500 are coerced to 500.
|
|
2433
|
+
*/
|
|
2434
|
+
pageSize?: number;
|
|
2435
|
+
/**
|
|
2436
|
+
* Optional. A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccounts` must match the call that provided the page token.
|
|
2437
|
+
*/
|
|
2438
|
+
pageToken?: string;
|
|
2439
|
+
}
|
|
2440
|
+
export interface Params$Resource$Accounts$Listsubaccounts
|
|
2441
|
+
extends StandardParameters {
|
|
2442
|
+
/**
|
|
2443
|
+
* Optional. The maximum number of accounts to return. The service may return fewer than this value. If unspecified, at most 250 accounts are returned. The maximum value is 500; values above 500 are coerced to 500.
|
|
2444
|
+
*/
|
|
2445
|
+
pageSize?: number;
|
|
2446
|
+
/**
|
|
2447
|
+
* Optional. A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccounts` must match the call that provided the page token.
|
|
2448
|
+
*/
|
|
2449
|
+
pageToken?: string;
|
|
2450
|
+
/**
|
|
2451
|
+
* Required. The aggregation service provider. Format: `accounts/{accountId\}`
|
|
2452
|
+
*/
|
|
2453
|
+
provider?: string;
|
|
2454
|
+
}
|
|
2455
|
+
export interface Params$Resource$Accounts$Patch extends StandardParameters {
|
|
2456
|
+
/**
|
|
2457
|
+
* Identifier. The resource name of the account. Format: `accounts/{account\}`
|
|
2458
|
+
*/
|
|
2459
|
+
name?: string;
|
|
2460
|
+
/**
|
|
2461
|
+
* Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `account_name` - `adult_content` - `language_code` - `time_zone`
|
|
2462
|
+
*/
|
|
2463
|
+
updateMask?: string;
|
|
2464
|
+
|
|
2465
|
+
/**
|
|
2466
|
+
* Request body metadata
|
|
2467
|
+
*/
|
|
2468
|
+
requestBody?: Schema$Account;
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2471
|
+
export class Resource$Accounts$Autofeedsettings {
|
|
2472
|
+
context: APIRequestContext;
|
|
2473
|
+
constructor(context: APIRequestContext) {
|
|
2474
|
+
this.context = context;
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
/**
|
|
2478
|
+
* Retrieves the autofeed settings of an account.
|
|
2340
2479
|
*
|
|
2341
2480
|
* @param params - Parameters for request
|
|
2342
2481
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2343
2482
|
* @param callback - Optional callback that handles the response.
|
|
2344
2483
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2345
2484
|
*/
|
|
2346
|
-
|
|
2347
|
-
params: Params$Resource$Accounts$
|
|
2348
|
-
options: StreamMethodOptions
|
|
2349
|
-
): GaxiosPromise<Readable>;
|
|
2350
|
-
updateAutomaticImprovements(
|
|
2351
|
-
params?: Params$Resource$Accounts$Updateautomaticimprovements,
|
|
2352
|
-
options?: MethodOptions
|
|
2353
|
-
): GaxiosPromise<Schema$AutomaticImprovements>;
|
|
2354
|
-
updateAutomaticImprovements(
|
|
2355
|
-
params: Params$Resource$Accounts$Updateautomaticimprovements,
|
|
2356
|
-
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2357
|
-
callback: BodyResponseCallback<Readable>
|
|
2358
|
-
): void;
|
|
2359
|
-
updateAutomaticImprovements(
|
|
2360
|
-
params: Params$Resource$Accounts$Updateautomaticimprovements,
|
|
2361
|
-
options:
|
|
2362
|
-
| MethodOptions
|
|
2363
|
-
| BodyResponseCallback<Schema$AutomaticImprovements>,
|
|
2364
|
-
callback: BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2365
|
-
): void;
|
|
2366
|
-
updateAutomaticImprovements(
|
|
2367
|
-
params: Params$Resource$Accounts$Updateautomaticimprovements,
|
|
2368
|
-
callback: BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2369
|
-
): void;
|
|
2370
|
-
updateAutomaticImprovements(
|
|
2371
|
-
callback: BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2372
|
-
): void;
|
|
2373
|
-
updateAutomaticImprovements(
|
|
2374
|
-
paramsOrCallback?:
|
|
2375
|
-
| Params$Resource$Accounts$Updateautomaticimprovements
|
|
2376
|
-
| BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2377
|
-
| BodyResponseCallback<Readable>,
|
|
2378
|
-
optionsOrCallback?:
|
|
2379
|
-
| MethodOptions
|
|
2380
|
-
| StreamMethodOptions
|
|
2381
|
-
| BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2382
|
-
| BodyResponseCallback<Readable>,
|
|
2383
|
-
callback?:
|
|
2384
|
-
| BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2385
|
-
| BodyResponseCallback<Readable>
|
|
2386
|
-
):
|
|
2387
|
-
| void
|
|
2388
|
-
| GaxiosPromise<Schema$AutomaticImprovements>
|
|
2389
|
-
| GaxiosPromise<Readable> {
|
|
2390
|
-
let params = (paramsOrCallback ||
|
|
2391
|
-
{}) as Params$Resource$Accounts$Updateautomaticimprovements;
|
|
2392
|
-
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2393
|
-
|
|
2394
|
-
if (typeof paramsOrCallback === 'function') {
|
|
2395
|
-
callback = paramsOrCallback;
|
|
2396
|
-
params = {} as Params$Resource$Accounts$Updateautomaticimprovements;
|
|
2397
|
-
options = {};
|
|
2398
|
-
}
|
|
2399
|
-
|
|
2400
|
-
if (typeof optionsOrCallback === 'function') {
|
|
2401
|
-
callback = optionsOrCallback;
|
|
2402
|
-
options = {};
|
|
2403
|
-
}
|
|
2404
|
-
|
|
2405
|
-
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
2406
|
-
const parameters = {
|
|
2407
|
-
options: Object.assign(
|
|
2408
|
-
{
|
|
2409
|
-
url: (rootUrl + '/accounts/v1beta/{+name}').replace(
|
|
2410
|
-
/([^:]\/)\/+/g,
|
|
2411
|
-
'$1'
|
|
2412
|
-
),
|
|
2413
|
-
method: 'PATCH',
|
|
2414
|
-
apiVersion: '',
|
|
2415
|
-
},
|
|
2416
|
-
options
|
|
2417
|
-
),
|
|
2418
|
-
params,
|
|
2419
|
-
requiredParams: ['name'],
|
|
2420
|
-
pathParams: ['name'],
|
|
2421
|
-
context: this.context,
|
|
2422
|
-
};
|
|
2423
|
-
if (callback) {
|
|
2424
|
-
createAPIRequest<Schema$AutomaticImprovements>(
|
|
2425
|
-
parameters,
|
|
2426
|
-
callback as BodyResponseCallback<unknown>
|
|
2427
|
-
);
|
|
2428
|
-
} else {
|
|
2429
|
-
return createAPIRequest<Schema$AutomaticImprovements>(parameters);
|
|
2430
|
-
}
|
|
2431
|
-
}
|
|
2432
|
-
}
|
|
2433
|
-
|
|
2434
|
-
export interface Params$Resource$Accounts$Createandconfigure
|
|
2435
|
-
extends StandardParameters {
|
|
2436
|
-
/**
|
|
2437
|
-
* Request body metadata
|
|
2438
|
-
*/
|
|
2439
|
-
requestBody?: Schema$CreateAndConfigureAccountRequest;
|
|
2440
|
-
}
|
|
2441
|
-
export interface Params$Resource$Accounts$Delete extends StandardParameters {
|
|
2442
|
-
/**
|
|
2443
|
-
* Optional. If set to `true`, the account is deleted even if it provides services to other accounts or has processed offers.
|
|
2444
|
-
*/
|
|
2445
|
-
force?: boolean;
|
|
2446
|
-
/**
|
|
2447
|
-
* Required. The name of the account to delete. Format: `accounts/{account\}`
|
|
2448
|
-
*/
|
|
2449
|
-
name?: string;
|
|
2450
|
-
}
|
|
2451
|
-
export interface Params$Resource$Accounts$Get extends StandardParameters {
|
|
2452
|
-
/**
|
|
2453
|
-
* Required. The name of the account to retrieve. Format: `accounts/{account\}`
|
|
2454
|
-
*/
|
|
2455
|
-
name?: string;
|
|
2456
|
-
}
|
|
2457
|
-
export interface Params$Resource$Accounts$Getautomaticimprovements
|
|
2458
|
-
extends StandardParameters {
|
|
2459
|
-
/**
|
|
2460
|
-
* Required. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`
|
|
2461
|
-
*/
|
|
2462
|
-
name?: string;
|
|
2463
|
-
}
|
|
2464
|
-
export interface Params$Resource$Accounts$List extends StandardParameters {
|
|
2465
|
-
/**
|
|
2466
|
-
* 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).
|
|
2467
|
-
*/
|
|
2468
|
-
filter?: string;
|
|
2469
|
-
/**
|
|
2470
|
-
* Optional. The maximum number of accounts to return. The service may return fewer than this value. If unspecified, at most 250 accounts are returned. The maximum value is 500; values above 500 are coerced to 500.
|
|
2471
|
-
*/
|
|
2472
|
-
pageSize?: number;
|
|
2473
|
-
/**
|
|
2474
|
-
* Optional. A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccounts` must match the call that provided the page token.
|
|
2475
|
-
*/
|
|
2476
|
-
pageToken?: string;
|
|
2477
|
-
}
|
|
2478
|
-
export interface Params$Resource$Accounts$Listsubaccounts
|
|
2479
|
-
extends StandardParameters {
|
|
2480
|
-
/**
|
|
2481
|
-
* Optional. The maximum number of accounts to return. The service may return fewer than this value. If unspecified, at most 250 accounts are returned. The maximum value is 500; values above 500 are coerced to 500.
|
|
2482
|
-
*/
|
|
2483
|
-
pageSize?: number;
|
|
2484
|
-
/**
|
|
2485
|
-
* Optional. A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccounts` must match the call that provided the page token.
|
|
2486
|
-
*/
|
|
2487
|
-
pageToken?: string;
|
|
2488
|
-
/**
|
|
2489
|
-
* Required. The aggregation service provider. Format: `providers/{providerId\}`
|
|
2490
|
-
*/
|
|
2491
|
-
provider?: string;
|
|
2492
|
-
}
|
|
2493
|
-
export interface Params$Resource$Accounts$Patch extends StandardParameters {
|
|
2494
|
-
/**
|
|
2495
|
-
* Identifier. The resource name of the account. Format: `accounts/{account\}`
|
|
2496
|
-
*/
|
|
2497
|
-
name?: string;
|
|
2498
|
-
/**
|
|
2499
|
-
* Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `account_name` - `adult_content` - `language_code` - `time_zone`
|
|
2500
|
-
*/
|
|
2501
|
-
updateMask?: string;
|
|
2502
|
-
|
|
2503
|
-
/**
|
|
2504
|
-
* Request body metadata
|
|
2505
|
-
*/
|
|
2506
|
-
requestBody?: Schema$Account;
|
|
2507
|
-
}
|
|
2508
|
-
export interface Params$Resource$Accounts$Updateautomaticimprovements
|
|
2509
|
-
extends StandardParameters {
|
|
2510
|
-
/**
|
|
2511
|
-
* Identifier. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`.
|
|
2512
|
-
*/
|
|
2513
|
-
name?: string;
|
|
2514
|
-
/**
|
|
2515
|
-
* Required. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `item_updates` - `item_updates.account_level_settings` - `image_improvements` - `image_improvements.account_level_settings` - `shipping_improvements` - `shipping_improvements.allow_shipping_improvements`
|
|
2516
|
-
*/
|
|
2517
|
-
updateMask?: string;
|
|
2518
|
-
|
|
2519
|
-
/**
|
|
2520
|
-
* Request body metadata
|
|
2521
|
-
*/
|
|
2522
|
-
requestBody?: Schema$AutomaticImprovements;
|
|
2523
|
-
}
|
|
2524
|
-
|
|
2525
|
-
export class Resource$Accounts$Autofeedsettings {
|
|
2526
|
-
context: APIRequestContext;
|
|
2527
|
-
constructor(context: APIRequestContext) {
|
|
2528
|
-
this.context = context;
|
|
2529
|
-
}
|
|
2530
|
-
|
|
2531
|
-
/**
|
|
2532
|
-
* Retrieves the autofeed settings of an account.
|
|
2533
|
-
*
|
|
2534
|
-
* @param params - Parameters for request
|
|
2535
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2536
|
-
* @param callback - Optional callback that handles the response.
|
|
2537
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2538
|
-
*/
|
|
2539
|
-
getAutofeedSettings(
|
|
2540
|
-
params: Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings,
|
|
2485
|
+
getAutofeedSettings(
|
|
2486
|
+
params: Params$Resource$Accounts$Autofeedsettings$Getautofeedsettings,
|
|
2541
2487
|
options: StreamMethodOptions
|
|
2542
2488
|
): GaxiosPromise<Readable>;
|
|
2543
2489
|
getAutofeedSettings(
|
|
@@ -2735,67 +2681,72 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
2735
2681
|
requestBody?: Schema$AutofeedSettings;
|
|
2736
2682
|
}
|
|
2737
2683
|
|
|
2738
|
-
export class Resource$Accounts$
|
|
2684
|
+
export class Resource$Accounts$Automaticimprovements {
|
|
2739
2685
|
context: APIRequestContext;
|
|
2740
2686
|
constructor(context: APIRequestContext) {
|
|
2741
2687
|
this.context = context;
|
|
2742
2688
|
}
|
|
2743
2689
|
|
|
2744
2690
|
/**
|
|
2745
|
-
* Retrieves the
|
|
2691
|
+
* Retrieves the automatic improvements of an account.
|
|
2746
2692
|
*
|
|
2747
2693
|
* @param params - Parameters for request
|
|
2748
2694
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2749
2695
|
* @param callback - Optional callback that handles the response.
|
|
2750
2696
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2751
2697
|
*/
|
|
2752
|
-
|
|
2753
|
-
params: Params$Resource$Accounts$
|
|
2698
|
+
getAutomaticImprovements(
|
|
2699
|
+
params: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements,
|
|
2754
2700
|
options: StreamMethodOptions
|
|
2755
2701
|
): GaxiosPromise<Readable>;
|
|
2756
|
-
|
|
2757
|
-
params?: Params$Resource$Accounts$
|
|
2702
|
+
getAutomaticImprovements(
|
|
2703
|
+
params?: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements,
|
|
2758
2704
|
options?: MethodOptions
|
|
2759
|
-
): GaxiosPromise<Schema$
|
|
2760
|
-
|
|
2761
|
-
params: Params$Resource$Accounts$
|
|
2705
|
+
): GaxiosPromise<Schema$AutomaticImprovements>;
|
|
2706
|
+
getAutomaticImprovements(
|
|
2707
|
+
params: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements,
|
|
2762
2708
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2763
2709
|
callback: BodyResponseCallback<Readable>
|
|
2764
2710
|
): void;
|
|
2765
|
-
|
|
2766
|
-
params: Params$Resource$Accounts$
|
|
2767
|
-
options:
|
|
2768
|
-
|
|
2711
|
+
getAutomaticImprovements(
|
|
2712
|
+
params: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements,
|
|
2713
|
+
options:
|
|
2714
|
+
| MethodOptions
|
|
2715
|
+
| BodyResponseCallback<Schema$AutomaticImprovements>,
|
|
2716
|
+
callback: BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2769
2717
|
): void;
|
|
2770
|
-
|
|
2771
|
-
params: Params$Resource$Accounts$
|
|
2772
|
-
callback: BodyResponseCallback<Schema$
|
|
2718
|
+
getAutomaticImprovements(
|
|
2719
|
+
params: Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements,
|
|
2720
|
+
callback: BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2773
2721
|
): void;
|
|
2774
|
-
|
|
2775
|
-
callback: BodyResponseCallback<Schema$
|
|
2722
|
+
getAutomaticImprovements(
|
|
2723
|
+
callback: BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2776
2724
|
): void;
|
|
2777
|
-
|
|
2725
|
+
getAutomaticImprovements(
|
|
2778
2726
|
paramsOrCallback?:
|
|
2779
|
-
| Params$Resource$Accounts$
|
|
2780
|
-
| BodyResponseCallback<Schema$
|
|
2727
|
+
| Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements
|
|
2728
|
+
| BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2781
2729
|
| BodyResponseCallback<Readable>,
|
|
2782
2730
|
optionsOrCallback?:
|
|
2783
2731
|
| MethodOptions
|
|
2784
2732
|
| StreamMethodOptions
|
|
2785
|
-
| BodyResponseCallback<Schema$
|
|
2733
|
+
| BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2786
2734
|
| BodyResponseCallback<Readable>,
|
|
2787
2735
|
callback?:
|
|
2788
|
-
| BodyResponseCallback<Schema$
|
|
2736
|
+
| BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2789
2737
|
| BodyResponseCallback<Readable>
|
|
2790
|
-
):
|
|
2738
|
+
):
|
|
2739
|
+
| void
|
|
2740
|
+
| GaxiosPromise<Schema$AutomaticImprovements>
|
|
2741
|
+
| GaxiosPromise<Readable> {
|
|
2791
2742
|
let params = (paramsOrCallback ||
|
|
2792
|
-
{}) as Params$Resource$Accounts$
|
|
2743
|
+
{}) as Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements;
|
|
2793
2744
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2794
2745
|
|
|
2795
2746
|
if (typeof paramsOrCallback === 'function') {
|
|
2796
2747
|
callback = paramsOrCallback;
|
|
2797
2748
|
params =
|
|
2798
|
-
{} as Params$Resource$Accounts$
|
|
2749
|
+
{} as Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements;
|
|
2799
2750
|
options = {};
|
|
2800
2751
|
}
|
|
2801
2752
|
|
|
@@ -2823,44 +2774,262 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
2823
2774
|
context: this.context,
|
|
2824
2775
|
};
|
|
2825
2776
|
if (callback) {
|
|
2826
|
-
createAPIRequest<Schema$
|
|
2777
|
+
createAPIRequest<Schema$AutomaticImprovements>(
|
|
2827
2778
|
parameters,
|
|
2828
2779
|
callback as BodyResponseCallback<unknown>
|
|
2829
2780
|
);
|
|
2830
2781
|
} else {
|
|
2831
|
-
return createAPIRequest<Schema$
|
|
2782
|
+
return createAPIRequest<Schema$AutomaticImprovements>(parameters);
|
|
2832
2783
|
}
|
|
2833
2784
|
}
|
|
2834
2785
|
|
|
2835
2786
|
/**
|
|
2836
|
-
* Updates the
|
|
2787
|
+
* Updates the automatic improvements of an account.
|
|
2837
2788
|
*
|
|
2838
2789
|
* @param params - Parameters for request
|
|
2839
2790
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2840
2791
|
* @param callback - Optional callback that handles the response.
|
|
2841
2792
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2842
2793
|
*/
|
|
2843
|
-
|
|
2844
|
-
params: Params$Resource$Accounts$
|
|
2794
|
+
updateAutomaticImprovements(
|
|
2795
|
+
params: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements,
|
|
2845
2796
|
options: StreamMethodOptions
|
|
2846
2797
|
): GaxiosPromise<Readable>;
|
|
2847
|
-
|
|
2848
|
-
params?: Params$Resource$Accounts$
|
|
2798
|
+
updateAutomaticImprovements(
|
|
2799
|
+
params?: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements,
|
|
2849
2800
|
options?: MethodOptions
|
|
2850
|
-
): GaxiosPromise<Schema$
|
|
2851
|
-
|
|
2852
|
-
params: Params$Resource$Accounts$
|
|
2801
|
+
): GaxiosPromise<Schema$AutomaticImprovements>;
|
|
2802
|
+
updateAutomaticImprovements(
|
|
2803
|
+
params: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements,
|
|
2853
2804
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2854
2805
|
callback: BodyResponseCallback<Readable>
|
|
2855
2806
|
): void;
|
|
2856
|
-
|
|
2857
|
-
params: Params$Resource$Accounts$
|
|
2858
|
-
options:
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2807
|
+
updateAutomaticImprovements(
|
|
2808
|
+
params: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements,
|
|
2809
|
+
options:
|
|
2810
|
+
| MethodOptions
|
|
2811
|
+
| BodyResponseCallback<Schema$AutomaticImprovements>,
|
|
2812
|
+
callback: BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2813
|
+
): void;
|
|
2814
|
+
updateAutomaticImprovements(
|
|
2815
|
+
params: Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements,
|
|
2816
|
+
callback: BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2817
|
+
): void;
|
|
2818
|
+
updateAutomaticImprovements(
|
|
2819
|
+
callback: BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2820
|
+
): void;
|
|
2821
|
+
updateAutomaticImprovements(
|
|
2822
|
+
paramsOrCallback?:
|
|
2823
|
+
| Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements
|
|
2824
|
+
| BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2825
|
+
| BodyResponseCallback<Readable>,
|
|
2826
|
+
optionsOrCallback?:
|
|
2827
|
+
| MethodOptions
|
|
2828
|
+
| StreamMethodOptions
|
|
2829
|
+
| BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2830
|
+
| BodyResponseCallback<Readable>,
|
|
2831
|
+
callback?:
|
|
2832
|
+
| BodyResponseCallback<Schema$AutomaticImprovements>
|
|
2833
|
+
| BodyResponseCallback<Readable>
|
|
2834
|
+
):
|
|
2835
|
+
| void
|
|
2836
|
+
| GaxiosPromise<Schema$AutomaticImprovements>
|
|
2837
|
+
| GaxiosPromise<Readable> {
|
|
2838
|
+
let params = (paramsOrCallback ||
|
|
2839
|
+
{}) as Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements;
|
|
2840
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2841
|
+
|
|
2842
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2843
|
+
callback = paramsOrCallback;
|
|
2844
|
+
params =
|
|
2845
|
+
{} as Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements;
|
|
2846
|
+
options = {};
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2850
|
+
callback = optionsOrCallback;
|
|
2851
|
+
options = {};
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
2855
|
+
const parameters = {
|
|
2856
|
+
options: Object.assign(
|
|
2857
|
+
{
|
|
2858
|
+
url: (rootUrl + '/accounts/v1beta/{+name}').replace(
|
|
2859
|
+
/([^:]\/)\/+/g,
|
|
2860
|
+
'$1'
|
|
2861
|
+
),
|
|
2862
|
+
method: 'PATCH',
|
|
2863
|
+
apiVersion: '',
|
|
2864
|
+
},
|
|
2865
|
+
options
|
|
2866
|
+
),
|
|
2867
|
+
params,
|
|
2868
|
+
requiredParams: ['name'],
|
|
2869
|
+
pathParams: ['name'],
|
|
2870
|
+
context: this.context,
|
|
2871
|
+
};
|
|
2872
|
+
if (callback) {
|
|
2873
|
+
createAPIRequest<Schema$AutomaticImprovements>(
|
|
2874
|
+
parameters,
|
|
2875
|
+
callback as BodyResponseCallback<unknown>
|
|
2876
|
+
);
|
|
2877
|
+
} else {
|
|
2878
|
+
return createAPIRequest<Schema$AutomaticImprovements>(parameters);
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
export interface Params$Resource$Accounts$Automaticimprovements$Getautomaticimprovements
|
|
2884
|
+
extends StandardParameters {
|
|
2885
|
+
/**
|
|
2886
|
+
* Required. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`
|
|
2887
|
+
*/
|
|
2888
|
+
name?: string;
|
|
2889
|
+
}
|
|
2890
|
+
export interface Params$Resource$Accounts$Automaticimprovements$Updateautomaticimprovements
|
|
2891
|
+
extends StandardParameters {
|
|
2892
|
+
/**
|
|
2893
|
+
* Identifier. The resource name of the automatic improvements. Format: `accounts/{account\}/automaticImprovements`.
|
|
2894
|
+
*/
|
|
2895
|
+
name?: string;
|
|
2896
|
+
/**
|
|
2897
|
+
* 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`
|
|
2898
|
+
*/
|
|
2899
|
+
updateMask?: string;
|
|
2900
|
+
|
|
2901
|
+
/**
|
|
2902
|
+
* Request body metadata
|
|
2903
|
+
*/
|
|
2904
|
+
requestBody?: Schema$AutomaticImprovements;
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2907
|
+
export class Resource$Accounts$Businessidentity {
|
|
2908
|
+
context: APIRequestContext;
|
|
2909
|
+
constructor(context: APIRequestContext) {
|
|
2910
|
+
this.context = context;
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
/**
|
|
2914
|
+
* Retrieves the business identity of an account.
|
|
2915
|
+
*
|
|
2916
|
+
* @param params - Parameters for request
|
|
2917
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2918
|
+
* @param callback - Optional callback that handles the response.
|
|
2919
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2920
|
+
*/
|
|
2921
|
+
getBusinessIdentity(
|
|
2922
|
+
params: Params$Resource$Accounts$Businessidentity$Getbusinessidentity,
|
|
2923
|
+
options: StreamMethodOptions
|
|
2924
|
+
): GaxiosPromise<Readable>;
|
|
2925
|
+
getBusinessIdentity(
|
|
2926
|
+
params?: Params$Resource$Accounts$Businessidentity$Getbusinessidentity,
|
|
2927
|
+
options?: MethodOptions
|
|
2928
|
+
): GaxiosPromise<Schema$BusinessIdentity>;
|
|
2929
|
+
getBusinessIdentity(
|
|
2930
|
+
params: Params$Resource$Accounts$Businessidentity$Getbusinessidentity,
|
|
2931
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2932
|
+
callback: BodyResponseCallback<Readable>
|
|
2933
|
+
): void;
|
|
2934
|
+
getBusinessIdentity(
|
|
2935
|
+
params: Params$Resource$Accounts$Businessidentity$Getbusinessidentity,
|
|
2936
|
+
options: MethodOptions | BodyResponseCallback<Schema$BusinessIdentity>,
|
|
2937
|
+
callback: BodyResponseCallback<Schema$BusinessIdentity>
|
|
2938
|
+
): void;
|
|
2939
|
+
getBusinessIdentity(
|
|
2940
|
+
params: Params$Resource$Accounts$Businessidentity$Getbusinessidentity,
|
|
2941
|
+
callback: BodyResponseCallback<Schema$BusinessIdentity>
|
|
2942
|
+
): void;
|
|
2943
|
+
getBusinessIdentity(
|
|
2944
|
+
callback: BodyResponseCallback<Schema$BusinessIdentity>
|
|
2945
|
+
): void;
|
|
2946
|
+
getBusinessIdentity(
|
|
2947
|
+
paramsOrCallback?:
|
|
2948
|
+
| Params$Resource$Accounts$Businessidentity$Getbusinessidentity
|
|
2949
|
+
| BodyResponseCallback<Schema$BusinessIdentity>
|
|
2950
|
+
| BodyResponseCallback<Readable>,
|
|
2951
|
+
optionsOrCallback?:
|
|
2952
|
+
| MethodOptions
|
|
2953
|
+
| StreamMethodOptions
|
|
2954
|
+
| BodyResponseCallback<Schema$BusinessIdentity>
|
|
2955
|
+
| BodyResponseCallback<Readable>,
|
|
2956
|
+
callback?:
|
|
2957
|
+
| BodyResponseCallback<Schema$BusinessIdentity>
|
|
2958
|
+
| BodyResponseCallback<Readable>
|
|
2959
|
+
): void | GaxiosPromise<Schema$BusinessIdentity> | GaxiosPromise<Readable> {
|
|
2960
|
+
let params = (paramsOrCallback ||
|
|
2961
|
+
{}) as Params$Resource$Accounts$Businessidentity$Getbusinessidentity;
|
|
2962
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2963
|
+
|
|
2964
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2965
|
+
callback = paramsOrCallback;
|
|
2966
|
+
params =
|
|
2967
|
+
{} as Params$Resource$Accounts$Businessidentity$Getbusinessidentity;
|
|
2968
|
+
options = {};
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2972
|
+
callback = optionsOrCallback;
|
|
2973
|
+
options = {};
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
2977
|
+
const parameters = {
|
|
2978
|
+
options: Object.assign(
|
|
2979
|
+
{
|
|
2980
|
+
url: (rootUrl + '/accounts/v1beta/{+name}').replace(
|
|
2981
|
+
/([^:]\/)\/+/g,
|
|
2982
|
+
'$1'
|
|
2983
|
+
),
|
|
2984
|
+
method: 'GET',
|
|
2985
|
+
apiVersion: '',
|
|
2986
|
+
},
|
|
2987
|
+
options
|
|
2988
|
+
),
|
|
2989
|
+
params,
|
|
2990
|
+
requiredParams: ['name'],
|
|
2991
|
+
pathParams: ['name'],
|
|
2992
|
+
context: this.context,
|
|
2993
|
+
};
|
|
2994
|
+
if (callback) {
|
|
2995
|
+
createAPIRequest<Schema$BusinessIdentity>(
|
|
2996
|
+
parameters,
|
|
2997
|
+
callback as BodyResponseCallback<unknown>
|
|
2998
|
+
);
|
|
2999
|
+
} else {
|
|
3000
|
+
return createAPIRequest<Schema$BusinessIdentity>(parameters);
|
|
3001
|
+
}
|
|
3002
|
+
}
|
|
3003
|
+
|
|
3004
|
+
/**
|
|
3005
|
+
* Updates the business identity of an account. Executing this method requires admin access.
|
|
3006
|
+
*
|
|
3007
|
+
* @param params - Parameters for request
|
|
3008
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3009
|
+
* @param callback - Optional callback that handles the response.
|
|
3010
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3011
|
+
*/
|
|
3012
|
+
updateBusinessIdentity(
|
|
3013
|
+
params: Params$Resource$Accounts$Businessidentity$Updatebusinessidentity,
|
|
3014
|
+
options: StreamMethodOptions
|
|
3015
|
+
): GaxiosPromise<Readable>;
|
|
3016
|
+
updateBusinessIdentity(
|
|
3017
|
+
params?: Params$Resource$Accounts$Businessidentity$Updatebusinessidentity,
|
|
3018
|
+
options?: MethodOptions
|
|
3019
|
+
): GaxiosPromise<Schema$BusinessIdentity>;
|
|
3020
|
+
updateBusinessIdentity(
|
|
3021
|
+
params: Params$Resource$Accounts$Businessidentity$Updatebusinessidentity,
|
|
3022
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3023
|
+
callback: BodyResponseCallback<Readable>
|
|
3024
|
+
): void;
|
|
3025
|
+
updateBusinessIdentity(
|
|
3026
|
+
params: Params$Resource$Accounts$Businessidentity$Updatebusinessidentity,
|
|
3027
|
+
options: MethodOptions | BodyResponseCallback<Schema$BusinessIdentity>,
|
|
3028
|
+
callback: BodyResponseCallback<Schema$BusinessIdentity>
|
|
3029
|
+
): void;
|
|
3030
|
+
updateBusinessIdentity(
|
|
3031
|
+
params: Params$Resource$Accounts$Businessidentity$Updatebusinessidentity,
|
|
3032
|
+
callback: BodyResponseCallback<Schema$BusinessIdentity>
|
|
2864
3033
|
): void;
|
|
2865
3034
|
updateBusinessIdentity(
|
|
2866
3035
|
callback: BodyResponseCallback<Schema$BusinessIdentity>
|
|
@@ -3784,7 +3953,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
3784
3953
|
}
|
|
3785
3954
|
|
|
3786
3955
|
/**
|
|
3787
|
-
* Lists all account issues of a Merchant Center account.
|
|
3956
|
+
* Lists all account issues of a Merchant Center account. When called on a multi-client account, this method only returns issues belonging to that account, not its sub-accounts. To retrieve issues for sub-accounts, you must first call the accounts.listSubaccounts method to obtain a list of sub-accounts, and then call `accounts.issues.list` for each sub-account individually.
|
|
3788
3957
|
*
|
|
3789
3958
|
* @param params - Parameters for request
|
|
3790
3959
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3886,7 +4055,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
3886
4055
|
*/
|
|
3887
4056
|
languageCode?: string;
|
|
3888
4057
|
/**
|
|
3889
|
-
* Optional. The maximum number of issues to return. The service may return fewer than this value. If unspecified, at most 50
|
|
4058
|
+
* Optional. The maximum number of issues to return. The service may return fewer than this value. If unspecified, at most 50 issues will be returned. The maximum value is 100; values above 100 will be coerced to 100
|
|
3890
4059
|
*/
|
|
3891
4060
|
pageSize?: number;
|
|
3892
4061
|
/**
|
|
@@ -4513,82 +4682,919 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
4513
4682
|
/**
|
|
4514
4683
|
* Required. The name of the program to retrieve. Format: `accounts/{account\}/programs/{program\}`
|
|
4515
4684
|
*/
|
|
4516
|
-
name?: string;
|
|
4685
|
+
name?: string;
|
|
4686
|
+
}
|
|
4687
|
+
export interface Params$Resource$Accounts$Programs$List
|
|
4688
|
+
extends StandardParameters {
|
|
4689
|
+
/**
|
|
4690
|
+
* Optional. The maximum number of programs to return in a single response. If unspecified (or 0), a default size of 1000 is used. The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
4691
|
+
*/
|
|
4692
|
+
pageSize?: number;
|
|
4693
|
+
/**
|
|
4694
|
+
* Optional. A continuation token, received from a previous `ListPrograms` call. Provide this to retrieve the next page.
|
|
4695
|
+
*/
|
|
4696
|
+
pageToken?: string;
|
|
4697
|
+
/**
|
|
4698
|
+
* Required. The name of the account for which to retrieve all programs. Format: `accounts/{account\}`
|
|
4699
|
+
*/
|
|
4700
|
+
parent?: string;
|
|
4701
|
+
}
|
|
4702
|
+
|
|
4703
|
+
export class Resource$Accounts$Regions {
|
|
4704
|
+
context: APIRequestContext;
|
|
4705
|
+
constructor(context: APIRequestContext) {
|
|
4706
|
+
this.context = context;
|
|
4707
|
+
}
|
|
4708
|
+
|
|
4709
|
+
/**
|
|
4710
|
+
* Creates a region definition in your Merchant Center account. Executing this method requires admin access.
|
|
4711
|
+
*
|
|
4712
|
+
* @param params - Parameters for request
|
|
4713
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4714
|
+
* @param callback - Optional callback that handles the response.
|
|
4715
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4716
|
+
*/
|
|
4717
|
+
create(
|
|
4718
|
+
params: Params$Resource$Accounts$Regions$Create,
|
|
4719
|
+
options: StreamMethodOptions
|
|
4720
|
+
): GaxiosPromise<Readable>;
|
|
4721
|
+
create(
|
|
4722
|
+
params?: Params$Resource$Accounts$Regions$Create,
|
|
4723
|
+
options?: MethodOptions
|
|
4724
|
+
): GaxiosPromise<Schema$Region>;
|
|
4725
|
+
create(
|
|
4726
|
+
params: Params$Resource$Accounts$Regions$Create,
|
|
4727
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4728
|
+
callback: BodyResponseCallback<Readable>
|
|
4729
|
+
): void;
|
|
4730
|
+
create(
|
|
4731
|
+
params: Params$Resource$Accounts$Regions$Create,
|
|
4732
|
+
options: MethodOptions | BodyResponseCallback<Schema$Region>,
|
|
4733
|
+
callback: BodyResponseCallback<Schema$Region>
|
|
4734
|
+
): void;
|
|
4735
|
+
create(
|
|
4736
|
+
params: Params$Resource$Accounts$Regions$Create,
|
|
4737
|
+
callback: BodyResponseCallback<Schema$Region>
|
|
4738
|
+
): void;
|
|
4739
|
+
create(callback: BodyResponseCallback<Schema$Region>): void;
|
|
4740
|
+
create(
|
|
4741
|
+
paramsOrCallback?:
|
|
4742
|
+
| Params$Resource$Accounts$Regions$Create
|
|
4743
|
+
| BodyResponseCallback<Schema$Region>
|
|
4744
|
+
| BodyResponseCallback<Readable>,
|
|
4745
|
+
optionsOrCallback?:
|
|
4746
|
+
| MethodOptions
|
|
4747
|
+
| StreamMethodOptions
|
|
4748
|
+
| BodyResponseCallback<Schema$Region>
|
|
4749
|
+
| BodyResponseCallback<Readable>,
|
|
4750
|
+
callback?:
|
|
4751
|
+
| BodyResponseCallback<Schema$Region>
|
|
4752
|
+
| BodyResponseCallback<Readable>
|
|
4753
|
+
): void | GaxiosPromise<Schema$Region> | GaxiosPromise<Readable> {
|
|
4754
|
+
let params = (paramsOrCallback ||
|
|
4755
|
+
{}) as Params$Resource$Accounts$Regions$Create;
|
|
4756
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4757
|
+
|
|
4758
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4759
|
+
callback = paramsOrCallback;
|
|
4760
|
+
params = {} as Params$Resource$Accounts$Regions$Create;
|
|
4761
|
+
options = {};
|
|
4762
|
+
}
|
|
4763
|
+
|
|
4764
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4765
|
+
callback = optionsOrCallback;
|
|
4766
|
+
options = {};
|
|
4767
|
+
}
|
|
4768
|
+
|
|
4769
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
4770
|
+
const parameters = {
|
|
4771
|
+
options: Object.assign(
|
|
4772
|
+
{
|
|
4773
|
+
url: (rootUrl + '/accounts/v1beta/{+parent}/regions').replace(
|
|
4774
|
+
/([^:]\/)\/+/g,
|
|
4775
|
+
'$1'
|
|
4776
|
+
),
|
|
4777
|
+
method: 'POST',
|
|
4778
|
+
apiVersion: '',
|
|
4779
|
+
},
|
|
4780
|
+
options
|
|
4781
|
+
),
|
|
4782
|
+
params,
|
|
4783
|
+
requiredParams: ['parent'],
|
|
4784
|
+
pathParams: ['parent'],
|
|
4785
|
+
context: this.context,
|
|
4786
|
+
};
|
|
4787
|
+
if (callback) {
|
|
4788
|
+
createAPIRequest<Schema$Region>(
|
|
4789
|
+
parameters,
|
|
4790
|
+
callback as BodyResponseCallback<unknown>
|
|
4791
|
+
);
|
|
4792
|
+
} else {
|
|
4793
|
+
return createAPIRequest<Schema$Region>(parameters);
|
|
4794
|
+
}
|
|
4795
|
+
}
|
|
4796
|
+
|
|
4797
|
+
/**
|
|
4798
|
+
* Deletes a region definition from your Merchant Center account. Executing this method requires admin access.
|
|
4799
|
+
*
|
|
4800
|
+
* @param params - Parameters for request
|
|
4801
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4802
|
+
* @param callback - Optional callback that handles the response.
|
|
4803
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4804
|
+
*/
|
|
4805
|
+
delete(
|
|
4806
|
+
params: Params$Resource$Accounts$Regions$Delete,
|
|
4807
|
+
options: StreamMethodOptions
|
|
4808
|
+
): GaxiosPromise<Readable>;
|
|
4809
|
+
delete(
|
|
4810
|
+
params?: Params$Resource$Accounts$Regions$Delete,
|
|
4811
|
+
options?: MethodOptions
|
|
4812
|
+
): GaxiosPromise<Schema$Empty>;
|
|
4813
|
+
delete(
|
|
4814
|
+
params: Params$Resource$Accounts$Regions$Delete,
|
|
4815
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4816
|
+
callback: BodyResponseCallback<Readable>
|
|
4817
|
+
): void;
|
|
4818
|
+
delete(
|
|
4819
|
+
params: Params$Resource$Accounts$Regions$Delete,
|
|
4820
|
+
options: MethodOptions | BodyResponseCallback<Schema$Empty>,
|
|
4821
|
+
callback: BodyResponseCallback<Schema$Empty>
|
|
4822
|
+
): void;
|
|
4823
|
+
delete(
|
|
4824
|
+
params: Params$Resource$Accounts$Regions$Delete,
|
|
4825
|
+
callback: BodyResponseCallback<Schema$Empty>
|
|
4826
|
+
): void;
|
|
4827
|
+
delete(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
4828
|
+
delete(
|
|
4829
|
+
paramsOrCallback?:
|
|
4830
|
+
| Params$Resource$Accounts$Regions$Delete
|
|
4831
|
+
| BodyResponseCallback<Schema$Empty>
|
|
4832
|
+
| BodyResponseCallback<Readable>,
|
|
4833
|
+
optionsOrCallback?:
|
|
4834
|
+
| MethodOptions
|
|
4835
|
+
| StreamMethodOptions
|
|
4836
|
+
| BodyResponseCallback<Schema$Empty>
|
|
4837
|
+
| BodyResponseCallback<Readable>,
|
|
4838
|
+
callback?:
|
|
4839
|
+
| BodyResponseCallback<Schema$Empty>
|
|
4840
|
+
| BodyResponseCallback<Readable>
|
|
4841
|
+
): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
|
|
4842
|
+
let params = (paramsOrCallback ||
|
|
4843
|
+
{}) as Params$Resource$Accounts$Regions$Delete;
|
|
4844
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4845
|
+
|
|
4846
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4847
|
+
callback = paramsOrCallback;
|
|
4848
|
+
params = {} as Params$Resource$Accounts$Regions$Delete;
|
|
4849
|
+
options = {};
|
|
4850
|
+
}
|
|
4851
|
+
|
|
4852
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4853
|
+
callback = optionsOrCallback;
|
|
4854
|
+
options = {};
|
|
4855
|
+
}
|
|
4856
|
+
|
|
4857
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
4858
|
+
const parameters = {
|
|
4859
|
+
options: Object.assign(
|
|
4860
|
+
{
|
|
4861
|
+
url: (rootUrl + '/accounts/v1beta/{+name}').replace(
|
|
4862
|
+
/([^:]\/)\/+/g,
|
|
4863
|
+
'$1'
|
|
4864
|
+
),
|
|
4865
|
+
method: 'DELETE',
|
|
4866
|
+
apiVersion: '',
|
|
4867
|
+
},
|
|
4868
|
+
options
|
|
4869
|
+
),
|
|
4870
|
+
params,
|
|
4871
|
+
requiredParams: ['name'],
|
|
4872
|
+
pathParams: ['name'],
|
|
4873
|
+
context: this.context,
|
|
4874
|
+
};
|
|
4875
|
+
if (callback) {
|
|
4876
|
+
createAPIRequest<Schema$Empty>(
|
|
4877
|
+
parameters,
|
|
4878
|
+
callback as BodyResponseCallback<unknown>
|
|
4879
|
+
);
|
|
4880
|
+
} else {
|
|
4881
|
+
return createAPIRequest<Schema$Empty>(parameters);
|
|
4882
|
+
}
|
|
4883
|
+
}
|
|
4884
|
+
|
|
4885
|
+
/**
|
|
4886
|
+
* Retrieves a region defined in your Merchant Center account.
|
|
4887
|
+
*
|
|
4888
|
+
* @param params - Parameters for request
|
|
4889
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4890
|
+
* @param callback - Optional callback that handles the response.
|
|
4891
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4892
|
+
*/
|
|
4893
|
+
get(
|
|
4894
|
+
params: Params$Resource$Accounts$Regions$Get,
|
|
4895
|
+
options: StreamMethodOptions
|
|
4896
|
+
): GaxiosPromise<Readable>;
|
|
4897
|
+
get(
|
|
4898
|
+
params?: Params$Resource$Accounts$Regions$Get,
|
|
4899
|
+
options?: MethodOptions
|
|
4900
|
+
): GaxiosPromise<Schema$Region>;
|
|
4901
|
+
get(
|
|
4902
|
+
params: Params$Resource$Accounts$Regions$Get,
|
|
4903
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4904
|
+
callback: BodyResponseCallback<Readable>
|
|
4905
|
+
): void;
|
|
4906
|
+
get(
|
|
4907
|
+
params: Params$Resource$Accounts$Regions$Get,
|
|
4908
|
+
options: MethodOptions | BodyResponseCallback<Schema$Region>,
|
|
4909
|
+
callback: BodyResponseCallback<Schema$Region>
|
|
4910
|
+
): void;
|
|
4911
|
+
get(
|
|
4912
|
+
params: Params$Resource$Accounts$Regions$Get,
|
|
4913
|
+
callback: BodyResponseCallback<Schema$Region>
|
|
4914
|
+
): void;
|
|
4915
|
+
get(callback: BodyResponseCallback<Schema$Region>): void;
|
|
4916
|
+
get(
|
|
4917
|
+
paramsOrCallback?:
|
|
4918
|
+
| Params$Resource$Accounts$Regions$Get
|
|
4919
|
+
| BodyResponseCallback<Schema$Region>
|
|
4920
|
+
| BodyResponseCallback<Readable>,
|
|
4921
|
+
optionsOrCallback?:
|
|
4922
|
+
| MethodOptions
|
|
4923
|
+
| StreamMethodOptions
|
|
4924
|
+
| BodyResponseCallback<Schema$Region>
|
|
4925
|
+
| BodyResponseCallback<Readable>,
|
|
4926
|
+
callback?:
|
|
4927
|
+
| BodyResponseCallback<Schema$Region>
|
|
4928
|
+
| BodyResponseCallback<Readable>
|
|
4929
|
+
): void | GaxiosPromise<Schema$Region> | GaxiosPromise<Readable> {
|
|
4930
|
+
let params = (paramsOrCallback ||
|
|
4931
|
+
{}) as Params$Resource$Accounts$Regions$Get;
|
|
4932
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4933
|
+
|
|
4934
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4935
|
+
callback = paramsOrCallback;
|
|
4936
|
+
params = {} as Params$Resource$Accounts$Regions$Get;
|
|
4937
|
+
options = {};
|
|
4938
|
+
}
|
|
4939
|
+
|
|
4940
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4941
|
+
callback = optionsOrCallback;
|
|
4942
|
+
options = {};
|
|
4943
|
+
}
|
|
4944
|
+
|
|
4945
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
4946
|
+
const parameters = {
|
|
4947
|
+
options: Object.assign(
|
|
4948
|
+
{
|
|
4949
|
+
url: (rootUrl + '/accounts/v1beta/{+name}').replace(
|
|
4950
|
+
/([^:]\/)\/+/g,
|
|
4951
|
+
'$1'
|
|
4952
|
+
),
|
|
4953
|
+
method: 'GET',
|
|
4954
|
+
apiVersion: '',
|
|
4955
|
+
},
|
|
4956
|
+
options
|
|
4957
|
+
),
|
|
4958
|
+
params,
|
|
4959
|
+
requiredParams: ['name'],
|
|
4960
|
+
pathParams: ['name'],
|
|
4961
|
+
context: this.context,
|
|
4962
|
+
};
|
|
4963
|
+
if (callback) {
|
|
4964
|
+
createAPIRequest<Schema$Region>(
|
|
4965
|
+
parameters,
|
|
4966
|
+
callback as BodyResponseCallback<unknown>
|
|
4967
|
+
);
|
|
4968
|
+
} else {
|
|
4969
|
+
return createAPIRequest<Schema$Region>(parameters);
|
|
4970
|
+
}
|
|
4971
|
+
}
|
|
4972
|
+
|
|
4973
|
+
/**
|
|
4974
|
+
* Lists the regions in your Merchant Center account.
|
|
4975
|
+
*
|
|
4976
|
+
* @param params - Parameters for request
|
|
4977
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4978
|
+
* @param callback - Optional callback that handles the response.
|
|
4979
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4980
|
+
*/
|
|
4981
|
+
list(
|
|
4982
|
+
params: Params$Resource$Accounts$Regions$List,
|
|
4983
|
+
options: StreamMethodOptions
|
|
4984
|
+
): GaxiosPromise<Readable>;
|
|
4985
|
+
list(
|
|
4986
|
+
params?: Params$Resource$Accounts$Regions$List,
|
|
4987
|
+
options?: MethodOptions
|
|
4988
|
+
): GaxiosPromise<Schema$ListRegionsResponse>;
|
|
4989
|
+
list(
|
|
4990
|
+
params: Params$Resource$Accounts$Regions$List,
|
|
4991
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4992
|
+
callback: BodyResponseCallback<Readable>
|
|
4993
|
+
): void;
|
|
4994
|
+
list(
|
|
4995
|
+
params: Params$Resource$Accounts$Regions$List,
|
|
4996
|
+
options: MethodOptions | BodyResponseCallback<Schema$ListRegionsResponse>,
|
|
4997
|
+
callback: BodyResponseCallback<Schema$ListRegionsResponse>
|
|
4998
|
+
): void;
|
|
4999
|
+
list(
|
|
5000
|
+
params: Params$Resource$Accounts$Regions$List,
|
|
5001
|
+
callback: BodyResponseCallback<Schema$ListRegionsResponse>
|
|
5002
|
+
): void;
|
|
5003
|
+
list(callback: BodyResponseCallback<Schema$ListRegionsResponse>): void;
|
|
5004
|
+
list(
|
|
5005
|
+
paramsOrCallback?:
|
|
5006
|
+
| Params$Resource$Accounts$Regions$List
|
|
5007
|
+
| BodyResponseCallback<Schema$ListRegionsResponse>
|
|
5008
|
+
| BodyResponseCallback<Readable>,
|
|
5009
|
+
optionsOrCallback?:
|
|
5010
|
+
| MethodOptions
|
|
5011
|
+
| StreamMethodOptions
|
|
5012
|
+
| BodyResponseCallback<Schema$ListRegionsResponse>
|
|
5013
|
+
| BodyResponseCallback<Readable>,
|
|
5014
|
+
callback?:
|
|
5015
|
+
| BodyResponseCallback<Schema$ListRegionsResponse>
|
|
5016
|
+
| BodyResponseCallback<Readable>
|
|
5017
|
+
):
|
|
5018
|
+
| void
|
|
5019
|
+
| GaxiosPromise<Schema$ListRegionsResponse>
|
|
5020
|
+
| GaxiosPromise<Readable> {
|
|
5021
|
+
let params = (paramsOrCallback ||
|
|
5022
|
+
{}) as Params$Resource$Accounts$Regions$List;
|
|
5023
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5024
|
+
|
|
5025
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5026
|
+
callback = paramsOrCallback;
|
|
5027
|
+
params = {} as Params$Resource$Accounts$Regions$List;
|
|
5028
|
+
options = {};
|
|
5029
|
+
}
|
|
5030
|
+
|
|
5031
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5032
|
+
callback = optionsOrCallback;
|
|
5033
|
+
options = {};
|
|
5034
|
+
}
|
|
5035
|
+
|
|
5036
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
5037
|
+
const parameters = {
|
|
5038
|
+
options: Object.assign(
|
|
5039
|
+
{
|
|
5040
|
+
url: (rootUrl + '/accounts/v1beta/{+parent}/regions').replace(
|
|
5041
|
+
/([^:]\/)\/+/g,
|
|
5042
|
+
'$1'
|
|
5043
|
+
),
|
|
5044
|
+
method: 'GET',
|
|
5045
|
+
apiVersion: '',
|
|
5046
|
+
},
|
|
5047
|
+
options
|
|
5048
|
+
),
|
|
5049
|
+
params,
|
|
5050
|
+
requiredParams: ['parent'],
|
|
5051
|
+
pathParams: ['parent'],
|
|
5052
|
+
context: this.context,
|
|
5053
|
+
};
|
|
5054
|
+
if (callback) {
|
|
5055
|
+
createAPIRequest<Schema$ListRegionsResponse>(
|
|
5056
|
+
parameters,
|
|
5057
|
+
callback as BodyResponseCallback<unknown>
|
|
5058
|
+
);
|
|
5059
|
+
} else {
|
|
5060
|
+
return createAPIRequest<Schema$ListRegionsResponse>(parameters);
|
|
5061
|
+
}
|
|
5062
|
+
}
|
|
5063
|
+
|
|
5064
|
+
/**
|
|
5065
|
+
* Updates a region definition in your Merchant Center account. Executing this method requires admin access.
|
|
5066
|
+
*
|
|
5067
|
+
* @param params - Parameters for request
|
|
5068
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5069
|
+
* @param callback - Optional callback that handles the response.
|
|
5070
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5071
|
+
*/
|
|
5072
|
+
patch(
|
|
5073
|
+
params: Params$Resource$Accounts$Regions$Patch,
|
|
5074
|
+
options: StreamMethodOptions
|
|
5075
|
+
): GaxiosPromise<Readable>;
|
|
5076
|
+
patch(
|
|
5077
|
+
params?: Params$Resource$Accounts$Regions$Patch,
|
|
5078
|
+
options?: MethodOptions
|
|
5079
|
+
): GaxiosPromise<Schema$Region>;
|
|
5080
|
+
patch(
|
|
5081
|
+
params: Params$Resource$Accounts$Regions$Patch,
|
|
5082
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5083
|
+
callback: BodyResponseCallback<Readable>
|
|
5084
|
+
): void;
|
|
5085
|
+
patch(
|
|
5086
|
+
params: Params$Resource$Accounts$Regions$Patch,
|
|
5087
|
+
options: MethodOptions | BodyResponseCallback<Schema$Region>,
|
|
5088
|
+
callback: BodyResponseCallback<Schema$Region>
|
|
5089
|
+
): void;
|
|
5090
|
+
patch(
|
|
5091
|
+
params: Params$Resource$Accounts$Regions$Patch,
|
|
5092
|
+
callback: BodyResponseCallback<Schema$Region>
|
|
5093
|
+
): void;
|
|
5094
|
+
patch(callback: BodyResponseCallback<Schema$Region>): void;
|
|
5095
|
+
patch(
|
|
5096
|
+
paramsOrCallback?:
|
|
5097
|
+
| Params$Resource$Accounts$Regions$Patch
|
|
5098
|
+
| BodyResponseCallback<Schema$Region>
|
|
5099
|
+
| BodyResponseCallback<Readable>,
|
|
5100
|
+
optionsOrCallback?:
|
|
5101
|
+
| MethodOptions
|
|
5102
|
+
| StreamMethodOptions
|
|
5103
|
+
| BodyResponseCallback<Schema$Region>
|
|
5104
|
+
| BodyResponseCallback<Readable>,
|
|
5105
|
+
callback?:
|
|
5106
|
+
| BodyResponseCallback<Schema$Region>
|
|
5107
|
+
| BodyResponseCallback<Readable>
|
|
5108
|
+
): void | GaxiosPromise<Schema$Region> | GaxiosPromise<Readable> {
|
|
5109
|
+
let params = (paramsOrCallback ||
|
|
5110
|
+
{}) as Params$Resource$Accounts$Regions$Patch;
|
|
5111
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5112
|
+
|
|
5113
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5114
|
+
callback = paramsOrCallback;
|
|
5115
|
+
params = {} as Params$Resource$Accounts$Regions$Patch;
|
|
5116
|
+
options = {};
|
|
5117
|
+
}
|
|
5118
|
+
|
|
5119
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5120
|
+
callback = optionsOrCallback;
|
|
5121
|
+
options = {};
|
|
5122
|
+
}
|
|
5123
|
+
|
|
5124
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
5125
|
+
const parameters = {
|
|
5126
|
+
options: Object.assign(
|
|
5127
|
+
{
|
|
5128
|
+
url: (rootUrl + '/accounts/v1beta/{+name}').replace(
|
|
5129
|
+
/([^:]\/)\/+/g,
|
|
5130
|
+
'$1'
|
|
5131
|
+
),
|
|
5132
|
+
method: 'PATCH',
|
|
5133
|
+
apiVersion: '',
|
|
5134
|
+
},
|
|
5135
|
+
options
|
|
5136
|
+
),
|
|
5137
|
+
params,
|
|
5138
|
+
requiredParams: ['name'],
|
|
5139
|
+
pathParams: ['name'],
|
|
5140
|
+
context: this.context,
|
|
5141
|
+
};
|
|
5142
|
+
if (callback) {
|
|
5143
|
+
createAPIRequest<Schema$Region>(
|
|
5144
|
+
parameters,
|
|
5145
|
+
callback as BodyResponseCallback<unknown>
|
|
5146
|
+
);
|
|
5147
|
+
} else {
|
|
5148
|
+
return createAPIRequest<Schema$Region>(parameters);
|
|
5149
|
+
}
|
|
5150
|
+
}
|
|
5151
|
+
}
|
|
5152
|
+
|
|
5153
|
+
export interface Params$Resource$Accounts$Regions$Create
|
|
5154
|
+
extends StandardParameters {
|
|
5155
|
+
/**
|
|
5156
|
+
* Required. The account to create a region for. Format: `accounts/{account\}`
|
|
5157
|
+
*/
|
|
5158
|
+
parent?: string;
|
|
5159
|
+
/**
|
|
5160
|
+
* Required. The identifier for the region, unique over all regions of the same account.
|
|
5161
|
+
*/
|
|
5162
|
+
regionId?: string;
|
|
5163
|
+
|
|
5164
|
+
/**
|
|
5165
|
+
* Request body metadata
|
|
5166
|
+
*/
|
|
5167
|
+
requestBody?: Schema$Region;
|
|
5168
|
+
}
|
|
5169
|
+
export interface Params$Resource$Accounts$Regions$Delete
|
|
5170
|
+
extends StandardParameters {
|
|
5171
|
+
/**
|
|
5172
|
+
* Required. The name of the region to delete. Format: `accounts/{account\}/regions/{region\}`
|
|
5173
|
+
*/
|
|
5174
|
+
name?: string;
|
|
5175
|
+
}
|
|
5176
|
+
export interface Params$Resource$Accounts$Regions$Get
|
|
5177
|
+
extends StandardParameters {
|
|
5178
|
+
/**
|
|
5179
|
+
* Required. The name of the region to retrieve. Format: `accounts/{account\}/regions/{region\}`
|
|
5180
|
+
*/
|
|
5181
|
+
name?: string;
|
|
5182
|
+
}
|
|
5183
|
+
export interface Params$Resource$Accounts$Regions$List
|
|
5184
|
+
extends StandardParameters {
|
|
5185
|
+
/**
|
|
5186
|
+
* Optional. The maximum number of regions to return. The service may return fewer than this value. If unspecified, at most 50 regions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
5187
|
+
*/
|
|
5188
|
+
pageSize?: number;
|
|
5189
|
+
/**
|
|
5190
|
+
* Optional. A page token, received from a previous `ListRegions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRegions` must match the call that provided the page token.
|
|
5191
|
+
*/
|
|
5192
|
+
pageToken?: string;
|
|
5193
|
+
/**
|
|
5194
|
+
* Required. The account to list regions for. Format: `accounts/{account\}`
|
|
5195
|
+
*/
|
|
5196
|
+
parent?: string;
|
|
5197
|
+
}
|
|
5198
|
+
export interface Params$Resource$Accounts$Regions$Patch
|
|
5199
|
+
extends StandardParameters {
|
|
5200
|
+
/**
|
|
5201
|
+
* Identifier. The resource name of the region. Format: `accounts/{account\}/regions/{region\}`
|
|
5202
|
+
*/
|
|
5203
|
+
name?: string;
|
|
5204
|
+
/**
|
|
5205
|
+
* Optional. The comma-separated field mask indicating the fields to update. Example: `"displayName,postalCodeArea.regionCode"`.
|
|
5206
|
+
*/
|
|
5207
|
+
updateMask?: string;
|
|
5208
|
+
|
|
5209
|
+
/**
|
|
5210
|
+
* Request body metadata
|
|
5211
|
+
*/
|
|
5212
|
+
requestBody?: Schema$Region;
|
|
5213
|
+
}
|
|
5214
|
+
|
|
5215
|
+
export class Resource$Accounts$Relationships {
|
|
5216
|
+
context: APIRequestContext;
|
|
5217
|
+
constructor(context: APIRequestContext) {
|
|
5218
|
+
this.context = context;
|
|
5219
|
+
}
|
|
5220
|
+
|
|
5221
|
+
/**
|
|
5222
|
+
* Retrieve an account relationship.
|
|
5223
|
+
*
|
|
5224
|
+
* @param params - Parameters for request
|
|
5225
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5226
|
+
* @param callback - Optional callback that handles the response.
|
|
5227
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5228
|
+
*/
|
|
5229
|
+
get(
|
|
5230
|
+
params: Params$Resource$Accounts$Relationships$Get,
|
|
5231
|
+
options: StreamMethodOptions
|
|
5232
|
+
): GaxiosPromise<Readable>;
|
|
5233
|
+
get(
|
|
5234
|
+
params?: Params$Resource$Accounts$Relationships$Get,
|
|
5235
|
+
options?: MethodOptions
|
|
5236
|
+
): GaxiosPromise<Schema$AccountRelationship>;
|
|
5237
|
+
get(
|
|
5238
|
+
params: Params$Resource$Accounts$Relationships$Get,
|
|
5239
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5240
|
+
callback: BodyResponseCallback<Readable>
|
|
5241
|
+
): void;
|
|
5242
|
+
get(
|
|
5243
|
+
params: Params$Resource$Accounts$Relationships$Get,
|
|
5244
|
+
options: MethodOptions | BodyResponseCallback<Schema$AccountRelationship>,
|
|
5245
|
+
callback: BodyResponseCallback<Schema$AccountRelationship>
|
|
5246
|
+
): void;
|
|
5247
|
+
get(
|
|
5248
|
+
params: Params$Resource$Accounts$Relationships$Get,
|
|
5249
|
+
callback: BodyResponseCallback<Schema$AccountRelationship>
|
|
5250
|
+
): void;
|
|
5251
|
+
get(callback: BodyResponseCallback<Schema$AccountRelationship>): void;
|
|
5252
|
+
get(
|
|
5253
|
+
paramsOrCallback?:
|
|
5254
|
+
| Params$Resource$Accounts$Relationships$Get
|
|
5255
|
+
| BodyResponseCallback<Schema$AccountRelationship>
|
|
5256
|
+
| BodyResponseCallback<Readable>,
|
|
5257
|
+
optionsOrCallback?:
|
|
5258
|
+
| MethodOptions
|
|
5259
|
+
| StreamMethodOptions
|
|
5260
|
+
| BodyResponseCallback<Schema$AccountRelationship>
|
|
5261
|
+
| BodyResponseCallback<Readable>,
|
|
5262
|
+
callback?:
|
|
5263
|
+
| BodyResponseCallback<Schema$AccountRelationship>
|
|
5264
|
+
| BodyResponseCallback<Readable>
|
|
5265
|
+
):
|
|
5266
|
+
| void
|
|
5267
|
+
| GaxiosPromise<Schema$AccountRelationship>
|
|
5268
|
+
| GaxiosPromise<Readable> {
|
|
5269
|
+
let params = (paramsOrCallback ||
|
|
5270
|
+
{}) as Params$Resource$Accounts$Relationships$Get;
|
|
5271
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5272
|
+
|
|
5273
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5274
|
+
callback = paramsOrCallback;
|
|
5275
|
+
params = {} as Params$Resource$Accounts$Relationships$Get;
|
|
5276
|
+
options = {};
|
|
5277
|
+
}
|
|
5278
|
+
|
|
5279
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5280
|
+
callback = optionsOrCallback;
|
|
5281
|
+
options = {};
|
|
5282
|
+
}
|
|
5283
|
+
|
|
5284
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
5285
|
+
const parameters = {
|
|
5286
|
+
options: Object.assign(
|
|
5287
|
+
{
|
|
5288
|
+
url: (rootUrl + '/accounts/v1beta/{+name}').replace(
|
|
5289
|
+
/([^:]\/)\/+/g,
|
|
5290
|
+
'$1'
|
|
5291
|
+
),
|
|
5292
|
+
method: 'GET',
|
|
5293
|
+
apiVersion: '',
|
|
5294
|
+
},
|
|
5295
|
+
options
|
|
5296
|
+
),
|
|
5297
|
+
params,
|
|
5298
|
+
requiredParams: ['name'],
|
|
5299
|
+
pathParams: ['name'],
|
|
5300
|
+
context: this.context,
|
|
5301
|
+
};
|
|
5302
|
+
if (callback) {
|
|
5303
|
+
createAPIRequest<Schema$AccountRelationship>(
|
|
5304
|
+
parameters,
|
|
5305
|
+
callback as BodyResponseCallback<unknown>
|
|
5306
|
+
);
|
|
5307
|
+
} else {
|
|
5308
|
+
return createAPIRequest<Schema$AccountRelationship>(parameters);
|
|
5309
|
+
}
|
|
5310
|
+
}
|
|
5311
|
+
|
|
5312
|
+
/**
|
|
5313
|
+
* List account relationships for the specified account.
|
|
5314
|
+
*
|
|
5315
|
+
* @param params - Parameters for request
|
|
5316
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5317
|
+
* @param callback - Optional callback that handles the response.
|
|
5318
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5319
|
+
*/
|
|
5320
|
+
list(
|
|
5321
|
+
params: Params$Resource$Accounts$Relationships$List,
|
|
5322
|
+
options: StreamMethodOptions
|
|
5323
|
+
): GaxiosPromise<Readable>;
|
|
5324
|
+
list(
|
|
5325
|
+
params?: Params$Resource$Accounts$Relationships$List,
|
|
5326
|
+
options?: MethodOptions
|
|
5327
|
+
): GaxiosPromise<Schema$ListAccountRelationshipsResponse>;
|
|
5328
|
+
list(
|
|
5329
|
+
params: Params$Resource$Accounts$Relationships$List,
|
|
5330
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5331
|
+
callback: BodyResponseCallback<Readable>
|
|
5332
|
+
): void;
|
|
5333
|
+
list(
|
|
5334
|
+
params: Params$Resource$Accounts$Relationships$List,
|
|
5335
|
+
options:
|
|
5336
|
+
| MethodOptions
|
|
5337
|
+
| BodyResponseCallback<Schema$ListAccountRelationshipsResponse>,
|
|
5338
|
+
callback: BodyResponseCallback<Schema$ListAccountRelationshipsResponse>
|
|
5339
|
+
): void;
|
|
5340
|
+
list(
|
|
5341
|
+
params: Params$Resource$Accounts$Relationships$List,
|
|
5342
|
+
callback: BodyResponseCallback<Schema$ListAccountRelationshipsResponse>
|
|
5343
|
+
): void;
|
|
5344
|
+
list(
|
|
5345
|
+
callback: BodyResponseCallback<Schema$ListAccountRelationshipsResponse>
|
|
5346
|
+
): void;
|
|
5347
|
+
list(
|
|
5348
|
+
paramsOrCallback?:
|
|
5349
|
+
| Params$Resource$Accounts$Relationships$List
|
|
5350
|
+
| BodyResponseCallback<Schema$ListAccountRelationshipsResponse>
|
|
5351
|
+
| BodyResponseCallback<Readable>,
|
|
5352
|
+
optionsOrCallback?:
|
|
5353
|
+
| MethodOptions
|
|
5354
|
+
| StreamMethodOptions
|
|
5355
|
+
| BodyResponseCallback<Schema$ListAccountRelationshipsResponse>
|
|
5356
|
+
| BodyResponseCallback<Readable>,
|
|
5357
|
+
callback?:
|
|
5358
|
+
| BodyResponseCallback<Schema$ListAccountRelationshipsResponse>
|
|
5359
|
+
| BodyResponseCallback<Readable>
|
|
5360
|
+
):
|
|
5361
|
+
| void
|
|
5362
|
+
| GaxiosPromise<Schema$ListAccountRelationshipsResponse>
|
|
5363
|
+
| GaxiosPromise<Readable> {
|
|
5364
|
+
let params = (paramsOrCallback ||
|
|
5365
|
+
{}) as Params$Resource$Accounts$Relationships$List;
|
|
5366
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5367
|
+
|
|
5368
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5369
|
+
callback = paramsOrCallback;
|
|
5370
|
+
params = {} as Params$Resource$Accounts$Relationships$List;
|
|
5371
|
+
options = {};
|
|
5372
|
+
}
|
|
5373
|
+
|
|
5374
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5375
|
+
callback = optionsOrCallback;
|
|
5376
|
+
options = {};
|
|
5377
|
+
}
|
|
5378
|
+
|
|
5379
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
5380
|
+
const parameters = {
|
|
5381
|
+
options: Object.assign(
|
|
5382
|
+
{
|
|
5383
|
+
url: (rootUrl + '/accounts/v1beta/{+parent}/relationships').replace(
|
|
5384
|
+
/([^:]\/)\/+/g,
|
|
5385
|
+
'$1'
|
|
5386
|
+
),
|
|
5387
|
+
method: 'GET',
|
|
5388
|
+
apiVersion: '',
|
|
5389
|
+
},
|
|
5390
|
+
options
|
|
5391
|
+
),
|
|
5392
|
+
params,
|
|
5393
|
+
requiredParams: ['parent'],
|
|
5394
|
+
pathParams: ['parent'],
|
|
5395
|
+
context: this.context,
|
|
5396
|
+
};
|
|
5397
|
+
if (callback) {
|
|
5398
|
+
createAPIRequest<Schema$ListAccountRelationshipsResponse>(
|
|
5399
|
+
parameters,
|
|
5400
|
+
callback as BodyResponseCallback<unknown>
|
|
5401
|
+
);
|
|
5402
|
+
} else {
|
|
5403
|
+
return createAPIRequest<Schema$ListAccountRelationshipsResponse>(
|
|
5404
|
+
parameters
|
|
5405
|
+
);
|
|
5406
|
+
}
|
|
5407
|
+
}
|
|
5408
|
+
|
|
5409
|
+
/**
|
|
5410
|
+
* Updates the account relationship. Executing this method requires admin access.
|
|
5411
|
+
*
|
|
5412
|
+
* @param params - Parameters for request
|
|
5413
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5414
|
+
* @param callback - Optional callback that handles the response.
|
|
5415
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5416
|
+
*/
|
|
5417
|
+
patch(
|
|
5418
|
+
params: Params$Resource$Accounts$Relationships$Patch,
|
|
5419
|
+
options: StreamMethodOptions
|
|
5420
|
+
): GaxiosPromise<Readable>;
|
|
5421
|
+
patch(
|
|
5422
|
+
params?: Params$Resource$Accounts$Relationships$Patch,
|
|
5423
|
+
options?: MethodOptions
|
|
5424
|
+
): GaxiosPromise<Schema$AccountRelationship>;
|
|
5425
|
+
patch(
|
|
5426
|
+
params: Params$Resource$Accounts$Relationships$Patch,
|
|
5427
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
5428
|
+
callback: BodyResponseCallback<Readable>
|
|
5429
|
+
): void;
|
|
5430
|
+
patch(
|
|
5431
|
+
params: Params$Resource$Accounts$Relationships$Patch,
|
|
5432
|
+
options: MethodOptions | BodyResponseCallback<Schema$AccountRelationship>,
|
|
5433
|
+
callback: BodyResponseCallback<Schema$AccountRelationship>
|
|
5434
|
+
): void;
|
|
5435
|
+
patch(
|
|
5436
|
+
params: Params$Resource$Accounts$Relationships$Patch,
|
|
5437
|
+
callback: BodyResponseCallback<Schema$AccountRelationship>
|
|
5438
|
+
): void;
|
|
5439
|
+
patch(callback: BodyResponseCallback<Schema$AccountRelationship>): void;
|
|
5440
|
+
patch(
|
|
5441
|
+
paramsOrCallback?:
|
|
5442
|
+
| Params$Resource$Accounts$Relationships$Patch
|
|
5443
|
+
| BodyResponseCallback<Schema$AccountRelationship>
|
|
5444
|
+
| BodyResponseCallback<Readable>,
|
|
5445
|
+
optionsOrCallback?:
|
|
5446
|
+
| MethodOptions
|
|
5447
|
+
| StreamMethodOptions
|
|
5448
|
+
| BodyResponseCallback<Schema$AccountRelationship>
|
|
5449
|
+
| BodyResponseCallback<Readable>,
|
|
5450
|
+
callback?:
|
|
5451
|
+
| BodyResponseCallback<Schema$AccountRelationship>
|
|
5452
|
+
| BodyResponseCallback<Readable>
|
|
5453
|
+
):
|
|
5454
|
+
| void
|
|
5455
|
+
| GaxiosPromise<Schema$AccountRelationship>
|
|
5456
|
+
| GaxiosPromise<Readable> {
|
|
5457
|
+
let params = (paramsOrCallback ||
|
|
5458
|
+
{}) as Params$Resource$Accounts$Relationships$Patch;
|
|
5459
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
5460
|
+
|
|
5461
|
+
if (typeof paramsOrCallback === 'function') {
|
|
5462
|
+
callback = paramsOrCallback;
|
|
5463
|
+
params = {} as Params$Resource$Accounts$Relationships$Patch;
|
|
5464
|
+
options = {};
|
|
5465
|
+
}
|
|
5466
|
+
|
|
5467
|
+
if (typeof optionsOrCallback === 'function') {
|
|
5468
|
+
callback = optionsOrCallback;
|
|
5469
|
+
options = {};
|
|
5470
|
+
}
|
|
5471
|
+
|
|
5472
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
5473
|
+
const parameters = {
|
|
5474
|
+
options: Object.assign(
|
|
5475
|
+
{
|
|
5476
|
+
url: (rootUrl + '/accounts/v1beta/{+name}').replace(
|
|
5477
|
+
/([^:]\/)\/+/g,
|
|
5478
|
+
'$1'
|
|
5479
|
+
),
|
|
5480
|
+
method: 'PATCH',
|
|
5481
|
+
apiVersion: '',
|
|
5482
|
+
},
|
|
5483
|
+
options
|
|
5484
|
+
),
|
|
5485
|
+
params,
|
|
5486
|
+
requiredParams: ['name'],
|
|
5487
|
+
pathParams: ['name'],
|
|
5488
|
+
context: this.context,
|
|
5489
|
+
};
|
|
5490
|
+
if (callback) {
|
|
5491
|
+
createAPIRequest<Schema$AccountRelationship>(
|
|
5492
|
+
parameters,
|
|
5493
|
+
callback as BodyResponseCallback<unknown>
|
|
5494
|
+
);
|
|
5495
|
+
} else {
|
|
5496
|
+
return createAPIRequest<Schema$AccountRelationship>(parameters);
|
|
5497
|
+
}
|
|
5498
|
+
}
|
|
5499
|
+
}
|
|
5500
|
+
|
|
5501
|
+
export interface Params$Resource$Accounts$Relationships$Get
|
|
5502
|
+
extends StandardParameters {
|
|
5503
|
+
/**
|
|
5504
|
+
* Required. The resource name of the account relationship to get.
|
|
5505
|
+
*/
|
|
5506
|
+
name?: string;
|
|
5507
|
+
}
|
|
5508
|
+
export interface Params$Resource$Accounts$Relationships$List
|
|
5509
|
+
extends StandardParameters {
|
|
5510
|
+
/**
|
|
5511
|
+
* 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`.
|
|
5512
|
+
*/
|
|
5513
|
+
pageSize?: number;
|
|
5514
|
+
/**
|
|
5515
|
+
* Optional. The token returned by the previous `list` request.
|
|
5516
|
+
*/
|
|
5517
|
+
pageToken?: string;
|
|
5518
|
+
/**
|
|
5519
|
+
* Required. The parent account of the account relationship to filter by.
|
|
5520
|
+
*/
|
|
5521
|
+
parent?: string;
|
|
4517
5522
|
}
|
|
4518
|
-
export interface Params$Resource$Accounts$
|
|
5523
|
+
export interface Params$Resource$Accounts$Relationships$Patch
|
|
4519
5524
|
extends StandardParameters {
|
|
4520
5525
|
/**
|
|
4521
|
-
*
|
|
5526
|
+
* Identifier. The resource name of the account relationship.
|
|
4522
5527
|
*/
|
|
4523
|
-
|
|
5528
|
+
name?: string;
|
|
4524
5529
|
/**
|
|
4525
|
-
* Optional.
|
|
5530
|
+
* Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `account_id_alias`
|
|
4526
5531
|
*/
|
|
4527
|
-
|
|
5532
|
+
updateMask?: string;
|
|
5533
|
+
|
|
4528
5534
|
/**
|
|
4529
|
-
*
|
|
5535
|
+
* Request body metadata
|
|
4530
5536
|
*/
|
|
4531
|
-
|
|
5537
|
+
requestBody?: Schema$AccountRelationship;
|
|
4532
5538
|
}
|
|
4533
5539
|
|
|
4534
|
-
export class Resource$Accounts$
|
|
5540
|
+
export class Resource$Accounts$Services {
|
|
4535
5541
|
context: APIRequestContext;
|
|
4536
5542
|
constructor(context: APIRequestContext) {
|
|
4537
5543
|
this.context = context;
|
|
4538
5544
|
}
|
|
4539
5545
|
|
|
4540
5546
|
/**
|
|
4541
|
-
*
|
|
5547
|
+
* Approve an account service proposal.
|
|
4542
5548
|
*
|
|
4543
5549
|
* @param params - Parameters for request
|
|
4544
5550
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4545
5551
|
* @param callback - Optional callback that handles the response.
|
|
4546
5552
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4547
5553
|
*/
|
|
4548
|
-
|
|
4549
|
-
params: Params$Resource$Accounts$
|
|
5554
|
+
approve(
|
|
5555
|
+
params: Params$Resource$Accounts$Services$Approve,
|
|
4550
5556
|
options: StreamMethodOptions
|
|
4551
5557
|
): GaxiosPromise<Readable>;
|
|
4552
|
-
|
|
4553
|
-
params?: Params$Resource$Accounts$
|
|
5558
|
+
approve(
|
|
5559
|
+
params?: Params$Resource$Accounts$Services$Approve,
|
|
4554
5560
|
options?: MethodOptions
|
|
4555
|
-
): GaxiosPromise<Schema$
|
|
4556
|
-
|
|
4557
|
-
params: Params$Resource$Accounts$
|
|
5561
|
+
): GaxiosPromise<Schema$AccountService>;
|
|
5562
|
+
approve(
|
|
5563
|
+
params: Params$Resource$Accounts$Services$Approve,
|
|
4558
5564
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4559
5565
|
callback: BodyResponseCallback<Readable>
|
|
4560
5566
|
): void;
|
|
4561
|
-
|
|
4562
|
-
params: Params$Resource$Accounts$
|
|
4563
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
4564
|
-
callback: BodyResponseCallback<Schema$
|
|
5567
|
+
approve(
|
|
5568
|
+
params: Params$Resource$Accounts$Services$Approve,
|
|
5569
|
+
options: MethodOptions | BodyResponseCallback<Schema$AccountService>,
|
|
5570
|
+
callback: BodyResponseCallback<Schema$AccountService>
|
|
4565
5571
|
): void;
|
|
4566
|
-
|
|
4567
|
-
params: Params$Resource$Accounts$
|
|
4568
|
-
callback: BodyResponseCallback<Schema$
|
|
5572
|
+
approve(
|
|
5573
|
+
params: Params$Resource$Accounts$Services$Approve,
|
|
5574
|
+
callback: BodyResponseCallback<Schema$AccountService>
|
|
4569
5575
|
): void;
|
|
4570
|
-
|
|
4571
|
-
|
|
5576
|
+
approve(callback: BodyResponseCallback<Schema$AccountService>): void;
|
|
5577
|
+
approve(
|
|
4572
5578
|
paramsOrCallback?:
|
|
4573
|
-
| Params$Resource$Accounts$
|
|
4574
|
-
| BodyResponseCallback<Schema$
|
|
5579
|
+
| Params$Resource$Accounts$Services$Approve
|
|
5580
|
+
| BodyResponseCallback<Schema$AccountService>
|
|
4575
5581
|
| BodyResponseCallback<Readable>,
|
|
4576
5582
|
optionsOrCallback?:
|
|
4577
5583
|
| MethodOptions
|
|
4578
5584
|
| StreamMethodOptions
|
|
4579
|
-
| BodyResponseCallback<Schema$
|
|
5585
|
+
| BodyResponseCallback<Schema$AccountService>
|
|
4580
5586
|
| BodyResponseCallback<Readable>,
|
|
4581
5587
|
callback?:
|
|
4582
|
-
| BodyResponseCallback<Schema$
|
|
5588
|
+
| BodyResponseCallback<Schema$AccountService>
|
|
4583
5589
|
| BodyResponseCallback<Readable>
|
|
4584
|
-
): void | GaxiosPromise<Schema$
|
|
5590
|
+
): void | GaxiosPromise<Schema$AccountService> | GaxiosPromise<Readable> {
|
|
4585
5591
|
let params = (paramsOrCallback ||
|
|
4586
|
-
{}) as Params$Resource$Accounts$
|
|
5592
|
+
{}) as Params$Resource$Accounts$Services$Approve;
|
|
4587
5593
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4588
5594
|
|
|
4589
5595
|
if (typeof paramsOrCallback === 'function') {
|
|
4590
5596
|
callback = paramsOrCallback;
|
|
4591
|
-
params = {} as Params$Resource$Accounts$
|
|
5597
|
+
params = {} as Params$Resource$Accounts$Services$Approve;
|
|
4592
5598
|
options = {};
|
|
4593
5599
|
}
|
|
4594
5600
|
|
|
@@ -4601,7 +5607,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
4601
5607
|
const parameters = {
|
|
4602
5608
|
options: Object.assign(
|
|
4603
5609
|
{
|
|
4604
|
-
url: (rootUrl + '/accounts/v1beta/{+
|
|
5610
|
+
url: (rootUrl + '/accounts/v1beta/{+name}:approve').replace(
|
|
4605
5611
|
/([^:]\/)\/+/g,
|
|
4606
5612
|
'$1'
|
|
4607
5613
|
),
|
|
@@ -4611,72 +5617,72 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
4611
5617
|
options
|
|
4612
5618
|
),
|
|
4613
5619
|
params,
|
|
4614
|
-
requiredParams: ['
|
|
4615
|
-
pathParams: ['
|
|
5620
|
+
requiredParams: ['name'],
|
|
5621
|
+
pathParams: ['name'],
|
|
4616
5622
|
context: this.context,
|
|
4617
5623
|
};
|
|
4618
5624
|
if (callback) {
|
|
4619
|
-
createAPIRequest<Schema$
|
|
5625
|
+
createAPIRequest<Schema$AccountService>(
|
|
4620
5626
|
parameters,
|
|
4621
5627
|
callback as BodyResponseCallback<unknown>
|
|
4622
5628
|
);
|
|
4623
5629
|
} else {
|
|
4624
|
-
return createAPIRequest<Schema$
|
|
5630
|
+
return createAPIRequest<Schema$AccountService>(parameters);
|
|
4625
5631
|
}
|
|
4626
5632
|
}
|
|
4627
5633
|
|
|
4628
5634
|
/**
|
|
4629
|
-
*
|
|
5635
|
+
* Retrieve an account service.
|
|
4630
5636
|
*
|
|
4631
5637
|
* @param params - Parameters for request
|
|
4632
5638
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4633
5639
|
* @param callback - Optional callback that handles the response.
|
|
4634
5640
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4635
5641
|
*/
|
|
4636
|
-
|
|
4637
|
-
params: Params$Resource$Accounts$
|
|
5642
|
+
get(
|
|
5643
|
+
params: Params$Resource$Accounts$Services$Get,
|
|
4638
5644
|
options: StreamMethodOptions
|
|
4639
5645
|
): GaxiosPromise<Readable>;
|
|
4640
|
-
|
|
4641
|
-
params?: Params$Resource$Accounts$
|
|
5646
|
+
get(
|
|
5647
|
+
params?: Params$Resource$Accounts$Services$Get,
|
|
4642
5648
|
options?: MethodOptions
|
|
4643
|
-
): GaxiosPromise<Schema$
|
|
4644
|
-
|
|
4645
|
-
params: Params$Resource$Accounts$
|
|
5649
|
+
): GaxiosPromise<Schema$AccountService>;
|
|
5650
|
+
get(
|
|
5651
|
+
params: Params$Resource$Accounts$Services$Get,
|
|
4646
5652
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4647
5653
|
callback: BodyResponseCallback<Readable>
|
|
4648
5654
|
): void;
|
|
4649
|
-
|
|
4650
|
-
params: Params$Resource$Accounts$
|
|
4651
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
4652
|
-
callback: BodyResponseCallback<Schema$
|
|
5655
|
+
get(
|
|
5656
|
+
params: Params$Resource$Accounts$Services$Get,
|
|
5657
|
+
options: MethodOptions | BodyResponseCallback<Schema$AccountService>,
|
|
5658
|
+
callback: BodyResponseCallback<Schema$AccountService>
|
|
4653
5659
|
): void;
|
|
4654
|
-
|
|
4655
|
-
params: Params$Resource$Accounts$
|
|
4656
|
-
callback: BodyResponseCallback<Schema$
|
|
5660
|
+
get(
|
|
5661
|
+
params: Params$Resource$Accounts$Services$Get,
|
|
5662
|
+
callback: BodyResponseCallback<Schema$AccountService>
|
|
4657
5663
|
): void;
|
|
4658
|
-
|
|
4659
|
-
|
|
5664
|
+
get(callback: BodyResponseCallback<Schema$AccountService>): void;
|
|
5665
|
+
get(
|
|
4660
5666
|
paramsOrCallback?:
|
|
4661
|
-
| Params$Resource$Accounts$
|
|
4662
|
-
| BodyResponseCallback<Schema$
|
|
5667
|
+
| Params$Resource$Accounts$Services$Get
|
|
5668
|
+
| BodyResponseCallback<Schema$AccountService>
|
|
4663
5669
|
| BodyResponseCallback<Readable>,
|
|
4664
5670
|
optionsOrCallback?:
|
|
4665
5671
|
| MethodOptions
|
|
4666
5672
|
| StreamMethodOptions
|
|
4667
|
-
| BodyResponseCallback<Schema$
|
|
5673
|
+
| BodyResponseCallback<Schema$AccountService>
|
|
4668
5674
|
| BodyResponseCallback<Readable>,
|
|
4669
5675
|
callback?:
|
|
4670
|
-
| BodyResponseCallback<Schema$
|
|
5676
|
+
| BodyResponseCallback<Schema$AccountService>
|
|
4671
5677
|
| BodyResponseCallback<Readable>
|
|
4672
|
-
): void | GaxiosPromise<Schema$
|
|
5678
|
+
): void | GaxiosPromise<Schema$AccountService> | GaxiosPromise<Readable> {
|
|
4673
5679
|
let params = (paramsOrCallback ||
|
|
4674
|
-
{}) as Params$Resource$Accounts$
|
|
5680
|
+
{}) as Params$Resource$Accounts$Services$Get;
|
|
4675
5681
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4676
5682
|
|
|
4677
5683
|
if (typeof paramsOrCallback === 'function') {
|
|
4678
5684
|
callback = paramsOrCallback;
|
|
4679
|
-
params = {} as Params$Resource$Accounts$
|
|
5685
|
+
params = {} as Params$Resource$Accounts$Services$Get;
|
|
4680
5686
|
options = {};
|
|
4681
5687
|
}
|
|
4682
5688
|
|
|
@@ -4693,7 +5699,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
4693
5699
|
/([^:]\/)\/+/g,
|
|
4694
5700
|
'$1'
|
|
4695
5701
|
),
|
|
4696
|
-
method: '
|
|
5702
|
+
method: 'GET',
|
|
4697
5703
|
apiVersion: '',
|
|
4698
5704
|
},
|
|
4699
5705
|
options
|
|
@@ -4704,67 +5710,74 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
4704
5710
|
context: this.context,
|
|
4705
5711
|
};
|
|
4706
5712
|
if (callback) {
|
|
4707
|
-
createAPIRequest<Schema$
|
|
5713
|
+
createAPIRequest<Schema$AccountService>(
|
|
4708
5714
|
parameters,
|
|
4709
5715
|
callback as BodyResponseCallback<unknown>
|
|
4710
5716
|
);
|
|
4711
5717
|
} else {
|
|
4712
|
-
return createAPIRequest<Schema$
|
|
5718
|
+
return createAPIRequest<Schema$AccountService>(parameters);
|
|
4713
5719
|
}
|
|
4714
5720
|
}
|
|
4715
5721
|
|
|
4716
5722
|
/**
|
|
4717
|
-
*
|
|
5723
|
+
* List account services for the specified accounts. Supports filtering.
|
|
4718
5724
|
*
|
|
4719
5725
|
* @param params - Parameters for request
|
|
4720
5726
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4721
5727
|
* @param callback - Optional callback that handles the response.
|
|
4722
5728
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4723
5729
|
*/
|
|
4724
|
-
|
|
4725
|
-
params: Params$Resource$Accounts$
|
|
5730
|
+
list(
|
|
5731
|
+
params: Params$Resource$Accounts$Services$List,
|
|
4726
5732
|
options: StreamMethodOptions
|
|
4727
5733
|
): GaxiosPromise<Readable>;
|
|
4728
|
-
|
|
4729
|
-
params?: Params$Resource$Accounts$
|
|
5734
|
+
list(
|
|
5735
|
+
params?: Params$Resource$Accounts$Services$List,
|
|
4730
5736
|
options?: MethodOptions
|
|
4731
|
-
): GaxiosPromise<Schema$
|
|
4732
|
-
|
|
4733
|
-
params: Params$Resource$Accounts$
|
|
5737
|
+
): GaxiosPromise<Schema$ListAccountServicesResponse>;
|
|
5738
|
+
list(
|
|
5739
|
+
params: Params$Resource$Accounts$Services$List,
|
|
4734
5740
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4735
5741
|
callback: BodyResponseCallback<Readable>
|
|
4736
5742
|
): void;
|
|
4737
|
-
|
|
4738
|
-
params: Params$Resource$Accounts$
|
|
4739
|
-
options:
|
|
4740
|
-
|
|
5743
|
+
list(
|
|
5744
|
+
params: Params$Resource$Accounts$Services$List,
|
|
5745
|
+
options:
|
|
5746
|
+
| MethodOptions
|
|
5747
|
+
| BodyResponseCallback<Schema$ListAccountServicesResponse>,
|
|
5748
|
+
callback: BodyResponseCallback<Schema$ListAccountServicesResponse>
|
|
4741
5749
|
): void;
|
|
4742
|
-
|
|
4743
|
-
params: Params$Resource$Accounts$
|
|
4744
|
-
callback: BodyResponseCallback<Schema$
|
|
5750
|
+
list(
|
|
5751
|
+
params: Params$Resource$Accounts$Services$List,
|
|
5752
|
+
callback: BodyResponseCallback<Schema$ListAccountServicesResponse>
|
|
4745
5753
|
): void;
|
|
4746
|
-
|
|
4747
|
-
|
|
5754
|
+
list(
|
|
5755
|
+
callback: BodyResponseCallback<Schema$ListAccountServicesResponse>
|
|
5756
|
+
): void;
|
|
5757
|
+
list(
|
|
4748
5758
|
paramsOrCallback?:
|
|
4749
|
-
| Params$Resource$Accounts$
|
|
4750
|
-
| BodyResponseCallback<Schema$
|
|
5759
|
+
| Params$Resource$Accounts$Services$List
|
|
5760
|
+
| BodyResponseCallback<Schema$ListAccountServicesResponse>
|
|
4751
5761
|
| BodyResponseCallback<Readable>,
|
|
4752
5762
|
optionsOrCallback?:
|
|
4753
5763
|
| MethodOptions
|
|
4754
5764
|
| StreamMethodOptions
|
|
4755
|
-
| BodyResponseCallback<Schema$
|
|
5765
|
+
| BodyResponseCallback<Schema$ListAccountServicesResponse>
|
|
4756
5766
|
| BodyResponseCallback<Readable>,
|
|
4757
5767
|
callback?:
|
|
4758
|
-
| BodyResponseCallback<Schema$
|
|
5768
|
+
| BodyResponseCallback<Schema$ListAccountServicesResponse>
|
|
4759
5769
|
| BodyResponseCallback<Readable>
|
|
4760
|
-
):
|
|
5770
|
+
):
|
|
5771
|
+
| void
|
|
5772
|
+
| GaxiosPromise<Schema$ListAccountServicesResponse>
|
|
5773
|
+
| GaxiosPromise<Readable> {
|
|
4761
5774
|
let params = (paramsOrCallback ||
|
|
4762
|
-
{}) as Params$Resource$Accounts$
|
|
5775
|
+
{}) as Params$Resource$Accounts$Services$List;
|
|
4763
5776
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4764
5777
|
|
|
4765
5778
|
if (typeof paramsOrCallback === 'function') {
|
|
4766
5779
|
callback = paramsOrCallback;
|
|
4767
|
-
params = {} as Params$Resource$Accounts$
|
|
5780
|
+
params = {} as Params$Resource$Accounts$Services$List;
|
|
4768
5781
|
options = {};
|
|
4769
5782
|
}
|
|
4770
5783
|
|
|
@@ -4777,7 +5790,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
4777
5790
|
const parameters = {
|
|
4778
5791
|
options: Object.assign(
|
|
4779
5792
|
{
|
|
4780
|
-
url: (rootUrl + '/accounts/v1beta/{+
|
|
5793
|
+
url: (rootUrl + '/accounts/v1beta/{+parent}/services').replace(
|
|
4781
5794
|
/([^:]\/)\/+/g,
|
|
4782
5795
|
'$1'
|
|
4783
5796
|
),
|
|
@@ -4787,75 +5800,72 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
4787
5800
|
options
|
|
4788
5801
|
),
|
|
4789
5802
|
params,
|
|
4790
|
-
requiredParams: ['
|
|
4791
|
-
pathParams: ['
|
|
5803
|
+
requiredParams: ['parent'],
|
|
5804
|
+
pathParams: ['parent'],
|
|
4792
5805
|
context: this.context,
|
|
4793
5806
|
};
|
|
4794
5807
|
if (callback) {
|
|
4795
|
-
createAPIRequest<Schema$
|
|
5808
|
+
createAPIRequest<Schema$ListAccountServicesResponse>(
|
|
4796
5809
|
parameters,
|
|
4797
5810
|
callback as BodyResponseCallback<unknown>
|
|
4798
5811
|
);
|
|
4799
5812
|
} else {
|
|
4800
|
-
return createAPIRequest<Schema$
|
|
5813
|
+
return createAPIRequest<Schema$ListAccountServicesResponse>(parameters);
|
|
4801
5814
|
}
|
|
4802
5815
|
}
|
|
4803
5816
|
|
|
4804
5817
|
/**
|
|
4805
|
-
*
|
|
5818
|
+
* Propose an account service.
|
|
4806
5819
|
*
|
|
4807
5820
|
* @param params - Parameters for request
|
|
4808
5821
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4809
5822
|
* @param callback - Optional callback that handles the response.
|
|
4810
5823
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4811
5824
|
*/
|
|
4812
|
-
|
|
4813
|
-
params: Params$Resource$Accounts$
|
|
5825
|
+
propose(
|
|
5826
|
+
params: Params$Resource$Accounts$Services$Propose,
|
|
4814
5827
|
options: StreamMethodOptions
|
|
4815
5828
|
): GaxiosPromise<Readable>;
|
|
4816
|
-
|
|
4817
|
-
params?: Params$Resource$Accounts$
|
|
5829
|
+
propose(
|
|
5830
|
+
params?: Params$Resource$Accounts$Services$Propose,
|
|
4818
5831
|
options?: MethodOptions
|
|
4819
|
-
): GaxiosPromise<Schema$
|
|
4820
|
-
|
|
4821
|
-
params: Params$Resource$Accounts$
|
|
5832
|
+
): GaxiosPromise<Schema$AccountService>;
|
|
5833
|
+
propose(
|
|
5834
|
+
params: Params$Resource$Accounts$Services$Propose,
|
|
4822
5835
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4823
5836
|
callback: BodyResponseCallback<Readable>
|
|
4824
5837
|
): void;
|
|
4825
|
-
|
|
4826
|
-
params: Params$Resource$Accounts$
|
|
4827
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
4828
|
-
callback: BodyResponseCallback<Schema$
|
|
5838
|
+
propose(
|
|
5839
|
+
params: Params$Resource$Accounts$Services$Propose,
|
|
5840
|
+
options: MethodOptions | BodyResponseCallback<Schema$AccountService>,
|
|
5841
|
+
callback: BodyResponseCallback<Schema$AccountService>
|
|
4829
5842
|
): void;
|
|
4830
|
-
|
|
4831
|
-
params: Params$Resource$Accounts$
|
|
4832
|
-
callback: BodyResponseCallback<Schema$
|
|
5843
|
+
propose(
|
|
5844
|
+
params: Params$Resource$Accounts$Services$Propose,
|
|
5845
|
+
callback: BodyResponseCallback<Schema$AccountService>
|
|
4833
5846
|
): void;
|
|
4834
|
-
|
|
4835
|
-
|
|
5847
|
+
propose(callback: BodyResponseCallback<Schema$AccountService>): void;
|
|
5848
|
+
propose(
|
|
4836
5849
|
paramsOrCallback?:
|
|
4837
|
-
| Params$Resource$Accounts$
|
|
4838
|
-
| BodyResponseCallback<Schema$
|
|
5850
|
+
| Params$Resource$Accounts$Services$Propose
|
|
5851
|
+
| BodyResponseCallback<Schema$AccountService>
|
|
4839
5852
|
| BodyResponseCallback<Readable>,
|
|
4840
5853
|
optionsOrCallback?:
|
|
4841
5854
|
| MethodOptions
|
|
4842
5855
|
| StreamMethodOptions
|
|
4843
|
-
| BodyResponseCallback<Schema$
|
|
5856
|
+
| BodyResponseCallback<Schema$AccountService>
|
|
4844
5857
|
| BodyResponseCallback<Readable>,
|
|
4845
5858
|
callback?:
|
|
4846
|
-
| BodyResponseCallback<Schema$
|
|
5859
|
+
| BodyResponseCallback<Schema$AccountService>
|
|
4847
5860
|
| BodyResponseCallback<Readable>
|
|
4848
|
-
):
|
|
4849
|
-
| void
|
|
4850
|
-
| GaxiosPromise<Schema$ListRegionsResponse>
|
|
4851
|
-
| GaxiosPromise<Readable> {
|
|
5861
|
+
): void | GaxiosPromise<Schema$AccountService> | GaxiosPromise<Readable> {
|
|
4852
5862
|
let params = (paramsOrCallback ||
|
|
4853
|
-
{}) as Params$Resource$Accounts$
|
|
5863
|
+
{}) as Params$Resource$Accounts$Services$Propose;
|
|
4854
5864
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4855
5865
|
|
|
4856
5866
|
if (typeof paramsOrCallback === 'function') {
|
|
4857
5867
|
callback = paramsOrCallback;
|
|
4858
|
-
params = {} as Params$Resource$Accounts$
|
|
5868
|
+
params = {} as Params$Resource$Accounts$Services$Propose;
|
|
4859
5869
|
options = {};
|
|
4860
5870
|
}
|
|
4861
5871
|
|
|
@@ -4868,11 +5878,10 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
4868
5878
|
const parameters = {
|
|
4869
5879
|
options: Object.assign(
|
|
4870
5880
|
{
|
|
4871
|
-
url: (
|
|
4872
|
-
/
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
method: 'GET',
|
|
5881
|
+
url: (
|
|
5882
|
+
rootUrl + '/accounts/v1beta/{+parent}/services:propose'
|
|
5883
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
5884
|
+
method: 'POST',
|
|
4876
5885
|
apiVersion: '',
|
|
4877
5886
|
},
|
|
4878
5887
|
options
|
|
@@ -4883,67 +5892,67 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
4883
5892
|
context: this.context,
|
|
4884
5893
|
};
|
|
4885
5894
|
if (callback) {
|
|
4886
|
-
createAPIRequest<Schema$
|
|
5895
|
+
createAPIRequest<Schema$AccountService>(
|
|
4887
5896
|
parameters,
|
|
4888
5897
|
callback as BodyResponseCallback<unknown>
|
|
4889
5898
|
);
|
|
4890
5899
|
} else {
|
|
4891
|
-
return createAPIRequest<Schema$
|
|
5900
|
+
return createAPIRequest<Schema$AccountService>(parameters);
|
|
4892
5901
|
}
|
|
4893
5902
|
}
|
|
4894
5903
|
|
|
4895
5904
|
/**
|
|
4896
|
-
*
|
|
5905
|
+
* Reject an account service (both proposed and approve services can be rejected).
|
|
4897
5906
|
*
|
|
4898
5907
|
* @param params - Parameters for request
|
|
4899
5908
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4900
5909
|
* @param callback - Optional callback that handles the response.
|
|
4901
5910
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4902
5911
|
*/
|
|
4903
|
-
|
|
4904
|
-
params: Params$Resource$Accounts$
|
|
5912
|
+
reject(
|
|
5913
|
+
params: Params$Resource$Accounts$Services$Reject,
|
|
4905
5914
|
options: StreamMethodOptions
|
|
4906
5915
|
): GaxiosPromise<Readable>;
|
|
4907
|
-
|
|
4908
|
-
params?: Params$Resource$Accounts$
|
|
5916
|
+
reject(
|
|
5917
|
+
params?: Params$Resource$Accounts$Services$Reject,
|
|
4909
5918
|
options?: MethodOptions
|
|
4910
|
-
): GaxiosPromise<Schema$
|
|
4911
|
-
|
|
4912
|
-
params: Params$Resource$Accounts$
|
|
5919
|
+
): GaxiosPromise<Schema$Empty>;
|
|
5920
|
+
reject(
|
|
5921
|
+
params: Params$Resource$Accounts$Services$Reject,
|
|
4913
5922
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4914
5923
|
callback: BodyResponseCallback<Readable>
|
|
4915
5924
|
): void;
|
|
4916
|
-
|
|
4917
|
-
params: Params$Resource$Accounts$
|
|
4918
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
4919
|
-
callback: BodyResponseCallback<Schema$
|
|
5925
|
+
reject(
|
|
5926
|
+
params: Params$Resource$Accounts$Services$Reject,
|
|
5927
|
+
options: MethodOptions | BodyResponseCallback<Schema$Empty>,
|
|
5928
|
+
callback: BodyResponseCallback<Schema$Empty>
|
|
4920
5929
|
): void;
|
|
4921
|
-
|
|
4922
|
-
params: Params$Resource$Accounts$
|
|
4923
|
-
callback: BodyResponseCallback<Schema$
|
|
5930
|
+
reject(
|
|
5931
|
+
params: Params$Resource$Accounts$Services$Reject,
|
|
5932
|
+
callback: BodyResponseCallback<Schema$Empty>
|
|
4924
5933
|
): void;
|
|
4925
|
-
|
|
4926
|
-
|
|
5934
|
+
reject(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
5935
|
+
reject(
|
|
4927
5936
|
paramsOrCallback?:
|
|
4928
|
-
| Params$Resource$Accounts$
|
|
4929
|
-
| BodyResponseCallback<Schema$
|
|
5937
|
+
| Params$Resource$Accounts$Services$Reject
|
|
5938
|
+
| BodyResponseCallback<Schema$Empty>
|
|
4930
5939
|
| BodyResponseCallback<Readable>,
|
|
4931
5940
|
optionsOrCallback?:
|
|
4932
5941
|
| MethodOptions
|
|
4933
5942
|
| StreamMethodOptions
|
|
4934
|
-
| BodyResponseCallback<Schema$
|
|
5943
|
+
| BodyResponseCallback<Schema$Empty>
|
|
4935
5944
|
| BodyResponseCallback<Readable>,
|
|
4936
5945
|
callback?:
|
|
4937
|
-
| BodyResponseCallback<Schema$
|
|
5946
|
+
| BodyResponseCallback<Schema$Empty>
|
|
4938
5947
|
| BodyResponseCallback<Readable>
|
|
4939
|
-
): void | GaxiosPromise<Schema$
|
|
5948
|
+
): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
|
|
4940
5949
|
let params = (paramsOrCallback ||
|
|
4941
|
-
{}) as Params$Resource$Accounts$
|
|
5950
|
+
{}) as Params$Resource$Accounts$Services$Reject;
|
|
4942
5951
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4943
5952
|
|
|
4944
5953
|
if (typeof paramsOrCallback === 'function') {
|
|
4945
5954
|
callback = paramsOrCallback;
|
|
4946
|
-
params = {} as Params$Resource$Accounts$
|
|
5955
|
+
params = {} as Params$Resource$Accounts$Services$Reject;
|
|
4947
5956
|
options = {};
|
|
4948
5957
|
}
|
|
4949
5958
|
|
|
@@ -4956,11 +5965,11 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
4956
5965
|
const parameters = {
|
|
4957
5966
|
options: Object.assign(
|
|
4958
5967
|
{
|
|
4959
|
-
url: (rootUrl + '/accounts/v1beta/{+name}').replace(
|
|
5968
|
+
url: (rootUrl + '/accounts/v1beta/{+name}:reject').replace(
|
|
4960
5969
|
/([^:]\/)\/+/g,
|
|
4961
5970
|
'$1'
|
|
4962
5971
|
),
|
|
4963
|
-
method: '
|
|
5972
|
+
method: 'POST',
|
|
4964
5973
|
apiVersion: '',
|
|
4965
5974
|
},
|
|
4966
5975
|
options
|
|
@@ -4971,76 +5980,73 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
4971
5980
|
context: this.context,
|
|
4972
5981
|
};
|
|
4973
5982
|
if (callback) {
|
|
4974
|
-
createAPIRequest<Schema$
|
|
5983
|
+
createAPIRequest<Schema$Empty>(
|
|
4975
5984
|
parameters,
|
|
4976
5985
|
callback as BodyResponseCallback<unknown>
|
|
4977
5986
|
);
|
|
4978
5987
|
} else {
|
|
4979
|
-
return createAPIRequest<Schema$
|
|
5988
|
+
return createAPIRequest<Schema$Empty>(parameters);
|
|
4980
5989
|
}
|
|
4981
5990
|
}
|
|
4982
5991
|
}
|
|
4983
5992
|
|
|
4984
|
-
export interface Params$Resource$Accounts$
|
|
5993
|
+
export interface Params$Resource$Accounts$Services$Approve
|
|
4985
5994
|
extends StandardParameters {
|
|
4986
5995
|
/**
|
|
4987
|
-
* Required. The
|
|
4988
|
-
*/
|
|
4989
|
-
parent?: string;
|
|
4990
|
-
/**
|
|
4991
|
-
* Required. The identifier for the region, unique over all regions of the same account.
|
|
5996
|
+
* Required. The resource name of the account service to approve.
|
|
4992
5997
|
*/
|
|
4993
|
-
|
|
5998
|
+
name?: string;
|
|
4994
5999
|
|
|
4995
6000
|
/**
|
|
4996
6001
|
* Request body metadata
|
|
4997
6002
|
*/
|
|
4998
|
-
requestBody?: Schema$
|
|
4999
|
-
}
|
|
5000
|
-
export interface Params$Resource$Accounts$Regions$Delete
|
|
5001
|
-
extends StandardParameters {
|
|
5002
|
-
/**
|
|
5003
|
-
* Required. The name of the region to delete. Format: `accounts/{account\}/regions/{region\}`
|
|
5004
|
-
*/
|
|
5005
|
-
name?: string;
|
|
6003
|
+
requestBody?: Schema$ApproveAccountServiceRequest;
|
|
5006
6004
|
}
|
|
5007
|
-
export interface Params$Resource$Accounts$
|
|
6005
|
+
export interface Params$Resource$Accounts$Services$Get
|
|
5008
6006
|
extends StandardParameters {
|
|
5009
6007
|
/**
|
|
5010
|
-
* Required. The name of the
|
|
6008
|
+
* Required. The resource name of the account service to get.
|
|
5011
6009
|
*/
|
|
5012
6010
|
name?: string;
|
|
5013
6011
|
}
|
|
5014
|
-
export interface Params$Resource$Accounts$
|
|
6012
|
+
export interface Params$Resource$Accounts$Services$List
|
|
5015
6013
|
extends StandardParameters {
|
|
5016
6014
|
/**
|
|
5017
|
-
* Optional. The maximum number of
|
|
6015
|
+
* Optional. The maximum number of elements to return in the response. Use for paging. If no `page_size` is specified, `100` is used as the default value. The maximum allowed value is `1000`.
|
|
5018
6016
|
*/
|
|
5019
6017
|
pageSize?: number;
|
|
5020
6018
|
/**
|
|
5021
|
-
* Optional.
|
|
6019
|
+
* Optional. The token returned by the previous `list` request.
|
|
5022
6020
|
*/
|
|
5023
6021
|
pageToken?: string;
|
|
5024
6022
|
/**
|
|
5025
|
-
* Required. The account
|
|
6023
|
+
* Required. The parent account of the account service to filter by.
|
|
5026
6024
|
*/
|
|
5027
6025
|
parent?: string;
|
|
5028
6026
|
}
|
|
5029
|
-
export interface Params$Resource$Accounts$
|
|
6027
|
+
export interface Params$Resource$Accounts$Services$Propose
|
|
5030
6028
|
extends StandardParameters {
|
|
5031
6029
|
/**
|
|
5032
|
-
*
|
|
6030
|
+
* Required. The resource name of the parent account for the service.
|
|
5033
6031
|
*/
|
|
5034
|
-
|
|
6032
|
+
parent?: string;
|
|
6033
|
+
|
|
5035
6034
|
/**
|
|
5036
|
-
*
|
|
6035
|
+
* Request body metadata
|
|
5037
6036
|
*/
|
|
5038
|
-
|
|
6037
|
+
requestBody?: Schema$ProposeAccountServiceRequest;
|
|
6038
|
+
}
|
|
6039
|
+
export interface Params$Resource$Accounts$Services$Reject
|
|
6040
|
+
extends StandardParameters {
|
|
6041
|
+
/**
|
|
6042
|
+
* Required. The resource name of the account service to reject.
|
|
6043
|
+
*/
|
|
6044
|
+
name?: string;
|
|
5039
6045
|
|
|
5040
6046
|
/**
|
|
5041
6047
|
* Request body metadata
|
|
5042
6048
|
*/
|
|
5043
|
-
requestBody?: Schema$
|
|
6049
|
+
requestBody?: Schema$RejectAccountServiceRequest;
|
|
5044
6050
|
}
|
|
5045
6051
|
|
|
5046
6052
|
export class Resource$Accounts$Shippingsettings {
|
|
@@ -5231,14 +6237,14 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
5231
6237
|
export interface Params$Resource$Accounts$Shippingsettings$Getshippingsettings
|
|
5232
6238
|
extends StandardParameters {
|
|
5233
6239
|
/**
|
|
5234
|
-
* Required. The name of the shipping setting to retrieve. Format: `accounts/{account\}/
|
|
6240
|
+
* Required. The name of the shipping setting to retrieve. Format: `accounts/{account\}/shippingsettings`
|
|
5235
6241
|
*/
|
|
5236
6242
|
name?: string;
|
|
5237
6243
|
}
|
|
5238
6244
|
export interface Params$Resource$Accounts$Shippingsettings$Insert
|
|
5239
6245
|
extends StandardParameters {
|
|
5240
6246
|
/**
|
|
5241
|
-
* Required. The account
|
|
6247
|
+
* Required. The account for which this shipping setting will be inserted. If you are using an advanced account, you must specify the unique identifier of the sub-account for which you want to insert the shipping setting. Format: `accounts/{ACCOUNT_ID\}`
|
|
5242
6248
|
*/
|
|
5243
6249
|
parent?: string;
|
|
5244
6250
|
|
|
@@ -5454,7 +6460,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
5454
6460
|
export interface Params$Resource$Accounts$Termsofserviceagreementstates$Get
|
|
5455
6461
|
extends StandardParameters {
|
|
5456
6462
|
/**
|
|
5457
|
-
* Required. The resource name of the terms of service version. Format: `accounts/{account\}/
|
|
6463
|
+
* Required. The resource name of the terms of service version. Format: `accounts/{account\}/termsOfServiceAgreementStates/{identifier\}` The identifier format is: `{TermsOfServiceKind\}-{country\}`
|
|
5458
6464
|
*/
|
|
5459
6465
|
name?: string;
|
|
5460
6466
|
}
|
|
@@ -5999,7 +7005,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
5999
7005
|
accept(
|
|
6000
7006
|
params?: Params$Resource$Termsofservice$Accept,
|
|
6001
7007
|
options?: MethodOptions
|
|
6002
|
-
): GaxiosPromise<Schema$
|
|
7008
|
+
): GaxiosPromise<Schema$AcceptTermsOfServiceResponse>;
|
|
6003
7009
|
accept(
|
|
6004
7010
|
params: Params$Resource$Termsofservice$Accept,
|
|
6005
7011
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -6007,28 +7013,35 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
6007
7013
|
): void;
|
|
6008
7014
|
accept(
|
|
6009
7015
|
params: Params$Resource$Termsofservice$Accept,
|
|
6010
|
-
options:
|
|
6011
|
-
|
|
7016
|
+
options:
|
|
7017
|
+
| MethodOptions
|
|
7018
|
+
| BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>,
|
|
7019
|
+
callback: BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>
|
|
6012
7020
|
): void;
|
|
6013
7021
|
accept(
|
|
6014
7022
|
params: Params$Resource$Termsofservice$Accept,
|
|
6015
|
-
callback: BodyResponseCallback<Schema$
|
|
7023
|
+
callback: BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>
|
|
7024
|
+
): void;
|
|
7025
|
+
accept(
|
|
7026
|
+
callback: BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>
|
|
6016
7027
|
): void;
|
|
6017
|
-
accept(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
6018
7028
|
accept(
|
|
6019
7029
|
paramsOrCallback?:
|
|
6020
7030
|
| Params$Resource$Termsofservice$Accept
|
|
6021
|
-
| BodyResponseCallback<Schema$
|
|
7031
|
+
| BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>
|
|
6022
7032
|
| BodyResponseCallback<Readable>,
|
|
6023
7033
|
optionsOrCallback?:
|
|
6024
7034
|
| MethodOptions
|
|
6025
7035
|
| StreamMethodOptions
|
|
6026
|
-
| BodyResponseCallback<Schema$
|
|
7036
|
+
| BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>
|
|
6027
7037
|
| BodyResponseCallback<Readable>,
|
|
6028
7038
|
callback?:
|
|
6029
|
-
| BodyResponseCallback<Schema$
|
|
7039
|
+
| BodyResponseCallback<Schema$AcceptTermsOfServiceResponse>
|
|
6030
7040
|
| BodyResponseCallback<Readable>
|
|
6031
|
-
):
|
|
7041
|
+
):
|
|
7042
|
+
| void
|
|
7043
|
+
| GaxiosPromise<Schema$AcceptTermsOfServiceResponse>
|
|
7044
|
+
| GaxiosPromise<Readable> {
|
|
6032
7045
|
let params = (paramsOrCallback ||
|
|
6033
7046
|
{}) as Params$Resource$Termsofservice$Accept;
|
|
6034
7047
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -6052,7 +7065,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
6052
7065
|
/([^:]\/)\/+/g,
|
|
6053
7066
|
'$1'
|
|
6054
7067
|
),
|
|
6055
|
-
method: '
|
|
7068
|
+
method: 'POST',
|
|
6056
7069
|
apiVersion: '',
|
|
6057
7070
|
},
|
|
6058
7071
|
options
|
|
@@ -6063,12 +7076,14 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
6063
7076
|
context: this.context,
|
|
6064
7077
|
};
|
|
6065
7078
|
if (callback) {
|
|
6066
|
-
createAPIRequest<Schema$
|
|
7079
|
+
createAPIRequest<Schema$AcceptTermsOfServiceResponse>(
|
|
6067
7080
|
parameters,
|
|
6068
7081
|
callback as BodyResponseCallback<unknown>
|
|
6069
7082
|
);
|
|
6070
7083
|
} else {
|
|
6071
|
-
return createAPIRequest<Schema$
|
|
7084
|
+
return createAPIRequest<Schema$AcceptTermsOfServiceResponse>(
|
|
7085
|
+
parameters
|
|
7086
|
+
);
|
|
6072
7087
|
}
|
|
6073
7088
|
}
|
|
6074
7089
|
|
|
@@ -6251,7 +7266,7 @@ export namespace merchantapi_accounts_v1beta {
|
|
|
6251
7266
|
export interface Params$Resource$Termsofservice$Accept
|
|
6252
7267
|
extends StandardParameters {
|
|
6253
7268
|
/**
|
|
6254
|
-
* Required. The account for which to accept the ToS.
|
|
7269
|
+
* Required. The account for which to accept the ToS. Format: `accounts/{account\}`
|
|
6255
7270
|
*/
|
|
6256
7271
|
account?: string;
|
|
6257
7272
|
/**
|