@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.
@@ -3069,9 +3069,9 @@ function policyTemplates(params) {
3069
3069
  params = {};
3070
3070
  }
3071
3071
  return FUtil.Request({
3072
- method: 'GET',
3072
+ method: 'POST',
3073
3073
  url: "/v2/translate/translate-config/list4Client",
3074
- params: params
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 bindWithdrawCard(_ref, config) {
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,13 +3446,27 @@ function queryFinancialAccountInfo(params, config) {
3436
3446
  params: params
3437
3447
  }, config));
3438
3448
  }
3439
- function queryBindWithdrawCard(_ref2, config) {
3440
- var accountId = _ref2.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"
3444
3461
  }, config));
3445
3462
  }
3463
+ function queryWithdrawStatus(params, config) {
3464
+ return FUtil.Request(_extends({
3465
+ method: 'GET',
3466
+ url: "/v3/transactions/withdrawCash/check",
3467
+ params: params
3468
+ }, config));
3469
+ }
3446
3470
  function withdrawCash(params, config) {
3447
3471
  return FUtil.Request(_extends({
3448
3472
  method: 'POST',
@@ -3476,9 +3500,12 @@ var Payment = {
3476
3500
  __proto__: null,
3477
3501
  uploadIDCard: uploadIDCard,
3478
3502
  openFinancialAccount: openFinancialAccount,
3503
+ updateFinancialAccount: updateFinancialAccount,
3479
3504
  bindWithdrawCard: bindWithdrawCard,
3480
3505
  queryFinancialAccountInfo: queryFinancialAccountInfo,
3506
+ queryFinancialAccountInfo2: queryFinancialAccountInfo2,
3481
3507
  queryBindWithdrawCard: queryBindWithdrawCard,
3508
+ queryWithdrawStatus: queryWithdrawStatus,
3482
3509
  withdrawCash: withdrawCash,
3483
3510
  queryWithdrawCashList: queryWithdrawCashList
3484
3511
  };