类 Dependent.Builder

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

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

    • Builder

      public Builder()
  • 方法详细资料

    • name

      public Dependent.Builder name(PersonName name)
      亲属姓名

      示例值:

      参数:
      name -
      返回:
    • relationship

      public Dependent.Builder relationship(Enum relationship)
      亲属关系,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)亲属关系(relationship)枚举定义获得

      示例值:

      参数:
      relationship -
      返回:
    • gender

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

      示例值:

      参数:
      gender -
      返回:
    • dateOfBirth

      public Dependent.Builder dateOfBirth(String dateOfBirth)
      生日

      示例值:2020-01-01

      参数:
      dateOfBirth -
      返回:
    • nationalityId

      public Dependent.Builder nationalityId(String nationalityId)
      国籍

      示例值:123456

      参数:
      nationalityId -
      返回:
    • nationalityIdV2

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

      示例值:7075702734054164012

      参数:
      nationalityIdV2 -
      返回:
    • nationalIdList

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

      示例值:

      参数:
      nationalIdList -
      返回:
    • spousesWorkingStatus

      public Dependent.Builder spousesWorkingStatus(Enum spousesWorkingStatus)
      配偶工作状态,比如working(在岗)、not_working(不在岗)

      示例值:

      参数:
      spousesWorkingStatus -
      返回:
    • isThisPersonCoveredByHealthInsurance

      public Dependent.Builder isThisPersonCoveredByHealthInsurance(Boolean isThisPersonCoveredByHealthInsurance)
      包含家属医疗保险

      示例值:true

      参数:
      isThisPersonCoveredByHealthInsurance -
      返回:
    • isThisPersonAllowedForTaxDeduction

      public Dependent.Builder isThisPersonAllowedForTaxDeduction(Boolean isThisPersonAllowedForTaxDeduction)
      允许家属抵扣税款

      示例值:false

      参数:
      isThisPersonAllowedForTaxDeduction -
      返回:
    • customFields

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

      示例值:

      参数:
      customFields -
      返回:
    • dependentName

      public Dependent.Builder dependentName(String dependentName)
      家庭成员姓名

      示例值:张三

      参数:
      dependentName -
      返回:
    • employer

      public Dependent.Builder employer(String employer)
      工作单位

      示例值:海淀区交警大队

      参数:
      employer -
      返回:
    • job

      public Dependent.Builder job(String job)
      岗位

      示例值:保安

      参数:
      job -
      返回:
    • phone

      public Dependent.Builder phone(Phone phone)
      电话

      示例值:

      参数:
      phone -
      返回:
    • address

      public Dependent.Builder address(Address address)
      联系地址

      示例值:

      参数:
      address -
      返回:
    • birthCertificateOfChild

      public Dependent.Builder birthCertificateOfChild(File[] birthCertificateOfChild)
      出生证明

      示例值:

      参数:
      birthCertificateOfChild -
      返回:
    • build

      public Dependent build()