API reference / Quittio \ Core \ Codes
CodeList
final class in quittio/core
Quittio\Core\Codes\CodeList · Source
Access to the official code lists generated from the EN 16931 rules and, for Peppol, the Peppol BIS rules (resources/codelists/*.json, see tools/codelists/update.php).
Constants#
| Constant | Value | Description |
|---|---|---|
ALLOWANCE_REASONS | 'allowance-reason-codes' | |
CHARGE_REASONS | 'charge-reason-codes' | |
COUNTRIES | 'country-codes' | |
CURRENCIES | 'currency-codes' | |
EAS | 'eas-codes' | |
ICD | 'icd-schemes' | |
INVOICE_TYPES | 'invoice-type-codes' | |
ITEM_CLASSIFICATIONS | 'item-classification-schemes' | |
MIME_TYPES | 'mime-codes' | |
NOTE_SUBJECTS | 'note-subject-codes' | |
OBJECT_IDENTIFIERS | 'object-identifier-schemes' | |
PAYMENT_MEANS | 'payment-means-codes' | |
PEPPOL_CREDIT_NOTE_TYPES | 'peppol-credit-note-type-codes' | The credit note type codes (BT-3) of Peppol business process 01 (PEPPOL-EN16931-P0101). |
PEPPOL_CURRENCIES | 'peppol-currency-codes' | The currencies Peppol accepts (PEPPOL-EN16931-CL007), the ISO 4217 version of the Peppol rules. |
PEPPOL_EAS | 'peppol-eas-codes' | The electronic address schemes Peppol accepts (PEPPOL-EN16931-CL008): EAS without EM and other letter codes. |
PEPPOL_INVOICE_TYPES | 'peppol-invoice-type-codes' | The invoice type codes (BT-3) of Peppol business process 01 (PEPPOL-EN16931-P0100). |
UNITS | 'unit-codes' | |
VAT_CATEGORIES | 'vat-category-codes' | |
VATEX | 'vatex-codes' |
Methods#
| Method | Description |
|---|---|
::codes() | |
::contains() |
codes()#
public static function codes(string $list): list<string>| Parameter | Type | Description |
|---|---|---|
$list | string |
- Returns
list<string>
contains()#
public static function contains(string $list, BackedEnum|RawCode|string $code): bool| Parameter | Type | Description |
|---|---|---|
$list | string | |
$code | BackedEnum|RawCode|string |
- Returns
bool