Validation logic for Swiss QR bill data.
Summary
Functions
Validates that a string contains only characters allowed in Swiss QR codes.
Validates a creditor reference (ISO 11649 / SCOR format). Must start with RF, followed by 2 check digits, then 1-21 alphanumeric chars. Check digits are validated using mod-97-10.
Validates the mod-10 recursive check digit of a QR reference. Uses the standard Swiss modulo-10 table.
Validates a complete QR bill. Returns {:ok, bill} or {:error, errors}.
Functions
Validates that a string contains only characters allowed in Swiss QR codes.
Validates a creditor reference (ISO 11649 / SCOR format). Must start with RF, followed by 2 check digits, then 1-21 alphanumeric chars. Check digits are validated using mod-97-10.
Validates the mod-10 recursive check digit of a QR reference. Uses the standard Swiss modulo-10 table.
Validates a complete QR bill. Returns {:ok, bill} or {:error, errors}.