MakeInvoiceResponse class
Represents the result of a 'make_invoice' response.
- Inheritance
-
- Object
- NwcResponse
- MakeInvoiceResponse
Constructors
- MakeInvoiceResponse({required String type, required String invoice, required String description, required String descriptionHash, required String preimage, required String paymentHash, required int amountMsat, required int feesPaid, required int createdAt, required int expiresAt, int? settledAt, required String resultType})
-
MakeInvoiceResponse.deserialize(Map<
String, dynamic> input) -
factory
Properties
- amountMsat → int
-
The amount of the invoice (in MSATs)
final
- amountSat → dynamic
-
The amount of the invoice (in SATS)
no setter
- createdAt → int
-
The timestamp when the invoice/payment was created.
final
- description → String
-
The description of the invoice.
final
- descriptionHash → String
-
The hash of the invoice description.
final
- errorCode ↔ String?
-
The error code.
getter/setter pairinherited
- errorMessage ↔ String?
-
The error message.
getter/setter pairinherited
- expiresAt → int
-
The timestamp when the invoice/payment expires.
final
- feesPaid → int
-
The fees paid for the invoice (in MSATs).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- invoice → String
-
The bolt11 invoice.
final
- paymentHash → String
-
The payment hash of the invoice.
final
- preimage → String
-
The preimage of the invoice.
final
- resultType → String
-
The type of the result.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settledAt → int?
-
The timestamp when the invoice was settled (optional).
final
- type → String
-
The type of the invoice "incoming" for invoices, "outgoing" for payments.
final
Methods
-
deserializeError(
Map< String, dynamic> input) → void -
inherited
-
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