@binance/fiat 3.0.1 → 4.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/dist/index.d.ts CHANGED
@@ -1,6 +1,110 @@
1
1
  import { RestApiResponse, ConfigurationRestAPI } from '@binance/common';
2
2
  export { BadRequestError, ConnectorClientError, FIAT_REST_API_PROD_URL, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError } from '@binance/common';
3
3
 
4
+ /**
5
+ * Binance Fiat REST API
6
+ *
7
+ * OpenAPI Specification for the Binance Fiat REST API
8
+ *
9
+ * The version of the OpenAPI document: 1.0.0
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface DepositResponseData
20
+ */
21
+ interface DepositResponseData {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof DepositResponseData
26
+ */
27
+ orderId?: string;
28
+ }
29
+
30
+ /**
31
+ * Binance Fiat REST API
32
+ *
33
+ * OpenAPI Specification for the Binance Fiat REST API
34
+ *
35
+ * The version of the OpenAPI document: 1.0.0
36
+ *
37
+ *
38
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
39
+ * https://openapi-generator.tech
40
+ * Do not edit the class manually.
41
+ */
42
+
43
+ /**
44
+ *
45
+ * @export
46
+ * @interface DepositResponse
47
+ */
48
+ interface DepositResponse {
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof DepositResponse
53
+ */
54
+ code?: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof DepositResponse
59
+ */
60
+ message?: string;
61
+ /**
62
+ *
63
+ * @type {DepositResponseData}
64
+ * @memberof DepositResponse
65
+ */
66
+ data?: DepositResponseData;
67
+ }
68
+
69
+ /**
70
+ * Binance Fiat REST API
71
+ *
72
+ * OpenAPI Specification for the Binance Fiat REST API
73
+ *
74
+ * The version of the OpenAPI document: 1.0.0
75
+ *
76
+ *
77
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
78
+ * https://openapi-generator.tech
79
+ * Do not edit the class manually.
80
+ */
81
+
82
+ /**
83
+ *
84
+ * @export
85
+ * @interface FiatWithdrawResponse
86
+ */
87
+ interface FiatWithdrawResponse {
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof FiatWithdrawResponse
92
+ */
93
+ code?: string;
94
+ /**
95
+ *
96
+ * @type {string}
97
+ * @memberof FiatWithdrawResponse
98
+ */
99
+ message?: string;
100
+ /**
101
+ *
102
+ * @type {DepositResponseData}
103
+ * @memberof FiatWithdrawResponse
104
+ */
105
+ data?: DepositResponseData;
106
+ }
107
+
4
108
  /**
5
109
  * Binance Fiat REST API
6
110
  *
@@ -263,6 +367,113 @@ interface GetFiatPaymentsHistoryResponse {
263
367
  success?: boolean;
264
368
  }
265
369
 
370
+ /**
371
+ * Binance Fiat REST API
372
+ *
373
+ * OpenAPI Specification for the Binance Fiat REST API
374
+ *
375
+ * The version of the OpenAPI document: 1.0.0
376
+ *
377
+ *
378
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
379
+ * https://openapi-generator.tech
380
+ * Do not edit the class manually.
381
+ */
382
+ /**
383
+ *
384
+ * @export
385
+ * @interface GetOrderDetailResponseData
386
+ */
387
+ interface GetOrderDetailResponseData {
388
+ /**
389
+ *
390
+ * @type {string}
391
+ * @memberof GetOrderDetailResponseData
392
+ */
393
+ orderId?: string;
394
+ /**
395
+ *
396
+ * @type {string}
397
+ * @memberof GetOrderDetailResponseData
398
+ */
399
+ orderStatus?: string;
400
+ /**
401
+ *
402
+ * @type {string}
403
+ * @memberof GetOrderDetailResponseData
404
+ */
405
+ amount?: string;
406
+ /**
407
+ *
408
+ * @type {string}
409
+ * @memberof GetOrderDetailResponseData
410
+ */
411
+ fee?: string;
412
+ /**
413
+ *
414
+ * @type {string}
415
+ * @memberof GetOrderDetailResponseData
416
+ */
417
+ fiatCurrency?: string;
418
+ /**
419
+ *
420
+ * @type {string}
421
+ * @memberof GetOrderDetailResponseData
422
+ */
423
+ errorCode?: string;
424
+ /**
425
+ *
426
+ * @type {string}
427
+ * @memberof GetOrderDetailResponseData
428
+ */
429
+ errorMessage?: string;
430
+ /**
431
+ *
432
+ * @type {object}
433
+ * @memberof GetOrderDetailResponseData
434
+ */
435
+ ext?: object;
436
+ }
437
+
438
+ /**
439
+ * Binance Fiat REST API
440
+ *
441
+ * OpenAPI Specification for the Binance Fiat REST API
442
+ *
443
+ * The version of the OpenAPI document: 1.0.0
444
+ *
445
+ *
446
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
447
+ * https://openapi-generator.tech
448
+ * Do not edit the class manually.
449
+ */
450
+
451
+ /**
452
+ *
453
+ * @export
454
+ * @interface GetOrderDetailResponse
455
+ */
456
+ interface GetOrderDetailResponse {
457
+ /**
458
+ *
459
+ * @type {string}
460
+ * @memberof GetOrderDetailResponse
461
+ */
462
+ code?: string;
463
+ /**
464
+ *
465
+ * @type {string}
466
+ * @memberof GetOrderDetailResponse
467
+ */
468
+ message?: string;
469
+ /**
470
+ *
471
+ * @type {GetOrderDetailResponseData}
472
+ * @memberof GetOrderDetailResponse
473
+ */
474
+ data?: GetOrderDetailResponseData;
475
+ }
476
+
266
477
  /**
267
478
  * Binance Fiat REST API
268
479
  *
@@ -281,6 +492,24 @@ interface GetFiatPaymentsHistoryResponse {
281
492
  * @interface FiatApi
282
493
  */
283
494
  interface FiatApiInterface {
495
+ /**
496
+ * Submit withdraw request, in this version, we only support BRL withdrawal via bank_transfer.
497
+ *
498
+ * You need to call this api first, and call query order detail api in a loop to get the status of the order until this order is successful.
499
+ *
500
+ * Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
501
+ *
502
+ * you need to bind your bank account on web/app before using the corresponding account number
503
+ *
504
+ * Weight: 45000
505
+ *
506
+ * @summary Fiat Withdraw(WITHDRAW)
507
+ * @param {FiatWithdrawRequest} requestParameters Request parameters.
508
+ *
509
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
510
+ * @memberof FiatApiInterface
511
+ */
512
+ fiatWithdraw(requestParameters?: FiatWithdrawRequest): Promise<RestApiResponse<FiatWithdrawResponse>>;
284
513
  /**
285
514
  * Get Fiat Deposit/Withdraw History
286
515
  *
@@ -314,6 +543,32 @@ interface FiatApiInterface {
314
543
  * @memberof FiatApiInterface
315
544
  */
316
545
  getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
546
+ /**
547
+ * Get Order Detail
548
+ *
549
+ * Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
550
+ *
551
+ * Weight: 45000
552
+ *
553
+ * @summary Get Order Detail(USER_DATA)
554
+ * @param {GetOrderDetailRequest} requestParameters Request parameters.
555
+ *
556
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
557
+ * @memberof FiatApiInterface
558
+ */
559
+ getOrderDetail(requestParameters: GetOrderDetailRequest): Promise<RestApiResponse<GetOrderDetailResponse>>;
560
+ }
561
+ /**
562
+ * Request parameters for fiatWithdraw operation in FiatApi.
563
+ * @interface FiatWithdrawRequest
564
+ */
565
+ interface FiatWithdrawRequest {
566
+ /**
567
+ *
568
+ * @type {number | bigint}
569
+ * @memberof FiatApiFiatWithdraw
570
+ */
571
+ readonly recvWindow?: number | bigint;
317
572
  }
318
573
  /**
319
574
  * Request parameters for getFiatDepositWithdrawHistory operation in FiatApi.
@@ -399,6 +654,24 @@ interface GetFiatPaymentsHistoryRequest {
399
654
  */
400
655
  readonly recvWindow?: number | bigint;
401
656
  }
657
+ /**
658
+ * Request parameters for getOrderDetail operation in FiatApi.
659
+ * @interface GetOrderDetailRequest
660
+ */
661
+ interface GetOrderDetailRequest {
662
+ /**
663
+ * order id retrieved from the api call of withdrawal
664
+ * @type {string}
665
+ * @memberof FiatApiGetOrderDetail
666
+ */
667
+ readonly orderId: string;
668
+ /**
669
+ *
670
+ * @type {number | bigint}
671
+ * @memberof FiatApiGetOrderDetail
672
+ */
673
+ readonly recvWindow?: number | bigint;
674
+ }
402
675
  /**
403
676
  * FiatApi - object-oriented interface
404
677
  * @class FiatApi
@@ -407,6 +680,25 @@ declare class FiatApi implements FiatApiInterface {
407
680
  private readonly configuration;
408
681
  private localVarAxiosParamCreator;
409
682
  constructor(configuration: ConfigurationRestAPI);
683
+ /**
684
+ * Submit withdraw request, in this version, we only support BRL withdrawal via bank_transfer.
685
+ *
686
+ * You need to call this api first, and call query order detail api in a loop to get the status of the order until this order is successful.
687
+ *
688
+ * Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
689
+ *
690
+ * you need to bind your bank account on web/app before using the corresponding account number
691
+ *
692
+ * Weight: 45000
693
+ *
694
+ * @summary Fiat Withdraw(WITHDRAW)
695
+ * @param {FiatWithdrawRequest} requestParameters Request parameters.
696
+ * @returns {Promise<RestApiResponse<FiatWithdrawResponse>>}
697
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
698
+ * @memberof FiatApi
699
+ * @see {@link https://developers.binance.com/docs/fiat/rest-api/Fiat-Withdraw Binance API Documentation}
700
+ */
701
+ fiatWithdraw(requestParameters?: FiatWithdrawRequest): Promise<RestApiResponse<FiatWithdrawResponse>>;
410
702
  /**
411
703
  * Get Fiat Deposit/Withdraw History
412
704
  *
@@ -442,6 +734,21 @@ declare class FiatApi implements FiatApiInterface {
442
734
  * @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Payments-History Binance API Documentation}
443
735
  */
444
736
  getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
737
+ /**
738
+ * Get Order Detail
739
+ *
740
+ * Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
741
+ *
742
+ * Weight: 45000
743
+ *
744
+ * @summary Get Order Detail(USER_DATA)
745
+ * @param {GetOrderDetailRequest} requestParameters Request parameters.
746
+ * @returns {Promise<RestApiResponse<GetOrderDetailResponse>>}
747
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
748
+ * @memberof FiatApi
749
+ * @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Order-Detail Binance API Documentation}
750
+ */
751
+ getOrderDetail(requestParameters: GetOrderDetailRequest): Promise<RestApiResponse<GetOrderDetailResponse>>;
445
752
  }
446
753
 
447
754
  /**
@@ -479,6 +786,25 @@ declare class RestAPI {
479
786
  * @returns A promise resolving to the response data object.
480
787
  */
481
788
  sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', params?: Record<string, unknown>): Promise<RestApiResponse<T>>;
789
+ /**
790
+ * Submit withdraw request, in this version, we only support BRL withdrawal via bank_transfer.
791
+ *
792
+ * You need to call this api first, and call query order detail api in a loop to get the status of the order until this order is successful.
793
+ *
794
+ * Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
795
+ *
796
+ * you need to bind your bank account on web/app before using the corresponding account number
797
+ *
798
+ * Weight: 45000
799
+ *
800
+ * @summary Fiat Withdraw(WITHDRAW)
801
+ * @param {FiatWithdrawRequest} requestParameters Request parameters.
802
+ *
803
+ * @returns {Promise<RestApiResponse<FiatWithdrawResponse>>}
804
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
805
+ * @see {@link https://developers.binance.com/docs/fiat/rest-api/Fiat-Withdraw Binance API Documentation}
806
+ */
807
+ fiatWithdraw(requestParameters?: FiatWithdrawRequest): Promise<RestApiResponse<FiatWithdrawResponse>>;
482
808
  /**
483
809
  * Get Fiat Deposit/Withdraw History
484
810
  *
@@ -514,6 +840,21 @@ declare class RestAPI {
514
840
  * @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Fiat-Payments-History Binance API Documentation}
515
841
  */
516
842
  getFiatPaymentsHistory(requestParameters: GetFiatPaymentsHistoryRequest): Promise<RestApiResponse<GetFiatPaymentsHistoryResponse>>;
843
+ /**
844
+ * Get Order Detail
845
+ *
846
+ * Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
847
+ *
848
+ * Weight: 45000
849
+ *
850
+ * @summary Get Order Detail(USER_DATA)
851
+ * @param {GetOrderDetailRequest} requestParameters Request parameters.
852
+ *
853
+ * @returns {Promise<RestApiResponse<GetOrderDetailResponse>>}
854
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
855
+ * @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Order-Detail Binance API Documentation}
856
+ */
857
+ getOrderDetail(requestParameters: GetOrderDetailRequest): Promise<RestApiResponse<GetOrderDetailResponse>>;
517
858
  }
518
859
 
519
860
  /**
@@ -529,19 +870,26 @@ declare class RestAPI {
529
870
  * Do not edit the class manually.
530
871
  */
531
872
 
873
+ type index_DepositResponse = DepositResponse;
874
+ type index_DepositResponseData = DepositResponseData;
532
875
  type index_FiatApi = FiatApi;
533
876
  declare const index_FiatApi: typeof FiatApi;
534
877
  type index_FiatApiInterface = FiatApiInterface;
878
+ type index_FiatWithdrawRequest = FiatWithdrawRequest;
879
+ type index_FiatWithdrawResponse = FiatWithdrawResponse;
535
880
  type index_GetFiatDepositWithdrawHistoryRequest = GetFiatDepositWithdrawHistoryRequest;
536
881
  type index_GetFiatDepositWithdrawHistoryResponse = GetFiatDepositWithdrawHistoryResponse;
537
882
  type index_GetFiatDepositWithdrawHistoryResponseDataInner = GetFiatDepositWithdrawHistoryResponseDataInner;
538
883
  type index_GetFiatPaymentsHistoryRequest = GetFiatPaymentsHistoryRequest;
539
884
  type index_GetFiatPaymentsHistoryResponse = GetFiatPaymentsHistoryResponse;
540
885
  type index_GetFiatPaymentsHistoryResponseDataInner = GetFiatPaymentsHistoryResponseDataInner;
886
+ type index_GetOrderDetailRequest = GetOrderDetailRequest;
887
+ type index_GetOrderDetailResponse = GetOrderDetailResponse;
888
+ type index_GetOrderDetailResponseData = GetOrderDetailResponseData;
541
889
  type index_RestAPI = RestAPI;
542
890
  declare const index_RestAPI: typeof RestAPI;
543
891
  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 };
892
+ export { type index_DepositResponse as DepositResponse, type index_DepositResponseData as DepositResponseData, index_FiatApi as FiatApi, type index_FiatApiInterface as FiatApiInterface, type index_FiatWithdrawRequest as FiatWithdrawRequest, type index_FiatWithdrawResponse as FiatWithdrawResponse, 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, type index_GetOrderDetailRequest as GetOrderDetailRequest, type index_GetOrderDetailResponse as GetOrderDetailResponse, type index_GetOrderDetailResponseData as GetOrderDetailResponseData, index_RestAPI as RestAPI };
545
893
  }
546
894
 
547
895
  interface ConfigurationFiat {
package/dist/index.js CHANGED
@@ -41,7 +41,7 @@ var import_common3 = require("@binance/common");
41
41
 
42
42
  // package.json
43
43
  var name = "@binance/fiat";
44
- var version = "3.0.1";
44
+ var version = "4.0.0";
45
45
 
46
46
  // src/rest-api/index.ts
47
47
  var rest_api_exports = {};
@@ -54,6 +54,36 @@ __export(rest_api_exports, {
54
54
  var import_common = require("@binance/common");
55
55
  var FiatApiAxiosParamCreator = function(configuration) {
56
56
  return {
57
+ /**
58
+ * Submit withdraw request, in this version, we only support BRL withdrawal via bank_transfer.
59
+ *
60
+ * You need to call this api first, and call query order detail api in a loop to get the status of the order until this order is successful.
61
+ *
62
+ * Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
63
+ *
64
+ * you need to bind your bank account on web/app before using the corresponding account number
65
+ *
66
+ * Weight: 45000
67
+ *
68
+ * @summary Fiat Withdraw(WITHDRAW)
69
+ * @param {number | bigint} [recvWindow]
70
+ *
71
+ * @throws {RequiredError}
72
+ */
73
+ fiatWithdraw: async (recvWindow) => {
74
+ const localVarQueryParameter = {};
75
+ if (recvWindow !== void 0 && recvWindow !== null) {
76
+ localVarQueryParameter["recvWindow"] = recvWindow;
77
+ }
78
+ let _timeUnit;
79
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
80
+ return {
81
+ endpoint: "/sapi/v2/fiat/withdraw",
82
+ method: "GET",
83
+ params: localVarQueryParameter,
84
+ timeUnit: _timeUnit
85
+ };
86
+ },
57
87
  /**
58
88
  * Get Fiat Deposit/Withdraw History
59
89
  *
@@ -152,6 +182,37 @@ var FiatApiAxiosParamCreator = function(configuration) {
152
182
  params: localVarQueryParameter,
153
183
  timeUnit: _timeUnit
154
184
  };
185
+ },
186
+ /**
187
+ * Get Order Detail
188
+ *
189
+ * Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
190
+ *
191
+ * Weight: 45000
192
+ *
193
+ * @summary Get Order Detail(USER_DATA)
194
+ * @param {string} orderId order id retrieved from the api call of withdrawal
195
+ * @param {number | bigint} [recvWindow]
196
+ *
197
+ * @throws {RequiredError}
198
+ */
199
+ getOrderDetail: async (orderId, recvWindow) => {
200
+ (0, import_common.assertParamExists)("getOrderDetail", "orderId", orderId);
201
+ const localVarQueryParameter = {};
202
+ if (orderId !== void 0 && orderId !== null) {
203
+ localVarQueryParameter["orderId"] = orderId;
204
+ }
205
+ if (recvWindow !== void 0 && recvWindow !== null) {
206
+ localVarQueryParameter["recvWindow"] = recvWindow;
207
+ }
208
+ let _timeUnit;
209
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
210
+ return {
211
+ endpoint: "/sapi/v1/fiat/get-order-detail",
212
+ method: "GET",
213
+ params: localVarQueryParameter,
214
+ timeUnit: _timeUnit
215
+ };
155
216
  }
156
217
  };
157
218
  };
@@ -160,6 +221,37 @@ var FiatApi = class {
160
221
  this.configuration = configuration;
161
222
  this.localVarAxiosParamCreator = FiatApiAxiosParamCreator(configuration);
162
223
  }
224
+ /**
225
+ * Submit withdraw request, in this version, we only support BRL withdrawal via bank_transfer.
226
+ *
227
+ * You need to call this api first, and call query order detail api in a loop to get the status of the order until this order is successful.
228
+ *
229
+ * Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
230
+ *
231
+ * you need to bind your bank account on web/app before using the corresponding account number
232
+ *
233
+ * Weight: 45000
234
+ *
235
+ * @summary Fiat Withdraw(WITHDRAW)
236
+ * @param {FiatWithdrawRequest} requestParameters Request parameters.
237
+ * @returns {Promise<RestApiResponse<FiatWithdrawResponse>>}
238
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
239
+ * @memberof FiatApi
240
+ * @see {@link https://developers.binance.com/docs/fiat/rest-api/Fiat-Withdraw Binance API Documentation}
241
+ */
242
+ async fiatWithdraw(requestParameters = {}) {
243
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.fiatWithdraw(
244
+ requestParameters?.recvWindow
245
+ );
246
+ return (0, import_common.sendRequest)(
247
+ this.configuration,
248
+ localVarAxiosArgs.endpoint,
249
+ localVarAxiosArgs.method,
250
+ localVarAxiosArgs.params,
251
+ localVarAxiosArgs?.timeUnit,
252
+ { isSigned: true }
253
+ );
254
+ }
163
255
  /**
164
256
  * Get Fiat Deposit/Withdraw History
165
257
  *
@@ -229,6 +321,34 @@ var FiatApi = class {
229
321
  { isSigned: true }
230
322
  );
231
323
  }
324
+ /**
325
+ * Get Order Detail
326
+ *
327
+ * Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
328
+ *
329
+ * Weight: 45000
330
+ *
331
+ * @summary Get Order Detail(USER_DATA)
332
+ * @param {GetOrderDetailRequest} requestParameters Request parameters.
333
+ * @returns {Promise<RestApiResponse<GetOrderDetailResponse>>}
334
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
335
+ * @memberof FiatApi
336
+ * @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Order-Detail Binance API Documentation}
337
+ */
338
+ async getOrderDetail(requestParameters) {
339
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.getOrderDetail(
340
+ requestParameters?.orderId,
341
+ requestParameters?.recvWindow
342
+ );
343
+ return (0, import_common.sendRequest)(
344
+ this.configuration,
345
+ localVarAxiosArgs.endpoint,
346
+ localVarAxiosArgs.method,
347
+ localVarAxiosArgs.params,
348
+ localVarAxiosArgs?.timeUnit,
349
+ { isSigned: true }
350
+ );
351
+ }
232
352
  };
233
353
 
234
354
  // src/rest-api/rest-api.ts
@@ -262,6 +382,27 @@ var RestAPI = class {
262
382
  isSigned: true
263
383
  });
264
384
  }
385
+ /**
386
+ * Submit withdraw request, in this version, we only support BRL withdrawal via bank_transfer.
387
+ *
388
+ * You need to call this api first, and call query order detail api in a loop to get the status of the order until this order is successful.
389
+ *
390
+ * Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
391
+ *
392
+ * you need to bind your bank account on web/app before using the corresponding account number
393
+ *
394
+ * Weight: 45000
395
+ *
396
+ * @summary Fiat Withdraw(WITHDRAW)
397
+ * @param {FiatWithdrawRequest} requestParameters Request parameters.
398
+ *
399
+ * @returns {Promise<RestApiResponse<FiatWithdrawResponse>>}
400
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
401
+ * @see {@link https://developers.binance.com/docs/fiat/rest-api/Fiat-Withdraw Binance API Documentation}
402
+ */
403
+ fiatWithdraw(requestParameters = {}) {
404
+ return this.fiatApi.fiatWithdraw(requestParameters);
405
+ }
265
406
  /**
266
407
  * Get Fiat Deposit/Withdraw History
267
408
  *
@@ -301,6 +442,23 @@ var RestAPI = class {
301
442
  getFiatPaymentsHistory(requestParameters) {
302
443
  return this.fiatApi.getFiatPaymentsHistory(requestParameters);
303
444
  }
445
+ /**
446
+ * Get Order Detail
447
+ *
448
+ * Before calling this api, please make sure you have already completed your KYC or KYB, and already activated your fiat service on our website.
449
+ *
450
+ * Weight: 45000
451
+ *
452
+ * @summary Get Order Detail(USER_DATA)
453
+ * @param {GetOrderDetailRequest} requestParameters Request parameters.
454
+ *
455
+ * @returns {Promise<RestApiResponse<GetOrderDetailResponse>>}
456
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
457
+ * @see {@link https://developers.binance.com/docs/fiat/rest-api/Get-Order-Detail Binance API Documentation}
458
+ */
459
+ getOrderDetail(requestParameters) {
460
+ return this.fiatApi.getOrderDetail(requestParameters);
461
+ }
304
462
  };
305
463
 
306
464
  // src/fiat.ts