{
  "id": "bankcard_mastercard",
  "kind": "pattern",
  "status": "draft",
  "name": "Mastercard card number",
  "doc": "Primary account number of a Mastercard card: 16 digits that start with 51 to 55 or, since 2017, with 2221 to 2720. The last digit is a Luhn check digit. The pattern accepts the number without spaces or hyphens.",
  "semantic_type": "bankcard",
  "is_pii": true,
  "categories": [
    "pii",
    "finances"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$",
  "checksum": "luhn",
  "examples": [
    {
      "value": "5555555555554444",
      "description": "Stripe test card number",
      "valid": true
    },
    {
      "value": "2223003122003222",
      "description": "Stripe test card number from the 2-series range",
      "valid": true
    },
    {
      "value": "4242424242424242",
      "description": "Visa test number",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Payment_card_number"
    },
    {
      "type": "doc",
      "url": "https://docs.stripe.com/testing"
    }
  ],
  "detected_by": {
    "tools": [
      "cloudflaredlp",
      "datadogsds",
      "pywhat",
      "validatorjs"
    ]
  },
  "quality": {
    "score": 85,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/any/finances/bankcard_mastercard.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/finances/bankcard_mastercard.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/finances/bankcard_mastercard.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/bankcard_mastercard",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/bankcard_mastercard.json"
  }
}