The bundled Open Payments specification and operation inventory.
Documents are loaded at compilation, so using the SDK does not fetch schemas
from a server or depend on a Git submodule. revision/0 identifies the exact
upstream commit from which the documents were copied.
Summary
Functions
Returns the bundled OpenAPI document for a server.
Fetches a named component schema, or returns :error if it is unknown.
Lists supported protocol operations in stable order by operation ID.
The full upstream specification commit SHA.
The bundled specification's semantic version.
Types
@type operation() :: %{ server: server(), method: :get | :post | :delete, path: String.t(), id: String.t(), success_statuses: [pos_integer()] }
@type server() :: :auth | :resource | :wallet_address
Functions
Returns the bundled OpenAPI document for a server.
Fetches a named component schema, or returns :error if it is unknown.
@spec operations() :: [operation()]
Lists supported protocol operations in stable order by operation ID.
@spec revision() :: String.t()
The full upstream specification commit SHA.
@spec version() :: String.t()
The bundled specification's semantic version.