Skip to content

Commit

Permalink
feat(exports/invoices): added basic payInvoice export (project-error#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonstjernquist authored Sep 21, 2022
1 parent f6b2d43 commit 8564c35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/server/services/invoice/invoice.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export class InvoiceController {
return res({ status: 'ok', data: data.toJSON() });
}

@Export(ServerExports.PayInvoice)
@NetPromise(InvoiceEvents.PayInvoice)
async payInvoice(req: Request<PayInvoiceInput>, res: Response<any>) {
await this._InvoiceService.payInvoice(req);
Expand Down
1 change: 1 addition & 0 deletions typings/exports/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export enum ServerExports {
RemoveBankBalanceByIdentifier = 'removeBankBalanceByIdentifier',
RemoveBankBalanceByNumber = 'removeBankBalanceByNumber',

PayInvoice = 'payInvoice',
GetInvoices = 'getInvoices',
CreateInvoice = 'createInvoice',
GetUnpaidInvoices = 'getUnpaidInvoices',
Expand Down

0 comments on commit 8564c35

Please sign in to comment.