Money

data class Money(val amount: BigDecimal)

Value object representing a monetary amount. Using this ensures type safety and centralizes rounding, comparison, and formatting rules.

Constructors

Link copied to clipboard
constructor(amount: BigDecimal)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
operator fun compareTo(other: Money): Int
Link copied to clipboard
operator fun minus(other: Money): Money
Link copied to clipboard
operator fun plus(other: Money): Money
Link copied to clipboard
operator fun times(multiplier: Int): Money