Payment class
Represents a payment, including its PaymentType and PaymentDetails
Constructors
- Payment({required String id, required PaymentType paymentType, required int paymentTime, required int amountMsat, required int feeMsat, required PaymentStatus status, String? error, String? description, required PaymentDetails details, String? metadata})
-
const
Properties
- amountMsat → int
-
final
- description → String?
-
final
- details → PaymentDetails
-
final
- error → String?
-
final
- feeMsat → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- metadata → String?
-
final
- paymentTime → int
-
Epoch time, in seconds
final
- paymentType → PaymentType
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → PaymentStatus
-
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