posErrorCodes top-level constant
Gleich pos.posErrorCodes im Vertrag (surface.json): Fehlerfälle der
Endpunkte (seit 10.7 auch die fuenf der Inventur, seit 11.1 die sechs der Schicht) und ihre
Handler-Codes,
dazu Anmelde- und Randcodes (ohne den Partner-Zugang) und der Paketcode
route_missing. validation trägt
details.errors[] mit dem äußeren Feldpfad (posFieldErrors).
Implementation
const List<String> posErrorCodes = [
'account_not_found',
'action_confirmation_required',
'admin_required',
'after_count_not_permitted',
'api_not_approved',
'app_check_invalid',
'app_check_missing',
'article_not_found',
'article_not_in_scope',
'article_not_tracked',
'cash_movement_exceeds_balance',
'cashregister_not_assigned',
'cashregister_not_found',
'cashregister_token_invalid',
'cashregister_token_missing',
'comment_required',
'count_already_voided',
'count_not_found',
'device_not_found',
'dialect_mismatch',
'drawer_inactive',
'drawer_not_found',
'idempotency_conflict',
'idempotency_key_required',
'internal_translation_error',
'invalid_amount',
'invalid_cursor',
'invalid_denominations',
'invalid_movement_type',
'invalid_quantity',
'invalid_serial',
'live_not_enabled',
'location_inactive',
'location_not_found',
'logo_invalid',
'logo_invalid_type',
'logo_too_large',
'method_not_allowed',
'mfa_required',
'module_inactive',
'not_found',
'not_permitted',
'note_required',
'password_change_required',
'print_job_not_found',
'print_layout_failed',
'printer_not_found',
'recount_exhausted',
'register_user_no_business',
'register_user_not_allowed',
'register_user_not_found',
'response_translation_failed',
'second_factor_required',
'serial_already_counted',
'serial_not_allowed',
'serial_required',
'server_error',
'session_expired',
'session_other_cashregister',
'shift_already_open',
'shift_closed',
'shift_mode_off',
'shift_not_open',
'stocktake_closed',
'stocktake_closing',
'stocktake_not_found',
'stocktake_not_open',
'tip_payout_exceeds_claim',
'too_many_counts',
'transfer_same_drawer',
'unauthorized',
'user_disabled',
'user_verification_failed',
'validation',
'route_missing',
];