{
  "schemaVersion": 1,
  "scope": "Illustrative full-input detector with a deliberately broad Maestro 6 fallback and a small set of specific overrides. Not an authoritative BIN table.",
  "rules": [
    {
      "prefix": "50",
      "brand": "maestro"
    },
    {
      "prefix": "56",
      "brand": "maestro"
    },
    {
      "prefix": "57",
      "brand": "maestro"
    },
    {
      "prefix": "58",
      "brand": "maestro"
    },
    {
      "prefix": "6",
      "brand": "maestro"
    },
    {
      "prefix": "6304",
      "brand": "maestro"
    },
    {
      "prefix": "6759",
      "brand": "maestro"
    },
    {
      "prefix": "6761",
      "brand": "maestro"
    },
    {
      "prefix": "6762",
      "brand": "maestro"
    },
    {
      "prefix": "6763",
      "brand": "maestro"
    },
    {
      "prefix": "6011",
      "brand": "discover"
    },
    {
      "prefix": "644",
      "brand": "discover"
    },
    {
      "prefix": "645",
      "brand": "discover"
    },
    {
      "prefix": "646",
      "brand": "discover"
    },
    {
      "prefix": "647",
      "brand": "discover"
    },
    {
      "prefix": "648",
      "brand": "discover"
    },
    {
      "prefix": "649",
      "brand": "discover"
    },
    {
      "prefix": "65",
      "brand": "discover"
    },
    {
      "prefix": "62",
      "brand": "unionpay"
    },
    {
      "prefix": "81",
      "brand": "unionpay"
    },
    {
      "prefix": "51",
      "brand": "mastercard"
    }
  ],
  "cases": [
    {
      "id": "maestro-50",
      "number": "5012345678901236",
      "expected": {
        "status": "matched",
        "brand": "maestro",
        "candidates": [
          "maestro"
        ]
      }
    },
    {
      "id": "maestro-56",
      "number": "5612345678901230",
      "expected": {
        "status": "matched",
        "brand": "maestro",
        "candidates": [
          "maestro"
        ]
      }
    },
    {
      "id": "maestro-6304",
      "number": "6304123456789012347",
      "expected": {
        "status": "matched",
        "brand": "maestro",
        "candidates": [
          "maestro"
        ]
      }
    },
    {
      "id": "maestro-6759",
      "number": "6759123456789015",
      "expected": {
        "status": "matched",
        "brand": "maestro",
        "candidates": [
          "maestro"
        ]
      }
    },
    {
      "id": "maestro-6763",
      "number": "6763123456789012344",
      "expected": {
        "status": "matched",
        "brand": "maestro",
        "candidates": [
          "maestro"
        ]
      }
    },
    {
      "id": "discover-6011",
      "number": "6011123456789019",
      "expected": {
        "status": "matched",
        "brand": "discover",
        "candidates": [
          "discover",
          "maestro"
        ]
      }
    },
    {
      "id": "discover-644",
      "number": "6441234567890123",
      "expected": {
        "status": "matched",
        "brand": "discover",
        "candidates": [
          "discover",
          "maestro"
        ]
      }
    },
    {
      "id": "discover-65",
      "number": "6512345678901239",
      "expected": {
        "status": "matched",
        "brand": "discover",
        "candidates": [
          "discover",
          "maestro"
        ]
      }
    },
    {
      "id": "unionpay-62",
      "number": "6212345678901234569",
      "expected": {
        "status": "matched",
        "brand": "unionpay",
        "candidates": [
          "maestro",
          "unionpay"
        ]
      }
    },
    {
      "id": "unionpay-81",
      "number": "8112345678901239",
      "expected": {
        "status": "matched",
        "brand": "unionpay",
        "candidates": [
          "unionpay"
        ]
      }
    },
    {
      "id": "mastercard-neighbor",
      "number": "5112345678901235",
      "expected": {
        "status": "matched",
        "brand": "mastercard",
        "candidates": [
          "mastercard"
        ]
      }
    },
    {
      "id": "unmapped-prefix",
      "number": "4123456789012349",
      "expected": {
        "status": "unmapped",
        "brand": null,
        "candidates": []
      }
    },
    {
      "id": "partial-input",
      "number": "6",
      "expected": {
        "status": "invalid-input",
        "brand": null,
        "candidates": []
      }
    }
  ]
}
