{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TokenizedCard",
  "title": "TokenizedCard",
  "type": "object",
  "properties": {
    "tokenKey": {
      "type": "string",
      "description": "The unique token representing the saved card."
    },
    "cardType": {
      "type": "string",
      "description": "The card network brand.",
      "enum": [
        "Visa",
        "Mastercard",
        "Verve"
      ]
    },
    "last4": {
      "type": "string",
      "description": "The last 4 digits of the card number.",
      "pattern": "^\\d{4}$"
    },
    "expiryMonth": {
      "type": "string",
      "description": "The expiry month of the card."
    },
    "expiryYear": {
      "type": "string",
      "description": "The expiry year of the card."
    },
    "customerEmail": {
      "type": "string",
      "format": "email",
      "description": "The email address of the card holder."
    }
  }
}