Money

data class Money(val value: Long, val currency: String)(source)

Monetary amount represented in the currency's minor unit.

Constructors

Link copied to clipboard
constructor(value: Long, currency: String)

Properties

Link copied to clipboard

ISO 4217 currency code.

Link copied to clipboard
val value: Long

Amount in the minor unit, such as pesewas for GHS.

Functions

Link copied to clipboard

Returns locale-aware text for display in the native payment sheet.