A business identifier code under ISO 9362:2022 clause 5: four characters of party prefix, two of country, two of suffix, and an optional three-character branch. ISO 20022's BICFIIdentifier pattern is stricter and rejects codes ISO 9362 itself prints as examples, so a code accepted here can still fail a 20022 schema. Values are Id[BIC].
A literal validated while compiling, emitted already canonical. Non-constant input goes to parse, as do schemes whose rules carry code, which cannot run at compile time.
A literal validated while compiling, emitted already canonical. Non-constant input goes to parse, as do schemes whose rules carry code, which cannot run at compile time.
Attributes
Inherited from:
Scheme
final def parse(raw: String): Either[Invalid, Id[this.type]]
Parses and canonicalises input under this scheme's rules - normalisation, row selection, structure, then check arithmetic - failing with the first violated tier's reason. The result is typed to this scheme whether it was named statically or selected at runtime.
Parses and canonicalises input under this scheme's rules - normalisation, row selection, structure, then check arithmetic - failing with the first violated tier's reason. The result is typed to this scheme whether it was named statically or selected at runtime.