PaperTiger.Resources.Account (PaperTiger v1.1.0)

Copy Markdown View Source

Handles legacy Connect Account endpoints.

PaperTiger intentionally models /v1/accounts first rather than Accounts v2 because current Stripe client libraries still commonly use the v1 resource. Accounts are platform-owned: they are stored in the sandbox namespace, not in the connected account request scope.

Summary

Functions

Creates a connected account.

Deletes a connected account from the platform account.

Lists accounts connected to the platform.

Retrieves a connected account by ID.

Updates mutable account fields and requested capabilities.

Functions

create(conn)

@spec create(Plug.Conn.t()) :: Plug.Conn.t()

Creates a connected account.

delete(conn, id)

@spec delete(Plug.Conn.t(), String.t()) :: Plug.Conn.t()

Deletes a connected account from the platform account.

list(conn)

@spec list(Plug.Conn.t()) :: Plug.Conn.t()

Lists accounts connected to the platform.

retrieve(conn, id)

@spec retrieve(Plug.Conn.t(), String.t()) :: Plug.Conn.t()

Retrieves a connected account by ID.

update(conn, id)

@spec update(Plug.Conn.t(), String.t()) :: Plug.Conn.t()

Updates mutable account fields and requested capabilities.