Address

data class Address(var formatted: String? = null, var streetAddress: String? = null, var postalCode: String? = null, var locality: String? = null, var region: String? = null, var country: String? = null)

Represents the nested address object returned within UserInfoWithConsent by the MTN MOMO GET /oauth2/{version}/userinfo endpoint.

All fields are nullable with a null default so that a missing field does not cause a deserialization failure.

Constructors

Link copied to clipboard
constructor(formatted: String? = null, streetAddress: String? = null, postalCode: String? = null, locality: String? = null, region: String? = null, country: String? = null)

Properties

Link copied to clipboard

The country name.

Link copied to clipboard

The full address rendered as a single, newline-separated string.

Link copied to clipboard

The city or locality.

Link copied to clipboard

The postal / ZIP code.

Link copied to clipboard

The region, state, or province.

Link copied to clipboard

The street address portion (e.g. "Street 17").