PaymentMean

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

Payment Mean data structure

Parameters

id

the the unique identifier of payment mean

created

the java.time.Instant representation of the date of creation

alias

the name of the payment mean

cardExpiry

the java.time.YearMonth representation of the card expiration date

active

representing the state of the payment mean

Constructors

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

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
val id: String
Link copied to clipboard
@Serializable(with = PaymentMeanStateSerializer::class)
val state: PaymentMeanState

Functions

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