Separates (terminates) a W-2 employee's active employment.
Eligibility for rehire
Set eligibleForRehire to indicate whether this employee can be brought back on in the future. This value determines whether a future hiring status lookup for this worker returns ELIGIBLE_FOR_REHIRE or NOT_ELIGIBLE_FOR_REHIRE. If they're later eligible and you want to bring them back as the same worker type, use Rehire a worker.
Severance
If you're paying this employee a severance amount, set shouldPaySeverance to true and provide the amount in severanceAmount.
Paying out time off balances
If you're paying out this employee's remaining time off balances, set payoutTimeOffBalances to true and provide at least one entry in timeOffSeparationCategories describing how each time off earning type should be paid out:
FULL_PAYOUTpays out the entire accrued balance for that category.PERCENTAGEpays out the percentage of the accrued balance specified inpercentageAmount.MAX_HOURSpays out up to the number of hours specified inmaxHoursAmount.