ExpirationDate

@Serializable
data class ExpirationDate(val month: Int, val year: Int)(source)

A data class representing a date, typically for credit card expiration.

Constructors

Link copied to clipboard
constructor(month: Int, year: Int)

Properties

Link copied to clipboard
val month: Int

The month of the year.

Link copied to clipboard
val year: Int

The year.

Functions

Link copied to clipboard
fun toJson(): JsonObject

Converts the ExpirationDate object to a JsonObject.