@freelog/tools-lib 0.1.196 → 0.1.198
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/service-API/payment.d.ts +20 -2
- package/dist/tools-lib.cjs.development.js +17 -15
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +17 -15
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/payment.ts +39 -16
package/package.json
CHANGED
|
@@ -51,7 +51,7 @@ interface UpdateFinancialAccountParamsType {
|
|
|
51
51
|
accountId: string; // 金融账户ID
|
|
52
52
|
certNo: string; // 证件号码;例如身份证号
|
|
53
53
|
name: string; // 证件上的名称;例如身份证上的姓名
|
|
54
|
-
certValidityType:
|
|
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
|
|
@@ -160,17 +175,25 @@ export function queryWithdrawCashList(params: QueryWithdrawCashListParamsType, c
|
|
|
160
175
|
}
|
|
161
176
|
|
|
162
177
|
// 交易记录分页列表查询
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
//
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
178
|
+
interface QueryTransactionListParamsType {
|
|
179
|
+
skip?: number;
|
|
180
|
+
limit?: number;
|
|
181
|
+
ownerId: number; // 交易记录所属者ID; 根据所属者类型动态赋值userId或nodeId
|
|
182
|
+
ownerType: 1 | 2; // 交易记录所属者类型; 1:用户 2:节点
|
|
183
|
+
transactionStatus?: 1 | 2 | 3; // 1:交易成功 2:交易成功但是存在退款 3:交易失败
|
|
184
|
+
businessType?: 'ContractRoutinePayment';
|
|
185
|
+
minTransactionAmount?: number;
|
|
186
|
+
maxTransactionAmount?: number;
|
|
187
|
+
startTransactionDate?: string;
|
|
188
|
+
endTransactionDate?: string;
|
|
189
|
+
keywords?: string;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export function queryTransactionList(params: QueryTransactionListParamsType, config?: AxiosRequestConfig) {
|
|
193
|
+
return FUtil.Request({
|
|
194
|
+
method: 'GET',
|
|
195
|
+
url: `/v3/transactions/records`,
|
|
196
|
+
params: params,
|
|
197
|
+
...config,
|
|
198
|
+
});
|
|
199
|
+
}
|