@antchain/realperson 1.23.2 → 1.23.4

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.23.2",
25
+ "version":"1.23.4",
26
26
  "dependencies":{
27
27
  "@alicloud/rpc-util":"^0.1.0",
28
28
  "@antchain/alipay-util":"^1.0.4",
package/src/client.ts CHANGED
@@ -1625,6 +1625,144 @@ export class OcrInfo extends $tea.Model {
1625
1625
  * 50027372380230106
1626
1626
  */
1627
1627
  chipNum?: string;
1628
+ // 证件类别
1629
+ /**
1630
+ * @example
1631
+ * P
1632
+ */
1633
+ passportType?: string;
1634
+ // 姓
1635
+ /**
1636
+ * @example
1637
+ * 张
1638
+ */
1639
+ surname?: string;
1640
+ // 名
1641
+ /**
1642
+ * @example
1643
+ * 三
1644
+ */
1645
+ givenName?: string;
1646
+ // 护照号码
1647
+ /**
1648
+ * @example
1649
+ * L12880801
1650
+ */
1651
+ passportNumber?: string;
1652
+ // 英文姓名
1653
+ /**
1654
+ * @example
1655
+ * ZHENGJIAN
1656
+ */
1657
+ nameEn?: string;
1658
+ // 英文出生地
1659
+ /**
1660
+ * @example
1661
+ * GUANGDONG
1662
+ */
1663
+ birthPlaceEn?: string;
1664
+ // 非英文出生地
1665
+ /**
1666
+ * @example
1667
+ * 广东
1668
+ */
1669
+ birthPlace?: string;
1670
+ // 国籍
1671
+ /**
1672
+ * @example
1673
+ * CHINESE
1674
+ */
1675
+ country?: string;
1676
+ // 出生日期
1677
+ /**
1678
+ * @example
1679
+ * 850320
1680
+ */
1681
+ birthDate?: string;
1682
+ // 出生日期(年月日)
1683
+ /**
1684
+ * @example
1685
+ * 1985年03月20日
1686
+ */
1687
+ birthDateYmd?: string;
1688
+ // 签发日期
1689
+ /**
1690
+ * @example
1691
+ * 2019年01月18日
1692
+ */
1693
+ issueDateYmd?: string;
1694
+ // 签发地
1695
+ /**
1696
+ * @example
1697
+ * GUANGDONG
1698
+ */
1699
+ issuePlaceEn?: string;
1700
+ // 非英文签发地
1701
+ /**
1702
+ * @example
1703
+ * 广东
1704
+ */
1705
+ issuePlace?: string;
1706
+ // 签发机关
1707
+ /**
1708
+ * @example
1709
+ * National Immigration Administration, PRC
1710
+ */
1711
+ issueAuthorityEn?: string;
1712
+ // 中华人民共和国国家移民管理局
1713
+ /**
1714
+ * @example
1715
+ * 非英文签发机关
1716
+ */
1717
+ issueAuthority?: string;
1718
+ // 身份号
1719
+ /**
1720
+ * @example
1721
+ * 123
1722
+ */
1723
+ idNumber?: string;
1724
+ // 机读码一
1725
+ /**
1726
+ * @example
1727
+ * POCHNZHENGJIAN
1728
+ */
1729
+ mrzLine1?: string;
1730
+ // 机读码二
1731
+ /**
1732
+ * @example
1733
+ * EF12608921CHN8503208F2901178NGKELMPONBPJB978
1734
+ */
1735
+ mrzLine2?: string;
1736
+ // 证件类别
1737
+ /**
1738
+ * @example
1739
+ * 往来台湾通行证
1740
+ */
1741
+ permitType?: string;
1742
+ // 中文姓名
1743
+ /**
1744
+ * @example
1745
+ * 证件样本
1746
+ */
1747
+ nameCn?: string;
1748
+ // 有效期限 (yyyy.MM.dd-yyyy.MM.dd)
1749
+ /**
1750
+ * @example
1751
+ * 2019.01.18-2029.01.17
1752
+ */
1753
+ validPeriod?: string;
1754
+ // 证件号码
1755
+ /**
1756
+ * @example
1757
+ * H01162111
1758
+ */
1759
+ permitNumber?: string;
1760
+ // 机读码
1761
+ /**
1762
+ * @example
1763
+ * CSCA3273201<901178<8108038<2
1764
+ */
1765
+ mrzCode?: string;
1628
1766
  static names(): { [key: string]: string } {
1629
1767
  return {
1630
1768
  side: 'side',
@@ -1672,6 +1810,29 @@ export class OcrInfo extends $tea.Model {
1672
1810
  fuel: 'fuel',
1673
1811
  tractionMass: 'traction_mass',
1674
1812
  chipNum: 'chip_num',
1813
+ passportType: 'passport_type',
1814
+ surname: 'surname',
1815
+ givenName: 'given_name',
1816
+ passportNumber: 'passport_number',
1817
+ nameEn: 'name_en',
1818
+ birthPlaceEn: 'birth_place_en',
1819
+ birthPlace: 'birth_place',
1820
+ country: 'country',
1821
+ birthDate: 'birth_date',
1822
+ birthDateYmd: 'birth_date_ymd',
1823
+ issueDateYmd: 'issue_date_ymd',
1824
+ issuePlaceEn: 'issue_place_en',
1825
+ issuePlace: 'issue_place',
1826
+ issueAuthorityEn: 'issue_authority_en',
1827
+ issueAuthority: 'issue_authority',
1828
+ idNumber: 'id_number',
1829
+ mrzLine1: 'mrz_line1',
1830
+ mrzLine2: 'mrz_line2',
1831
+ permitType: 'permit_type',
1832
+ nameCn: 'name_cn',
1833
+ validPeriod: 'valid_period',
1834
+ permitNumber: 'permit_number',
1835
+ mrzCode: 'mrz_code',
1675
1836
  };
1676
1837
  }
1677
1838
 
@@ -1722,6 +1883,29 @@ export class OcrInfo extends $tea.Model {
1722
1883
  fuel: 'string',
1723
1884
  tractionMass: 'string',
1724
1885
  chipNum: 'string',
1886
+ passportType: 'string',
1887
+ surname: 'string',
1888
+ givenName: 'string',
1889
+ passportNumber: 'string',
1890
+ nameEn: 'string',
1891
+ birthPlaceEn: 'string',
1892
+ birthPlace: 'string',
1893
+ country: 'string',
1894
+ birthDate: 'string',
1895
+ birthDateYmd: 'string',
1896
+ issueDateYmd: 'string',
1897
+ issuePlaceEn: 'string',
1898
+ issuePlace: 'string',
1899
+ issueAuthorityEn: 'string',
1900
+ issueAuthority: 'string',
1901
+ idNumber: 'string',
1902
+ mrzLine1: 'string',
1903
+ mrzLine2: 'string',
1904
+ permitType: 'string',
1905
+ nameCn: 'string',
1906
+ validPeriod: 'string',
1907
+ permitNumber: 'string',
1908
+ mrzCode: 'string',
1725
1909
  };
1726
1910
  }
1727
1911
 
@@ -9892,17 +10076,7 @@ export class InitServerWillauthRequest extends $tea.Model {
9892
10076
  authToken?: string;
9893
10077
  productInstanceId?: string;
9894
10078
  // string
9895
- /**
9896
- * @remarks
9897
- * 待上传文件
9898
- */
9899
- fileObject?: Readable;
9900
- /**
9901
- * @remarks
9902
- * 待上传文件名
9903
- */
9904
- fileObjectName?: string;
9905
- fileId: string;
10079
+ fileId?: string;
9906
10080
  // 场景id
9907
10081
  sceneId: string;
9908
10082
  // 身份证姓名
@@ -9933,8 +10107,6 @@ export class InitServerWillauthRequest extends $tea.Model {
9933
10107
  return {
9934
10108
  authToken: 'auth_token',
9935
10109
  productInstanceId: 'product_instance_id',
9936
- fileObject: 'fileObject',
9937
- fileObjectName: 'fileObjectName',
9938
10110
  fileId: 'file_id',
9939
10111
  sceneId: 'scene_id',
9940
10112
  certName: 'cert_name',
@@ -9956,8 +10128,6 @@ export class InitServerWillauthRequest extends $tea.Model {
9956
10128
  return {
9957
10129
  authToken: 'string',
9958
10130
  productInstanceId: 'string',
9959
- fileObject: 'Readable',
9960
- fileObjectName: 'string',
9961
10131
  fileId: 'string',
9962
10132
  sceneId: 'string',
9963
10133
  certName: 'string',
@@ -10828,7 +10998,7 @@ export default class Client {
10828
10998
  req_msg_id: AntchainUtil.getNonce(),
10829
10999
  access_key: this._accessKeyId,
10830
11000
  base_sdk_version: "TeaSDK-2.0",
10831
- sdk_version: "1.23.2",
11001
+ sdk_version: "1.23.4",
10832
11002
  _prod_code: "REALPERSON",
10833
11003
  _prod_channel: "undefined",
10834
11004
  };
@@ -12855,28 +13025,6 @@ export default class Client {
12855
13025
  * Summary: 意愿认证服务端初始化
12856
13026
  */
12857
13027
  async initServerWillauthEx(request: InitServerWillauthRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<InitServerWillauthResponse> {
12858
- if (!Util.isUnset(request.fileObject)) {
12859
- let uploadReq = new CreateAntcloudGatewayxFileUploadRequest({
12860
- authToken: request.authToken,
12861
- apiCode: "di.realperson.server.willauth.init",
12862
- fileName: request.fileObjectName,
12863
- });
12864
- let uploadResp = await this.createAntcloudGatewayxFileUploadEx(uploadReq, headers, runtime);
12865
- if (!AntchainUtil.isSuccess(uploadResp.resultCode, "ok")) {
12866
- let initServerWillauthResponse = new InitServerWillauthResponse({
12867
- reqMsgId: uploadResp.reqMsgId,
12868
- resultCode: uploadResp.resultCode,
12869
- resultMsg: uploadResp.resultMsg,
12870
- });
12871
- return initServerWillauthResponse;
12872
- }
12873
-
12874
- let uploadHeaders = AntchainUtil.parseUploadHeaders(uploadResp.uploadHeaders);
12875
- await AntchainUtil.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
12876
- request.fileId = uploadResp.fileId;
12877
- request.fileObject = null;
12878
- }
12879
-
12880
13028
  Util.validateModel(request);
12881
13029
  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({}));
12882
13030
  }