Fix: Invoice get (#95)

This commit is contained in:
Артем 2023-10-02 12:37:26 +03:00 committed by GitHub
parent 8fa2d2a382
commit fe5ed51e11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);