tencentcloud-sdk-python-faceid 3.1.97__tar.gz → 3.1.126__tar.gz

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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_faceid-3.1.97 → tencentcloud_sdk_python_faceid-3.1.126}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_faceid-3.1.97 → tencentcloud_sdk_python_faceid-3.1.126}/setup.py +1 -1
  3. {tencentcloud_sdk_python_faceid-3.1.97 → tencentcloud_sdk_python_faceid-3.1.126}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_faceid-3.1.97 → tencentcloud_sdk_python_faceid-3.1.126}/tencentcloud/faceid/v20180301/errorcodes.py +3 -0
  5. {tencentcloud_sdk_python_faceid-3.1.97 → tencentcloud_sdk_python_faceid-3.1.126}/tencentcloud/faceid/v20180301/faceid_client.py +46 -0
  6. {tencentcloud_sdk_python_faceid-3.1.97 → tencentcloud_sdk_python_faceid-3.1.126}/tencentcloud/faceid/v20180301/faceid_client_async.py +36 -0
  7. {tencentcloud_sdk_python_faceid-3.1.97 → tencentcloud_sdk_python_faceid-3.1.126}/tencentcloud/faceid/v20180301/models.py +452 -50
  8. {tencentcloud_sdk_python_faceid-3.1.97 → tencentcloud_sdk_python_faceid-3.1.126}/tencentcloud_sdk_python_faceid.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_faceid-3.1.126/tencentcloud_sdk_python_faceid.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_faceid-3.1.97/tencentcloud_sdk_python_faceid.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_faceid-3.1.97 → tencentcloud_sdk_python_faceid-3.1.126}/README.rst +0 -0
  12. {tencentcloud_sdk_python_faceid-3.1.97 → tencentcloud_sdk_python_faceid-3.1.126}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_faceid-3.1.97 → tencentcloud_sdk_python_faceid-3.1.126}/tencentcloud/faceid/__init__.py +0 -0
  14. {tencentcloud_sdk_python_faceid-3.1.97 → tencentcloud_sdk_python_faceid-3.1.126}/tencentcloud/faceid/v20180301/__init__.py +0 -0
  15. {tencentcloud_sdk_python_faceid-3.1.97 → tencentcloud_sdk_python_faceid-3.1.126}/tencentcloud_sdk_python_faceid.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_faceid-3.1.97 → tencentcloud_sdk_python_faceid-3.1.126}/tencentcloud_sdk_python_faceid.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_faceid-3.1.97 → tencentcloud_sdk_python_faceid-3.1.126}/tencentcloud_sdk_python_faceid.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-faceid
3
- Version: 3.1.97
3
+ Version: 3.1.126
4
4
  Summary: Tencent Cloud Faceid SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.97
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.126
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-faceid',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.97,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.126,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Faceid SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.97'
17
+ __version__ = '3.1.126'
@@ -125,6 +125,9 @@ FAILEDOPERATION_IMAGESIZETOOLARGE = 'FailedOperation.ImageSizeTooLarge'
125
125
  # 未检测到完整人脸,请传入完整人脸图片
126
126
  FAILEDOPERATION_INCOMPLETEFACE = 'FailedOperation.IncompleteFace'
127
127
 
128
+ # Token不存在
129
+ FAILEDOPERATION_INVALIDTOKENPARAMETER = 'FailedOperation.InvalidTokenParameter'
130
+
128
131
  # 检测到多张人脸。
129
132
  FAILEDOPERATION_LIFEPHOTODETECTFACES = 'FailedOperation.LifePhotoDetectFaces'
130
133
 
@@ -509,6 +509,29 @@ class FaceidClient(AbstractClient):
509
509
  raise TencentCloudSDKException(type(e).__name__, str(e))
510
510
 
511
511
 
512
+ def GetNFCToken(self, request):
513
+ r"""NFC核验服务,获取NFC识别请求对应的Token信息。
514
+
515
+ :param request: Request instance for GetNFCToken.
516
+ :type request: :class:`tencentcloud.faceid.v20180301.models.GetNFCTokenRequest`
517
+ :rtype: :class:`tencentcloud.faceid.v20180301.models.GetNFCTokenResponse`
518
+
519
+ """
520
+ try:
521
+ params = request._serialize()
522
+ headers = request.headers
523
+ body = self.call("GetNFCToken", params, headers=headers)
524
+ response = json.loads(body)
525
+ model = models.GetNFCTokenResponse()
526
+ model._deserialize(response["Response"])
527
+ return model
528
+ except Exception as e:
529
+ if isinstance(e, TencentCloudSDKException):
530
+ raise
531
+ else:
532
+ raise TencentCloudSDKException(type(e).__name__, str(e))
533
+
534
+
512
535
  def GetWeChatBillDetails(self, request):
513
536
  r"""查询微信渠道服务(微信小程序、微信原生H5、微信普通H5)的账单明细及计费状态。
514
537
 
@@ -532,6 +555,29 @@ class FaceidClient(AbstractClient):
532
555
  raise TencentCloudSDKException(type(e).__name__, str(e))
533
556
 
534
557
 
558
+ def GetWxNFCResult(self, request):
559
+ r"""获取到证件NFC数据,接口传入NFC SDK返回的Token(十分钟内有效),可返回对应NFC获取的证件信息。支持身份证类证件(二代身份证、港澳居住证、台湾居住证、外国人永居证)以及旅行类证件(港澳通行证、台湾通行证、台胞证、回乡证)的NFC识别及核验。
560
+
561
+ :param request: Request instance for GetWxNFCResult.
562
+ :type request: :class:`tencentcloud.faceid.v20180301.models.GetWxNFCResultRequest`
563
+ :rtype: :class:`tencentcloud.faceid.v20180301.models.GetWxNFCResultResponse`
564
+
565
+ """
566
+ try:
567
+ params = request._serialize()
568
+ headers = request.headers
569
+ body = self.call("GetWxNFCResult", params, headers=headers)
570
+ response = json.loads(body)
571
+ model = models.GetWxNFCResultResponse()
572
+ model._deserialize(response["Response"])
573
+ return model
574
+ except Exception as e:
575
+ if isinstance(e, TencentCloudSDKException):
576
+ raise
577
+ else:
578
+ raise TencentCloudSDKException(type(e).__name__, str(e))
579
+
580
+
535
581
  def IdCardOCRVerification(self, request):
536
582
  r"""本接口用于校验姓名和身份证号的真实性和一致性,您可以通过输入姓名和身份证号或传入身份证人像面照片提供所需验证信息。
537
583
 
@@ -403,6 +403,24 @@ class FaceidClient(AbstractClient):
403
403
 
404
404
  return await self.call_and_deserialize(**kwargs)
405
405
 
406
+ async def GetNFCToken(
407
+ self,
408
+ request: models.GetNFCTokenRequest,
409
+ opts: Dict = None,
410
+ ) -> models.GetNFCTokenResponse:
411
+ """
412
+ NFC核验服务,获取NFC识别请求对应的Token信息。
413
+ """
414
+
415
+ kwargs = {}
416
+ kwargs["action"] = "GetNFCToken"
417
+ kwargs["params"] = request._serialize()
418
+ kwargs["resp_cls"] = models.GetNFCTokenResponse
419
+ kwargs["headers"] = request.headers
420
+ kwargs["opts"] = opts or {}
421
+
422
+ return await self.call_and_deserialize(**kwargs)
423
+
406
424
  async def GetWeChatBillDetails(
407
425
  self,
408
426
  request: models.GetWeChatBillDetailsRequest,
@@ -421,6 +439,24 @@ class FaceidClient(AbstractClient):
421
439
 
422
440
  return await self.call_and_deserialize(**kwargs)
423
441
 
442
+ async def GetWxNFCResult(
443
+ self,
444
+ request: models.GetWxNFCResultRequest,
445
+ opts: Dict = None,
446
+ ) -> models.GetWxNFCResultResponse:
447
+ """
448
+ 获取到证件NFC数据,接口传入NFC SDK返回的Token(十分钟内有效),可返回对应NFC获取的证件信息。支持身份证类证件(二代身份证、港澳居住证、台湾居住证、外国人永居证)以及旅行类证件(港澳通行证、台湾通行证、台胞证、回乡证)的NFC识别及核验。
449
+ """
450
+
451
+ kwargs = {}
452
+ kwargs["action"] = "GetWxNFCResult"
453
+ kwargs["params"] = request._serialize()
454
+ kwargs["resp_cls"] = models.GetWxNFCResultResponse
455
+ kwargs["headers"] = request.headers
456
+ kwargs["opts"] = opts or {}
457
+
458
+ return await self.call_and_deserialize(**kwargs)
459
+
424
460
  async def IdCardOCRVerification(
425
461
  self,
426
462
  request: models.IdCardOCRVerificationRequest,
@@ -5159,32 +5159,19 @@ class GetEidTokenRequest(AbstractModel):
5159
5159
 
5160
5160
  def __init__(self):
5161
5161
  r"""
5162
- :param _MerchantId: EID商户ID
5163
- - 商户ID通过人脸核身控制台[自助接入](https://console.cloud.tencent.com/faceid/access)申请。
5164
- - 商户ID与您通过腾讯云人脸核身控制台完成自助接入时所使用的腾讯云账号绑定。
5165
- - 必须使用申请该商户ID时登录的腾讯云账号所对应的腾讯云API密钥调用该接口。
5162
+ :param _MerchantId: <p>EID商户ID。</p><ul><li>商户ID通过人脸核身控制台<a href="https://console.cloud.tencent.com/faceid/access">自助接入</a>申请。</li><li>商户ID与您通过腾讯云人脸核身控制台完成自助接入时所使用的腾讯云账号绑定。</li><li>必须使用申请该商户ID时登录的腾讯云账号所对应的腾讯云API密钥调用该接口。</li></ul>
5166
5163
  :type MerchantId: str
5167
- :param _IdCard: 身份标识。
5168
- - 未使用OCR服务时,必须传入。
5169
- - 规则:a-z,A-Z,0-9组合。
5170
- - 最长长度32位。
5164
+ :param _IdCard: <p>身份标识。</p><ul><li>未使用OCR服务时,必须传入。</li><li>规则:a-z,A-Z,0-9组合。</li><li>最长长度32位。</li></ul>
5171
5165
  :type IdCard: str
5172
- :param _Name: 姓名。
5173
- - 未使用OCR服务时,必须传入。
5174
- - 最长长度32位。
5175
- - 中文请使用UTF-8编码。
5166
+ :param _Name: <p>姓名。</p><ul><li>未使用OCR服务时,必须传入。</li><li>最长长度32位。</li><li>中文请使用UTF-8编码。</li></ul>
5176
5167
  :type Name: str
5177
- :param _Extra: 透传字段,在获取验证结果时返回。
5178
- - 最长长度1024位。
5168
+ :param _Extra: <p>透传字段,在获取验证结果时返回。</p><ul><li>最长长度1024位。</li></ul>
5179
5169
  :type Extra: str
5180
- :param _Config: 小程序模式配置,包括如何传入姓名身份证的配置,以及是否使用意愿核身。
5170
+ :param _Config: <p>小程序模式配置,包括如何传入姓名身份证的配置,以及是否使用意愿核身。</p>
5181
5171
  :type Config: :class:`tencentcloud.faceid.v20180301.models.GetEidTokenConfig`
5182
- :param _RedirectUrl: 用户从Url中进入核身认证结束后重定向的回调链接地址。
5183
- - 最长长度1024位。
5184
- - EidToken会在该链接的query参数中。
5172
+ :param _RedirectUrl: <p>用户从Url中进入核身认证结束后重定向的回调链接地址。</p><ul><li>最长长度1024位。</li><li>EidToken会在该链接的query参数中。</li></ul>
5185
5173
  :type RedirectUrl: str
5186
- :param _Encryption: 敏感数据加密信息。
5187
- - 对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
5174
+ :param _Encryption: <p>敏感数据加密信息。</p><ul><li>对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。</li></ul>
5188
5175
  :type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
5189
5176
  """
5190
5177
  self._MerchantId = None
@@ -5197,10 +5184,7 @@ class GetEidTokenRequest(AbstractModel):
5197
5184
 
5198
5185
  @property
5199
5186
  def MerchantId(self):
5200
- r"""EID商户ID
5201
- - 商户ID通过人脸核身控制台[自助接入](https://console.cloud.tencent.com/faceid/access)申请。
5202
- - 商户ID与您通过腾讯云人脸核身控制台完成自助接入时所使用的腾讯云账号绑定。
5203
- - 必须使用申请该商户ID时登录的腾讯云账号所对应的腾讯云API密钥调用该接口。
5187
+ r"""<p>EID商户ID。</p><ul><li>商户ID通过人脸核身控制台<a href="https://console.cloud.tencent.com/faceid/access">自助接入</a>申请。</li><li>商户ID与您通过腾讯云人脸核身控制台完成自助接入时所使用的腾讯云账号绑定。</li><li>必须使用申请该商户ID时登录的腾讯云账号所对应的腾讯云API密钥调用该接口。</li></ul>
5204
5188
  :rtype: str
5205
5189
  """
5206
5190
  return self._MerchantId
@@ -5211,10 +5195,7 @@ class GetEidTokenRequest(AbstractModel):
5211
5195
 
5212
5196
  @property
5213
5197
  def IdCard(self):
5214
- r"""身份标识。
5215
- - 未使用OCR服务时,必须传入。
5216
- - 规则:a-z,A-Z,0-9组合。
5217
- - 最长长度32位。
5198
+ r"""<p>身份标识。</p><ul><li>未使用OCR服务时,必须传入。</li><li>规则:a-z,A-Z,0-9组合。</li><li>最长长度32位。</li></ul>
5218
5199
  :rtype: str
5219
5200
  """
5220
5201
  return self._IdCard
@@ -5225,10 +5206,7 @@ class GetEidTokenRequest(AbstractModel):
5225
5206
 
5226
5207
  @property
5227
5208
  def Name(self):
5228
- r"""姓名。
5229
- - 未使用OCR服务时,必须传入。
5230
- - 最长长度32位。
5231
- - 中文请使用UTF-8编码。
5209
+ r"""<p>姓名。</p><ul><li>未使用OCR服务时,必须传入。</li><li>最长长度32位。</li><li>中文请使用UTF-8编码。</li></ul>
5232
5210
  :rtype: str
5233
5211
  """
5234
5212
  return self._Name
@@ -5239,8 +5217,7 @@ class GetEidTokenRequest(AbstractModel):
5239
5217
 
5240
5218
  @property
5241
5219
  def Extra(self):
5242
- r"""透传字段,在获取验证结果时返回。
5243
- - 最长长度1024位。
5220
+ r"""<p>透传字段,在获取验证结果时返回。</p><ul><li>最长长度1024位。</li></ul>
5244
5221
  :rtype: str
5245
5222
  """
5246
5223
  return self._Extra
@@ -5251,7 +5228,7 @@ class GetEidTokenRequest(AbstractModel):
5251
5228
 
5252
5229
  @property
5253
5230
  def Config(self):
5254
- r"""小程序模式配置,包括如何传入姓名身份证的配置,以及是否使用意愿核身。
5231
+ r"""<p>小程序模式配置,包括如何传入姓名身份证的配置,以及是否使用意愿核身。</p>
5255
5232
  :rtype: :class:`tencentcloud.faceid.v20180301.models.GetEidTokenConfig`
5256
5233
  """
5257
5234
  return self._Config
@@ -5262,9 +5239,7 @@ class GetEidTokenRequest(AbstractModel):
5262
5239
 
5263
5240
  @property
5264
5241
  def RedirectUrl(self):
5265
- r"""用户从Url中进入核身认证结束后重定向的回调链接地址。
5266
- - 最长长度1024位。
5267
- - EidToken会在该链接的query参数中。
5242
+ r"""<p>用户从Url中进入核身认证结束后重定向的回调链接地址。</p><ul><li>最长长度1024位。</li><li>EidToken会在该链接的query参数中。</li></ul>
5268
5243
  :rtype: str
5269
5244
  """
5270
5245
  return self._RedirectUrl
@@ -5275,8 +5250,7 @@ class GetEidTokenRequest(AbstractModel):
5275
5250
 
5276
5251
  @property
5277
5252
  def Encryption(self):
5278
- r"""敏感数据加密信息。
5279
- - 对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
5253
+ r"""<p>敏感数据加密信息。</p><ul><li>对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。</li></ul>
5280
5254
  :rtype: :class:`tencentcloud.faceid.v20180301.models.Encryption`
5281
5255
  """
5282
5256
  return self._Encryption
@@ -5315,12 +5289,9 @@ class GetEidTokenResponse(AbstractModel):
5315
5289
 
5316
5290
  def __init__(self):
5317
5291
  r"""
5318
- :param _EidToken: 一次核身流程的标识。
5319
- - 有效时间为600秒。
5320
- - 完成核身后,可用该标识获取验证结果信息。
5292
+ :param _EidToken: <p>一次核身流程的标识。</p><ul><li>有效时间为600秒。</li><li>完成核身后,可用该标识获取验证结果信息。</li></ul>
5321
5293
  :type EidToken: str
5322
- :param _Url: 发起核身流程的URL
5323
- - 用于H5场景核身。
5294
+ :param _Url: <p>发起核身流程的URL。</p><ul><li>用于H5场景核身。</li></ul>
5324
5295
  :type Url: str
5325
5296
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5326
5297
  :type RequestId: str
@@ -5331,9 +5302,7 @@ class GetEidTokenResponse(AbstractModel):
5331
5302
 
5332
5303
  @property
5333
5304
  def EidToken(self):
5334
- r"""一次核身流程的标识。
5335
- - 有效时间为600秒。
5336
- - 完成核身后,可用该标识获取验证结果信息。
5305
+ r"""<p>一次核身流程的标识。</p><ul><li>有效时间为600秒。</li><li>完成核身后,可用该标识获取验证结果信息。</li></ul>
5337
5306
  :rtype: str
5338
5307
  """
5339
5308
  return self._EidToken
@@ -5344,8 +5313,7 @@ class GetEidTokenResponse(AbstractModel):
5344
5313
 
5345
5314
  @property
5346
5315
  def Url(self):
5347
- r"""发起核身流程的URL
5348
- - 用于H5场景核身。
5316
+ r"""<p>发起核身流程的URL。</p><ul><li>用于H5场景核身。</li></ul>
5349
5317
  :rtype: str
5350
5318
  """
5351
5319
  return self._Url
@@ -6402,6 +6370,55 @@ class GetLiveCodeResponse(AbstractModel):
6402
6370
  self._RequestId = params.get("RequestId")
6403
6371
 
6404
6372
 
6373
+ class GetNFCTokenRequest(AbstractModel):
6374
+ r"""GetNFCToken请求参数结构体
6375
+
6376
+ """
6377
+
6378
+
6379
+ class GetNFCTokenResponse(AbstractModel):
6380
+ r"""GetNFCToken返回参数结构体
6381
+
6382
+ """
6383
+
6384
+ def __init__(self):
6385
+ r"""
6386
+ :param _Token: NFCToken
6387
+ :type Token: str
6388
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6389
+ :type RequestId: str
6390
+ """
6391
+ self._Token = None
6392
+ self._RequestId = None
6393
+
6394
+ @property
6395
+ def Token(self):
6396
+ r"""NFCToken
6397
+ :rtype: str
6398
+ """
6399
+ return self._Token
6400
+
6401
+ @Token.setter
6402
+ def Token(self, Token):
6403
+ self._Token = Token
6404
+
6405
+ @property
6406
+ def RequestId(self):
6407
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6408
+ :rtype: str
6409
+ """
6410
+ return self._RequestId
6411
+
6412
+ @RequestId.setter
6413
+ def RequestId(self, RequestId):
6414
+ self._RequestId = RequestId
6415
+
6416
+
6417
+ def _deserialize(self, params):
6418
+ self._Token = params.get("Token")
6419
+ self._RequestId = params.get("RequestId")
6420
+
6421
+
6405
6422
  class GetWeChatBillDetailsRequest(AbstractModel):
6406
6423
  r"""GetWeChatBillDetails请求参数结构体
6407
6424
 
@@ -6560,6 +6577,391 @@ class GetWeChatBillDetailsResponse(AbstractModel):
6560
6577
  self._RequestId = params.get("RequestId")
6561
6578
 
6562
6579
 
6580
+ class GetWxNFCResultRequest(AbstractModel):
6581
+ r"""GetWxNFCResult请求参数结构体
6582
+
6583
+ """
6584
+
6585
+ def __init__(self):
6586
+ r"""
6587
+ :param _NFCToken: <p>前端 NFC SDK返回的唯一标识ID</p>
6588
+ :type NFCToken: str
6589
+ """
6590
+ self._NFCToken = None
6591
+
6592
+ @property
6593
+ def NFCToken(self):
6594
+ r"""<p>前端 NFC SDK返回的唯一标识ID</p>
6595
+ :rtype: str
6596
+ """
6597
+ return self._NFCToken
6598
+
6599
+ @NFCToken.setter
6600
+ def NFCToken(self, NFCToken):
6601
+ self._NFCToken = NFCToken
6602
+
6603
+
6604
+ def _deserialize(self, params):
6605
+ self._NFCToken = params.get("NFCToken")
6606
+ memeber_set = set(params.keys())
6607
+ for name, value in vars(self).items():
6608
+ property_name = name[1:]
6609
+ if property_name in memeber_set:
6610
+ memeber_set.remove(property_name)
6611
+ if len(memeber_set) > 0:
6612
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
6613
+
6614
+
6615
+
6616
+ class GetWxNFCResultResponse(AbstractModel):
6617
+ r"""GetWxNFCResult返回参数结构体
6618
+
6619
+ """
6620
+
6621
+ def __init__(self):
6622
+ r"""
6623
+ :param _ResultCode: <p>NFC计费结果码,NFC识读成功一次则计费一次(同一个NFC请求重复拉取结果不会重复计费)。计费结果码取值范围:<br> 0:识读成功,计费<br>-1:识读失败,不计费</p>
6624
+ :type ResultCode: str
6625
+ :param _IdNum: <p>身份证号</p>
6626
+ 注意:此字段可能返回 null,表示取不到有效值。
6627
+ :type IdNum: str
6628
+ :param _Name: <p>姓名</p>
6629
+ 注意:此字段可能返回 null,表示取不到有效值。
6630
+ :type Name: str
6631
+ :param _Picture: <p>证件中的人像照片</p>
6632
+ 注意:此字段可能返回 null,表示取不到有效值。
6633
+ :type Picture: str
6634
+ :param _IdCardFrontImg: <p>身份类证件正面照片(人像面)</p>
6635
+ 注意:此字段可能返回 null,表示取不到有效值。
6636
+ :type IdCardFrontImg: str
6637
+ :param _IdCardBackImg: <p>身份类证件背面照片(国徽面)</p>
6638
+ 注意:此字段可能返回 null,表示取不到有效值。
6639
+ :type IdCardBackImg: str
6640
+ :param _BirthDate: <p>出生日期</p>
6641
+ 注意:此字段可能返回 null,表示取不到有效值。
6642
+ :type BirthDate: str
6643
+ :param _BeginTime: <p>有效期起始时间</p>
6644
+ 注意:此字段可能返回 null,表示取不到有效值。
6645
+ :type BeginTime: str
6646
+ :param _EndTime: <p>有效期结束时间</p>
6647
+ 注意:此字段可能返回 null,表示取不到有效值。
6648
+ :type EndTime: str
6649
+ :param _Address: <p>住址</p>
6650
+ 注意:此字段可能返回 null,表示取不到有效值。
6651
+ :type Address: str
6652
+ :param _Nation: <p>民族</p>
6653
+ 注意:此字段可能返回 null,表示取不到有效值。
6654
+ :type Nation: str
6655
+ :param _Sex: <p>性别</p>
6656
+ 注意:此字段可能返回 null,表示取不到有效值。
6657
+ :type Sex: str
6658
+ :param _IdType: <p>证件类型</p><p>枚举值:</p><ul><li>01: 身份证</li><li>03: 中国护照</li><li>06: 港澳通行证</li><li>07: 台胞证</li><li>08: 外国护照</li><li>13: 外国人永久居留证</li><li>14: 港澳台居民居住证</li><li>15: 回乡证</li><li>16: 大陆居民来往台湾通行证</li><li>99: 其他证件</li></ul>
6659
+ 注意:此字段可能返回 null,表示取不到有效值。
6660
+ :type IdType: str
6661
+ :param _EnName: <p>英文姓名</p>
6662
+ 注意:此字段可能返回 null,表示取不到有效值。
6663
+ :type EnName: str
6664
+ :param _SigningOrganization: <p>签发机关</p>
6665
+ 注意:此字段可能返回 null,表示取不到有效值。
6666
+ :type SigningOrganization: str
6667
+ :param _OtherIdNum: <p>港澳台居民居住证,通行证号码</p>
6668
+ 注意:此字段可能返回 null,表示取不到有效值。
6669
+ :type OtherIdNum: str
6670
+ :param _Nationality: <p>旅行证件国籍</p>
6671
+ 注意:此字段可能返回 null,表示取不到有效值。
6672
+ :type Nationality: str
6673
+ :param _PersonalNumber: <p>旅行证件机读区第二行 29~42 位</p>
6674
+ 注意:此字段可能返回 null,表示取不到有效值。
6675
+ :type PersonalNumber: str
6676
+ :param _CheckMRTD: <p>证件的验真结果</p><ul><li>JSON格式如下: {&quot;result_issuer &quot;:&quot;签发者证书合法性验证结果 &quot;,&quot;result_paper&quot;:&quot;证件安全对象合法性验证结果 &quot;,&quot;result_data&quot; :&quot;防数据篡改验证结果 &quot;,&quot;result_chip&quot; :&quot;防证书件芯片被复制验证结果&quot;} 。 - 取值范围: 0:验证通过,1: 验证不通过,2: 未验证,3:部分通过,当4项核验结果都为0时,表示证件为真。</li></ul>
6677
+ 注意:此字段可能返回 null,表示取不到有效值。
6678
+ :type CheckMRTD: str
6679
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6680
+ :type RequestId: str
6681
+ """
6682
+ self._ResultCode = None
6683
+ self._IdNum = None
6684
+ self._Name = None
6685
+ self._Picture = None
6686
+ self._IdCardFrontImg = None
6687
+ self._IdCardBackImg = None
6688
+ self._BirthDate = None
6689
+ self._BeginTime = None
6690
+ self._EndTime = None
6691
+ self._Address = None
6692
+ self._Nation = None
6693
+ self._Sex = None
6694
+ self._IdType = None
6695
+ self._EnName = None
6696
+ self._SigningOrganization = None
6697
+ self._OtherIdNum = None
6698
+ self._Nationality = None
6699
+ self._PersonalNumber = None
6700
+ self._CheckMRTD = None
6701
+ self._RequestId = None
6702
+
6703
+ @property
6704
+ def ResultCode(self):
6705
+ r"""<p>NFC计费结果码,NFC识读成功一次则计费一次(同一个NFC请求重复拉取结果不会重复计费)。计费结果码取值范围:<br> 0:识读成功,计费<br>-1:识读失败,不计费</p>
6706
+ :rtype: str
6707
+ """
6708
+ return self._ResultCode
6709
+
6710
+ @ResultCode.setter
6711
+ def ResultCode(self, ResultCode):
6712
+ self._ResultCode = ResultCode
6713
+
6714
+ @property
6715
+ def IdNum(self):
6716
+ r"""<p>身份证号</p>
6717
+ 注意:此字段可能返回 null,表示取不到有效值。
6718
+ :rtype: str
6719
+ """
6720
+ return self._IdNum
6721
+
6722
+ @IdNum.setter
6723
+ def IdNum(self, IdNum):
6724
+ self._IdNum = IdNum
6725
+
6726
+ @property
6727
+ def Name(self):
6728
+ r"""<p>姓名</p>
6729
+ 注意:此字段可能返回 null,表示取不到有效值。
6730
+ :rtype: str
6731
+ """
6732
+ return self._Name
6733
+
6734
+ @Name.setter
6735
+ def Name(self, Name):
6736
+ self._Name = Name
6737
+
6738
+ @property
6739
+ def Picture(self):
6740
+ r"""<p>证件中的人像照片</p>
6741
+ 注意:此字段可能返回 null,表示取不到有效值。
6742
+ :rtype: str
6743
+ """
6744
+ return self._Picture
6745
+
6746
+ @Picture.setter
6747
+ def Picture(self, Picture):
6748
+ self._Picture = Picture
6749
+
6750
+ @property
6751
+ def IdCardFrontImg(self):
6752
+ r"""<p>身份类证件正面照片(人像面)</p>
6753
+ 注意:此字段可能返回 null,表示取不到有效值。
6754
+ :rtype: str
6755
+ """
6756
+ return self._IdCardFrontImg
6757
+
6758
+ @IdCardFrontImg.setter
6759
+ def IdCardFrontImg(self, IdCardFrontImg):
6760
+ self._IdCardFrontImg = IdCardFrontImg
6761
+
6762
+ @property
6763
+ def IdCardBackImg(self):
6764
+ r"""<p>身份类证件背面照片(国徽面)</p>
6765
+ 注意:此字段可能返回 null,表示取不到有效值。
6766
+ :rtype: str
6767
+ """
6768
+ return self._IdCardBackImg
6769
+
6770
+ @IdCardBackImg.setter
6771
+ def IdCardBackImg(self, IdCardBackImg):
6772
+ self._IdCardBackImg = IdCardBackImg
6773
+
6774
+ @property
6775
+ def BirthDate(self):
6776
+ r"""<p>出生日期</p>
6777
+ 注意:此字段可能返回 null,表示取不到有效值。
6778
+ :rtype: str
6779
+ """
6780
+ return self._BirthDate
6781
+
6782
+ @BirthDate.setter
6783
+ def BirthDate(self, BirthDate):
6784
+ self._BirthDate = BirthDate
6785
+
6786
+ @property
6787
+ def BeginTime(self):
6788
+ r"""<p>有效期起始时间</p>
6789
+ 注意:此字段可能返回 null,表示取不到有效值。
6790
+ :rtype: str
6791
+ """
6792
+ return self._BeginTime
6793
+
6794
+ @BeginTime.setter
6795
+ def BeginTime(self, BeginTime):
6796
+ self._BeginTime = BeginTime
6797
+
6798
+ @property
6799
+ def EndTime(self):
6800
+ r"""<p>有效期结束时间</p>
6801
+ 注意:此字段可能返回 null,表示取不到有效值。
6802
+ :rtype: str
6803
+ """
6804
+ return self._EndTime
6805
+
6806
+ @EndTime.setter
6807
+ def EndTime(self, EndTime):
6808
+ self._EndTime = EndTime
6809
+
6810
+ @property
6811
+ def Address(self):
6812
+ r"""<p>住址</p>
6813
+ 注意:此字段可能返回 null,表示取不到有效值。
6814
+ :rtype: str
6815
+ """
6816
+ return self._Address
6817
+
6818
+ @Address.setter
6819
+ def Address(self, Address):
6820
+ self._Address = Address
6821
+
6822
+ @property
6823
+ def Nation(self):
6824
+ r"""<p>民族</p>
6825
+ 注意:此字段可能返回 null,表示取不到有效值。
6826
+ :rtype: str
6827
+ """
6828
+ return self._Nation
6829
+
6830
+ @Nation.setter
6831
+ def Nation(self, Nation):
6832
+ self._Nation = Nation
6833
+
6834
+ @property
6835
+ def Sex(self):
6836
+ r"""<p>性别</p>
6837
+ 注意:此字段可能返回 null,表示取不到有效值。
6838
+ :rtype: str
6839
+ """
6840
+ return self._Sex
6841
+
6842
+ @Sex.setter
6843
+ def Sex(self, Sex):
6844
+ self._Sex = Sex
6845
+
6846
+ @property
6847
+ def IdType(self):
6848
+ r"""<p>证件类型</p><p>枚举值:</p><ul><li>01: 身份证</li><li>03: 中国护照</li><li>06: 港澳通行证</li><li>07: 台胞证</li><li>08: 外国护照</li><li>13: 外国人永久居留证</li><li>14: 港澳台居民居住证</li><li>15: 回乡证</li><li>16: 大陆居民来往台湾通行证</li><li>99: 其他证件</li></ul>
6849
+ 注意:此字段可能返回 null,表示取不到有效值。
6850
+ :rtype: str
6851
+ """
6852
+ return self._IdType
6853
+
6854
+ @IdType.setter
6855
+ def IdType(self, IdType):
6856
+ self._IdType = IdType
6857
+
6858
+ @property
6859
+ def EnName(self):
6860
+ r"""<p>英文姓名</p>
6861
+ 注意:此字段可能返回 null,表示取不到有效值。
6862
+ :rtype: str
6863
+ """
6864
+ return self._EnName
6865
+
6866
+ @EnName.setter
6867
+ def EnName(self, EnName):
6868
+ self._EnName = EnName
6869
+
6870
+ @property
6871
+ def SigningOrganization(self):
6872
+ r"""<p>签发机关</p>
6873
+ 注意:此字段可能返回 null,表示取不到有效值。
6874
+ :rtype: str
6875
+ """
6876
+ return self._SigningOrganization
6877
+
6878
+ @SigningOrganization.setter
6879
+ def SigningOrganization(self, SigningOrganization):
6880
+ self._SigningOrganization = SigningOrganization
6881
+
6882
+ @property
6883
+ def OtherIdNum(self):
6884
+ r"""<p>港澳台居民居住证,通行证号码</p>
6885
+ 注意:此字段可能返回 null,表示取不到有效值。
6886
+ :rtype: str
6887
+ """
6888
+ return self._OtherIdNum
6889
+
6890
+ @OtherIdNum.setter
6891
+ def OtherIdNum(self, OtherIdNum):
6892
+ self._OtherIdNum = OtherIdNum
6893
+
6894
+ @property
6895
+ def Nationality(self):
6896
+ r"""<p>旅行证件国籍</p>
6897
+ 注意:此字段可能返回 null,表示取不到有效值。
6898
+ :rtype: str
6899
+ """
6900
+ return self._Nationality
6901
+
6902
+ @Nationality.setter
6903
+ def Nationality(self, Nationality):
6904
+ self._Nationality = Nationality
6905
+
6906
+ @property
6907
+ def PersonalNumber(self):
6908
+ r"""<p>旅行证件机读区第二行 29~42 位</p>
6909
+ 注意:此字段可能返回 null,表示取不到有效值。
6910
+ :rtype: str
6911
+ """
6912
+ return self._PersonalNumber
6913
+
6914
+ @PersonalNumber.setter
6915
+ def PersonalNumber(self, PersonalNumber):
6916
+ self._PersonalNumber = PersonalNumber
6917
+
6918
+ @property
6919
+ def CheckMRTD(self):
6920
+ r"""<p>证件的验真结果</p><ul><li>JSON格式如下: {&quot;result_issuer &quot;:&quot;签发者证书合法性验证结果 &quot;,&quot;result_paper&quot;:&quot;证件安全对象合法性验证结果 &quot;,&quot;result_data&quot; :&quot;防数据篡改验证结果 &quot;,&quot;result_chip&quot; :&quot;防证书件芯片被复制验证结果&quot;} 。 - 取值范围: 0:验证通过,1: 验证不通过,2: 未验证,3:部分通过,当4项核验结果都为0时,表示证件为真。</li></ul>
6921
+ 注意:此字段可能返回 null,表示取不到有效值。
6922
+ :rtype: str
6923
+ """
6924
+ return self._CheckMRTD
6925
+
6926
+ @CheckMRTD.setter
6927
+ def CheckMRTD(self, CheckMRTD):
6928
+ self._CheckMRTD = CheckMRTD
6929
+
6930
+ @property
6931
+ def RequestId(self):
6932
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6933
+ :rtype: str
6934
+ """
6935
+ return self._RequestId
6936
+
6937
+ @RequestId.setter
6938
+ def RequestId(self, RequestId):
6939
+ self._RequestId = RequestId
6940
+
6941
+
6942
+ def _deserialize(self, params):
6943
+ self._ResultCode = params.get("ResultCode")
6944
+ self._IdNum = params.get("IdNum")
6945
+ self._Name = params.get("Name")
6946
+ self._Picture = params.get("Picture")
6947
+ self._IdCardFrontImg = params.get("IdCardFrontImg")
6948
+ self._IdCardBackImg = params.get("IdCardBackImg")
6949
+ self._BirthDate = params.get("BirthDate")
6950
+ self._BeginTime = params.get("BeginTime")
6951
+ self._EndTime = params.get("EndTime")
6952
+ self._Address = params.get("Address")
6953
+ self._Nation = params.get("Nation")
6954
+ self._Sex = params.get("Sex")
6955
+ self._IdType = params.get("IdType")
6956
+ self._EnName = params.get("EnName")
6957
+ self._SigningOrganization = params.get("SigningOrganization")
6958
+ self._OtherIdNum = params.get("OtherIdNum")
6959
+ self._Nationality = params.get("Nationality")
6960
+ self._PersonalNumber = params.get("PersonalNumber")
6961
+ self._CheckMRTD = params.get("CheckMRTD")
6962
+ self._RequestId = params.get("RequestId")
6963
+
6964
+
6563
6965
  class IdCardOCRVerificationRequest(AbstractModel):
6564
6966
  r"""IdCardOCRVerification请求参数结构体
6565
6967
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-faceid
3
- Version: 3.1.97
3
+ Version: 3.1.126
4
4
  Summary: Tencent Cloud Faceid SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.97
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.126
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.126
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.97