Name |
Type |
Description |
Notes |
id |
String |
|
[optional][readonly] |
remote_id |
String |
The third-party API ID of the matching object. |
[optional] |
created_at |
Time |
The datetime that this object was created by Merge. |
[optional][readonly] |
modified_at |
Time |
The datetime that this object was modified by Merge. |
[optional][readonly] |
employee |
String |
The employee requesting time off. |
[optional] |
approver |
String |
The Merge ID of the employee with the ability to approve the time off request. |
[optional] |
status |
TimeOffStatusEnum |
The status of this time off request. * `REQUESTED` - REQUESTED * `APPROVED` - APPROVED * `DECLINED` - DECLINED * `CANCELLED` - CANCELLED * `DELETED` - DELETED |
[optional] |
employee_note |
String |
The employee note for this time off request. |
[optional] |
units |
UnitsEnum |
The measurement that the third-party integration uses to count time requested. * `HOURS` - HOURS * `DAYS` - DAYS |
[optional] |
amount |
Float |
The time off quantity measured by the prescribed “units”. |
[optional] |
request_type |
RequestTypeEnum |
The type of time off request. * `VACATION` - VACATION * `SICK` - SICK * `PERSONAL` - PERSONAL * `JURY_DUTY` - JURY_DUTY * `VOLUNTEER` - VOLUNTEER * `BEREAVEMENT` - BEREAVEMENT |
[optional] |
start_time |
Time |
The day and time of the start of the time requested off. |
[optional] |
end_time |
Time |
The day and time of the end of the time requested off. |
[optional] |
remote_was_deleted |
Boolean |
|
[optional][readonly] |
field_mappings |
Object |
|
[optional][readonly] |
remote_data |
Array<RemoteData> |
|
[optional][readonly] |
require 'merge_hris_client'
instance = MergeHRISClient::TimeOff.new(
id: 91b2b905-e866-40c8-8be2-efe53827a0aa,
remote_id: 19202938,
created_at: 2021-09-15T00:00Z,
modified_at: 2021-10-16T00:00Z,
employee: d2f972d0-2526-434b-9409-4c3b468e08f0,
approver: 9efbc633-3387-4306-aa55-e2c635e6bb4f,
status: APPROVED,
employee_note: Moving into the new apartment Kendall Roy gave me!,
units: DAYS,
amount: 3,
request_type: VACATION,
start_time: 2020-11-10T00:00Z,
end_time: 2020-11-17T00:00Z,
remote_was_deleted: null,
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},
remote_data: [{"path":"/leave","data":["Varies by platform"]}]
)