Apruve v0.1.0 Apruve.InvoiceReturn View Source
Module for invoice returns.
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
all_by_invoice_id(invoice_id, p_client_config \\ :from_app_config)
View Source
all_by_invoice_id( Apruve.Invoice.invoice_id(), Apruve.ClientConfig.t() | :from_app_config ) :: {:ok, [t()]} | {:error, any()}
Link to this function
create(invoice_return, p_client_config \\ :from_app_config)
View Source
create(t(), Apruve.ClientConfig.t() | :from_app_config) :: {:ok, t()} | {:error, any()}
Create invoice return on the Apruve system.
Note that returns cannot be issued on invoices which have been cancelled or fully refunded.
InvoiceReturn struct from JSON string.
Link to this function
get_by_invoice_id_and_return_id(invoice_id, return_id, p_client_config \\ :from_app_config)
View Source
get_by_invoice_id_and_return_id( Apruve.Invoice.invoice_id(), invoice_return_id(), Apruve.ClientConfig.t() | :from_app_config ) :: {:ok, t()} | {:error, any()}