BexioApiClient.Payroll.Absence (bexio_api_client v2.0.0)

Copy Markdown

Absence of a payroll employee.

Summary

Types

t()

Absence of a payroll employee.

Functions

Builds a new absence for creating or updating via the API.

Types

t()

@type t() :: %BexioApiClient.Payroll.Absence{
  continued_pay: Decimal.t() | nil,
  disability: Decimal.t() | nil,
  end_date: Date.t() | nil,
  half_day?: boolean(),
  id: String.t(),
  paid_hours: Decimal.t() | nil,
  reason: String.t(),
  start_date: Date.t()
}

Absence of a payroll employee.

The :reason is a free-form string, currently supported by bexio: Injury, Sickness, MaternityLeave, MilitaryLeave, Vacation, InterruptionOfWork. New reasons might be added in the future, so it is not parsed into an atom.

Functions

new(attrs \\ %{})

@spec new(map()) :: t()

Builds a new absence for creating or updating via the API.