BasicUserInfo

data class BasicUserInfo(var sub: String? = null, var name: String? = null, var givenName: String? = null, var familyName: String? = null, var birthDate: String? = null, var locale: String? = null, var gender: String? = null, var status: String? = null, var updatedAt: Int? = null, var displayUpdatedAt: String = "")

Data class representing basic user information (KYC payload) returned by the MTN MOMO API.

This is a superset covering both response shapes the SDK encounters:

Every server-supplied field is therefore nullable, so a payload that omits any of them deserializes without failure.

Constructors

Link copied to clipboard
constructor(sub: String? = null, name: String? = null, givenName: String? = null, familyName: String? = null, birthDate: String? = null, locale: String? = null, gender: String? = null, status: String? = null, updatedAt: Int? = null, displayUpdatedAt: String = "")

Properties

Link copied to clipboard

The account holder's birth date.

Link copied to clipboard

A human-readable formatted version of updatedAt; computed locally, not present in the API response.

Link copied to clipboard

Surname(s) or last name(s) of the End-User. Some cultures allow multiple family names or none; all present names are separated by space characters.

Link copied to clipboard

The gender of the user.

Link copied to clipboard

Given name(s) or first name(s) of the End-User. Some cultures allow multiple given names; all can be present, separated by space characters.

Link copied to clipboard

The End-User's locale as a BCP47 RFC5646 language tag — typically an ISO 639-1 Alpha-2 language code in lowercase and an ISO 3166-1 Alpha-2 country code in uppercase, separated by a dash (e.g. en-US or fr-CA). Some implementations use an underscore instead (e.g. en_US).

Link copied to clipboard
var name: String?

The full name of the user. Absent in the Remittance KYC response.

Link copied to clipboard

The account holder status.

Link copied to clipboard
var sub: String?

The subject identifier for the user. Absent in the Remittance KYC response.

Link copied to clipboard

The last updated timestamp as a Unix epoch integer (seconds).