SplitPaymentStateResponse class

Response model for the GetSplitPaymentState API endpoint.

Maps to the backend SplitPaymentStateResponse DTO. Contains the current state of a split payment session including all payment legs, totals, and the overall state determination.

Constructors

SplitPaymentStateResponse({required String splitPaymentId, required double totalAmountPaid, required double totalAmountOutstanding, required double orderTotal, required String state, double? explicitTipAmount, required List<PaymentLegSummary> paymentLegs, String? lastRefundId})
const
SplitPaymentStateResponse.fromJson(Map<String, dynamic> json)
factory

Properties

explicitTipAmount double?
The explicit (order-level) tip amount stored on the parent event. Null when not set (legacy data or non-split events).
final
hashCode int
The hash code for this object.
no setterinherited
lastRefundId String?
The event ID of the most recently created refund. Populated by the backend after a successful refund operation.
final
orderTotal double
The order total amount.
final
paymentLegs List<PaymentLegSummary>
List of individual payment legs in chronological order.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splitPaymentId String
The split payment session identifier.
final
state String
Overall state — "PartiallyPaid", "FullyPaid", "Draft".
final
totalAmountOutstanding double
Total amount still outstanding for the order.
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