MCPcopy Create free account
hub / github.com/cameri/nostream / updateInvoiceStatus

Method updateInvoiceStatus

src/services/payments-service.ts:120–128  ·  view source on GitHub ↗
(invoice: Pick<Invoice, 'id' | 'status'>)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

updateStatusMethod · 0.65

Tested by

no test coverage detected