@binance/wallet 5.0.1 → 6.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.js CHANGED
@@ -42,7 +42,7 @@ var import_common7 = require("@binance/common");
42
42
 
43
43
  // package.json
44
44
  var name = "@binance/wallet";
45
- var version = "5.0.1";
45
+ var version = "6.0.0";
46
46
 
47
47
  // src/rest-api/index.ts
48
48
  var rest_api_exports = {};
@@ -1794,7 +1794,7 @@ var CapitalApiAxiosParamCreator = function(configuration) {
1794
1794
  * @param {string} coin
1795
1795
  * @param {string} address
1796
1796
  * @param {number} amount
1797
- * @param {string} [withdrawOrderId]
1797
+ * @param {string} [withdrawOrderId] client side id for withdrawal, if provided in POST `/sapi/v1/capital/withdraw/apply`, can be used here for query.
1798
1798
  * @param {string} [network]
1799
1799
  * @param {string} [addressTag] Secondary address identifier for coins like XRP,XMR etc.
1800
1800
  * @param {boolean} [transactionFeeFlag] When making internal transfer, `true` for returning the fee to the destination account; `false` for returning the fee back to the departure account. Default `false`.
@@ -1863,7 +1863,7 @@ var CapitalApiAxiosParamCreator = function(configuration) {
1863
1863
  *
1864
1864
  * @summary Withdraw History (supporting network) (USER_DATA)
1865
1865
  * @param {string} [coin]
1866
- * @param {string} [withdrawOrderId]
1866
+ * @param {string} [withdrawOrderId] client side id for withdrawal, if provided in POST `/sapi/v1/capital/withdraw/apply`, can be used here for query.
1867
1867
  * @param {number} [status] 0(0:Email Sent, 2:Awaiting Approval 3:Rejected 4:Processing 6:Completed)
1868
1868
  * @param {number} [offset] Default: 0
1869
1869
  * @param {number} [limit] min 7, max 30, default 7
@@ -2453,6 +2453,26 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2453
2453
  timeUnit: _timeUnit
2454
2454
  };
2455
2455
  },
2456
+ /**
2457
+ * Fetch address verification list
2458
+ *
2459
+ * Weight: 10
2460
+ *
2461
+ * @summary Fetch address verification list (USER_DATA)
2462
+ *
2463
+ * @throws {RequiredError}
2464
+ */
2465
+ fetchAddressVerificationList: async () => {
2466
+ const localVarQueryParameter = {};
2467
+ let _timeUnit;
2468
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2469
+ return {
2470
+ endpoint: "/sapi/v1/addressVerify/list",
2471
+ method: "GET",
2472
+ params: localVarQueryParameter,
2473
+ timeUnit: _timeUnit
2474
+ };
2475
+ },
2456
2476
  /**
2457
2477
  * Fetch the onboarded VASP list for local entities that required travel rule.
2458
2478
  *
@@ -2605,7 +2625,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2605
2625
  * @summary Withdraw History (for local entities that require travel rule) (supporting network) (USER_DATA)
2606
2626
  * @param {string} [trId] Comma(,) separated list of travel rule record Ids.
2607
2627
  * @param {string} [txId]
2608
- * @param {string} [withdrawOrderId]
2628
+ * @param {string} [withdrawOrderId] client side id for withdrawal, if provided in POST `/sapi/v1/capital/withdraw/apply`, can be used here for query.
2609
2629
  * @param {string} [network]
2610
2630
  * @param {string} [coin]
2611
2631
  * @param {number} [travelRuleStatus] 0:Completed,1:Pending,2:Failed
@@ -2684,7 +2704,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2684
2704
  * @summary Withdraw History V2 (for local entities that require travel rule) (supporting network) (USER_DATA)
2685
2705
  * @param {string} [trId] Comma(,) separated list of travel rule record Ids.
2686
2706
  * @param {string} [txId]
2687
- * @param {string} [withdrawOrderId]
2707
+ * @param {string} [withdrawOrderId] client side id for withdrawal, if provided in POST `/sapi/v1/capital/withdraw/apply`, can be used here for query.
2688
2708
  * @param {string} [network]
2689
2709
  * @param {string} [coin]
2690
2710
  * @param {number} [travelRuleStatus] 0:Completed,1:Pending,2:Failed
@@ -2755,7 +2775,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2755
2775
  * @param {string} address
2756
2776
  * @param {number} amount
2757
2777
  * @param {string} questionnaire JSON format questionnaire answers.
2758
- * @param {string} [withdrawOrderId]
2778
+ * @param {string} [withdrawOrderId] client side id for withdrawal, if provided in POST `/sapi/v1/capital/withdraw/apply`, can be used here for query.
2759
2779
  * @param {string} [network]
2760
2780
  * @param {string} [addressTag] Secondary address identifier for coins like XRP,XMR etc.
2761
2781
  * @param {boolean} [transactionFeeFlag] When making internal transfer, `true` for returning the fee to the destination account; `false` for returning the fee back to the departure account. Default `false`.
@@ -2899,6 +2919,28 @@ var TravelRuleApi = class {
2899
2919
  { isSigned: true }
2900
2920
  );
2901
2921
  }
2922
+ /**
2923
+ * Fetch address verification list
2924
+ *
2925
+ * Weight: 10
2926
+ *
2927
+ * @summary Fetch address verification list (USER_DATA)
2928
+ * @returns {Promise<RestApiResponse<FetchAddressVerificationListResponse>>}
2929
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2930
+ * @memberof TravelRuleApi
2931
+ * @see {@link https://developers.binance.com/docs/wallet/travel-rule/address-verification-list Binance API Documentation}
2932
+ */
2933
+ async fetchAddressVerificationList() {
2934
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchAddressVerificationList();
2935
+ return (0, import_common5.sendRequest)(
2936
+ this.configuration,
2937
+ localVarAxiosArgs.endpoint,
2938
+ localVarAxiosArgs.method,
2939
+ localVarAxiosArgs.params,
2940
+ localVarAxiosArgs?.timeUnit,
2941
+ { isSigned: true }
2942
+ );
2943
+ }
2902
2944
  /**
2903
2945
  * Fetch the onboarded VASP list for local entities that required travel rule.
2904
2946
  *
@@ -3762,6 +3804,19 @@ var RestAPI = class {
3762
3804
  depositHistoryTravelRule(requestParameters = {}) {
3763
3805
  return this.travelRuleApi.depositHistoryTravelRule(requestParameters);
3764
3806
  }
3807
+ /**
3808
+ * Fetch address verification list
3809
+ *
3810
+ * Weight: 10
3811
+ *
3812
+ * @summary Fetch address verification list (USER_DATA)
3813
+ * @returns {Promise<RestApiResponse<FetchAddressVerificationListResponse>>}
3814
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3815
+ * @see {@link https://developers.binance.com/docs/wallet/travel-rule/address-verification-list Binance API Documentation}
3816
+ */
3817
+ fetchAddressVerificationList() {
3818
+ return this.travelRuleApi.fetchAddressVerificationList();
3819
+ }
3765
3820
  /**
3766
3821
  * Fetch the onboarded VASP list for local entities that required travel rule.
3767
3822
  *