ibanity v0.6.0 Ibanity.Xs2a.Customer

Customer API wrapper

Link to this section Summary

Link to this section Functions

Link to this function

delete(request)

Deletes a customer based on the Ibanity.Xs2a.CustomerAccessToken set in the request.

Returns {:ok, customer} if customer has been deleted, {:error, reason} otherwise.

Example

iex> token
...> |> Request.customer_access_token
...> |> Customer.delete
{:ok %Ibanity.Customer{id: "c017a5ab-a15f-4a77-bf5c-54d29d53e8ab"}}