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.



11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
# File 'lib/v20181119/models.rb', line 11915

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 时返回;



11913
11914
11915
# File 'lib/v20181119/models.rb', line 11913

def Address
  @Address
end

#AuthorityObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

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

  • PortraitImage:

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



11913
11914
11915
# File 'lib/v20181119/models.rb', line 11913

def Authority
  @Authority
end

#BirthObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

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

  • PortraitImage:

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



11913
11914
11915
# File 'lib/v20181119/models.rb', line 11913

def Birth
  @Birth
end

#CardImageObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

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

  • PortraitImage:

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



11913
11914
11915
# File 'lib/v20181119/models.rb', line 11913

def CardImage
  @CardImage
end

#IdNumObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

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

  • PortraitImage:

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



11913
11914
11915
# File 'lib/v20181119/models.rb', line 11913

def IdNum
  @IdNum
end

#NameObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

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

  • PortraitImage:

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



11913
11914
11915
# File 'lib/v20181119/models.rb', line 11913

def Name
  @Name
end

#NationObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

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

  • PortraitImage:

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



11913
11914
11915
# File 'lib/v20181119/models.rb', line 11913

def Nation
  @Nation
end

#PortraitImageObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

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

  • PortraitImage:

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



11913
11914
11915
# File 'lib/v20181119/models.rb', line 11913

def PortraitImage
  @PortraitImage
end

#SexObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

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

  • PortraitImage:

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



11913
11914
11915
# File 'lib/v20181119/models.rb', line 11913

def Sex
  @Sex
end

#ValidDateObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

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

  • PortraitImage:

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



11913
11914
11915
# File 'lib/v20181119/models.rb', line 11913

def ValidDate
  @ValidDate
end

#WarnInfosObject

Parameters:

  • Name:

    姓名(人像面)

  • Sex:

    性别(人像面)

  • Nation:

    民族(人像面)

  • Birth:

    出生日期(人像面)

  • Address:

    地址(人像面)

  • IdNum:

    公民身份号码(人像面)

  • Authority:

    发证机关(国徽面)

  • ValidDate:

    证件有效期(国徽面)

  • WarnInfos:

    WarnInfos,告警信息

  • CardImage:

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

  • PortraitImage:

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



11913
11914
11915
# File 'lib/v20181119/models.rb', line 11913

def WarnInfos
  @WarnInfos
end

Instance Method Details

#deserialize(params) ⇒ Object



11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
# File 'lib/v20181119/models.rb', line 11929

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