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.



6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
# File 'lib/v20181119/models.rb', line 6546

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

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



6544
6545
6546
# File 'lib/v20181119/models.rb', line 6544

def DateOfBirth
  @DateOfBirth
end

#DateOfExpirationObject

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



6544
6545
6546
# File 'lib/v20181119/models.rb', line 6544

def DateOfExpiration
  @DateOfExpiration
end

#DateOfIssuanceObject

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



6544
6545
6546
# File 'lib/v20181119/models.rb', line 6544

def DateOfIssuance
  @DateOfIssuance
end

#GivenNameObject

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



6544
6545
6546
# File 'lib/v20181119/models.rb', line 6544

def GivenName
  @GivenName
end

#IssuePlaceObject

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



6544
6545
6546
# File 'lib/v20181119/models.rb', line 6544

def IssuePlace
  @IssuePlace
end

#IssuingAuthorityObject

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



6544
6545
6546
# File 'lib/v20181119/models.rb', line 6544

def IssuingAuthority
  @IssuingAuthority
end

#IssuingCountryObject

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



6544
6545
6546
# File 'lib/v20181119/models.rb', line 6544

def IssuingCountry
  @IssuingCountry
end

#NameObject

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



6544
6545
6546
# File 'lib/v20181119/models.rb', line 6544

def Name
  @Name
end

#NationalityObject

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



6544
6545
6546
# File 'lib/v20181119/models.rb', line 6544

def Nationality
  @Nationality
end

#PassportIDObject

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



6544
6545
6546
# File 'lib/v20181119/models.rb', line 6544

def PassportID
  @PassportID
end

#SexObject

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



6544
6545
6546
# File 'lib/v20181119/models.rb', line 6544

def Sex
  @Sex
end

#SignatureObject

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



6544
6545
6546
# File 'lib/v20181119/models.rb', line 6544

def Signature
  @Signature
end

#SurnameObject

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



6544
6545
6546
# File 'lib/v20181119/models.rb', line 6544

def Surname
  @Surname
end

#TypeObject

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



6544
6545
6546
# File 'lib/v20181119/models.rb', line 6544

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
# File 'lib/v20181119/models.rb', line 6563

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