Welshman Docs / @welshman/domain / ZapReceiptReader
Class: ZapReceiptReader
Defined in: kinds/ZapReceipt.ts:9
A reader whose event can be parsed without IO — the common case. parse() returns the reader itself, so callers never await it. Override parse to derive state from the event, returning this.
Extends
Constructors
Constructor
new ZapReceiptReader(
kind,context,event):ZapReceiptReader
Defined in: core/EventReader.ts:17
Parameters
kind
number
context
event
Returns
ZapReceiptReader
Inherited from
Properties
context
readonlycontext:KindContext
Defined in: core/EventReader.ts:19
Inherited from
event
readonlyevent:TrustedEvent
Defined in: core/EventReader.ts:20
Inherited from
kind
readonlykind:number
Defined in: core/EventReader.ts:18
Inherited from
plain?
optionalplain:TrustedEvent
Defined in: kinds/ZapReceipt.ts:10
Methods
address()
address():
string
Defined in: core/EventReader.ts:55
Returns
string
Inherited from
author()
author():
string
Defined in: core/EventReader.ts:35
Returns
string
Inherited from
bolt11()
bolt11():
undefined|string
Defined in: kinds/ZapReceipt.ts:20
Returns
undefined | string
comment()
comment():
undefined|string
Defined in: kinds/ZapReceipt.ts:52
Returns
undefined | string
content()
content():
string
Defined in: core/EventReader.ts:39
Returns
string
Inherited from
createdAt()
createdAt():
number
Defined in: core/EventReader.ts:47
Returns
number
Inherited from
emojis()
emojis():
Emoji[]
Defined in: core/EventReader.ts:71
Returns
Emoji[]
Inherited from
eventId()
eventId():
undefined|string
Defined in: kinds/ZapReceipt.ts:48
Returns
undefined | string
expiration()
expiration():
undefined|number
Defined in: core/EventReader.ts:67
Returns
undefined | number
Inherited from
id()
id():
string
Defined in: core/EventReader.ts:31
Returns
string
Inherited from
identifier()
identifier():
undefined|string
Defined in: core/EventReader.ts:51
Returns
undefined | string
Inherited from
invoiceAmount()
invoiceAmount():
undefined|number
Defined in: kinds/ZapReceipt.ts:24
Returns
undefined | number
parse()
parse():
ZapReceiptReader
Defined in: kinds/ZapReceipt.ts:12
Returns
ZapReceiptReader
Overrides
preimage()
preimage():
undefined|string
Defined in: kinds/ZapReceipt.ts:56
Returns
undefined | string
protect()
protect():
boolean
Defined in: core/EventReader.ts:63
Returns
boolean
Inherited from
recipient()
recipient():
undefined|string
Defined in: kinds/ZapReceipt.ts:44
Returns
undefined | string
request()
request():
undefined|TrustedEvent
Defined in: kinds/ZapReceipt.ts:36
Returns
undefined | TrustedEvent
room()
room():
undefined|string
Defined in: core/EventReader.ts:59
Returns
undefined | string
Inherited from
sender()
sender():
undefined|string
Defined in: kinds/ZapReceipt.ts:40
Returns
undefined | string
tags()
tags():
string[][]
Defined in: core/EventReader.ts:43
Returns
string[][]
Inherited from
zapSplits()
zapSplits():
ZapSplit[]
Defined in: core/EventReader.ts:75
Returns
ZapSplit[]