@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.mjs CHANGED
@@ -10,7 +10,7 @@ import { ConfigurationRestAPI as ConfigurationRestAPI7, WALLET_REST_API_PROD_URL
10
10
 
11
11
  // package.json
12
12
  var name = "@binance/wallet";
13
- var version = "5.0.1";
13
+ var version = "6.0.0";
14
14
 
15
15
  // src/rest-api/index.ts
16
16
  var rest_api_exports = {};
@@ -1771,7 +1771,7 @@ var CapitalApiAxiosParamCreator = function(configuration) {
1771
1771
  * @param {string} coin
1772
1772
  * @param {string} address
1773
1773
  * @param {number} amount
1774
- * @param {string} [withdrawOrderId]
1774
+ * @param {string} [withdrawOrderId] client side id for withdrawal, if provided in POST `/sapi/v1/capital/withdraw/apply`, can be used here for query.
1775
1775
  * @param {string} [network]
1776
1776
  * @param {string} [addressTag] Secondary address identifier for coins like XRP,XMR etc.
1777
1777
  * @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`.
@@ -1840,7 +1840,7 @@ var CapitalApiAxiosParamCreator = function(configuration) {
1840
1840
  *
1841
1841
  * @summary Withdraw History (supporting network) (USER_DATA)
1842
1842
  * @param {string} [coin]
1843
- * @param {string} [withdrawOrderId]
1843
+ * @param {string} [withdrawOrderId] client side id for withdrawal, if provided in POST `/sapi/v1/capital/withdraw/apply`, can be used here for query.
1844
1844
  * @param {number} [status] 0(0:Email Sent, 2:Awaiting Approval 3:Rejected 4:Processing 6:Completed)
1845
1845
  * @param {number} [offset] Default: 0
1846
1846
  * @param {number} [limit] min 7, max 30, default 7
@@ -2435,6 +2435,26 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2435
2435
  timeUnit: _timeUnit
2436
2436
  };
2437
2437
  },
2438
+ /**
2439
+ * Fetch address verification list
2440
+ *
2441
+ * Weight: 10
2442
+ *
2443
+ * @summary Fetch address verification list (USER_DATA)
2444
+ *
2445
+ * @throws {RequiredError}
2446
+ */
2447
+ fetchAddressVerificationList: async () => {
2448
+ const localVarQueryParameter = {};
2449
+ let _timeUnit;
2450
+ if ("timeUnit" in configuration) _timeUnit = configuration.timeUnit;
2451
+ return {
2452
+ endpoint: "/sapi/v1/addressVerify/list",
2453
+ method: "GET",
2454
+ params: localVarQueryParameter,
2455
+ timeUnit: _timeUnit
2456
+ };
2457
+ },
2438
2458
  /**
2439
2459
  * Fetch the onboarded VASP list for local entities that required travel rule.
2440
2460
  *
@@ -2587,7 +2607,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2587
2607
  * @summary Withdraw History (for local entities that require travel rule) (supporting network) (USER_DATA)
2588
2608
  * @param {string} [trId] Comma(,) separated list of travel rule record Ids.
2589
2609
  * @param {string} [txId]
2590
- * @param {string} [withdrawOrderId]
2610
+ * @param {string} [withdrawOrderId] client side id for withdrawal, if provided in POST `/sapi/v1/capital/withdraw/apply`, can be used here for query.
2591
2611
  * @param {string} [network]
2592
2612
  * @param {string} [coin]
2593
2613
  * @param {number} [travelRuleStatus] 0:Completed,1:Pending,2:Failed
@@ -2666,7 +2686,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2666
2686
  * @summary Withdraw History V2 (for local entities that require travel rule) (supporting network) (USER_DATA)
2667
2687
  * @param {string} [trId] Comma(,) separated list of travel rule record Ids.
2668
2688
  * @param {string} [txId]
2669
- * @param {string} [withdrawOrderId]
2689
+ * @param {string} [withdrawOrderId] client side id for withdrawal, if provided in POST `/sapi/v1/capital/withdraw/apply`, can be used here for query.
2670
2690
  * @param {string} [network]
2671
2691
  * @param {string} [coin]
2672
2692
  * @param {number} [travelRuleStatus] 0:Completed,1:Pending,2:Failed
@@ -2737,7 +2757,7 @@ var TravelRuleApiAxiosParamCreator = function(configuration) {
2737
2757
  * @param {string} address
2738
2758
  * @param {number} amount
2739
2759
  * @param {string} questionnaire JSON format questionnaire answers.
2740
- * @param {string} [withdrawOrderId]
2760
+ * @param {string} [withdrawOrderId] client side id for withdrawal, if provided in POST `/sapi/v1/capital/withdraw/apply`, can be used here for query.
2741
2761
  * @param {string} [network]
2742
2762
  * @param {string} [addressTag] Secondary address identifier for coins like XRP,XMR etc.
2743
2763
  * @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`.
@@ -2881,6 +2901,28 @@ var TravelRuleApi = class {
2881
2901
  { isSigned: true }
2882
2902
  );
2883
2903
  }
2904
+ /**
2905
+ * Fetch address verification list
2906
+ *
2907
+ * Weight: 10
2908
+ *
2909
+ * @summary Fetch address verification list (USER_DATA)
2910
+ * @returns {Promise<RestApiResponse<FetchAddressVerificationListResponse>>}
2911
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
2912
+ * @memberof TravelRuleApi
2913
+ * @see {@link https://developers.binance.com/docs/wallet/travel-rule/address-verification-list Binance API Documentation}
2914
+ */
2915
+ async fetchAddressVerificationList() {
2916
+ const localVarAxiosArgs = await this.localVarAxiosParamCreator.fetchAddressVerificationList();
2917
+ return sendRequest5(
2918
+ this.configuration,
2919
+ localVarAxiosArgs.endpoint,
2920
+ localVarAxiosArgs.method,
2921
+ localVarAxiosArgs.params,
2922
+ localVarAxiosArgs?.timeUnit,
2923
+ { isSigned: true }
2924
+ );
2925
+ }
2884
2926
  /**
2885
2927
  * Fetch the onboarded VASP list for local entities that required travel rule.
2886
2928
  *
@@ -3744,6 +3786,19 @@ var RestAPI = class {
3744
3786
  depositHistoryTravelRule(requestParameters = {}) {
3745
3787
  return this.travelRuleApi.depositHistoryTravelRule(requestParameters);
3746
3788
  }
3789
+ /**
3790
+ * Fetch address verification list
3791
+ *
3792
+ * Weight: 10
3793
+ *
3794
+ * @summary Fetch address verification list (USER_DATA)
3795
+ * @returns {Promise<RestApiResponse<FetchAddressVerificationListResponse>>}
3796
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
3797
+ * @see {@link https://developers.binance.com/docs/wallet/travel-rule/address-verification-list Binance API Documentation}
3798
+ */
3799
+ fetchAddressVerificationList() {
3800
+ return this.travelRuleApi.fetchAddressVerificationList();
3801
+ }
3747
3802
  /**
3748
3803
  * Fetch the onboarded VASP list for local entities that required travel rule.
3749
3804
  *