IBAN

world.id.banking$package.IBAN
object IBAN extends Scheme[Account]

An international bank account number in its electronic form - no spaces, upper case. Parsing proves two things and no more: the number fits the ISO 13616 structure its country registers, and it passes the ISO 7064 MOD 97-10 check. It does not prove the account exists, and an IBAN is not a source of bank or branch identity, so nothing here decomposes one. Values are Id[IBAN].

Attributes

Graph
Supertypes
class Scheme[Account]
class Object
trait Matchable
class Any
Self type
IBAN.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[IBAN.type], Invalid]

Extensions

Extensions

extension (i: Id[IBAN.type])
def country: String

The registry's country code, which is the scheme's own and not a Territory claim - the registry's GB covers the Crown dependencies too.

The registry's country code, which is the scheme's own and not a Territory claim - the registry's GB covers the Crown dependencies too.

Attributes

def territory: Option[Territory]