CardModel

data class CardModel(val bin: Int? = null, val length: LengthModel? = null, val validation: String? = null, val securityCode: SecurityCodeModel? = null)

Represents detailed card information and validation rules. This class contains all card-specific details including BIN, length requirements, and security code specifications. It is used to validate card information before processing.

Parameters

bin

Bank Identification Number (first 6 digits of card)

length

Card number length requirements

validation

Validation method to be used for the card

securityCode

Security code (CVV) requirements

Example:

val card = CardModel(
bin = 411111,
length = LengthModel(min = 16, max = 16),
validation = "standard",
securityCode = SecurityCodeModel(
mode = "mandatory",
length = 3
)
)

See also

Constructors

Link copied to clipboard
constructor(bin: Int? = null, length: LengthModel? = null, validation: String? = null, securityCode: SecurityCodeModel? = null)

Properties

Link copied to clipboard
val bin: Int? = null
Link copied to clipboard
val length: LengthModel? = null
Link copied to clipboard
Link copied to clipboard
val validation: String? = null