@antchain/riskplus 1.31.30 → 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.30",
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
@@ -3137,6 +3137,12 @@ export class DecisionInfo extends $tea.Model {
3137
3137
  * 123
3138
3138
  */
3139
3139
  returnResultId?: number;
3140
+ // 分层计划id
3141
+ /**
3142
+ * @example
3143
+ * 123
3144
+ */
3145
+ decisionPlanId: number;
3140
3146
  static names(): { [key: string]: string } {
3141
3147
  return {
3142
3148
  status: 'status',
@@ -3145,6 +3151,7 @@ export class DecisionInfo extends $tea.Model {
3145
3151
  decisionNum: 'decision_num',
3146
3152
  fileUrl: 'file_url',
3147
3153
  returnResultId: 'return_result_id',
3154
+ decisionPlanId: 'decision_plan_id',
3148
3155
  };
3149
3156
  }
3150
3157
 
@@ -3156,6 +3163,7 @@ export class DecisionInfo extends $tea.Model {
3156
3163
  decisionNum: 'number',
3157
3164
  fileUrl: 'string',
3158
3165
  returnResultId: 'number',
3166
+ decisionPlanId: 'number',
3159
3167
  };
3160
3168
  }
3161
3169
 
@@ -4863,6 +4871,63 @@ export class RpcommonResp extends $tea.Model {
4863
4871
  }
4864
4872
  }
4865
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
+
4866
4931
  // 渠道扩展信息
4867
4932
  export class PetCashierApplyExtInfo extends $tea.Model {
4868
4933
  // 门店名称
@@ -11455,6 +11520,8 @@ export class ExecFlowRunResponse extends $tea.Model {
11455
11520
  flowCode?: string;
11456
11521
  // 创建完成后的执行状态,固定返回 RUNNING。
11457
11522
  status?: string;
11523
+ // 用户须知,用于展示本平台的使用须知。
11524
+ userNotice?: string;
11458
11525
  static names(): { [key: string]: string } {
11459
11526
  return {
11460
11527
  reqMsgId: 'req_msg_id',
@@ -11463,6 +11530,7 @@ export class ExecFlowRunResponse extends $tea.Model {
11463
11530
  runNo: 'run_no',
11464
11531
  flowCode: 'flow_code',
11465
11532
  status: 'status',
11533
+ userNotice: 'user_notice',
11466
11534
  };
11467
11535
  }
11468
11536
 
@@ -11474,6 +11542,7 @@ export class ExecFlowRunResponse extends $tea.Model {
11474
11542
  runNo: 'string',
11475
11543
  flowCode: 'string',
11476
11544
  status: 'string',
11545
+ userNotice: 'string',
11477
11546
  };
11478
11547
  }
11479
11548
 
@@ -11524,6 +11593,8 @@ export class QueryFlowRunResponse extends $tea.Model {
11524
11593
  status?: string;
11525
11594
  // Flow 执行产出列表,每个元素为 FlowRunOutput 结构。仅当 status=SUCCESS 时返回产出内容;可包含文本、数字、布尔值、JSON 和文件。FILE 类型的 value 为短期有效的 HTTPS 下载地址。存在多个产出或多个文件时返回多个列表元素;RUNNING 或 FAILED 状态下返回空列表。
11526
11595
  outputs?: FlowRunOutput[];
11596
+ // 用户须知,用于展示本平台的使用须知。
11597
+ userNotice?: string;
11527
11598
  static names(): { [key: string]: string } {
11528
11599
  return {
11529
11600
  reqMsgId: 'req_msg_id',
@@ -11533,6 +11604,7 @@ export class QueryFlowRunResponse extends $tea.Model {
11533
11604
  flowCode: 'flow_code',
11534
11605
  status: 'status',
11535
11606
  outputs: 'outputs',
11607
+ userNotice: 'user_notice',
11536
11608
  };
11537
11609
  }
11538
11610
 
@@ -11545,6 +11617,7 @@ export class QueryFlowRunResponse extends $tea.Model {
11545
11617
  flowCode: 'string',
11546
11618
  status: 'string',
11547
11619
  outputs: { 'type': 'array', 'itemType': FlowRunOutput },
11620
+ userNotice: 'string',
11548
11621
  };
11549
11622
  }
11550
11623
 
@@ -12009,6 +12082,89 @@ export class QueryBenefithubReportEffectiveResponse extends $tea.Model {
12009
12082
  }
12010
12083
  }
12011
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
+
12012
12168
  export class BatchqueryCreditshieldProductInfoRequest extends $tea.Model {
12013
12169
  // OAuth模式下的授权token
12014
12170
  authToken?: string;
@@ -22307,6 +22463,13 @@ export class ApplyDubbridgePetcashierRequest extends $tea.Model {
22307
22463
  enableTransfer?: string;
22308
22464
  // 渠道扩展信息
22309
22465
  extInfo?: PetCashierApplyExtInfo;
22466
+ // 1:单活体
22467
+ // 2:活体+商城套餐(领宠模式)
22468
+ // 3:活体+商城套餐(零售模式)
22469
+ // 4:单商品
22470
+ // 5:单积分
22471
+ // 6:宠秘会员订阅
22472
+ productCategory?: string;
22310
22473
  static names(): { [key: string]: string } {
22311
22474
  return {
22312
22475
  authToken: 'auth_token',
@@ -22328,6 +22491,7 @@ export class ApplyDubbridgePetcashierRequest extends $tea.Model {
22328
22491
  returnUrl: 'return_url',
22329
22492
  enableTransfer: 'enable_transfer',
22330
22493
  extInfo: 'ext_info',
22494
+ productCategory: 'product_category',
22331
22495
  };
22332
22496
  }
22333
22497
 
@@ -22352,6 +22516,7 @@ export class ApplyDubbridgePetcashierRequest extends $tea.Model {
22352
22516
  returnUrl: 'string',
22353
22517
  enableTransfer: 'string',
22354
22518
  extInfo: PetCashierApplyExtInfo,
22519
+ productCategory: 'string',
22355
22520
  };
22356
22521
  }
22357
22522
 
@@ -22515,6 +22680,160 @@ export class QueryDubbridgePetorderResponse extends $tea.Model {
22515
22680
  }
22516
22681
  }
22517
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
+
22518
22837
  export class VerifyFinserviceZhimaIdentifyRequest extends $tea.Model {
22519
22838
  // OAuth模式下的授权token
22520
22839
  authToken?: string;
@@ -25270,14 +25589,11 @@ export class QueryQmpOfflinehostplanDecisionresultsRequest extends $tea.Model {
25270
25589
  productInstanceId?: string;
25271
25590
  // 任务串联任务id
25272
25591
  taskUuid: string;
25273
- // 分层计划ID
25274
- decisionPlanId?: number;
25275
25592
  static names(): { [key: string]: string } {
25276
25593
  return {
25277
25594
  authToken: 'auth_token',
25278
25595
  productInstanceId: 'product_instance_id',
25279
25596
  taskUuid: 'task_uuid',
25280
- decisionPlanId: 'decision_plan_id',
25281
25597
  };
25282
25598
  }
25283
25599
 
@@ -25286,7 +25602,6 @@ export class QueryQmpOfflinehostplanDecisionresultsRequest extends $tea.Model {
25286
25602
  authToken: 'string',
25287
25603
  productInstanceId: 'string',
25288
25604
  taskUuid: 'string',
25289
- decisionPlanId: 'number',
25290
25605
  };
25291
25606
  }
25292
25607
 
@@ -36278,7 +36593,7 @@ export default class Client {
36278
36593
  req_msg_id: AntchainUtil.getNonce(),
36279
36594
  access_key: this._accessKeyId,
36280
36595
  base_sdk_version: "TeaSDK-2.0",
36281
- sdk_version: "1.31.30",
36596
+ sdk_version: "1.32.0",
36282
36597
  _prod_code: "RISKPLUS",
36283
36598
  _prod_channel: "undefined",
36284
36599
  };
@@ -36473,6 +36788,27 @@ export default class Client {
36473
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({}));
36474
36789
  }
36475
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
+
36476
36812
  /**
36477
36813
  * @remarks
36478
36814
  * Description: 信护盾产品批量查询
@@ -39078,6 +39414,48 @@ export default class Client {
39078
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({}));
39079
39415
  }
39080
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
+
39081
39459
  /**
39082
39460
  * @remarks
39083
39461
  * Description: 四要素认证首先调用此接口