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

Method updateInvoice

src/services/payments-service.ts:107–118  ·  view source on GitHub ↗
(invoice: Partial<Invoice>)

Source from the content-addressed store, hash-verified

105 }
106
107 public async updateInvoice(invoice: Partial<Invoice>): Promise<void> {
108 logger('update invoice %s: %o', invoice.id, invoice)
109 try {
110 await this.invoiceRepository.updateStatus({
111 id: invoice.id,
112 status: invoice.status,
113 })
114 } catch (error) {
115 logger.error('Unable to update invoice. Reason:', error)
116 throw error
117 }
118 }
119
120 public async updateInvoiceStatus(invoice: Pick<Invoice, 'id' | 'status'>): Promise<Invoice> {
121 logger('update invoice %s: %o', invoice.id, invoice)

Callers

nothing calls this directly

Calls 1

updateStatusMethod · 0.65

Tested by

no test coverage detected