PaymentMean

@Serializable
data class PaymentMean(val id: UUID, val created: Instant, val alias: String, val cardExpiry: YearMonth, val active: Boolean)

Payment Mean data structure

Parameters

id

the the unique UUID of payment mean

created

the Instant representation of the date of creation

alias

the name of the payment mean

cardExpiry

the YearMonth representation of the card expiration date

active

representing the state of the payment mean

Constructors

Link copied to clipboard
constructor(id: UUID, created: Instant, alias: String, cardExpiry: YearMonth, active: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable(with = YearMonthSerializer::class)
val cardExpiry: YearMonth
Link copied to clipboard
@Serializable(with = InstantSerializer::class)
val created: Instant
Link copied to clipboard
@Serializable(with = UUIDSerializer::class)
val id: UUID

Functions

Link copied to clipboard
fun toJSON(): String