SecurityCodeModel

data class SecurityCodeModel(val mode: String? = null, val location: String? = null, val length: Int? = null)

Defines the security code (CVV) requirements for a card. This class specifies how the security code should be handled, including its location on the card and length requirements.

Parameters

mode

How the security code should be handled (e.g., "mandatory", "optional")

location

Where the security code is located on the card (e.g., "back", "front")

length

Required length of the security code

Example:

val securityCode = SecurityCodeModel(
mode = "mandatory",
location = "back",
length = 3
)

Constructors

Link copied to clipboard
constructor(mode: String? = null, location: String? = null, length: Int? = null)

Properties

Link copied to clipboard
val length: Int? = null
Link copied to clipboard
val location: String? = null
Link copied to clipboard
val mode: String? = null