Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AccountBalance(var availableBalance: String, var currency: String)
Link copied to clipboard
@Serializable
data class AccountHolder(var partyIdType: String, var partyId: String)
Link copied to clipboard
@Serializable
data class AccountHolderStatus(var result: Boolean)
Link copied to clipboard
@Serializable
data class BasicUserInfo(var sub: String, var name: String, var givenName: String, var familyName: String, var birthDate: String, var locale: String, var gender: String, var updatedAt: String)

Data class representing basic user information.

Link copied to clipboard
@Serializable
data class ErrorResponse(var code: String, var message: String, var error: String)
Link copied to clipboard
@Serializable
data class MomoNotification(var notificationMessage: String)

Data class representing a Momo notification.

Link copied to clipboard
@Serializable
data class MomoTransaction(var amount: String, var currency: String, var financialTransactionId: String? = "", var externalId: String, var payee: AccountHolder? = null, var payer: AccountHolder? = null, var payerMessage: String, var payeeNote: String, var status: String? = "", var reason: String? = "", var referenceIdToRefund: String? = "")
Link copied to clipboard
data class PaymentResult(var merchantRequestID: String, var checkoutRequestID: String, var responseCode: String, var responseDescription: String, var customerMessage: String)

Data class for Payment MomoResponse.

Link copied to clipboard
@Serializable
data class ProviderCallBackHost(val providerCallbackHost: String? = null)

Represents the callback host for the MTN MOMO API.

Link copied to clipboard
@Serializable
data class UserInfoWithConsent(var userBasicInfo: BasicUserInfo, var status: String, var middleName: String, var email: String, var emailVerified: Boolean, var phonenumber: String, var phoneNumberVerified: Boolean, var address: String, var updatedAt: String, var creditScore: String, var active: String, var countryOfBirth: String, var regionOfBirth: String, var cityOfBirth: String, var occupation: String, var employerName: String, var identificationType: String, var identificationValue: String)