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