BexioApiClient.Timesheets.Timesheet (bexio_api_client v2.0.0)

Copy Markdown

Bexio Timesheet Module.

Summary

Types

t()

Bexio Timesheet

Functions

Create a new timesheet

Types

t()

@type t() :: %BexioApiClient.Timesheets.Timesheet{
  allowable_bill?: boolean(),
  charge: String.t() | nil,
  client_service_id: integer(),
  contact_id: integer() | nil,
  date: Date.t(),
  duration: String.t() | nil,
  estimated_time: String.t() | nil,
  id: integer(),
  pr_milestone_id: integer() | nil,
  pr_package_id: integer() | nil,
  pr_project_id: integer() | nil,
  running?: boolean(),
  status_id: integer() | nil,
  sub_contact_id: integer() | nil,
  text: String.t() | nil,
  tracking: BexioApiClient.Timesheets.Tracking.t(),
  travel_charge: String.t() | nil,
  travel_distance: number() | nil,
  travel_time: String.t() | nil,
  user_id: integer()
}

Bexio Timesheet

Fields:

  • :id - automatic id given by bexio
  • :user_id - References a user object
  • :status_id - References a timesheet status object
  • :client_service_id - References a business activity object
  • :allowable_bill? - whether the time can be billed
  • :contact_id - References a contact object
  • :sub_contact_id - References a contact object
  • :pr_project_id - References a project object
  • :tracking - the tracked time (see BexioApiClient.Timesheets.Tracking)

Functions

new(attrs \\ %{})

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

Create a new timesheet