InvoiceCreatedEvent class
Invoice created successfully
- Inheritance
-
- Object
- CoordinatorEvent
- CoordinatorReply
- InvoiceCreatedEvent
Constructors
-
InvoiceCreatedEvent({required String walletId, required String invoiceId, required List<
String> addresses, required BigInt amount, List<InvoiceOutputSpec> ? outputs, List<IssuedAddress> issuedAddresses = const [], String? description, DateTime? expiresAt, required bool success, String? error, String? requestId})
Properties
-
addresses
→ List<
String> -
final
- amount → BigInt
-
final
- description → String?
-
final
- error → String?
-
final
- eventTimestamp → DateTime
-
When the event was made.
finalinherited
- expiresAt → DateTime?
-
final
- failure → String?
-
Why the request failed, or null when it succeeded.
WalletCoordinator.askthrows a CoordinatorFailure carrying this reply when it is not null.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- invoiceId → String
-
final
-
issuedAddresses
→ List<
IssuedAddress> -
The addresses the wallet issued for the invoice, each with its chain
and derivation index (bead libspiffy-m8qu). The chain is the payment
mode (spv-understanding.md, "Payment modes"): receive for a wallet
that holds its keys; delegated for a service's xpub wallet answering
for an offline payee, which hands the payment over later with the
index (TransactionExportedEvent.delegatedIndices carries it too). An
address the caller supplied in an output is not among them.
final
-
outputs
→ List<
InvoiceOutputSpec> ? -
final
- requestId → String?
-
The CoordinatorRequest.requestId of the request this answers; null
when no request caused it.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- success → bool
-
final
- walletId → String
-
Optional wallet ID for filtering events by wallet
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited