NUBAN

world.id.banking$package.NUBAN
object NUBAN

Parsing and the check arithmetic for NUBAN.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
NUBAN.type

Members list

Type members

Classlikes

sealed abstract class Invalid(message: String) extends WorldError

Attributes

Companion
object
Supertypes
class WorldError
class TypedError
trait NoStackTrace
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
class Checksum
class Format
class Institution
object Invalid

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Invalid.type

Value members

Concrete methods

def check(digits: String): Option[Int]

The check digit for an institution code followed by a nine-digit serial - the half of the arithmetic an issuer needs. Absent for anything but ASCII digits, since a digit computed over other characters would be meaningless rather than wrong in a detectable way.

The check digit for an institution code followed by a nine-digit serial - the half of the arithmetic an issuer needs. Absent for anything but ASCII digits, since a digit computed over other characters would be meaningless rather than wrong in a detectable way.

Attributes

def parse(institution: String, account: String): Either[Invalid, NUBAN]

Checks a ten-digit account against the code of the institution that issued it.

Checks a ten-digit account against the code of the institution that issued it.

Attributes

Givens

Givens

given given_Ordering_NUBAN: Ordering[NUBAN]

Extensions

Extensions

extension (n: NUBAN)
def value: String