Class: TencentCloud::Ocr::V20181119::TemporaryIDCardInfo

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

Overview

临时身份证信息返回

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, sex = nil, nation = nil, birth = nil, address = nil, idnum = nil, authority = nil, validdate = nil, warninfos = nil, cardimage = nil, portraitimage = nil) ⇒ TemporaryIDCardInfo

Returns a new instance of TemporaryIDCardInfo.



11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
# File 'lib/v20181119/models.rb', line 11754

def initialize(name=nil, sex=nil, nation=nil, birth=nil, address=nil, idnum=nil, authority=nil, validdate=nil, warninfos=nil, cardimage=nil, portraitimage=nil)
  @Name = name
  @Sex = sex
  @Nation = nation
  @Birth = birth
  @Address = address
  @IdNum = idnum
  @Authority = authority
  @ValidDate = validdate
  @WarnInfos = warninfos
  @CardImage = cardimage
  @PortraitImage = portraitimage
end

Instance Attribute Details

#AddressObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

    IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;

  • PortraitImage:

    Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;



11752
11753
11754
# File 'lib/v20181119/models.rb', line 11752

def Address
  @Address
end

#AuthorityObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

    IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;

  • PortraitImage:

    Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;



11752
11753
11754
# File 'lib/v20181119/models.rb', line 11752

def Authority
  @Authority
end

#BirthObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

    IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;

  • PortraitImage:

    Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;



11752
11753
11754
# File 'lib/v20181119/models.rb', line 11752

def Birth
  @Birth
end

#CardImageObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

    IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;

  • PortraitImage:

    Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;



11752
11753
11754
# File 'lib/v20181119/models.rb', line 11752

def CardImage
  @CardImage
end

#IdNumObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

    IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;

  • PortraitImage:

    Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;



11752
11753
11754
# File 'lib/v20181119/models.rb', line 11752

def IdNum
  @IdNum
end

#NameObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

    IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;

  • PortraitImage:

    Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;



11752
11753
11754
# File 'lib/v20181119/models.rb', line 11752

def Name
  @Name
end

#NationObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

    IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;

  • PortraitImage:

    Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;



11752
11753
11754
# File 'lib/v20181119/models.rb', line 11752

def Nation
  @Nation
end

#PortraitImageObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

    IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;

  • PortraitImage:

    Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;



11752
11753
11754
# File 'lib/v20181119/models.rb', line 11752

def PortraitImage
  @PortraitImage
end

#SexObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

    IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;

  • PortraitImage:

    Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;



11752
11753
11754
# File 'lib/v20181119/models.rb', line 11752

def Sex
  @Sex
end

#ValidDateObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

    IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;

  • PortraitImage:

    Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;



11752
11753
11754
# File 'lib/v20181119/models.rb', line 11752

def ValidDate
  @ValidDate
end

#WarnInfosObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

    IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;

  • PortraitImage:

    Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;



11752
11753
11754
# File 'lib/v20181119/models.rb', line 11752

def WarnInfos
  @WarnInfos
end

Instance Method Details

#deserialize(params) ⇒ Object



11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
# File 'lib/v20181119/models.rb', line 11768

def deserialize(params)
  unless params['Name'].nil?
    @Name = .new
    @Name.deserialize(params['Name'])
  end
  unless params['Sex'].nil?
    @Sex = .new
    @Sex.deserialize(params['Sex'])
  end
  unless params['Nation'].nil?
    @Nation = .new
    @Nation.deserialize(params['Nation'])
  end
  unless params['Birth'].nil?
    @Birth = .new
    @Birth.deserialize(params['Birth'])
  end
  unless params['Address'].nil?
    @Address = .new
    @Address.deserialize(params['Address'])
  end
  unless params['IdNum'].nil?
    @IdNum = .new
    @IdNum.deserialize(params['IdNum'])
  end
  unless params['Authority'].nil?
    @Authority = .new
    @Authority.deserialize(params['Authority'])
  end
  unless params['ValidDate'].nil?
    @ValidDate = .new
    @ValidDate.deserialize(params['ValidDate'])
  end
  unless params['WarnInfos'].nil?
    @WarnInfos = CardWarnInfo.new
    @WarnInfos.deserialize(params['WarnInfos'])
  end
  unless params['CardImage'].nil?
    @CardImage = .new
    @CardImage.deserialize(params['CardImage'])
  end
  unless params['PortraitImage'].nil?
    @PortraitImage = .new
    @PortraitImage.deserialize(params['PortraitImage'])
  end
end