@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
|
@@ -16,6 +16,16 @@ interface OpenFinancialAccountParamsType {
|
|
|
16
16
|
certImagePaths: string[];
|
|
17
17
|
}
|
|
18
18
|
export declare function openFinancialAccount(params: OpenFinancialAccountParamsType, config?: AxiosRequestConfig): Promise<any>;
|
|
19
|
+
interface UpdateFinancialAccountParamsType {
|
|
20
|
+
accountId: string;
|
|
21
|
+
certNo: string;
|
|
22
|
+
name: string;
|
|
23
|
+
certValidityType: 1 | 2;
|
|
24
|
+
certBeginDate: string;
|
|
25
|
+
certEndDate?: string;
|
|
26
|
+
certImagePaths: string[];
|
|
27
|
+
}
|
|
28
|
+
export declare function updateFinancialAccount({ accountId, ...params }: UpdateFinancialAccountParamsType, config?: AxiosRequestConfig): Promise<any>;
|
|
19
29
|
interface BindWithdrawCardParamsType {
|
|
20
30
|
accountId: string;
|
|
21
31
|
cardType: 0 | 1 | 2 | 4;
|
|
@@ -32,6 +42,10 @@ interface QueryFinancialAccountInfoParamsType {
|
|
|
32
42
|
ownerId: number;
|
|
33
43
|
}
|
|
34
44
|
export declare function queryFinancialAccountInfo(params: QueryFinancialAccountInfoParamsType, config?: AxiosRequestConfig): Promise<any>;
|
|
45
|
+
interface QueryFinancialAccountInfo2ParamsType {
|
|
46
|
+
accountId: string;
|
|
47
|
+
}
|
|
48
|
+
export declare function queryFinancialAccountInfo2({ accountId }: QueryFinancialAccountInfo2ParamsType, config?: AxiosRequestConfig): Promise<any>;
|
|
35
49
|
interface QueryBindWithdrawCardParamsType {
|
|
36
50
|
accountId: string;
|
|
37
51
|
}
|
|
@@ -13,6 +13,8 @@ interface PoliciesListParamsType {
|
|
|
13
13
|
}
|
|
14
14
|
export declare function policiesList(params: PoliciesListParamsType): Promise<any>;
|
|
15
15
|
interface PolicyTemplatesParamsType {
|
|
16
|
+
resourceTypeCodes4Resource?: string[];
|
|
17
|
+
resourceTypeCodes4Presentable?: string[];
|
|
16
18
|
}
|
|
17
19
|
export declare function policyTemplates(params?: PolicyTemplatesParamsType): Promise<any>;
|
|
18
20
|
interface PolicyReCompileParamsType {
|
|
@@ -3075,9 +3075,9 @@ function policyTemplates(params) {
|
|
|
3075
3075
|
params = {};
|
|
3076
3076
|
}
|
|
3077
3077
|
return FUtil.Request({
|
|
3078
|
-
method: '
|
|
3078
|
+
method: 'POST',
|
|
3079
3079
|
url: "/v2/translate/translate-config/list4Client",
|
|
3080
|
-
|
|
3080
|
+
data: params
|
|
3081
3081
|
});
|
|
3082
3082
|
}
|
|
3083
3083
|
function policyReCompile(data) {
|
|
@@ -3402,7 +3402,8 @@ var ResourceType = {
|
|
|
3402
3402
|
getInfoByCodeOrName: getInfoByCodeOrName
|
|
3403
3403
|
};
|
|
3404
3404
|
|
|
3405
|
-
var _excluded$a = ["accountId"]
|
|
3405
|
+
var _excluded$a = ["accountId"],
|
|
3406
|
+
_excluded2$7 = ["accountId"];
|
|
3406
3407
|
function uploadIDCard(params, config) {
|
|
3407
3408
|
var formData = new FormData();
|
|
3408
3409
|
for (var _i = 0, _Object$entries = Object.entries(params); _i < _Object$entries.length; _i++) {
|
|
@@ -3426,9 +3427,18 @@ function openFinancialAccount(params, config) {
|
|
|
3426
3427
|
data: params
|
|
3427
3428
|
}, config));
|
|
3428
3429
|
}
|
|
3429
|
-
function
|
|
3430
|
+
function updateFinancialAccount(_ref, config) {
|
|
3430
3431
|
var accountId = _ref.accountId,
|
|
3431
3432
|
params = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3433
|
+
return FUtil.Request(_extends({
|
|
3434
|
+
method: 'PUT',
|
|
3435
|
+
url: "/v3/transactions/accounts/" + accountId,
|
|
3436
|
+
data: params
|
|
3437
|
+
}, config));
|
|
3438
|
+
}
|
|
3439
|
+
function bindWithdrawCard(_ref2, config) {
|
|
3440
|
+
var accountId = _ref2.accountId,
|
|
3441
|
+
params = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
|
|
3432
3442
|
return FUtil.Request(_extends({
|
|
3433
3443
|
method: 'POST',
|
|
3434
3444
|
url: "/v3/transactions/accounts/" + accountId + "/bindCashCard",
|
|
@@ -3442,8 +3452,15 @@ function queryFinancialAccountInfo(params, config) {
|
|
|
3442
3452
|
params: params
|
|
3443
3453
|
}, config));
|
|
3444
3454
|
}
|
|
3445
|
-
function
|
|
3446
|
-
var accountId =
|
|
3455
|
+
function queryFinancialAccountInfo2(_ref3, config) {
|
|
3456
|
+
var accountId = _ref3.accountId;
|
|
3457
|
+
return FUtil.Request(_extends({
|
|
3458
|
+
method: 'GET',
|
|
3459
|
+
url: "/v3/transactions/accounts/" + accountId
|
|
3460
|
+
}, config));
|
|
3461
|
+
}
|
|
3462
|
+
function queryBindWithdrawCard(_ref4, config) {
|
|
3463
|
+
var accountId = _ref4.accountId;
|
|
3447
3464
|
return FUtil.Request(_extends({
|
|
3448
3465
|
method: 'GET',
|
|
3449
3466
|
url: "/v3/transactions/accounts/" + accountId + "/cashCard"
|
|
@@ -3482,8 +3499,10 @@ var Payment = {
|
|
|
3482
3499
|
__proto__: null,
|
|
3483
3500
|
uploadIDCard: uploadIDCard,
|
|
3484
3501
|
openFinancialAccount: openFinancialAccount,
|
|
3502
|
+
updateFinancialAccount: updateFinancialAccount,
|
|
3485
3503
|
bindWithdrawCard: bindWithdrawCard,
|
|
3486
3504
|
queryFinancialAccountInfo: queryFinancialAccountInfo,
|
|
3505
|
+
queryFinancialAccountInfo2: queryFinancialAccountInfo2,
|
|
3487
3506
|
queryBindWithdrawCard: queryBindWithdrawCard,
|
|
3488
3507
|
withdrawCash: withdrawCash,
|
|
3489
3508
|
queryWithdrawCashList: queryWithdrawCashList
|