@binance/crypto-loan 3.0.0 → 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.mts CHANGED
@@ -2233,6 +2233,12 @@ interface FlexibleLoanRepayRequest {
2233
2233
  * @memberof FlexibleRateApiFlexibleLoanRepay
2234
2234
  */
2235
2235
  readonly fullRepayment?: boolean;
2236
+ /**
2237
+ * Default: 1. 1: Repayment with loan asset; 2: Repayment with collateral
2238
+ * @type {number}
2239
+ * @memberof FlexibleRateApiFlexibleLoanRepay
2240
+ */
2241
+ readonly repaymentType?: number;
2236
2242
  /**
2237
2243
  *
2238
2244
  * @type {number}
package/dist/index.d.ts CHANGED
@@ -2233,6 +2233,12 @@ interface FlexibleLoanRepayRequest {
2233
2233
  * @memberof FlexibleRateApiFlexibleLoanRepay
2234
2234
  */
2235
2235
  readonly fullRepayment?: boolean;
2236
+ /**
2237
+ * Default: 1. 1: Repayment with loan asset; 2: Repayment with collateral
2238
+ * @type {number}
2239
+ * @memberof FlexibleRateApiFlexibleLoanRepay
2240
+ */
2241
+ readonly repaymentType?: number;
2236
2242
  /**
2237
2243
  *
2238
2244
  * @type {number}
package/dist/index.js CHANGED
@@ -42,7 +42,7 @@ var import_common4 = require("@binance/common");
42
42
 
43
43
  // package.json
44
44
  var name = "@binance/crypto-loan";
45
- var version = "3.0.0";
45
+ var version = "4.0.0";
46
46
 
47
47
  // src/rest-api/index.ts
48
48
  var rest_api_exports = {};
@@ -229,11 +229,12 @@ var FlexibleRateApiAxiosParamCreator = function(configuration) {
229
229
  * @param {number} repayAmount repay amount of loanCoin
230
230
  * @param {boolean} [collateralReturn] Default: TRUE. TRUE: Return extra collateral to spot account; FALSE: Keep extra collateral in the order, and lower LTV.
231
231
  * @param {boolean} [fullRepayment] Default: FALSE. TRUE: Full repayment; FALSE: Partial repayment, based on loanAmount
232
+ * @param {number} [repaymentType] Default: 1. 1: Repayment with loan asset; 2: Repayment with collateral
232
233
  * @param {number} [recvWindow]
233
234
  *
234
235
  * @throws {RequiredError}
235
236
  */
236
- flexibleLoanRepay: async (loanCoin, collateralCoin, repayAmount, collateralReturn, fullRepayment, recvWindow) => {
237
+ flexibleLoanRepay: async (loanCoin, collateralCoin, repayAmount, collateralReturn, fullRepayment, repaymentType, recvWindow) => {
237
238
  (0, import_common.assertParamExists)("flexibleLoanRepay", "loanCoin", loanCoin);
238
239
  (0, import_common.assertParamExists)("flexibleLoanRepay", "collateralCoin", collateralCoin);
239
240
  (0, import_common.assertParamExists)("flexibleLoanRepay", "repayAmount", repayAmount);
@@ -253,6 +254,9 @@ var FlexibleRateApiAxiosParamCreator = function(configuration) {
253
254
  if (fullRepayment !== void 0 && fullRepayment !== null) {
254
255
  localVarQueryParameter["fullRepayment"] = fullRepayment;
255
256
  }
257
+ if (repaymentType !== void 0 && repaymentType !== null) {
258
+ localVarQueryParameter["repaymentType"] = repaymentType;
259
+ }
256
260
  if (recvWindow !== void 0 && recvWindow !== null) {
257
261
  localVarQueryParameter["recvWindow"] = recvWindow;
258
262
  }
@@ -706,6 +710,7 @@ var FlexibleRateApi = class {
706
710
  requestParameters?.repayAmount,
707
711
  requestParameters?.collateralReturn,
708
712
  requestParameters?.fullRepayment,
713
+ requestParameters?.repaymentType,
709
714
  requestParameters?.recvWindow
710
715
  );
711
716
  return (0, import_common.sendRequest)(