ibanity v0.3.2 Ibanity.Customer
Customer API wrapper
Link to this section Summary
Functions
Deletes a customer
based on the Ibanity.CustomerAccessToken
set in the request
Link to this section Functions
Link to this function
delete(request)
Deletes a customer
based on the Ibanity.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"}}