Package-level declarations

Types

Link copied to clipboard
value class CardNumber(val value: String)
value class CardNumber(val value: String)

A credit or debit card number.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun CreditCard(number: CardNumber, expirationDate: YearMonth, holder: String? = null): CreditCard
fun CreditCard(number: CardNumber, expirationDate: YearMonth, holder: String? = null): CreditCard

Creates a new instance of CreditCard with the given parameters.

Link copied to clipboard
fun YearMonth(year: Year, month: Month): YearMonth
fun YearMonth(year: Year, month: Month): YearMonth
fun YearMonth(year: Int, month: Month): YearMonth
fun YearMonth(year: Int, month: Month): YearMonth

Creates a new instance of YearMonth with the given parameters.