@freelog/tools-lib 0.1.195 → 0.1.197

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.
@@ -16,11 +16,20 @@ 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: 0 | 1;
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;
22
32
  bankName: string;
23
- cardName: string;
24
33
  cardNo: string;
25
34
  provId: string;
26
35
  areaId: string;
@@ -32,10 +41,19 @@ interface QueryFinancialAccountInfoParamsType {
32
41
  ownerId: number;
33
42
  }
34
43
  export declare function queryFinancialAccountInfo(params: QueryFinancialAccountInfoParamsType, config?: AxiosRequestConfig): Promise<any>;
44
+ interface QueryFinancialAccountInfo2ParamsType {
45
+ accountId: string;
46
+ }
47
+ export declare function queryFinancialAccountInfo2({ accountId }: QueryFinancialAccountInfo2ParamsType, config?: AxiosRequestConfig): Promise<any>;
35
48
  interface QueryBindWithdrawCardParamsType {
36
49
  accountId: string;
37
50
  }
38
51
  export declare function queryBindWithdrawCard({ accountId }: QueryBindWithdrawCardParamsType, config?: AxiosRequestConfig): Promise<any>;
52
+ interface QueryWithdrawStatusParamsType {
53
+ ownerId: number;
54
+ accountType: 1 | 2;
55
+ }
56
+ export declare function queryWithdrawStatus(params: QueryWithdrawStatusParamsType, config?: AxiosRequestConfig): Promise<any>;
39
57
  interface WithdrawCashParamsType {
40
58
  accountId: string;
41
59
  transactionAmount: number;
@@ -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: 'GET',
3078
+ method: 'POST',
3079
3079
  url: "/v2/translate/translate-config/list4Client",
3080
- params: params
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 bindWithdrawCard(_ref, config) {
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,13 +3452,27 @@ function queryFinancialAccountInfo(params, config) {
3442
3452
  params: params
3443
3453
  }, config));
3444
3454
  }
3445
- function queryBindWithdrawCard(_ref2, config) {
3446
- var accountId = _ref2.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"
3450
3467
  }, config));
3451
3468
  }
3469
+ function queryWithdrawStatus(params, config) {
3470
+ return FUtil.Request(_extends({
3471
+ method: 'GET',
3472
+ url: "/v3/transactions/withdrawCash/check",
3473
+ params: params
3474
+ }, config));
3475
+ }
3452
3476
  function withdrawCash(params, config) {
3453
3477
  return FUtil.Request(_extends({
3454
3478
  method: 'POST',
@@ -3482,9 +3506,12 @@ var Payment = {
3482
3506
  __proto__: null,
3483
3507
  uploadIDCard: uploadIDCard,
3484
3508
  openFinancialAccount: openFinancialAccount,
3509
+ updateFinancialAccount: updateFinancialAccount,
3485
3510
  bindWithdrawCard: bindWithdrawCard,
3486
3511
  queryFinancialAccountInfo: queryFinancialAccountInfo,
3512
+ queryFinancialAccountInfo2: queryFinancialAccountInfo2,
3487
3513
  queryBindWithdrawCard: queryBindWithdrawCard,
3514
+ queryWithdrawStatus: queryWithdrawStatus,
3488
3515
  withdrawCash: withdrawCash,
3489
3516
  queryWithdrawCashList: queryWithdrawCashList
3490
3517
  };