@binance/fiat 3.0.1 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,9 @@
1
- import { RestApiResponse, ConfigurationRestAPI } from '@binance/common';
2
- export { BadRequestError, ConnectorClientError, FIAT_REST_API_PROD_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common';
1
+ import { BadRequestError, ConfigurationRestAPI, ConnectorClientError, FIAT_REST_API_PROD_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, RestApiResponse, ServerError, TooManyRequestsError, UnauthorizedError } from "@binance/common";
3
2
 
3
+ //#region rolldown:runtime
4
+
5
+ //#endregion
6
+ //#region src/rest-api/types/get-fiat-deposit-withdraw-history-response-data-inner.d.ts
4
7
  /**
5
8
  * Binance Fiat REST API
6
9
  *
@@ -19,113 +22,102 @@ export { BadRequestError, ConnectorClientError, FIAT_REST_API_PROD_URL, Forbidde
19
22
  * @interface GetFiatDepositWithdrawHistoryResponseDataInner
20
23
  */
21
24
  interface GetFiatDepositWithdrawHistoryResponseDataInner {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
26
- */
27
- orderNo?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
32
- */
33
- fiatCurrency?: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
38
- */
39
- indicatedAmount?: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
44
- */
45
- amount?: string;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
50
- */
51
- totalFee?: string;
52
- /**
53
- *
54
- * @type {string}
55
- * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
56
- */
57
- method?: string;
58
- /**
59
- *
60
- * @type {string}
61
- * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
62
- */
63
- status?: string;
64
- /**
65
- *
66
- * @type {number | bigint}
67
- * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
68
- */
69
- createTime?: number | bigint;
70
- /**
71
- *
72
- * @type {number | bigint}
73
- * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
74
- */
75
- updateTime?: number | bigint;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
29
+ */
30
+ orderNo?: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
35
+ */
36
+ fiatCurrency?: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
41
+ */
42
+ indicatedAmount?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
47
+ */
48
+ amount?: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
53
+ */
54
+ totalFee?: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
59
+ */
60
+ method?: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
65
+ */
66
+ status?: string;
67
+ /**
68
+ *
69
+ * @type {number | bigint}
70
+ * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
71
+ */
72
+ createTime?: number | bigint;
73
+ /**
74
+ *
75
+ * @type {number | bigint}
76
+ * @memberof GetFiatDepositWithdrawHistoryResponseDataInner
77
+ */
78
+ updateTime?: number | bigint;
76
79
  }
77
-
78
- /**
79
- * Binance Fiat REST API
80
- *
81
- * OpenAPI Specification for the Binance Fiat REST API
82
- *
83
- * The version of the OpenAPI document: 1.0.0
84
- *
85
- *
86
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
87
- * https://openapi-generator.tech
88
- * Do not edit the class manually.
89
- */
90
-
80
+ //#endregion
81
+ //#region src/rest-api/types/get-fiat-deposit-withdraw-history-response.d.ts
91
82
  /**
92
83
  *
93
84
  * @export
94
85
  * @interface GetFiatDepositWithdrawHistoryResponse
95
86
  */
96
87
  interface GetFiatDepositWithdrawHistoryResponse {
97
- /**
98
- *
99
- * @type {string}
100
- * @memberof GetFiatDepositWithdrawHistoryResponse
101
- */
102
- code?: string;
103
- /**
104
- *
105
- * @type {string}
106
- * @memberof GetFiatDepositWithdrawHistoryResponse
107
- */
108
- message?: string;
109
- /**
110
- *
111
- * @type {Array<GetFiatDepositWithdrawHistoryResponseDataInner>}
112
- * @memberof GetFiatDepositWithdrawHistoryResponse
113
- */
114
- data?: Array<GetFiatDepositWithdrawHistoryResponseDataInner>;
115
- /**
116
- *
117
- * @type {number | bigint}
118
- * @memberof GetFiatDepositWithdrawHistoryResponse
119
- */
120
- total?: number | bigint;
121
- /**
122
- *
123
- * @type {boolean}
124
- * @memberof GetFiatDepositWithdrawHistoryResponse
125
- */
126
- success?: boolean;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof GetFiatDepositWithdrawHistoryResponse
92
+ */
93
+ code?: string;
94
+ /**
95
+ *
96
+ * @type {string}
97
+ * @memberof GetFiatDepositWithdrawHistoryResponse
98
+ */
99
+ message?: string;
100
+ /**
101
+ *
102
+ * @type {Array<GetFiatDepositWithdrawHistoryResponseDataInner>}
103
+ * @memberof GetFiatDepositWithdrawHistoryResponse
104
+ */
105
+ data?: Array<GetFiatDepositWithdrawHistoryResponseDataInner>;
106
+ /**
107
+ *
108
+ * @type {number | bigint}
109
+ * @memberof GetFiatDepositWithdrawHistoryResponse
110
+ */
111
+ total?: number | bigint;
112
+ /**
113
+ *
114
+ * @type {boolean}
115
+ * @memberof GetFiatDepositWithdrawHistoryResponse
116
+ */
117
+ success?: boolean;
127
118
  }
128
-
119
+ //#endregion
120
+ //#region src/rest-api/types/get-fiat-payments-history-response-data-inner.d.ts
129
121
  /**
130
122
  * Binance Fiat REST API
131
123
  *
@@ -144,412 +136,353 @@ interface GetFiatDepositWithdrawHistoryResponse {
144
136
  * @interface GetFiatPaymentsHistoryResponseDataInner
145
137
  */
146
138
  interface GetFiatPaymentsHistoryResponseDataInner {
147
- /**
148
- *
149
- * @type {string}
150
- * @memberof GetFiatPaymentsHistoryResponseDataInner
151
- */
152
- orderNo?: string;
153
- /**
154
- *
155
- * @type {string}
156
- * @memberof GetFiatPaymentsHistoryResponseDataInner
157
- */
158
- sourceAmount?: string;
159
- /**
160
- *
161
- * @type {string}
162
- * @memberof GetFiatPaymentsHistoryResponseDataInner
163
- */
164
- fiatCurrency?: string;
165
- /**
166
- *
167
- * @type {string}
168
- * @memberof GetFiatPaymentsHistoryResponseDataInner
169
- */
170
- obtainAmount?: string;
171
- /**
172
- *
173
- * @type {string}
174
- * @memberof GetFiatPaymentsHistoryResponseDataInner
175
- */
176
- cryptoCurrency?: string;
177
- /**
178
- *
179
- * @type {string}
180
- * @memberof GetFiatPaymentsHistoryResponseDataInner
181
- */
182
- totalFee?: string;
183
- /**
184
- *
185
- * @type {string}
186
- * @memberof GetFiatPaymentsHistoryResponseDataInner
187
- */
188
- price?: string;
189
- /**
190
- *
191
- * @type {string}
192
- * @memberof GetFiatPaymentsHistoryResponseDataInner
193
- */
194
- status?: string;
195
- /**
196
- *
197
- * @type {string}
198
- * @memberof GetFiatPaymentsHistoryResponseDataInner
199
- */
200
- paymentMethod?: string;
201
- /**
202
- *
203
- * @type {number | bigint}
204
- * @memberof GetFiatPaymentsHistoryResponseDataInner
205
- */
206
- createTime?: number | bigint;
207
- /**
208
- *
209
- * @type {number | bigint}
210
- * @memberof GetFiatPaymentsHistoryResponseDataInner
211
- */
212
- updateTime?: number | bigint;
139
+ /**
140
+ *
141
+ * @type {string}
142
+ * @memberof GetFiatPaymentsHistoryResponseDataInner
143
+ */
144
+ orderNo?: string;
145
+ /**
146
+ *
147
+ * @type {string}
148
+ * @memberof GetFiatPaymentsHistoryResponseDataInner
149
+ */
150
+ sourceAmount?: string;
151
+ /**
152
+ *
153
+ * @type {string}
154
+ * @memberof GetFiatPaymentsHistoryResponseDataInner
155
+ */
156
+ fiatCurrency?: string;
157
+ /**
158
+ *
159
+ * @type {string}
160
+ * @memberof GetFiatPaymentsHistoryResponseDataInner
161
+ */
162
+ obtainAmount?: string;
163
+ /**
164
+ *
165
+ * @type {string}
166
+ * @memberof GetFiatPaymentsHistoryResponseDataInner
167
+ */
168
+ cryptoCurrency?: string;
169
+ /**
170
+ *
171
+ * @type {string}
172
+ * @memberof GetFiatPaymentsHistoryResponseDataInner
173
+ */
174
+ totalFee?: string;
175
+ /**
176
+ *
177
+ * @type {string}
178
+ * @memberof GetFiatPaymentsHistoryResponseDataInner
179
+ */
180
+ price?: string;
181
+ /**
182
+ *
183
+ * @type {string}
184
+ * @memberof GetFiatPaymentsHistoryResponseDataInner
185
+ */
186
+ status?: string;
187
+ /**
188
+ *
189
+ * @type {string}
190
+ * @memberof GetFiatPaymentsHistoryResponseDataInner
191
+ */
192
+ paymentMethod?: string;
193
+ /**
194
+ *
195
+ * @type {number | bigint}
196
+ * @memberof GetFiatPaymentsHistoryResponseDataInner
197
+ */
198
+ createTime?: number | bigint;
199
+ /**
200
+ *
201
+ * @type {number | bigint}
202
+ * @memberof GetFiatPaymentsHistoryResponseDataInner
203
+ */
204
+ updateTime?: number | bigint;
213
205
  }
214
-
215
- /**
216
- * Binance Fiat REST API
217
- *
218
- * OpenAPI Specification for the Binance Fiat REST API
219
- *
220
- * The version of the OpenAPI document: 1.0.0
221
- *
222
- *
223
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
224
- * https://openapi-generator.tech
225
- * Do not edit the class manually.
226
- */
227
-
206
+ //#endregion
207
+ //#region src/rest-api/types/get-fiat-payments-history-response.d.ts
228
208
  /**
229
209
  *
230
210
  * @export
231
211
  * @interface GetFiatPaymentsHistoryResponse
232
212
  */
233
213
  interface GetFiatPaymentsHistoryResponse {
234
- /**
235
- *
236
- * @type {string}
237
- * @memberof GetFiatPaymentsHistoryResponse
238
- */
239
- code?: string;
240
- /**
241
- *
242
- * @type {string}
243
- * @memberof GetFiatPaymentsHistoryResponse
244
- */
245
- message?: string;
246
- /**
247
- *
248
- * @type {Array<GetFiatPaymentsHistoryResponseDataInner>}
249
- * @memberof GetFiatPaymentsHistoryResponse
250
- */
251
- data?: Array<GetFiatPaymentsHistoryResponseDataInner>;
252
- /**
253
- *
254
- * @type {number | bigint}
255
- * @memberof GetFiatPaymentsHistoryResponse
256
- */
257
- total?: number | bigint;
258
- /**
259
- *
260
- * @type {boolean}
261
- * @memberof GetFiatPaymentsHistoryResponse
262
- */
263
- success?: boolean;
214
+ /**
215
+ *
216
+ * @type {string}
217
+ * @memberof GetFiatPaymentsHistoryResponse
218
+ */
219
+ code?: string;
220
+ /**
221
+ *
222
+ * @type {string}
223
+ * @memberof GetFiatPaymentsHistoryResponse
224
+ */
225
+ message?: string;
226
+ /**
227
+ *
228
+ * @type {Array<GetFiatPaymentsHistoryResponseDataInner>}
229
+ * @memberof GetFiatPaymentsHistoryResponse
230
+ */
231
+ data?: Array<GetFiatPaymentsHistoryResponseDataInner>;
232
+ /**
233
+ *
234
+ * @type {number | bigint}
235
+ * @memberof GetFiatPaymentsHistoryResponse
236
+ */
237
+ total?: number | bigint;
238
+ /**
239
+ *
240
+ * @type {boolean}
241
+ * @memberof GetFiatPaymentsHistoryResponse
242
+ */
243
+ success?: boolean;
264
244
  }
265
-
266
- /**
267
- * Binance Fiat REST API
268
- *
269
- * OpenAPI Specification for the Binance Fiat REST API
270
- *
271
- * The version of the OpenAPI document: 1.0.0
272
- *
273
- *
274
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
275
- * https://openapi-generator.tech
276
- * Do not edit the class manually.
277
- */
278
-
245
+ //#endregion
246
+ //#region src/rest-api/modules/fiat-api.d.ts
279
247
  /**
280
248
  * FiatApi - interface
281
249
  * @interface FiatApi
282
250
  */
283
251
  interface FiatApiInterface {
284
- /**
285
- * Get Fiat Deposit/Withdraw History
286
- *
287
- * If beginTime and endTime are not sent, the recent 30-day data will be returned.
288
- *
289
- * Weight: 45000
290
- *
291
- * @summary Get Fiat Deposit/Withdraw History (USER_DATA)
292
- * @param {GetFiatDepositWithdrawHistoryRequest} requestParameters Request parameters.
293
- *
294
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
295
- * @memberof FiatApiInterface
296
- */
297
- getFiatDepositWithdrawHistory(requestParameters: GetFiatDepositWithdrawHistoryRequest): Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>;
298
- /**
299
- * Get Fiat Deposit/Withdraw History
300
- *
301
- * If beginTime and endTime are not sent, the recent 30-day data will be returned.
302
- * paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
303
- * Cash Balance
304
- * Credit Card
305
- * Online Banking
306
- * Bank Transfer
307
- *
308
- * Weight: 1
309
- *
310
- * @summary Get Fiat Payments History (USER_DATA)
311
- * @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
312
- *
313
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
314
- * @memberof FiatApiInterface
315
- */
316
- getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
252
+ /**
253
+ * Get Fiat Deposit/Withdraw History
254
+ *
255
+ * If beginTime and endTime are not sent, the recent 30-day data will be returned.
256
+ *
257
+ * Weight: 45000
258
+ *
259
+ * @summary Get Fiat Deposit/Withdraw History (USER_DATA)
260
+ * @param {GetFiatDepositWithdrawHistoryRequest} requestParameters Request parameters.
261
+ *
262
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
263
+ * @memberof FiatApiInterface
264
+ */
265
+ getFiatDepositWithdrawHistory(requestParameters: GetFiatDepositWithdrawHistoryRequest): Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>;
266
+ /**
267
+ * Get Fiat Deposit/Withdraw History
268
+ *
269
+ * If beginTime and endTime are not sent, the recent 30-day data will be returned.
270
+ * paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
271
+ * Cash Balance
272
+ * Credit Card
273
+ * Online Banking
274
+ * Bank Transfer
275
+ *
276
+ * Weight: 1
277
+ *
278
+ * @summary Get Fiat Payments History (USER_DATA)
279
+ * @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
280
+ *
281
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
282
+ * @memberof FiatApiInterface
283
+ */
284
+ getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
317
285
  }
318
286
  /**
319
287
  * Request parameters for getFiatDepositWithdrawHistory operation in FiatApi.
320
288
  * @interface GetFiatDepositWithdrawHistoryRequest
321
289
  */
322
290
  interface GetFiatDepositWithdrawHistoryRequest {
323
- /**
324
- * 0-buy,1-sell
325
- * @type {string}
326
- * @memberof FiatApiGetFiatDepositWithdrawHistory
327
- */
328
- readonly transactionType: string;
329
- /**
330
- *
331
- * @type {number | bigint}
332
- * @memberof FiatApiGetFiatDepositWithdrawHistory
333
- */
334
- readonly beginTime?: number | bigint;
335
- /**
336
- *
337
- * @type {number | bigint}
338
- * @memberof FiatApiGetFiatDepositWithdrawHistory
339
- */
340
- readonly endTime?: number | bigint;
341
- /**
342
- * default 1
343
- * @type {number | bigint}
344
- * @memberof FiatApiGetFiatDepositWithdrawHistory
345
- */
346
- readonly page?: number | bigint;
347
- /**
348
- * default 100, max 500
349
- * @type {number | bigint}
350
- * @memberof FiatApiGetFiatDepositWithdrawHistory
351
- */
352
- readonly rows?: number | bigint;
353
- /**
354
- *
355
- * @type {number | bigint}
356
- * @memberof FiatApiGetFiatDepositWithdrawHistory
357
- */
358
- readonly recvWindow?: number | bigint;
291
+ /**
292
+ * 0-buy,1-sell
293
+ * @type {string}
294
+ * @memberof FiatApiGetFiatDepositWithdrawHistory
295
+ */
296
+ readonly transactionType: string;
297
+ /**
298
+ *
299
+ * @type {number | bigint}
300
+ * @memberof FiatApiGetFiatDepositWithdrawHistory
301
+ */
302
+ readonly beginTime?: number | bigint;
303
+ /**
304
+ *
305
+ * @type {number | bigint}
306
+ * @memberof FiatApiGetFiatDepositWithdrawHistory
307
+ */
308
+ readonly endTime?: number | bigint;
309
+ /**
310
+ * default 1
311
+ * @type {number | bigint}
312
+ * @memberof FiatApiGetFiatDepositWithdrawHistory
313
+ */
314
+ readonly page?: number | bigint;
315
+ /**
316
+ * default 100, max 500
317
+ * @type {number | bigint}
318
+ * @memberof FiatApiGetFiatDepositWithdrawHistory
319
+ */
320
+ readonly rows?: number | bigint;
321
+ /**
322
+ *
323
+ * @type {number | bigint}
324
+ * @memberof FiatApiGetFiatDepositWithdrawHistory
325
+ */
326
+ readonly recvWindow?: number | bigint;
359
327
  }
360
328
  /**
361
329
  * Request parameters for getFiatPaymentsHistory operation in FiatApi.
362
330
  * @interface GetFiatPaymentsHistoryRequest
363
331
  */
364
332
  interface GetFiatPaymentsHistoryRequest {
365
- /**
366
- * 0-buy,1-sell
367
- * @type {string}
368
- * @memberof FiatApiGetFiatPaymentsHistory
369
- */
370
- readonly transactionType: string;
371
- /**
372
- *
373
- * @type {number | bigint}
374
- * @memberof FiatApiGetFiatPaymentsHistory
375
- */
376
- readonly beginTime?: number | bigint;
377
- /**
378
- *
379
- * @type {number | bigint}
380
- * @memberof FiatApiGetFiatPaymentsHistory
381
- */
382
- readonly endTime?: number | bigint;
383
- /**
384
- * default 1
385
- * @type {number | bigint}
386
- * @memberof FiatApiGetFiatPaymentsHistory
387
- */
388
- readonly page?: number | bigint;
389
- /**
390
- * default 100, max 500
391
- * @type {number | bigint}
392
- * @memberof FiatApiGetFiatPaymentsHistory
393
- */
394
- readonly rows?: number | bigint;
395
- /**
396
- *
397
- * @type {number | bigint}
398
- * @memberof FiatApiGetFiatPaymentsHistory
399
- */
400
- readonly recvWindow?: number | bigint;
333
+ /**
334
+ * 0-buy,1-sell
335
+ * @type {string}
336
+ * @memberof FiatApiGetFiatPaymentsHistory
337
+ */
338
+ readonly transactionType: string;
339
+ /**
340
+ *
341
+ * @type {number | bigint}
342
+ * @memberof FiatApiGetFiatPaymentsHistory
343
+ */
344
+ readonly beginTime?: number | bigint;
345
+ /**
346
+ *
347
+ * @type {number | bigint}
348
+ * @memberof FiatApiGetFiatPaymentsHistory
349
+ */
350
+ readonly endTime?: number | bigint;
351
+ /**
352
+ * default 1
353
+ * @type {number | bigint}
354
+ * @memberof FiatApiGetFiatPaymentsHistory
355
+ */
356
+ readonly page?: number | bigint;
357
+ /**
358
+ * default 100, max 500
359
+ * @type {number | bigint}
360
+ * @memberof FiatApiGetFiatPaymentsHistory
361
+ */
362
+ readonly rows?: number | bigint;
363
+ /**
364
+ *
365
+ * @type {number | bigint}
366
+ * @memberof FiatApiGetFiatPaymentsHistory
367
+ */
368
+ readonly recvWindow?: number | bigint;
401
369
  }
402
370
  /**
403
371
  * FiatApi - object-oriented interface
404
372
  * @class FiatApi
405
373
  */
406
374
  declare class FiatApi implements FiatApiInterface {
407
- private readonly configuration;
408
- private localVarAxiosParamCreator;
409
- constructor(configuration: ConfigurationRestAPI);
410
- /**
411
- * Get Fiat Deposit/Withdraw History
412
- *
413
- * If beginTime and endTime are not sent, the recent 30-day data will be returned.
414
- *
415
- * Weight: 45000
416
- *
417
- * @summary Get Fiat Deposit/Withdraw History (USER_DATA)
418
- * @param {GetFiatDepositWithdrawHistoryRequest} requestParameters Request parameters.
419
- * @returns {Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>}
420
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
421
- * @memberof FiatApi
422
- * @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History Binance API Documentation}
423
- */
424
- getFiatDepositWithdrawHistory(requestParameters: GetFiatDepositWithdrawHistoryRequest): Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>;
425
- /**
426
- * Get Fiat Deposit/Withdraw History
427
- *
428
- * If beginTime and endTime are not sent, the recent 30-day data will be returned.
429
- * paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
430
- * Cash Balance
431
- * Credit Card
432
- * Online Banking
433
- * Bank Transfer
434
- *
435
- * Weight: 1
436
- *
437
- * @summary Get Fiat Payments History (USER_DATA)
438
- * @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
439
- * @returns {Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>}
440
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
441
- * @memberof FiatApi
442
- * @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Payments-History Binance API Documentation}
443
- */
444
- getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
375
+ private readonly configuration;
376
+ private localVarAxiosParamCreator;
377
+ constructor(configuration: ConfigurationRestAPI);
378
+ /**
379
+ * Get Fiat Deposit/Withdraw History
380
+ *
381
+ * If beginTime and endTime are not sent, the recent 30-day data will be returned.
382
+ *
383
+ * Weight: 45000
384
+ *
385
+ * @summary Get Fiat Deposit/Withdraw History (USER_DATA)
386
+ * @param {GetFiatDepositWithdrawHistoryRequest} requestParameters Request parameters.
387
+ * @returns {Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>}
388
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
389
+ * @memberof FiatApi
390
+ * @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History Binance API Documentation}
391
+ */
392
+ getFiatDepositWithdrawHistory(requestParameters: GetFiatDepositWithdrawHistoryRequest): Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>;
393
+ /**
394
+ * Get Fiat Deposit/Withdraw History
395
+ *
396
+ * If beginTime and endTime are not sent, the recent 30-day data will be returned.
397
+ * paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
398
+ * Cash Balance
399
+ * Credit Card
400
+ * Online Banking
401
+ * Bank Transfer
402
+ *
403
+ * Weight: 1
404
+ *
405
+ * @summary Get Fiat Payments History (USER_DATA)
406
+ * @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
407
+ * @returns {Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>}
408
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
409
+ * @memberof FiatApi
410
+ * @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Payments-History Binance API Documentation}
411
+ */
412
+ getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
445
413
  }
446
-
447
- /**
448
- * Binance Fiat REST API
449
- *
450
- * OpenAPI Specification for the Binance Fiat REST API
451
- *
452
- * The version of the OpenAPI document: 1.0.0
453
- *
454
- *
455
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
456
- * https://openapi-generator.tech
457
- * Do not edit the class manually.
458
- */
459
-
414
+ //#endregion
415
+ //#region src/rest-api/rest-api.d.ts
460
416
  declare class RestAPI {
461
- private configuration;
462
- private fiatApi;
463
- constructor(configuration: ConfigurationRestAPI);
464
- /**
465
- * Generic function to send a request.
466
- * @param endpoint - The API endpoint to call.
467
- * @param method - HTTP method to use (GET, POST, DELETE, etc.).
468
- * @param params - Query parameters for the request.
469
- *
470
- * @returns A promise resolving to the response data object.
471
- */
472
- sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
473
- /**
474
- * Generic function to send a signed request.
475
- * @param endpoint - The API endpoint to call.
476
- * @param method - HTTP method to use (GET, POST, DELETE, etc.).
477
- * @param params - Query parameters for the request.
478
- *
479
- * @returns A promise resolving to the response data object.
480
- */
481
- sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
482
- /**
483
- * Get Fiat Deposit/Withdraw History
484
- *
485
- * If beginTime and endTime are not sent, the recent 30-day data will be returned.
486
- *
487
- * Weight: 45000
488
- *
489
- * @summary Get Fiat Deposit/Withdraw History (USER_DATA)
490
- * @param {GetFiatDepositWithdrawHistoryRequest} requestParameters Request parameters.
491
- *
492
- * @returns {Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>}
493
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
494
- * @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History Binance API Documentation}
495
- */
496
- getFiatDepositWithdrawHistory(requestParameters: GetFiatDepositWithdrawHistoryRequest): Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>;
497
- /**
498
- * Get Fiat Deposit/Withdraw History
499
- *
500
- * If beginTime and endTime are not sent, the recent 30-day data will be returned.
501
- * paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
502
- * Cash Balance
503
- * Credit Card
504
- * Online Banking
505
- * Bank Transfer
506
- *
507
- * Weight: 1
508
- *
509
- * @summary Get Fiat Payments History (USER_DATA)
510
- * @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
511
- *
512
- * @returns {Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>}
513
- * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
514
- * @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Payments-History Binance API Documentation}
515
- */
516
- getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
417
+ private configuration;
418
+ private fiatApi;
419
+ constructor(configuration: ConfigurationRestAPI);
420
+ /**
421
+ * Generic function to send a request.
422
+ * @param endpoint - The API endpoint to call.
423
+ * @param method - HTTP method to use (GET, POST, DELETE, etc.).
424
+ * @param params - Query parameters for the request.
425
+ *
426
+ * @returns A promise resolving to the response data object.
427
+ */
428
+ sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
429
+ /**
430
+ * Generic function to send a signed request.
431
+ * @param endpoint - The API endpoint to call.
432
+ * @param method - HTTP method to use (GET, POST, DELETE, etc.).
433
+ * @param params - Query parameters for the request.
434
+ *
435
+ * @returns A promise resolving to the response data object.
436
+ */
437
+ sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
438
+ /**
439
+ * Get Fiat Deposit/Withdraw History
440
+ *
441
+ * If beginTime and endTime are not sent, the recent 30-day data will be returned.
442
+ *
443
+ * Weight: 45000
444
+ *
445
+ * @summary Get Fiat Deposit/Withdraw History (USER_DATA)
446
+ * @param {GetFiatDepositWithdrawHistoryRequest} requestParameters Request parameters.
447
+ *
448
+ * @returns {Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>}
449
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
450
+ * @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Deposit-Withdraw-History Binance API Documentation}
451
+ */
452
+ getFiatDepositWithdrawHistory(requestParameters: GetFiatDepositWithdrawHistoryRequest): Promise<RestApiResponse<GetFiatDepositWithdrawHistoryResponse>>;
453
+ /**
454
+ * Get Fiat Deposit/Withdraw History
455
+ *
456
+ * If beginTime and endTime are not sent, the recent 30-day data will be returned.
457
+ * paymentMethod: Only when requesting payments history for buy (transactionType=0), response contains paymentMethod representing the way of purchase. Now we have:
458
+ * Cash Balance
459
+ * Credit Card
460
+ * Online Banking
461
+ * Bank Transfer
462
+ *
463
+ * Weight: 1
464
+ *
465
+ * @summary Get Fiat Payments History (USER_DATA)
466
+ * @param {GetFiatPaymentsHistoryRequest} requestParameters Request parameters.
467
+ *
468
+ * @returns {Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>}
469
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
470
+ * @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Payments-History Binance API Documentation}
471
+ */
472
+ getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
517
473
  }
518
-
519
- /**
520
- * Binance Fiat REST API
521
- *
522
- * OpenAPI Specification for the Binance Fiat REST API
523
- *
524
- * The version of the OpenAPI document: 1.0.0
525
- *
526
- *
527
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
528
- * https://openapi-generator.tech
529
- * Do not edit the class manually.
530
- */
531
-
532
- type index_FiatApi = FiatApi;
533
- declare const index_FiatApi: typeof FiatApi;
534
- type index_FiatApiInterface = FiatApiInterface;
535
- type index_GetFiatDepositWithdrawHistoryRequest = GetFiatDepositWithdrawHistoryRequest;
536
- type index_GetFiatDepositWithdrawHistoryResponse = GetFiatDepositWithdrawHistoryResponse;
537
- type index_GetFiatDepositWithdrawHistoryResponseDataInner = GetFiatDepositWithdrawHistoryResponseDataInner;
538
- type index_GetFiatPaymentsHistoryRequest = GetFiatPaymentsHistoryRequest;
539
- type index_GetFiatPaymentsHistoryResponse = GetFiatPaymentsHistoryResponse;
540
- type index_GetFiatPaymentsHistoryResponseDataInner = GetFiatPaymentsHistoryResponseDataInner;
541
- type index_RestAPI = RestAPI;
542
- declare const index_RestAPI: typeof RestAPI;
543
- declare namespace index {
544
- export { index_FiatApi as FiatApi, type index_FiatApiInterface as FiatApiInterface, type index_GetFiatDepositWithdrawHistoryRequest as GetFiatDepositWithdrawHistoryRequest, type index_GetFiatDepositWithdrawHistoryResponse as GetFiatDepositWithdrawHistoryResponse, type index_GetFiatDepositWithdrawHistoryResponseDataInner as GetFiatDepositWithdrawHistoryResponseDataInner, type index_GetFiatPaymentsHistoryRequest as GetFiatPaymentsHistoryRequest, type index_GetFiatPaymentsHistoryResponse as GetFiatPaymentsHistoryResponse, type index_GetFiatPaymentsHistoryResponseDataInner as GetFiatPaymentsHistoryResponseDataInner, index_RestAPI as RestAPI };
474
+ declare namespace index_d_exports {
475
+ export { FiatApi, FiatApiInterface, GetFiatDepositWithdrawHistoryRequest, GetFiatDepositWithdrawHistoryResponse, GetFiatDepositWithdrawHistoryResponseDataInner, GetFiatPaymentsHistoryRequest, GetFiatPaymentsHistoryResponse, GetFiatPaymentsHistoryResponseDataInner, RestAPI };
545
476
  }
546
-
477
+ //#endregion
478
+ //#region src/fiat.d.ts
547
479
  interface ConfigurationFiat {
548
- configurationRestAPI?: ConfigurationRestAPI;
480
+ configurationRestAPI?: ConfigurationRestAPI;
549
481
  }
550
482
  declare class Fiat {
551
- restAPI: RestAPI;
552
- constructor(config: ConfigurationFiat);
483
+ restAPI: RestAPI;
484
+ constructor(config: ConfigurationFiat);
553
485
  }
554
-
555
- export { type ConfigurationFiat, Fiat, index as FiatRestAPI };
486
+ //#endregion
487
+ export { BadRequestError, ConfigurationFiat, ConnectorClientError, FIAT_REST_API_PROD_URL, Fiat, index_d_exports as FiatRestAPI, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
488
+ //# sourceMappingURL=index.d.ts.map