BillingMoneyAmount

@Serializable
data class BillingMoneyAmount(val amount: Long, val amountFormatted: String, val currency: String, val currencySymbol: String)

A monetary value with currency information.

Constructors

Link copied to clipboard
constructor(amount: Long, amountFormatted: String, currency: String, currencySymbol: String)

Properties

Link copied to clipboard

The raw amount, usually in the smallest unit of the currency (like cents for USD). For example, 1000 for $10.00.

Link copied to clipboard

The amount as a formatted string. For example, 10.00 for $10.00.

Link copied to clipboard

The ISO currency code for this amount. For example, USD.

Link copied to clipboard

The symbol for the currency. For example, $.