BexioApiClient.Others (bexio_api_client v0.7.0)

Bexio API for the other endpoints.

Link to this section Summary

Functions

Create a fictional user, the id of the fictional user will be ignored!

Create a note.

Create a task.

Create a unit.

Create a fictional user

Delete a note.

Delete a task.

Delete a unit.

Edit a note.

Edut a task.

Fetch a single company profile

Fetch a list of company profiles.

Fetch a list of countries.

Fetch a single country

Fetch a fictional user.

Fetch a list of fictional users.

Fetch a list of languages.

Fetch a note.

Fetch a list of notes.

Fetch a list of payment types.

Fetch a task.

Fetch a list of task priorities.

Fetch a list of task status.

Fetch a list of tasks.

Fetch a unit.

Fetch a list of units.

Fetch a single user.

Fetch a list of users.

Get access information of logged in user

Search countries via query. The following search fields are supported

Search languages via query. The following search fields are supported

Link to this section Types

Link to this type

api_error_type()

@type api_error_type() :: BexioApiClient.Helpers.api_error_type()

Link to this section Functions

Link to this function

create_fictional_user(req, fictional_user)

@spec create_fictional_user(
  req :: Req.Request.t(),
  finctional_user :: BexioApiClient.Others.FictionalUser.t()
) :: {:ok, BexioApiClient.Others.FictionalUser.t()} | api_error_type()

Create a fictional user, the id of the fictional user will be ignored!

Link to this function

create_note(req, note)

@spec create_note(req :: Req.Request.t(), note :: BexioApiClient.Others.Note.t()) ::
  {:ok, Task.t()} | api_error_type()

Create a note.

Link to this function

create_task(req, task)

@spec create_task(req :: Req.Request.t(), task :: Task.t()) ::
  {:ok, Task.t()} | api_error_type()

Create a task.

Link to this function

create_unit(req, name)

@spec create_unit(req :: Req.Request.t(), name :: String.t()) ::
  {:ok, %{id: integer(), name: String.t()}} | api_error_type()

Create a unit.

Link to this function

delete_fictional_user(req, id)

@spec delete_fictional_user(req :: Req.Request.t(), id :: integer()) ::
  {:ok, true | false} | api_error_type()

Create a fictional user

Link to this function

delete_note(req, id)

@spec delete_note(req :: Req.Request.t(), id :: integer()) ::
  {:ok, boolean()} | api_error_type()

Delete a note.

Link to this function

delete_task(req, id)

@spec delete_task(req :: Req.Request.t(), id :: integer()) ::
  {:ok, Task.t()} | api_error_type()

Delete a task.

Link to this function

delete_unit(req, id)

@spec delete_unit(req :: Req.Request.t(), id :: integer()) ::
  {:ok, Task.t()} | api_error_type()

Delete a unit.

Link to this function

edit_note(req, note)

@spec edit_note(req :: Req.Request.t(), note :: BexioApiClient.Others.Note.t()) ::
  {:ok, BexioApiClient.Others.Note.t()} | api_error_type()

Edit a note.

Link to this function

edit_task(req, task)

@spec edit_task(req :: Req.Request.t(), task :: Task.t()) ::
  {:ok, Task.t()} | api_error_type()

Edut a task.

Link to this function

edit_unit(req, id, name)

@spec edit_unit(req :: Req.Request.t(), id :: integer(), name :: String.t()) ::
  {:ok, %{id: integer(), name: String.t()}} | api_error_type()

Edit a unit.

Link to this function

enabled(binary)

Link to this function

fetch_company_profile(req, id)

@spec fetch_company_profile(req :: Req.Request.t(), id :: non_neg_integer()) ::
  {:ok, BexioApiClient.Others.CompanyProfile.t()} | api_error_type()

Fetch a single company profile

Link to this function

fetch_company_profiles(req)

@spec fetch_company_profiles(req :: Req.Request.t()) ::
  {:ok, [BexioApiClient.Others.CompanyProfile.t()]} | api_error_type()

Fetch a list of company profiles.

Link to this function

fetch_countries(req)

@spec fetch_countries(req :: Req.Request.t()) ::
  {:ok, [BexioApiClient.Others.Country.t()]} | api_error_type()

Fetch a list of countries.

Link to this function

fetch_country(req, id)

@spec fetch_country(req :: Req.Request.t(), id :: non_neg_integer()) ::
  {:ok, BexioApiClient.Others.Country.t()} | api_error_type()

Fetch a single country

Link to this function

fetch_fictional_user(req, id)

@spec fetch_fictional_user(req :: Req.Request.t(), id :: integer()) ::
  {:ok, BexioApiClient.Others.FictionalUser.t()} | api_error_type()

Fetch a fictional user.

Link to this function

fetch_fictional_users(req)

@spec fetch_fictional_users(req :: Req.Request.t()) ::
  {:ok, [BexioApiClient.Others.FictionalUser.t()]} | api_error_type()

Fetch a list of fictional users.

Link to this function

fetch_languages(req)

@spec fetch_languages(req :: Req.Request.t()) ::
  {:ok, [BexioApiClient.Others.Language.t()]} | api_error_type()

Fetch a list of languages.

Link to this function

fetch_note(req, id)

@spec fetch_note(req :: Req.Request.t(), id :: integer()) ::
  {:ok, BexioApiClient.Others.Note.t()} | api_error_type()

Fetch a note.

Link to this function

fetch_notes(req, opts \\ [])

@spec fetch_notes(
  req :: Req.Request.t(),
  opts :: [BexioApiClient.GlobalArguments.offset_arg()]
) ::
  {:ok, [BexioApiClient.Others.Note.t()]} | api_error_type()

Fetch a list of notes.

Link to this function

fetch_payment_types(req, opts \\ [])

@spec fetch_payment_types(
  req :: Req.Request.t(),
  opts :: [BexioApiClient.GlobalArguments.offset_without_order_by_arg()]
) :: {:ok, map()} | api_error_type()

Fetch a list of payment types.

Link to this function

fetch_task(req, id)

@spec fetch_task(req :: Req.Request.t(), id :: integer()) ::
  {:ok, Task.t()} | api_error_type()

Fetch a task.

Link to this function

fetch_task_priorities(req, opts \\ [])

@spec fetch_task_priorities(
  req :: Req.Request.t(),
  opts :: [BexioApiClient.GlobalArguments.offset_arg()]
) :: {:ok, map()} | api_error_type()

Fetch a list of task priorities.

Link to this function

fetch_task_status(req, opts \\ [])

@spec fetch_task_status(
  req :: Req.Request.t(),
  opts :: [BexioApiClient.GlobalArguments.offset_arg()]
) ::
  {:ok, map()} | api_error_type()

Fetch a list of task status.

Link to this function

fetch_tasks(req, opts \\ [])

@spec fetch_tasks(
  req :: Req.Request.t(),
  opts :: [BexioApiClient.GlobalArguments.offset_arg()]
) ::
  {:ok, [Task.t()]} | api_error_type()

Fetch a list of tasks.

Link to this function

fetch_unit(req, id)

@spec fetch_unit(req :: Req.Request.t(), id :: integer()) ::
  {:ok, %{id: integer(), name: String.t()}} | api_error_type()

Fetch a unit.

Link to this function

fetch_units(req, opts \\ [])

@spec fetch_units(
  req :: Req.Request.t(),
  opts :: [BexioApiClient.GlobalArguments.offset_without_order_by_arg()]
) :: {:ok, map()} | api_error_type()

Fetch a list of units.

Link to this function

fetch_user(req, user_id)

@spec fetch_user(req :: Req.Request.t(), user_id :: non_neg_integer()) ::
  {:ok, BexioApiClient.Others.User.t()} | api_error_type()

Fetch a single user.

Link to this function

fetch_users(req)

@spec fetch_users(req :: Req.Request.t()) ::
  {:ok, [BexioApiClient.Others.User.t()]} | api_error_type()

Fetch a list of users.

Link to this function

get_access_information(req)

@spec get_access_information(req :: Req.Request.t()) ::
  {:ok, BexioApiClient.Others.Permission.t()} | api_error_type()

Get access information of logged in user

Link to this function

restriction(binary)

Link to this function

search_countries(req, criteria, opts \\ [])

@spec search_countries(
  req :: Req.Request.t(),
  criteria :: [BexioApiClient.SearchCriteria.t()],
  opts :: [BexioApiClient.GlobalArguments.offset_arg()]
) :: {:ok, [BexioApiClient.Others.Country.t()]} | api_error_type()

Search countries via query. The following search fields are supported:

  • name
  • name_short
Link to this function

search_languages(req, criteria, opts \\ [])

@spec search_languages(
  req :: Req.Request.t(),
  criteria :: [BexioApiClient.SearchCriteria.t()],
  opts :: [BexioApiClient.GlobalArguments.offset_arg()]
) :: {:ok, [BexioApiClient.Others.Language.t()]} | api_error_type()

Search languages via query. The following search fields are supported:

  • name
  • iso_639_1
Link to this function

search_notes(req, criteria, opts \\ [])

@spec search_notes(
  req :: Req.Request.t(),
  criteria :: [BexioApiClient.SearchCriteria.t()],
  opts :: [BexioApiClient.GlobalArguments.offset_arg()]
) :: {:ok, [BexioApiClient.Others.Note.t()]} | api_error_type()

Search a note

Following fields are supported:

  • event_start
  • contact_id
  • user_id
  • subject
  • module_id
  • entry_id
Link to this function

search_payment_types(req, criteria, opts \\ [])

@spec search_payment_types(
  req :: Req.Request.t(),
  criteria :: [BexioApiClient.SearchCriteria.t()],
  opts :: [BexioApiClient.GlobalArguments.offset_arg()]
) :: {:ok, map()} | api_error_type()

Search a payment type

Following fields are supported:

  • name
Link to this function

search_tasks(req, criteria, opts \\ [])

@spec search_tasks(
  req :: Req.Request.t(),
  criteria :: [BexioApiClient.SearchCriteria.t()],
  opts :: [BexioApiClient.GlobalArguments.offset_arg()]
) :: {:ok, [Task.t()]} | api_error_type()

Search a task

Following fields are supported:

  • subject
  • updated_at
  • user_id
  • contact_id
  • todo_status_id
  • module_id
  • entry_id
Link to this function

search_units(req, criteria, opts \\ [])

@spec search_units(
  req :: Req.Request.t(),
  criteria :: [BexioApiClient.SearchCriteria.t()],
  opts :: [BexioApiClient.GlobalArguments.offset_arg()]
) :: {:ok, map()} | api_error_type()

Search a unit

Following fields are supported:

  • name
Link to this function

update_fictional_user(req, fictional_user)

@spec update_fictional_user(
  req :: Req.Request.t(),
  fictional_user :: BexioApiClient.Others.FictionalUser.t()
) :: {:ok, BexioApiClient.Others.FictionalUser.t()} | api_error_type()

Create a fictional user