@kreiseck/kasseneck-api 1.38.0 → 1.40.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 (87) hide show
  1. package/CHANGELOG.md +29 -2
  2. package/README.md +3 -1
  3. package/dist/cjs/client/aufrufe.d.ts +2 -2
  4. package/dist/cjs/client/aufrufe.js +12 -0
  5. package/dist/cjs/payments/hobex-hps/connect-client.d.ts +17 -0
  6. package/dist/cjs/payments/hobex-hps/connect-client.js +17 -0
  7. package/dist/cjs/payments/hobex-hps/index.d.ts +1 -1
  8. package/dist/cjs/payments/index.d.ts +1 -1
  9. package/dist/cjs/pos/client.d.ts +1 -0
  10. package/dist/cjs/pos/client.js +9 -1
  11. package/dist/cjs/pos/errors.d.ts +1 -1
  12. package/dist/cjs/pos/errors.js +1 -0
  13. package/dist/cjs/pos/index.d.ts +1 -1
  14. package/dist/cjs/pos/index.js +9 -5
  15. package/dist/cjs/pos/settings.d.ts +46 -3
  16. package/dist/cjs/pos/settings.js +51 -4
  17. package/dist/cjs/pos/texte.d.ts +534 -0
  18. package/dist/cjs/pos/texte.js +178 -0
  19. package/dist/cjs/receipt/layout.js +11 -3
  20. package/dist/cjs/register/errors.d.ts +1 -1
  21. package/dist/cjs/register/errors.js +4 -0
  22. package/dist/cjs/register/index.d.ts +1 -1
  23. package/dist/cjs/register/index.js +3 -1
  24. package/dist/cjs/register/pairing.d.ts +51 -0
  25. package/dist/cjs/register/pairing.js +59 -0
  26. package/dist/cjs/stored/einstellungen.js +5 -2
  27. package/dist/cjs/stored/vokabular.d.ts +1 -1
  28. package/dist/cjs/stored/vokabular.js +12 -2
  29. package/dist/cjs/version.d.ts +1 -1
  30. package/dist/cjs/version.js +1 -1
  31. package/dist/esm/client/aufrufe.d.ts +2 -2
  32. package/dist/esm/client/aufrufe.js +12 -0
  33. package/dist/esm/payments/hobex-hps/connect-client.d.ts +17 -0
  34. package/dist/esm/payments/hobex-hps/connect-client.js +17 -0
  35. package/dist/esm/payments/hobex-hps/index.d.ts +1 -1
  36. package/dist/esm/payments/index.d.ts +1 -1
  37. package/dist/esm/pos/client.d.ts +1 -0
  38. package/dist/esm/pos/client.js +10 -2
  39. package/dist/esm/pos/errors.d.ts +1 -1
  40. package/dist/esm/pos/errors.js +1 -0
  41. package/dist/esm/pos/index.d.ts +1 -1
  42. package/dist/esm/pos/index.js +1 -1
  43. package/dist/esm/pos/settings.d.ts +46 -3
  44. package/dist/esm/pos/settings.js +47 -3
  45. package/dist/esm/pos/texte.d.ts +534 -0
  46. package/dist/esm/pos/texte.js +178 -0
  47. package/dist/esm/receipt/layout.js +11 -3
  48. package/dist/esm/register/errors.d.ts +1 -1
  49. package/dist/esm/register/errors.js +4 -0
  50. package/dist/esm/register/index.d.ts +1 -1
  51. package/dist/esm/register/index.js +1 -1
  52. package/dist/esm/register/pairing.d.ts +51 -0
  53. package/dist/esm/register/pairing.js +57 -0
  54. package/dist/esm/stored/einstellungen.js +6 -3
  55. package/dist/esm/stored/vokabular.d.ts +1 -1
  56. package/dist/esm/stored/vokabular.js +12 -2
  57. package/dist/esm/version.d.ts +1 -1
  58. package/dist/esm/version.js +1 -1
  59. package/fixtures/hobex-hps-codes.json +1 -1
  60. package/fixtures/invoice-api.schema.json +1 -1
  61. package/fixtures/invoice-texts.json +1 -1
  62. package/fixtures/manifest.json +6 -6
  63. package/fixtures/pos-texts.json +679 -1
  64. package/fixtures/receipt-due-generated.json +1 -1
  65. package/fixtures/receipt-due-voucher-generated.json +1 -1
  66. package/fixtures/receipts/card-sumup.json +1 -1
  67. package/fixtures/receipts/split-card-card-cash.json +1 -1
  68. package/fixtures/receipts/split-one-card-tip.json +1 -1
  69. package/fixtures/receipts/split-table-round-tip.json +2 -2
  70. package/fixtures/receipts/split-tip-card.json +1 -1
  71. package/fixtures/receipts/split-two-cards-same-provider.json +2 -2
  72. package/fixtures/renames-1.0.json +4 -2
  73. package/fixtures/surface.json +20 -4
  74. package/fixtures/v3/antworten/belege.json +2 -2
  75. package/fixtures/v3/antworten/belegmail.json +2 -2
  76. package/fixtures/v3/antworten/berichte.json +2 -2
  77. package/fixtures/v3/antworten/kasse-belege.json +2 -2
  78. package/fixtures/v3/antworten/kasse.json +696 -4
  79. package/fixtures/v3/antworten/lager.json +1 -1
  80. package/fixtures/v3/antworten/rechnungen.json +2 -2
  81. package/fixtures/v3/antworten/storno.json +2 -2
  82. package/fixtures/v3/stored/belege.json +2 -2
  83. package/fixtures/v3/stored/kasse.json +210 -4
  84. package/fixtures/v3/stored/rechnungen.json +2 -2
  85. package/fixtures/v3/v3-vokabular.json +107 -6
  86. package/fixtures/v3/zahlbetrag-faelle.json +2 -2
  87. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,7 +4,34 @@ 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.38.0 - unveröffentlicht
7
+ ## 1.40.0 - unveröffentlicht
8
+
9
+ 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.
10
+
11
+ - **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`.
12
+ - **`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.
13
+ - **Block `cardTerminal`** in the register settings (`PosSettings.cardTerminal`, `posCardTerminalFromWire`): `{ sumup: { affiliateKey } }`, only for a device whose card provider is `sumup`; missing otherwise.
14
+ - **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.
15
+ - **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.
16
+
17
+ ## 1.39.0 - 2026-11-14
18
+
19
+ 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.
20
+
21
+ - **`onEndpoint(endpoint)` in `createHpsConnectClient`** (type `HpsConnectEndpoint`: `host`, `port`, `relocated`): called with the address Kasseneck Connect really used, but only from an answer with `ok: true` that carries a complete `endpoint` (Connect 1.5.0 and later). An error envelope never calls it, not even when it carries an `endpoint`; neither does an answer of Connect 1.4.2 (no field) or an incomplete address. A throw in the callback leaves the payment untouched. Reason: the register adopts a new terminal address only from a successful answer, and an old Connect must behave exactly as before.
22
+ - **Printer and paper sentences** (both registers): `printer.paper_out`, `printer.cover_open`, `printer.not_ready`, `printer.paper_near_end`, `printer.unreachable`, `printer.none`, and the new `printer.no_status_answer` („Drucker antwortet nicht – Deckel und Papier prüfen.“) for a printer that stays silent on the status query – a hint only, the receipt is printed anyway. Label `printer.hint_setting` („Warnen, wenn der Drucker nicht antwortet“) for the switch that hides that hint. `printer.warn_unreachable` and `printer.warn_none` are unchanged.
23
+ - **Terminal and lock screen sentences** (both registers): `terminal.unreachable`, `terminal.tid_mismatch`, `terminal.tid_hint`, `manager.ask`, `print.test_ruler_hint` and the five lock screen lines `lock_screen.card_payment_unclear`, `.receipt_unclear`, `.payout_unclear`, `.reversal_unclear`, `.split_open` („… bitte anmelden und prüfen.“).
24
+ - **Connect sentences** (`only: ['web']`): `connect.browser_blocks`, `connect.updating`, `connect.other_installation`, `connect.other_installation_hint`. `connect.not_responding` is unchanged.
25
+ - **Sentences that stood in the code of the browser register** (`only: ['web']`, wording unchanged): the rest of the Connect error messages (`connect.pair_invalid`, `.pair_request_throttled`, `.print_in_progress`, `.printer_timeout`, `.printer_refused`, `.bad_request`, `.unreadable_answer`, `.error_generic`), the success sentences `connect.unpaired_done` and `connect.switched_over` plus the label `connect.code_prompt` (no explanatory hints of the settings: spec 2.1 of the Connect operation spec; the composed search and pairing sentences of the browser register are built from the labels below and are not in the catalogue).
26
+ - **Labels and buttons** `devices.*` (61 entries, both registers): status lines („Bondrucker bereit“, „Kartenterminal bereit“, „Verbunden“ …), field names („Papierbreite“, „Zeichensatz“, „Kassenlade“ …), placeholders `{n}`, `{width}`, `{count}`, `{tid}`, `{ip}`, `{port}`, and buttons („Nochmal prüfen“, „Nicht jetzt“, „Neu suchen“ …). Among them the short labels of the device settings `devices.check` („prüfen“), `devices.searching` („Sucht …“), `devices.search` („Suchen“), `devices.none` („keiner“), `devices.yes` („ja“), `devices.no` („nein“) and `devices.test_print_paper` („Testdruck auf Papier ({width}, {count} Zeichen)“). Existing buttons are reused, not duplicated: `common.cancel`, `nav.settings`, `printer.set_up`, `receipts.open` („Öffnen“), `codetable.print_again`, `codetable.apply` („Übernehmen“), `split.remove` („Entfernen“), `cancellation.tip_refund_yes` („Ja“), `cancellation.tip_refund_no` („Nein“).
27
+ - **Titles of the device settings** (labels, both registers, wording unchanged from the browser register; no explanatory sentences, spec 2.1 of the Connect operation spec, apart from `terminal.tid_hint`): `printer.section_title` („Drucker & Lade“), `connect.status_title`, `.install_title`, `.name`, `.switch_title`, `printer.use`, `.bluetooth_title`, `.print_qr`, `.old_way_title`, `.cut_title`, `.bon_texts_title`, `.test_page_print`, `.drawer_title`, `.drawer_auto_title`, `.drawer_open_now`, `terminal.card_terminal`, `.tid_title`, `.search_title`, `.ip_title`, `.port_title`, the hint `terminal.change_in_panel` („Im Panel ändern“) and, browser register only, the buttons `connect.pair` („Koppeln“), `.unpair` („Entkoppeln“), `.unpair_yes` („Ja, entkoppeln“).
28
+ - **`reportMyTerminalAddress({ ownerUid, deviceId, deviceSecret, tid, host, port })`** (`./register`, `POS_CALLS` now 54; only on the register path, device credentials like `listRegisterUsersForDevice`, no session of a person): the register reports silently that the card terminal answers under a new address. The server writes only the two fields `terminalIp`/`terminalPort`, and only when the TID matches the device's setup; every change is entered in the register log. Answer `{ changed }` (`false` = the address was already stored). The form is checked before sending (`KasseneckValidationError`, `scope: 'request'`: credentials, `tid` and `host` non-empty, `port` a whole number from 1 to 65535); the device secret goes as `secretParams`, never into a log or error. After a timeout the outcome stays `rejected` (repeatable: the same address again is `changed: false`). The register shows nothing about it. New error codes in `REGISTER_ERROR_CODES`: `terminal_id_mismatch`, `invalid_terminal_address`, `too_many_changes` (changed too often today), and `server_error`. Because `isRegisterError` looks only at the code, never at the call, `isRegisterError(e)` without a code is now also `true` for the `server_error` of every register call (before: `false`); a branch that used it to tell sign-in errors from the rest decides at the code instead.
29
+ - **`reportMyRegisterClient({ ownerUid, deviceId, deviceSecret, app })`** (`./register`, `POS_CALLS` now 55; register path only, device credentials like `reportMyTerminalAddress`, no session of a person): the register reports silently which version of it runs on this device (`app` is the build identifier: `1.39.0/2026-11-13T18:20Z` in the browser, `kasse-app/1.0.3+34` in the app). The server stores it with the time of the report and writes only when the identifier changed or the last report is at least 10 minutes old; answer `{ written }` (`false` = nothing to write, no error). Meant for the start, after sign-in and a beat of about 15 minutes. The form is checked before sending (`KasseneckValidationError`, `scope: 'request'`: credentials and `app` non-empty); the device secret goes as `secretParams`. After a timeout the outcome stays `rejected` (repeatable). No new error codes (`device_not_paired`, `server_error`). The register shows nothing about it. Reason: the admin shows per device which version runs and whether it is outdated.
30
+ - **Version texts** (`version.line` label, both registers: „Fassung {version} · {time}“, the quiet line in the settings and on the PIN screen; `version.updated` message, `only: ['web']`: „Kasse aktualisiert auf {version}.“, shown once after the browser register reloaded itself).
31
+ - **Device setting `printerHint`** (optional switch, `PosDeviceSettings.printerHint?`, `POS_DEVICE_OPTIONAL_SWITCHES`, `posPrinterHint(device)`): shows or hides the "printer does not answer" hint at the print buttons. No default value, the server sends it only when stored; absent means on. Written with `true`/`false` through `setMyRegisterDeviceSettings`, read through `posSettingsFromWire`/`./stored`.
32
+ - `fixtures/pos-texts.json`, `surface.json`, `invoice-texts.json`, `invoice-api.schema.json` and `hobex-hps-codes.json` regenerated for the version.
33
+
34
+ ## 1.38.0 - 2026-11-12
8
35
 
9
36
  Payment on invoices: when an invoice is paid in cash or by card on site, the server writes a payment receipt ("Zahlung auf Rechnung") into the cash register the money goes into. This version reads, prints and explains such receipts. Additive; every existing call, receipt and golden behaves as before (all existing goldens are byte-identical, eight new ones are added).
10
37
 
@@ -25,7 +52,7 @@ Payment on invoices: when an invoice is paid in cash or by card on site, the ser
25
52
  - `fixtures/surface.json`, `pos-texts.json`, `invoice-texts.json`, `hobex-hps-codes.json` and `invoice-api.schema.json` regenerated for the version.
26
53
 
27
54
 
28
- ## 1.37.0 - unveröffentlicht
55
+ ## 1.37.0 - 2026-11-12
29
56
 
30
57
  Late terminal query for a card payment with an open outcome (`HpsPayments.clarifyPayment` in `./payments`). Additive; `pay`, `refund` and `cancel` behave as before. Card tips at the register (backend spec 2026-11-11-kartentrinkgeld, stages 1 and 2). Additive; every existing call, golden and text behaves as before, except the wording changes named below.
31
58
 
package/README.md CHANGED
@@ -302,7 +302,7 @@ const register = registerUserAuth({
302
302
 
303
303
  ### Calls without any authentication
304
304
 
305
- Six calls run **without any identity**, because they are how an identity comes
305
+ Eight calls run **without any identity**, because they are how an identity comes
306
306
  into being or how a device manages itself. They live in `…/register` and take
307
307
  **no authentication**, only the connection settings (`posBaseUrl`, timeout,
308
308
  `fetch`); they always go to the register path:
@@ -311,6 +311,8 @@ into being or how a device manages itself. They live in `…/register` and take
311
311
  |---|---|
312
312
  | `pairRegisterDevice` | the pairing code from the panel |
313
313
  | `listRegisterUsersForDevice`, `listRegisterSessionsForDevice` | the device credentials from pairing |
314
+ | `reportMyTerminalAddress` | the device credentials from pairing (no session; register path only) |
315
+ | `reportMyRegisterClient` | the device credentials from pairing (no session; register path only) |
314
316
  | `unpairRegisterDevice` | the device credentials; locks the device in the backend |
315
317
  | `registerUserLogin` | device credentials, user and PIN |
316
318
  | `registerPinLogin` | device credentials and PIN, without choosing a user |
@@ -13,7 +13,7 @@
13
13
  * umhuellt, muss ihn weiterhin absetzen koennen.
14
14
  */
15
15
  import type { FileOrData, FileOrDataCallOptions, PdfOrData, TransportBodyFields, TransportCallOptions } from './transport.js';
16
- export declare const ALL_CALLS: readonly ["activateCashregister", "cancelInvoice", "cancelReceipt", "createCreditNote", "createCustomer", "createCustomerCashregister", "createDepExport", "createDepHandoverLink", "createPartnerCustomer", "checkPartnerCustomerEmail", "createPartnerWebhook", "createPaymentLinkStripe", "createPrintJob", "createReceipt", "deletePartnerWebhook", "downloadDailyReport", "downloadReport", "endRegisterSession", "financeWebService", "generateFullReceiptId", "getCashregisterReport", "getCustomer", "getCustomerCredentials", "getCustomerSignatureStatus", "getDepExport", "getDepExportFile", "getFirstReceiptDate", "getInvoice", "getInvoicePdf", "getInvoiceSetupStatus", "getInvoiceXml", "getKasseSettings", "getPartnerCustomer", "getPartnerInfo", "getPrintJob", "getReceipt", "getReportV2", "hobexPayApi", "hobexRefundApi", "issueInvoice", "listCustomerCashregisters", "listInvoices", "listBrands", "listMyArticleGroups", "listMyArticles", "listMyCashregisters", "listMyPrinters", "listMyReceipts", "listMyStock", "listMyStockLocations", "listMyTipRecipients", "listPartnerCustomers", "listPartnerWebhookDeliveries", "listPartnerWebhooks", "listReceipts", "listRegisterUsersForDevice", "listRegisterSessionsForDevice", "pairRegisterDevice", "recordInvoicePayment", "registerPinLogin", "registerUserLogin", "renewRegisterSession", "reportCustomerContract", "requestCustomerSignature", "revokeDepHandoverLink", "searchCustomers", "sendPartnerCustomerFonLink", "sendPartnerWebhookTest", "sendReceiptEmail", "setMyCashregisterStockLocation", "setMyKasseLogo", "setMyKasseSettings", "setMyRegisterDeviceSettings", "stripeCaptureIntent", "unpairRegisterDevice", "rotatePartnerWebhookSecret", "updateCustomer", "updatePartnerWebhook", "getArticle", "listArticles", "lookupArticleByCode", "listLocations", "getStock", "listStock", "listStockMovements", "createWebhook", "updateWebhook", "deleteWebhook", "listWebhooks", "sendWebhookTest", "rotateWebhookSecret", "listWebhookDeliveries", "createArticle", "updateArticle", "deactivateArticle", "receiveGoods", "transferStock", "recordStockLoss", "changeStockCondition", "reverseStockMovement", "createReservation", "extendReservation", "releaseReservation", "getReservation", "listReservations", "createVariantGroup", "updateVariantGroup", "getVariantGroup", "listVariantGroups", "addVariant", "createStocktake", "listStocktakes", "getStocktake", "listStocktakeItems", "recordStocktakeCount", "voidStocktakeCount", "listStocktakeCounts", "reviewStocktake", "recountStocktake", "closeStocktake", "cancelStocktake", "getStocktakePdf", "orderSignatureCard", "getSignatureCardOrder", "listMyStocktakes", "listMyStocktakeItems", "listMyStocktakeCounts", "recordMyStocktakeCount", "voidMyStocktakeCount", "checkVoucher", "reprintVoucherLabel", "getMyDrawerState", "openMyShift", "recordMyCashMovement", "logMyDrawerOpenings", "getMyShiftReport", "closeMyShift", "recordMyShiftCount", "logReceiptOutputs", "getRegisterInspectionInfo", "reportConnectState", "learnMyLeergutCode", "listMyLeergutCodes", "getMyTipBalance", "registerTerminalDevice", "getTerminalAccess", "claimTerminal", "requestTerminalCode", "getTerminalCode", "reportTerminalLogin", "reportTerminalReady", "unfixTerminal", "listDepositTypes", "getEwpReport", "setEwpExtraQuantities"];
16
+ export declare const ALL_CALLS: readonly ["activateCashregister", "cancelInvoice", "cancelReceipt", "createCreditNote", "createCustomer", "createCustomerCashregister", "createDepExport", "createDepHandoverLink", "createPartnerCustomer", "checkPartnerCustomerEmail", "createPartnerWebhook", "createPaymentLinkStripe", "createPrintJob", "createReceipt", "deletePartnerWebhook", "downloadDailyReport", "downloadReport", "endRegisterSession", "financeWebService", "generateFullReceiptId", "getCashregisterReport", "getCustomer", "getCustomerCredentials", "getCustomerSignatureStatus", "getDepExport", "getDepExportFile", "getFirstReceiptDate", "getInvoice", "getInvoicePdf", "getInvoiceSetupStatus", "getInvoiceXml", "getKasseSettings", "getPartnerCustomer", "getPartnerInfo", "getPrintJob", "getReceipt", "getReportV2", "hobexPayApi", "hobexRefundApi", "issueInvoice", "listCustomerCashregisters", "listInvoices", "listBrands", "listMyArticleGroups", "listMyArticles", "listMyCashregisters", "listMyPrinters", "listMyReceipts", "listMyStock", "listMyStockLocations", "listMyTipRecipients", "listPartnerCustomers", "listPartnerWebhookDeliveries", "listPartnerWebhooks", "listReceipts", "listRegisterUsersForDevice", "listRegisterSessionsForDevice", "pairRegisterDevice", "recordInvoicePayment", "registerPinLogin", "registerUserLogin", "renewRegisterSession", "reportCustomerContract", "requestCustomerSignature", "revokeDepHandoverLink", "searchCustomers", "sendPartnerCustomerFonLink", "sendPartnerWebhookTest", "sendReceiptEmail", "setMyCashregisterStockLocation", "setMyKasseLogo", "setMyKasseSettings", "setMyRegisterDeviceSettings", "stripeCaptureIntent", "unpairRegisterDevice", "rotatePartnerWebhookSecret", "updateCustomer", "updatePartnerWebhook", "getArticle", "listArticles", "lookupArticleByCode", "listLocations", "getStock", "listStock", "listStockMovements", "createWebhook", "updateWebhook", "deleteWebhook", "listWebhooks", "sendWebhookTest", "rotateWebhookSecret", "listWebhookDeliveries", "createArticle", "updateArticle", "deactivateArticle", "receiveGoods", "transferStock", "recordStockLoss", "changeStockCondition", "reverseStockMovement", "createReservation", "extendReservation", "releaseReservation", "getReservation", "listReservations", "createVariantGroup", "updateVariantGroup", "getVariantGroup", "listVariantGroups", "addVariant", "createStocktake", "listStocktakes", "getStocktake", "listStocktakeItems", "recordStocktakeCount", "voidStocktakeCount", "listStocktakeCounts", "reviewStocktake", "recountStocktake", "closeStocktake", "cancelStocktake", "getStocktakePdf", "orderSignatureCard", "getSignatureCardOrder", "listMyStocktakes", "listMyStocktakeItems", "listMyStocktakeCounts", "recordMyStocktakeCount", "voidMyStocktakeCount", "checkVoucher", "reprintVoucherLabel", "getMyDrawerState", "openMyShift", "recordMyCashMovement", "logMyDrawerOpenings", "getMyShiftReport", "closeMyShift", "recordMyShiftCount", "logReceiptOutputs", "getRegisterInspectionInfo", "reportConnectState", "learnMyLeergutCode", "listMyLeergutCodes", "getMyTipBalance", "reportMyTerminalAddress", "reportMyRegisterClient", "registerTerminalDevice", "getTerminalAccess", "claimTerminal", "requestTerminalCode", "getTerminalCode", "reportTerminalLogin", "reportTerminalReady", "unfixTerminal", "listDepositTypes", "getEwpReport", "setEwpExtraQuantities"];
17
17
  export type ApiCall = typeof ALL_CALLS[number];
18
18
  /**
19
19
  * Die oeffentlichen Endpunkte unter `/v3` (`https://api.kasseneck.at/v3/<name>`),
@@ -29,7 +29,7 @@ export declare const PUBLIC_CALLS: readonly ["createReceipt", "getReceipt", "can
29
29
  * die fuenf DEP-Aufrufe); die Kasse ruft sie trotzdem ueber diesen Weg (ein Dialekt
30
30
  * je Client, Nachtrag §5.2).
31
31
  */
32
- export declare const POS_CALLS: readonly ["pairRegisterDevice", "listRegisterUsersForDevice", "listRegisterSessionsForDevice", "registerUserLogin", "registerPinLogin", "renewRegisterSession", "endRegisterSession", "unpairRegisterDevice", "listMyCashregisters", "listMyReceipts", "getReceipt", "createReceipt", "generateFullReceiptId", "cancelReceipt", "sendReceiptEmail", "listMyArticleGroups", "listMyArticles", "getKasseSettings", "setMyKasseSettings", "setMyKasseLogo", "setMyRegisterDeviceSettings", "listMyPrinters", "createPrintJob", "getPrintJob", "listMyTipRecipients", "listMyStockLocations", "listMyStock", "setMyCashregisterStockLocation", "listMyStocktakes", "listMyStocktakeItems", "listMyStocktakeCounts", "recordMyStocktakeCount", "voidMyStocktakeCount", "checkVoucher", "reprintVoucherLabel", "getMyDrawerState", "openMyShift", "recordMyCashMovement", "logMyDrawerOpenings", "getMyShiftReport", "closeMyShift", "recordMyShiftCount", "logReceiptOutputs", "createDepExport", "getDepExport", "getDepExportFile", "createDepHandoverLink", "revokeDepHandoverLink", "getRegisterInspectionInfo", "reportConnectState", "learnMyLeergutCode", "listMyLeergutCodes", "getMyTipBalance"];
32
+ export declare const POS_CALLS: readonly ["pairRegisterDevice", "listRegisterUsersForDevice", "listRegisterSessionsForDevice", "registerUserLogin", "registerPinLogin", "renewRegisterSession", "endRegisterSession", "unpairRegisterDevice", "listMyCashregisters", "listMyReceipts", "getReceipt", "createReceipt", "generateFullReceiptId", "cancelReceipt", "sendReceiptEmail", "listMyArticleGroups", "listMyArticles", "getKasseSettings", "setMyKasseSettings", "setMyKasseLogo", "setMyRegisterDeviceSettings", "listMyPrinters", "createPrintJob", "getPrintJob", "listMyTipRecipients", "listMyStockLocations", "listMyStock", "setMyCashregisterStockLocation", "listMyStocktakes", "listMyStocktakeItems", "listMyStocktakeCounts", "recordMyStocktakeCount", "voidMyStocktakeCount", "checkVoucher", "reprintVoucherLabel", "getMyDrawerState", "openMyShift", "recordMyCashMovement", "logMyDrawerOpenings", "getMyShiftReport", "closeMyShift", "recordMyShiftCount", "logReceiptOutputs", "createDepExport", "getDepExport", "getDepExportFile", "createDepHandoverLink", "revokeDepHandoverLink", "getRegisterInspectionInfo", "reportConnectState", "learnMyLeergutCode", "listMyLeergutCodes", "getMyTipBalance", "reportMyTerminalAddress", "reportMyRegisterClient"];
33
33
  export type PublicCall = typeof PUBLIC_CALLS[number];
34
34
  export type PosCall = typeof POS_CALLS[number];
35
35
  /**
@@ -162,6 +162,10 @@ exports.ALL_CALLS = [
162
162
  'listMyLeergutCodes',
163
163
  // „Mein Trinkgeld“ (./pos): Stand der angemeldeten Person; nur ueber den Kassenweg.
164
164
  'getMyTipBalance',
165
+ // Neue Adresse des Kartenterminals still melden (./register, Ausweis des Geraets); nur ueber den Kassenweg.
166
+ 'reportMyTerminalAddress',
167
+ // Laufende Fassung der Kasse still melden (./register, Ausweis des Geraets); nur ueber den Kassenweg.
168
+ 'reportMyRegisterClient',
165
169
  // Kartenterminal am Handy: Geraet, Zugang, TID und Code (nur /v3).
166
170
  'registerTerminalDevice',
167
171
  'getTerminalAccess',
@@ -394,6 +398,10 @@ exports.POS_CALLS = [
394
398
  'listMyLeergutCodes',
395
399
  // „Mein Trinkgeld“: nur ueber den Kassenweg, nur persoenliche Anmeldung.
396
400
  'getMyTipBalance',
401
+ // Neue Adresse des Kartenterminals melden: nur ueber den Kassenweg, Ausweis des Geraets (keine Sitzung).
402
+ 'reportMyTerminalAddress',
403
+ // Laufende Fassung melden: nur ueber den Kassenweg, Ausweis des Geraets (keine Sitzung).
404
+ 'reportMyRegisterClient',
397
405
  ];
398
406
  /**
399
407
  * Die Aufrufe **mit Wirkung**, alphabetisch: sie legen etwas an, aendern oder
@@ -610,6 +618,10 @@ exports.CALLS_WITHOUT_EFFECT = Object.freeze({
610
618
  registerUserLogin: 'repeatable',
611
619
  renewRegisterSession: 'repeatable',
612
620
  // Kartenterminal: Anmeldung und Einrichtung melden schreiben denselben Stand noch einmal.
621
+ // Dieselbe Adresse noch einmal gemeldet aendert nichts (`changed: false`); der Tageszaehler zaehlt nur echte Aenderungen.
622
+ reportMyTerminalAddress: 'repeatable',
623
+ // Dieselbe Kennung noch einmal gemeldet schreibt nichts (`written: false`).
624
+ reportMyRegisterClient: 'repeatable',
613
625
  reportTerminalLogin: 'repeatable',
614
626
  reportTerminalReady: 'repeatable',
615
627
  // Kartenterminal: die feste Bindung noch einmal loesen aendert nichts am Server.
@@ -105,6 +105,16 @@ export type HpsConnectFetch = (url: string, init: {
105
105
  body: string;
106
106
  signal: AbortSignal;
107
107
  }) => Promise<HpsConnectFetchResponse>;
108
+ /**
109
+ * Die Adresse, unter der Connect das Terminal tatsaechlich erreicht hat
110
+ * (Feld `endpoint` der Antwort ab Connect 1.5.0). `relocated: true` heisst:
111
+ * nicht die mitgegebene, sondern eine wiedergefundene Adresse.
112
+ */
113
+ export interface HpsConnectEndpoint {
114
+ host: string;
115
+ port: number;
116
+ relocated: boolean;
117
+ }
108
118
  export interface HpsConnectClientOptions {
109
119
  /** Basisadresse des Agenten. Vorgabe `http://127.0.0.1:27182` (README `kasseneck-connect`). */
110
120
  baseUrl?: string;
@@ -124,6 +134,13 @@ export interface HpsConnectClientOptions {
124
134
  paymentTimeoutMs?: number;
125
135
  /** Eigene `fetch`-Umsetzung (Tests). Vorgabe: globales `fetch`. */
126
136
  fetch?: HpsConnectFetch;
137
+ /**
138
+ * Wird mit der benutzten Adresse des Terminals aufgerufen, wenn Connect sie
139
+ * in einer ERFOLGREICHEN Antwort (`ok: true`) mitschickt (ab Connect 1.5.0).
140
+ * Bei einer Fehlerhuelle und bei Antworten ohne `endpoint` (Connect 1.4.2)
141
+ * nie. Ein Wurf des Aufrufers bleibt ohne Wirkung auf die Zahlung.
142
+ */
143
+ onEndpoint?: (endpoint: HpsConnectEndpoint) => void;
127
144
  }
128
145
  export interface HpsConnectClient {
129
146
  payment(options: HpsConnectPaymentOptions): Promise<HpsTransactionResponse>;
@@ -63,6 +63,22 @@ function createHpsConnectClient(options) {
63
63
  const shortTimeoutMs = options.shortTimeoutMs ?? DEFAULT_SHORT_TIMEOUT_MS;
64
64
  const paymentTimeoutMs = options.paymentTimeoutMs ?? DEFAULT_PAYMENT_TIMEOUT_MS;
65
65
  const holen = options.fetch ?? globalHpsConnectFetch();
66
+ // Nur aus einer Antwort mit `ok: true` und einer vollstaendigen Adresse;
67
+ // alles andere bleibt unbeachtet. Die Zahlung haengt nie am Aufrufer.
68
+ function meldeAdresse(huelle) {
69
+ const e = huelle['endpoint'];
70
+ if (options.onEndpoint === undefined || e === null || typeof e !== 'object')
71
+ return;
72
+ const { host, port, relocated } = e;
73
+ if (typeof host !== 'string' || host === '' || typeof port !== 'number' || !Number.isInteger(port))
74
+ return;
75
+ try {
76
+ options.onEndpoint({ host, port, relocated: relocated === true });
77
+ }
78
+ catch {
79
+ // Der Aufrufer darf die Antwort nicht kippen.
80
+ }
81
+ }
66
82
  async function rufen(path, body, timeoutMs) {
67
83
  const abbruch = new AbortController();
68
84
  const wecker = setTimeout(() => abbruch.abort(), timeoutMs);
@@ -103,6 +119,7 @@ function createHpsConnectClient(options) {
103
119
  }
104
120
  const h = huelle;
105
121
  if (h.ok === true) {
122
+ meldeAdresse(h);
106
123
  return h;
107
124
  }
108
125
  const code = typeof h.error?.code === 'string' ? h.error.code : undefined;
@@ -17,7 +17,7 @@
17
17
  * tatsaechlichen Adresse (z. B. ueber `GET /v1/status` je Port) bleibt Sache
18
18
  * des Aufrufers.
19
19
  */
20
- export { type HpsConnectCancelOptions, type HpsConnectClient, type HpsConnectClientOptions, type HpsConnectFetch, type HpsConnectFetchResponse, type HpsConnectPaymentOptions, type HpsConnectRefundOptions, type HpsConnectTarget, type HpsConnectTransactionOptions, createHpsConnectClient, } from './connect-client.js';
20
+ export { type HpsConnectCancelOptions, type HpsConnectClient, type HpsConnectClientOptions, type HpsConnectEndpoint, type HpsConnectFetch, type HpsConnectFetchResponse, type HpsConnectPaymentOptions, type HpsConnectRefundOptions, type HpsConnectTarget, type HpsConnectTransactionOptions, createHpsConnectClient, } from './connect-client.js';
21
21
  export { HpsClarifyTimeoutError, HpsConnectException, HpsConnectTerminalError, HpsConnectTransportError, HpsPreflightError, HpsTransactionIdError, PREFLIGHT_CONNECT_CODES, TERMINAL_UNREACHABLE_CONNECT_CODES, } from './errors.js';
22
22
  export { type HpsPaymentEvent, type HpsPaymentEventKind, type HpsPaymentObserver, } from './events.js';
23
23
  export { type CardPaymentOutcome, type HpsPaymentResult, isHostUncertainResult, mayRetrySafely, } from './outcome.js';
@@ -43,4 +43,4 @@
43
43
  export { StripeLinkMode, type StripeLinkModeKey } from '../enums/index.js';
44
44
  export { type CreateStripeLinkOptions, type StripeCaptureResult, createStripeLink, stripeCaptureIntent, } from './stripe.js';
45
45
  export { type HobexPayOptions, type HobexRefundOptions, type HobexTransactionIdOptions, hobexPay, hobexRefund, newHobexTransactionId, } from './hobex.js';
46
- export { type CardPaymentOutcome, type HpsConnectClient, type HpsConnectCancelOptions, type HpsConnectClientOptions, type HpsConnectFetch, type HpsConnectFetchResponse, type HpsConnectPaymentOptions, type HpsConnectRefundOptions, type HpsConnectTarget, type HpsConnectTransactionOptions, type HpsCancelOptions, type HpsClarifyOptions, type HpsCode, type HpsCodeEffect, type HpsCodeReason, type HpsCodeSource, type HpsMeasuredCode, type HpsPaymentEvent, type HpsPaymentEventKind, type HpsPaymentObserver, type HpsPaymentOptions, type HpsPayments, type HpsPaymentResult, type HpsPaymentsOptions, type HpsRefundOptions, type HpsTransactionIdGeneratorOptions, type HpsTransactionResponse, ABORTED_CODE, APPROVED_CODE, CARD_NOT_PRESENT_CODE, createHpsConnectClient, createHpsPayments, createHpsTransactionIdGenerator, HOBEX_SUPPORT, HPS_CODES, HPS_MEASURED_CODES, HPS_REASON_HINTS, hpsCodeInfo, hpsCodeReason, hobexReceiptFromHps, HpsClarifyTimeoutError, HpsConnectException, HpsConnectTerminalError, HpsConnectTransportError, HpsPreflightError, HpsTransactionIdError, INVALID_TRANSACTION_CODE, isApproved, isConclusive, isConclusiveAsStatus, isHostUncertain, isHostUncertainResult, isInProgress, isNoStatement, isNotAbortable, isTechnicalError, isUnknownCode, isValidHpsTransactionId, mayRetrySafely, MAX_TRANSACTION_ID_LENGTH, newHpsTransactionId, NOT_ABORTABLE_CODE, NO_STATEMENT_CODE, parseHpsTransactionResponse, PREFLIGHT_CONNECT_CODES, TERMINAL_UNREACHABLE_CONNECT_CODES, TECHNICAL_ERROR_CODE, NOT_FOUND_HTTP_STATUS, TERMINAL_BUSY_HTTP_STATUS, TRANSACTION_CANCELED_CODE, } from './hobex-hps/index.js';
46
+ export { type CardPaymentOutcome, type HpsConnectClient, type HpsConnectCancelOptions, type HpsConnectClientOptions, type HpsConnectEndpoint, type HpsConnectFetch, type HpsConnectFetchResponse, type HpsConnectPaymentOptions, type HpsConnectRefundOptions, type HpsConnectTarget, type HpsConnectTransactionOptions, type HpsCancelOptions, type HpsClarifyOptions, type HpsCode, type HpsCodeEffect, type HpsCodeReason, type HpsCodeSource, type HpsMeasuredCode, type HpsPaymentEvent, type HpsPaymentEventKind, type HpsPaymentObserver, type HpsPaymentOptions, type HpsPayments, type HpsPaymentResult, type HpsPaymentsOptions, type HpsRefundOptions, type HpsTransactionIdGeneratorOptions, type HpsTransactionResponse, ABORTED_CODE, APPROVED_CODE, CARD_NOT_PRESENT_CODE, createHpsConnectClient, createHpsPayments, createHpsTransactionIdGenerator, HOBEX_SUPPORT, HPS_CODES, HPS_MEASURED_CODES, HPS_REASON_HINTS, hpsCodeInfo, hpsCodeReason, hobexReceiptFromHps, HpsClarifyTimeoutError, HpsConnectException, HpsConnectTerminalError, HpsConnectTransportError, HpsPreflightError, HpsTransactionIdError, INVALID_TRANSACTION_CODE, isApproved, isConclusive, isConclusiveAsStatus, isHostUncertain, isHostUncertainResult, isInProgress, isNoStatement, isNotAbortable, isTechnicalError, isUnknownCode, isValidHpsTransactionId, mayRetrySafely, MAX_TRANSACTION_ID_LENGTH, newHpsTransactionId, NOT_ABORTABLE_CODE, NO_STATEMENT_CODE, parseHpsTransactionResponse, PREFLIGHT_CONNECT_CODES, TERMINAL_UNREACHABLE_CONNECT_CODES, TECHNICAL_ERROR_CODE, NOT_FOUND_HTTP_STATUS, TERMINAL_BUSY_HTTP_STATUS, TRANSACTION_CANCELED_CODE, } from './hobex-hps/index.js';
@@ -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,7 +152,13 @@ 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
  }
153
- if (teil === 'business' && settings_js_1.POS_BUSINESS_OPTIONAL_FIELDS.includes(schluessel)) {
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
+ }
160
+ const schalter = teil === 'business' ? settings_js_1.POS_BUSINESS_OPTIONAL_FIELDS : settings_js_1.POS_DEVICE_OPTIONAL_SWITCHES;
161
+ if (schalter.includes(schluessel)) {
154
162
  if (typeof wert !== 'boolean')
155
163
  throw new errors_js_1.KasseneckValidationError(name, `${teil}.${schluessel}: true oder false erwartet`, 'request');
156
164
  continue;
@@ -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_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.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.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.POS_DEVICE_OPTIONAL_FIELDS = exports.POS_DEVICE_DEFAULTS = exports.POS_BUSINESS_DEFAULTS = exports.POS_SHORTCUT_DEFAULTS = exports.POS_SHORTCUT_ACTIONS = void 0;
4
- exports.cashRegisterDepositFromWire = exports.depositEntriesFromWire = 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 = void 0;
5
- exports.DISCOUNT_PRESET_NAME_MAX = exports.DISCOUNT_PRESETS_MAX = 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 = void 0;
6
- exports.MANUAL_OPENING_REASONS = exports.OPENING_REASONS = 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 = 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 = 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,
@@ -19,7 +19,11 @@ Object.defineProperty(exports, "POS_SHORTCUT_DEFAULTS", { enumerable: true, get:
19
19
  Object.defineProperty(exports, "POS_BUSINESS_DEFAULTS", { enumerable: true, get: function () { return settings_js_1.POS_BUSINESS_DEFAULTS; } });
20
20
  Object.defineProperty(exports, "POS_DEVICE_DEFAULTS", { enumerable: true, get: function () { return settings_js_1.POS_DEVICE_DEFAULTS; } });
21
21
  Object.defineProperty(exports, "POS_DEVICE_OPTIONAL_FIELDS", { enumerable: true, get: function () { return settings_js_1.POS_DEVICE_OPTIONAL_FIELDS; } });
22
+ Object.defineProperty(exports, "POS_DEVICE_OPTIONAL_SWITCHES", { enumerable: true, get: function () { return settings_js_1.POS_DEVICE_OPTIONAL_SWITCHES; } });
23
+ Object.defineProperty(exports, "posPrinterHint", { enumerable: true, get: function () { return settings_js_1.posPrinterHint; } });
22
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; } });
23
27
  Object.defineProperty(exports, "POS_BUSINESS_OPTIONAL_CHOICES", { enumerable: true, get: function () { return settings_js_1.POS_BUSINESS_OPTIONAL_CHOICES; } });
24
28
  Object.defineProperty(exports, "POS_DEVICE_OPTIONAL_CHOICES", { enumerable: true, get: function () { return settings_js_1.POS_DEVICE_OPTIONAL_CHOICES; } });
25
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
@@ -340,6 +349,11 @@ export interface PosDeviceSettings {
340
349
  drawerId?: string | null;
341
350
  /** Breite der rechten Spalte; optional, fehlt sie, gilt `narrow`. Lesen ueber [posCartWidth]. */
342
351
  cartWidth?: PosOpen<PosCartWidth>;
352
+ /**
353
+ * Hinweis an den Druckknoepfen, wenn der Drucker auf die Statusabfrage nicht antwortet. Optional: der Server sendet
354
+ * das Feld nur, wenn es gespeichert ist; fehlt es, gilt an. Lesen ueber [posPrinterHint]. Siehe [POS_DEVICE_OPTIONAL_SWITCHES].
355
+ */
356
+ printerHint?: boolean;
343
357
  terminalIp: string;
344
358
  terminalPort: number;
345
359
  terminalVia: PosOpen<PosTerminalVia>;
@@ -357,7 +371,20 @@ export interface PosSettings {
357
371
  vouchers: PosVoucherSettings;
358
372
  /** Pfand & Leergut (Block `deposit`); fehlt, solange der Betrieb kein Pfand eingeschaltet hat. */
359
373
  deposit?: DepositSettings;
374
+ /** Kartenterminal-Zugang (Block `cardTerminal`); fehlt, solange an diesem Geraet kein angebundenes Terminal gilt. */
375
+ cardTerminal?: PosCardTerminal;
360
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;
361
388
  export declare const POS_BUSINESS_DEFAULTS: Readonly<PosBusinessSettings>;
362
389
  export declare const POS_DEVICE_DEFAULTS: Readonly<PosDeviceSettings>;
363
390
  /**
@@ -370,6 +397,12 @@ export declare const POS_DEVICE_DEFAULTS: Readonly<PosDeviceSettings>;
370
397
  export declare const POS_DEVICE_OPTIONAL_FIELDS: readonly ["drawerId"];
371
398
  /** Gilt dieser Wert fuer ein optionales Feld? Lesen: nur eine Kennung; Schreiben: auch `null`. */
372
399
  export declare function _optionalerWert(wert: unknown, schreiben: boolean): boolean;
400
+ /**
401
+ * Optionale Geraete-Schalter: ohne Standardwert, der Server sendet sie nur, wenn sie gespeichert sind (Backend
402
+ * `GERAET_OPTIONAL`, Wahrheitswert). [mergePosSettings] uebernimmt sie nur als Wahrheitswert; der Schreibweg nimmt nur
403
+ * `true`/`false`.
404
+ */
405
+ export declare const POS_DEVICE_OPTIONAL_SWITCHES: readonly ["printerHint"];
373
406
  /**
374
407
  * Optionale Betriebs-Einstellungen (Schalter): ohne Standardwert, der Server
375
408
  * sendet sie nur, wenn sie gespeichert sind (Backend `BETRIEB_OPTIONAL`).
@@ -377,6 +410,14 @@ export declare function _optionalerWert(wert: unknown, schreiben: boolean): bool
377
410
  * nimmt nur `true`/`false`.
378
411
  */
379
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;
380
421
  /**
381
422
  * Optionale Betriebs-Einstellungen mit Wertemenge (Backend `BETRIEB_OPTIONAL`, Katalog
382
423
  * `KASSE_BETRIEB_WERTE.tipKinds[]`, `.tipStart` und `.tipKeptMode`): ohne Standardwert, der Server sendet sie nur,
@@ -402,6 +443,8 @@ export declare function posTipKinds(business: Readonly<Partial<PosBusinessSettin
402
443
  export declare function posTipStart(business: Readonly<Partial<PosBusinessSettings>> | null | undefined): PosOpen<PosTipKind>;
403
444
  /** Wirksame Breite der rechten Spalte; ohne Angabe `narrow`. */
404
445
  export declare function posCartWidth(device: Readonly<Partial<PosDeviceSettings>> | null | undefined): PosOpen<PosCartWidth>;
446
+ /** Hinweis „Drucker antwortet nicht“ an den Druckknoepfen an? Fehlt die Einstellung, gilt ja. */
447
+ export declare function posPrinterHint(device: Readonly<Partial<PosDeviceSettings>> | null | undefined): boolean;
405
448
  /** Bar-Trinkgeld „gleich behalten“ vorbelegt? Fehlt die Einstellung, gilt aus. */
406
449
  export declare function posTipKeptByDefault(business: Readonly<Partial<PosBusinessSettings>> | null | undefined): boolean;
407
450
  /** Darf an der Kasse ein eigener Rabatt (Betrag oder Prozent) eingetippt werden? Fehlt die Einstellung, gilt ja. */
@@ -451,7 +494,7 @@ export declare const _ALTFORM_0X: Readonly<{
451
494
  * Schluessel, die der Standard nicht fuehrt, bleiben draussen, ausser einer
452
495
  * optionalen Geraete-Einstellung ([POS_DEVICE_OPTIONAL_FIELDS]) mit gueltiger
453
496
  * Kennung und einem optionalen Betriebs-Schalter
454
- * ([POS_BUSINESS_OPTIONAL_FIELDS]) als Wahrheitswert.
497
+ * ([POS_BUSINESS_OPTIONAL_FIELDS]) oder Geraete-Schalter ([POS_DEVICE_OPTIONAL_SWITCHES]) als Wahrheitswert.
455
498
  *
456
499
  * **Immer** (unabhaengig davon, welches Standard-Objekt uebergeben wird, auch
457
500
  * eine Kopie oder das einer zweiten Paketkopie) faellt ein Wert der inneren