Class: TencentCloud::Ocr::V20181119::PassportOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::PassportOCRResponse
- Defined in:
- lib/v20181119/models.rb
Overview
PassportOCR返回参数结构体
Instance Attribute Summary collapse
- #BirthDate ⇒ Object
- #BirthPlace ⇒ Object
- #CodeCrc ⇒ Object
- #CodeSet ⇒ Object
- #Country ⇒ Object
- #ExpiryDate ⇒ Object
- #FamilyName ⇒ Object
- #FirstName ⇒ Object
- #IssueDate ⇒ Object
- #IssuePlace ⇒ Object
- #Name ⇒ Object
- #Nationality ⇒ Object
- #PassportNo ⇒ Object
- #PortraitImageInfo ⇒ Object
- #RequestId ⇒ Object
- #Sex ⇒ Object
- #Signature ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(country = nil, passportno = nil, sex = nil, nationality = nil, birthdate = nil, birthplace = nil, issuedate = nil, issueplace = nil, expirydate = nil, signature = nil, codeset = nil, codecrc = nil, name = nil, familyname = nil, firstname = nil, portraitimageinfo = nil, requestid = nil) ⇒ PassportOCRResponse
constructor
A new instance of PassportOCRResponse.
Constructor Details
#initialize(country = nil, passportno = nil, sex = nil, nationality = nil, birthdate = nil, birthplace = nil, issuedate = nil, issueplace = nil, expirydate = nil, signature = nil, codeset = nil, codecrc = nil, name = nil, familyname = nil, firstname = nil, portraitimageinfo = nil, requestid = nil) ⇒ PassportOCRResponse
Returns a new instance of PassportOCRResponse.
7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 |
# File 'lib/v20181119/models.rb', line 7412 def initialize(country=nil, passportno=nil, sex=nil, nationality=nil, birthdate=nil, birthplace=nil, issuedate=nil, issueplace=nil, expirydate=nil, signature=nil, codeset=nil, codecrc=nil, name=nil, familyname=nil, firstname=nil, portraitimageinfo=nil, requestid=nil) @Country = country @PassportNo = passportno @Sex = sex @Nationality = nationality @BirthDate = birthdate @BirthPlace = birthplace @IssueDate = issuedate @IssuePlace = issueplace @ExpiryDate = expirydate @Signature = signature @CodeSet = codeset @CodeCrc = codecrc @Name = name @FamilyName = familyname @FirstName = firstname @PortraitImageInfo = portraitimageinfo @RequestId = requestid end |
Instance Attribute Details
#BirthDate ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def BirthDate @BirthDate end |
#BirthPlace ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def BirthPlace @BirthPlace end |
#CodeCrc ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def CodeCrc @CodeCrc end |
#CodeSet ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def CodeSet @CodeSet end |
#Country ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def Country @Country end |
#ExpiryDate ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def ExpiryDate @ExpiryDate end |
#FamilyName ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def FamilyName @FamilyName end |
#FirstName ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def FirstName @FirstName end |
#IssueDate ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def IssueDate @IssueDate end |
#IssuePlace ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def IssuePlace @IssuePlace end |
#Name ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def Name @Name end |
#Nationality ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def Nationality @Nationality end |
#PassportNo ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def PassportNo @PassportNo end |
#PortraitImageInfo ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def PortraitImageInfo @PortraitImageInfo end |
#RequestId ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def RequestId @RequestId end |
#Sex ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def Sex @Sex end |
#Signature ⇒ Object
7410 7411 7412 |
# File 'lib/v20181119/models.rb', line 7410 def Signature @Signature end |
Instance Method Details
#deserialize(params) ⇒ Object
7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 |
# File 'lib/v20181119/models.rb', line 7432 def deserialize(params) @Country = params['Country'] @PassportNo = params['PassportNo'] @Sex = params['Sex'] @Nationality = params['Nationality'] @BirthDate = params['BirthDate'] @BirthPlace = params['BirthPlace'] @IssueDate = params['IssueDate'] @IssuePlace = params['IssuePlace'] @ExpiryDate = params['ExpiryDate'] @Signature = params['Signature'] @CodeSet = params['CodeSet'] @CodeCrc = params['CodeCrc'] @Name = params['Name'] @FamilyName = params['FamilyName'] @FirstName = params['FirstName'] unless params['PortraitImageInfo'].nil? @PortraitImageInfo = PortraitImageInfo.new @PortraitImageInfo.deserialize(params['PortraitImageInfo']) end @RequestId = params['RequestId'] end |