MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / ClaimInvoice

Method ClaimInvoice

internal/orders/store.go:47–47  ·  view source on GitHub ↗

ClaimInvoice 原子地将 last_invoice_id 更新为 invoiceID(当且仅当当前值不等于 invoiceID 时)。 返回 true 表示成功认领(应继续处理),false 表示该 invoice 已被处理(应跳过)。

(orderID, invoiceID string)

Source from the content-addressed store, hash-verified

45 // ClaimInvoice 原子地将 last_invoice_id 更新为 invoiceID(当且仅当当前值不等于 invoiceID 时)。
46 // 返回 true 表示成功认领(应继续处理),false 表示该 invoice 已被处理(应跳过)。
47 ClaimInvoice(orderID, invoiceID string) (claimed bool, err error)
48}

Callers 1

handleInvoicePaidMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected