iso-11649
European Structured Communication validation and conversion following ISO 11649.
Installation
Install using npm:
$ npm install iso-11649
Usage
In node.js
var ISO11649 = ; ISO11649; // RF96TU06FXISO11649; // RF14X2HU4TC28XTYLHASYWT91 ISO11649; // trueISO11649; // false
API
generate(rawValue: String)
-> String
Check requirements.
Returns value as a valid Creditor Reference using rawValue.
Required
- rawValue must be not
Null
- rawValue must be of type
String
- rawValue must respect format
^[A-Z0-9]{1,21}$
validate(rawValue: String)
-> Boolean
Check requirements.
Returns if the Creditor Reference format against ISO 11649 specifications is valid.
Required
- rawValue must be not
Null
- rawValue must be of type
String
- rawValue must respect format
^RF[0-9]{2}[A-Z0-9]{1,21}$