stdnum.be.ogm_vcs¶
Belgian OGM-VCS.
The OGM-VCS is used in bank transfer as structured communication.
>>> validate('+++010/8068/17183+++')
'010806817183'
>>> validate('010/8068/17180')
Traceback (most recent call last):
...
InvalidChecksum: ...
>>> format('010806817183')
'010/8068/17183'
>>> calc_check_digits('0108068171')
'83'
- stdnum.be.ogm_vcs.calc_check_digits(number: str) str¶
Calculate the check digit that should be added.
- stdnum.be.ogm_vcs.compact(number: str) str¶
Convert the number to the minimal representation. This strips the number of any invalid separators and removes surrounding whitespace.
- stdnum.be.ogm_vcs.format(number: str) str¶
Format the number provided for output.
- stdnum.be.ogm_vcs.is_valid(number: str) bool¶
Check if the number is a valid VAT number.
- stdnum.be.ogm_vcs.validate(number: str) str¶
Check if the number is a valid OGM-VCS.