Zum Inhalt springen

API reference / Quittio \ Country \ BE \ Support

EnterpriseNumber

final class in quittio/country-be

Quittio\Country\BE\Support\EnterpriseNumber · Source

The Belgian enterprise number (ondernemingsnummer, numéro d'entreprise) of the Crossroads Bank for Enterprises: ten digits, the last two 97 minus the first eight modulo 97. The VAT number is "BE" and the enterprise number; Peppol uses it with scheme 0208.

Constants#

ConstantValueDescription
SCHEME'0208'Electronic address scheme of the enterprise number.

Methods#

MethodDescription
::format()The number in the usual notation "0123.456.749".
::fromVatId()The enterprise number of a Belgian VAT number ("BE0123456749"), or null for another value.
::isValid()Whether the value is an enterprise number with valid check digits.
::normalize()The ten digits of a number such as "0123.456.749", "BE 0123 456 749" or "123456749", or null.

format()#

public static function format(string $value): string

static

The number in the usual notation "0123.456.749".

ParameterTypeDescription
$valuestring
Returns
string

fromVatId()#

public static function fromVatId(?string $vatId): ?string

static

The enterprise number of a Belgian VAT number ("BE0123456749"), or null for another value.

ParameterTypeDescription
$vatId?string
Returns
?string

isValid()#

public static function isValid(string $value): bool

static

Whether the value is an enterprise number with valid check digits.

ParameterTypeDescription
$valuestring
Returns
bool

normalize()#

public static function normalize(string $value): ?string

static

The ten digits of a number such as "0123.456.749", "BE 0123 456 749" or "123456749", or null.

ParameterTypeDescription
$valuestring
Returns
?string

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.