ibanity v0.6.0 Ibanity.Xs2a.AccountInformationAccessRequestAuthorization

Account information access requests API wrapper

Link to this section Summary

Link to this section Functions

Link to this function

create(request)

Creates an account information access request authorization

In order for the request to be successful you must have created a Ibanity.Xs2a.CustomerAccessToken beforehand.

Example

This is the transcription of the example found in the API documentation

iex> "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9..."
...> |> Request.customer_access_token
...> |> Request.id(:financial_institution_id, "b031dfe8-ebad-410b-aa77-064f8c876540")
...> |> Request.id(:account_information_access_request_id, "b031dfe8-ebad-410b-aa77-064f8c876540")
...> |> Request.attribute("query_parameters", %{code: "SFMyNTY.g3QAAAA..."})
...> |> AccountInformationAccessRequestAuthorization.create
{:ok,
  %Ibanity.Xs2a.AccountInformationAccessRequestAuthorization{
    id: "3ffd82c0-944a-4cee-bf31-192e3137c76e",
    status: "succeeded"
  }
}