BIC

world.id.banking$package.BIC
object BIC extends Scheme[Institution]

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].

Attributes

Graph
Supertypes
class Scheme[Institution]
class Object
trait Matchable
class Any
Self type
BIC.type

Members list

Value members

Inherited methods

inline def apply(inline value: String): Id[this.type]

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.

Attributes

Inherited from:
Scheme

Inherited fields

val authority: Authority

Attributes

Inherited from:
Scheme
val label: String

Attributes

Inherited from:
Scheme

Givens

Givens

given given_Aux_Id_Invalid: Aux[Id[BIC.type], Invalid]

Extensions

Extensions

extension (b: Id[BIC.type])
def branch: Option[String]

The branch, present only on the eleven-character form.

The branch, present only on the eleven-character form.

Attributes

def country: String

The scheme's country code: ISO 3166 alpha-2, plus XK for Kosovo.

The scheme's country code: ISO 3166 alpha-2, plus XK for Kosovo.

Attributes

def party: String
def territory: Option[Territory]