Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 2.29 KB

TimeOffRequest.md

File metadata and controls

38 lines (32 loc) · 2.29 KB

MergeHRISClient::TimeOffRequest

Properties

Name Type Description Notes
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]
integration_params Hash<String, AnyType> [optional]
linked_account_params Hash<String, AnyType> [optional]

Example

require 'merge_hris_client'

instance = MergeHRISClient::TimeOffRequest.new(
  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,
  integration_params: {&quot;unique_integration_field&quot;:&quot;unique_integration_field_value&quot;},
  linked_account_params: {&quot;unique_linked_account_field&quot;:&quot;unique_linked_account_field_value&quot;}
)