Zazu.PaymentLinks (zazu v0.2.1)

Copy Markdown View Source

Standalone payment links (not attached to an invoice).

Summary

Functions

Calls POST /api/payment_links/:id/cancel.

Calls POST /api/payment_links.

Calls GET /api/payment_links/:id.

Calls GET /api/payment_links.

Functions

cancel(client, id)

@spec cancel(Zazu.Client.t(), String.t()) ::
  {:ok, Zazu.Response.t()} | {:error, Exception.t()}

Calls POST /api/payment_links/:id/cancel.

create(client, attributes)

@spec create(Zazu.Client.t(), map()) ::
  {:ok, Zazu.Response.t()} | {:error, Exception.t()}

Calls POST /api/payment_links.

get(client, id)

@spec get(Zazu.Client.t(), String.t()) ::
  {:ok, Zazu.Response.t()} | {:error, Exception.t()}

Calls GET /api/payment_links/:id.

list(client, opts \\ [])

@spec list(
  Zazu.Client.t(),
  keyword()
) :: {:ok, Zazu.Page.t()} | {:error, Exception.t()}

Calls GET /api/payment_links.

Options

  • :status — filter by link status.
  • :link_type — filter by link type ("single" / "reusable").
  • :limit — page size (1..100, default 100).
  • :cursor — pagination cursor.