Money

data class Money(var amount: String? = null, var currency: String? = null)

Represents a monetary amount in a given currency, matching the MTN MOMO API Money schema.

Both fields are optional so partial payloads never break deserialization.

Constructors

Link copied to clipboard
constructor(amount: String? = null, currency: String? = null)

Properties

Link copied to clipboard

The amount as a string (e.g., "100.00").

Link copied to clipboard

The ISO 4217 currency code (e.g., EUR, UGX).