@kreiseck/kasseneck-api 1.36.0 → 1.37.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.
- package/CHANGELOG.md +24 -1
- package/dist/cjs/client/aufrufe.d.ts +2 -2
- package/dist/cjs/client/aufrufe.js +5 -0
- package/dist/cjs/client/receipts.d.ts +1 -1
- package/dist/cjs/payments/hobex-hps/index.d.ts +2 -1
- package/dist/cjs/payments/hobex-hps/index.js +3 -1
- package/dist/cjs/payments/hobex-hps/outcome.d.ts +10 -0
- package/dist/cjs/payments/hobex-hps/payments.d.ts +54 -0
- package/dist/cjs/payments/hobex-hps/payments.js +157 -1
- package/dist/cjs/payments/hobex-hps/support.d.ts +19 -0
- package/dist/cjs/payments/hobex-hps/support.js +22 -0
- package/dist/cjs/payments/hobex-hps/transaction-response.js +1 -1
- package/dist/cjs/payments/index.d.ts +1 -1
- package/dist/cjs/payments/index.js +2 -1
- package/dist/cjs/pos/errors.d.ts +1 -1
- package/dist/cjs/pos/errors.js +1 -0
- package/dist/cjs/pos/index.d.ts +4 -4
- package/dist/cjs/pos/index.js +13 -5
- package/dist/cjs/pos/schicht-lesen.d.ts +3 -1
- package/dist/cjs/pos/schicht-lesen.js +23 -1
- package/dist/cjs/pos/schicht-typen.d.ts +39 -4
- package/dist/cjs/pos/schicht-typen.js +7 -2
- package/dist/cjs/pos/schicht.d.ts +6 -4
- package/dist/cjs/pos/schicht.js +6 -3
- package/dist/cjs/pos/settings.d.ts +37 -8
- package/dist/cjs/pos/settings.js +34 -10
- package/dist/cjs/pos/texte.d.ts +249 -2
- package/dist/cjs/pos/texte.js +139 -4
- package/dist/cjs/pos/trinkgeld.d.ts +30 -0
- package/dist/cjs/pos/trinkgeld.js +30 -0
- package/dist/cjs/receipt/shift-sheet.js +6 -1
- package/dist/cjs/register/pairing.d.ts +4 -0
- package/dist/cjs/register/pairing.js +2 -0
- package/dist/cjs/stored/vokabular.d.ts +1 -1
- package/dist/cjs/stored/vokabular.js +12 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/client/aufrufe.d.ts +2 -2
- package/dist/esm/client/aufrufe.js +5 -0
- package/dist/esm/client/receipts.d.ts +1 -1
- package/dist/esm/payments/hobex-hps/index.d.ts +2 -1
- package/dist/esm/payments/hobex-hps/index.js +1 -0
- package/dist/esm/payments/hobex-hps/outcome.d.ts +10 -0
- package/dist/esm/payments/hobex-hps/payments.d.ts +54 -0
- package/dist/esm/payments/hobex-hps/payments.js +158 -2
- package/dist/esm/payments/hobex-hps/support.d.ts +19 -0
- package/dist/esm/payments/hobex-hps/support.js +19 -0
- package/dist/esm/payments/hobex-hps/transaction-response.js +1 -1
- package/dist/esm/payments/index.d.ts +1 -1
- package/dist/esm/payments/index.js +1 -1
- package/dist/esm/pos/errors.d.ts +1 -1
- package/dist/esm/pos/errors.js +1 -0
- package/dist/esm/pos/index.d.ts +4 -4
- package/dist/esm/pos/index.js +5 -5
- package/dist/esm/pos/schicht-lesen.d.ts +3 -1
- package/dist/esm/pos/schicht-lesen.js +22 -1
- package/dist/esm/pos/schicht-typen.d.ts +39 -4
- package/dist/esm/pos/schicht-typen.js +6 -1
- package/dist/esm/pos/schicht.d.ts +6 -4
- package/dist/esm/pos/schicht.js +6 -3
- package/dist/esm/pos/settings.d.ts +37 -8
- package/dist/esm/pos/settings.js +30 -9
- package/dist/esm/pos/texte.d.ts +249 -2
- package/dist/esm/pos/texte.js +138 -3
- package/dist/esm/pos/trinkgeld.d.ts +30 -0
- package/dist/esm/pos/trinkgeld.js +28 -0
- package/dist/esm/receipt/shift-sheet.js +6 -1
- package/dist/esm/register/pairing.d.ts +4 -0
- package/dist/esm/register/pairing.js +2 -0
- package/dist/esm/stored/vokabular.d.ts +1 -1
- package/dist/esm/stored/vokabular.js +12 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/fixtures/duplicate-cases.json +1 -1
- package/fixtures/expected/duplicate.shift-close.hex +1 -1
- package/fixtures/expected/shift-close-card-tips.grid32.txt +44 -0
- package/fixtures/expected/shift-close-card-tips.grid48.txt +40 -0
- package/fixtures/expected/shift-close-card-tips.lines.json +479 -0
- package/fixtures/expected/shift-close-put-in.grid32.txt +1 -1
- package/fixtures/expected/shift-close-put-in.grid48.txt +1 -1
- package/fixtures/expected/shift-close-put-in.lines.json +1 -1
- package/fixtures/expected/shift-close-take-out.grid32.txt +1 -1
- package/fixtures/expected/shift-close-take-out.grid48.txt +1 -1
- package/fixtures/expected/shift-close-take-out.lines.json +1 -1
- package/fixtures/expected/shift-close.grid32.txt +1 -1
- package/fixtures/expected/shift-close.grid48.txt +1 -1
- package/fixtures/expected/shift-close.lines.json +1 -1
- package/fixtures/expected/shift-interim-card-tips.grid32.txt +34 -0
- package/fixtures/expected/shift-interim-card-tips.grid48.txt +31 -0
- package/fixtures/expected/shift-interim-card-tips.lines.json +344 -0
- package/fixtures/hobex-hps-codes.json +2 -2
- package/fixtures/invoice-api.schema.json +1 -1
- package/fixtures/invoice-texts.json +1 -1
- package/fixtures/pos-texts.json +300 -3
- package/fixtures/renames-1.0.json +10 -0
- package/fixtures/shift-ablauf-cases.json +4 -4
- package/fixtures/shift-cases.json +4 -2
- package/fixtures/shift-receipts-card-tips.json +73 -0
- package/fixtures/shift-receipts.json +9 -9
- package/fixtures/stored/card-tip-cases.json +132 -0
- package/fixtures/surface.json +21 -5
- package/fixtures/v3/antworten/belege.json +1 -1
- package/fixtures/v3/antworten/belegmail.json +1 -1
- package/fixtures/v3/antworten/berichte.json +1 -1
- package/fixtures/v3/antworten/kasse-belege.json +1 -1
- package/fixtures/v3/antworten/kasse.json +240 -3
- package/fixtures/v3/antworten/lager.json +1 -1
- package/fixtures/v3/antworten/rechnungen.json +1 -1
- package/fixtures/v3/antworten/storno.json +1 -1
- package/fixtures/v3/stored/belege.json +1 -1
- package/fixtures/v3/stored/kasse.json +2 -2
- package/fixtures/v3/stored/rechnungen.json +1 -1
- package/fixtures/v3/v3-vokabular.json +103 -14
- package/fixtures/v3/zahlbetrag-faelle.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,30 @@ 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.
|
|
7
|
+
## 1.37.0 - unveröffentlicht
|
|
8
|
+
|
|
9
|
+
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.
|
|
10
|
+
|
|
11
|
+
- **`clarifyPayment({ transactionId, previous })`:** asks the terminal LATER whether a payment went through – when the cashier clarifies an unclear card, possibly minutes after the payment or after a page reload. Read-only: only status queries, never an abort, never a reversal, never a new transaction. Budget a sixth of `resolveBudgetMs` (15 s by default); two answers without a statement in a row end it as `unresolved` at once (the payment is long finished, the terminal will not know later either). What an answer may decide depends on `previous` – the `unresolved` result of `pay` (only `reason` counts), `'beforeResolve'` when the clarification of `pay` never started (the page died during the card flow, so no reversal was sent), or `null` when the history is unknown: after a host fault (`hostFault`, `hostTimeout`, `internalError`, `approvedWithCondition`) a reversal may have been sent, so `'0'` never means "charged" there; `9011` means "nothing charged" only without a host fault or when a reversal was surely attempted (every code with that reason carries `sendReversal`, computed from the table); any other conclusive decline decides only without a host fault; with unknown history nothing decides and the cashier decides by the terminal receipt as before. Reason: until now the register could only offer two blind buttons ("was charged" / "not charged") – the terminal knows better, and a wrong click costs a double charge or a receipt without money.
|
|
12
|
+
- `HpsClarifyOptions` exported from `./payments`.
|
|
13
|
+
- **Texts for a new version of the browser register** (`only: ['web']`): the message `version.new_available` („Neue Fassung verfügbar – bei Gelegenheit neu laden.“) and the label `version.reload` („Neu laden“). The browser register shows the line when the deploy delivers a different build than the open tab runs, and only while nothing is running at the register; it never reloads by itself. Reason: a register tab stays open all day and otherwise keeps running the old bundle until someone reloads.
|
|
14
|
+
- **Short texts for clarifying an unclear card payment** (both sides): the clarify window shows the label `split.clarify_title` („Karte klären · {amount}“), one line on the state – `split.clarify_asking` („Das Terminal wird gefragt …“), `split.clarify_open` („Das Terminal weiß es nicht. hobex kann die Zahlung nachsehen.“), `split.clarify_not_asked` („Das Terminal konnte nicht gefragt werden ({reason}). Bitte später erneut klären.“), the new `split.clarify_busy` („Das Terminal ist gerade belegt. Bitte gleich erneut klären.“) and `split.clarify_no_answer` („Das Terminal hat nicht geantwortet. Bitte später erneut klären.“) or the new `split.clarify_manual` („Das Terminal kann es nicht sicher sagen. hobex kann die Zahlung nachsehen.“) when the terminal was not asked at all – and the full reference as the label `split.clarify_reference` („Kennung {reference}“); `split.clarify_charged` and `split.clarify_not_charged` report the terminal's answer. New message `card_payment.unclear_short` („Kartenzahlung {amount} unklar – bitte klären. Kennung {reference}.“) for a card that already stands in the list to be clarified (warning corner, a new payment blocked by it); the reference may be shortened there, the window and the list carry it in full. `card_payment.unknown` and `card_payment.unknown_with_id` are unchanged and remain the sentence for a card that is not in such a list. Reason: the long sentence stood in the window, in the warning corner and in the blocking message at once; the owner chose „short with reference“ (11.11.2026).
|
|
15
|
+
- **Reason line in the clarify window** (both sides): one short message per reason with a fault at or after the hobex host (`isHostUncertainReason`; key = reason in snake_case) – `split.clarify_reason_host_fault` („Grund: Störung zwischen Terminal und hobex.“), `split.clarify_reason_host_timeout`, `split.clarify_reason_internal_error`, `split.clarify_reason_approved_with_condition` – and `split.clarify_reason_terminal` („Grund: Das Terminal meldete „{text}“ (Code {code}).“) for a code without a fixed meaning. The register shows it as a grey line under the state line; the warning corner keeps only `card_payment.unclear_short`. Reason: the owner chose one sentence for the corner, but the cashier must not lose why the outcome stayed open.
|
|
16
|
+
- **hobex support** (`./payments`): `HOBEX_SUPPORT` (`phone` `+43 662 2255-88`, `display` `0662 2255-88`, `availability` `24/7`; the owner's statement of 11.11.2026, extension 88 of the hobex head office +43 662 2255-0) and the labels `hobex_help.*` (both sides) for a window of its own: the number to tap with its availability („24/7“ from `HOBEX_SUPPORT.availability`), and under „Das fragt hobex“ what hobex asks on the phone – TID, reference, amount, time, message, protocol, address, serial number (only what the register knows; a row without a value is left out) – plus „Angaben kopieren“. Meant only where hobex can help (fault at the hobex host, terminal not in operation, wrong TID, the terminal answered and does not know the outcome), never for errors in the own network or at Kasseneck Connect. Reason: the owner wanted the number in a clean window with the data support asks for, not as a bare line (12.11.2026).
|
|
17
|
+
- **HPS texts without the terminal receipt** (both sides): the hobex HPS terminal prints no receipt the cashier could check (owner, 12.11.2026). New messages `card_payment.unknown_hps`, `card_payment.unknown_with_id_hps` („… Die Karte kann belastet sein: erst klären, dann neu kassieren.“), `split.card_reverse_failed_hps`, `split.card_reverse_unknown_hps`, `split.card_already_reversed_hps` say what to do instead of where to look; the clarify lines above name hobex or a later retry. `HPS_REASON_HINTS.approvedWithCondition` now says „weiß hobex“ instead of the terminal receipt. The texts without `_hps` stay for other terminals and keep their 1.0 wording (rename guard).
|
|
18
|
+
- **Card tips in three stages:** `PosBusinessSettings.tipCardKeptMode` (`ask` | `always` | `never`, optional like `tipKeptMode`), `tipCardKeptByDefault` (the switch's default at stage `ask`) and `tipSelfPayout` (emergency off switch, missing = on). Readers `posTipCardKeptMode`, `posTipCardKeptByDefault`, `posTipSelfPayout`; `tipKeptFor(business, wanted, method)` takes a third argument `'cash' | 'card'` (default `'cash'`, unchanged behaviour) and decides the card stage from the card fields. "Kept" means for a card tip: the employee takes the amount in cash out of the drawer. The settings only take effect at accounts the backend has switched to card tips via the register (`cashregister.cardTips` at login). Reason: the owner chose the same three stages for card tips as for cash tips; the register says in one line what happens to the money.
|
|
19
|
+
- **`tipStatus(method, kept)`** (`./pos`): the one line at checkout and on the done page, keyed by payment kind and outcome (`tip.line_cash_kept` "{amount} gleich einstecken", `tip.line_cash_open` "{amount} in der Lade lassen", `tip.line_card_kept` "{amount} aus der Lade nehmen", `tip.line_card_open` "{amount} später auszahlen"); the text comes from `labelText(key, { amount })`. Reason: both registers must say the same words, and the line says what really happens, not the stage.
|
|
20
|
+
- **`getMyTipBalance({ drawerId? | cashregisterId? })`** (register path `/api/v3`, read without effect): "Mein Trinkgeld" of the logged-in person — `openCents` (negative when paid out too much), `keptTodayCents`, `claimScope` (`per_drawer` | `per_person`, `TIP_CLAIM_SCOPES`), `currency` and `otherDrawers[]`; type `TipBalance`. Only a personal login; a shared device login or the owner gets `not_a_person_login` (appended to `POS_ERROR_CODES`). Reason: every employee sees her own stand and pays herself out.
|
|
21
|
+
- **`ShiftTipTotals.cardTipsTakenCents`** (optional, sent only when not 0, part of `paidOutCents`), `shiftTipLines` prints the line `shift_receipt.tip_card_taken` "davon Kartentrinkgeld" after "schon genommen", `EXPECTED_PART_KEYS` gains `card_tips_taken` (`shift.part_card_tips_taken` "Kartentrinkgeld bar genommen", expected = … − card tips taken) and the Z-/X-receipt data carry `cardTipsTakenCents` (sum) when there is any. Shared cases in `fixtures/shift-cases.json` (two new) and the new contract file `fixtures/stored/card-tip-cases.json` (drawer arithmetic per receipt, replayed by the backend; here `tipLines` and `tipStatus`). Reason: the drawer's expected cash drops by the card tips taken in cash, and the receipt must show why.
|
|
22
|
+
- **Texts** for the done page (`done.tip_*`), "Mein Trinkgeld" (`my_tips.*`), the cancellation line `cancellation.tip_deducted` "{amount} Trinkgeld werden vom Guthaben von {name} abgezogen", the settings (`tip_card_kept_mode.title`, `tip.card_kept_setting`, `tip_self_payout.title`) and the hints `tip.card_kept_setting_hint`, `tip.self_payout_hint`, `tip.overpaid_hint`, `tip.terminal_hint`. Same wording as the backend spec.
|
|
23
|
+
- **Z-/X-receipt line for card tips taken:** `shiftReceiptLayout` prints `shift.part_card_tips_taken` "Kartentrinkgeld bar genommen" with the negative sum (`ShiftSummaryReceipt.cardTipsTakenCents`) right after "Bar aus Verkäufen", also blind (like the movements); without the field or with 0 the receipt stays byte-identical (all existing goldens unchanged). The per-person line `shift_receipt.tip_card_taken` is shortened to "davon Kartentrinkgeld" so it fits one line on 80 mm. New goldens `expected/shift-{interim,close}-card-tips.*` with their own manifest `fixtures/shift-receipts-card-tips.json` (contract case + shallow `overlay`), so `shift-receipts.json` stays byte-identical. New label `tip_payout.nothing_open` "nichts offen" (instead of "erledigt" at accounts with card tips through the register). `tip.card_kept_setting_hint` now says when "kept" works for a card tip at all (open shift, enough cash in the drawer, employee sees the drawer balance; otherwise it stays open). Reason: start + cash + movements must add up to the expected cash on the receipt, too.
|
|
24
|
+
- **Stage 3 (register surfaces):** `RegisterDeviceUsers.cashregister.cardTips` (`true` only when the account runs card tips through the register; missing otherwise, then the register stays exactly as before). `TIP_CLAIM_SCOPE_LABELS` (`per_drawer` | `per_person` -> `tip_claim_scope.*`, also in `fixtures/pos-texts.json` as `tipClaimScopeLabels`) with the title `tip_claim_scope.title` and the hint `tip_claim_scope.hint` for the customer area, and `my_tips.payout_not_allowed` for "Mein Trinkgeld" without the right to pay out. Reason: the register needs to know whether the account is switched over before it shows the card stage, the done-page line and "Mein Trinkgeld"; the customer area sets where the open claim is kept (F2).
|
|
25
|
+
- **Contract:** `fixtures/v3/*` taken over from the backend (vocabulary entries `getMyTipBalance`, `tipCardKeptMode`, `tipCardKeptByDefault`, `tipSelfPayout`, catalogs `KASSE_BETRIEB_WERTE.tipCardKeptMode`, `TRINKGELD_ANSPRUCH`, expected part `card_tips_taken`, error code `not_a_person_login`), `fixtures/surface.json` lists the call.
|
|
26
|
+
- **„genommen“ instead of „schon genommen“** (both sides, owner 12.11.2026): `shift_receipt.tip_paid_out` (X/Z receipt, cash status) now reads „genommen“, `my_tips.kept_today` „Heute genommen“, and the two keep-setting hints say „gilt als genommen“. Shorter, and the same word on the receipt, in the register, the panel and the shift PDF. Shift receipt fixtures, print goldens and the two twin byte digests of the Z receipt with take-out are redrawn; the Dart twin pulls them with the texts.
|
|
27
|
+
- `fixtures/surface.json`, `pos-texts.json`, `invoice-texts.json`, `hobex-hps-codes.json` and `invoice-api.schema.json` regenerated for the version.
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## 1.36.0 - 2026-11-11
|
|
8
31
|
|
|
9
32
|
Deposit on invoice and credit-note positions, and the EWP report (single-use deposit report) through the API key. Additive; every existing call, invoice and golden behaves as before.
|
|
10
33
|
|
|
@@ -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", "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", "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"];
|
|
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"];
|
|
33
33
|
export type PublicCall = typeof PUBLIC_CALLS[number];
|
|
34
34
|
export type PosCall = typeof POS_CALLS[number];
|
|
35
35
|
/**
|
|
@@ -160,6 +160,8 @@ exports.ALL_CALLS = [
|
|
|
160
160
|
// Leergut-Codes (Pfand, ./pos): Codes lernen und lesen; nur ueber den Kassenweg.
|
|
161
161
|
'learnMyLeergutCode',
|
|
162
162
|
'listMyLeergutCodes',
|
|
163
|
+
// „Mein Trinkgeld“ (./pos): Stand der angemeldeten Person; nur ueber den Kassenweg.
|
|
164
|
+
'getMyTipBalance',
|
|
163
165
|
// Kartenterminal am Handy: Geraet, Zugang, TID und Code (nur /v3).
|
|
164
166
|
'registerTerminalDevice',
|
|
165
167
|
'getTerminalAccess',
|
|
@@ -390,6 +392,8 @@ exports.POS_CALLS = [
|
|
|
390
392
|
// Leergut-Codes lernen und lesen: Kassen-Benutzer mit dem Recht depositReturn.
|
|
391
393
|
'learnMyLeergutCode',
|
|
392
394
|
'listMyLeergutCodes',
|
|
395
|
+
// „Mein Trinkgeld“: nur ueber den Kassenweg, nur persoenliche Anmeldung.
|
|
396
|
+
'getMyTipBalance',
|
|
393
397
|
];
|
|
394
398
|
/**
|
|
395
399
|
* Die Aufrufe **mit Wirkung**, alphabetisch: sie legen etwas an, aendern oder
|
|
@@ -549,6 +553,7 @@ exports.CALLS_WITHOUT_EFFECT = Object.freeze({
|
|
|
549
553
|
getInvoiceXml: 'read',
|
|
550
554
|
getKasseSettings: 'read',
|
|
551
555
|
getMyDrawerState: 'read',
|
|
556
|
+
getMyTipBalance: 'read',
|
|
552
557
|
getMyShiftReport: 'read',
|
|
553
558
|
getPartnerBilling: 'read',
|
|
554
559
|
getPartnerBillingMonth: 'read',
|
|
@@ -126,7 +126,7 @@ export interface TipOptions {
|
|
|
126
126
|
* Bar-Trinkgeld „gleich behalten“: die Mitarbeiterin steckt das Trinkgeld
|
|
127
127
|
* beim Verkauf gleich ein. Der Beleg bleibt, wie er ist (signiert, im DEP);
|
|
128
128
|
* nur im Kassenstand zaehlt der Betrag nicht ins Bar-Soll und gilt sofort als
|
|
129
|
-
* „
|
|
129
|
+
* „genommen“. Nur `true` geht hinaus. Der Server nimmt es nur bei
|
|
130
130
|
* Mitarbeiter-Trinkgeld, bar und sofort erhalten; sonst faellt es still weg.
|
|
131
131
|
* Vorbelegung des Schalters: [posTipKeptByDefault] der Kassen-Einstellungen.
|
|
132
132
|
*/
|
|
@@ -21,7 +21,8 @@ export { type HpsConnectCancelOptions, type HpsConnectClient, type HpsConnectCli
|
|
|
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';
|
|
24
|
-
export { type HpsCancelOptions, type HpsPaymentOptions, type HpsPayments, type HpsPaymentsOptions, type HpsRefundOptions, createHpsPayments, } from './payments.js';
|
|
24
|
+
export { type HpsCancelOptions, type HpsClarifyOptions, type HpsPaymentOptions, type HpsPayments, type HpsPaymentsOptions, type HpsRefundOptions, createHpsPayments, } from './payments.js';
|
|
25
25
|
export { MAX_TRANSACTION_ID_LENGTH, createHpsTransactionIdGenerator, isValidHpsTransactionId, newHpsTransactionId, type HpsTransactionIdGeneratorOptions, } from './transaction-id.js';
|
|
26
26
|
export { ABORTED_CODE, APP_SELECT_FAILED_CODE, APPROVED_CODE, BAD_REQUEST_CODE, CARD_DECLINED_CODE, CARD_INFO_NOT_ENTERED_CODE, CARD_NOT_PRESENT_CODE, CARD_NOT_SUPPORTED_CODE, CARD_READ_FAILED_CODE, CHIP_DATA_MISMATCH_CODE, COMPLETION_FAILED_CODE, DIAGNOSIS_FAILED_CODE, HOST_COMMUNICATION_FAILED_CODE, HOST_STEP_FAILED_CODE, HOST_TIMEOUT_REVERSED_CODE, HPS_CODES, HPS_MEASURED_CODES, HPS_REASON_HINTS, INTERNAL_ERROR_CODE, INVALID_MESSAGE_TYPE_CODE, INVALID_TID_DOCUMENTED_CODE, INVALID_TX_TYPE_CODE, MAX_RETRIES_EXCEEDED_CODE, NOT_FOUND_CODE, PASSWORD_NOT_ENTERED_CODE, REFUND_DISABLED_CODE, REFUND_PASSWORD_INVALID_CODE, SCEP_ENROLLMENT_FAILED_CODE, TERMINAL_BLOCKED_CODE, TERMINAL_BUSY_CODE, TIP_SELECTION_FAILED_CODE, UNSUPPORTED_USER_DATA_CODE, hpsCodeInfo, hpsCodeReason, isHostUncertain, isHostUncertainReason, INVALID_TRANSACTION_CODE, NOT_ABORTABLE_CODE, INVALID_AMOUNT_CODE, AMOUNT_OUT_OF_RANGE_CODE, INVALID_TID_CODE, WRONG_PIN_CODE, NO_STATEMENT_CODE, TECHNICAL_ERROR_CODE, NOT_FOUND_HTTP_STATUS, TERMINAL_BUSY_HTTP_STATUS, TRANSACTION_CANCELED_CODE, isApproved, isCanceled, isConclusive, isConclusiveAsStatus, isInProgress, isNoStatement, isNotAbortable, needsReversal, normalizeHpsCode, isTechnicalError, isUnknownCode, parseHpsTransactionResponse, type HpsCode, type HpsCodeEffect, type HpsCodeReason, type HpsCodeSource, type HpsMeasuredCode, type HpsTransactionResponse, } from './transaction-response.js';
|
|
27
27
|
export { hobexReceiptFromHps } from './receipt.js';
|
|
28
|
+
export { HOBEX_SUPPORT } from './support.js';
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.hpsCodeReason = exports.hpsCodeInfo = exports.UNSUPPORTED_USER_DATA_CODE = exports.TIP_SELECTION_FAILED_CODE = exports.TERMINAL_BUSY_CODE = exports.TERMINAL_BLOCKED_CODE = exports.SCEP_ENROLLMENT_FAILED_CODE = exports.REFUND_PASSWORD_INVALID_CODE = exports.REFUND_DISABLED_CODE = exports.PASSWORD_NOT_ENTERED_CODE = exports.NOT_FOUND_CODE = exports.MAX_RETRIES_EXCEEDED_CODE = exports.INVALID_TX_TYPE_CODE = exports.INVALID_TID_DOCUMENTED_CODE = exports.INVALID_MESSAGE_TYPE_CODE = exports.INTERNAL_ERROR_CODE = exports.HPS_REASON_HINTS = exports.HPS_MEASURED_CODES = exports.HPS_CODES = exports.HOST_TIMEOUT_REVERSED_CODE = exports.HOST_STEP_FAILED_CODE = exports.HOST_COMMUNICATION_FAILED_CODE = exports.DIAGNOSIS_FAILED_CODE = exports.COMPLETION_FAILED_CODE = exports.CHIP_DATA_MISMATCH_CODE = exports.CARD_READ_FAILED_CODE = exports.CARD_NOT_SUPPORTED_CODE = exports.CARD_NOT_PRESENT_CODE = exports.CARD_INFO_NOT_ENTERED_CODE = exports.CARD_DECLINED_CODE = exports.BAD_REQUEST_CODE = exports.APPROVED_CODE = exports.APP_SELECT_FAILED_CODE = exports.ABORTED_CODE = exports.newHpsTransactionId = exports.isValidHpsTransactionId = exports.createHpsTransactionIdGenerator = exports.MAX_TRANSACTION_ID_LENGTH = exports.createHpsPayments = exports.mayRetrySafely = exports.isHostUncertainResult = exports.TERMINAL_UNREACHABLE_CONNECT_CODES = exports.PREFLIGHT_CONNECT_CODES = exports.HpsTransactionIdError = exports.HpsPreflightError = exports.HpsConnectTransportError = exports.HpsConnectTerminalError = exports.HpsConnectException = exports.HpsClarifyTimeoutError = exports.createHpsConnectClient = void 0;
|
|
23
|
-
exports.hobexReceiptFromHps = exports.parseHpsTransactionResponse = exports.isUnknownCode = exports.isTechnicalError = exports.normalizeHpsCode = exports.needsReversal = exports.isNotAbortable = exports.isNoStatement = exports.isInProgress = exports.isConclusiveAsStatus = exports.isConclusive = exports.isCanceled = exports.isApproved = exports.TRANSACTION_CANCELED_CODE = exports.TERMINAL_BUSY_HTTP_STATUS = exports.NOT_FOUND_HTTP_STATUS = exports.TECHNICAL_ERROR_CODE = exports.NO_STATEMENT_CODE = exports.WRONG_PIN_CODE = exports.INVALID_TID_CODE = exports.AMOUNT_OUT_OF_RANGE_CODE = exports.INVALID_AMOUNT_CODE = exports.NOT_ABORTABLE_CODE = exports.INVALID_TRANSACTION_CODE = exports.isHostUncertainReason = exports.isHostUncertain = void 0;
|
|
23
|
+
exports.HOBEX_SUPPORT = exports.hobexReceiptFromHps = exports.parseHpsTransactionResponse = exports.isUnknownCode = exports.isTechnicalError = exports.normalizeHpsCode = exports.needsReversal = exports.isNotAbortable = exports.isNoStatement = exports.isInProgress = exports.isConclusiveAsStatus = exports.isConclusive = exports.isCanceled = exports.isApproved = exports.TRANSACTION_CANCELED_CODE = exports.TERMINAL_BUSY_HTTP_STATUS = exports.NOT_FOUND_HTTP_STATUS = exports.TECHNICAL_ERROR_CODE = exports.NO_STATEMENT_CODE = exports.WRONG_PIN_CODE = exports.INVALID_TID_CODE = exports.AMOUNT_OUT_OF_RANGE_CODE = exports.INVALID_AMOUNT_CODE = exports.NOT_ABORTABLE_CODE = exports.INVALID_TRANSACTION_CODE = exports.isHostUncertainReason = exports.isHostUncertain = void 0;
|
|
24
24
|
var connect_client_js_1 = require("./connect-client.js");
|
|
25
25
|
Object.defineProperty(exports, "createHpsConnectClient", { enumerable: true, get: function () { return connect_client_js_1.createHpsConnectClient; } });
|
|
26
26
|
var errors_js_1 = require("./errors.js");
|
|
@@ -104,3 +104,5 @@ Object.defineProperty(exports, "isUnknownCode", { enumerable: true, get: functio
|
|
|
104
104
|
Object.defineProperty(exports, "parseHpsTransactionResponse", { enumerable: true, get: function () { return transaction_response_js_1.parseHpsTransactionResponse; } });
|
|
105
105
|
var receipt_js_1 = require("./receipt.js");
|
|
106
106
|
Object.defineProperty(exports, "hobexReceiptFromHps", { enumerable: true, get: function () { return receipt_js_1.hobexReceiptFromHps; } });
|
|
107
|
+
var support_js_1 = require("./support.js");
|
|
108
|
+
Object.defineProperty(exports, "HOBEX_SUPPORT", { enumerable: true, get: function () { return support_js_1.HOBEX_SUPPORT; } });
|
|
@@ -48,6 +48,16 @@ export interface HpsPaymentResult {
|
|
|
48
48
|
* Terminal etwas sagte) und bei einer Aufhebung, die nicht gegriffen hat.
|
|
49
49
|
*/
|
|
50
50
|
readonly reason?: HpsCodeReason;
|
|
51
|
+
/**
|
|
52
|
+
* Gesetzt, wenn dieses Ergebnis aus einer SPAETEN Nachfrage stammt
|
|
53
|
+
* (`HpsPayments.clarifyPayment`). Ein solches Ergebnis taugt nicht als
|
|
54
|
+
* `previous` einer weiteren Nachfrage: die Vorgeschichte einer Zahlung ist
|
|
55
|
+
* das Ergebnis von `pay`, und das bleibt sie -- ein `reason` aus der
|
|
56
|
+
* Nachfrage selbst (etwa `noStatement`) sagt nichts darueber, ob die
|
|
57
|
+
* Klaerung von `pay` ein Storno nachgeschickt hat. Die Nachfrage weist ein
|
|
58
|
+
* so markiertes `previous` deshalb zurueck: keine Antwort entscheidet.
|
|
59
|
+
*/
|
|
60
|
+
readonly clarified?: true;
|
|
51
61
|
/**
|
|
52
62
|
* Verlauf der Klaerung, in Reihenfolge — der Nachweis, der im
|
|
53
63
|
* Belastungsstreit gelesen wird. Behauptet nie eine Ursache, die nicht
|
|
@@ -219,11 +219,65 @@ export interface HpsCancelOptions {
|
|
|
219
219
|
currency?: string;
|
|
220
220
|
language?: string;
|
|
221
221
|
}
|
|
222
|
+
export interface HpsClarifyOptions {
|
|
223
|
+
/** Kennung der Zahlung aus [HpsPayments.pay] -- keine Gutschrift, keine Aufhebung. */
|
|
224
|
+
transactionId: string;
|
|
225
|
+
/**
|
|
226
|
+
* Was ueber die bisherige Klaerung dieser Zahlung feststeht. Davon haengt
|
|
227
|
+
* ab, was eine Antwort des Terminals jetzt noch beweist, siehe
|
|
228
|
+
* [HpsPayments.clarifyPayment]:
|
|
229
|
+
*
|
|
230
|
+
* - das `unresolved`-Ergebnis von [HpsPayments.pay] (es zaehlen `reason` und
|
|
231
|
+
* `clarified`). NIE das Ergebnis einer Nachfrage: dessen `reason` stammt
|
|
232
|
+
* aus der Nachfrage, nicht aus der Zahlung, und wuerde eine unbekannte
|
|
233
|
+
* Vorgeschichte reinwaschen -- ein mit `clarified` markiertes Ergebnis
|
|
234
|
+
* zaehlt deshalb wie `null`;
|
|
235
|
+
* - `'beforeResolve'`: die Zahlung wurde gestartet, ihre Klaerung hat aber
|
|
236
|
+
* nie begonnen -- etwa weil die Seite waehrend des Kartenflows abriss. Es
|
|
237
|
+
* wurde dann sicher kein Storno nachgeschickt. Nur angeben, wenn das
|
|
238
|
+
* Beobachter-Ereignis `resolving` nachweislich nie kam (es wird vor dem
|
|
239
|
+
* ersten Abbruch- oder Storno-Aufruf gemeldet); im Zweifel `null`;
|
|
240
|
+
* - `null`: nicht bekannt (etwa ein Eintrag aus einer aelteren Fassung, oder
|
|
241
|
+
* die Seite riss waehrend der Klaerung ab).
|
|
242
|
+
*/
|
|
243
|
+
previous: Pick<HpsPaymentResult, 'reason' | 'clarified'> | 'beforeResolve' | null;
|
|
244
|
+
}
|
|
222
245
|
export interface HpsPayments {
|
|
223
246
|
pay(options: HpsPaymentOptions): Promise<HpsPaymentResult>;
|
|
224
247
|
/** Gutschrift, geklaert wie [pay] -- siehe Klassendoku oben. */
|
|
225
248
|
refund(options: HpsRefundOptions): Promise<HpsPaymentResult>;
|
|
226
249
|
/** Aufhebung (Storno/Void) einer bestehenden Zahlung -- eigener Klaerweg, siehe Klassendoku oben. */
|
|
227
250
|
cancel(options: HpsCancelOptions): Promise<HpsPaymentResult>;
|
|
251
|
+
/**
|
|
252
|
+
* Fragt den Ausgang einer Zahlung SPAETER noch einmal ab -- etwa wenn der
|
|
253
|
+
* Kassier eine unklare Karte klaert. Liest nur: kein Abbruch, kein Storno,
|
|
254
|
+
* kein neuer Vorgang. Das Ergebnis hat dieselbe Form wie das von [pay].
|
|
255
|
+
*
|
|
256
|
+
* Entschieden wird nur, was nach [HpsClarifyOptions.previous] feststeht
|
|
257
|
+
* ([nachfrageRegel]):
|
|
258
|
+
*
|
|
259
|
+
* | bisher | `'0'` | `9011` | andere Ablehnung |
|
|
260
|
+
* |---|---|---|---|
|
|
261
|
+
* | `'beforeResolve'`, oder offen ohne Stoerung beim Host | `approved` | `declined` | `declined` |
|
|
262
|
+
* | Stoerung beim Host, Storno sicher versucht (`hostFault`, `hostTimeout`) | offen | `declined` | offen |
|
|
263
|
+
* | andere Stoerung beim Host | offen | offen | offen |
|
|
264
|
+
* | `null` oder Ergebnis einer Nachfrage (`clarified`) | offen | offen | offen |
|
|
265
|
+
*
|
|
266
|
+
* Nach einer Stoerung beim Host kann die Klaerung von [pay] ein Storno
|
|
267
|
+
* nachgeschickt haben -- auch wenn der erste Code keines verlangte, denn
|
|
268
|
+
* ein spaeterer Status kann es noch ausloesen. Ein `'0'` beweist dann
|
|
269
|
+
* nichts (siehe Klassendoku, "Storno nach ausbleibender Host-Antwort").
|
|
270
|
+
* `9011` (aufgehoben) heisst nur dann sicher "nichts belastet", wenn ein
|
|
271
|
+
* Storno sicher versucht wurde -- wie in der Klaerung von [pay]. `9027`
|
|
272
|
+
* bleibt hier immer ohne Aussage: die Zwei-9027-Regel braucht die Antwort
|
|
273
|
+
* auf die Zahlung selbst. Meldet der Status selbst eine Stoerung beim
|
|
274
|
+
* Host, entscheidet danach nur noch `'0'`.
|
|
275
|
+
*
|
|
276
|
+
* Sagt der Status zweimal in Folge nichts, endet die Nachfrage sofort als
|
|
277
|
+
* `unresolved` -- die Zahlung ist laengst beendet, das Terminal wird es
|
|
278
|
+
* auch spaeter nicht wissen. Budget: ein Sechstel von
|
|
279
|
+
* [HpsPaymentsOptions.resolveBudgetMs] (Vorgabe 15 s).
|
|
280
|
+
*/
|
|
281
|
+
clarifyPayment(options: HpsClarifyOptions): Promise<HpsPaymentResult>;
|
|
228
282
|
}
|
|
229
283
|
export declare function createHpsPayments(client: HpsConnectClient, target: HpsConnectTarget, options?: HpsPaymentsOptions): HpsPayments;
|
|
@@ -6,6 +6,32 @@ const transaction_id_js_1 = require("./transaction-id.js");
|
|
|
6
6
|
const transaction_response_js_1 = require("./transaction-response.js");
|
|
7
7
|
/** Teiler, mit dem das Abbruchbudget aus [HpsPaymentsOptions.resolveBudgetMs] entsteht. */
|
|
8
8
|
const ABORT_BUDGET_DIVISOR = 6;
|
|
9
|
+
/** Teiler fuer das Budget von [HpsPayments.clarifyPayment]: bei der Vorgabe 15 s. */
|
|
10
|
+
const CLARIFY_BUDGET_DIVISOR = 6;
|
|
11
|
+
/**
|
|
12
|
+
* `true`, wenn die Klaerung von [HpsPayments.pay] bei diesem Grund sicher ein
|
|
13
|
+
* Storno versucht hat: der Grund kommt von der ersten Stoerung beim Host
|
|
14
|
+
* ([offenerGrund]), und JEDER Code mit diesem Grund verlangt ein Storno. Aus
|
|
15
|
+
* der Tabelle gerechnet, damit ein neuer Code ohne Storno die Regel nicht
|
|
16
|
+
* still bricht.
|
|
17
|
+
*/
|
|
18
|
+
function stornoSicherVersucht(reason) {
|
|
19
|
+
const codes = transaction_response_js_1.HPS_CODES.filter((c) => c.reason === reason);
|
|
20
|
+
return codes.length > 0 && codes.every((c) => c.sendReversal);
|
|
21
|
+
}
|
|
22
|
+
/** Siehe Tabelle an [HpsPayments.clarifyPayment]. */
|
|
23
|
+
function nachfrageRegel(previous) {
|
|
24
|
+
if (previous === null || (previous !== 'beforeResolve' && previous.clarified === true)) {
|
|
25
|
+
return { genehmigt: false, aufgehoben: false, abgelehnt: false };
|
|
26
|
+
}
|
|
27
|
+
if (previous === 'beforeResolve')
|
|
28
|
+
return { genehmigt: true, aufgehoben: true, abgelehnt: true };
|
|
29
|
+
const reason = previous.reason;
|
|
30
|
+
if (reason !== undefined && (0, transaction_response_js_1.isHostUncertainReason)(reason)) {
|
|
31
|
+
return { genehmigt: false, aufgehoben: stornoSicherVersucht(reason), abgelehnt: false };
|
|
32
|
+
}
|
|
33
|
+
return { genehmigt: true, aufgehoben: true, abgelehnt: true };
|
|
34
|
+
}
|
|
9
35
|
/**
|
|
10
36
|
* Teiler fuer das Budget des nachgeschickten Stornos: ein Drittel, bei der
|
|
11
37
|
* Vorgabe 30 s. Ein Storno geht ueber den Host und darf Sekunden brauchen.
|
|
@@ -53,6 +79,7 @@ function createHpsPayments(client, target, options = {}) {
|
|
|
53
79
|
const observer = options.observer;
|
|
54
80
|
const abortBudgetMs = Math.trunc(resolveBudgetMs / ABORT_BUDGET_DIVISOR);
|
|
55
81
|
const reversalBudgetMs = Math.trunc(resolveBudgetMs / REVERSAL_BUDGET_DIVISOR);
|
|
82
|
+
const clarifyBudgetMs = Math.trunc(resolveBudgetMs / CLARIFY_BUDGET_DIVISOR);
|
|
56
83
|
function emit(kind, message, transactionId) {
|
|
57
84
|
if (!observer)
|
|
58
85
|
return;
|
|
@@ -854,5 +881,134 @@ function createHpsPayments(client, target, options = {}) {
|
|
|
854
881
|
}
|
|
855
882
|
return resolveCancel(id, steps, res);
|
|
856
883
|
}
|
|
857
|
-
|
|
884
|
+
/**
|
|
885
|
+
* Spaete Nachfrage zu einer Zahlung, siehe [HpsPayments.clarifyPayment].
|
|
886
|
+
* Liest nur den Status -- nie ein Abbruch, nie ein Storno. Wirft wie [pay]
|
|
887
|
+
* nur [HpsPreflightError]: Connect hat die Abfrage abgewiesen, bevor sie
|
|
888
|
+
* das Terminal erreichte (etwa `terminal_unreachable`).
|
|
889
|
+
*/
|
|
890
|
+
async function clarifyPayment(clarifyOptions) {
|
|
891
|
+
const id = clarifyOptions.transactionId;
|
|
892
|
+
const previous = clarifyOptions.previous;
|
|
893
|
+
const regel = nachfrageRegel(previous);
|
|
894
|
+
// Ein Nachfrage-Ergebnis als Vorgeschichte zaehlt wie "nicht bekannt" --
|
|
895
|
+
// auch sein `reason` (siehe [HpsPaymentResult.clarified]).
|
|
896
|
+
const vorgeschichteBekannt = previous !== null && (previous === 'beforeResolve' || previous.clarified !== true);
|
|
897
|
+
const vorherGrund = vorgeschichteBekannt && typeof previous === 'object' ? previous.reason : undefined;
|
|
898
|
+
const vorherGestoert = vorherGrund !== undefined && (0, transaction_response_js_1.isHostUncertainReason)(vorherGrund);
|
|
899
|
+
const steps = [nachfrageAnfang(previous, regel)];
|
|
900
|
+
emit('resolving', steps[0], id);
|
|
901
|
+
const start = now();
|
|
902
|
+
const elapsedMs = () => now() - start;
|
|
903
|
+
let wait = 0;
|
|
904
|
+
let transportFailures = 0;
|
|
905
|
+
let ohneAussage = 0;
|
|
906
|
+
// Die erste Stoerung beim Host, die der Status in DIESER Nachfrage meldet.
|
|
907
|
+
let stoerung;
|
|
908
|
+
let letzteAntwort;
|
|
909
|
+
// Ein schluessiger Code, der hier nicht entscheiden durfte (`'0'`, `9011`, eine
|
|
910
|
+
// Ablehnung), erklaert den offenen Ausgang nicht -- sonst stuende etwa „genehmigt“
|
|
911
|
+
// als Grund an einem offenen Ergebnis (Geraetetest 11.11.2026, Vorgeschichte unbekannt).
|
|
912
|
+
const offen = () => {
|
|
913
|
+
const erklaerend = letzteAntwort && !(0, transaction_response_js_1.isConclusiveAsStatus)(letzteAntwort) ? letzteAntwort : undefined;
|
|
914
|
+
return {
|
|
915
|
+
...open(id, steps, letzteAntwort, vorherGrund ?? offenerGrund(stoerung, erklaerend)),
|
|
916
|
+
clarified: true,
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
/** Warum eine Antwort, die sonst entschiede, hier nichts sagt. */
|
|
920
|
+
const vorbehalt = () => {
|
|
921
|
+
if (!vorgeschichteBekannt)
|
|
922
|
+
return 'der bisherige Klaerweg ist nicht bekannt, ein Storno kann nachgeschickt sein';
|
|
923
|
+
if (vorherGestoert)
|
|
924
|
+
return `nach der Stoerung beim hobex-Host (${vorherGrund}) kann ein Storno nachgeschickt sein`;
|
|
925
|
+
return 'das Terminal meldet eine Stoerung beim hobex-Host';
|
|
926
|
+
};
|
|
927
|
+
while (elapsedMs() < clarifyBudgetMs) {
|
|
928
|
+
if (wait > 0) {
|
|
929
|
+
await sleep(Math.min(wait, clarifyBudgetMs - elapsedMs()));
|
|
930
|
+
if (elapsedMs() >= clarifyBudgetMs)
|
|
931
|
+
break;
|
|
932
|
+
}
|
|
933
|
+
let status;
|
|
934
|
+
try {
|
|
935
|
+
status = await withinBudget(elapsedMs, () => client.status({ ...target, transactionId: id }), clarifyBudgetMs - elapsedMs());
|
|
936
|
+
transportFailures = 0;
|
|
937
|
+
letzteAntwort = status;
|
|
938
|
+
}
|
|
939
|
+
catch (e) {
|
|
940
|
+
if (e instanceof errors_js_1.HpsPreflightError)
|
|
941
|
+
throw e;
|
|
942
|
+
transportFailures += 1;
|
|
943
|
+
steps.push(`Statusabfrage gescheitert (${transportFailures}): ${describe(e)}`);
|
|
944
|
+
noteUnexpected(e, id);
|
|
945
|
+
if (transportFailures >= maxTransportFailures) {
|
|
946
|
+
steps.push('Terminal antwortet nicht -- Ausgang bleibt offen');
|
|
947
|
+
return offen();
|
|
948
|
+
}
|
|
949
|
+
wait = nextWait(wait);
|
|
950
|
+
continue;
|
|
951
|
+
}
|
|
952
|
+
if ((0, transaction_response_js_1.isHostUncertain)(status))
|
|
953
|
+
stoerung ??= status;
|
|
954
|
+
// Wie in [resolve]: nach einer Stoerung beim Host -- vorher oder jetzt
|
|
955
|
+
// gemeldet -- entscheidet hoechstens noch die Genehmigung.
|
|
956
|
+
const gestoert = vorherGestoert || stoerung !== undefined;
|
|
957
|
+
if ((0, transaction_response_js_1.isApproved)(status)) {
|
|
958
|
+
if (regel.genehmigt) {
|
|
959
|
+
const settled = fromResponse(status, id, steps);
|
|
960
|
+
if (settled)
|
|
961
|
+
return { ...settled, clarified: true };
|
|
962
|
+
}
|
|
963
|
+
steps.push(`Status: genehmigt (${transaction_response_js_1.APPROVED_CODE}) -- ${vorbehalt()}, keine Aussage`);
|
|
964
|
+
}
|
|
965
|
+
else if ((0, transaction_response_js_1.isCanceled)(status) && regel.aufgehoben && (vorherGestoert || stoerung === undefined)) {
|
|
966
|
+
steps.push(`Status: Zahlung aufgehoben (${transaction_response_js_1.TRANSACTION_CANCELED_CODE}) -- es ist nichts belastet`);
|
|
967
|
+
emit('resolved', steps[steps.length - 1], id);
|
|
968
|
+
return { outcome: 'declined', transactionId: id, response: status, reason: 'canceled', clarified: true, steps: [...steps] };
|
|
969
|
+
}
|
|
970
|
+
else if (regel.abgelehnt && !gestoert && (0, transaction_response_js_1.isConclusiveAsStatus)(status)) {
|
|
971
|
+
const settled = fromResponse(status, id, steps);
|
|
972
|
+
if (settled)
|
|
973
|
+
return { ...settled, clarified: true };
|
|
974
|
+
}
|
|
975
|
+
else if ((0, transaction_response_js_1.isConclusiveAsStatus)(status)) {
|
|
976
|
+
const info = (0, transaction_response_js_1.hpsCodeInfo)(status.responseCode);
|
|
977
|
+
const was = (0, transaction_response_js_1.isCanceled)(status) ? 'aufgehoben' : 'abgelehnt';
|
|
978
|
+
steps.push(`Status: ${was} (${info.code} "${info.title}") -- ${vorbehalt()}, keine Aussage`);
|
|
979
|
+
}
|
|
980
|
+
else {
|
|
981
|
+
steps.push(statusOhneErgebnis(status) ?? 'Status: noch kein Ergebniscode');
|
|
982
|
+
}
|
|
983
|
+
ohneAussage += 1;
|
|
984
|
+
if (ohneAussage >= 2) {
|
|
985
|
+
steps.push('Statusabfrage zweimal ohne Aussage -- das Terminal kann es nicht sagen, Ausgang bleibt offen');
|
|
986
|
+
return offen();
|
|
987
|
+
}
|
|
988
|
+
wait = nextWait(wait);
|
|
989
|
+
}
|
|
990
|
+
steps.push('Ausgang bleibt offen');
|
|
991
|
+
return offen();
|
|
992
|
+
}
|
|
993
|
+
return { pay, refund, cancel, clarifyPayment };
|
|
994
|
+
}
|
|
995
|
+
/** Erster Eintrag im Nachweis einer spaeten Nachfrage: was sie entscheiden darf. */
|
|
996
|
+
function nachfrageAnfang(previous, regel) {
|
|
997
|
+
const anfang = 'Spaete Nachfrage beim Terminal -- nur lesend, ohne Abbruch und ohne Storno';
|
|
998
|
+
if (previous === null)
|
|
999
|
+
return `${anfang}; der bisherige Klaerweg ist nicht bekannt, keine Antwort entscheidet`;
|
|
1000
|
+
if (previous !== 'beforeResolve' && previous.clarified === true) {
|
|
1001
|
+
return `${anfang}; als Vorgeschichte kam das Ergebnis einer frueheren Nachfrage, nicht das der Zahlung -- `
|
|
1002
|
+
+ 'der Klaerweg der Zahlung bleibt unbekannt, keine Antwort entscheidet';
|
|
1003
|
+
}
|
|
1004
|
+
if (previous === 'beforeResolve') {
|
|
1005
|
+
return `${anfang}; die Klaerung der Zahlung hatte nicht begonnen, es wurde kein Storno nachgeschickt`;
|
|
1006
|
+
}
|
|
1007
|
+
if (previous.reason !== undefined && (0, transaction_response_js_1.isHostUncertainReason)(previous.reason)) {
|
|
1008
|
+
return regel.aufgehoben
|
|
1009
|
+
? `${anfang}; nach der Stoerung beim hobex-Host (${previous.reason}) wurde ein Storno versucht, `
|
|
1010
|
+
+ `entscheidet nur "aufgehoben" (${transaction_response_js_1.TRANSACTION_CANCELED_CODE})`
|
|
1011
|
+
: `${anfang}; nach der Stoerung beim hobex-Host (${previous.reason}) entscheidet keine Antwort`;
|
|
1012
|
+
}
|
|
1013
|
+
return `${anfang}; die Klaerung der Zahlung endete offen ohne Stoerung beim hobex-Host`;
|
|
858
1014
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Technik von hobex fuer Haendler mit hobex-Terminal, rund um die Uhr
|
|
3
|
+
* erreichbar. Quelle: Angabe des Inhabers am 11.11.2026 („hobex Technik
|
|
4
|
+
* 0662 225588“); es ist die Durchwahl 88 der Zentrale +43 662 2255-0 (hobex,
|
|
5
|
+
* „Zahlen & Fakten“).
|
|
6
|
+
*
|
|
7
|
+
* `phone` international (fuer einen `tel:`-Link nur Ziffern und `+` daraus
|
|
8
|
+
* nehmen), `display` so, wie man sie in Oesterreich liest und waehlt.
|
|
9
|
+
* Gedacht fuer die Stellen, an denen hobex helfen kann: Stoerung beim
|
|
10
|
+
* hobex-Host, Terminal nicht betriebsbereit, TID passt nicht, das Terminal hat
|
|
11
|
+
* geantwortet und kennt den Ausgang nicht -- nie fuer Fehler im eigenen Netz
|
|
12
|
+
* oder an Kasseneck Connect. Die Kasse zeigt sie in einem eigenen Fenster mit
|
|
13
|
+
* den Angaben, die hobex fragt (Beschriftungen `hobex_help.*` im Katalog).
|
|
14
|
+
*/
|
|
15
|
+
export declare const HOBEX_SUPPORT: Readonly<{
|
|
16
|
+
readonly phone: "+43 662 2255-88";
|
|
17
|
+
readonly display: "0662 2255-88";
|
|
18
|
+
readonly availability: "24/7";
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HOBEX_SUPPORT = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Technik von hobex fuer Haendler mit hobex-Terminal, rund um die Uhr
|
|
6
|
+
* erreichbar. Quelle: Angabe des Inhabers am 11.11.2026 („hobex Technik
|
|
7
|
+
* 0662 225588“); es ist die Durchwahl 88 der Zentrale +43 662 2255-0 (hobex,
|
|
8
|
+
* „Zahlen & Fakten“).
|
|
9
|
+
*
|
|
10
|
+
* `phone` international (fuer einen `tel:`-Link nur Ziffern und `+` daraus
|
|
11
|
+
* nehmen), `display` so, wie man sie in Oesterreich liest und waehlt.
|
|
12
|
+
* Gedacht fuer die Stellen, an denen hobex helfen kann: Stoerung beim
|
|
13
|
+
* hobex-Host, Terminal nicht betriebsbereit, TID passt nicht, das Terminal hat
|
|
14
|
+
* geantwortet und kennt den Ausgang nicht -- nie fuer Fehler im eigenen Netz
|
|
15
|
+
* oder an Kasseneck Connect. Die Kasse zeigt sie in einem eigenen Fenster mit
|
|
16
|
+
* den Angaben, die hobex fragt (Beschriftungen `hobex_help.*` im Katalog).
|
|
17
|
+
*/
|
|
18
|
+
exports.HOBEX_SUPPORT = Object.freeze({
|
|
19
|
+
phone: '+43 662 2255-88',
|
|
20
|
+
display: '0662 2255-88',
|
|
21
|
+
availability: '24/7',
|
|
22
|
+
});
|
|
@@ -59,7 +59,7 @@ const tecs_codes_js_1 = require("./tecs-codes.js");
|
|
|
59
59
|
/** Der Satz fuer den Bediener je Grund, deutsch. */
|
|
60
60
|
exports.HPS_REASON_HINTS = {
|
|
61
61
|
approved: 'Vom Terminal genehmigt.',
|
|
62
|
-
approvedWithCondition: 'Das Terminal meldet eine Genehmigung mit Vorbehalt (etwa nur über einen Teilbetrag). Ob und in welcher Höhe belastet wurde,
|
|
62
|
+
approvedWithCondition: 'Das Terminal meldet eine Genehmigung mit Vorbehalt (etwa nur über einen Teilbetrag). Ob und in welcher Höhe belastet wurde, weiß hobex – nicht erneut kassieren, bevor es geklärt ist.',
|
|
63
63
|
aborted: 'Der Vorgang wurde abgebrochen. Es wurde kein Geld bewegt.',
|
|
64
64
|
noCard: 'Es wurde keine Karte vorgehalten. Es wurde kein Geld bewegt – bitte erneut versuchen.',
|
|
65
65
|
cardReadFailed: 'Die Karte konnte nicht gelesen werden. Es wurde kein Geld bewegt – bitte erneut versuchen, notfalls die Karte stecken statt auflegen.',
|
|
@@ -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 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, 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 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';
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
* nichts zu entscheiden.
|
|
43
43
|
*/
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
-
exports.TRANSACTION_CANCELED_CODE = exports.TERMINAL_BUSY_HTTP_STATUS = exports.NOT_FOUND_HTTP_STATUS = exports.TECHNICAL_ERROR_CODE = exports.TERMINAL_UNREACHABLE_CONNECT_CODES = exports.PREFLIGHT_CONNECT_CODES = exports.parseHpsTransactionResponse = exports.NO_STATEMENT_CODE = exports.NOT_ABORTABLE_CODE = exports.newHpsTransactionId = exports.MAX_TRANSACTION_ID_LENGTH = exports.mayRetrySafely = exports.isValidHpsTransactionId = exports.isUnknownCode = exports.isTechnicalError = exports.isNotAbortable = exports.isNoStatement = exports.isInProgress = exports.isHostUncertainResult = exports.isHostUncertain = exports.isConclusiveAsStatus = exports.isConclusive = exports.isApproved = exports.INVALID_TRANSACTION_CODE = exports.HpsTransactionIdError = exports.HpsPreflightError = exports.HpsConnectTransportError = exports.HpsConnectTerminalError = exports.HpsConnectException = exports.HpsClarifyTimeoutError = exports.hobexReceiptFromHps = exports.hpsCodeReason = exports.hpsCodeInfo = exports.HPS_REASON_HINTS = exports.HPS_MEASURED_CODES = exports.HPS_CODES = exports.createHpsTransactionIdGenerator = exports.createHpsPayments = exports.createHpsConnectClient = exports.CARD_NOT_PRESENT_CODE = exports.APPROVED_CODE = exports.ABORTED_CODE = exports.newHobexTransactionId = exports.hobexRefund = exports.hobexPay = exports.stripeCaptureIntent = exports.createStripeLink = exports.StripeLinkMode = void 0;
|
|
45
|
+
exports.TRANSACTION_CANCELED_CODE = exports.TERMINAL_BUSY_HTTP_STATUS = exports.NOT_FOUND_HTTP_STATUS = exports.TECHNICAL_ERROR_CODE = exports.TERMINAL_UNREACHABLE_CONNECT_CODES = exports.PREFLIGHT_CONNECT_CODES = exports.parseHpsTransactionResponse = exports.NO_STATEMENT_CODE = exports.NOT_ABORTABLE_CODE = exports.newHpsTransactionId = exports.MAX_TRANSACTION_ID_LENGTH = exports.mayRetrySafely = exports.isValidHpsTransactionId = exports.isUnknownCode = exports.isTechnicalError = exports.isNotAbortable = exports.isNoStatement = exports.isInProgress = exports.isHostUncertainResult = exports.isHostUncertain = exports.isConclusiveAsStatus = exports.isConclusive = exports.isApproved = exports.INVALID_TRANSACTION_CODE = exports.HpsTransactionIdError = exports.HpsPreflightError = exports.HpsConnectTransportError = exports.HpsConnectTerminalError = exports.HpsConnectException = exports.HpsClarifyTimeoutError = exports.hobexReceiptFromHps = exports.hpsCodeReason = exports.hpsCodeInfo = exports.HPS_REASON_HINTS = exports.HPS_MEASURED_CODES = exports.HPS_CODES = exports.HOBEX_SUPPORT = exports.createHpsTransactionIdGenerator = exports.createHpsPayments = exports.createHpsConnectClient = exports.CARD_NOT_PRESENT_CODE = exports.APPROVED_CODE = exports.ABORTED_CODE = exports.newHobexTransactionId = exports.hobexRefund = exports.hobexPay = exports.stripeCaptureIntent = exports.createStripeLink = exports.StripeLinkMode = void 0;
|
|
46
46
|
var index_js_1 = require("../enums/index.js");
|
|
47
47
|
Object.defineProperty(exports, "StripeLinkMode", { enumerable: true, get: function () { return index_js_1.StripeLinkMode; } });
|
|
48
48
|
var stripe_js_1 = require("./stripe.js");
|
|
@@ -59,6 +59,7 @@ Object.defineProperty(exports, "CARD_NOT_PRESENT_CODE", { enumerable: true, get:
|
|
|
59
59
|
Object.defineProperty(exports, "createHpsConnectClient", { enumerable: true, get: function () { return index_js_2.createHpsConnectClient; } });
|
|
60
60
|
Object.defineProperty(exports, "createHpsPayments", { enumerable: true, get: function () { return index_js_2.createHpsPayments; } });
|
|
61
61
|
Object.defineProperty(exports, "createHpsTransactionIdGenerator", { enumerable: true, get: function () { return index_js_2.createHpsTransactionIdGenerator; } });
|
|
62
|
+
Object.defineProperty(exports, "HOBEX_SUPPORT", { enumerable: true, get: function () { return index_js_2.HOBEX_SUPPORT; } });
|
|
62
63
|
Object.defineProperty(exports, "HPS_CODES", { enumerable: true, get: function () { return index_js_2.HPS_CODES; } });
|
|
63
64
|
Object.defineProperty(exports, "HPS_MEASURED_CODES", { enumerable: true, get: function () { return index_js_2.HPS_MEASURED_CODES; } });
|
|
64
65
|
Object.defineProperty(exports, "HPS_REASON_HINTS", { enumerable: true, get: function () { return index_js_2.HPS_REASON_HINTS; } });
|
package/dist/cjs/pos/errors.d.ts
CHANGED
|
@@ -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_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", "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`. */
|
package/dist/cjs/pos/errors.js
CHANGED
package/dist/cjs/pos/index.d.ts
CHANGED
|
@@ -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, tipKeptFor, type TipKeptDecision, 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, 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_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';
|
|
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';
|
|
@@ -19,7 +19,7 @@ export { distributeDiscount } from '../receipt/discount.js';
|
|
|
19
19
|
export { cancelScopeOf, receiptsScopeOf, stockViewOf, voucherPermsOf, depositReturnOf, type VoucherPerms, type RegisterScope, type RegisterUserPerms } from '../register/pairing.js';
|
|
20
20
|
export { type NetworkPrinter, type PrintJob, type PrintJobStatus, PRINT_JOB_STATUSES, type PrintJobSource, PRINT_JOB_SOURCES, isPrintJobFinished, type CreatePrintJobOptions, listMyPrinters, createPrintJob, getPrintJob, } from './drucker.js';
|
|
21
21
|
export { type PrinterCatalogEntry, type PrinterCatalogValues, type PrinterCatalogValueField, type PrinterCatalogApproval, type PrinterDeviceTest, type PrinterCatalogSettings, type PrinterCatalogDeviceSettings, type PrinterCatalogCut, type PrinterCatalogQrMode, printerCatalogEntry, printerCatalogSettings, } from './drucker-katalog.js';
|
|
22
|
-
export { listMyTipRecipients } from './trinkgeld.js';
|
|
22
|
+
export { listMyTipRecipients, getMyTipBalance, tipStatus, type GetMyTipBalanceOptions, type TipStatus, type TipStatusKind } from './trinkgeld.js';
|
|
23
23
|
export { posDiscountPresets, discountPresetChipText, discountChipsFromPresets, checkDiscountPresets, discountBlockLines, INVALID_DISCOUNT_PRESET, DISCOUNT_PRESETS_MAX, DISCOUNT_PRESET_NAME_MAX, DISCOUNT_PRESET_PERCENT_BP, DISCOUNT_PRESET_AMOUNT_CENTS, DISCOUNT_PRESET_MESSAGES, type DiscountPresetReason, type DiscountPresetError, type DiscountPresetsCheck, type DiscountBlockLine, type DiscountTotal, } from './rabatt-vorlagen.js';
|
|
24
24
|
export { depFolderName } from './dep.js';
|
|
25
25
|
export { type RegisterInspectionInfo, type RegisterInspectionSignature, type InspectionSignatureStatus, type InspectionInfoRow, type InspectionInfoRowKey, type InspectionInfoSection, type InspectionInfoLinesOptions, getRegisterInspectionInfo, inspectionInfoRows, inspectionInfoLines, } from './kasseninfo.js';
|
|
@@ -31,9 +31,9 @@ export type { Stocktake, StocktakeItem, StocktakeCount, StocktakeCountResult, St
|
|
|
31
31
|
export type { StocktakeStatus } from '../inventory/vertrag.js';
|
|
32
32
|
export { VOUCHER_KINDS, VOUCHER_STATUSES, checkVoucher, reprintVoucherLabel, VOUCHER_SETTINGS_DEFAULTS, posVoucherSettingsFromWire, VOUCHER_PAYOUTS, VOUCHER_TYPE_KINDS, VOUCHER_AMOUNT_MODES, VOUCHER_TYPE_VALIDITY_PATTERNS, EXTERNAL_VOUCHERS, type PosExternalVouchers, type VoucherKind, type VoucherStatus, type VoucherValidity, type VoucherArticle, type VoucherCheck, type PosVoucherSettings, type PosVoucherReturnType, type VoucherPayout, type VoucherTypeKind, type PosVoucherType, type VoucherLabelTemplate, } from './gutschein.js';
|
|
33
33
|
export { type GetMyDrawerStateOptions, type OpenMyShiftOptions, type RecordMyCashMovementOptions, type DrawerOpeningEntry, type LogMyDrawerOpeningsOptions, type GetMyShiftReportOptions, type TipPayout, type CloseMyShiftOptions, type AfterCountOption, type RecordMyShiftCountOptions, getMyDrawerState, openMyShift, recordMyCashMovement, logMyDrawerOpenings, getMyShiftReport, closeMyShift, recordMyShiftCount, sumDenominations, parseCentsAllowZero, newIdempotencyKey, shiftTipLines, durationText, type ShiftTipLine, type ShiftTipLineKey, } from './schicht.js';
|
|
34
|
-
export { EUR_DENOMINATIONS, MOVEMENT_TYPES, MANUAL_MOVEMENT_TYPES, CASH_LOCATIONS, OPENING_REASONS, MANUAL_OPENING_REASONS, SHIFT_RECEIPT_KINDS, AFTER_COUNT_TYPES, type AfterCountType, type AfterCount, EXPECTED_PART_KEYS, DIFFERENCE_PART_TYPES, type ExpectedPartKey, type ShiftExpectedPart, type DifferencePartType, type ShiftDifferencePart, type LastShift, type ShiftCountResult, type EurDenomination, type MovementType, type ManualMovementType, type CashLocation, type OpeningReason, type ManualOpeningReason, type ShiftReceiptKind, type ShiftStatus, type ShiftActorRole, type Denominations, type ShiftActor, type DrawerInfo, type DrawerRights, type NonCashAmount, type ShiftTipTotals, type ShiftTip, type ShiftOwnerTip, type ShiftDiscount, type ShiftRunningTotals, type ShiftReconciliation, type Shift, type TipClaim, type DrawerOpening, type DrawerState, type CashMovement, type ShiftReceiptHeader, type ShiftReceiptMovement, type ShiftReceiptTip, type ShiftSummaryReceipt, type CashMovementReceipt, type ShiftReceipt, type OpenShiftResult, type CashMovementResult, type DrawerOpeningsResult, type ShiftReport, type CloseShiftResult, } from './schicht-typen.js';
|
|
34
|
+
export { EUR_DENOMINATIONS, MOVEMENT_TYPES, MANUAL_MOVEMENT_TYPES, CASH_LOCATIONS, OPENING_REASONS, MANUAL_OPENING_REASONS, SHIFT_RECEIPT_KINDS, AFTER_COUNT_TYPES, type AfterCountType, type AfterCount, EXPECTED_PART_KEYS, DIFFERENCE_PART_TYPES, type ExpectedPartKey, type ShiftExpectedPart, type DifferencePartType, type ShiftDifferencePart, type LastShift, type ShiftCountResult, type EurDenomination, type MovementType, type ManualMovementType, type CashLocation, type OpeningReason, type ManualOpeningReason, type ShiftReceiptKind, type ShiftStatus, type ShiftActorRole, type Denominations, type ShiftActor, type DrawerInfo, type DrawerRights, type NonCashAmount, type ShiftTipTotals, type ShiftTip, type ShiftOwnerTip, type ShiftDiscount, type ShiftRunningTotals, type ShiftReconciliation, type Shift, type TipClaim, type DrawerOpening, type DrawerState, type CashMovement, type ShiftReceiptHeader, type ShiftReceiptMovement, type ShiftReceiptTip, TIP_CLAIM_SCOPES, type TipClaimScope, type TipBalance, type TipBalanceOtherDrawer, type ShiftSummaryReceipt, type CashMovementReceipt, type ShiftReceipt, type OpenShiftResult, type CashMovementResult, type DrawerOpeningsResult, type ShiftReport, type CloseShiftResult, } from './schicht-typen.js';
|
|
35
35
|
export { type ShiftReceiptLayoutOptions, shiftReceiptLayout, cashMovementLayout } from '../receipt/shift-sheet.js';
|
|
36
36
|
export { RECEIPT_OUTPUT_KINDS, RECEIPT_OUTPUT_RESULTS, type ReceiptOutputKind, type ReceiptOutputResult } from '../models/receipt-output.js';
|
|
37
37
|
export { RETURN_DISPOSITIONS, isReturnDisposition, type ReturnDisposition } from '../models/cancellation.js';
|
|
38
|
-
export { MESSAGES, ERROR_RULES, ERROR_CODE_RULES, ERROR_OUTCOME_RULES, CALLS_WITH_EFFECT, findErrorRule, messageOutcome, messageText, messageAppliesTo, RECEIPT_EMAIL_ERROR_MESSAGES, receiptEmailErrorMessage, CANCELLATION_PAYMENT_ERROR_MESSAGES, cancellationPaymentErrorMessage, CANCELLATION_VOUCHER_ERROR_MESSAGES, cancellationErrorMessage, VOUCHER_ERROR_MESSAGES, voucherErrorMessage, DEPOSIT_ERROR_MESSAGES, depositErrorMessage, EXTERNAL_VOUCHER_TILE_MESSAGES, EXTERNAL_VOUCHER_ARTICLE_MESSAGES, externalVoucherArticleErrorMessage, EXTERNAL_VOUCHERS_LABELS, EXTERNAL_VOUCHER_KIND_LABELS, TIP_KEPT_MODE_LABELS, LABELS, labelText, RETURN_DISPOSITION_LABELS, receiptOutputLabel, type TextEntry, type MessageKey, type ErrorKind, type ErrorRule, type ErrorRuleDetail, type Surface, type ReceiptEmailMessageCode, type CancellationPaymentMessageCode, type LabelKey, } from './texte.js';
|
|
38
|
+
export { MESSAGES, ERROR_RULES, ERROR_CODE_RULES, ERROR_OUTCOME_RULES, CALLS_WITH_EFFECT, findErrorRule, messageOutcome, messageText, messageAppliesTo, RECEIPT_EMAIL_ERROR_MESSAGES, receiptEmailErrorMessage, CANCELLATION_PAYMENT_ERROR_MESSAGES, cancellationPaymentErrorMessage, CANCELLATION_VOUCHER_ERROR_MESSAGES, cancellationErrorMessage, VOUCHER_ERROR_MESSAGES, voucherErrorMessage, DEPOSIT_ERROR_MESSAGES, depositErrorMessage, EXTERNAL_VOUCHER_TILE_MESSAGES, EXTERNAL_VOUCHER_ARTICLE_MESSAGES, externalVoucherArticleErrorMessage, EXTERNAL_VOUCHERS_LABELS, EXTERNAL_VOUCHER_KIND_LABELS, TIP_KEPT_MODE_LABELS, TIP_CLAIM_SCOPE_LABELS, LABELS, labelText, RETURN_DISPOSITION_LABELS, receiptOutputLabel, type TextEntry, type MessageKey, type ErrorKind, type ErrorRule, type ErrorRuleDetail, type Surface, type ReceiptEmailMessageCode, type CancellationPaymentMessageCode, type LabelKey, } from './texte.js';
|
|
39
39
|
export { roundUpSuggestions } from './aufrunden.js';
|