()
| 25 | ) {} |
| 26 | |
| 27 | public async getPendingInvoices(): Promise<Invoice[]> { |
| 28 | logger('get pending invoices') |
| 29 | try { |
| 30 | return await this.invoiceRepository.findPendingInvoices(0, 10) |
| 31 | } catch (error) { |
| 32 | logger.error('Unable to get pending invoices.', error) |
| 33 | |
| 34 | throw error |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | public async getInvoiceFromPaymentsProcessor(invoice: Invoice | string): Promise<Partial<Invoice>> { |
| 39 | try { |
nothing calls this directly
no test coverage detected