Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AccountBalanceResponse(val conversationId: String, val originatorConversationId: String, val responseCode: String, val responseDescription: String)

Account balance acknowledgement response.

Link copied to clipboard
@Serializable
data class AuthorizationResponse(val accessToken: String, val expiresIn: String)
Link copied to clipboard
@Serializable
data class B2cResponse(val conversationId: String, val originatorConversationId: String, val responseCode: String, val responseDescription: String)

B2C acknowledgement response

Link copied to clipboard
@Serializable
data class C2bRegisterResponse(val conversationId: String, val originatorConversationId: String, val responseCode: String, val responseDescription: String)

C2B register acknowledgement response

Link copied to clipboard
@Serializable
data class C2bResponse(val conversationId: String, val originatorConversationId: String, val responseCode: String, val responseDescription: String)

C2B acknowledgement response

Link copied to clipboard
@Serializable
data class DynamicQrResponse(val responseCode: String, val responseDescription: String, val qrCode: String)

Dynamic QR response

Link copied to clipboard
@Serializable
open class ErrorResponse(errorCode: String, errorMessage: String) : Exception
Link copied to clipboard
@Serializable
data class StkPushQueryResponse(val merchantRequestId: String, val checkoutRequestId: String, val responseCode: String, val resultDec: String, val responseDescription: String, val resultCode: String)

STK push query acknowledgement response

Link copied to clipboard
@Serializable
data class StkPushResponse(val merchantRequestId: String, val checkoutRequestId: String, val responseCode: String, val responseDescription: String, val customerMessage: String)

STK push acknowledgement response

Link copied to clipboard
@Serializable
data class TransactionReversalResponse(val conversationId: String, val originatorConversationId: String, val responseCode: String, val responseDescription: String)

Transaction reversal acknowledgement response

Link copied to clipboard
@Serializable
data class TransactionStatusResponse(val conversationId: String, val originatorConversationId: String, val responseCode: String, val responseDescription: String)

Transaction status acknowledgement response