Attempt class final
One attempt to execute a payment with a payment method.
Exposes paymentMethodType, paymentMethodId, reference, and error, among other contract fields.
Constructors
- Attempt({String? paymentMethodType, String? paymentMethodId, String? reference, AttemptError? error, required AttemptStatus status, required DateTime initiatedAt, DateTime? succeededAt})
-
const
-
Attempt.fromJson(Map<
String, Object?> json) -
factory
Properties
- error → AttemptError?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initiatedAt → DateTime
-
final
- paymentMethodId → String?
-
final
- paymentMethodType → String?
-
final
- reference → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → AttemptStatus
-
final
- succeededAt → DateTime?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited