Handles Credit Note resource endpoints.
Summary
Functions
Creates a credit note and adjusts the finalized invoice.
Lists credit note line items.
Lists credit notes.
Previews a credit note without persisting it.
Lists preview line items.
Retrieves a credit note.
Updates a credit note's memo/metadata.
Voids a credit note.
Functions
@spec create(Plug.Conn.t()) :: Plug.Conn.t()
Creates a credit note and adjusts the finalized invoice.
@spec lines(Plug.Conn.t(), String.t()) :: Plug.Conn.t()
Lists credit note line items.
@spec list(Plug.Conn.t()) :: Plug.Conn.t()
Lists credit notes.
@spec preview(Plug.Conn.t()) :: Plug.Conn.t()
Previews a credit note without persisting it.
@spec preview_lines(Plug.Conn.t()) :: Plug.Conn.t()
Lists preview line items.
@spec retrieve(Plug.Conn.t(), String.t()) :: Plug.Conn.t()
Retrieves a credit note.
@spec update(Plug.Conn.t(), String.t()) :: Plug.Conn.t()
Updates a credit note's memo/metadata.
@spec void(Plug.Conn.t(), String.t()) :: Plug.Conn.t()
Voids a credit note.