API reference / Quittio \ Core \ Enums
ChargeReasonCode
string-backed enum in quittio/core · uses HasLabel
Quittio\Core\Enums\ChargeReasonCode · Source
Charge reason code (BT-105, BT-145), UNTDID 7161 subset. Further codes can be used as RawCode.
Cases#
| Case | Value | Description |
|---|---|---|
Advertising | 'AA' | |
Telecommunication | 'AAA' | |
Miscellaneous | 'ABK' | |
AdditionalPackaging | 'ABL' | |
OtherServices | 'ADR' | |
PickUp | 'ADT' | |
Delivery | 'DL' | |
Freight | 'FC' | |
Financing | 'FI' | |
Labelling | 'LA' | |
Packing | 'PC' | |
SpecialHandling | 'SH' |
Methods#
| Method | Description |
|---|---|
::isValidCode() | Whether a raw code value is valid according to the official code list. |
->label() | |
::labelGroup() |
isValidCode()#
public static function isValidCode(string $code): boolWhether a raw code value is valid according to the official code list.
| Parameter | Type | Description |
|---|---|---|
$code | string |
- Returns
bool
label()#
public function label(?string $locale = null): string| Parameter | Type | Description |
|---|---|---|
$locale | ?string = null |
- Returns
string
labelGroup()#
public static function labelGroup(): string- Returns
string