@antchain/realperson 1.13.2 → 1.15.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/src/client.ts CHANGED
@@ -761,6 +761,8 @@ export class CheckIndividualidFourmetaRequest extends $tea.Model {
761
761
  // map结果的json数据格式,预留字段
762
762
  //
763
763
  externParam?: string;
764
+ // 证件类型: 1:居民身份证(默认值) 2:军官证 3:护照 4:回乡证 5:台胞证 6:警官证 7:士兵证 99:其他
765
+ certType?: string;
764
766
  static names(): { [key: string]: string } {
765
767
  return {
766
768
  authToken: 'auth_token',
@@ -771,6 +773,7 @@ export class CheckIndividualidFourmetaRequest extends $tea.Model {
771
773
  mobile: 'mobile',
772
774
  bankCard: 'bank_card',
773
775
  externParam: 'extern_param',
776
+ certType: 'cert_type',
774
777
  };
775
778
  }
776
779
 
@@ -784,6 +787,7 @@ export class CheckIndividualidFourmetaRequest extends $tea.Model {
784
787
  mobile: 'string',
785
788
  bankCard: 'string',
786
789
  externParam: 'string',
790
+ certType: 'string',
787
791
  };
788
792
  }
789
793
 
@@ -1912,6 +1916,8 @@ export class CheckThreemetaBankcardRequest extends $tea.Model {
1912
1916
  bankCard: string;
1913
1917
  // 扩展信息,Map的json格式
1914
1918
  externParam?: string;
1919
+ // 证件类型: 1:居民身份证(默认值) 2:军官证 3:护照 4:回乡证 5:台胞证 6:警官证 7:士兵证 99:其他
1920
+ certType?: string;
1915
1921
  static names(): { [key: string]: string } {
1916
1922
  return {
1917
1923
  authToken: 'auth_token',
@@ -1921,6 +1927,7 @@ export class CheckThreemetaBankcardRequest extends $tea.Model {
1921
1927
  certNo: 'cert_no',
1922
1928
  bankCard: 'bank_card',
1923
1929
  externParam: 'extern_param',
1930
+ certType: 'cert_type',
1924
1931
  };
1925
1932
  }
1926
1933
 
@@ -1933,6 +1940,7 @@ export class CheckThreemetaBankcardRequest extends $tea.Model {
1933
1940
  certNo: 'string',
1934
1941
  bankCard: 'string',
1935
1942
  externParam: 'string',
1943
+ certType: 'string',
1936
1944
  };
1937
1945
  }
1938
1946
 
@@ -2396,6 +2404,420 @@ export class QueryEducationInfoResponse extends $tea.Model {
2396
2404
  }
2397
2405
  }
2398
2406
 
2407
+ export class QueryDemoInfoRequest extends $tea.Model {
2408
+ // OAuth模式下的授权token
2409
+ authToken?: string;
2410
+ productInstanceId?: string;
2411
+ // token
2412
+ token: string;
2413
+ static names(): { [key: string]: string } {
2414
+ return {
2415
+ authToken: 'auth_token',
2416
+ productInstanceId: 'product_instance_id',
2417
+ token: 'token',
2418
+ };
2419
+ }
2420
+
2421
+ static types(): { [key: string]: any } {
2422
+ return {
2423
+ authToken: 'string',
2424
+ productInstanceId: 'string',
2425
+ token: 'string',
2426
+ };
2427
+ }
2428
+
2429
+ constructor(map?: { [key: string]: any }) {
2430
+ super(map);
2431
+ }
2432
+ }
2433
+
2434
+ export class QueryDemoInfoResponse extends $tea.Model {
2435
+ // 请求唯一ID,用于链路跟踪和问题排查
2436
+ reqMsgId?: string;
2437
+ // 结果码,一般OK表示调用成功
2438
+ resultCode?: string;
2439
+ // 异常信息的文本描述
2440
+ resultMsg?: string;
2441
+ // record json
2442
+ record?: string;
2443
+ static names(): { [key: string]: string } {
2444
+ return {
2445
+ reqMsgId: 'req_msg_id',
2446
+ resultCode: 'result_code',
2447
+ resultMsg: 'result_msg',
2448
+ record: 'record',
2449
+ };
2450
+ }
2451
+
2452
+ static types(): { [key: string]: any } {
2453
+ return {
2454
+ reqMsgId: 'string',
2455
+ resultCode: 'string',
2456
+ resultMsg: 'string',
2457
+ record: 'string',
2458
+ };
2459
+ }
2460
+
2461
+ constructor(map?: { [key: string]: any }) {
2462
+ super(map);
2463
+ }
2464
+ }
2465
+
2466
+ export class CheckBankcardTwometaRequest extends $tea.Model {
2467
+ // OAuth模式下的授权token
2468
+ authToken?: string;
2469
+ productInstanceId?: string;
2470
+ // 外部请求ID,为32位以内的字母数字组合,由调用方自行生成、保证唯一并留存,以便问题定位。
2471
+ outerOrderNo: string;
2472
+ // 要素入参模式: 1:银行卡号+姓名 2:银行卡号+证件号 3:银行卡号+手机号
2473
+ metaMode: string;
2474
+ // 证件类型: 1:居民身份证(默认值) 2:军官证 3:护照 4:回乡证 5:台胞证 6:警官证 7:士兵证 99:其他
2475
+ certType?: string;
2476
+ // 银行卡号
2477
+ bankCard: string;
2478
+ // 手机号码
2479
+ mobile?: string;
2480
+ // 姓名
2481
+ certName?: string;
2482
+ // 证件号
2483
+ certNo?: string;
2484
+ // 扩展信息,预留字段
2485
+ externParam?: string;
2486
+ static names(): { [key: string]: string } {
2487
+ return {
2488
+ authToken: 'auth_token',
2489
+ productInstanceId: 'product_instance_id',
2490
+ outerOrderNo: 'outer_order_no',
2491
+ metaMode: 'meta_mode',
2492
+ certType: 'cert_type',
2493
+ bankCard: 'bank_card',
2494
+ mobile: 'mobile',
2495
+ certName: 'cert_name',
2496
+ certNo: 'cert_no',
2497
+ externParam: 'extern_param',
2498
+ };
2499
+ }
2500
+
2501
+ static types(): { [key: string]: any } {
2502
+ return {
2503
+ authToken: 'string',
2504
+ productInstanceId: 'string',
2505
+ outerOrderNo: 'string',
2506
+ metaMode: 'string',
2507
+ certType: 'string',
2508
+ bankCard: 'string',
2509
+ mobile: 'string',
2510
+ certName: 'string',
2511
+ certNo: 'string',
2512
+ externParam: 'string',
2513
+ };
2514
+ }
2515
+
2516
+ constructor(map?: { [key: string]: any }) {
2517
+ super(map);
2518
+ }
2519
+ }
2520
+
2521
+ export class CheckBankcardTwometaResponse extends $tea.Model {
2522
+ // 请求唯一ID,用于链路跟踪和问题排查
2523
+ reqMsgId?: string;
2524
+ // 结果码,一般OK表示调用成功
2525
+ resultCode?: string;
2526
+ // 异常信息的文本描述
2527
+ resultMsg?: string;
2528
+ // 扩展信息,为JSONObject。
2529
+ externInfo?: string;
2530
+ static names(): { [key: string]: string } {
2531
+ return {
2532
+ reqMsgId: 'req_msg_id',
2533
+ resultCode: 'result_code',
2534
+ resultMsg: 'result_msg',
2535
+ externInfo: 'extern_info',
2536
+ };
2537
+ }
2538
+
2539
+ static types(): { [key: string]: any } {
2540
+ return {
2541
+ reqMsgId: 'string',
2542
+ resultCode: 'string',
2543
+ resultMsg: 'string',
2544
+ externInfo: 'string',
2545
+ };
2546
+ }
2547
+
2548
+ constructor(map?: { [key: string]: any }) {
2549
+ super(map);
2550
+ }
2551
+ }
2552
+
2553
+ export class CheckCarrierTwometaRequest extends $tea.Model {
2554
+ // OAuth模式下的授权token
2555
+ authToken?: string;
2556
+ productInstanceId?: string;
2557
+ // 外部请求ID,为32位以内的字母数字组合,由调用方自行生成、保证唯一并留存,以便问题定位。
2558
+ outerOrderNo: string;
2559
+ // 要素入参模式:
2560
+ // 1:手机号+姓名
2561
+ // 2:手机号+身份证号
2562
+ metaMode: string;
2563
+ // 手机号码
2564
+ mobile: string;
2565
+ // 姓名
2566
+ certName?: string;
2567
+ // 身份证号
2568
+ certNo?: string;
2569
+ // 运营商类型:
2570
+ // CHINA_TELECOM;
2571
+ // CHINA_MOBILE;
2572
+ // CHINA_UNICOM
2573
+ carrier?: string;
2574
+ // 扩展信息,预留字段
2575
+ externParam: string;
2576
+ static names(): { [key: string]: string } {
2577
+ return {
2578
+ authToken: 'auth_token',
2579
+ productInstanceId: 'product_instance_id',
2580
+ outerOrderNo: 'outer_order_no',
2581
+ metaMode: 'meta_mode',
2582
+ mobile: 'mobile',
2583
+ certName: 'cert_name',
2584
+ certNo: 'cert_no',
2585
+ carrier: 'carrier',
2586
+ externParam: 'extern_param',
2587
+ };
2588
+ }
2589
+
2590
+ static types(): { [key: string]: any } {
2591
+ return {
2592
+ authToken: 'string',
2593
+ productInstanceId: 'string',
2594
+ outerOrderNo: 'string',
2595
+ metaMode: 'string',
2596
+ mobile: 'string',
2597
+ certName: 'string',
2598
+ certNo: 'string',
2599
+ carrier: 'string',
2600
+ externParam: 'string',
2601
+ };
2602
+ }
2603
+
2604
+ constructor(map?: { [key: string]: any }) {
2605
+ super(map);
2606
+ }
2607
+ }
2608
+
2609
+ export class CheckCarrierTwometaResponse extends $tea.Model {
2610
+ // 请求唯一ID,用于链路跟踪和问题排查
2611
+ reqMsgId?: string;
2612
+ // 结果码,一般OK表示调用成功
2613
+ resultCode?: string;
2614
+ // 异常信息的文本描述
2615
+ resultMsg?: string;
2616
+ // 扩展信息,为JSONObject。
2617
+ externInfo?: string;
2618
+ static names(): { [key: string]: string } {
2619
+ return {
2620
+ reqMsgId: 'req_msg_id',
2621
+ resultCode: 'result_code',
2622
+ resultMsg: 'result_msg',
2623
+ externInfo: 'extern_info',
2624
+ };
2625
+ }
2626
+
2627
+ static types(): { [key: string]: any } {
2628
+ return {
2629
+ reqMsgId: 'string',
2630
+ resultCode: 'string',
2631
+ resultMsg: 'string',
2632
+ externInfo: 'string',
2633
+ };
2634
+ }
2635
+
2636
+ constructor(map?: { [key: string]: any }) {
2637
+ super(map);
2638
+ }
2639
+ }
2640
+
2641
+ export class CreateNfcServerRequest extends $tea.Model {
2642
+ // OAuth模式下的授权token
2643
+ authToken?: string;
2644
+ productInstanceId?: string;
2645
+ // 证件类型,ID_CARD,PASSPORT
2646
+ certType: string;
2647
+ // 证件号码
2648
+ certNo?: string;
2649
+ // 证件姓名
2650
+ certName?: string;
2651
+ // 出生日期
2652
+ birthday?: string;
2653
+ // 证件有效期
2654
+ validateDate?: string;
2655
+ // 护照要素录入模式 NONE MANUAL TRANS
2656
+ mode?: string;
2657
+ // 扩展参数
2658
+ // {"syntheticEdoc":"Y" 是否合成证件图"}
2659
+ // {"obtainDocPhoto":"Y" 是否获取高清人像"}
2660
+ externParam?: string;
2661
+ // metainfo 环境参数,需要通过客户端 SDK 获取
2662
+ metaInfo: string;
2663
+ // 外部唯一标识。用于定位。 值为32位长度的字母数字组合前面...
2664
+ outerOrderNo: string;
2665
+ // 场景ID
2666
+ sceneId: string;
2667
+ // 商户自定义的用户ID
2668
+ userId?: string;
2669
+ static names(): { [key: string]: string } {
2670
+ return {
2671
+ authToken: 'auth_token',
2672
+ productInstanceId: 'product_instance_id',
2673
+ certType: 'cert_type',
2674
+ certNo: 'cert_no',
2675
+ certName: 'cert_name',
2676
+ birthday: 'birthday',
2677
+ validateDate: 'validate_date',
2678
+ mode: 'mode',
2679
+ externParam: 'extern_param',
2680
+ metaInfo: 'meta_info',
2681
+ outerOrderNo: 'outer_order_no',
2682
+ sceneId: 'scene_id',
2683
+ userId: 'user_id',
2684
+ };
2685
+ }
2686
+
2687
+ static types(): { [key: string]: any } {
2688
+ return {
2689
+ authToken: 'string',
2690
+ productInstanceId: 'string',
2691
+ certType: 'string',
2692
+ certNo: 'string',
2693
+ certName: 'string',
2694
+ birthday: 'string',
2695
+ validateDate: 'string',
2696
+ mode: 'string',
2697
+ externParam: 'string',
2698
+ metaInfo: 'string',
2699
+ outerOrderNo: 'string',
2700
+ sceneId: 'string',
2701
+ userId: 'string',
2702
+ };
2703
+ }
2704
+
2705
+ constructor(map?: { [key: string]: any }) {
2706
+ super(map);
2707
+ }
2708
+ }
2709
+
2710
+ export class CreateNfcServerResponse extends $tea.Model {
2711
+ // 请求唯一ID,用于链路跟踪和问题排查
2712
+ reqMsgId?: string;
2713
+ // 结果码,一般OK表示调用成功
2714
+ resultCode?: string;
2715
+ // 异常信息的文本描述
2716
+ resultMsg?: string;
2717
+ // 实人认证唯一标识
2718
+ certifyId?: string;
2719
+ static names(): { [key: string]: string } {
2720
+ return {
2721
+ reqMsgId: 'req_msg_id',
2722
+ resultCode: 'result_code',
2723
+ resultMsg: 'result_msg',
2724
+ certifyId: 'certify_id',
2725
+ };
2726
+ }
2727
+
2728
+ static types(): { [key: string]: any } {
2729
+ return {
2730
+ reqMsgId: 'string',
2731
+ resultCode: 'string',
2732
+ resultMsg: 'string',
2733
+ certifyId: 'string',
2734
+ };
2735
+ }
2736
+
2737
+ constructor(map?: { [key: string]: any }) {
2738
+ super(map);
2739
+ }
2740
+ }
2741
+
2742
+ export class QueryNfcServerRequest extends $tea.Model {
2743
+ // OAuth模式下的授权token
2744
+ authToken?: string;
2745
+ productInstanceId?: string;
2746
+ // 实人认证唯一标识
2747
+ certifyId: string;
2748
+ // 预留扩展业务参数
2749
+ externParam?: string;
2750
+ // 外部唯一标识。用于定位。 值为32位长度的字母数字组合前面...
2751
+ outerOrderNo: string;
2752
+ // 场景ID
2753
+ sceneId: string;
2754
+ static names(): { [key: string]: string } {
2755
+ return {
2756
+ authToken: 'auth_token',
2757
+ productInstanceId: 'product_instance_id',
2758
+ certifyId: 'certify_id',
2759
+ externParam: 'extern_param',
2760
+ outerOrderNo: 'outer_order_no',
2761
+ sceneId: 'scene_id',
2762
+ };
2763
+ }
2764
+
2765
+ static types(): { [key: string]: any } {
2766
+ return {
2767
+ authToken: 'string',
2768
+ productInstanceId: 'string',
2769
+ certifyId: 'string',
2770
+ externParam: 'string',
2771
+ outerOrderNo: 'string',
2772
+ sceneId: 'string',
2773
+ };
2774
+ }
2775
+
2776
+ constructor(map?: { [key: string]: any }) {
2777
+ super(map);
2778
+ }
2779
+ }
2780
+
2781
+ export class QueryNfcServerResponse extends $tea.Model {
2782
+ // 请求唯一ID,用于链路跟踪和问题排查
2783
+ reqMsgId?: string;
2784
+ // 结果码,一般OK表示调用成功
2785
+ resultCode?: string;
2786
+ // 异常信息的文本描述
2787
+ resultMsg?: string;
2788
+ // 是否通过,通过为T,不通过为F
2789
+ passed?: string;
2790
+ // 业务失败原因
2791
+ reason?: string;
2792
+ // 认证主体附件信息,一般的认证场景都是返回空
2793
+ materialInfo?: string;
2794
+ static names(): { [key: string]: string } {
2795
+ return {
2796
+ reqMsgId: 'req_msg_id',
2797
+ resultCode: 'result_code',
2798
+ resultMsg: 'result_msg',
2799
+ passed: 'passed',
2800
+ reason: 'reason',
2801
+ materialInfo: 'material_info',
2802
+ };
2803
+ }
2804
+
2805
+ static types(): { [key: string]: any } {
2806
+ return {
2807
+ reqMsgId: 'string',
2808
+ resultCode: 'string',
2809
+ resultMsg: 'string',
2810
+ passed: 'string',
2811
+ reason: 'string',
2812
+ materialInfo: 'string',
2813
+ };
2814
+ }
2815
+
2816
+ constructor(map?: { [key: string]: any }) {
2817
+ super(map);
2818
+ }
2819
+ }
2820
+
2399
2821
  export class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
2400
2822
  // OAuth模式下的授权token
2401
2823
  authToken?: string;
@@ -2597,7 +3019,7 @@ export default class Client {
2597
3019
  req_msg_id: AntchainUtil.getNonce(),
2598
3020
  access_key: this._accessKeyId,
2599
3021
  base_sdk_version: "TeaSDK-2.0",
2600
- sdk_version: "1.13.2",
3022
+ sdk_version: "1.15.0",
2601
3023
  _prod_code: "REALPERSON",
2602
3024
  _prod_channel: "undefined",
2603
3025
  };
@@ -3141,6 +3563,101 @@ export default class Client {
3141
3563
  return $tea.cast<QueryEducationInfoResponse>(await this.doRequest("1.0", "di.realperson.education.info.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryEducationInfoResponse({}));
3142
3564
  }
3143
3565
 
3566
+ /**
3567
+ * Description: demo用记录查询
3568
+ * Summary: demo用记录查询
3569
+ */
3570
+ async queryDemoInfo(request: QueryDemoInfoRequest): Promise<QueryDemoInfoResponse> {
3571
+ let runtime = new $Util.RuntimeOptions({ });
3572
+ let headers : {[key: string ]: string} = { };
3573
+ return await this.queryDemoInfoEx(request, headers, runtime);
3574
+ }
3575
+
3576
+ /**
3577
+ * Description: demo用记录查询
3578
+ * Summary: demo用记录查询
3579
+ */
3580
+ async queryDemoInfoEx(request: QueryDemoInfoRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryDemoInfoResponse> {
3581
+ Util.validateModel(request);
3582
+ return $tea.cast<QueryDemoInfoResponse>(await this.doRequest("1.0", "di.realperson.demo.info.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryDemoInfoResponse({}));
3583
+ }
3584
+
3585
+ /**
3586
+ * Description: 个人银行卡二要素
3587
+ * Summary: 个人银行卡二要素
3588
+ */
3589
+ async checkBankcardTwometa(request: CheckBankcardTwometaRequest): Promise<CheckBankcardTwometaResponse> {
3590
+ let runtime = new $Util.RuntimeOptions({ });
3591
+ let headers : {[key: string ]: string} = { };
3592
+ return await this.checkBankcardTwometaEx(request, headers, runtime);
3593
+ }
3594
+
3595
+ /**
3596
+ * Description: 个人银行卡二要素
3597
+ * Summary: 个人银行卡二要素
3598
+ */
3599
+ async checkBankcardTwometaEx(request: CheckBankcardTwometaRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CheckBankcardTwometaResponse> {
3600
+ Util.validateModel(request);
3601
+ return $tea.cast<CheckBankcardTwometaResponse>(await this.doRequest("1.0", "di.realperson.bankcard.twometa.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckBankcardTwometaResponse({}));
3602
+ }
3603
+
3604
+ /**
3605
+ * Description: 个人运营商二要素
3606
+ * Summary: 个人运营商二要素
3607
+ */
3608
+ async checkCarrierTwometa(request: CheckCarrierTwometaRequest): Promise<CheckCarrierTwometaResponse> {
3609
+ let runtime = new $Util.RuntimeOptions({ });
3610
+ let headers : {[key: string ]: string} = { };
3611
+ return await this.checkCarrierTwometaEx(request, headers, runtime);
3612
+ }
3613
+
3614
+ /**
3615
+ * Description: 个人运营商二要素
3616
+ * Summary: 个人运营商二要素
3617
+ */
3618
+ async checkCarrierTwometaEx(request: CheckCarrierTwometaRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CheckCarrierTwometaResponse> {
3619
+ Util.validateModel(request);
3620
+ return $tea.cast<CheckCarrierTwometaResponse>(await this.doRequest("1.0", "di.realperson.carrier.twometa.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckCarrierTwometaResponse({}));
3621
+ }
3622
+
3623
+ /**
3624
+ * Description: NFC实证
3625
+ * Summary: NFC实证
3626
+ */
3627
+ async createNfcServer(request: CreateNfcServerRequest): Promise<CreateNfcServerResponse> {
3628
+ let runtime = new $Util.RuntimeOptions({ });
3629
+ let headers : {[key: string ]: string} = { };
3630
+ return await this.createNfcServerEx(request, headers, runtime);
3631
+ }
3632
+
3633
+ /**
3634
+ * Description: NFC实证
3635
+ * Summary: NFC实证
3636
+ */
3637
+ async createNfcServerEx(request: CreateNfcServerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateNfcServerResponse> {
3638
+ Util.validateModel(request);
3639
+ return $tea.cast<CreateNfcServerResponse>(await this.doRequest("1.0", "di.realperson.nfc.server.create", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CreateNfcServerResponse({}));
3640
+ }
3641
+
3642
+ /**
3643
+ * Description: NFC实证
3644
+ * Summary: NFC实证
3645
+ */
3646
+ async queryNfcServer(request: QueryNfcServerRequest): Promise<QueryNfcServerResponse> {
3647
+ let runtime = new $Util.RuntimeOptions({ });
3648
+ let headers : {[key: string ]: string} = { };
3649
+ return await this.queryNfcServerEx(request, headers, runtime);
3650
+ }
3651
+
3652
+ /**
3653
+ * Description: NFC实证
3654
+ * Summary: NFC实证
3655
+ */
3656
+ async queryNfcServerEx(request: QueryNfcServerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryNfcServerResponse> {
3657
+ Util.validateModel(request);
3658
+ return $tea.cast<QueryNfcServerResponse>(await this.doRequest("1.0", "di.realperson.nfc.server.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryNfcServerResponse({}));
3659
+ }
3660
+
3144
3661
  /**
3145
3662
  * Description: 创建HTTP PUT提交的文件上传
3146
3663
  * Summary: 文件上传创建