类 Person.Builder

java.lang.Object
com.lark.oapi.service.corehr.v1.model.Person.Builder
封闭类:
Person

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

    • Builder

      public Builder()
  • 方法详细资料

    • phoneNumber

      public Person.Builder phoneNumber(String phoneNumber)
      个人手机号

      示例值:11111111111

      参数:
      phoneNumber -
      返回:
    • legalName

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

      示例值:张三

      参数:
      legalName -
      返回:
    • preferredName

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

      示例值:张四

      参数:
      preferredName -
      返回:
    • id

      public Person.Builder id(String id)
      Person ID

      示例值:646465654545

      参数:
      id -
      返回:
    • nameList

      public Person.Builder nameList(PersonName[] nameList)
      姓名

      示例值:

      参数:
      nameList -
      返回:
    • gender

      public Person.Builder gender(Enum gender)
      性别,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)性别(gender)枚举定义部分获得

      示例值:

      参数:
      gender -
      返回:
    • dateOfBirth

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

      示例值:2020-01-01

      参数:
      dateOfBirth -
      返回:
    • nationalityId

      public Person.Builder nationalityId(String nationalityId)
      国籍id

      示例值:123456789

      参数:
      nationalityId -
      返回:
    • race

      public Person.Builder race(Enum race)
      民族 / 种族,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)民族(race)枚举定义部分获得

      示例值:

      参数:
      race -
      返回:
    • maritalStatus

      public Person.Builder maritalStatus(Enum maritalStatus)
      婚姻状况,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)婚姻状况(marital_status)枚举定义部分获得

      示例值:

      参数:
      maritalStatus -
      返回:
    • phoneList

      public Person.Builder phoneList(Phone[] phoneList)
      电话列表,只有当满足下面所有条件时,电话在个人信息页才可见:;- 电话号码不为空;- is_primary = "true" ;- phone_usage = "home"

      示例值:

      参数:
      phoneList -
      返回:
    • addressList

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

      示例值:

      参数:
      addressList -
      返回:
    • emailList

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

      示例值:

      参数:
      emailList -
      返回:
    • workExperienceList

      public Person.Builder workExperienceList(WorkExperience[] workExperienceList)
      工作履历列表

      示例值:

      参数:
      workExperienceList -
      返回:
    • educationList

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

      示例值:

      参数:
      educationList -
      返回:
    • bankAccountList

      public Person.Builder bankAccountList(BankAccount[] bankAccountList)
      银行账号

      示例值:

      参数:
      bankAccountList -
      返回:
    • nationalIdList

      public Person.Builder nationalIdList(NationalId[] nationalIdList)
      证件号码

      示例值:

      参数:
      nationalIdList -
      返回:
    • dependentList

      public Person.Builder dependentList(Dependent[] dependentList)
      亲属列表

      示例值:

      参数:
      dependentList -
      返回:
    • emergencyContactList

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

      示例值:

      参数:
      emergencyContactList -
      返回:
    • dateEnteredWorkforce

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

      示例值:2020-10-01

      参数:
      dateEnteredWorkforce -
      返回:
    • profileImageId

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

      示例值:dfysuc8x76dsfsw

      参数:
      profileImageId -
      返回:
    • customFields

      public Person.Builder customFields(ObjectFieldData[] customFields)
      自定义字段

      示例值:

      参数:
      customFields -
      返回:
    • emailAddress

      public Person.Builder emailAddress(String emailAddress)
      邮箱

      示例值:test@163.com

      参数:
      emailAddress -
      返回:
    • residentTaxIdList

      public Person.Builder residentTaxIdList(String[] residentTaxIdList)
      纳税身份信息

      示例值:["1", "2"]

      参数:
      residentTaxIdList -
      返回:
    • age

      public Person.Builder age(Integer age)
      年龄

      示例值:25

      参数:
      age -
      返回:
    • highestLevelOfEducation

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

      示例值:

      参数:
      highestLevelOfEducation -
      返回:
    • highestDegreeOfEducation

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

      示例值:

      参数:
      highestDegreeOfEducation -
      返回:
    • personalProfile

      public Person.Builder personalProfile(PersonalProfile[] personalProfile)
      个人资料

      示例值:

      参数:
      personalProfile -
      返回:
    • build

      public Person build()