- CLI for
card_brand/2
. - Add GitHub workflow.
- Publish
- Return reason tuple on error.
{:error, {:pan_too_short,"Minimum PAN length is 12, found 10."}}
{:error, {:pan_unknown,"Unknown card brand."}}
{:error, {:pan_too_long, "Maximum PAN length is 19, found 20."}}
- Replace Erlang binary/bytes types with String.t in @spec's.
- Add README and CHANGELOG to Hex docs.
- Add pre-commit tasks.
- Add command-line interface.
- Minor credo refactors.
- Brands: Dankort, GPN, LankaPay, Troy, UkrCard, Verve.
- In-line document tests.
- Correct major error of
card_brand/1
passing CodePoints to card_brand/2
. - Identify PAN starting just 65 as Discover, vs. RuPay or Troy.
- Generate documentation.
- Add guards to
card_brand
. - Rough move to mix project, tests are functional.
- Make
pan_length
first parameter of pan_range
. - China UnionPay, China T-Union, Diners Club, Diners Club International
- JCB, Maestro, Maestro UK, Visa Electron
- BORICA, Humo, InstaPayment, InterPayment, Mir, Napas, UATP, UzCard
- Initial release.
- American Express, Discover, Mastercard, and Visa.