Amount

class Amount(val value: Long, val currency: Int)

Amount to charge, in minor units, together with its currency.

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

ISO-4217 numeric currency code of value, for example 756 for CHF.

Link copied to clipboard
val value: Long

Amount in minor units of currency, for example 1000 for CHF 10.00 - CHF has 2 minor units (like most currencies), so value is divided by 10^2 to get the major amount. Must be greater than zero.

Functions

Link copied to clipboard
open override fun toString(): String