Ibanity.Xs2a.Customer (ibanity v0.12.0)

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

Example

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