{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "BASEURL/card.json",
"title": "card",
"description": "Card Information",
"type": "object",
"properties": {
"securityCode": {
"type": "string",
"minLength": 3,
"maxLength": 4
},
"expiryDate": {
"type": "string",
"description": "YYYYMM",
"minLength": 6,
"maxLength": 6
},
"startDate": {
"type": "string",
"description": "YYYYMM (only applicable to some UK debit cards)",
"minLength": 6,
"maxLength": 6
},
"cardholderName": {
"type": "string",
"maxLength" : 45,
"minLength" : 2,
"description" : "The name of the cardholder as printed on the card. Alphanumeric special characters, listed in EMV Book 4, “Appendix B”."
},
"issueNumber" : {
"type" : "string",
"maxLength" : 2,
"minLength" : 1,
"description" : "only applicable to some UK debit cards"
},
"number": {
"type" : "string",
"maxLength" : 19,
"minLength" : 12
},
"brand": {
"type": "string",
"enum": [
"MasterCard",
"VISA",
"AMEX",
"DINERSDiners",
"CBN",
"JCB",
"Dankort",
"Maestro",
"Cartes Bancaires",
"Discover",
"Bancontact",
"Hipercard",
"Elo",
"Aura",
"Carte 4Etoiles",
"AirPlus",
"CUP",
"NARANJA",
"SHOPPING",
"CABAL",
"ARGENCARD",
"CENCOSUD",
"KOOKMIN",
"KEB",
"BC",
"SHINHAN",
"SAMSUNG",
"HYUNDAI",
"LOTTE",
"1euro",
"echequevacances",
"cofidis3xcb",
"cofidis4xcb",
"facilypay-3x",
"facilypay-3xsansfrais",
"facilypay-4x",
"facilypay-4xsansfrais",
"RuPay"
]
}
},
"required": ["expiryDate", "number", "brand"],
"additionalProperties": false
} |