@sp-api-sdk/finances-transfers-api-2024-06-01 4.0.17 → 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/README.md +4 -4
- package/dist/index.cjs +411 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +458 -0
- package/dist/index.d.ts +458 -0
- package/dist/index.js +366 -0
- package/dist/index.js.map +1 -0
- package/package.json +23 -12
- package/dist/cjs/api-model/api/finances-transfers-api.js +0 -188
- package/dist/cjs/api-model/api.js +0 -30
- package/dist/cjs/api-model/base.js +0 -52
- package/dist/cjs/api-model/common.js +0 -123
- package/dist/cjs/api-model/configuration.js +0 -98
- package/dist/cjs/api-model/index.js +0 -32
- package/dist/cjs/api-model/models/assignment-type.js +0 -22
- package/dist/cjs/api-model/models/error-list.js +0 -15
- package/dist/cjs/api-model/models/expiry-date.js +0 -15
- package/dist/cjs/api-model/models/get-payment-methods-response.js +0 -15
- package/dist/cjs/api-model/models/index.js +0 -25
- package/dist/cjs/api-model/models/initiate-payout-request.js +0 -15
- package/dist/cjs/api-model/models/initiate-payout-response.js +0 -15
- package/dist/cjs/api-model/models/model-error.js +0 -15
- package/dist/cjs/api-model/models/payment-method-details.js +0 -15
- package/dist/cjs/api-model/models/payment-method-type.js +0 -24
- package/dist/cjs/client.js +0 -28
- package/dist/cjs/index.js +0 -19
- package/dist/es/api-model/api/finances-transfers-api.js +0 -178
- package/dist/es/api-model/api.js +0 -14
- package/dist/es/api-model/base.js +0 -44
- package/dist/es/api-model/common.js +0 -110
- package/dist/es/api-model/configuration.js +0 -94
- package/dist/es/api-model/index.js +0 -16
- package/dist/es/api-model/models/assignment-type.js +0 -19
- package/dist/es/api-model/models/error-list.js +0 -14
- package/dist/es/api-model/models/expiry-date.js +0 -14
- package/dist/es/api-model/models/get-payment-methods-response.js +0 -14
- package/dist/es/api-model/models/index.js +0 -9
- package/dist/es/api-model/models/initiate-payout-request.js +0 -14
- package/dist/es/api-model/models/initiate-payout-response.js +0 -14
- package/dist/es/api-model/models/model-error.js +0 -14
- package/dist/es/api-model/models/payment-method-details.js +0 -14
- package/dist/es/api-model/models/payment-method-type.js +0 -21
- package/dist/es/client.js +0 -24
- package/dist/es/index.js +0 -3
- package/dist/types/api-model/api/finances-transfers-api.d.ts +0 -124
- package/dist/types/api-model/api.d.ts +0 -12
- package/dist/types/api-model/base.d.ts +0 -42
- package/dist/types/api-model/common.d.ts +0 -34
- package/dist/types/api-model/configuration.d.ts +0 -98
- package/dist/types/api-model/index.d.ts +0 -14
- package/dist/types/api-model/models/assignment-type.d.ts +0 -18
- package/dist/types/api-model/models/error-list.d.ts +0 -20
- package/dist/types/api-model/models/expiry-date.d.ts +0 -24
- package/dist/types/api-model/models/get-payment-methods-response.d.ts +0 -21
- package/dist/types/api-model/models/index.d.ts +0 -9
- package/dist/types/api-model/models/initiate-payout-request.d.ts +0 -24
- package/dist/types/api-model/models/initiate-payout-response.d.ts +0 -20
- package/dist/types/api-model/models/model-error.d.ts +0 -28
- package/dist/types/api-model/models/payment-method-details.d.ts +0 -38
- package/dist/types/api-model/models/payment-method-type.d.ts +0 -20
- package/dist/types/client.d.ts +0 -6
- package/dist/types/index.d.ts +0 -3
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
import { ClientConfiguration, RateLimit } from '@sp-api-sdk/common';
|
|
2
|
+
import * as axios from 'axios';
|
|
3
|
+
import { AxiosInstance, RawAxiosRequestConfig, AxiosPromise } from 'axios';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The Selling Partner API for Transfers.
|
|
7
|
+
* The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.
|
|
8
|
+
*
|
|
9
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
+
* https://openapi-generator.tech
|
|
14
|
+
* Do not edit the class manually.
|
|
15
|
+
*/
|
|
16
|
+
interface AWSv4Configuration {
|
|
17
|
+
options?: {
|
|
18
|
+
region?: string;
|
|
19
|
+
service?: string;
|
|
20
|
+
};
|
|
21
|
+
credentials?: {
|
|
22
|
+
accessKeyId?: string;
|
|
23
|
+
secretAccessKey?: string;
|
|
24
|
+
sessionToken?: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
interface ConfigurationParameters {
|
|
28
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
|
+
username?: string;
|
|
30
|
+
password?: string;
|
|
31
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
32
|
+
awsv4?: AWSv4Configuration;
|
|
33
|
+
basePath?: string;
|
|
34
|
+
serverIndex?: number;
|
|
35
|
+
baseOptions?: any;
|
|
36
|
+
formDataCtor?: new () => any;
|
|
37
|
+
}
|
|
38
|
+
declare class Configuration {
|
|
39
|
+
/**
|
|
40
|
+
* parameter for apiKey security
|
|
41
|
+
* @param name security name
|
|
42
|
+
*/
|
|
43
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
44
|
+
/**
|
|
45
|
+
* parameter for basic security
|
|
46
|
+
*/
|
|
47
|
+
username?: string;
|
|
48
|
+
/**
|
|
49
|
+
* parameter for basic security
|
|
50
|
+
*/
|
|
51
|
+
password?: string;
|
|
52
|
+
/**
|
|
53
|
+
* parameter for oauth2 security
|
|
54
|
+
* @param name security name
|
|
55
|
+
* @param scopes oauth2 scope
|
|
56
|
+
*/
|
|
57
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
58
|
+
/**
|
|
59
|
+
* parameter for aws4 signature security
|
|
60
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
61
|
+
* @param {string} options.region - aws region
|
|
62
|
+
* @param {string} options.service - name of the service.
|
|
63
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
64
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
65
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
66
|
+
* @memberof Configuration
|
|
67
|
+
*/
|
|
68
|
+
awsv4?: AWSv4Configuration;
|
|
69
|
+
/**
|
|
70
|
+
* override base path
|
|
71
|
+
*/
|
|
72
|
+
basePath?: string;
|
|
73
|
+
/**
|
|
74
|
+
* override server index
|
|
75
|
+
*/
|
|
76
|
+
serverIndex?: number;
|
|
77
|
+
/**
|
|
78
|
+
* base options for axios calls
|
|
79
|
+
*/
|
|
80
|
+
baseOptions?: any;
|
|
81
|
+
/**
|
|
82
|
+
* The FormData constructor that will be used to create multipart form data
|
|
83
|
+
* requests. You can inject this here so that execution environments that
|
|
84
|
+
* do not support the FormData class can still run the generated client.
|
|
85
|
+
*
|
|
86
|
+
* @type {new () => FormData}
|
|
87
|
+
*/
|
|
88
|
+
formDataCtor?: new () => any;
|
|
89
|
+
constructor(param?: ConfigurationParameters);
|
|
90
|
+
/**
|
|
91
|
+
* Check if the given MIME is a JSON MIME.
|
|
92
|
+
* JSON MIME examples:
|
|
93
|
+
* application/json
|
|
94
|
+
* application/json; charset=UTF8
|
|
95
|
+
* APPLICATION/JSON
|
|
96
|
+
* application/vnd.company+json
|
|
97
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
98
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
99
|
+
*/
|
|
100
|
+
isJsonMime(mime: string): boolean;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* The Selling Partner API for Transfers.
|
|
105
|
+
* The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.
|
|
106
|
+
*
|
|
107
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
108
|
+
*
|
|
109
|
+
*
|
|
110
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
111
|
+
* https://openapi-generator.tech
|
|
112
|
+
* Do not edit the class manually.
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
interface RequestArgs {
|
|
116
|
+
url: string;
|
|
117
|
+
options: RawAxiosRequestConfig;
|
|
118
|
+
}
|
|
119
|
+
declare class BaseAPI {
|
|
120
|
+
protected basePath: string;
|
|
121
|
+
protected axios: AxiosInstance;
|
|
122
|
+
protected configuration: Configuration | undefined;
|
|
123
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* The Selling Partner API for Transfers.
|
|
128
|
+
* The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.
|
|
129
|
+
*
|
|
130
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
131
|
+
*
|
|
132
|
+
*
|
|
133
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
134
|
+
* https://openapi-generator.tech
|
|
135
|
+
* Do not edit the class manually.
|
|
136
|
+
*/
|
|
137
|
+
/**
|
|
138
|
+
* The default payment method type.
|
|
139
|
+
*/
|
|
140
|
+
declare const AssignmentType: {
|
|
141
|
+
readonly DefaultDepositMethod: "DEFAULT_DEPOSIT_METHOD";
|
|
142
|
+
};
|
|
143
|
+
type AssignmentType = typeof AssignmentType[keyof typeof AssignmentType];
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The Selling Partner API for Transfers.
|
|
147
|
+
* The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.
|
|
148
|
+
*
|
|
149
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
150
|
+
*
|
|
151
|
+
*
|
|
152
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
153
|
+
* https://openapi-generator.tech
|
|
154
|
+
* Do not edit the class manually.
|
|
155
|
+
*/
|
|
156
|
+
/**
|
|
157
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
158
|
+
*/
|
|
159
|
+
interface ErrorList {
|
|
160
|
+
/**
|
|
161
|
+
* array of errors
|
|
162
|
+
*/
|
|
163
|
+
'errors': Array<Error>;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* The Selling Partner API for Transfers.
|
|
168
|
+
* The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.
|
|
169
|
+
*
|
|
170
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
171
|
+
*
|
|
172
|
+
*
|
|
173
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
174
|
+
* https://openapi-generator.tech
|
|
175
|
+
* Do not edit the class manually.
|
|
176
|
+
*/
|
|
177
|
+
/**
|
|
178
|
+
* The expiration date of the card used for payment. If the payment method is not `card`, the expiration date is `null`.
|
|
179
|
+
*/
|
|
180
|
+
interface ExpiryDate {
|
|
181
|
+
/**
|
|
182
|
+
* The month the card expires expressed as a number from `1` to `12`.
|
|
183
|
+
*/
|
|
184
|
+
'month'?: string;
|
|
185
|
+
/**
|
|
186
|
+
* Year
|
|
187
|
+
*/
|
|
188
|
+
'year'?: string;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The Selling Partner API for Transfers.
|
|
193
|
+
* The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.
|
|
194
|
+
*
|
|
195
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
196
|
+
*
|
|
197
|
+
*
|
|
198
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
199
|
+
* https://openapi-generator.tech
|
|
200
|
+
* Do not edit the class manually.
|
|
201
|
+
*/
|
|
202
|
+
/**
|
|
203
|
+
* The type of payment method.
|
|
204
|
+
*/
|
|
205
|
+
declare const PaymentMethodType: {
|
|
206
|
+
readonly BankAccount: "BANK_ACCOUNT";
|
|
207
|
+
readonly Card: "CARD";
|
|
208
|
+
readonly SellerWallet: "SELLER_WALLET";
|
|
209
|
+
};
|
|
210
|
+
type PaymentMethodType = typeof PaymentMethodType[keyof typeof PaymentMethodType];
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The Selling Partner API for Transfers.
|
|
214
|
+
* The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.
|
|
215
|
+
*
|
|
216
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
217
|
+
*
|
|
218
|
+
*
|
|
219
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
220
|
+
* https://openapi-generator.tech
|
|
221
|
+
* Do not edit the class manually.
|
|
222
|
+
*/
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* The details of a payment method.
|
|
226
|
+
*/
|
|
227
|
+
interface PaymentMethodDetails {
|
|
228
|
+
/**
|
|
229
|
+
* The name of the account holder who is registered for the payment method.
|
|
230
|
+
*/
|
|
231
|
+
'accountHolderName'?: string;
|
|
232
|
+
/**
|
|
233
|
+
* The payment method identifier.
|
|
234
|
+
*/
|
|
235
|
+
'paymentMethodId'?: string;
|
|
236
|
+
/**
|
|
237
|
+
* The last three or four digits of the payment method.
|
|
238
|
+
*/
|
|
239
|
+
'tail'?: string;
|
|
240
|
+
'expiryDate'?: ExpiryDate;
|
|
241
|
+
/**
|
|
242
|
+
* The two-letter country code in ISO 3166-1 alpha-2 format. For payment methods in the `card` category, the code is for the country where the card was issued. For payment methods in the `bank account` category, the code is for the country where the account is located.
|
|
243
|
+
*/
|
|
244
|
+
'countryCode'?: string;
|
|
245
|
+
'paymentMethodType'?: PaymentMethodType;
|
|
246
|
+
'assignmentType'?: AssignmentType;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* The Selling Partner API for Transfers.
|
|
251
|
+
* The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.
|
|
252
|
+
*
|
|
253
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
254
|
+
*
|
|
255
|
+
*
|
|
256
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
257
|
+
* https://openapi-generator.tech
|
|
258
|
+
* Do not edit the class manually.
|
|
259
|
+
*/
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* The response schema for the `getPaymentMethods` operation.
|
|
263
|
+
*/
|
|
264
|
+
interface GetPaymentMethodsResponse {
|
|
265
|
+
/**
|
|
266
|
+
* The list of payment methods with payment method details.
|
|
267
|
+
*/
|
|
268
|
+
'paymentMethods'?: Array<PaymentMethodDetails>;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* The Selling Partner API for Transfers.
|
|
273
|
+
* The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.
|
|
274
|
+
*
|
|
275
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
276
|
+
*
|
|
277
|
+
*
|
|
278
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
279
|
+
* https://openapi-generator.tech
|
|
280
|
+
* Do not edit the class manually.
|
|
281
|
+
*/
|
|
282
|
+
/**
|
|
283
|
+
* The request schema for the `initiatePayout` operation.
|
|
284
|
+
*/
|
|
285
|
+
interface InitiatePayoutRequest {
|
|
286
|
+
/**
|
|
287
|
+
* The identifier of the Amazon marketplace. For the list of all marketplace IDs, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
288
|
+
*/
|
|
289
|
+
'marketplaceId': string;
|
|
290
|
+
/**
|
|
291
|
+
* The account type in the selected marketplace for which a payout must be initiated. For supported EU marketplaces, the only account type is `Standard Orders`.
|
|
292
|
+
*/
|
|
293
|
+
'accountType': string;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* The Selling Partner API for Transfers.
|
|
298
|
+
* The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.
|
|
299
|
+
*
|
|
300
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
301
|
+
*
|
|
302
|
+
*
|
|
303
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
304
|
+
* https://openapi-generator.tech
|
|
305
|
+
* Do not edit the class manually.
|
|
306
|
+
*/
|
|
307
|
+
/**
|
|
308
|
+
* The response schema for the `initiatePayout` operation.
|
|
309
|
+
*/
|
|
310
|
+
interface InitiatePayoutResponse {
|
|
311
|
+
/**
|
|
312
|
+
* The financial event group ID for a successfully initiated payout. You can use this ID to track payout information.
|
|
313
|
+
*/
|
|
314
|
+
'payoutReferenceId': string;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* The Selling Partner API for Transfers.
|
|
319
|
+
* The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.
|
|
320
|
+
*
|
|
321
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
322
|
+
*
|
|
323
|
+
*
|
|
324
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
325
|
+
* https://openapi-generator.tech
|
|
326
|
+
* Do not edit the class manually.
|
|
327
|
+
*/
|
|
328
|
+
/**
|
|
329
|
+
* Error response returned when the request is unsuccessful.
|
|
330
|
+
*/
|
|
331
|
+
interface ModelError {
|
|
332
|
+
/**
|
|
333
|
+
* An error code that identifies the type of error that occurred.
|
|
334
|
+
*/
|
|
335
|
+
'code': string;
|
|
336
|
+
/**
|
|
337
|
+
* A message that describes the error condition.
|
|
338
|
+
*/
|
|
339
|
+
'message': string;
|
|
340
|
+
/**
|
|
341
|
+
* Additional details that can help the caller understand or fix the issue.
|
|
342
|
+
*/
|
|
343
|
+
'details'?: string;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* FinancesTransfersApi - axios parameter creator
|
|
348
|
+
*/
|
|
349
|
+
declare const FinancesTransfersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
350
|
+
/**
|
|
351
|
+
* Returns the list of payment methods for the seller, which can be filtered by method type. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .5 | 30 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
352
|
+
* @param {string} marketplaceId The identifier of the marketplace from which you want to retrieve payment methods. For the list of possible marketplace identifiers, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
353
|
+
* @param {Set<GetPaymentMethodsPaymentMethodTypesEnum>} [paymentMethodTypes] A comma-separated list of the payment method types you want to include in the response.
|
|
354
|
+
* @param {*} [options] Override http request option.
|
|
355
|
+
* @throws {RequiredError}
|
|
356
|
+
*/
|
|
357
|
+
getPaymentMethods: (marketplaceId: string, paymentMethodTypes?: Set<GetPaymentMethodsPaymentMethodTypesEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
358
|
+
/**
|
|
359
|
+
* Initiates an on-demand payout to the seller\'s default deposit method in Seller Central for the given `marketplaceId` and `accountType`, if eligible. You can only initiate one on-demand payout for each marketplace and account type within a 24-hour period. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.017 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
360
|
+
* @param {InitiatePayoutRequest} body The request body for the `initiatePayout` operation.
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
initiatePayout: (body: InitiatePayoutRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* FinancesTransfersApi - functional programming interface
|
|
368
|
+
*/
|
|
369
|
+
declare const FinancesTransfersApiFp: (configuration?: Configuration) => {
|
|
370
|
+
/**
|
|
371
|
+
* Returns the list of payment methods for the seller, which can be filtered by method type. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .5 | 30 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
372
|
+
* @param {string} marketplaceId The identifier of the marketplace from which you want to retrieve payment methods. For the list of possible marketplace identifiers, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
373
|
+
* @param {Set<GetPaymentMethodsPaymentMethodTypesEnum>} [paymentMethodTypes] A comma-separated list of the payment method types you want to include in the response.
|
|
374
|
+
* @param {*} [options] Override http request option.
|
|
375
|
+
* @throws {RequiredError}
|
|
376
|
+
*/
|
|
377
|
+
getPaymentMethods(marketplaceId: string, paymentMethodTypes?: Set<GetPaymentMethodsPaymentMethodTypesEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodsResponse>>;
|
|
378
|
+
/**
|
|
379
|
+
* Initiates an on-demand payout to the seller\'s default deposit method in Seller Central for the given `marketplaceId` and `accountType`, if eligible. You can only initiate one on-demand payout for each marketplace and account type within a 24-hour period. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.017 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
380
|
+
* @param {InitiatePayoutRequest} body The request body for the `initiatePayout` operation.
|
|
381
|
+
* @param {*} [options] Override http request option.
|
|
382
|
+
* @throws {RequiredError}
|
|
383
|
+
*/
|
|
384
|
+
initiatePayout(body: InitiatePayoutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePayoutResponse>>;
|
|
385
|
+
};
|
|
386
|
+
/**
|
|
387
|
+
* FinancesTransfersApi - factory interface
|
|
388
|
+
*/
|
|
389
|
+
declare const FinancesTransfersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
390
|
+
/**
|
|
391
|
+
* Returns the list of payment methods for the seller, which can be filtered by method type. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .5 | 30 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
392
|
+
* @param {FinancesTransfersApiGetPaymentMethodsRequest} requestParameters Request parameters.
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
*/
|
|
396
|
+
getPaymentMethods(requestParameters: FinancesTransfersApiGetPaymentMethodsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetPaymentMethodsResponse>;
|
|
397
|
+
/**
|
|
398
|
+
* Initiates an on-demand payout to the seller\'s default deposit method in Seller Central for the given `marketplaceId` and `accountType`, if eligible. You can only initiate one on-demand payout for each marketplace and account type within a 24-hour period. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.017 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
399
|
+
* @param {FinancesTransfersApiInitiatePayoutRequest} requestParameters Request parameters.
|
|
400
|
+
* @param {*} [options] Override http request option.
|
|
401
|
+
* @throws {RequiredError}
|
|
402
|
+
*/
|
|
403
|
+
initiatePayout(requestParameters: FinancesTransfersApiInitiatePayoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<InitiatePayoutResponse>;
|
|
404
|
+
};
|
|
405
|
+
/**
|
|
406
|
+
* Request parameters for getPaymentMethods operation in FinancesTransfersApi.
|
|
407
|
+
*/
|
|
408
|
+
interface FinancesTransfersApiGetPaymentMethodsRequest {
|
|
409
|
+
/**
|
|
410
|
+
* The identifier of the marketplace from which you want to retrieve payment methods. For the list of possible marketplace identifiers, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
411
|
+
*/
|
|
412
|
+
readonly marketplaceId: string;
|
|
413
|
+
/**
|
|
414
|
+
* A comma-separated list of the payment method types you want to include in the response.
|
|
415
|
+
*/
|
|
416
|
+
readonly paymentMethodTypes?: Set<GetPaymentMethodsPaymentMethodTypesEnum>;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Request parameters for initiatePayout operation in FinancesTransfersApi.
|
|
420
|
+
*/
|
|
421
|
+
interface FinancesTransfersApiInitiatePayoutRequest {
|
|
422
|
+
/**
|
|
423
|
+
* The request body for the `initiatePayout` operation.
|
|
424
|
+
*/
|
|
425
|
+
readonly body: InitiatePayoutRequest;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* FinancesTransfersApi - object-oriented interface
|
|
429
|
+
*/
|
|
430
|
+
declare class FinancesTransfersApi extends BaseAPI {
|
|
431
|
+
/**
|
|
432
|
+
* Returns the list of payment methods for the seller, which can be filtered by method type. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .5 | 30 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
433
|
+
* @param {FinancesTransfersApiGetPaymentMethodsRequest} requestParameters Request parameters.
|
|
434
|
+
* @param {*} [options] Override http request option.
|
|
435
|
+
* @throws {RequiredError}
|
|
436
|
+
*/
|
|
437
|
+
getPaymentMethods(requestParameters: FinancesTransfersApiGetPaymentMethodsRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<GetPaymentMethodsResponse, any, {}>>;
|
|
438
|
+
/**
|
|
439
|
+
* Initiates an on-demand payout to the seller\'s default deposit method in Seller Central for the given `marketplaceId` and `accountType`, if eligible. You can only initiate one on-demand payout for each marketplace and account type within a 24-hour period. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.017 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
440
|
+
* @param {FinancesTransfersApiInitiatePayoutRequest} requestParameters Request parameters.
|
|
441
|
+
* @param {*} [options] Override http request option.
|
|
442
|
+
* @throws {RequiredError}
|
|
443
|
+
*/
|
|
444
|
+
initiatePayout(requestParameters: FinancesTransfersApiInitiatePayoutRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<InitiatePayoutResponse, any, {}>>;
|
|
445
|
+
}
|
|
446
|
+
declare const GetPaymentMethodsPaymentMethodTypesEnum: {
|
|
447
|
+
readonly BankAccount: "BANK_ACCOUNT";
|
|
448
|
+
readonly Card: "CARD";
|
|
449
|
+
readonly SellerWallet: "SELLER_WALLET";
|
|
450
|
+
};
|
|
451
|
+
type GetPaymentMethodsPaymentMethodTypesEnum = typeof GetPaymentMethodsPaymentMethodTypesEnum[keyof typeof GetPaymentMethodsPaymentMethodTypesEnum];
|
|
452
|
+
|
|
453
|
+
declare const clientRateLimits: RateLimit[];
|
|
454
|
+
declare class FinancesTransfersApiClient extends FinancesTransfersApi {
|
|
455
|
+
constructor(configuration: ClientConfiguration);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export { AssignmentType, type ErrorList, type ExpiryDate, FinancesTransfersApi, FinancesTransfersApiAxiosParamCreator, FinancesTransfersApiClient, FinancesTransfersApiFactory, FinancesTransfersApiFp, type FinancesTransfersApiGetPaymentMethodsRequest, type FinancesTransfersApiInitiatePayoutRequest, GetPaymentMethodsPaymentMethodTypesEnum, type GetPaymentMethodsResponse, type InitiatePayoutRequest, type InitiatePayoutResponse, type ModelError, type PaymentMethodDetails, PaymentMethodType, clientRateLimits };
|