@antchain/riskplus 1.31.31 → 1.32.0

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.31.31",
25
+ "version":"1.32.0",
26
26
  "dependencies":{
27
27
  "@alicloud/rpc-util":"^0.1.0",
28
28
  "@antchain/alipay-util":"^1.0.4",
package/src/client.ts CHANGED
@@ -4871,6 +4871,63 @@ export class RpcommonResp extends $tea.Model {
4871
4871
  }
4872
4872
  }
4873
4873
 
4874
+ // 补充信息
4875
+ export class ReplenishInfo extends $tea.Model {
4876
+ // 客户姓名
4877
+ /**
4878
+ * @example
4879
+ * 张三
4880
+ */
4881
+ customName?: string;
4882
+ // 手机号
4883
+ /**
4884
+ * @example
4885
+ * 13800000000
4886
+ */
4887
+ mobile?: string;
4888
+ // 省份
4889
+ /**
4890
+ * @example
4891
+ * 浙江省
4892
+ */
4893
+ province?: string;
4894
+ // 城市
4895
+ /**
4896
+ * @example
4897
+ * 杭州市
4898
+ */
4899
+ city?: string;
4900
+ // 地区名称
4901
+ /**
4902
+ * @example
4903
+ * 滨江区
4904
+ */
4905
+ area?: string;
4906
+ static names(): { [key: string]: string } {
4907
+ return {
4908
+ customName: 'custom_name',
4909
+ mobile: 'mobile',
4910
+ province: 'province',
4911
+ city: 'city',
4912
+ area: 'area',
4913
+ };
4914
+ }
4915
+
4916
+ static types(): { [key: string]: any } {
4917
+ return {
4918
+ customName: 'string',
4919
+ mobile: 'string',
4920
+ province: 'string',
4921
+ city: 'string',
4922
+ area: 'string',
4923
+ };
4924
+ }
4925
+
4926
+ constructor(map?: { [key: string]: any }) {
4927
+ super(map);
4928
+ }
4929
+ }
4930
+
4874
4931
  // 渠道扩展信息
4875
4932
  export class PetCashierApplyExtInfo extends $tea.Model {
4876
4933
  // 门店名称
@@ -11463,6 +11520,8 @@ export class ExecFlowRunResponse extends $tea.Model {
11463
11520
  flowCode?: string;
11464
11521
  // 创建完成后的执行状态,固定返回 RUNNING。
11465
11522
  status?: string;
11523
+ // 用户须知,用于展示本平台的使用须知。
11524
+ userNotice?: string;
11466
11525
  static names(): { [key: string]: string } {
11467
11526
  return {
11468
11527
  reqMsgId: 'req_msg_id',
@@ -11471,6 +11530,7 @@ export class ExecFlowRunResponse extends $tea.Model {
11471
11530
  runNo: 'run_no',
11472
11531
  flowCode: 'flow_code',
11473
11532
  status: 'status',
11533
+ userNotice: 'user_notice',
11474
11534
  };
11475
11535
  }
11476
11536
 
@@ -11482,6 +11542,7 @@ export class ExecFlowRunResponse extends $tea.Model {
11482
11542
  runNo: 'string',
11483
11543
  flowCode: 'string',
11484
11544
  status: 'string',
11545
+ userNotice: 'string',
11485
11546
  };
11486
11547
  }
11487
11548
 
@@ -11532,6 +11593,8 @@ export class QueryFlowRunResponse extends $tea.Model {
11532
11593
  status?: string;
11533
11594
  // Flow 执行产出列表,每个元素为 FlowRunOutput 结构。仅当 status=SUCCESS 时返回产出内容;可包含文本、数字、布尔值、JSON 和文件。FILE 类型的 value 为短期有效的 HTTPS 下载地址。存在多个产出或多个文件时返回多个列表元素;RUNNING 或 FAILED 状态下返回空列表。
11534
11595
  outputs?: FlowRunOutput[];
11596
+ // 用户须知,用于展示本平台的使用须知。
11597
+ userNotice?: string;
11535
11598
  static names(): { [key: string]: string } {
11536
11599
  return {
11537
11600
  reqMsgId: 'req_msg_id',
@@ -11541,6 +11604,7 @@ export class QueryFlowRunResponse extends $tea.Model {
11541
11604
  flowCode: 'flow_code',
11542
11605
  status: 'status',
11543
11606
  outputs: 'outputs',
11607
+ userNotice: 'user_notice',
11544
11608
  };
11545
11609
  }
11546
11610
 
@@ -11553,6 +11617,7 @@ export class QueryFlowRunResponse extends $tea.Model {
11553
11617
  flowCode: 'string',
11554
11618
  status: 'string',
11555
11619
  outputs: { 'type': 'array', 'itemType': FlowRunOutput },
11620
+ userNotice: 'string',
11556
11621
  };
11557
11622
  }
11558
11623
 
@@ -12017,6 +12082,89 @@ export class QueryBenefithubReportEffectiveResponse extends $tea.Model {
12017
12082
  }
12018
12083
  }
12019
12084
 
12085
+ export class QueryBenefithubSubscriptionlinkRequest extends $tea.Model {
12086
+ // OAuth模式下的授权token
12087
+ authToken?: string;
12088
+ productInstanceId?: string;
12089
+ // 平台码 注:不同平台的平台码都是固定好的,如果传入的平台码有误会抛出平台码错误的信息
12090
+ platformCode: string;
12091
+ // 用户id
12092
+ userUniqueId: string;
12093
+ // 产品code必填,后续多产品时可以区分
12094
+ productCode?: string;
12095
+ // 渠道、平台方推送的手机号
12096
+ mobile: string;
12097
+ // 场景配置信息字符串,用于透传
12098
+ sceneConfig: string;
12099
+ // 区分流量来源
12100
+ trafficSource?: string;
12101
+ // json字符串包含姓名md5、手机号md5、身份证md5,(非必传,用于后续扩展字段使用)
12102
+ extraInfo?: string;
12103
+ static names(): { [key: string]: string } {
12104
+ return {
12105
+ authToken: 'auth_token',
12106
+ productInstanceId: 'product_instance_id',
12107
+ platformCode: 'platform_code',
12108
+ userUniqueId: 'user_unique_id',
12109
+ productCode: 'product_code',
12110
+ mobile: 'mobile',
12111
+ sceneConfig: 'scene_config',
12112
+ trafficSource: 'traffic_source',
12113
+ extraInfo: 'extra_info',
12114
+ };
12115
+ }
12116
+
12117
+ static types(): { [key: string]: any } {
12118
+ return {
12119
+ authToken: 'string',
12120
+ productInstanceId: 'string',
12121
+ platformCode: 'string',
12122
+ userUniqueId: 'string',
12123
+ productCode: 'string',
12124
+ mobile: 'string',
12125
+ sceneConfig: 'string',
12126
+ trafficSource: 'string',
12127
+ extraInfo: 'string',
12128
+ };
12129
+ }
12130
+
12131
+ constructor(map?: { [key: string]: any }) {
12132
+ super(map);
12133
+ }
12134
+ }
12135
+
12136
+ export class QueryBenefithubSubscriptionlinkResponse extends $tea.Model {
12137
+ // 请求唯一ID,用于链路跟踪和问题排查
12138
+ reqMsgId?: string;
12139
+ // 结果码,一般OK表示调用成功
12140
+ resultCode?: string;
12141
+ // 异常信息的文本描述
12142
+ resultMsg?: string;
12143
+ // h5跳转链接
12144
+ h5Url?: string;
12145
+ static names(): { [key: string]: string } {
12146
+ return {
12147
+ reqMsgId: 'req_msg_id',
12148
+ resultCode: 'result_code',
12149
+ resultMsg: 'result_msg',
12150
+ h5Url: 'h5_url',
12151
+ };
12152
+ }
12153
+
12154
+ static types(): { [key: string]: any } {
12155
+ return {
12156
+ reqMsgId: 'string',
12157
+ resultCode: 'string',
12158
+ resultMsg: 'string',
12159
+ h5Url: 'string',
12160
+ };
12161
+ }
12162
+
12163
+ constructor(map?: { [key: string]: any }) {
12164
+ super(map);
12165
+ }
12166
+ }
12167
+
12020
12168
  export class BatchqueryCreditshieldProductInfoRequest extends $tea.Model {
12021
12169
  // OAuth模式下的授权token
12022
12170
  authToken?: string;
@@ -22315,6 +22463,13 @@ export class ApplyDubbridgePetcashierRequest extends $tea.Model {
22315
22463
  enableTransfer?: string;
22316
22464
  // 渠道扩展信息
22317
22465
  extInfo?: PetCashierApplyExtInfo;
22466
+ // 1:单活体
22467
+ // 2:活体+商城套餐(领宠模式)
22468
+ // 3:活体+商城套餐(零售模式)
22469
+ // 4:单商品
22470
+ // 5:单积分
22471
+ // 6:宠秘会员订阅
22472
+ productCategory?: string;
22318
22473
  static names(): { [key: string]: string } {
22319
22474
  return {
22320
22475
  authToken: 'auth_token',
@@ -22336,6 +22491,7 @@ export class ApplyDubbridgePetcashierRequest extends $tea.Model {
22336
22491
  returnUrl: 'return_url',
22337
22492
  enableTransfer: 'enable_transfer',
22338
22493
  extInfo: 'ext_info',
22494
+ productCategory: 'product_category',
22339
22495
  };
22340
22496
  }
22341
22497
 
@@ -22360,6 +22516,7 @@ export class ApplyDubbridgePetcashierRequest extends $tea.Model {
22360
22516
  returnUrl: 'string',
22361
22517
  enableTransfer: 'string',
22362
22518
  extInfo: PetCashierApplyExtInfo,
22519
+ productCategory: 'string',
22363
22520
  };
22364
22521
  }
22365
22522
 
@@ -22523,6 +22680,160 @@ export class QueryDubbridgePetorderResponse extends $tea.Model {
22523
22680
  }
22524
22681
  }
22525
22682
 
22683
+ export class SyncDubbridgeCustomRequest extends $tea.Model {
22684
+ // OAuth模式下的授权token
22685
+ authToken?: string;
22686
+ productInstanceId?: string;
22687
+ // 资产方用户唯一标识
22688
+ openId: string;
22689
+ // 补充信息
22690
+ replenishInfo?: ReplenishInfo;
22691
+ // 扩展信息,json格式字符串
22692
+ extInfo?: string;
22693
+ // 资金方编码
22694
+ fundCode?: string;
22695
+ static names(): { [key: string]: string } {
22696
+ return {
22697
+ authToken: 'auth_token',
22698
+ productInstanceId: 'product_instance_id',
22699
+ openId: 'open_id',
22700
+ replenishInfo: 'replenish_info',
22701
+ extInfo: 'ext_info',
22702
+ fundCode: 'fund_code',
22703
+ };
22704
+ }
22705
+
22706
+ static types(): { [key: string]: any } {
22707
+ return {
22708
+ authToken: 'string',
22709
+ productInstanceId: 'string',
22710
+ openId: 'string',
22711
+ replenishInfo: ReplenishInfo,
22712
+ extInfo: 'string',
22713
+ fundCode: 'string',
22714
+ };
22715
+ }
22716
+
22717
+ constructor(map?: { [key: string]: any }) {
22718
+ super(map);
22719
+ }
22720
+ }
22721
+
22722
+ export class SyncDubbridgeCustomResponse extends $tea.Model {
22723
+ // 请求唯一ID,用于链路跟踪和问题排查
22724
+ reqMsgId?: string;
22725
+ // 结果码,一般OK表示调用成功
22726
+ resultCode?: string;
22727
+ // 异常信息的文本描述
22728
+ resultMsg?: string;
22729
+ // 信息同步结果, Y-成功;N-失败
22730
+ syncResult?: string;
22731
+ // 同步失败原因
22732
+ failReason?: string;
22733
+ // 客户号
22734
+ customerNo?: string;
22735
+ static names(): { [key: string]: string } {
22736
+ return {
22737
+ reqMsgId: 'req_msg_id',
22738
+ resultCode: 'result_code',
22739
+ resultMsg: 'result_msg',
22740
+ syncResult: 'sync_result',
22741
+ failReason: 'fail_reason',
22742
+ customerNo: 'customer_no',
22743
+ };
22744
+ }
22745
+
22746
+ static types(): { [key: string]: any } {
22747
+ return {
22748
+ reqMsgId: 'string',
22749
+ resultCode: 'string',
22750
+ resultMsg: 'string',
22751
+ syncResult: 'string',
22752
+ failReason: 'string',
22753
+ customerNo: 'string',
22754
+ };
22755
+ }
22756
+
22757
+ constructor(map?: { [key: string]: any }) {
22758
+ super(map);
22759
+ }
22760
+ }
22761
+
22762
+ export class QueryDubbridgeMerchantriskRequest extends $tea.Model {
22763
+ // OAuth模式下的授权token
22764
+ authToken?: string;
22765
+ productInstanceId?: string;
22766
+ // 申请单号
22767
+ applyNo: string;
22768
+ // 渠道租户
22769
+ channelTenant: string;
22770
+ // 来源类型
22771
+ sourceType?: string;
22772
+ static names(): { [key: string]: string } {
22773
+ return {
22774
+ authToken: 'auth_token',
22775
+ productInstanceId: 'product_instance_id',
22776
+ applyNo: 'apply_no',
22777
+ channelTenant: 'channel_tenant',
22778
+ sourceType: 'source_type',
22779
+ };
22780
+ }
22781
+
22782
+ static types(): { [key: string]: any } {
22783
+ return {
22784
+ authToken: 'string',
22785
+ productInstanceId: 'string',
22786
+ applyNo: 'string',
22787
+ channelTenant: 'string',
22788
+ sourceType: 'string',
22789
+ };
22790
+ }
22791
+
22792
+ constructor(map?: { [key: string]: any }) {
22793
+ super(map);
22794
+ }
22795
+ }
22796
+
22797
+ export class QueryDubbridgeMerchantriskResponse extends $tea.Model {
22798
+ // 请求唯一ID,用于链路跟踪和问题排查
22799
+ reqMsgId?: string;
22800
+ // 结果码,一般OK表示调用成功
22801
+ resultCode?: string;
22802
+ // 异常信息的文本描述
22803
+ resultMsg?: string;
22804
+ // 申请单号
22805
+ applyNo?: string;
22806
+ // 风控状态
22807
+ riskStatus?: string;
22808
+ // 扩展信息
22809
+ extInfo?: string;
22810
+ static names(): { [key: string]: string } {
22811
+ return {
22812
+ reqMsgId: 'req_msg_id',
22813
+ resultCode: 'result_code',
22814
+ resultMsg: 'result_msg',
22815
+ applyNo: 'apply_no',
22816
+ riskStatus: 'risk_status',
22817
+ extInfo: 'ext_info',
22818
+ };
22819
+ }
22820
+
22821
+ static types(): { [key: string]: any } {
22822
+ return {
22823
+ reqMsgId: 'string',
22824
+ resultCode: 'string',
22825
+ resultMsg: 'string',
22826
+ applyNo: 'string',
22827
+ riskStatus: 'string',
22828
+ extInfo: 'string',
22829
+ };
22830
+ }
22831
+
22832
+ constructor(map?: { [key: string]: any }) {
22833
+ super(map);
22834
+ }
22835
+ }
22836
+
22526
22837
  export class VerifyFinserviceZhimaIdentifyRequest extends $tea.Model {
22527
22838
  // OAuth模式下的授权token
22528
22839
  authToken?: string;
@@ -36282,7 +36593,7 @@ export default class Client {
36282
36593
  req_msg_id: AntchainUtil.getNonce(),
36283
36594
  access_key: this._accessKeyId,
36284
36595
  base_sdk_version: "TeaSDK-2.0",
36285
- sdk_version: "1.31.31",
36596
+ sdk_version: "1.32.0",
36286
36597
  _prod_code: "RISKPLUS",
36287
36598
  _prod_channel: "undefined",
36288
36599
  };
@@ -36477,6 +36788,27 @@ export default class Client {
36477
36788
  return $tea.cast<QueryBenefithubReportEffectiveResponse>(await this.doRequest("1.0", "riskplus.benefithub.report.effective.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryBenefithubReportEffectiveResponse({}));
36478
36789
  }
36479
36790
 
36791
+ /**
36792
+ * @remarks
36793
+ * Description: 风险报告包月订阅页面链接获取接口
36794
+ * Summary: 风险报告包月订阅页面链接获取接口
36795
+ */
36796
+ async queryBenefithubSubscriptionlink(request: QueryBenefithubSubscriptionlinkRequest): Promise<QueryBenefithubSubscriptionlinkResponse> {
36797
+ let runtime = new $Util.RuntimeOptions({ });
36798
+ let headers : {[key: string ]: string} = { };
36799
+ return await this.queryBenefithubSubscriptionlinkEx(request, headers, runtime);
36800
+ }
36801
+
36802
+ /**
36803
+ * @remarks
36804
+ * Description: 风险报告包月订阅页面链接获取接口
36805
+ * Summary: 风险报告包月订阅页面链接获取接口
36806
+ */
36807
+ async queryBenefithubSubscriptionlinkEx(request: QueryBenefithubSubscriptionlinkRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryBenefithubSubscriptionlinkResponse> {
36808
+ Util.validateModel(request);
36809
+ return $tea.cast<QueryBenefithubSubscriptionlinkResponse>(await this.doRequest("1.0", "riskplus.benefithub.subscriptionlink.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryBenefithubSubscriptionlinkResponse({}));
36810
+ }
36811
+
36480
36812
  /**
36481
36813
  * @remarks
36482
36814
  * Description: 信护盾产品批量查询
@@ -39082,6 +39414,48 @@ export default class Client {
39082
39414
  return $tea.cast<QueryDubbridgePetorderResponse>(await this.doRequest("1.0", "riskplus.dubbridge.petorder.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryDubbridgePetorderResponse({}));
39083
39415
  }
39084
39416
 
39417
+ /**
39418
+ * @remarks
39419
+ * Description: 用户信息补充并同步至下游资金方
39420
+ * Summary: 用户信息补充并同步至下游资金方
39421
+ */
39422
+ async syncDubbridgeCustom(request: SyncDubbridgeCustomRequest): Promise<SyncDubbridgeCustomResponse> {
39423
+ let runtime = new $Util.RuntimeOptions({ });
39424
+ let headers : {[key: string ]: string} = { };
39425
+ return await this.syncDubbridgeCustomEx(request, headers, runtime);
39426
+ }
39427
+
39428
+ /**
39429
+ * @remarks
39430
+ * Description: 用户信息补充并同步至下游资金方
39431
+ * Summary: 用户信息补充并同步至下游资金方
39432
+ */
39433
+ async syncDubbridgeCustomEx(request: SyncDubbridgeCustomRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<SyncDubbridgeCustomResponse> {
39434
+ Util.validateModel(request);
39435
+ return $tea.cast<SyncDubbridgeCustomResponse>(await this.doRequest("1.0", "riskplus.dubbridge.custom.sync", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new SyncDubbridgeCustomResponse({}));
39436
+ }
39437
+
39438
+ /**
39439
+ * @remarks
39440
+ * Description: 商户入驻风控结果查询
39441
+ * Summary: 商户入驻风控结果查询
39442
+ */
39443
+ async queryDubbridgeMerchantrisk(request: QueryDubbridgeMerchantriskRequest): Promise<QueryDubbridgeMerchantriskResponse> {
39444
+ let runtime = new $Util.RuntimeOptions({ });
39445
+ let headers : {[key: string ]: string} = { };
39446
+ return await this.queryDubbridgeMerchantriskEx(request, headers, runtime);
39447
+ }
39448
+
39449
+ /**
39450
+ * @remarks
39451
+ * Description: 商户入驻风控结果查询
39452
+ * Summary: 商户入驻风控结果查询
39453
+ */
39454
+ async queryDubbridgeMerchantriskEx(request: QueryDubbridgeMerchantriskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryDubbridgeMerchantriskResponse> {
39455
+ Util.validateModel(request);
39456
+ return $tea.cast<QueryDubbridgeMerchantriskResponse>(await this.doRequest("1.0", "riskplus.dubbridge.merchantrisk.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryDubbridgeMerchantriskResponse({}));
39457
+ }
39458
+
39085
39459
  /**
39086
39460
  * @remarks
39087
39461
  * Description: 四要素认证首先调用此接口