(invoice: Pick<Invoice, 'id' | 'status'>)
| 118 | } |
| 119 | |
| 120 | public async updateInvoiceStatus(invoice: Pick<Invoice, 'id' | 'status'>): Promise<Invoice> { |
| 121 | logger('update invoice %s: %o', invoice.id, invoice) |
| 122 | try { |
| 123 | return await this.invoiceRepository.updateStatus(invoice) |
| 124 | } catch (error) { |
| 125 | logger.error('Unable to update invoice. Reason:', error) |
| 126 | throw error |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | public async confirmInvoice(invoice: Invoice): Promise<void> { |
| 131 | logger('confirm invoice %s: %O', invoice.id, invoice) |
nothing calls this directly
no test coverage detected