@antchain/riskplus 1.33.4 → 1.33.8

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/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "prepublishOnly":"tsc",
23
23
  "test-cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test"
24
24
  },
25
- "version":"1.33.4",
25
+ "version":"1.33.8",
26
26
  "dependencies":{
27
27
  "@alicloud/rpc-util":"^0.1.0",
28
28
  "@antchain/alipay-util":"^1.0.4",
package/src/client.ts CHANGED
@@ -674,12 +674,6 @@ export class FundItemDetail extends $tea.Model {
674
674
  * 199.68
675
675
  */
676
676
  frozenAmount: string;
677
- // 账户归属的入驻id
678
- /**
679
- * @example
680
- * xxx
681
- */
682
- merchantId: string;
683
677
  // 原支付金额
684
678
  /**
685
679
  * @example
@@ -692,7 +686,6 @@ export class FundItemDetail extends $tea.Model {
692
686
  availableAmount: 'available_amount',
693
687
  canRefundAmount: 'can_refund_amount',
694
688
  frozenAmount: 'frozen_amount',
695
- merchantId: 'merchant_id',
696
689
  originalAmount: 'original_amount',
697
690
  };
698
691
  }
@@ -703,7 +696,6 @@ export class FundItemDetail extends $tea.Model {
703
696
  availableAmount: 'string',
704
697
  canRefundAmount: 'string',
705
698
  frozenAmount: 'string',
706
- merchantId: 'string',
707
699
  originalAmount: 'string',
708
700
  };
709
701
  }
@@ -3505,6 +3497,75 @@ export class RtopCompanyRiskInfo extends $tea.Model {
3505
3497
  }
3506
3498
  }
3507
3499
 
3500
+ // 账户流水信息
3501
+ export class AccountDetail extends $tea.Model {
3502
+ // 商户号
3503
+ merchantNo: string;
3504
+ // 交易时间
3505
+ tradeTime: string;
3506
+ // 交易流水号
3507
+ tradeNo: string;
3508
+ // 账号
3509
+ accountNo: string;
3510
+ // 户名
3511
+ accountName?: string;
3512
+ // 交易金额
3513
+ tradeAmt: string;
3514
+ // 借贷标识 基础类型
3515
+ dcFlag: string;
3516
+ // 对手账号
3517
+ othAccountNo: string;
3518
+ // 对手户名
3519
+ othAccountName: string;
3520
+ // 对手行号
3521
+ othBankCode: string;
3522
+ // 对手行名
3523
+ othBankName: string;
3524
+ // 交易备注
3525
+ tradeRemark: string;
3526
+ // 交易后余额
3527
+ actualBalAmt?: string;
3528
+ static names(): { [key: string]: string } {
3529
+ return {
3530
+ merchantNo: 'merchant_no',
3531
+ tradeTime: 'trade_time',
3532
+ tradeNo: 'trade_no',
3533
+ accountNo: 'account_no',
3534
+ accountName: 'account_name',
3535
+ tradeAmt: 'trade_amt',
3536
+ dcFlag: 'dc_flag',
3537
+ othAccountNo: 'oth_account_no',
3538
+ othAccountName: 'oth_account_name',
3539
+ othBankCode: 'oth_bank_code',
3540
+ othBankName: 'oth_bank_name',
3541
+ tradeRemark: 'trade_remark',
3542
+ actualBalAmt: 'actual_bal_amt',
3543
+ };
3544
+ }
3545
+
3546
+ static types(): { [key: string]: any } {
3547
+ return {
3548
+ merchantNo: 'string',
3549
+ tradeTime: 'string',
3550
+ tradeNo: 'string',
3551
+ accountNo: 'string',
3552
+ accountName: 'string',
3553
+ tradeAmt: 'string',
3554
+ dcFlag: 'string',
3555
+ othAccountNo: 'string',
3556
+ othAccountName: 'string',
3557
+ othBankCode: 'string',
3558
+ othBankName: 'string',
3559
+ tradeRemark: 'string',
3560
+ actualBalAmt: 'string',
3561
+ };
3562
+ }
3563
+
3564
+ constructor(map?: { [key: string]: any }) {
3565
+ super(map);
3566
+ }
3567
+ }
3568
+
3508
3569
  // 企业年报信息
3509
3570
  export class RtopRiskStormCompanyAnnualReport extends $tea.Model {
3510
3571
  // 年报个数
@@ -8320,12 +8381,19 @@ export class UserFundInfo extends $tea.Model {
8320
8381
  amount: string;
8321
8382
  // 金额明细
8322
8383
  details: FundItemDetail[];
8384
+ // 收款方id
8385
+ /**
8386
+ * @example
8387
+ * 11111111
8388
+ */
8389
+ payeeId?: string;
8323
8390
  static names(): { [key: string]: string } {
8324
8391
  return {
8325
8392
  bizOrderNo: 'biz_order_no',
8326
8393
  tradeNo: 'trade_no',
8327
8394
  amount: 'amount',
8328
8395
  details: 'details',
8396
+ payeeId: 'payee_id',
8329
8397
  };
8330
8398
  }
8331
8399
 
@@ -8335,6 +8403,7 @@ export class UserFundInfo extends $tea.Model {
8335
8403
  tradeNo: 'string',
8336
8404
  amount: 'string',
8337
8405
  details: { 'type': 'array', 'itemType': FundItemDetail },
8406
+ payeeId: 'string',
8338
8407
  };
8339
8408
  }
8340
8409
 
@@ -12703,6 +12772,156 @@ export class QueryBenefithubSubscriptionlinkResponse extends $tea.Model {
12703
12772
  }
12704
12773
  }
12705
12774
 
12775
+ export class PushBenefithubBlacklistRequest extends $tea.Model {
12776
+ // OAuth模式下的授权token
12777
+ authToken?: string;
12778
+ productInstanceId?: string;
12779
+ // 流量平台编码
12780
+ platformCode: string;
12781
+ // 流量平台用户唯一id
12782
+ userUniqueId: string;
12783
+ // 用户姓名
12784
+ userName?: string;
12785
+ // 手机号
12786
+ mobile?: string;
12787
+ // 身份证号
12788
+ certNo?: string;
12789
+ // 加黑名单理由
12790
+ reason?: string;
12791
+ static names(): { [key: string]: string } {
12792
+ return {
12793
+ authToken: 'auth_token',
12794
+ productInstanceId: 'product_instance_id',
12795
+ platformCode: 'platform_code',
12796
+ userUniqueId: 'user_unique_id',
12797
+ userName: 'user_name',
12798
+ mobile: 'mobile',
12799
+ certNo: 'cert_no',
12800
+ reason: 'reason',
12801
+ };
12802
+ }
12803
+
12804
+ static types(): { [key: string]: any } {
12805
+ return {
12806
+ authToken: 'string',
12807
+ productInstanceId: 'string',
12808
+ platformCode: 'string',
12809
+ userUniqueId: 'string',
12810
+ userName: 'string',
12811
+ mobile: 'string',
12812
+ certNo: 'string',
12813
+ reason: 'string',
12814
+ };
12815
+ }
12816
+
12817
+ constructor(map?: { [key: string]: any }) {
12818
+ super(map);
12819
+ }
12820
+ }
12821
+
12822
+ export class PushBenefithubBlacklistResponse extends $tea.Model {
12823
+ // 请求唯一ID,用于链路跟踪和问题排查
12824
+ reqMsgId?: string;
12825
+ // 结果码,一般OK表示调用成功
12826
+ resultCode?: string;
12827
+ // 异常信息的文本描述
12828
+ resultMsg?: string;
12829
+ static names(): { [key: string]: string } {
12830
+ return {
12831
+ reqMsgId: 'req_msg_id',
12832
+ resultCode: 'result_code',
12833
+ resultMsg: 'result_msg',
12834
+ };
12835
+ }
12836
+
12837
+ static types(): { [key: string]: any } {
12838
+ return {
12839
+ reqMsgId: 'string',
12840
+ resultCode: 'string',
12841
+ resultMsg: 'string',
12842
+ };
12843
+ }
12844
+
12845
+ constructor(map?: { [key: string]: any }) {
12846
+ super(map);
12847
+ }
12848
+ }
12849
+
12850
+ export class QueryBenefithubBlacklistRequest extends $tea.Model {
12851
+ // OAuth模式下的授权token
12852
+ authToken?: string;
12853
+ productInstanceId?: string;
12854
+ // 流量平台编码
12855
+ platformCode: string;
12856
+ // 流量平台用户唯一id
12857
+ userUniqueId: string;
12858
+ // 手机号
12859
+ mobile?: string;
12860
+ // 身份证号
12861
+ certNo?: string;
12862
+ static names(): { [key: string]: string } {
12863
+ return {
12864
+ authToken: 'auth_token',
12865
+ productInstanceId: 'product_instance_id',
12866
+ platformCode: 'platform_code',
12867
+ userUniqueId: 'user_unique_id',
12868
+ mobile: 'mobile',
12869
+ certNo: 'cert_no',
12870
+ };
12871
+ }
12872
+
12873
+ static types(): { [key: string]: any } {
12874
+ return {
12875
+ authToken: 'string',
12876
+ productInstanceId: 'string',
12877
+ platformCode: 'string',
12878
+ userUniqueId: 'string',
12879
+ mobile: 'string',
12880
+ certNo: 'string',
12881
+ };
12882
+ }
12883
+
12884
+ constructor(map?: { [key: string]: any }) {
12885
+ super(map);
12886
+ }
12887
+ }
12888
+
12889
+ export class QueryBenefithubBlacklistResponse extends $tea.Model {
12890
+ // 请求唯一ID,用于链路跟踪和问题排查
12891
+ reqMsgId?: string;
12892
+ // 结果码,一般OK表示调用成功
12893
+ resultCode?: string;
12894
+ // 异常信息的文本描述
12895
+ resultMsg?: string;
12896
+ // true-命中黑名单,false-非命中黑名单
12897
+ hit?: boolean;
12898
+ // UUID-流量平台用户id维度命中,MOBILE-手机号匹配命中。
12899
+ hitType?: string;
12900
+ static names(): { [key: string]: string } {
12901
+ return {
12902
+ reqMsgId: 'req_msg_id',
12903
+ resultCode: 'result_code',
12904
+ resultMsg: 'result_msg',
12905
+ hit: 'hit',
12906
+ hitType: 'hit_type',
12907
+ };
12908
+ }
12909
+
12910
+ static types(): { [key: string]: any } {
12911
+ return {
12912
+ reqMsgId: 'string',
12913
+ resultCode: 'string',
12914
+ resultMsg: 'string',
12915
+ hit: 'boolean',
12916
+ hitType: 'string',
12917
+ };
12918
+ }
12919
+
12920
+ constructor(map?: { [key: string]: any }) {
12921
+ super(map);
12922
+ }
12923
+ }
12924
+
12706
12925
  export class BatchqueryCreditshieldProductInfoRequest extends $tea.Model {
12707
12926
  // OAuth模式下的授权token
12708
12927
  authToken?: string;
@@ -23506,25 +23725,25 @@ export class QueryDubbridgePetFundRequest extends $tea.Model {
23506
23725
  // OAuth模式下的授权token
23507
23726
  authToken?: string;
23508
23727
  productInstanceId?: string;
23509
- // 渠道编码
23510
- channelCode: string;
23511
23728
  // 流量平台
23512
- trafficPlatform: string;
23729
+ trafficPlatform?: string;
23513
23730
  // 买家用户id
23514
23731
  buyerId: string;
23515
23732
  // 关联交易单号
23516
23733
  tradeNo?: string;
23517
23734
  // 订单归属主体入驻ID
23518
23735
  merchantId?: string;
23736
+ // 渠道编码
23737
+ channelCode: string;
23519
23738
  static names(): { [key: string]: string } {
23520
23739
  return {
23521
23740
  authToken: 'auth_token',
23522
23741
  productInstanceId: 'product_instance_id',
23523
- channelCode: 'channel_code',
23524
23742
  trafficPlatform: 'traffic_platform',
23525
23743
  buyerId: 'buyer_id',
23526
23744
  tradeNo: 'trade_no',
23527
23745
  merchantId: 'merchant_id',
23746
+ channelCode: 'channel_code',
23528
23747
  };
23529
23748
  }
23530
23749
 
@@ -23532,11 +23751,11 @@ export class QueryDubbridgePetFundRequest extends $tea.Model {
23532
23751
  return {
23533
23752
  authToken: 'string',
23534
23753
  productInstanceId: 'string',
23535
- channelCode: 'string',
23536
23754
  trafficPlatform: 'string',
23537
23755
  buyerId: 'string',
23538
23756
  tradeNo: 'string',
23539
23757
  merchantId: 'string',
23758
+ channelCode: 'string',
23540
23759
  };
23541
23760
  }
23542
23761
 
@@ -24215,6 +24434,101 @@ export class QueryDubbridgeJumpresultResponse extends $tea.Model {
24215
24434
  }
24216
24435
  }
24217
24436
 
24437
+ export class QueryDubbridgeRepayofflineaccountRequest extends $tea.Model {
24438
+ // OAuth模式下的授权token
24439
+ authToken?: string;
24440
+ productInstanceId?: string;
24441
+ // 请求唯一id
24442
+ orderNo: string;
24443
+ // 关联的天枢用信申请订单号
24444
+ useCreditOrderNo: string;
24445
+ // 开始日期
24446
+ startDate: string;
24447
+ // 结束日期
24448
+ endDate: string;
24449
+ // 账号
24450
+ accountNo: string;
24451
+ // 借贷标识:D-借,C-贷
24452
+ dcFlag?: string;
24453
+ // 当前页码
24454
+ currentPage: string;
24455
+ // 每页记录数
24456
+ pageNum: string;
24457
+ static names(): { [key: string]: string } {
24458
+ return {
24459
+ authToken: 'auth_token',
24460
+ productInstanceId: 'product_instance_id',
24461
+ orderNo: 'order_no',
24462
+ useCreditOrderNo: 'use_credit_order_no',
24463
+ startDate: 'start_date',
24464
+ endDate: 'end_date',
24465
+ accountNo: 'account_no',
24466
+ dcFlag: 'dc_flag',
24467
+ currentPage: 'current_page',
24468
+ pageNum: 'page_num',
24469
+ };
24470
+ }
24471
+
24472
+ static types(): { [key: string]: any } {
24473
+ return {
24474
+ authToken: 'string',
24475
+ productInstanceId: 'string',
24476
+ orderNo: 'string',
24477
+ useCreditOrderNo: 'string',
24478
+ startDate: 'string',
24479
+ endDate: 'string',
24480
+ accountNo: 'string',
24481
+ dcFlag: 'string',
24482
+ currentPage: 'string',
24483
+ pageNum: 'string',
24484
+ };
24485
+ }
24486
+
24487
+ constructor(map?: { [key: string]: any }) {
24488
+ super(map);
24489
+ }
24490
+ }
24491
+
24492
+ export class QueryDubbridgeRepayofflineaccountResponse extends $tea.Model {
24493
+ // 请求唯一ID,用于链路跟踪和问题排查
24494
+ reqMsgId?: string;
24495
+ // 结果码,一般OK表示调用成功
24496
+ resultCode?: string;
24497
+ // 异常信息的文本描述
24498
+ resultMsg?: string;
24499
+ // 总条数
24500
+ totalNum?: string;
24501
+ // 总页数
24502
+ totalPage?: string;
24503
+ // 账户流水信息
24504
+ accountDetailList?: AccountDetail[];
24505
+ static names(): { [key: string]: string } {
24506
+ return {
24507
+ reqMsgId: 'req_msg_id',
24508
+ resultCode: 'result_code',
24509
+ resultMsg: 'result_msg',
24510
+ totalNum: 'total_num',
24511
+ totalPage: 'total_page',
24512
+ accountDetailList: 'account_detail_list',
24513
+ };
24514
+ }
24515
+
24516
+ static types(): { [key: string]: any } {
24517
+ return {
24518
+ reqMsgId: 'string',
24519
+ resultCode: 'string',
24520
+ resultMsg: 'string',
24521
+ totalNum: 'string',
24522
+ totalPage: 'string',
24523
+ accountDetailList: { 'type': 'array', 'itemType': AccountDetail },
24524
+ };
24525
+ }
24526
+
24527
+ constructor(map?: { [key: string]: any }) {
24528
+ super(map);
24529
+ }
24530
+ }
24531
+
24218
24532
  export class VerifyFinserviceZhimaIdentifyRequest extends $tea.Model {
24219
24533
  // OAuth模式下的授权token
24220
24534
  authToken?: string;
@@ -37974,7 +38288,7 @@ export default class Client {
37974
38288
  req_msg_id: AntchainUtil.getNonce(),
37975
38289
  access_key: this._accessKeyId,
37976
38290
  base_sdk_version: "TeaSDK-2.0",
37977
- sdk_version: "1.33.4",
38291
+ sdk_version: "1.33.8",
37978
38292
  _prod_code: "RISKPLUS",
37979
38293
  _prod_channel: "undefined",
37980
38294
  };
@@ -38190,6 +38504,48 @@ export default class Client {
38190
38504
  return $tea.cast<QueryBenefithubSubscriptionlinkResponse>(await this.doRequest("1.0", "riskplus.benefithub.subscriptionlink.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryBenefithubSubscriptionlinkResponse({}));
38191
38505
  }
38192
38506
 
38507
+ /**
38508
+ * @remarks
38509
+ * Description: 风险报告用户黑名单接口,作用:渠道新增黑名单使用
38510
+ * Summary: 风险报告用户黑名单接口,作用:渠道新增黑名单使用
38511
+ */
38512
+ async pushBenefithubBlacklist(request: PushBenefithubBlacklistRequest): Promise<PushBenefithubBlacklistResponse> {
38513
+ let runtime = new $Util.RuntimeOptions({ });
38514
+ let headers : {[key: string ]: string} = { };
38515
+ return await this.pushBenefithubBlacklistEx(request, headers, runtime);
38516
+ }
38517
+
38518
+ /**
38519
+ * @remarks
38520
+ * Description: 风险报告用户黑名单接口,作用:渠道新增黑名单使用
38521
+ * Summary: 风险报告用户黑名单接口,作用:渠道新增黑名单使用
38522
+ */
38523
+ async pushBenefithubBlacklistEx(request: PushBenefithubBlacklistRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PushBenefithubBlacklistResponse> {
38524
+ Util.validateModel(request);
38525
+ return $tea.cast<PushBenefithubBlacklistResponse>(await this.doRequest("1.0", "riskplus.benefithub.blacklist.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushBenefithubBlacklistResponse({}));
38526
+ }
38527
+
38528
+ /**
38529
+ * @remarks
38530
+ * Description: 渠道判断用户黑名单接口
38531
+ * Summary: 渠道判断用户黑名单接口
38532
+ */
38533
+ async queryBenefithubBlacklist(request: QueryBenefithubBlacklistRequest): Promise<QueryBenefithubBlacklistResponse> {
38534
+ let runtime = new $Util.RuntimeOptions({ });
38535
+ let headers : {[key: string ]: string} = { };
38536
+ return await this.queryBenefithubBlacklistEx(request, headers, runtime);
38537
+ }
38538
+
38539
+ /**
38540
+ * @remarks
38541
+ * Description: 渠道判断用户黑名单接口
38542
+ * Summary: 渠道判断用户黑名单接口
38543
+ */
38544
+ async queryBenefithubBlacklistEx(request: QueryBenefithubBlacklistRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryBenefithubBlacklistResponse> {
38545
+ Util.validateModel(request);
38546
+ return $tea.cast<QueryBenefithubBlacklistResponse>(await this.doRequest("1.0", "riskplus.benefithub.blacklist.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryBenefithubBlacklistResponse({}));
38547
+ }
38548
+
38193
38549
  /**
38194
38550
  * @remarks
38195
38551
  * Description: 信护盾产品批量查询
@@ -41026,6 +41382,27 @@ export default class Client {
41026
41382
  return $tea.cast<QueryDubbridgeJumpresultResponse>(await this.doRequest("1.0", "riskplus.dubbridge.jumpresult.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryDubbridgeJumpresultResponse({}));
41027
41383
  }
41028
41384
 
41385
+ /**
41386
+ * @remarks
41387
+ * Description: 账户流水查询接口(线下还款)
41388
+ * Summary: 账户流水查询接口(线下还款)
41389
+ */
41390
+ async queryDubbridgeRepayofflineaccount(request: QueryDubbridgeRepayofflineaccountRequest): Promise<QueryDubbridgeRepayofflineaccountResponse> {
41391
+ let runtime = new $Util.RuntimeOptions({ });
41392
+ let headers : {[key: string ]: string} = { };
41393
+ return await this.queryDubbridgeRepayofflineaccountEx(request, headers, runtime);
41394
+ }
41395
+
41396
+ /**
41397
+ * @remarks
41398
+ * Description: 账户流水查询接口(线下还款)
41399
+ * Summary: 账户流水查询接口(线下还款)
41400
+ */
41401
+ async queryDubbridgeRepayofflineaccountEx(request: QueryDubbridgeRepayofflineaccountRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryDubbridgeRepayofflineaccountResponse> {
41402
+ Util.validateModel(request);
41403
+ return $tea.cast<QueryDubbridgeRepayofflineaccountResponse>(await this.doRequest("1.0", "riskplus.dubbridge.repayofflineaccount.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryDubbridgeRepayofflineaccountResponse({}));
41404
+ }
41405
+
41029
41406
  /**
41030
41407
  * @remarks
41031
41408
  * Description: 四要素认证首先调用此接口