SplitCloseResult class
Result model returned by the backend POST /api/SplitPayment/close endpoint.
Maps to the backend SplitCloseResultDto. Contains the authoritative
state after the split order has been closed.
Constructors
- SplitCloseResult({required String state, required double totalAmountPaid, required double totalAmountOutstanding, required double orderTotal, required String message})
-
const
-
SplitCloseResult.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Human-readable message from the backend.
final
- orderTotal → double
-
The order total amount.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → String
-
Overall state after closing — "FullyPaid", "PartiallyPaid", etc.
final
- totalAmountOutstanding → double
-
Total amount still outstanding (should be 0 or negative after close).
final
- totalAmountPaid → double
-
Total amount paid across all successful payment legs.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited