类 PersonInfo.Builder

java.lang.Object
com.lark.oapi.service.corehr.v2.model.PersonInfo.Builder
封闭类:
PersonInfo

public static class PersonInfo.Builder extends Object
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • personId

      public PersonInfo.Builder personId(String personId)
      个人信息 ID

      示例值:6919733936050406926

      参数:
      personId -
      返回:
    • phoneNumber

      public PersonInfo.Builder phoneNumber(String phoneNumber)
      个人电话

      示例值:13649211111

      参数:
      phoneNumber -
      返回:
    • legalName

      public PersonInfo.Builder legalName(String legalName)
      法定姓名

      示例值:张三

      参数:
      legalName -
      返回:
    • preferredName

      public PersonInfo.Builder preferredName(String preferredName)
      常用名

      示例值:刘梓新(Henry)

      参数:
      preferredName -
      返回:
    • preferredLocalFullName

      public PersonInfo.Builder preferredLocalFullName(String preferredLocalFullName)
      常用本地全名

      示例值:刘梓新

      参数:
      preferredLocalFullName -
      返回:
    • preferredEnglishFullName

      public PersonInfo.Builder preferredEnglishFullName(String preferredEnglishFullName)
      常用英文全名

      示例值:Henry

      参数:
      preferredEnglishFullName -
      返回:
    • nameList

      public PersonInfo.Builder nameList(PersonName[] nameList)
      姓名列表

      示例值:

      参数:
      nameList -
      返回:
    • gender

      public PersonInfo.Builder gender(Enum gender)
      -| 性别,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:gender - object_api_name:person

      示例值:

      参数:
      gender -
      返回:
    • dateOfBirth

      public PersonInfo.Builder dateOfBirth(String dateOfBirth)
      出生日期

      示例值:2020-01-01

      参数:
      dateOfBirth -
      返回:
    • nationalityIdV2

      public PersonInfo.Builder nationalityIdV2(String nationalityIdV2)
      国籍 ID,可通过【查询国籍信息】接口查询

      示例值:6862995757234914821

      参数:
      nationalityIdV2 -
      返回:
    • race

      public PersonInfo.Builder race(Enum race)
      -| 民族 / 种族,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:ethnicity_race - object_api_name:person

      示例值:

      参数:
      race -
      返回:
    • maritalStatus

      public PersonInfo.Builder maritalStatus(Enum maritalStatus)
      -| 婚姻状况,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:marital_status - object_api_name:person

      示例值:

      参数:
      maritalStatus -
      返回:
    • phoneList

      public PersonInfo.Builder phoneList(Phone[] phoneList)
      电话列表,只有当满足下面所有条件时,电话在个人信息页才可见

      示例值:

      参数:
      phoneList -
      返回:
    • addressList

      public PersonInfo.Builder addressList(Address[] addressList)
      地址列表

      示例值:

      参数:
      addressList -
      返回:
    • emailList

      public PersonInfo.Builder emailList(Email[] emailList)
      邮箱列表

      示例值:

      参数:
      emailList -
      返回:
    • workExperienceList

      public PersonInfo.Builder workExperienceList(WorkExperienceInfo[] workExperienceList)
      工作经历列表

      示例值:

      参数:
      workExperienceList -
      返回:
    • educationList

      public PersonInfo.Builder educationList(Education[] educationList)
      教育经历列表

      示例值:

      参数:
      educationList -
      返回:
    • bankAccountList

      public PersonInfo.Builder bankAccountList(BankAccount[] bankAccountList)
      银行账户

      示例值:

      参数:
      bankAccountList -
      返回:
    • nationalIdList

      public PersonInfo.Builder nationalIdList(NationalId[] nationalIdList)
      证件

      示例值:

      参数:
      nationalIdList -
      返回:
    • dependentList

      public PersonInfo.Builder dependentList(Dependent[] dependentList)
      家庭成员列表

      示例值:

      参数:
      dependentList -
      返回:
    • emergencyContactList

      public PersonInfo.Builder emergencyContactList(EmergencyContact[] emergencyContactList)
      紧急联系人列表

      示例值:

      参数:
      emergencyContactList -
      返回:
    • dateEnteredWorkforce

      public PersonInfo.Builder dateEnteredWorkforce(String dateEnteredWorkforce)
      参加工作日期

      示例值:2020-10-01

      参数:
      dateEnteredWorkforce -
      返回:
    • workingYears

      public PersonInfo.Builder workingYears(Integer workingYears)
      工龄

      示例值:2

      参数:
      workingYears -
      返回:
    • profileImageId

      public PersonInfo.Builder profileImageId(String profileImageId)
      头像资源的 ID

      示例值:dfysuc8x76dsfsw

      参数:
      profileImageId -
      返回:
    • emailAddress

      public PersonInfo.Builder emailAddress(String emailAddress)
      邮箱地址

      示例值:test@163.com

      参数:
      emailAddress -
      返回:
    • age

      public PersonInfo.Builder age(Integer age)
      年龄

      示例值:22

      参数:
      age -
      返回:
    • highestLevelOfEducation

      public PersonInfo.Builder highestLevelOfEducation(Education highestLevelOfEducation)
      最高学历教育经历

      示例值:

      参数:
      highestLevelOfEducation -
      返回:
    • highestDegreeOfEducation

      public PersonInfo.Builder highestDegreeOfEducation(Education highestDegreeOfEducation)
      最高学位教育经历

      示例值:

      参数:
      highestDegreeOfEducation -
      返回:
    • personalProfile

      public PersonInfo.Builder personalProfile(PersonalProfile[] personalProfile)
      个人资料附件

      示例值:

      参数:
      personalProfile -
      返回:
    • nativeRegion

      public PersonInfo.Builder nativeRegion(String nativeRegion)
      籍贯 ID

      示例值:6863326262618752111

      参数:
      nativeRegion -
      返回:
    • hukouType

      public PersonInfo.Builder hukouType(Enum hukouType)
      户口类型,枚举值可通过文档【飞书人事枚举常量】户口类型(hukou_type)枚举定义部分获得

      示例值:

      参数:
      hukouType -
      返回:
    • hukouLocation

      public PersonInfo.Builder hukouLocation(String hukouLocation)
      户口所在地

      示例值:山东省平阴县

      参数:
      hukouLocation -
      返回:
    • politicalAffiliations

      public PersonInfo.Builder politicalAffiliations(Enum[] politicalAffiliations)
      政治面貌,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:political_affiliation - object_api_name:person_info_chn

      示例值:

      参数:
      politicalAffiliations -
      返回:
    • talentId

      public PersonInfo.Builder talentId(String talentId)
      人才 ID

      示例值:6863326262618752123

      参数:
      talentId -
      返回:
    • customFields

      public PersonInfo.Builder customFields(CustomFieldData[] customFields)
      自定义字段

      示例值:

      参数:
      customFields -
      返回:
    • nationalIdNumber

      public PersonInfo.Builder nationalIdNumber(String nationalIdNumber)
      居民身份证件号码

      示例值:11010000000000

      参数:
      nationalIdNumber -
      返回:
    • familyAddress

      public PersonInfo.Builder familyAddress(String familyAddress)
      家庭地址

      示例值:6863326262618752123

      参数:
      familyAddress -
      返回:
    • personInfoChns

      public PersonInfo.Builder personInfoChns(PersonInfoChn[] personInfoChns)
      个人附加信息

      示例值:6863326262618752123

      参数:
      personInfoChns -
      返回:
    • bornCountryRegion

      public PersonInfo.Builder bornCountryRegion(String bornCountryRegion)
      出生国家/地区

      示例值:中国

      参数:
      bornCountryRegion -
      返回:
    • isDisabled

      public PersonInfo.Builder isDisabled(Boolean isDisabled)
      是否残疾

      示例值:true

      参数:
      isDisabled -
      返回:
    • disableCardNumber

      public PersonInfo.Builder disableCardNumber(String disableCardNumber)
      残疾证号

      示例值:1110000

      参数:
      disableCardNumber -
      返回:
    • isMartyrFamily

      public PersonInfo.Builder isMartyrFamily(Boolean isMartyrFamily)
      是否烈属

      示例值:true

      参数:
      isMartyrFamily -
      返回:
    • martyrCardNumber

      public PersonInfo.Builder martyrCardNumber(String martyrCardNumber)
      烈属证号

      示例值:1110000

      参数:
      martyrCardNumber -
      返回:
    • isOldAlone

      public PersonInfo.Builder isOldAlone(Boolean isOldAlone)
      是否孤老

      示例值:true

      参数:
      isOldAlone -
      返回:
    • residentTaxes

      public PersonInfo.Builder residentTaxes(ResidentTax[] residentTaxes)
      居民身份信息

      示例值:6863326262618752123

      参数:
      residentTaxes -
      返回:
    • firstEntryTime

      public PersonInfo.Builder firstEntryTime(String firstEntryTime)
      首次入境日期

      示例值:2021-01-02

      参数:
      firstEntryTime -
      返回:
    • leaveTime

      public PersonInfo.Builder leaveTime(String leaveTime)
      预计离境日期

      示例值:2022-01-02

      参数:
      leaveTime -
      返回:
    • religion

      public PersonInfo.Builder religion(Enum religion)
      -| 宗教信仰,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - object_api_name:person - custom_api_name:religion

      示例值:

      参数:
      religion -
      返回:
    • build

      public PersonInfo build()