LengthModel

data class LengthModel(val min: Int? = null, val max: Int? = null)

Defines the length requirements for a card number. This class specifies the valid length range for card numbers to ensure proper validation of card information.

Parameters

min

Minimum allowed length for the card number

max

Maximum allowed length for the card number

Example:

val length = LengthModel(
min = 16,
max = 16
)

Constructors

Link copied to clipboard
constructor(min: Int? = null, max: Int? = null)

Properties

Link copied to clipboard
val max: Int? = null
Link copied to clipboard
val min: Int? = null