@kreiseck/kasseneck-api 1.39.0 → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/pos/client.d.ts +1 -0
  3. package/dist/cjs/pos/client.js +7 -0
  4. package/dist/cjs/pos/errors.d.ts +1 -1
  5. package/dist/cjs/pos/errors.js +1 -0
  6. package/dist/cjs/pos/index.d.ts +1 -1
  7. package/dist/cjs/pos/index.js +7 -5
  8. package/dist/cjs/pos/settings.d.ts +32 -2
  9. package/dist/cjs/pos/settings.js +36 -3
  10. package/dist/cjs/pos/texte.d.ts +164 -0
  11. package/dist/cjs/pos/texte.js +54 -0
  12. package/dist/cjs/receipt/layout.js +11 -3
  13. package/dist/cjs/stored/vokabular.d.ts +1 -1
  14. package/dist/cjs/stored/vokabular.js +11 -2
  15. package/dist/cjs/version.d.ts +1 -1
  16. package/dist/cjs/version.js +1 -1
  17. package/dist/esm/pos/client.d.ts +1 -0
  18. package/dist/esm/pos/client.js +8 -1
  19. package/dist/esm/pos/errors.d.ts +1 -1
  20. package/dist/esm/pos/errors.js +1 -0
  21. package/dist/esm/pos/index.d.ts +1 -1
  22. package/dist/esm/pos/index.js +1 -1
  23. package/dist/esm/pos/settings.d.ts +32 -2
  24. package/dist/esm/pos/settings.js +33 -2
  25. package/dist/esm/pos/texte.d.ts +164 -0
  26. package/dist/esm/pos/texte.js +54 -0
  27. package/dist/esm/receipt/layout.js +11 -3
  28. package/dist/esm/stored/vokabular.d.ts +1 -1
  29. package/dist/esm/stored/vokabular.js +11 -2
  30. package/dist/esm/version.d.ts +1 -1
  31. package/dist/esm/version.js +1 -1
  32. package/fixtures/hobex-hps-codes.json +1 -1
  33. package/fixtures/invoice-api.schema.json +1 -1
  34. package/fixtures/invoice-texts.json +1 -1
  35. package/fixtures/manifest.json +6 -6
  36. package/fixtures/pos-texts.json +257 -1
  37. package/fixtures/receipts/card-sumup.json +1 -1
  38. package/fixtures/receipts/split-card-card-cash.json +1 -1
  39. package/fixtures/receipts/split-one-card-tip.json +1 -1
  40. package/fixtures/receipts/split-table-round-tip.json +2 -2
  41. package/fixtures/receipts/split-tip-card.json +1 -1
  42. package/fixtures/receipts/split-two-cards-same-provider.json +2 -2
  43. package/fixtures/renames-1.0.json +4 -2
  44. package/fixtures/surface.json +7 -2
  45. package/fixtures/v3/antworten/belege.json +2 -2
  46. package/fixtures/v3/antworten/belegmail.json +2 -2
  47. package/fixtures/v3/antworten/berichte.json +2 -2
  48. package/fixtures/v3/antworten/kasse-belege.json +2 -2
  49. package/fixtures/v3/antworten/kasse.json +3 -3
  50. package/fixtures/v3/antworten/lager.json +1 -1
  51. package/fixtures/v3/antworten/rechnungen.json +2 -2
  52. package/fixtures/v3/antworten/storno.json +2 -2
  53. package/fixtures/v3/stored/belege.json +2 -2
  54. package/fixtures/v3/stored/kasse.json +3 -3
  55. package/fixtures/v3/stored/rechnungen.json +2 -2
  56. package/fixtures/v3/v3-vokabular.json +42 -4
  57. package/fixtures/v3/zahlbetrag-faelle.json +2 -2
  58. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,23 @@ Was vor 0.7.0 geschah, steht in der Commit-Historie (`git log`); ab hier wird
4
4
  es hier geführt. Ein Eintrag nennt die Änderung **und ihren Grund** —
5
5
  nur der Grund überlebt den nächsten Umbau.
6
6
 
7
+ ## 1.41.0 - unveröffentlicht
8
+
9
+ "Mein Trinkgeld" with the open amount large (owner 16.11.2026). Additive; every existing text stays.
10
+
11
+ - **Labels `my_tips.open_for_you`** („für dich offen“), **`my_tips.open_for_you_here`** („für dich offen an dieser Lade“, only when another drawer also holds an open amount), **`my_tips.open_for_you_total`** („für dich offen, alle Laden“, claim per person) under the large amount, and **`my_tips.received_today`** („heute schon bekommen: {amount}“), shown small and only above 0. The pay-out button takes the existing `tip_payout.pay_amount` („{amount} auszahlen“). Reason: with "always leave open" the line „Heute genommen 0,00 €“ stood there all day and read like money already taken; the employee wants to see one number. `my_tips.open_here`, `my_tips.open_total` and `my_tips.kept_today` stay for older registers.
12
+ - **Label `my_tips.other_drawer_extra`** („dazu {amount} an der Lade „{drawer}““) for an open amount at another drawer (claim per drawer). Reason: „Bar: 1,50 € offen“ (`my_tips.other_drawer`) read like cash when a drawer is called „Bar“; the word „Lade“ now always stands with the name. `my_tips.other_drawer` stays for older registers.
13
+
14
+ ## 1.40.0 - 2026-11-15
15
+
16
+ SumUp in the register app (backend spec 2026-11-14-sumup-kasse, stage 1: Android only) and a fix in the SumUp block of the receipt. Additive; every existing call and text behaves as before.
17
+
18
+ - **Card provider `sumup`** in `CARD_PROVIDER` and the contract. Only the register app on Android connects it (SumUp SDK); the browser register and iOS take it like `external`.
19
+ - **`business.sumupMerchantCode`** (optional, `POS_BUSINESS_OPTIONAL_IDS`): the SumUp merchant code the business is bound to. Missing until one is bound. `setMyPosSettings` takes 4 to 20 letters or digits or `null` (release the binding) and rejects anything else before sending; the server rejects a different code while one is bound (`sumup_merchant_already_bound`). Reason: a device logged in to another SumUp account must never take payments for this business.
20
+ - **Block `cardTerminal`** in the register settings (`PosSettings.cardTerminal`, `posCardTerminalFromWire`): `{ sumup: { affiliateKey } }`, only for a device whose card provider is `sumup`; missing otherwise.
21
+ - **Sentences `sumup.*`** (app only): not set up, not logged in, not bound, other account, bind and release questions, currency, login failed, not carried out (without the raw SDK reason; SumUp shows it on its own screen), amount differs, below 1,00 €, look in the SumUp app, optional transaction code, refund hint, iOS takes it like external, login status, and six location sentences (`sumup.location_question`, `.location_hint`, `.location_denied`, `.location_denied_hint`, `.location_off`, `.location_missing`): the register asks for the location itself before the SumUp login, because the SumUp SDK refuses to log in without it on Android 12 and later. Labels for the sheets of these questions and of the binding (`sumup.location_title`, `.location_allow`, `.location_denied_title`, `.open_app_settings`, `.location_off_title`, `.location_turn_on`, `.bind_title`, `.bind`, `.unbind_title`, `.unbind`, `.reader_change`; app only) and the status line `sumup.reader_ready` („Leser {name} ist eingerichtet.“) once SumUp has set up a reader.
22
+ - **Fix SumUp amount:** `amount` in the SumUp block is euros, as SumUp returns it and as it is stored on the receipt (`25`, `14.09`). A whole number used to be read as cents (25 € → „0,25 EUR“). Strings with a dot (`"25.00"`) are read, anything else gives „-“. The SumUp test receipts now carry euros, the goldens stay byte-identical.
23
+
7
24
  ## 1.39.0 - 2026-11-14
8
25
 
9
26
  Texts for the device operation of both registers (printer, paper, terminal, lock screen), an address callback in the HPS Connect client, a call to report a new terminal address, a call to report the running register version and the device switch `printerHint` (backend spec 2026-11-09-connect-betrieb, stage 2). Additive; every existing call, golden and text behaves as before.
@@ -10,6 +10,7 @@ export declare function posSettingsFromWire(data: {
10
10
  device?: unknown;
11
11
  vouchers?: unknown;
12
12
  deposit?: unknown;
13
+ cardTerminal?: unknown;
13
14
  } | null | undefined): PosSettings;
14
15
  /** Betriebsweite Einstellungen schreiben (Recht `layout`); liefert den gemischten Stand. */
15
16
  export declare function setMyPosSettings(transport: InternerTransport, business: Partial<PosBusinessSettings>): Promise<PosBusinessSettings>;
@@ -40,11 +40,13 @@ async function getPosSettings(transport, options = {}) {
40
40
  /** `{business, device, vouchers}` einer Antwort, gemischt mit den Standardwerten. */
41
41
  function posSettingsFromWire(data) {
42
42
  const deposit = (0, pfand_js_1.posDepositSettingsFromWire)(data?.deposit);
43
+ const cardTerminal = (0, settings_js_1.posCardTerminalFromWire)(data?.cardTerminal);
43
44
  return {
44
45
  vouchers: (0, gutschein_js_1.posVoucherSettingsFromWire)(data?.vouchers),
45
46
  business: (0, settings_js_1.mergePosSettings)(settings_js_1.POS_BUSINESS_DEFAULTS, objekt(data?.business)),
46
47
  device: (0, settings_js_1.mergePosSettings)(settings_js_1.POS_DEVICE_DEFAULTS, objekt(data?.device)),
47
48
  ...(deposit ? { deposit } : {}),
49
+ ...(cardTerminal ? { cardTerminal } : {}),
48
50
  };
49
51
  }
50
52
  /** Betriebsweite Einstellungen schreiben (Recht `layout`); liefert den gemischten Stand. */
@@ -150,6 +152,11 @@ function pruefeTeil(name, teil, block, standard, werte) {
150
152
  throw new errors_js_1.KasseneckValidationError(name, `${teil}.${schluessel}: Kennung oder null erwartet`, 'request');
151
153
  continue;
152
154
  }
155
+ if (teil === 'business' && settings_js_1.POS_BUSINESS_OPTIONAL_IDS.includes(schluessel)) {
156
+ if (!(0, settings_js_1._optionaleBetriebsKennung)(wert, true))
157
+ throw new errors_js_1.KasseneckValidationError(name, `${teil}.${schluessel}: Nummer (4 bis 20 Buchstaben oder Ziffern) oder null erwartet`, 'request');
158
+ continue;
159
+ }
153
160
  const schalter = teil === 'business' ? settings_js_1.POS_BUSINESS_OPTIONAL_FIELDS : settings_js_1.POS_DEVICE_OPTIONAL_SWITCHES;
154
161
  if (schalter.includes(schluessel)) {
155
162
  if (typeof wert !== 'boolean')
@@ -21,7 +21,7 @@ import { KasseneckApiError } from '../client/errors.js';
21
21
  * ueber `KasseneckApiError.code` lesbar; die Kasse braucht dafuer einen
22
22
  * Rueckfallzweig.
23
23
  */
24
- export declare const POS_ERROR_CODES: readonly ["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", "deposit_follows_item", "deposit_not_enabled", "deposit_return_not_offered", "deposit_set_by_server", "deposit_type_in_use", "deposit_type_not_found", "deposit_type_not_issued", "device_not_found", "dialect_mismatch", "drawer_inactive", "drawer_not_found", "filler_role_required", "idempotency_conflict", "idempotency_key_required", "internal_translation_error", "invalid_amount", "invalid_cursor", "invalid_denominations", "invalid_deposit", "invalid_deposit_quantity", "invalid_discount_preset", "invalid_item_kind", "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_a_person_login", "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", "too_many_deposit_types", "transfer_same_drawer", "unauthorized", "user_disabled", "user_verification_failed", "validation", "route_missing"];
24
+ export declare const POS_ERROR_CODES: readonly ["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", "deposit_follows_item", "deposit_not_enabled", "deposit_return_not_offered", "deposit_set_by_server", "deposit_type_in_use", "deposit_type_not_found", "deposit_type_not_issued", "device_not_found", "dialect_mismatch", "drawer_inactive", "drawer_not_found", "filler_role_required", "idempotency_conflict", "idempotency_key_required", "internal_translation_error", "invalid_amount", "invalid_cursor", "invalid_denominations", "invalid_deposit", "invalid_deposit_quantity", "invalid_discount_preset", "invalid_item_kind", "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_a_person_login", "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", "sumup_merchant_already_bound", "tip_payout_exceeds_claim", "too_many_counts", "too_many_deposit_types", "transfer_same_drawer", "unauthorized", "user_disabled", "user_verification_failed", "validation", "route_missing"];
25
25
  export type PosErrorCode = typeof POS_ERROR_CODES[number];
26
26
  export declare function isPosErrorCode(value: unknown): value is PosErrorCode;
27
27
  /** Der Code eines geworfenen Fehlers, wenn er in [POS_ERROR_CODES] steht; sonst `undefined`. */
@@ -109,6 +109,7 @@ exports.POS_ERROR_CODES = Object.freeze([
109
109
  'stocktake_closing',
110
110
  'stocktake_not_found',
111
111
  'stocktake_not_open',
112
+ 'sumup_merchant_already_bound',
112
113
  'tip_payout_exceeds_claim',
113
114
  'too_many_counts',
114
115
  'too_many_deposit_types',
@@ -6,7 +6,7 @@
6
6
  * die Backend-Functions (die Rewrites-Waechter der Web-App leiten daraus ab)
7
7
  * und sprechen den Kassenweg `/api/v3` (Schluessel und Werte englisch).
8
8
  */
9
- export { type PosTheme, type PosFontSize, type PosWatermark, type PosQuantity, type PosTipMode, type PosCheckoutMode, type PosCardProvider, type PosReceiptOutput, type PosShortcutAction, type PosShortcutMap, POS_SHORTCUT_ACTIONS, POS_SHORTCUT_DEFAULTS, type PosLayout, type PosCategoryPosition, type PosTileHeight, type PosPrinterType, type PosTerminalVia, type PosTerminalType, type PosPaperSize, type PosCodePage, type PosCut, type PosDrawerAutoOpen, type PosQrMode, type PosLogoSize, type PosSettingsFontSize, type PosTileStyle, type PosAutoLogoutMinutes, type PosDiscount, type PosWatermarkSide, type PosWatermarkStrength, type PosLogoScale, type PosWatermarkScale, type PosDoneScreenSeconds, type PosToggleMap, type PosBusinessSettings, type PosDeviceSettings, type PosSettings, POS_BUSINESS_DEFAULTS, POS_DEVICE_DEFAULTS, POS_DEVICE_OPTIONAL_FIELDS, POS_DEVICE_OPTIONAL_SWITCHES, posPrinterHint, POS_BUSINESS_OPTIONAL_FIELDS, POS_BUSINESS_OPTIONAL_CHOICES, POS_DEVICE_OPTIONAL_CHOICES, posTipKeptByDefault, posCustomDiscountAllowed, posTipKeptMode, posTipCardKeptByDefault, posTipCardKeptMode, posTipSelfPayout, tipKeptFor, type TipKeptDecision, type TipPaymentKind, DISCOUNT_PRESET_KIND, type PosDiscountPreset, type PosDiscountPresetKind, POS_BUSINESS_OPTIONAL_LISTS, posTipKinds, posTipStart, posCartWidth, POS_BUSINESS_VALUES, POS_DEVICE_VALUES, mergePosSettings, sanitizePosSettings, unknownPosSettingValues, posSettingsChanges, type PosOpen, POS_SHORTCUT_SHARED_PAIRS, posShortcutConflict, THEME, FONT_SIZE, WATERMARK, QUANTITY, TIP_MODE, TIP_KINDS, TIP_START, TIP_KEPT_MODE, TIP_CARD_KEPT_MODE, type PosTipKeptMode, CART_WIDTH, type PosTipKind, type PosCartWidth, CHECKOUT_MODE, CARD_PROVIDER, RECEIPT_OUTPUT, LAYOUT, CATEGORY_POSITION, TILE_HEIGHT, PRINTER_TYPE, TERMINAL_VIA, TERMINAL_TYPE, PAPER_SIZE, CODE_PAGE, CUT, DRAWER_AUTO_OPEN, QR_MODE, LOGO_SIZE, SETTINGS_FONT_SIZE, TILE_STYLE, AUTO_LOGOUT_MINUTES, DISCOUNT, WATERMARK_SIDE, WATERMARK_STRENGTH, LOGO_SCALE, WATERMARK_SCALE, DONE_SCREEN_SECONDS, } from './settings.js';
9
+ export { type PosTheme, type PosFontSize, type PosWatermark, type PosQuantity, type PosTipMode, type PosCheckoutMode, type PosCardProvider, type PosReceiptOutput, type PosShortcutAction, type PosShortcutMap, POS_SHORTCUT_ACTIONS, POS_SHORTCUT_DEFAULTS, type PosLayout, type PosCategoryPosition, type PosTileHeight, type PosPrinterType, type PosTerminalVia, type PosTerminalType, type PosPaperSize, type PosCodePage, type PosCut, type PosDrawerAutoOpen, type PosQrMode, type PosLogoSize, type PosSettingsFontSize, type PosTileStyle, type PosAutoLogoutMinutes, type PosDiscount, type PosWatermarkSide, type PosWatermarkStrength, type PosLogoScale, type PosWatermarkScale, type PosDoneScreenSeconds, type PosToggleMap, type PosBusinessSettings, type PosDeviceSettings, type PosSettings, POS_BUSINESS_DEFAULTS, POS_DEVICE_DEFAULTS, POS_DEVICE_OPTIONAL_FIELDS, POS_DEVICE_OPTIONAL_SWITCHES, posPrinterHint, POS_BUSINESS_OPTIONAL_FIELDS, POS_BUSINESS_OPTIONAL_IDS, posCardTerminalFromWire, type PosCardTerminal, POS_BUSINESS_OPTIONAL_CHOICES, POS_DEVICE_OPTIONAL_CHOICES, posTipKeptByDefault, posCustomDiscountAllowed, posTipKeptMode, posTipCardKeptByDefault, posTipCardKeptMode, posTipSelfPayout, tipKeptFor, type TipKeptDecision, type TipPaymentKind, DISCOUNT_PRESET_KIND, type PosDiscountPreset, type PosDiscountPresetKind, POS_BUSINESS_OPTIONAL_LISTS, posTipKinds, posTipStart, posCartWidth, POS_BUSINESS_VALUES, POS_DEVICE_VALUES, mergePosSettings, sanitizePosSettings, unknownPosSettingValues, posSettingsChanges, type PosOpen, POS_SHORTCUT_SHARED_PAIRS, posShortcutConflict, THEME, FONT_SIZE, WATERMARK, QUANTITY, TIP_MODE, TIP_KINDS, TIP_START, TIP_KEPT_MODE, TIP_CARD_KEPT_MODE, type PosTipKeptMode, CART_WIDTH, type PosTipKind, type PosCartWidth, CHECKOUT_MODE, CARD_PROVIDER, RECEIPT_OUTPUT, LAYOUT, CATEGORY_POSITION, TILE_HEIGHT, PRINTER_TYPE, TERMINAL_VIA, TERMINAL_TYPE, PAPER_SIZE, CODE_PAGE, CUT, DRAWER_AUTO_OPEN, QR_MODE, LOGO_SIZE, SETTINGS_FONT_SIZE, TILE_STYLE, AUTO_LOGOUT_MINUTES, DISCOUNT, WATERMARK_SIDE, WATERMARK_STRENGTH, LOGO_SCALE, WATERMARK_SCALE, DONE_SCREEN_SECONDS, } from './settings.js';
10
10
  export { type ArticleGroup, type ArticleGroupPayload, fromArticleGroupPayload, type PosArticle, type PosArticlePayload, fromPosArticlePayload, listMyArticleGroups, listMyArticles, QUANTITY_RULES, type QuantityRule, type QuantityDefaults, quantityRuleForUnit, quantityDefaults, allowedQuantity, isBookableArticle, tilePrompts, } from './artikel.js';
11
11
  export { REFERENCE_MODES, type ReferenceMode, type PosReference, REFERENCE_INPUT_MAX, REFERENCE_LABEL_MAX, REFERENCE_HINT_MAX, REFERENCE_PATTERN_MAX, REFERENCE_PATTERN_TEMPLATES, cleanReferenceText, isValidReferencePattern, isDigitsOnlyPattern, type ReferenceCheckResult, checkReference, referenceLineName, fromReferencePayload, } from './kachel-referenz.js';
12
12
  export { ADD_ONS_MAX, ADD_ON_BLOCK_REASONS, type AddOnBlockReason, isSelectableAddOn, addOnsFor, addOnReferencesValid, addOnsOfItem, addOnRemap, addOnDisplayOrder, orderAddOnLines, } from './zusaetze.js';
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PAPER_SIZE = exports.TERMINAL_TYPE = exports.TERMINAL_VIA = exports.PRINTER_TYPE = exports.TILE_HEIGHT = exports.CATEGORY_POSITION = exports.LAYOUT = exports.RECEIPT_OUTPUT = exports.CARD_PROVIDER = exports.CHECKOUT_MODE = exports.CART_WIDTH = exports.TIP_CARD_KEPT_MODE = exports.TIP_KEPT_MODE = exports.TIP_START = exports.TIP_KINDS = exports.TIP_MODE = exports.QUANTITY = exports.WATERMARK = exports.FONT_SIZE = exports.THEME = exports.posShortcutConflict = exports.POS_SHORTCUT_SHARED_PAIRS = exports.posSettingsChanges = exports.unknownPosSettingValues = exports.sanitizePosSettings = exports.mergePosSettings = exports.POS_DEVICE_VALUES = exports.POS_BUSINESS_VALUES = exports.posCartWidth = exports.posTipStart = exports.posTipKinds = exports.POS_BUSINESS_OPTIONAL_LISTS = exports.DISCOUNT_PRESET_KIND = exports.tipKeptFor = exports.posTipSelfPayout = exports.posTipCardKeptMode = exports.posTipCardKeptByDefault = exports.posTipKeptMode = exports.posCustomDiscountAllowed = exports.posTipKeptByDefault = exports.POS_DEVICE_OPTIONAL_CHOICES = exports.POS_BUSINESS_OPTIONAL_CHOICES = exports.POS_BUSINESS_OPTIONAL_FIELDS = exports.posPrinterHint = exports.POS_DEVICE_OPTIONAL_SWITCHES = exports.POS_DEVICE_OPTIONAL_FIELDS = exports.POS_DEVICE_DEFAULTS = exports.POS_BUSINESS_DEFAULTS = exports.POS_SHORTCUT_DEFAULTS = exports.POS_SHORTCUT_ACTIONS = void 0;
4
- exports.posDepositSettingsFromWire = exports.DEPOSIT_ON_PREMISES_DEFAULTS = exports.DEPOSIT_RETURN_MODES = exports.DEPOSIT_TYPES = exports.DEPOSIT_KINDS = exports.orderAddOnLines = exports.addOnDisplayOrder = exports.addOnRemap = exports.addOnsOfItem = exports.addOnReferencesValid = exports.addOnsFor = exports.isSelectableAddOn = exports.ADD_ON_BLOCK_REASONS = exports.ADD_ONS_MAX = exports.fromReferencePayload = exports.referenceLineName = exports.checkReference = exports.isDigitsOnlyPattern = exports.isValidReferencePattern = exports.cleanReferenceText = exports.REFERENCE_PATTERN_TEMPLATES = exports.REFERENCE_PATTERN_MAX = exports.REFERENCE_HINT_MAX = exports.REFERENCE_LABEL_MAX = exports.REFERENCE_INPUT_MAX = exports.REFERENCE_MODES = exports.tilePrompts = exports.isBookableArticle = exports.allowedQuantity = exports.quantityDefaults = exports.quantityRuleForUnit = exports.QUANTITY_RULES = exports.listMyArticles = exports.listMyArticleGroups = exports.fromPosArticlePayload = exports.fromArticleGroupPayload = exports.DONE_SCREEN_SECONDS = exports.WATERMARK_SCALE = exports.LOGO_SCALE = exports.WATERMARK_STRENGTH = exports.WATERMARK_SIDE = exports.DISCOUNT = exports.AUTO_LOGOUT_MINUTES = exports.TILE_STYLE = exports.SETTINGS_FONT_SIZE = exports.LOGO_SIZE = exports.QR_MODE = exports.DRAWER_AUTO_OPEN = exports.CUT = exports.CODE_PAGE = void 0;
5
- exports.INVALID_DISCOUNT_PRESET = exports.discountBlockLines = exports.checkDiscountPresets = exports.discountChipsFromPresets = exports.discountPresetChipText = exports.posDiscountPresets = exports.tipStatus = exports.getMyTipBalance = exports.listMyTipRecipients = exports.printerCatalogSettings = exports.printerCatalogEntry = exports.getPrintJob = exports.createPrintJob = exports.listMyPrinters = exports.isPrintJobFinished = exports.PRINT_JOB_SOURCES = exports.PRINT_JOB_STATUSES = exports.depositReturnOf = exports.voucherPermsOf = exports.stockViewOf = exports.receiptsScopeOf = exports.cancelScopeOf = exports.distributeDiscount = exports.posFieldErrors = exports.isPosError = exports.posErrorCode = exports.isPosErrorCode = exports.POS_ERROR_CODES = exports.posSettingsFromWire = exports.setMyPosLogo = exports.setMyRegisterDeviceSettings = exports.setMyPosSettings = exports.getPosSettings = exports.OWN_VOUCHER_CODE_SHAPES = exports.ownVoucherCodeShape = exports.externalVoucherTileBlock = exports.checkExternalVoucherArticle = exports.checkExternalVoucherValue = exports.isArticleExternalVoucher = exports.EXTERNAL_VOUCHER_ARTICLE_REASONS = exports.ARTICLE_EXTERNAL_VOUCHER_VAT_RATES = exports.ARTICLE_EXTERNAL_VOUCHER_INVALID = exports.ARTICLE_EXTERNAL_VOUCHER_TYPES = exports.depositReturnLine = exports.withDepositLines = exports.viennaDay = exports.depositAmountOn = exports.depositsFor = exports.cashRegisterDepositFromWire = exports.depositEntriesFromWire = void 0;
6
- exports.CASH_LOCATIONS = exports.MANUAL_MOVEMENT_TYPES = exports.MOVEMENT_TYPES = exports.EUR_DENOMINATIONS = exports.durationText = exports.shiftTipLines = exports.newIdempotencyKey = exports.parseCentsAllowZero = exports.sumDenominations = exports.recordMyShiftCount = exports.closeMyShift = exports.getMyShiftReport = exports.logMyDrawerOpenings = exports.recordMyCashMovement = exports.openMyShift = exports.getMyDrawerState = exports.EXTERNAL_VOUCHERS = exports.VOUCHER_TYPE_VALIDITY_PATTERNS = exports.VOUCHER_AMOUNT_MODES = exports.VOUCHER_TYPE_KINDS = exports.VOUCHER_PAYOUTS = exports.posVoucherSettingsFromWire = exports.VOUCHER_SETTINGS_DEFAULTS = exports.reprintVoucherLabel = exports.checkVoucher = exports.VOUCHER_STATUSES = exports.VOUCHER_KINDS = exports.parseQuantityMilli = exports.voidMyStocktakeCount = exports.recordMyStocktakeCount = exports.listMyStocktakeCounts = exports.listMyStocktakeItems = exports.listMyStocktakes = exports.setMyCashregisterStockLocation = exports.listMyStock = exports.listMyStockLocations = exports.STOCK_LOCATION_TYPES = exports.matchReturnCode = exports.listReturnCodes = exports.learnReturnCode = exports.reportConnectState = exports.inspectionInfoLines = exports.inspectionInfoRows = exports.getRegisterInspectionInfo = exports.depFolderName = exports.DISCOUNT_PRESET_MESSAGES = exports.DISCOUNT_PRESET_AMOUNT_CENTS = exports.DISCOUNT_PRESET_PERCENT_BP = exports.DISCOUNT_PRESET_NAME_MAX = exports.DISCOUNT_PRESETS_MAX = void 0;
7
- exports.roundUpSuggestions = exports.receiptOutputLabel = exports.RETURN_DISPOSITION_LABELS = exports.labelText = exports.LABELS = exports.TIP_CLAIM_SCOPE_LABELS = exports.TIP_KEPT_MODE_LABELS = exports.EXTERNAL_VOUCHER_KIND_LABELS = exports.EXTERNAL_VOUCHERS_LABELS = exports.externalVoucherArticleErrorMessage = exports.EXTERNAL_VOUCHER_ARTICLE_MESSAGES = exports.EXTERNAL_VOUCHER_TILE_MESSAGES = exports.depositErrorMessage = exports.DEPOSIT_ERROR_MESSAGES = exports.voucherErrorMessage = exports.VOUCHER_ERROR_MESSAGES = exports.cancellationErrorMessage = exports.CANCELLATION_VOUCHER_ERROR_MESSAGES = exports.cancellationPaymentErrorMessage = exports.CANCELLATION_PAYMENT_ERROR_MESSAGES = exports.receiptEmailErrorMessage = exports.RECEIPT_EMAIL_ERROR_MESSAGES = exports.messageAppliesTo = exports.messageText = exports.messageOutcome = exports.findErrorRule = exports.CALLS_WITH_EFFECT = exports.ERROR_OUTCOME_RULES = exports.ERROR_CODE_RULES = exports.ERROR_RULES = exports.MESSAGES = exports.isReturnDisposition = exports.RETURN_DISPOSITIONS = exports.RECEIPT_OUTPUT_RESULTS = exports.RECEIPT_OUTPUT_KINDS = exports.cashMovementLayout = exports.shiftReceiptLayout = exports.TIP_CLAIM_SCOPES = exports.DIFFERENCE_PART_TYPES = exports.EXPECTED_PART_KEYS = exports.AFTER_COUNT_TYPES = exports.SHIFT_RECEIPT_KINDS = exports.MANUAL_OPENING_REASONS = exports.OPENING_REASONS = void 0;
3
+ exports.TERMINAL_VIA = exports.PRINTER_TYPE = exports.TILE_HEIGHT = exports.CATEGORY_POSITION = exports.LAYOUT = exports.RECEIPT_OUTPUT = exports.CARD_PROVIDER = exports.CHECKOUT_MODE = exports.CART_WIDTH = exports.TIP_CARD_KEPT_MODE = exports.TIP_KEPT_MODE = exports.TIP_START = exports.TIP_KINDS = exports.TIP_MODE = exports.QUANTITY = exports.WATERMARK = exports.FONT_SIZE = exports.THEME = exports.posShortcutConflict = exports.POS_SHORTCUT_SHARED_PAIRS = exports.posSettingsChanges = exports.unknownPosSettingValues = exports.sanitizePosSettings = exports.mergePosSettings = exports.POS_DEVICE_VALUES = exports.POS_BUSINESS_VALUES = exports.posCartWidth = exports.posTipStart = exports.posTipKinds = exports.POS_BUSINESS_OPTIONAL_LISTS = exports.DISCOUNT_PRESET_KIND = exports.tipKeptFor = exports.posTipSelfPayout = exports.posTipCardKeptMode = exports.posTipCardKeptByDefault = exports.posTipKeptMode = exports.posCustomDiscountAllowed = exports.posTipKeptByDefault = exports.POS_DEVICE_OPTIONAL_CHOICES = exports.POS_BUSINESS_OPTIONAL_CHOICES = exports.posCardTerminalFromWire = exports.POS_BUSINESS_OPTIONAL_IDS = exports.POS_BUSINESS_OPTIONAL_FIELDS = exports.posPrinterHint = exports.POS_DEVICE_OPTIONAL_SWITCHES = exports.POS_DEVICE_OPTIONAL_FIELDS = exports.POS_DEVICE_DEFAULTS = exports.POS_BUSINESS_DEFAULTS = exports.POS_SHORTCUT_DEFAULTS = exports.POS_SHORTCUT_ACTIONS = void 0;
4
+ exports.DEPOSIT_RETURN_MODES = exports.DEPOSIT_TYPES = exports.DEPOSIT_KINDS = exports.orderAddOnLines = exports.addOnDisplayOrder = exports.addOnRemap = exports.addOnsOfItem = exports.addOnReferencesValid = exports.addOnsFor = exports.isSelectableAddOn = exports.ADD_ON_BLOCK_REASONS = exports.ADD_ONS_MAX = exports.fromReferencePayload = exports.referenceLineName = exports.checkReference = exports.isDigitsOnlyPattern = exports.isValidReferencePattern = exports.cleanReferenceText = exports.REFERENCE_PATTERN_TEMPLATES = exports.REFERENCE_PATTERN_MAX = exports.REFERENCE_HINT_MAX = exports.REFERENCE_LABEL_MAX = exports.REFERENCE_INPUT_MAX = exports.REFERENCE_MODES = exports.tilePrompts = exports.isBookableArticle = exports.allowedQuantity = exports.quantityDefaults = exports.quantityRuleForUnit = exports.QUANTITY_RULES = exports.listMyArticles = exports.listMyArticleGroups = exports.fromPosArticlePayload = exports.fromArticleGroupPayload = exports.DONE_SCREEN_SECONDS = exports.WATERMARK_SCALE = exports.LOGO_SCALE = exports.WATERMARK_STRENGTH = exports.WATERMARK_SIDE = exports.DISCOUNT = exports.AUTO_LOGOUT_MINUTES = exports.TILE_STYLE = exports.SETTINGS_FONT_SIZE = exports.LOGO_SIZE = exports.QR_MODE = exports.DRAWER_AUTO_OPEN = exports.CUT = exports.CODE_PAGE = exports.PAPER_SIZE = exports.TERMINAL_TYPE = void 0;
5
+ exports.checkDiscountPresets = exports.discountChipsFromPresets = exports.discountPresetChipText = exports.posDiscountPresets = exports.tipStatus = exports.getMyTipBalance = exports.listMyTipRecipients = exports.printerCatalogSettings = exports.printerCatalogEntry = exports.getPrintJob = exports.createPrintJob = exports.listMyPrinters = exports.isPrintJobFinished = exports.PRINT_JOB_SOURCES = exports.PRINT_JOB_STATUSES = exports.depositReturnOf = exports.voucherPermsOf = exports.stockViewOf = exports.receiptsScopeOf = exports.cancelScopeOf = exports.distributeDiscount = exports.posFieldErrors = exports.isPosError = exports.posErrorCode = exports.isPosErrorCode = exports.POS_ERROR_CODES = exports.posSettingsFromWire = exports.setMyPosLogo = exports.setMyRegisterDeviceSettings = exports.setMyPosSettings = exports.getPosSettings = exports.OWN_VOUCHER_CODE_SHAPES = exports.ownVoucherCodeShape = exports.externalVoucherTileBlock = exports.checkExternalVoucherArticle = exports.checkExternalVoucherValue = exports.isArticleExternalVoucher = exports.EXTERNAL_VOUCHER_ARTICLE_REASONS = exports.ARTICLE_EXTERNAL_VOUCHER_VAT_RATES = exports.ARTICLE_EXTERNAL_VOUCHER_INVALID = exports.ARTICLE_EXTERNAL_VOUCHER_TYPES = exports.depositReturnLine = exports.withDepositLines = exports.viennaDay = exports.depositAmountOn = exports.depositsFor = exports.cashRegisterDepositFromWire = exports.depositEntriesFromWire = exports.posDepositSettingsFromWire = exports.DEPOSIT_ON_PREMISES_DEFAULTS = void 0;
6
+ exports.MOVEMENT_TYPES = exports.EUR_DENOMINATIONS = exports.durationText = exports.shiftTipLines = exports.newIdempotencyKey = exports.parseCentsAllowZero = exports.sumDenominations = exports.recordMyShiftCount = exports.closeMyShift = exports.getMyShiftReport = exports.logMyDrawerOpenings = exports.recordMyCashMovement = exports.openMyShift = exports.getMyDrawerState = exports.EXTERNAL_VOUCHERS = exports.VOUCHER_TYPE_VALIDITY_PATTERNS = exports.VOUCHER_AMOUNT_MODES = exports.VOUCHER_TYPE_KINDS = exports.VOUCHER_PAYOUTS = exports.posVoucherSettingsFromWire = exports.VOUCHER_SETTINGS_DEFAULTS = exports.reprintVoucherLabel = exports.checkVoucher = exports.VOUCHER_STATUSES = exports.VOUCHER_KINDS = exports.parseQuantityMilli = exports.voidMyStocktakeCount = exports.recordMyStocktakeCount = exports.listMyStocktakeCounts = exports.listMyStocktakeItems = exports.listMyStocktakes = exports.setMyCashregisterStockLocation = exports.listMyStock = exports.listMyStockLocations = exports.STOCK_LOCATION_TYPES = exports.matchReturnCode = exports.listReturnCodes = exports.learnReturnCode = exports.reportConnectState = exports.inspectionInfoLines = exports.inspectionInfoRows = exports.getRegisterInspectionInfo = exports.depFolderName = exports.DISCOUNT_PRESET_MESSAGES = exports.DISCOUNT_PRESET_AMOUNT_CENTS = exports.DISCOUNT_PRESET_PERCENT_BP = exports.DISCOUNT_PRESET_NAME_MAX = exports.DISCOUNT_PRESETS_MAX = exports.INVALID_DISCOUNT_PRESET = exports.discountBlockLines = void 0;
7
+ exports.roundUpSuggestions = exports.receiptOutputLabel = exports.RETURN_DISPOSITION_LABELS = exports.labelText = exports.LABELS = exports.TIP_CLAIM_SCOPE_LABELS = exports.TIP_KEPT_MODE_LABELS = exports.EXTERNAL_VOUCHER_KIND_LABELS = exports.EXTERNAL_VOUCHERS_LABELS = exports.externalVoucherArticleErrorMessage = exports.EXTERNAL_VOUCHER_ARTICLE_MESSAGES = exports.EXTERNAL_VOUCHER_TILE_MESSAGES = exports.depositErrorMessage = exports.DEPOSIT_ERROR_MESSAGES = exports.voucherErrorMessage = exports.VOUCHER_ERROR_MESSAGES = exports.cancellationErrorMessage = exports.CANCELLATION_VOUCHER_ERROR_MESSAGES = exports.cancellationPaymentErrorMessage = exports.CANCELLATION_PAYMENT_ERROR_MESSAGES = exports.receiptEmailErrorMessage = exports.RECEIPT_EMAIL_ERROR_MESSAGES = exports.messageAppliesTo = exports.messageText = exports.messageOutcome = exports.findErrorRule = exports.CALLS_WITH_EFFECT = exports.ERROR_OUTCOME_RULES = exports.ERROR_CODE_RULES = exports.ERROR_RULES = exports.MESSAGES = exports.isReturnDisposition = exports.RETURN_DISPOSITIONS = exports.RECEIPT_OUTPUT_RESULTS = exports.RECEIPT_OUTPUT_KINDS = exports.cashMovementLayout = exports.shiftReceiptLayout = exports.TIP_CLAIM_SCOPES = exports.DIFFERENCE_PART_TYPES = exports.EXPECTED_PART_KEYS = exports.AFTER_COUNT_TYPES = exports.SHIFT_RECEIPT_KINDS = exports.MANUAL_OPENING_REASONS = exports.OPENING_REASONS = exports.CASH_LOCATIONS = exports.MANUAL_MOVEMENT_TYPES = void 0;
8
8
  /**
9
9
  * Kachel-Kasse: Einstellungen, Artikelgruppen/Artikel fuer Kacheln,
10
10
  * Rabattverteilung, Drucker, Trinkgeld-Empfaenger, Lager (Standorte, Bestand,
@@ -22,6 +22,8 @@ Object.defineProperty(exports, "POS_DEVICE_OPTIONAL_FIELDS", { enumerable: true,
22
22
  Object.defineProperty(exports, "POS_DEVICE_OPTIONAL_SWITCHES", { enumerable: true, get: function () { return settings_js_1.POS_DEVICE_OPTIONAL_SWITCHES; } });
23
23
  Object.defineProperty(exports, "posPrinterHint", { enumerable: true, get: function () { return settings_js_1.posPrinterHint; } });
24
24
  Object.defineProperty(exports, "POS_BUSINESS_OPTIONAL_FIELDS", { enumerable: true, get: function () { return settings_js_1.POS_BUSINESS_OPTIONAL_FIELDS; } });
25
+ Object.defineProperty(exports, "POS_BUSINESS_OPTIONAL_IDS", { enumerable: true, get: function () { return settings_js_1.POS_BUSINESS_OPTIONAL_IDS; } });
26
+ Object.defineProperty(exports, "posCardTerminalFromWire", { enumerable: true, get: function () { return settings_js_1.posCardTerminalFromWire; } });
25
27
  Object.defineProperty(exports, "POS_BUSINESS_OPTIONAL_CHOICES", { enumerable: true, get: function () { return settings_js_1.POS_BUSINESS_OPTIONAL_CHOICES; } });
26
28
  Object.defineProperty(exports, "POS_DEVICE_OPTIONAL_CHOICES", { enumerable: true, get: function () { return settings_js_1.POS_DEVICE_OPTIONAL_CHOICES; } });
27
29
  Object.defineProperty(exports, "posTipKeptByDefault", { enumerable: true, get: function () { return settings_js_1.posTipKeptByDefault; } });
@@ -62,8 +62,11 @@ export declare const CART_WIDTH: readonly ["narrow", "medium", "wide"];
62
62
  export type PosCartWidth = typeof CART_WIDTH[number];
63
63
  export declare const CHECKOUT_MODE: readonly ["page", "panel"];
64
64
  export type PosCheckoutMode = typeof CHECKOUT_MODE[number];
65
- /** Kartenanbieter: Karte gibt es erst mit eingerichtetem Anbieter; 'external' = eigenes Terminal ohne Anbindung. */
66
- export declare const CARD_PROVIDER: readonly ["none", "external", "gptom", "hobex", "mypos", "stripe"];
65
+ /**
66
+ * Kartenanbieter: Karte gibt es erst mit eingerichtetem Anbieter; 'external' = eigenes Terminal ohne Anbindung.
67
+ * 'sumup' bindet nur die Kassen-App auf Android an (SumUp-SDK); Browser-Kasse und iOS kassieren damit wie 'external'.
68
+ */
69
+ export declare const CARD_PROVIDER: readonly ["none", "external", "gptom", "hobex", "mypos", "stripe", "sumup"];
67
70
  export type PosCardProvider = typeof CARD_PROVIDER[number];
68
71
  export declare const RECEIPT_OUTPUT: readonly ["qr", "print", "email", "sms", "ask"];
69
72
  export type PosReceiptOutput = typeof RECEIPT_OUTPUT[number];
@@ -258,6 +261,12 @@ export interface PosBusinessSettings {
258
261
  * `false` = eigenes Trinkgeld nur mit dem Recht `shift` auszahlbar (R49). Lesen ueber [posTipSelfPayout].
259
262
  */
260
263
  tipSelfPayout?: boolean;
264
+ /**
265
+ * SumUp-Haendlernummer, an die der Betrieb gebunden ist (Spec 2026-11-14-sumup-kasse). Optional: fehlt, solange keine
266
+ * gebunden ist. Schreiben nimmt die Nummer oder `null` (Bindung loesen); eine andere Nummer bei bestehender Bindung
267
+ * weist der Server mit `sumup_merchant_already_bound` ab. Siehe [POS_BUSINESS_OPTIONAL_IDS].
268
+ */
269
+ sumupMerchantCode?: string;
261
270
  /**
262
271
  * Benannte Rabatt-Chips (Prozent oder Betrag, hoechstens 5). Optional: der Server sendet das Feld nur, wenn es
263
272
  * gespeichert ist; dann sind die Vorlagen die Quelle der Chips und `discountChips` spiegelt ihre Prozentwerte fuer
@@ -362,7 +371,20 @@ export interface PosSettings {
362
371
  vouchers: PosVoucherSettings;
363
372
  /** Pfand & Leergut (Block `deposit`); fehlt, solange der Betrieb kein Pfand eingeschaltet hat. */
364
373
  deposit?: DepositSettings;
374
+ /** Kartenterminal-Zugang (Block `cardTerminal`); fehlt, solange an diesem Geraet kein angebundenes Terminal gilt. */
375
+ cardTerminal?: PosCardTerminal;
365
376
  }
377
+ /**
378
+ * Zugang zu einem angebundenen Kartenterminal (Spec 2026-11-14-sumup-kasse). Der Server liefert den SumUp-Affiliate-Key
379
+ * nur an ein Geraet, an dem der Kartenanbieter `sumup` gilt.
380
+ */
381
+ export interface PosCardTerminal {
382
+ sumup?: {
383
+ affiliateKey: string;
384
+ };
385
+ }
386
+ /** `cardTerminal` aus einer Antwort lesen; unbrauchbar oder ohne Inhalt → `null`. */
387
+ export declare function posCardTerminalFromWire(value: unknown): PosCardTerminal | null;
366
388
  export declare const POS_BUSINESS_DEFAULTS: Readonly<PosBusinessSettings>;
367
389
  export declare const POS_DEVICE_DEFAULTS: Readonly<PosDeviceSettings>;
368
390
  /**
@@ -388,6 +410,14 @@ export declare const POS_DEVICE_OPTIONAL_SWITCHES: readonly ["printerHint"];
388
410
  * nimmt nur `true`/`false`.
389
411
  */
390
412
  export declare const POS_BUSINESS_OPTIONAL_FIELDS: readonly ["tipKeptByDefault", "customDiscountAllowed", "tipCardKeptByDefault", "tipSelfPayout"];
413
+ /**
414
+ * Optionale Betriebs-Kennungen (Backend `BETRIEB_OPTIONAL`, z. B. `sumupHaendler`): ohne Standardwert, der Server sendet
415
+ * sie nur, wenn sie gesetzt sind. [mergePosSettings] uebernimmt eine gueltige Nummer; der Schreibweg nimmt sie oder
416
+ * `null` (loesen).
417
+ */
418
+ export declare const POS_BUSINESS_OPTIONAL_IDS: readonly ["sumupMerchantCode"];
419
+ /** Gilt dieser Wert fuer eine optionale Betriebs-Kennung? Lesen: nur eine Nummer; Schreiben: auch `null`. */
420
+ export declare function _optionaleBetriebsKennung(wert: unknown, schreiben: boolean): boolean;
391
421
  /**
392
422
  * Optionale Betriebs-Einstellungen mit Wertemenge (Backend `BETRIEB_OPTIONAL`, Katalog
393
423
  * `KASSE_BETRIEB_WERTE.tipKinds[]`, `.tipStart` und `.tipKeptMode`): ohne Standardwert, der Server sendet sie nur,
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._ALTFORM_0X = exports.POS_DEVICE_VALUES = exports.POS_BUSINESS_VALUES = exports.POS_DEVICE_OPTIONAL_CHOICES = exports.POS_BUSINESS_OPTIONAL_LISTS = exports.POS_BUSINESS_OPTIONAL_CHOICES = exports.POS_BUSINESS_OPTIONAL_FIELDS = exports.POS_DEVICE_OPTIONAL_SWITCHES = exports.POS_DEVICE_OPTIONAL_FIELDS = exports.POS_DEVICE_DEFAULTS = exports.POS_BUSINESS_DEFAULTS = exports.POS_SHORTCUT_SHARED_PAIRS = exports.POS_SHORTCUT_DEFAULTS = exports.POS_SHORTCUT_ACTIONS = exports.DONE_SCREEN_SECONDS = exports.WATERMARK_SCALE = exports.LOGO_SCALE = exports.WATERMARK_STRENGTH = exports.WATERMARK_SIDE = exports.DISCOUNT = exports.AUTO_LOGOUT_MINUTES = exports.TILE_STYLE = exports.SETTINGS_FONT_SIZE = exports.LOGO_SIZE = exports.QR_MODE = exports.DRAWER_AUTO_OPEN = exports.CUT = exports.CODE_PAGE = exports.PAPER_SIZE = exports.TERMINAL_TYPE = exports.TERMINAL_VIA = exports.PRINTER_TYPE = exports.TILE_HEIGHT = exports.CATEGORY_POSITION = exports.LAYOUT = exports.RECEIPT_OUTPUT = exports.CARD_PROVIDER = exports.CHECKOUT_MODE = exports.CART_WIDTH = exports.DISCOUNT_PRESET_KIND = exports.TIP_CARD_KEPT_MODE = exports.TIP_KEPT_MODE = exports.TIP_START = exports.TIP_KINDS = exports.TIP_MODE = exports.QUANTITY = exports.WATERMARK = exports.FONT_SIZE = exports.THEME = void 0;
3
+ exports._ALTFORM_0X = exports.POS_DEVICE_VALUES = exports.POS_BUSINESS_VALUES = exports.POS_DEVICE_OPTIONAL_CHOICES = exports.POS_BUSINESS_OPTIONAL_LISTS = exports.POS_BUSINESS_OPTIONAL_CHOICES = exports.POS_BUSINESS_OPTIONAL_IDS = exports.POS_BUSINESS_OPTIONAL_FIELDS = exports.POS_DEVICE_OPTIONAL_SWITCHES = exports.POS_DEVICE_OPTIONAL_FIELDS = exports.POS_DEVICE_DEFAULTS = exports.POS_BUSINESS_DEFAULTS = exports.POS_SHORTCUT_SHARED_PAIRS = exports.POS_SHORTCUT_DEFAULTS = exports.POS_SHORTCUT_ACTIONS = exports.DONE_SCREEN_SECONDS = exports.WATERMARK_SCALE = exports.LOGO_SCALE = exports.WATERMARK_STRENGTH = exports.WATERMARK_SIDE = exports.DISCOUNT = exports.AUTO_LOGOUT_MINUTES = exports.TILE_STYLE = exports.SETTINGS_FONT_SIZE = exports.LOGO_SIZE = exports.QR_MODE = exports.DRAWER_AUTO_OPEN = exports.CUT = exports.CODE_PAGE = exports.PAPER_SIZE = exports.TERMINAL_TYPE = exports.TERMINAL_VIA = exports.PRINTER_TYPE = exports.TILE_HEIGHT = exports.CATEGORY_POSITION = exports.LAYOUT = exports.RECEIPT_OUTPUT = exports.CARD_PROVIDER = exports.CHECKOUT_MODE = exports.CART_WIDTH = exports.DISCOUNT_PRESET_KIND = exports.TIP_CARD_KEPT_MODE = exports.TIP_KEPT_MODE = exports.TIP_START = exports.TIP_KINDS = exports.TIP_MODE = exports.QUANTITY = exports.WATERMARK = exports.FONT_SIZE = exports.THEME = void 0;
4
4
  exports.posShortcutConflict = posShortcutConflict;
5
+ exports.posCardTerminalFromWire = posCardTerminalFromWire;
5
6
  exports._optionalerWert = _optionalerWert;
7
+ exports._optionaleBetriebsKennung = _optionaleBetriebsKennung;
6
8
  exports._vorlagenLesen = _vorlagenLesen;
7
9
  exports._optionalerWahlwert = _optionalerWahlwert;
8
10
  exports.posTipKinds = posTipKinds;
@@ -72,8 +74,11 @@ exports.DISCOUNT_PRESET_KIND = ['percent', 'amount'];
72
74
  /** Breite der rechten Spalte (Korb) an diesem Geraet (`device.cartWidth`); in der schmalen Ansicht ohne Wirkung. */
73
75
  exports.CART_WIDTH = ['narrow', 'medium', 'wide'];
74
76
  exports.CHECKOUT_MODE = ['page', 'panel'];
75
- /** Kartenanbieter: Karte gibt es erst mit eingerichtetem Anbieter; 'external' = eigenes Terminal ohne Anbindung. */
76
- exports.CARD_PROVIDER = ['none', 'external', 'gptom', 'hobex', 'mypos', 'stripe'];
77
+ /**
78
+ * Kartenanbieter: Karte gibt es erst mit eingerichtetem Anbieter; 'external' = eigenes Terminal ohne Anbindung.
79
+ * 'sumup' bindet nur die Kassen-App auf Android an (SumUp-SDK); Browser-Kasse und iOS kassieren damit wie 'external'.
80
+ */
81
+ exports.CARD_PROVIDER = ['none', 'external', 'gptom', 'hobex', 'mypos', 'stripe', 'sumup'];
77
82
  exports.RECEIPT_OUTPUT = ['qr', 'print', 'email', 'sms', 'ask'];
78
83
  exports.LAYOUT = ['right', 'left', 'fullscreen'];
79
84
  exports.CATEGORY_POSITION = ['top', 'left'];
@@ -198,6 +203,13 @@ function posShortcutConflict(shortcuts) {
198
203
  }
199
204
  return null;
200
205
  }
206
+ /** `cardTerminal` aus einer Antwort lesen; unbrauchbar oder ohne Inhalt → `null`. */
207
+ function posCardTerminalFromWire(value) {
208
+ const block = value !== null && typeof value === 'object' && !Array.isArray(value) ? value : null;
209
+ const sumup = block && block.sumup !== null && typeof block.sumup === 'object' ? block.sumup : null;
210
+ const key = sumup && typeof sumup.affiliateKey === 'string' ? sumup.affiliateKey : '';
211
+ return key ? { sumup: { affiliateKey: key } } : null;
212
+ }
201
213
  exports.POS_BUSINESS_DEFAULTS = Object.freeze({
202
214
  // Das Petrol der Marke: die Aktionsfarbe des Design-Systems (Rolle `brand`).
203
215
  logoText: 'K', logoEnabled: true, logoSize: 'M', watermark: 'login', color: '#136B6B',
@@ -255,6 +267,19 @@ const OPTIONALE_GERAETE_SCHALTER = new Set(exports.POS_DEVICE_OPTIONAL_SWITCHES)
255
267
  */
256
268
  exports.POS_BUSINESS_OPTIONAL_FIELDS = Object.freeze(['tipKeptByDefault', 'customDiscountAllowed', 'tipCardKeptByDefault', 'tipSelfPayout']);
257
269
  const OPTIONALE_SCHALTER = new Set(exports.POS_BUSINESS_OPTIONAL_FIELDS);
270
+ /**
271
+ * Optionale Betriebs-Kennungen (Backend `BETRIEB_OPTIONAL`, z. B. `sumupHaendler`): ohne Standardwert, der Server sendet
272
+ * sie nur, wenn sie gesetzt sind. [mergePosSettings] uebernimmt eine gueltige Nummer; der Schreibweg nimmt sie oder
273
+ * `null` (loesen).
274
+ */
275
+ exports.POS_BUSINESS_OPTIONAL_IDS = Object.freeze(['sumupMerchantCode']);
276
+ /** Form der SumUp-Haendlernummer (Backend `sumup-kasse-core.HAENDLER_MUSTER`, dort gross geschrieben). */
277
+ const SUMUP_HAENDLER = /^[A-Za-z0-9]{4,20}$/;
278
+ /** Gilt dieser Wert fuer eine optionale Betriebs-Kennung? Lesen: nur eine Nummer; Schreiben: auch `null`. */
279
+ function _optionaleBetriebsKennung(wert, schreiben) {
280
+ return (schreiben && wert === null) || (typeof wert === 'string' && SUMUP_HAENDLER.test(wert));
281
+ }
282
+ const OPTIONALE_BETRIEBS_KENNUNGEN = new Set(exports.POS_BUSINESS_OPTIONAL_IDS);
258
283
  /**
259
284
  * Optionale Betriebs-Einstellungen mit Wertemenge (Backend `BETRIEB_OPTIONAL`, Katalog
260
285
  * `KASSE_BETRIEB_WERTE.tipKinds[]`, `.tipStart` und `.tipKeptMode`): ohne Standardwert, der Server sendet sie nur,
@@ -453,6 +478,8 @@ function mergePosSettings(standard, stored) {
453
478
  out[key] = wert;
454
479
  if (OPTIONALE_SCHALTER.has(key) && typeof wert === 'boolean')
455
480
  out[key] = wert;
481
+ if (OPTIONALE_BETRIEBS_KENNUNGEN.has(key) && _optionaleBetriebsKennung(wert, false))
482
+ out[key] = wert;
456
483
  if (OPTIONALE_GERAETE_SCHALTER.has(key) && typeof wert === 'boolean')
457
484
  out[key] = wert;
458
485
  if (OPTIONALE_WAHL.has(key) && _optionalerWahlwert(key, wert))
@@ -510,8 +537,14 @@ function sanitizePosSettings(stored) {
510
537
  device: mergePosSettings(exports.POS_DEVICE_DEFAULTS, teil('device')),
511
538
  vouchers: (0, gutschein_js_1.posVoucherSettingsFromWire)(eigen(roh, 'vouchers') ? roh['vouchers'] : undefined),
512
539
  ...pfandBlock(eigen(roh, 'deposit') ? roh['deposit'] : undefined),
540
+ ...kartenterminalBlock(eigen(roh, 'cardTerminal') ? roh['cardTerminal'] : undefined),
513
541
  };
514
542
  }
543
+ /** `{ cardTerminal }`, wenn der Block lesbar ist, sonst nichts. */
544
+ function kartenterminalBlock(wert) {
545
+ const cardTerminal = posCardTerminalFromWire(wert);
546
+ return cardTerminal ? { cardTerminal } : {};
547
+ }
515
548
  /**
516
549
  * Die Felder, deren Wert dieses Paket nicht kennt (neuer Wert des Servers),
517
550
  * als Pfade (`business.theme`, `device.printerType`). Die Oberflaeche kann sie
@@ -335,6 +335,109 @@ declare const MELDUNGEN_ROH: {
335
335
  readonly placeholders: readonly ["reference"];
336
336
  readonly only: readonly ["app"];
337
337
  };
338
+ readonly 'sumup.key_missing': {
339
+ readonly text: "SumUp ist für diese Kasse noch nicht eingerichtet – bitte Kasseneck kontaktieren.";
340
+ readonly only: readonly ["app"];
341
+ };
342
+ readonly 'sumup.not_logged_in': {
343
+ readonly text: "Nicht bei SumUp angemeldet. Bitte in den Einstellungen unter Kartenterminal anmelden.";
344
+ readonly only: readonly ["app"];
345
+ };
346
+ readonly 'sumup.other_account': {
347
+ readonly text: "Hier ist ein anderes SumUp-Konto angemeldet ({current}) als das der Kasse ({bound}). Bitte abmelden und mit dem richtigen Konto anmelden.";
348
+ readonly placeholders: readonly ["current", "bound"];
349
+ readonly only: readonly ["app"];
350
+ };
351
+ readonly 'sumup.bind_question': {
352
+ readonly text: "Diese Kasse mit dem SumUp-Konto {merchant} verbinden? Danach kassieren alle Geräte nur noch auf dieses Konto.";
353
+ readonly placeholders: readonly ["merchant"];
354
+ readonly only: readonly ["app"];
355
+ };
356
+ readonly 'sumup.unbind_question': {
357
+ readonly text: "Die Verbindung zum SumUp-Konto lösen? Danach kann sich ein anderes Konto verbinden.";
358
+ readonly only: readonly ["app"];
359
+ };
360
+ readonly 'sumup.wrong_currency': {
361
+ readonly text: "Das SumUp-Konto rechnet in {currency}, die Kasse in Euro. Bitte ein Konto in Euro verwenden.";
362
+ readonly placeholders: readonly ["currency"];
363
+ readonly only: readonly ["app"];
364
+ };
365
+ readonly 'sumup.login_failed': {
366
+ readonly text: "Die Anmeldung bei SumUp hat nicht geklappt. Bitte erneut versuchen.";
367
+ readonly only: readonly ["app"];
368
+ };
369
+ readonly 'sumup.declined': {
370
+ readonly text: "SumUp hat die Zahlung nicht durchgeführt, es wurde nichts abgebucht.";
371
+ readonly only: readonly ["app"];
372
+ };
373
+ readonly 'sumup.not_bound': {
374
+ readonly text: "Die Kasse ist noch mit keinem SumUp-Konto verbunden. Bitte in den Einstellungen unter Kartenterminal verbinden.";
375
+ readonly only: readonly ["app"];
376
+ };
377
+ readonly 'sumup.amount_mismatch': {
378
+ readonly text: "SumUp meldet einen anderen Betrag als die Kasse. Bitte in der SumUp-App nachsehen, BEVOR neu kassiert wird.";
379
+ readonly only: readonly ["app"];
380
+ };
381
+ readonly 'sumup.below_minimum': {
382
+ readonly text: "Mit SumUp geht Karte erst ab 1,00 €.";
383
+ readonly only: readonly ["app"];
384
+ };
385
+ readonly 'sumup.check_in_app': {
386
+ readonly text: "In der SumUp-App unter Transaktionen nachsehen: {amount}, {time}.";
387
+ readonly placeholders: readonly ["amount", "time"];
388
+ readonly only: readonly ["app"];
389
+ };
390
+ readonly 'sumup.code_optional_label': {
391
+ readonly text: "SumUp-Transaktionscode (aus der SumUp-App, freiwillig)";
392
+ readonly only: readonly ["app"];
393
+ };
394
+ readonly 'sumup.refund_hint': {
395
+ readonly text: "Die Kartenzahlung bitte in der SumUp-App zurückbuchen (Transaktion {code}, Karte endet auf {digits}).";
396
+ readonly placeholders: readonly ["code", "digits"];
397
+ readonly only: readonly ["app"];
398
+ };
399
+ readonly 'sumup.ios_external': {
400
+ readonly text: "SumUp ist auf diesem Gerät nicht angebunden: den Betrag am SumUp-Gerät eintippen, die Kasse bucht Karte.";
401
+ readonly only: readonly ["app"];
402
+ };
403
+ readonly 'sumup.status_logged_in': {
404
+ readonly text: "Bei SumUp angemeldet als {merchant}.";
405
+ readonly placeholders: readonly ["merchant"];
406
+ readonly only: readonly ["app"];
407
+ };
408
+ readonly 'sumup.status_logged_out': {
409
+ readonly text: "Nicht bei SumUp angemeldet.";
410
+ readonly only: readonly ["app"];
411
+ };
412
+ readonly 'sumup.location_question': {
413
+ readonly text: "SumUp verlangt für Kartenzahlungen den Standort dieses Geräts. Gleich fragt Android danach.";
414
+ readonly only: readonly ["app"];
415
+ };
416
+ readonly 'sumup.location_hint': {
417
+ readonly text: "Bitte „Bei Nutzung der App“ wählen.";
418
+ readonly only: readonly ["app"];
419
+ };
420
+ readonly 'sumup.location_denied': {
421
+ readonly text: "Der Standort ist für die Kasse gesperrt. Ohne ihn meldet SumUp nicht an.";
422
+ readonly only: readonly ["app"];
423
+ };
424
+ readonly 'sumup.location_denied_hint': {
425
+ readonly text: "In den Einstellungen der App unter „Berechtigungen“ den Standort erlauben.";
426
+ readonly only: readonly ["app"];
427
+ };
428
+ readonly 'sumup.location_off': {
429
+ readonly text: "Der Standort ist an diesem Gerät ausgeschaltet. SumUp braucht ihn für Kartenzahlungen.";
430
+ readonly only: readonly ["app"];
431
+ };
432
+ readonly 'sumup.reader_ready': {
433
+ readonly text: "Leser {name} ist eingerichtet.";
434
+ readonly placeholders: readonly ["name"];
435
+ readonly only: readonly ["app"];
436
+ };
437
+ readonly 'sumup.location_missing': {
438
+ readonly text: "Ohne Standort keine Anmeldung bei SumUp. Bitte den Standort erlauben und erneut anmelden.";
439
+ readonly only: readonly ["app"];
440
+ };
338
441
  readonly 'log.empty': {
339
442
  readonly text: "Noch keine Einträge – das Protokoll füllt sich mit der ersten Kartenzahlung.";
340
443
  };
@@ -3375,6 +3478,50 @@ declare const BESCHRIFTUNGEN_ROH: {
3375
3478
  readonly text: "Fassung {version} · {time}";
3376
3479
  readonly placeholders: readonly ["version", "time"];
3377
3480
  };
3481
+ readonly 'sumup.location_title': {
3482
+ readonly text: "Standort für SumUp";
3483
+ readonly only: readonly ["app"];
3484
+ };
3485
+ readonly 'sumup.location_allow': {
3486
+ readonly text: "Standort erlauben";
3487
+ readonly only: readonly ["app"];
3488
+ };
3489
+ readonly 'sumup.location_denied_title': {
3490
+ readonly text: "Standort gesperrt";
3491
+ readonly only: readonly ["app"];
3492
+ };
3493
+ readonly 'sumup.open_app_settings': {
3494
+ readonly text: "Einstellungen öffnen";
3495
+ readonly only: readonly ["app"];
3496
+ };
3497
+ readonly 'sumup.location_off_title': {
3498
+ readonly text: "Standort ist aus";
3499
+ readonly only: readonly ["app"];
3500
+ };
3501
+ readonly 'sumup.location_turn_on': {
3502
+ readonly text: "Standort einschalten";
3503
+ readonly only: readonly ["app"];
3504
+ };
3505
+ readonly 'sumup.bind_title': {
3506
+ readonly text: "Mit SumUp verbinden";
3507
+ readonly only: readonly ["app"];
3508
+ };
3509
+ readonly 'sumup.bind': {
3510
+ readonly text: "Verbinden";
3511
+ readonly only: readonly ["app"];
3512
+ };
3513
+ readonly 'sumup.unbind_title': {
3514
+ readonly text: "Verbindung lösen";
3515
+ readonly only: readonly ["app"];
3516
+ };
3517
+ readonly 'sumup.unbind': {
3518
+ readonly text: "Lösen";
3519
+ readonly only: readonly ["app"];
3520
+ };
3521
+ readonly 'sumup.reader_change': {
3522
+ readonly text: "Leser ändern";
3523
+ readonly only: readonly ["app"];
3524
+ };
3378
3525
  readonly 'tip.line_cash_kept': {
3379
3526
  readonly text: "{amount} gleich einstecken";
3380
3527
  readonly placeholders: readonly ["amount"];
@@ -3443,6 +3590,23 @@ declare const BESCHRIFTUNGEN_ROH: {
3443
3590
  readonly 'my_tips.pay_out_amount': {
3444
3591
  readonly text: "Betrag";
3445
3592
  };
3593
+ readonly 'my_tips.open_for_you': {
3594
+ readonly text: "für dich offen";
3595
+ };
3596
+ readonly 'my_tips.open_for_you_here': {
3597
+ readonly text: "für dich offen an dieser Lade";
3598
+ };
3599
+ readonly 'my_tips.open_for_you_total': {
3600
+ readonly text: "für dich offen, alle Laden";
3601
+ };
3602
+ readonly 'my_tips.received_today': {
3603
+ readonly text: "heute schon bekommen: {amount}";
3604
+ readonly placeholders: readonly ["amount"];
3605
+ };
3606
+ readonly 'my_tips.other_drawer_extra': {
3607
+ readonly text: "dazu {amount} an der Lade „{drawer}“";
3608
+ readonly placeholders: readonly ["amount", "drawer"];
3609
+ };
3446
3610
  readonly 'cancellation.tip_deducted': {
3447
3611
  readonly text: "{amount} Trinkgeld werden vom Guthaben von {name} abgezogen";
3448
3612
  readonly placeholders: readonly ["amount", "name"];
@@ -187,6 +187,37 @@ const MELDUNGEN_ROH = {
187
187
  // Antwort blieb aus. Deshalb derselbe Ton wie card_payment.unknown.
188
188
  'gptom.timeout': { text: 'Das Terminal hat in der Frist nicht geantwortet – die Karte kann belastet sein. Bitte am Terminal-Beleg nachsehen, BEVOR neu kassiert wird.', only: ['app'] },
189
189
  'gptom.timeout_with_id': { text: 'Das Terminal hat in der Frist nicht geantwortet – die Karte kann belastet sein. Bitte am Terminal-Beleg nachsehen, BEVOR neu kassiert wird. Kennung der Zahlung: {reference}.', placeholders: ['reference'], only: ['app'] },
190
+ // --- SumUp (Kassen-App, Android; Spec 2026-11-14-sumup-kasse) -------------
191
+ // Angemeldet wird nur in den Einstellungen, nie mitten in einer Zahlung. Die Kasse ist an ein SumUp-Konto gebunden.
192
+ 'sumup.key_missing': { text: 'SumUp ist für diese Kasse noch nicht eingerichtet – bitte Kasseneck kontaktieren.', only: ['app'] },
193
+ 'sumup.not_logged_in': { text: 'Nicht bei SumUp angemeldet. Bitte in den Einstellungen unter Kartenterminal anmelden.', only: ['app'] },
194
+ 'sumup.other_account': { text: 'Hier ist ein anderes SumUp-Konto angemeldet ({current}) als das der Kasse ({bound}). Bitte abmelden und mit dem richtigen Konto anmelden.', placeholders: ['current', 'bound'], only: ['app'] },
195
+ 'sumup.bind_question': { text: 'Diese Kasse mit dem SumUp-Konto {merchant} verbinden? Danach kassieren alle Geräte nur noch auf dieses Konto.', placeholders: ['merchant'], only: ['app'] },
196
+ 'sumup.unbind_question': { text: 'Die Verbindung zum SumUp-Konto lösen? Danach kann sich ein anderes Konto verbinden.', only: ['app'] },
197
+ 'sumup.wrong_currency': { text: 'Das SumUp-Konto rechnet in {currency}, die Kasse in Euro. Bitte ein Konto in Euro verwenden.', placeholders: ['currency'], only: ['app'] },
198
+ 'sumup.login_failed': { text: 'Die Anmeldung bei SumUp hat nicht geklappt. Bitte erneut versuchen.', only: ['app'] },
199
+ // Nicht durchgeführt heißt: SumUp hat entschieden, es ist sicher nichts gebucht. Den Grund zeigt SumUp selbst auf
200
+ // seinem Fehlerschirm; die Kasse gibt keinen rohen (oft englischen) SDK-Text weiter.
201
+ 'sumup.declined': { text: 'SumUp hat die Zahlung nicht durchgeführt, es wurde nichts abgebucht.', only: ['app'] },
202
+ 'sumup.not_bound': { text: 'Die Kasse ist noch mit keinem SumUp-Konto verbunden. Bitte in den Einstellungen unter Kartenterminal verbinden.', only: ['app'] },
203
+ // Weicht der Betrag ab, kann trotzdem gebucht sein: derselbe Ton wie card_payment.unknown.
204
+ 'sumup.amount_mismatch': { text: 'SumUp meldet einen anderen Betrag als die Kasse. Bitte in der SumUp-App nachsehen, BEVOR neu kassiert wird.', only: ['app'] },
205
+ 'sumup.below_minimum': { text: 'Mit SumUp geht Karte erst ab 1,00 €.', only: ['app'] },
206
+ 'sumup.check_in_app': { text: 'In der SumUp-App unter Transaktionen nachsehen: {amount}, {time}.', placeholders: ['amount', 'time'], only: ['app'] },
207
+ 'sumup.code_optional_label': { text: 'SumUp-Transaktionscode (aus der SumUp-App, freiwillig)', only: ['app'] },
208
+ 'sumup.refund_hint': { text: 'Die Kartenzahlung bitte in der SumUp-App zurückbuchen (Transaktion {code}, Karte endet auf {digits}).', placeholders: ['code', 'digits'], only: ['app'] },
209
+ 'sumup.ios_external': { text: 'SumUp ist auf diesem Gerät nicht angebunden: den Betrag am SumUp-Gerät eintippen, die Kasse bucht Karte.', only: ['app'] },
210
+ 'sumup.status_logged_in': { text: 'Bei SumUp angemeldet als {merchant}.', placeholders: ['merchant'], only: ['app'] },
211
+ 'sumup.status_logged_out': { text: 'Nicht bei SumUp angemeldet.', only: ['app'] },
212
+ // Die Blätter vor der SumUp-Anmeldung: Titel und Knöpfe stehen bei den Beschriftungen (sumup.location_title …).
213
+ 'sumup.location_question': { text: 'SumUp verlangt für Kartenzahlungen den Standort dieses Geräts. Gleich fragt Android danach.', only: ['app'] },
214
+ 'sumup.location_hint': { text: 'Bitte „Bei Nutzung der App“ wählen.', only: ['app'] },
215
+ 'sumup.location_denied': { text: 'Der Standort ist für die Kasse gesperrt. Ohne ihn meldet SumUp nicht an.', only: ['app'] },
216
+ 'sumup.location_denied_hint': { text: 'In den Einstellungen der App unter „Berechtigungen“ den Standort erlauben.', only: ['app'] },
217
+ 'sumup.location_off': { text: 'Der Standort ist an diesem Gerät ausgeschaltet. SumUp braucht ihn für Kartenzahlungen.', only: ['app'] },
218
+ // Statuszeile „Kartenleser“, sobald SumUp einen Leser eingerichtet hat ({name}: Name des Lesers, etwa „UL924“).
219
+ 'sumup.reader_ready': { text: 'Leser {name} ist eingerichtet.', placeholders: ['name'], only: ['app'] },
220
+ 'sumup.location_missing': { text: 'Ohne Standort keine Anmeldung bei SumUp. Bitte den Standort erlauben und erneut anmelden.', only: ['app'] },
190
221
  // --- Terminal-Protokoll --------------------------------------------------
191
222
  'log.empty': { text: 'Noch keine Einträge – das Protokoll füllt sich mit der ersten Kartenzahlung.' },
192
223
  'log.copied': { text: 'Das Protokoll liegt in der Zwischenablage.' },
@@ -1632,6 +1663,19 @@ const BESCHRIFTUNGEN_ROH = {
1632
1663
  'version.reload': { text: 'Neu laden', only: ['web'] },
1633
1664
  // --- Fassung der Kasse, leise Zeile in den Einstellungen und auf dem PIN-Schirm (beide Kassen) ---
1634
1665
  'version.line': { text: 'Fassung {version} · {time}', placeholders: ['version', 'time'] },
1666
+ // --- SumUp in der Kassen-App: Titel und Knöpfe der Blätter für Standort und Bindung (1.40.0) ---
1667
+ // Zweiter Knopf: devices.not_now (Standort) bzw. common.cancel (Bindung).
1668
+ 'sumup.location_title': { text: 'Standort für SumUp', only: ['app'] },
1669
+ 'sumup.location_allow': { text: 'Standort erlauben', only: ['app'] },
1670
+ 'sumup.location_denied_title': { text: 'Standort gesperrt', only: ['app'] },
1671
+ 'sumup.open_app_settings': { text: 'Einstellungen öffnen', only: ['app'] },
1672
+ 'sumup.location_off_title': { text: 'Standort ist aus', only: ['app'] },
1673
+ 'sumup.location_turn_on': { text: 'Standort einschalten', only: ['app'] },
1674
+ 'sumup.bind_title': { text: 'Mit SumUp verbinden', only: ['app'] },
1675
+ 'sumup.bind': { text: 'Verbinden', only: ['app'] },
1676
+ 'sumup.unbind_title': { text: 'Verbindung lösen', only: ['app'] },
1677
+ 'sumup.unbind': { text: 'Lösen', only: ['app'] },
1678
+ 'sumup.reader_change': { text: 'Leser ändern', only: ['app'] },
1635
1679
  // --- Kartentrinkgeld an der Kasse (Spec 2026-11-11-kartentrinkgeld, 1.37.0) ---
1636
1680
  // Die eine Zeile beim Kassieren je Zahlart und Ergebnis (tipStatus), mit Betrag; einzeilig.
1637
1681
  'tip.line_cash_kept': { text: '{amount} gleich einstecken', placeholders: ['amount'] },
@@ -1655,6 +1699,16 @@ const BESCHRIFTUNGEN_ROH = {
1655
1699
  'my_tips.overpaid': { text: 'Zu viel ausgezahlt: {amount}, wird verrechnet', placeholders: ['amount'] },
1656
1700
  'my_tips.pay_out': { text: 'Auszahlen' },
1657
1701
  'my_tips.pay_out_amount': { text: 'Betrag' },
1702
+ // „Mein Trinkgeld“ gross (1.41.0, Inhaber 16.11.2026): der offene Betrag gross, darunter wofuer er steht; was heute
1703
+ // schon bekommen wurde nur klein und nur ueber 0 – „Heute genommen 0,00 €“ verwirrte. open_here/open_total/kept_today
1704
+ // oben bleiben fuer aeltere Kassen.
1705
+ 'my_tips.open_for_you': { text: 'für dich offen' },
1706
+ 'my_tips.open_for_you_here': { text: 'für dich offen an dieser Lade' },
1707
+ 'my_tips.open_for_you_total': { text: 'für dich offen, alle Laden' },
1708
+ 'my_tips.received_today': { text: 'heute schon bekommen: {amount}', placeholders: ['amount'] },
1709
+ // Offener Betrag an einer anderen Lade (nur Anspruch je Lade), unter dem grossen Betrag. „Lade“ steht immer dabei:
1710
+ // „Bar: 1,50 € offen“ (my_tips.other_drawer) las sich bei einer Lade namens „Bar“ wie Bargeld.
1711
+ 'my_tips.other_drawer_extra': { text: 'dazu {amount} an der Lade „{drawer}“', placeholders: ['amount', 'drawer'] },
1658
1712
  // Storno-Blatt: eine Zeile je Mitarbeiter-Trinkgeld, in jedem Fall (§ 4.4).
1659
1713
  'cancellation.tip_deducted': { text: '{amount} Trinkgeld werden vom Guthaben von {name} abgezogen', placeholders: ['amount', 'name'] },
1660
1714
  // Z-/X-Bon und Kassenstand: Teil von „genommen“ (shiftTipLines) und Soll-Teil (expectedParts).
@@ -190,11 +190,19 @@ function gpTomBlock(daten) {
190
190
  }
191
191
  return zeilen;
192
192
  }
193
+ /**
194
+ * SumUp liefert `amount` in Euro (SDK-Antwort, so am Beleg gespeichert: 25, 14.09).
195
+ * Auch eine ganze Zahl ist Euro, nie Cent. Zeichenkette mit Punkt wird gelesen,
196
+ * alles andere ergibt einen Strich.
197
+ */
198
+ function sumupBetrag(roh) {
199
+ const zahl = typeof roh === 'number' ? roh
200
+ : (typeof roh === 'string' && /^-?\d+(\.\d+)?$/.test(roh.trim()) ? Number(roh.trim()) : NaN);
201
+ return Number.isFinite(zahl) ? zahl.toFixed(2).replace('.', ',') : '-';
202
+ }
193
203
  function sumupBlock(daten) {
194
204
  const feld = (k) => kartenFeld(daten, k);
195
- const betrag = typeof daten.amount === 'number'
196
- ? (Number.isInteger(daten.amount) ? formatCents(daten.amount) : daten.amount.toFixed(2).replace('.', ','))
197
- : '-';
205
+ const betrag = sumupBetrag(daten.amount);
198
206
  return [
199
207
  textZeile('Sumup Beleg', 'center', true),
200
208
  paarZeile('Kartentyp:', feld('cardType') || 'n/a'),
@@ -1,5 +1,5 @@
1
1
  /** Fingerabdruck des Vertrags-Exports, aus dem diese Datei stammt (`_quelle.sha256`). */
2
- export declare const VOKABULAR_QUELLE = "ab188a33a1f0d07b187347e0293b935e41435fa61dc1078cd164b10cc2be5f46";
2
+ export declare const VOKABULAR_QUELLE = "558614ea07d6a5bab99cac9ad20e8c934947f262f89594c51449b69244059a9a";
3
3
  /** Schema-Notation des Vertrags: Blatt 'aussen': 'innen', Objekt { __: 'innen', ... }, Liste [ { __: 'innen', ... } ]. */
4
4
  export type SchemaEintrag = string | SchemaObjekt | readonly [SchemaObjekt];
5
5
  export interface SchemaObjekt {