public static class LeaveRequestCreated.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
LeaveRequestCreated.Builder |
applicableScenarios(String applicableScenarios)
申请场景(parent_accompany:父母/配偶父母患病需陪护, spouse_accompany:配偶患病需陪护, child_accompany:子女患病需陪护)
示例值:parent_accompany
|
LeaveRequestCreated.Builder |
arriveLateMinutes(Integer arriveLateMinutes)
上班晚到时长(分钟)
示例值:10
|
LeaveRequestCreated |
build() |
LeaveRequestCreated.Builder |
childDateOfBirth(String childDateOfBirth)
子女出生日期
示例值:2023-11-07
|
LeaveRequestCreated.Builder |
dailyLeaveMode(String dailyLeaveMode)
每日休假方式(arrive_late:上班晚到, leave_early:上班晚到, arrive_late_and_leave_early:上班晚到 + 下班早走)
示例值:arrive_late
|
LeaveRequestCreated.Builder |
dateOfMarriageCertificate(String dateOfMarriageCertificate)
领证日期
示例值:2023-11-07
|
LeaveRequestCreated.Builder |
difficultyGivingBirth(Boolean difficultyGivingBirth)
是否难产
示例值:false
|
LeaveRequestCreated.Builder |
dueDate(String dueDate)
预产期
示例值:2023-11-07
|
LeaveRequestCreated.Builder |
employmentId(String employmentId)
员工ID(与 user_id_type 保持一致)
示例值:7360983350600173082
|
LeaveRequestCreated.Builder |
endTime(LeaveTime endTime)
请假结束时间
示例值:
|
LeaveRequestCreated.Builder |
isCoupleLiveApart(Boolean isCoupleLiveApart)
是否夫妻两地分居
示例值:false
|
LeaveRequestCreated.Builder |
leaveEarlyMinutes(Integer leaveEarlyMinutes)
下班早走时长(分钟)
示例值:10
|
LeaveRequestCreated.Builder |
leaveTypeId(String leaveTypeId)
假期类型ID(可以通过接口 https://open.larkoffice.com/document/server-docs/corehr-v1/leave/leave_types
来获取假期类型ID)
示例值:7452717067026138635
|
LeaveRequestCreated.Builder |
notes(String notes)
备注
示例值:休息
|
LeaveRequestCreated.Builder |
numberOfNewborns(Integer numberOfNewborns)
新生儿数量
示例值:1
|
LeaveRequestCreated.Builder |
pregnantMonths(Integer pregnantMonths)
怀孕月数
示例值:10
|
LeaveRequestCreated.Builder |
providePremaritalExaminationMaterials(Boolean providePremaritalExaminationMaterials)
是否可提供婚前检查材料
示例值:false
|
LeaveRequestCreated.Builder |
startTime(LeaveTime startTime)
请假开始时间
示例值:
|
LeaveRequestCreated.Builder |
timeZone(String timeZone)
时区
示例值:Asia/Shanghai
|
public LeaveRequestCreated.Builder employmentId(String employmentId)
示例值:7360983350600173082
employmentId - public LeaveRequestCreated.Builder leaveTypeId(String leaveTypeId)
示例值:7452717067026138635
leaveTypeId - public LeaveRequestCreated.Builder startTime(LeaveTime startTime)
示例值:
startTime - public LeaveRequestCreated.Builder endTime(LeaveTime endTime)
示例值:
endTime - public LeaveRequestCreated.Builder timeZone(String timeZone)
示例值:Asia/Shanghai
timeZone - public LeaveRequestCreated.Builder dailyLeaveMode(String dailyLeaveMode)
示例值:arrive_late
dailyLeaveMode - public LeaveRequestCreated.Builder arriveLateMinutes(Integer arriveLateMinutes)
示例值:10
arriveLateMinutes - public LeaveRequestCreated.Builder leaveEarlyMinutes(Integer leaveEarlyMinutes)
示例值:10
leaveEarlyMinutes - public LeaveRequestCreated.Builder notes(String notes)
示例值:休息
notes - public LeaveRequestCreated.Builder dateOfMarriageCertificate(String dateOfMarriageCertificate)
示例值:2023-11-07
dateOfMarriageCertificate - public LeaveRequestCreated.Builder providePremaritalExaminationMaterials(Boolean providePremaritalExaminationMaterials)
示例值:false
providePremaritalExaminationMaterials - public LeaveRequestCreated.Builder isCoupleLiveApart(Boolean isCoupleLiveApart)
示例值:false
isCoupleLiveApart - public LeaveRequestCreated.Builder difficultyGivingBirth(Boolean difficultyGivingBirth)
示例值:false
difficultyGivingBirth - public LeaveRequestCreated.Builder pregnantMonths(Integer pregnantMonths)
示例值:10
pregnantMonths - public LeaveRequestCreated.Builder dueDate(String dueDate)
示例值:2023-11-07
dueDate - public LeaveRequestCreated.Builder childDateOfBirth(String childDateOfBirth)
示例值:2023-11-07
childDateOfBirth - public LeaveRequestCreated.Builder numberOfNewborns(Integer numberOfNewborns)
示例值:1
numberOfNewborns - public LeaveRequestCreated.Builder applicableScenarios(String applicableScenarios)
示例值:parent_accompany
applicableScenarios - public LeaveRequestCreated build()
Copyright © 2026. All rights reserved.