Create, retrieve, and list Mollie delayed payment routes.
All functions return result tuples. They do not raise for ordinary API, transport, or validation failures.
Route creation accepts a caller-owned idempotency key. The SDK never generates idempotency keys implicitly.
{:ok, route} =
MollieEx.PaymentRoutes.create(
client,
"tr_123",
%{
amount: %{currency: "EUR", value: "10.00"},
destination: %{type: "organization", organization_id: "org_123"}
},
idempotency_key: "1de10c6a-8b87-4e0c-9c88-52f4c8936d5d"
)
Summary
Functions
Creates a delayed route for a Mollie payment.
Retrieves a delayed route by payment ID and route ID.
Lists delayed routes for a payment.
Types
@type create_option() :: {:idempotency_key, String.t()} | {:testmode, boolean()} | {:pool_timeout, pos_integer()} | {:receive_timeout, pos_integer()} | {:request_timeout, pos_integer()}
@type create_params() :: map()
@type get_option() :: {:pool_timeout, pos_integer()} | {:receive_timeout, pos_integer()} | {:request_timeout, pos_integer()}
@type list_option() :: {:testmode, boolean()} | {:pool_timeout, pos_integer()} | {:receive_timeout, pos_integer()} | {:request_timeout, pos_integer()}
Functions
@spec create(MollieEx.Client.t(), String.t(), create_params(), [create_option()]) :: {:ok, MollieEx.Route.t()} | {:error, MollieEx.Error.t()}
Creates a delayed route for a Mollie payment.
Route creation supports caller-owned idempotency keys. The SDK never generates idempotency keys implicitly.
@spec get(MollieEx.Client.t(), String.t(), String.t(), [get_option()]) :: {:ok, MollieEx.Route.t()} | {:error, MollieEx.Error.t()}
Retrieves a delayed route by payment ID and route ID.
@spec list(MollieEx.Client.t(), String.t(), [list_option()]) :: {:ok, MollieEx.List.t(MollieEx.Route.t())} | {:error, MollieEx.Error.t()}
Lists delayed routes for a payment.