类 Contract.Builder

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

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

    • Builder

      public Builder()
  • 方法详细资料

    • id

      public Contract.Builder id(String id)
      合同ID

      示例值:7147527056140813828

      参数:
      id -
      返回:
    • effectiveTime

      public Contract.Builder effectiveTime(String effectiveTime)
      合同开始日期

      示例值:2023-01-01 00:00:00

      参数:
      effectiveTime -
      返回:
    • contractEndDate

      public Contract.Builder contractEndDate(String contractEndDate)
      合同结束日期

      示例值:2024-01-01

      参数:
      contractEndDate -
      返回:
    • expirationTime

      public Contract.Builder expirationTime(String expirationTime)
      实际结束日期

      示例值:2023-11-01 00:00:00

      参数:
      expirationTime -
      返回:
    • employmentId

      public Contract.Builder employmentId(String employmentId)
      雇佣 ID

      示例值:6893014062142064135

      参数:
      employmentId -
      返回:
    • contractType

      public Contract.Builder contractType(Enum contractType)
      合同类型,枚举值可通过文档【飞书人事枚举常量】合同类型(contract_type)枚举定义部分获得

      示例值:

      参数:
      contractType -
      返回:
    • firstPartyCompanyId

      public Contract.Builder firstPartyCompanyId(String firstPartyCompanyId)
      合同主体, 引用Company的ID,枚举值及详细信息可通过【批量查询公司】接口查询获得

      示例值:7091599096804394540

      参数:
      firstPartyCompanyId -
      返回:
    • personId

      public Contract.Builder personId(String personId)
      Person ID,枚举值及详细信息可通过【批量查询个人信息】接口查询获得

      示例值:7088589447189022252

      参数:
      personId -
      返回:
    • durationType

      public Contract.Builder durationType(Enum durationType)
      期限类型,枚举值可通过文档【飞书人事枚举常量】合同期限类型(duration_type)枚举定义部分获得

      示例值:

      参数:
      durationType -
      返回:
    • contractNumber

      public Contract.Builder contractNumber(String contractNumber)
      合同编号

      示例值:0000011

      参数:
      contractNumber -
      返回:
    • signingType

      public Contract.Builder signingType(Enum signingType)
      签订类型,枚举值可通过文档【飞书人事枚举常量】签订类型(signing_type)枚举定义部分获得

      示例值:

      参数:
      signingType -
      返回:
    • build

      public Contract build()