From fe5ed51e118949b4e41d5c916ae7c2bac359fd03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D0=B5=D0=BC?= Date: Mon, 2 Oct 2023 12:37:26 +0300 Subject: [PATCH] Fix: Invoice get (#95) --- apps/hellgate/src/hg_invoice_handler.erl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/hellgate/src/hg_invoice_handler.erl b/apps/hellgate/src/hg_invoice_handler.erl index 19737f4..eee7613 100644 --- a/apps/hellgate/src/hg_invoice_handler.erl +++ b/apps/hellgate/src/hg_invoice_handler.erl @@ -74,6 +74,10 @@ handle_function_('Get', {InvoiceID, #payproc_EventRange{'after' = AfterID, limit _ = set_invoicing_meta(InvoiceID), St = get_state(InvoiceID, AfterID, Limit), get_invoice_state(St); +handle_function_('Get', {InvoiceID, undefined}, _Opts) -> + _ = set_invoicing_meta(InvoiceID), + St = get_state(InvoiceID), + get_invoice_state(St); handle_function_('GetEvents', {InvoiceID, Range}, _Opts) -> _ = set_invoicing_meta(InvoiceID), get_public_history(InvoiceID, Range);