DodoPayments.Invoices (dodo_payments v0.1.0)

Copy Markdown View Source

PDF invoice downloads.

Summary

Functions

Calls Dodo operation invoices_payment_download (GET /invoices/payments/{payment_id}). Required parameters: none.

Calls Dodo operation invoices_payout_download (GET /invoices/payouts/{payout_id}). Required parameters: none.

Calls Dodo operation invoices_refund_download (GET /invoices/refunds/{refund_id}). Required parameters: none.

Functions

download_payment(client, payment_id, opts \\ [])

@spec download_payment(DodoPayments.Client.t(), String.t() | integer(), keyword()) ::
  {:ok, binary() | DodoPayments.Response.t(binary())} | {:error, Exception.t()}

Calls Dodo operation invoices_payment_download (GET /invoices/payments/{payment_id}). Required parameters: none.

Options are request-local.

download_payout(client, payout_id, opts \\ [])

@spec download_payout(DodoPayments.Client.t(), String.t() | integer(), keyword()) ::
  {:ok, binary() | DodoPayments.Response.t(binary())} | {:error, Exception.t()}

Calls Dodo operation invoices_payout_download (GET /invoices/payouts/{payout_id}). Required parameters: none.

Options are request-local.

download_refund(client, refund_id, opts \\ [])

@spec download_refund(DodoPayments.Client.t(), String.t() | integer(), keyword()) ::
  {:ok, binary() | DodoPayments.Response.t(binary())} | {:error, Exception.t()}

Calls Dodo operation invoices_refund_download (GET /invoices/refunds/{refund_id}). Required parameters: none.

Options are request-local.