SplitPaymentApiClient class

HTTP client for split payment API endpoints.

Wraps the backend split payment APIs so that SplitPaymentService and LittlefishSplitPaymentGateway can discover split payment state and close orders without depending on IPosPaymentService directly.

Constructors

SplitPaymentApiClient({required LittleFishHttpClient httpClient, required String paymentsUrl})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close(String splitPaymentId, {String? operationId}) Future<SplitCloseResult?>
Closes a split payment order.
getState(String splitPaymentId, String businessId, {String? operationId}) Future<SplitPaymentStateResponse?>
Fetches the current split payment state by split payment ID.
getStateByOrder(String orderId, String businessId, {String? operationId}) Future<SplitPaymentStateResponse?>
Fetches the current split payment state by order ID.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processSplitRefund({required String splitPaymentId, required String businessId, required String orderId, required double refundAmount, required String parentEventId, required String paymentType, String? refundEventId, String? operationId}) Future<SplitPaymentStateResponse?>
Processes a split payment refund.
toString() String
A string representation of this object.
inherited

Operators

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