Class: TencentCloud::Ocr::V20181119::PassportRecognizeInfos

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20181119/models.rb

Overview

信息区证件内容

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, issuingcountry = nil, passportid = nil, surname = nil, givenname = nil, name = nil, nationality = nil, dateofbirth = nil, sex = nil, dateofissuance = nil, dateofexpiration = nil, signature = nil, issueplace = nil, issuingauthority = nil) ⇒ PassportRecognizeInfos

Returns a new instance of PassportRecognizeInfos.



6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
# File 'lib/v20181119/models.rb', line 6770

def initialize(type=nil, issuingcountry=nil, passportid=nil, surname=nil, givenname=nil, name=nil, nationality=nil, dateofbirth=nil, sex=nil, dateofissuance=nil, dateofexpiration=nil, signature=nil, issueplace=nil, issuingauthority=nil)
  @Type = type
  @IssuingCountry = issuingcountry
  @PassportID = passportid
  @Surname = surname
  @GivenName = givenname
  @Name = name
  @Nationality = nationality
  @DateOfBirth = dateofbirth
  @Sex = sex
  @DateOfIssuance = dateofissuance
  @DateOfExpiration = dateofexpiration
  @Signature = signature
  @IssuePlace = issueplace
  @IssuingAuthority = issuingauthority
end

Instance Attribute Details

#DateOfBirthObject

仅中国大陆护照支持返回此字段,港澳台及境外护照不支持



6768
6769
6770
# File 'lib/v20181119/models.rb', line 6768

def DateOfBirth
  @DateOfBirth
end

#DateOfExpirationObject

仅中国大陆护照支持返回此字段,港澳台及境外护照不支持



6768
6769
6770
# File 'lib/v20181119/models.rb', line 6768

def DateOfExpiration
  @DateOfExpiration
end

#DateOfIssuanceObject

仅中国大陆护照支持返回此字段,港澳台及境外护照不支持



6768
6769
6770
# File 'lib/v20181119/models.rb', line 6768

def DateOfIssuance
  @DateOfIssuance
end

#GivenNameObject

仅中国大陆护照支持返回此字段,港澳台及境外护照不支持



6768
6769
6770
# File 'lib/v20181119/models.rb', line 6768

def GivenName
  @GivenName
end

#IssuePlaceObject

仅中国大陆护照支持返回此字段,港澳台及境外护照不支持



6768
6769
6770
# File 'lib/v20181119/models.rb', line 6768

def IssuePlace
  @IssuePlace
end

#IssuingAuthorityObject

仅中国大陆护照支持返回此字段,港澳台及境外护照不支持



6768
6769
6770
# File 'lib/v20181119/models.rb', line 6768

def IssuingAuthority
  @IssuingAuthority
end

#IssuingCountryObject

仅中国大陆护照支持返回此字段,港澳台及境外护照不支持



6768
6769
6770
# File 'lib/v20181119/models.rb', line 6768

def IssuingCountry
  @IssuingCountry
end

#NameObject

仅中国大陆护照支持返回此字段,港澳台及境外护照不支持



6768
6769
6770
# File 'lib/v20181119/models.rb', line 6768

def Name
  @Name
end

#NationalityObject

仅中国大陆护照支持返回此字段,港澳台及境外护照不支持



6768
6769
6770
# File 'lib/v20181119/models.rb', line 6768

def Nationality
  @Nationality
end

#PassportIDObject

仅中国大陆护照支持返回此字段,港澳台及境外护照不支持



6768
6769
6770
# File 'lib/v20181119/models.rb', line 6768

def PassportID
  @PassportID
end

#SexObject

仅中国大陆护照支持返回此字段,港澳台及境外护照不支持



6768
6769
6770
# File 'lib/v20181119/models.rb', line 6768

def Sex
  @Sex
end

#SignatureObject

仅中国大陆护照支持返回此字段,港澳台及境外护照不支持



6768
6769
6770
# File 'lib/v20181119/models.rb', line 6768

def Signature
  @Signature
end

#SurnameObject

仅中国大陆护照支持返回此字段,港澳台及境外护照不支持



6768
6769
6770
# File 'lib/v20181119/models.rb', line 6768

def Surname
  @Surname
end

#TypeObject

仅中国大陆护照支持返回此字段,港澳台及境外护照不支持



6768
6769
6770
# File 'lib/v20181119/models.rb', line 6768

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
# File 'lib/v20181119/models.rb', line 6787

def deserialize(params)
  @Type = params['Type']
  @IssuingCountry = params['IssuingCountry']
  @PassportID = params['PassportID']
  @Surname = params['Surname']
  @GivenName = params['GivenName']
  @Name = params['Name']
  @Nationality = params['Nationality']
  @DateOfBirth = params['DateOfBirth']
  @Sex = params['Sex']
  @DateOfIssuance = params['DateOfIssuance']
  @DateOfExpiration = params['DateOfExpiration']
  @Signature = params['Signature']
  @IssuePlace = params['IssuePlace']
  @IssuingAuthority = params['IssuingAuthority']
end