SessionInteractor

class SessionInteractor(sessionRepository: SessionRepository, sessionModel: SessionModel, isFlowTakenOver: Boolean, analyticsManager: AnalyticsManager?)

Constructors

Link copied to clipboard
constructor(sessionRepository: SessionRepository, sessionModel: SessionModel, isFlowTakenOver: Boolean, analyticsManager: AnalyticsManager?)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun cancelOrder(order: OrderRequest, merchantCall: (OrderRequest) -> Boolean, merchantCallName: String): SessionCallResult.CancelOrder
Link copied to clipboard
suspend fun checkBalance(paymentComponentState: PaymentComponentState<*>, merchantCall: (PaymentComponentState<*>) -> Boolean, merchantCallName: String): SessionCallResult.Balance
Link copied to clipboard
suspend fun createOrder(merchantCall: () -> Boolean, merchantCallName: String): SessionCallResult.CreateOrder
Link copied to clipboard
suspend fun onDetailsCallRequested(actionComponentData: ActionComponentData, merchantCall: (ActionComponentData) -> Boolean, merchantCallName: String): SessionCallResult.Details
Link copied to clipboard
suspend fun <T : PaymentComponentState<*>> onPaymentsCallRequested(paymentComponentState: T, merchantCall: (T) -> Boolean, merchantCallName: String): SessionCallResult.Payments
Link copied to clipboard