@freelog/tools-lib 0.1.187 → 0.1.190
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 +66 -14
- 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 +66 -14
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +8 -0
- package/package.json +1 -1
- package/src/service-API/payment.ts +60 -0
- package/src/utils/linkTo.ts +18 -0
|
@@ -32,4 +32,19 @@ interface QueryFinancialAccountInfoParamsType {
|
|
|
32
32
|
ownerId: number;
|
|
33
33
|
}
|
|
34
34
|
export declare function queryFinancialAccountInfo(params: QueryFinancialAccountInfoParamsType, config?: AxiosRequestConfig): Promise<any>;
|
|
35
|
+
interface QueryBindWithdrawCardParamsType {
|
|
36
|
+
accountId: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function queryBindWithdrawCard({ accountId }: QueryBindWithdrawCardParamsType, config?: AxiosRequestConfig): Promise<any>;
|
|
39
|
+
interface WithdrawCashParamsType {
|
|
40
|
+
accountId: string;
|
|
41
|
+
transactionAmount: number;
|
|
42
|
+
}
|
|
43
|
+
export declare function withdrawCash(params: WithdrawCashParamsType, config?: AxiosRequestConfig): Promise<any>;
|
|
44
|
+
interface QueryWithdrawCashListParamsType {
|
|
45
|
+
accountId: string;
|
|
46
|
+
skip?: number;
|
|
47
|
+
limit?: number;
|
|
48
|
+
}
|
|
49
|
+
export declare function queryWithdrawCashList(params: QueryWithdrawCashListParamsType, config?: AxiosRequestConfig): Promise<any>;
|
|
35
50
|
export {};
|
|
@@ -601,34 +601,46 @@ function globalSearch(_ref49) {
|
|
|
601
601
|
search: search
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
|
+
function settlementInfo(_ref50) {
|
|
605
|
+
var nodeID = _ref50.nodeID;
|
|
606
|
+
return "/settlementInfo" + handleQuery({
|
|
607
|
+
nodeID: nodeID
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
function settlementInfoEditor(_ref51) {
|
|
611
|
+
var nodeID = _ref51.nodeID;
|
|
612
|
+
return "/settlementEditor" + handleQuery({
|
|
613
|
+
nodeID: nodeID
|
|
614
|
+
});
|
|
615
|
+
}
|
|
604
616
|
function login(_temp19) {
|
|
605
|
-
var
|
|
606
|
-
goTo =
|
|
617
|
+
var _ref52 = _temp19 === void 0 ? {} : _temp19,
|
|
618
|
+
goTo = _ref52.goTo;
|
|
607
619
|
return "/login" + handleQuery({
|
|
608
620
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
609
621
|
});
|
|
610
622
|
}
|
|
611
623
|
function logon(_temp20) {
|
|
612
|
-
var
|
|
613
|
-
goTo =
|
|
614
|
-
params = _objectWithoutPropertiesLoose(
|
|
624
|
+
var _ref53 = _temp20 === void 0 ? {} : _temp20,
|
|
625
|
+
goTo = _ref53.goTo,
|
|
626
|
+
params = _objectWithoutPropertiesLoose(_ref53, _excluded6);
|
|
615
627
|
return "/logon" + handleQuery(_extends({
|
|
616
628
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
617
629
|
}, params));
|
|
618
630
|
}
|
|
619
631
|
function bind(_temp21) {
|
|
620
|
-
var
|
|
621
|
-
goTo =
|
|
622
|
-
returnUrl =
|
|
623
|
-
params = _objectWithoutPropertiesLoose(
|
|
632
|
+
var _ref54 = _temp21 === void 0 ? {} : _temp21,
|
|
633
|
+
goTo = _ref54.goTo,
|
|
634
|
+
returnUrl = _ref54.returnUrl,
|
|
635
|
+
params = _objectWithoutPropertiesLoose(_ref54, _excluded7);
|
|
624
636
|
return "/bind" + handleQuery(_extends({
|
|
625
637
|
goTo: goTo ? encodeURIComponent(goTo) : undefined,
|
|
626
638
|
returnUrl: returnUrl ? encodeURIComponent(returnUrl) : undefined
|
|
627
639
|
}, params));
|
|
628
640
|
}
|
|
629
641
|
function retrieveUserPassword(_temp22) {
|
|
630
|
-
var
|
|
631
|
-
goTo =
|
|
642
|
+
var _ref55 = _temp22 === void 0 ? {} : _temp22,
|
|
643
|
+
goTo = _ref55.goTo;
|
|
632
644
|
return "/retrieve" + handleQuery({
|
|
633
645
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
634
646
|
});
|
|
@@ -650,8 +662,8 @@ function reward(_temp26) {
|
|
|
650
662
|
return "/logged/reward";
|
|
651
663
|
}
|
|
652
664
|
function contract(_temp27) {
|
|
653
|
-
var
|
|
654
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
665
|
+
var _ref60 = _temp27 === void 0 ? {} : _temp27,
|
|
666
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref60), _ref60));
|
|
655
667
|
return "/logged/contract" + handleQuery(_extends({}, params));
|
|
656
668
|
}
|
|
657
669
|
function setting(_temp28) {
|
|
@@ -734,6 +746,8 @@ var LinkTo = {
|
|
|
734
746
|
nodeFreeze: nodeFreeze,
|
|
735
747
|
resourceFreeze: resourceFreeze,
|
|
736
748
|
globalSearch: globalSearch,
|
|
749
|
+
settlementInfo: settlementInfo,
|
|
750
|
+
settlementInfoEditor: settlementInfoEditor,
|
|
737
751
|
login: login,
|
|
738
752
|
logon: logon,
|
|
739
753
|
bind: bind,
|
|
@@ -3387,13 +3401,51 @@ function queryFinancialAccountInfo(params, config) {
|
|
|
3387
3401
|
params: params
|
|
3388
3402
|
}, config));
|
|
3389
3403
|
}
|
|
3404
|
+
function queryBindWithdrawCard(_ref2, config) {
|
|
3405
|
+
var accountId = _ref2.accountId;
|
|
3406
|
+
return FUtil.Request(_extends({
|
|
3407
|
+
method: 'GET',
|
|
3408
|
+
url: "/v3/transactions/accounts/" + accountId + "/cashCard"
|
|
3409
|
+
}, config));
|
|
3410
|
+
}
|
|
3411
|
+
function withdrawCash(params, config) {
|
|
3412
|
+
return FUtil.Request(_extends({
|
|
3413
|
+
method: 'POST',
|
|
3414
|
+
url: "/v3/transactions/withdrawCash",
|
|
3415
|
+
data: params
|
|
3416
|
+
}, config));
|
|
3417
|
+
}
|
|
3418
|
+
function queryWithdrawCashList(params, config) {
|
|
3419
|
+
return FUtil.Request(_extends({
|
|
3420
|
+
method: 'GET',
|
|
3421
|
+
url: "/v3/transactions/withdrawCash/records",
|
|
3422
|
+
params: params
|
|
3423
|
+
}, config));
|
|
3424
|
+
}
|
|
3425
|
+
// 交易记录分页列表查询
|
|
3426
|
+
// interface QueryTransactionListParamsType {
|
|
3427
|
+
// skip?: number;
|
|
3428
|
+
// limit?: number;
|
|
3429
|
+
// accountId: string;
|
|
3430
|
+
// }
|
|
3431
|
+
// export function queryTransactionList(params: QueryTransactionListParamsType, config?: AxiosRequestConfig) {
|
|
3432
|
+
// return FUtil.Request({
|
|
3433
|
+
// method: 'GET',
|
|
3434
|
+
// url: `/v3/transactions/transaction/list`,
|
|
3435
|
+
// params: params,
|
|
3436
|
+
// ...config,
|
|
3437
|
+
// });
|
|
3438
|
+
// }
|
|
3390
3439
|
|
|
3391
3440
|
var Payment = {
|
|
3392
3441
|
__proto__: null,
|
|
3393
3442
|
uploadIDCard: uploadIDCard,
|
|
3394
3443
|
openFinancialAccount: openFinancialAccount,
|
|
3395
3444
|
bindWithdrawCard: bindWithdrawCard,
|
|
3396
|
-
queryFinancialAccountInfo: queryFinancialAccountInfo
|
|
3445
|
+
queryFinancialAccountInfo: queryFinancialAccountInfo,
|
|
3446
|
+
queryBindWithdrawCard: queryBindWithdrawCard,
|
|
3447
|
+
withdrawCash: withdrawCash,
|
|
3448
|
+
queryWithdrawCashList: queryWithdrawCashList
|
|
3397
3449
|
};
|
|
3398
3450
|
|
|
3399
3451
|
var FServiceAPI = {
|