CheckoutFailure class

Reason a web checkout failed. Mirrors CheckoutFailure from ZeroSettleKit, which is a Swift enum with associated values:

  • networkUnreachable(Error) — DNS / certificate / "no connection".
  • loadFailed(Error) — load started but errored mid-flight.
  • serverError(statusCode: Int, url: URL) — HTTP 4xx/5xx.
  • unknown(Error) — anything else.

The enum case is flattened to kind (one of "networkUnreachable", "loadFailed", "serverError", "unknown"); the human-readable message is always populated. statusCode and url are only set when kind is "serverError".

Constructors

CheckoutFailure({required String kind, required String message, int? statusCode, String? url})
const
CheckoutFailure.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
kind String
Raw enum case name from the iOS Kit.
final
message String
Human-readable description of the failure.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
HTTP status code — only populated when kind is "serverError".
final
url String?
Server URL that returned the error — only populated when kind is "serverError".
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override