@freelog/tools-lib 0.1.196 → 0.1.197

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.196",
3
+ "version": "0.1.197",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -51,7 +51,7 @@ interface UpdateFinancialAccountParamsType {
51
51
  accountId: string; // 金融账户ID
52
52
  certNo: string; // 证件号码;例如身份证号
53
53
  name: string; // 证件上的名称;例如身份证上的姓名
54
- certValidityType: 1 | 2; // 证件有效期是否是长期; 0:非长期有效 1:长期有效
54
+ certValidityType: 0 | 1; // 证件有效期是否是长期; 0:非长期有效 1:长期有效
55
55
  certBeginDate: string; // 证件有效期开始日期
56
56
  certEndDate?: string; // 证件有效期结束日期(长期有效时此处不传)
57
57
  certImagePaths: string[]; // 证件照保密存放的path部分; 身份证号码识别接口会返回
@@ -71,7 +71,7 @@ interface BindWithdrawCardParamsType {
71
71
  accountId: string; // 金融账户ID
72
72
  cardType: 0 | 1 | 2 | 4; // 0:对公,1:对私法人,2:对私非法人,4:对公非同名;个人商户/用户不支持对公类型,对私非法人类型;
73
73
  bankName: string; // 开户行名称
74
- cardName: string; // 持卡人姓名
74
+ // cardName: string; // 持卡人姓名
75
75
  cardNo: string; // 卡号
76
76
  provId: string; // 银行所在省ID
77
77
  areaId: string; // 银行所在城市ID
@@ -128,6 +128,21 @@ export function queryBindWithdrawCard({accountId}: QueryBindWithdrawCardParamsTy
128
128
  });
129
129
  }
130
130
 
131
+ // 查询提现状态
132
+ interface QueryWithdrawStatusParamsType {
133
+ ownerId: number; // 账户所有者ID; 根据账户类型动态赋值userId或nodeId
134
+ accountType: 1 | 2; // 账户类型(1:个人账户 2:节点账户)
135
+ }
136
+
137
+ export function queryWithdrawStatus(params: QueryWithdrawStatusParamsType, config?: AxiosRequestConfig) {
138
+ return FUtil.Request({
139
+ method: 'GET',
140
+ url: `/v3/transactions/withdrawCash/check`,
141
+ params: params,
142
+ ...config,
143
+ });
144
+ }
145
+
131
146
  // 用户主动提现
132
147
  interface WithdrawCashParamsType {
133
148
  accountId: string; // 金融账户ID