Humaans.Compensations behaviour (Humaans v0.1.0)
View SourceHandles operations related to bank accounts.
Summary
Types
@type list_response() :: {:ok, [ %Humaans.Resources.Compensation{ amount: term(), compensation_type_id: term(), created_at: term(), currency: term(), effective_date: term(), end_date: term(), end_reason: term(), id: term(), note: term(), period: term(), person_id: term(), updated_at: term() } ]} | {:error, any()}
@type response() :: {:ok, %Humaans.Resources.Compensation{ amount: term(), compensation_type_id: term(), created_at: term(), currency: term(), effective_date: term(), end_date: term(), end_reason: term(), id: term(), note: term(), period: term(), person_id: term(), updated_at: term() }} | {:error, any()}
Callbacks
Functions
@spec delete(id :: String.t()) :: delete_response()
@spec list(params :: keyword()) :: list_response()