@antchain/realperson 1.22.38 → 1.22.44

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
@@ -1,31 +1,32 @@
1
1
  {
2
- "name": "@antchain/realperson",
3
- "version": "1.22.38",
4
- "description": "",
5
- "main": "dist/client.js",
6
- "scripts": {
7
- "test": "mocha --reporter spec --timeout 3000 test/*.test.js",
8
- "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test",
9
- "build": "tsc",
10
- "prepublishOnly": "tsc"
11
- },
12
- "author": "Alibaba Cloud SDK",
13
- "license": "Apache-2.0",
14
- "devDependencies": {
15
- "@types/node": "^12.12.26",
16
- "nyc": "^15.0.0",
17
- "source-map-support": "^0.5.16",
18
- "ts-node": "^8.6.2",
19
- "typescript": "^3.7.5"
20
- },
21
- "dependencies": {
22
- "@alicloud/tea-typescript": "latest",
23
- "@antchain/alipay-util": "^1.0.4",
24
- "@alicloud/tea-util": "^1.4.11",
25
- "@alicloud/rpc-util": "^0.1.0"
26
- },
27
- "files": [
28
- "dist",
29
- "src"
30
- ]
2
+ "license":"Apache-2.0",
3
+ "devDependencies":{
4
+ "source-map-support":"^0.5.16",
5
+ "@types/node":"^12.12.26",
6
+ "@types/ms":"0.7.31",
7
+ "nyc":"^15.0.0",
8
+ "typescript":"^3.7.5",
9
+ "ts-node":"^8.6.2"
10
+ },
11
+ "author":"",
12
+ "name":"@antchain/realperson",
13
+ "description":"",
14
+ "files":[
15
+ "dist",
16
+ "src"
17
+ ],
18
+ "main":"dist/client.js",
19
+ "scripts":{
20
+ "test":"mocha --reporter spec --timeout 3000 test/*.test.js",
21
+ "build":"tsc",
22
+ "prepublishOnly":"tsc",
23
+ "test-cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test"
24
+ },
25
+ "version":"1.22.44",
26
+ "dependencies":{
27
+ "@alicloud/rpc-util":"^0.1.0",
28
+ "@antchain/alipay-util":"^1.0.4",
29
+ "@alicloud/tea-typescript":"^1.7.1",
30
+ "@alicloud/tea-util":"^1.4.11"
31
+ }
31
32
  }
package/src/client.ts CHANGED
@@ -5390,7 +5390,7 @@ export class QueryBankLivenessRequest extends $tea.Model {
5390
5390
  // 加密方式
5391
5391
  encryptType: string;
5392
5392
  // 身份证号
5393
- certNo: string;
5393
+ certNo?: string;
5394
5394
  // 银行编码
5395
5395
  bankCode: string;
5396
5396
  // 1=借记卡+贷记卡(默认);2=借记卡
@@ -6198,7 +6198,7 @@ export class QueryBankLivenessplusRequest extends $tea.Model {
6198
6198
  // 加密方式
6199
6199
  encryptType: string;
6200
6200
  // 身份证号
6201
- certNo: string;
6201
+ certNo?: string;
6202
6202
  // 银行编码
6203
6203
  bankCode: string;
6204
6204
  // 1=借记卡+贷记卡(默认);2=借记卡
@@ -6824,7 +6824,7 @@ export class QueryBankLivenessfourRequest extends $tea.Model {
6824
6824
  // 加密方式
6825
6825
  encryptType: string;
6826
6826
  // 身份证号
6827
- certNo: string;
6827
+ certNo?: string;
6828
6828
  // 银行编码
6829
6829
  bankCode: string;
6830
6830
  // bank_card_type
@@ -9734,13 +9734,23 @@ export class InitServerWillauthRequest extends $tea.Model {
9734
9734
  // 加密方式
9735
9735
  encType?: string;
9736
9736
  // 无源比对图片base64
9737
- facePictureRef?: string;
9737
+ facialPictureRef?: string;
9738
9738
  // 业务回跳地址
9739
9739
  returnUrl?: string;
9740
9740
  // 业务请求唯一标识
9741
9741
  outerOrderNo: string;
9742
9742
  // 扩展参数
9743
9743
  externParam?: string;
9744
+ // 身份信息来源类型,当前仅支持证件(CERT_INFO)
9745
+ identityType?: string;
9746
+ // 证件类型,当前仅支持身份证类型证件,包括:二代身份证、港澳居住证、台湾居住证(IDENTITY_CARD)
9747
+ certType?: string;
9748
+ // 要进行活体检测的类型
9749
+ model?: string;
9750
+ // 图片/视频的传入加密模式
9751
+ materialEncType?: string;
9752
+ // RSA/SM2公钥加密后的AES/SM4密钥(Base64编码),用于传入的加密图片/视频。
9753
+ materialEncToken?: string;
9744
9754
  static names(): { [key: string]: string } {
9745
9755
  return {
9746
9756
  authToken: 'auth_token',
@@ -9752,10 +9762,15 @@ export class InitServerWillauthRequest extends $tea.Model {
9752
9762
  certName: 'cert_name',
9753
9763
  certNo: 'cert_no',
9754
9764
  encType: 'enc_type',
9755
- facePictureRef: 'face_picture_ref',
9765
+ facialPictureRef: 'facial_picture_ref',
9756
9766
  returnUrl: 'return_url',
9757
9767
  outerOrderNo: 'outer_order_no',
9758
9768
  externParam: 'extern_param',
9769
+ identityType: 'identity_type',
9770
+ certType: 'cert_type',
9771
+ model: 'model',
9772
+ materialEncType: 'material_enc_type',
9773
+ materialEncToken: 'material_enc_token',
9759
9774
  };
9760
9775
  }
9761
9776
 
@@ -9770,10 +9785,15 @@ export class InitServerWillauthRequest extends $tea.Model {
9770
9785
  certName: 'string',
9771
9786
  certNo: 'string',
9772
9787
  encType: 'string',
9773
- facePictureRef: 'string',
9788
+ facialPictureRef: 'string',
9774
9789
  returnUrl: 'string',
9775
9790
  outerOrderNo: 'string',
9776
9791
  externParam: 'string',
9792
+ identityType: 'string',
9793
+ certType: 'string',
9794
+ model: 'string',
9795
+ materialEncType: 'string',
9796
+ materialEncToken: 'string',
9777
9797
  };
9778
9798
  }
9779
9799
 
@@ -9818,6 +9838,148 @@ export class InitServerWillauthResponse extends $tea.Model {
9818
9838
  }
9819
9839
  }
9820
9840
 
9841
+ export class QueryServerWillauthRequest extends $tea.Model {
9842
+ // OAuth模式下的授权token
9843
+ authToken?: string;
9844
+ productInstanceId?: string;
9845
+ // 认证唯一标识
9846
+ certifyId: string;
9847
+ // 外部唯一标识。用于定位。 值为32位长度的字母数字组合前面几位字符是商户自定义的简称,中间可以使用一段时间,后段可以使用一个随机或递增序列
9848
+ outerOrderNo: string;
9849
+ // 场景ID
9850
+ sceneId: string;
9851
+ // 预留扩展业务参数
9852
+ externParam?: string;
9853
+ static names(): { [key: string]: string } {
9854
+ return {
9855
+ authToken: 'auth_token',
9856
+ productInstanceId: 'product_instance_id',
9857
+ certifyId: 'certify_id',
9858
+ outerOrderNo: 'outer_order_no',
9859
+ sceneId: 'scene_id',
9860
+ externParam: 'extern_param',
9861
+ };
9862
+ }
9863
+
9864
+ static types(): { [key: string]: any } {
9865
+ return {
9866
+ authToken: 'string',
9867
+ productInstanceId: 'string',
9868
+ certifyId: 'string',
9869
+ outerOrderNo: 'string',
9870
+ sceneId: 'string',
9871
+ externParam: 'string',
9872
+ };
9873
+ }
9874
+
9875
+ constructor(map?: { [key: string]: any }) {
9876
+ super(map);
9877
+ }
9878
+ }
9879
+
9880
+ export class QueryServerWillauthResponse extends $tea.Model {
9881
+ // 请求唯一ID,用于链路跟踪和问题排查
9882
+ reqMsgId?: string;
9883
+ // 结果码,一般OK表示调用成功
9884
+ resultCode?: string;
9885
+ // 异常信息的文本描述
9886
+ resultMsg?: string;
9887
+ // 认证主体附件信息
9888
+ materialInfo?: string;
9889
+ // 认证是否通过(活体+比对+意愿全部通过才返回true)
9890
+ passed?: boolean;
9891
+ static names(): { [key: string]: string } {
9892
+ return {
9893
+ reqMsgId: 'req_msg_id',
9894
+ resultCode: 'result_code',
9895
+ resultMsg: 'result_msg',
9896
+ materialInfo: 'material_info',
9897
+ passed: 'passed',
9898
+ };
9899
+ }
9900
+
9901
+ static types(): { [key: string]: any } {
9902
+ return {
9903
+ reqMsgId: 'string',
9904
+ resultCode: 'string',
9905
+ resultMsg: 'string',
9906
+ materialInfo: 'string',
9907
+ passed: 'boolean',
9908
+ };
9909
+ }
9910
+
9911
+ constructor(map?: { [key: string]: any }) {
9912
+ super(map);
9913
+ }
9914
+ }
9915
+
9916
+ export class QueryServerWillauthmaterialRequest extends $tea.Model {
9917
+ // OAuth模式下的授权token
9918
+ authToken?: string;
9919
+ productInstanceId?: string;
9920
+ // 实人认证唯一标识
9921
+ certifyId: string;
9922
+ // 扩展参数
9923
+ externParam?: string;
9924
+ // 外部唯一标识。用于定位。 值为32位长度的字母数字组合前面几位字符是商户自定义的简称,中间可以使用一段时间,后段可以使用一个随机或递增序列
9925
+ outerOrderNo: string;
9926
+ static names(): { [key: string]: string } {
9927
+ return {
9928
+ authToken: 'auth_token',
9929
+ productInstanceId: 'product_instance_id',
9930
+ certifyId: 'certify_id',
9931
+ externParam: 'extern_param',
9932
+ outerOrderNo: 'outer_order_no',
9933
+ };
9934
+ }
9935
+
9936
+ static types(): { [key: string]: any } {
9937
+ return {
9938
+ authToken: 'string',
9939
+ productInstanceId: 'string',
9940
+ certifyId: 'string',
9941
+ externParam: 'string',
9942
+ outerOrderNo: 'string',
9943
+ };
9944
+ }
9945
+
9946
+ constructor(map?: { [key: string]: any }) {
9947
+ super(map);
9948
+ }
9949
+ }
9950
+
9951
+ export class QueryServerWillauthmaterialResponse extends $tea.Model {
9952
+ // 请求唯一ID,用于链路跟踪和问题排查
9953
+ reqMsgId?: string;
9954
+ // 结果码,一般OK表示调用成功
9955
+ resultCode?: string;
9956
+ // 异常信息的文本描述
9957
+ resultMsg?: string;
9958
+ // 认证材料信息
9959
+ materialInfo?: string;
9960
+ static names(): { [key: string]: string } {
9961
+ return {
9962
+ reqMsgId: 'req_msg_id',
9963
+ resultCode: 'result_code',
9964
+ resultMsg: 'result_msg',
9965
+ materialInfo: 'material_info',
9966
+ };
9967
+ }
9968
+
9969
+ static types(): { [key: string]: any } {
9970
+ return {
9971
+ reqMsgId: 'string',
9972
+ resultCode: 'string',
9973
+ resultMsg: 'string',
9974
+ materialInfo: 'string',
9975
+ };
9976
+ }
9977
+
9978
+ constructor(map?: { [key: string]: any }) {
9979
+ super(map);
9980
+ }
9981
+ }
9982
+
9821
9983
  export class BindCutpaymentOneclickRequest extends $tea.Model {
9822
9984
  // OAuth模式下的授权token
9823
9985
  authToken?: string;
@@ -10053,6 +10215,34 @@ export class ApplyExtYdataRequest extends $tea.Model {
10053
10215
  sixthDeductionAmount?: string;
10054
10216
  // 预留扩展参数
10055
10217
  externParam?: string;
10218
+ // 第七期是否扣款成功
10219
+ seventhDeduction?: boolean;
10220
+ // 第七期扣款金额
10221
+ seventhDeductionAmount?: string;
10222
+ // 第八期是否扣款成功
10223
+ eighthDeduction?: boolean;
10224
+ // 第八期扣款金额
10225
+ eighthDeductionAmount?: string;
10226
+ // 第九期是否扣款成功
10227
+ ninthDeduction?: boolean;
10228
+ // 第九期扣款金额
10229
+ ninthDeductionAmount?: string;
10230
+ // 第十期是否扣款成功
10231
+ tenthDeduction?: boolean;
10232
+ // 第十期扣款金额
10233
+ tenthDeductionAmount?: string;
10234
+ // 第十一期是否扣款成功
10235
+ eleventhDeduction?: boolean;
10236
+ // 第十一期扣款金额
10237
+ eleventhDeductionAmount?: string;
10238
+ // 第十二期是否扣款成功
10239
+ twelfthDeduction?: boolean;
10240
+ // 第十二期扣款金额
10241
+ twelfthDeductionAmount?: string;
10242
+ // 第十三期是否扣款成功
10243
+ thirteenthDeduction?: boolean;
10244
+ // 第十三期扣款金额
10245
+ thirteenthDeductionAmount?: string;
10056
10246
  static names(): { [key: string]: string } {
10057
10247
  return {
10058
10248
  authToken: 'auth_token',
@@ -10077,6 +10267,20 @@ export class ApplyExtYdataRequest extends $tea.Model {
10077
10267
  sixthDeduction: 'sixth_deduction',
10078
10268
  sixthDeductionAmount: 'sixth_deduction_amount',
10079
10269
  externParam: 'extern_param',
10270
+ seventhDeduction: 'seventh_deduction',
10271
+ seventhDeductionAmount: 'seventh_deduction_amount',
10272
+ eighthDeduction: 'eighth_deduction',
10273
+ eighthDeductionAmount: 'eighth_deduction_amount',
10274
+ ninthDeduction: 'ninth_deduction',
10275
+ ninthDeductionAmount: 'ninth_deduction_amount',
10276
+ tenthDeduction: 'tenth_deduction',
10277
+ tenthDeductionAmount: 'tenth_deduction_amount',
10278
+ eleventhDeduction: 'eleventh_deduction',
10279
+ eleventhDeductionAmount: 'eleventh_deduction_amount',
10280
+ twelfthDeduction: 'twelfth_deduction',
10281
+ twelfthDeductionAmount: 'twelfth_deduction_amount',
10282
+ thirteenthDeduction: 'thirteenth_deduction',
10283
+ thirteenthDeductionAmount: 'thirteenth_deduction_amount',
10080
10284
  };
10081
10285
  }
10082
10286
 
@@ -10104,6 +10308,20 @@ export class ApplyExtYdataRequest extends $tea.Model {
10104
10308
  sixthDeduction: 'boolean',
10105
10309
  sixthDeductionAmount: 'string',
10106
10310
  externParam: 'string',
10311
+ seventhDeduction: 'boolean',
10312
+ seventhDeductionAmount: 'string',
10313
+ eighthDeduction: 'boolean',
10314
+ eighthDeductionAmount: 'string',
10315
+ ninthDeduction: 'boolean',
10316
+ ninthDeductionAmount: 'string',
10317
+ tenthDeduction: 'boolean',
10318
+ tenthDeductionAmount: 'string',
10319
+ eleventhDeduction: 'boolean',
10320
+ eleventhDeductionAmount: 'string',
10321
+ twelfthDeduction: 'boolean',
10322
+ twelfthDeductionAmount: 'string',
10323
+ thirteenthDeduction: 'boolean',
10324
+ thirteenthDeductionAmount: 'string',
10107
10325
  };
10108
10326
  }
10109
10327
 
@@ -10432,7 +10650,7 @@ export default class Client {
10432
10650
  req_msg_id: AntchainUtil.getNonce(),
10433
10651
  access_key: this._accessKeyId,
10434
10652
  base_sdk_version: "TeaSDK-2.0",
10435
- sdk_version: "1.22.38",
10653
+ sdk_version: "1.22.44",
10436
10654
  _prod_code: "REALPERSON",
10437
10655
  _prod_channel: "undefined",
10438
10656
  };
@@ -12443,6 +12661,48 @@ export default class Client {
12443
12661
  return $tea.cast<InitServerWillauthResponse>(await this.doRequest("1.0", "di.realperson.server.willauth.init", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new InitServerWillauthResponse({}));
12444
12662
  }
12445
12663
 
12664
+ /**
12665
+ * @remarks
12666
+ * Description: 意愿认证服务端查询
12667
+ * Summary: 意愿认证服务端查询
12668
+ */
12669
+ async queryServerWillauth(request: QueryServerWillauthRequest): Promise<QueryServerWillauthResponse> {
12670
+ let runtime = new $Util.RuntimeOptions({ });
12671
+ let headers : {[key: string ]: string} = { };
12672
+ return await this.queryServerWillauthEx(request, headers, runtime);
12673
+ }
12674
+
12675
+ /**
12676
+ * @remarks
12677
+ * Description: 意愿认证服务端查询
12678
+ * Summary: 意愿认证服务端查询
12679
+ */
12680
+ async queryServerWillauthEx(request: QueryServerWillauthRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryServerWillauthResponse> {
12681
+ Util.validateModel(request);
12682
+ return $tea.cast<QueryServerWillauthResponse>(await this.doRequest("1.0", "di.realperson.server.willauth.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryServerWillauthResponse({}));
12683
+ }
12684
+
12685
+ /**
12686
+ * @remarks
12687
+ * Description: 意愿认证服务端材料查询
12688
+ * Summary: 意愿认证服务端材料查询
12689
+ */
12690
+ async queryServerWillauthmaterial(request: QueryServerWillauthmaterialRequest): Promise<QueryServerWillauthmaterialResponse> {
12691
+ let runtime = new $Util.RuntimeOptions({ });
12692
+ let headers : {[key: string ]: string} = { };
12693
+ return await this.queryServerWillauthmaterialEx(request, headers, runtime);
12694
+ }
12695
+
12696
+ /**
12697
+ * @remarks
12698
+ * Description: 意愿认证服务端材料查询
12699
+ * Summary: 意愿认证服务端材料查询
12700
+ */
12701
+ async queryServerWillauthmaterialEx(request: QueryServerWillauthmaterialRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryServerWillauthmaterialResponse> {
12702
+ Util.validateModel(request);
12703
+ return $tea.cast<QueryServerWillauthmaterialResponse>(await this.doRequest("1.0", "di.realperson.server.willauthmaterial.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryServerWillauthmaterialResponse({}));
12704
+ }
12705
+
12446
12706
  /**
12447
12707
  * @remarks
12448
12708
  * Description: 银行卡代扣一键绑卡签约