Expand description
Code validation module.
Provides functions for validating promotional codes, checking format, character validity, and Damm check digits.
Functionsยง
- count_
valid - Count valid codes in a batch.
- is_
valid - Quick boolean validation check.
- partition_
codes - Partition codes into valid and invalid.
- validate
- Validate a promotional code and return detailed result.
- validate_
batch - Batch validation of multiple codes.
- validate_
format - Validate code format only (length and characters), without checking the check digit.