Class TimeOff
- java.lang.Object
-
- com.merge.api.resources.hris.types.TimeOff
-
public final class TimeOff extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeOff.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeOff.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<TimeOffApprover>getApprover()java.util.Optional<java.time.OffsetDateTime>getCreatedAt()java.util.Optional<TimeOffEmployee>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>>getFieldMappings()java.util.Optional<java.lang.String>getId()java.util.Optional<java.time.OffsetDateTime>getModifiedAt()java.util.Optional<java.util.List<RemoteData>>getRemoteData()java.util.Optional<java.lang.String>getRemoteId()java.util.Optional<java.lang.Boolean>getRemoteWasDeleted()java.util.Optional<TimeOffRequestType>getRequestType()java.util.Optional<java.time.OffsetDateTime>getStartTime()java.util.Optional<TimeOffStatus>getStatus()java.util.Optional<TimeOffUnits>getUnits()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getId
public java.util.Optional<java.lang.String> getId()
-
getRemoteId
public java.util.Optional<java.lang.String> getRemoteId()
- Returns:
- The third-party API ID of the matching object.
-
getCreatedAt
public java.util.Optional<java.time.OffsetDateTime> getCreatedAt()
- Returns:
- The datetime that this object was created by Merge.
-
getModifiedAt
public java.util.Optional<java.time.OffsetDateTime> getModifiedAt()
- Returns:
- The datetime that this object was modified by Merge.
-
getEmployee
public java.util.Optional<TimeOffEmployee> getEmployee()
- Returns:
- The employee requesting time off.
-
getApprover
public java.util.Optional<TimeOffApprover> getApprover()
- Returns:
- The Merge ID of the employee with the ability to approve the time off request.
-
getStatus
public java.util.Optional<TimeOffStatus> 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<TimeOffUnits> 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<TimeOffRequestType> 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.
-
getRemoteWasDeleted
public java.util.Optional<java.lang.Boolean> getRemoteWasDeleted()
- Returns:
- Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.
-
getFieldMappings
public java.util.Optional<java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode>> getFieldMappings()
-
getRemoteData
public java.util.Optional<java.util.List<RemoteData>> getRemoteData()
-
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 TimeOff.Builder builder()
-
-