PaperTiger.Resources.ApplicationFeeRefund (PaperTiger v1.1.2)

Copy Markdown View Source

Handles Application Fee Refund endpoints nested under Application Fees.

Summary

Functions

Creates an application fee refund.

Creates an application fee refund from internal code.

Lists refunds for an application fee.

Retrieves an application fee refund.

Updates application fee refund metadata.

Functions

create(conn, fee_id)

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

Creates an application fee refund.

create_for_fee(fee_id, params)

@spec create_for_fee(String.t(), map()) ::
  {:ok, map()}
  | {:error, :fee_not_found}
  | {:error, :invalid_amount, String.t()}

Creates an application fee refund from internal code.

list(conn, fee_id)

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

Lists refunds for an application fee.

retrieve(conn, fee_id, id)

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

Retrieves an application fee refund.

update(conn, fee_id, id)

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

Updates application fee refund metadata.