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.
6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 |
# File 'lib/v20181119/models.rb', line 6687 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
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def BirthDate @BirthDate end |
#BirthPlace ⇒ Object
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def BirthPlace @BirthPlace end |
#CodeCrc ⇒ Object
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def CodeCrc @CodeCrc end |
#CodeSet ⇒ Object
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def CodeSet @CodeSet end |
#Country ⇒ Object
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def Country @Country end |
#ExpiryDate ⇒ Object
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def ExpiryDate @ExpiryDate end |
#FamilyName ⇒ Object
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def FamilyName @FamilyName end |
#FirstName ⇒ Object
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def FirstName @FirstName end |
#IssueDate ⇒ Object
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def IssueDate @IssueDate end |
#IssuePlace ⇒ Object
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def IssuePlace @IssuePlace end |
#Name ⇒ Object
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def Name @Name end |
#Nationality ⇒ Object
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def Nationality @Nationality end |
#PassportNo ⇒ Object
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def PassportNo @PassportNo end |
#PortraitImageInfo ⇒ Object
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def PortraitImageInfo @PortraitImageInfo end |
#RequestId ⇒ Object
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def RequestId @RequestId end |
#Sex ⇒ Object
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def Sex @Sex end |
#Signature ⇒ Object
6685 6686 6687 |
# File 'lib/v20181119/models.rb', line 6685 def Signature @Signature end |
Instance Method Details
#deserialize(params) ⇒ Object
6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 |
# File 'lib/v20181119/models.rb', line 6707 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 |