@freelog/tools-lib 0.1.195 → 0.1.196
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 +14 -0
- package/dist/service-API/policies.d.ts +2 -0
- package/dist/tools-lib.cjs.development.js +25 -6
- 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 +25 -6
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/payment.ts +35 -1
- package/src/service-API/policies.ts +95 -93
package/dist/tools-lib.esm.js
CHANGED
|
@@ -3069,9 +3069,9 @@ function policyTemplates(params) {
|
|
|
3069
3069
|
params = {};
|
|
3070
3070
|
}
|
|
3071
3071
|
return FUtil.Request({
|
|
3072
|
-
method: '
|
|
3072
|
+
method: 'POST',
|
|
3073
3073
|
url: "/v2/translate/translate-config/list4Client",
|
|
3074
|
-
|
|
3074
|
+
data: params
|
|
3075
3075
|
});
|
|
3076
3076
|
}
|
|
3077
3077
|
function policyReCompile(data) {
|
|
@@ -3396,7 +3396,8 @@ var ResourceType = {
|
|
|
3396
3396
|
getInfoByCodeOrName: getInfoByCodeOrName
|
|
3397
3397
|
};
|
|
3398
3398
|
|
|
3399
|
-
var _excluded$a = ["accountId"]
|
|
3399
|
+
var _excluded$a = ["accountId"],
|
|
3400
|
+
_excluded2$7 = ["accountId"];
|
|
3400
3401
|
function uploadIDCard(params, config) {
|
|
3401
3402
|
var formData = new FormData();
|
|
3402
3403
|
for (var _i = 0, _Object$entries = Object.entries(params); _i < _Object$entries.length; _i++) {
|
|
@@ -3420,9 +3421,18 @@ function openFinancialAccount(params, config) {
|
|
|
3420
3421
|
data: params
|
|
3421
3422
|
}, config));
|
|
3422
3423
|
}
|
|
3423
|
-
function
|
|
3424
|
+
function updateFinancialAccount(_ref, config) {
|
|
3424
3425
|
var accountId = _ref.accountId,
|
|
3425
3426
|
params = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3427
|
+
return FUtil.Request(_extends({
|
|
3428
|
+
method: 'PUT',
|
|
3429
|
+
url: "/v3/transactions/accounts/" + accountId,
|
|
3430
|
+
data: params
|
|
3431
|
+
}, config));
|
|
3432
|
+
}
|
|
3433
|
+
function bindWithdrawCard(_ref2, config) {
|
|
3434
|
+
var accountId = _ref2.accountId,
|
|
3435
|
+
params = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
|
|
3426
3436
|
return FUtil.Request(_extends({
|
|
3427
3437
|
method: 'POST',
|
|
3428
3438
|
url: "/v3/transactions/accounts/" + accountId + "/bindCashCard",
|
|
@@ -3436,8 +3446,15 @@ function queryFinancialAccountInfo(params, config) {
|
|
|
3436
3446
|
params: params
|
|
3437
3447
|
}, config));
|
|
3438
3448
|
}
|
|
3439
|
-
function
|
|
3440
|
-
var accountId =
|
|
3449
|
+
function queryFinancialAccountInfo2(_ref3, config) {
|
|
3450
|
+
var accountId = _ref3.accountId;
|
|
3451
|
+
return FUtil.Request(_extends({
|
|
3452
|
+
method: 'GET',
|
|
3453
|
+
url: "/v3/transactions/accounts/" + accountId
|
|
3454
|
+
}, config));
|
|
3455
|
+
}
|
|
3456
|
+
function queryBindWithdrawCard(_ref4, config) {
|
|
3457
|
+
var accountId = _ref4.accountId;
|
|
3441
3458
|
return FUtil.Request(_extends({
|
|
3442
3459
|
method: 'GET',
|
|
3443
3460
|
url: "/v3/transactions/accounts/" + accountId + "/cashCard"
|
|
@@ -3476,8 +3493,10 @@ var Payment = {
|
|
|
3476
3493
|
__proto__: null,
|
|
3477
3494
|
uploadIDCard: uploadIDCard,
|
|
3478
3495
|
openFinancialAccount: openFinancialAccount,
|
|
3496
|
+
updateFinancialAccount: updateFinancialAccount,
|
|
3479
3497
|
bindWithdrawCard: bindWithdrawCard,
|
|
3480
3498
|
queryFinancialAccountInfo: queryFinancialAccountInfo,
|
|
3499
|
+
queryFinancialAccountInfo2: queryFinancialAccountInfo2,
|
|
3481
3500
|
queryBindWithdrawCard: queryBindWithdrawCard,
|
|
3482
3501
|
withdrawCash: withdrawCash,
|
|
3483
3502
|
queryWithdrawCashList: queryWithdrawCashList
|