@freelog/tools-lib 0.1.187 → 0.1.189
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 +15 -0
- package/dist/tools-lib.cjs.development.js +39 -1
- 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 +39 -1
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/payment.ts +60 -0
package/package.json
CHANGED
|
@@ -80,3 +80,63 @@ export function queryFinancialAccountInfo(params: QueryFinancialAccountInfoParam
|
|
|
80
80
|
...config,
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
+
|
|
84
|
+
// 查询绑定提现卡
|
|
85
|
+
interface QueryBindWithdrawCardParamsType {
|
|
86
|
+
accountId: string; // 金融账户ID
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function queryBindWithdrawCard({accountId}: QueryBindWithdrawCardParamsType, config?: AxiosRequestConfig) {
|
|
90
|
+
return FUtil.Request({
|
|
91
|
+
method: 'GET',
|
|
92
|
+
url: `/v3/transactions/accounts/${accountId}/cashCard`,
|
|
93
|
+
...config,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// 用户主动提现
|
|
98
|
+
interface WithdrawCashParamsType {
|
|
99
|
+
accountId: string; // 金融账户ID
|
|
100
|
+
transactionAmount: number; // 提现金额; 最多保留两位小数
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function withdrawCash(params: WithdrawCashParamsType, config?: AxiosRequestConfig) {
|
|
104
|
+
return FUtil.Request({
|
|
105
|
+
method: 'POST',
|
|
106
|
+
url: `/v3/transactions/withdrawCash`,
|
|
107
|
+
data: params,
|
|
108
|
+
...config,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// 提现记录分页列表查询
|
|
113
|
+
interface QueryWithdrawCashListParamsType {
|
|
114
|
+
accountId: string; // 金融账户ID
|
|
115
|
+
skip?: number;
|
|
116
|
+
limit?: number;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function queryWithdrawCashList(params: QueryWithdrawCashListParamsType, config?: AxiosRequestConfig) {
|
|
120
|
+
return FUtil.Request({
|
|
121
|
+
method: 'GET',
|
|
122
|
+
url: `/v3/transactions/withdrawCash/list`,
|
|
123
|
+
params: params,
|
|
124
|
+
...config,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// 交易记录分页列表查询
|
|
129
|
+
// interface QueryTransactionListParamsType {
|
|
130
|
+
// skip?: number;
|
|
131
|
+
// limit?: number;
|
|
132
|
+
// accountId: string;
|
|
133
|
+
// }
|
|
134
|
+
|
|
135
|
+
// export function queryTransactionList(params: QueryTransactionListParamsType, config?: AxiosRequestConfig) {
|
|
136
|
+
// return FUtil.Request({
|
|
137
|
+
// method: 'GET',
|
|
138
|
+
// url: `/v3/transactions/transaction/list`,
|
|
139
|
+
// params: params,
|
|
140
|
+
// ...config,
|
|
141
|
+
// });
|
|
142
|
+
// }
|