Class TimeOffRequest
- java.lang.Object
-
- com.merge.api.resources.hris.types.TimeOffRequest
-
public final class TimeOffRequest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeOffRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeOffRequest.Builderbuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.lang.Double>getAmount()java.util.Optional<TimeOffRequestApprover>getApprover()java.util.Optional<TimeOffRequestEmployee>getEmployee()java.util.Optional<java.lang.String>getEmployeeNote()java.util.Optional<java.time.OffsetDateTime>getEndTime()java.util.Optional<java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode>>getIntegrationParams()java.util.Optional<java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode>>getLinkedAccountParams()java.util.Optional<TimeOffRequestRequestType>getRequestType()java.util.Optional<java.time.OffsetDateTime>getStartTime()java.util.Optional<TimeOffRequestStatus>getStatus()java.util.Optional<TimeOffRequestUnits>getUnits()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getEmployee
public java.util.Optional<TimeOffRequestEmployee> getEmployee()
- Returns:
- The employee requesting time off.
-
getApprover
public java.util.Optional<TimeOffRequestApprover> getApprover()
- Returns:
- The Merge ID of the employee with the ability to approve the time off request.
-
getStatus
public java.util.Optional<TimeOffRequestStatus> getStatus()
- Returns:
- The status of this time off request.
REQUESTED- REQUESTEDAPPROVED- APPROVEDDECLINED- DECLINEDCANCELLED- CANCELLEDDELETED- DELETED
-
getEmployeeNote
public java.util.Optional<java.lang.String> getEmployeeNote()
- Returns:
- The employee note for this time off request.
-
getUnits
public java.util.Optional<TimeOffRequestUnits> getUnits()
- Returns:
- The measurement that the third-party integration uses to count time requested.
HOURS- HOURSDAYS- DAYS
-
getAmount
public java.util.Optional<java.lang.Double> getAmount()
- Returns:
- The time off quantity measured by the prescribed “units”.
-
getRequestType
public java.util.Optional<TimeOffRequestRequestType> getRequestType()
- Returns:
- The type of time off request.
VACATION- VACATIONSICK- SICKPERSONAL- PERSONALJURY_DUTY- JURY_DUTYVOLUNTEER- VOLUNTEERBEREAVEMENT- BEREAVEMENT
-
getStartTime
public java.util.Optional<java.time.OffsetDateTime> getStartTime()
- Returns:
- The day and time of the start of the time requested off.
-
getEndTime
public java.util.Optional<java.time.OffsetDateTime> getEndTime()
- Returns:
- The day and time of the end of the time requested off.
-
getIntegrationParams
public java.util.Optional<java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode>> getIntegrationParams()
-
getLinkedAccountParams
public java.util.Optional<java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode>> getLinkedAccountParams()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static TimeOffRequest.Builder builder()
-
-