@kreiseck/kasseneck-api 1.24.0 → 1.25.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 (71) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/client/receipts.d.ts +19 -0
  3. package/dist/cjs/client/receipts.js +28 -0
  4. package/dist/cjs/index.d.ts +1 -1
  5. package/dist/cjs/models/cancellation.d.ts +1 -1
  6. package/dist/cjs/models/cancellation.js +9 -0
  7. package/dist/cjs/models/index.d.ts +1 -1
  8. package/dist/cjs/models/voucher.d.ts +19 -1
  9. package/dist/cjs/models/voucher.js +2 -2
  10. package/dist/cjs/pos/gutschein.d.ts +10 -0
  11. package/dist/cjs/pos/gutschein.js +7 -0
  12. package/dist/cjs/pos/index.d.ts +2 -2
  13. package/dist/cjs/pos/index.js +3 -1
  14. package/dist/cjs/pos/texte.d.ts +48 -0
  15. package/dist/cjs/pos/texte.js +39 -1
  16. package/dist/cjs/receipt/layout.js +29 -3
  17. package/dist/cjs/stored/vokabular.d.ts +1 -1
  18. package/dist/cjs/stored/vokabular.js +9 -3
  19. package/dist/cjs/version.d.ts +1 -1
  20. package/dist/cjs/version.js +1 -1
  21. package/dist/esm/client/receipts.d.ts +19 -0
  22. package/dist/esm/client/receipts.js +28 -0
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/models/cancellation.d.ts +1 -1
  25. package/dist/esm/models/cancellation.js +9 -0
  26. package/dist/esm/models/index.d.ts +1 -1
  27. package/dist/esm/models/voucher.d.ts +19 -1
  28. package/dist/esm/models/voucher.js +2 -2
  29. package/dist/esm/pos/gutschein.d.ts +10 -0
  30. package/dist/esm/pos/gutschein.js +7 -0
  31. package/dist/esm/pos/index.d.ts +2 -2
  32. package/dist/esm/pos/index.js +1 -1
  33. package/dist/esm/pos/texte.d.ts +48 -0
  34. package/dist/esm/pos/texte.js +37 -0
  35. package/dist/esm/receipt/layout.js +29 -3
  36. package/dist/esm/stored/vokabular.d.ts +1 -1
  37. package/dist/esm/stored/vokabular.js +9 -3
  38. package/dist/esm/version.d.ts +1 -1
  39. package/dist/esm/version.js +1 -1
  40. package/fixtures/expected/voucher-return-tip.grid32.txt +32 -0
  41. package/fixtures/expected/voucher-return-tip.grid48.txt +31 -0
  42. package/fixtures/expected/voucher-return-tip.lines.json +292 -0
  43. package/fixtures/expected/voucher-return-tip.sheet32.json +218 -0
  44. package/fixtures/expected/voucher-return-tip.sheet48.json +212 -0
  45. package/fixtures/expected/voucher-return.grid32.txt +29 -0
  46. package/fixtures/expected/voucher-return.grid48.txt +28 -0
  47. package/fixtures/expected/voucher-return.lines.json +237 -0
  48. package/fixtures/expected/voucher-return.sheet32.json +200 -0
  49. package/fixtures/expected/voucher-return.sheet48.json +194 -0
  50. package/fixtures/hobex-hps-codes.json +1 -1
  51. package/fixtures/invoice-api.schema.json +1 -1
  52. package/fixtures/invoice-texts.json +1 -1
  53. package/fixtures/manifest.json +16 -0
  54. package/fixtures/pos-texts.json +41 -1
  55. package/fixtures/receipts/voucher-return-tip.json +83 -0
  56. package/fixtures/receipts/voucher-return.json +65 -0
  57. package/fixtures/surface.json +1 -1
  58. package/fixtures/v3/antworten/belege.json +1 -1
  59. package/fixtures/v3/antworten/belegmail.json +1 -1
  60. package/fixtures/v3/antworten/berichte.json +1 -1
  61. package/fixtures/v3/antworten/kasse-belege.json +1 -1
  62. package/fixtures/v3/antworten/kasse.json +46 -46
  63. package/fixtures/v3/antworten/lager.json +1 -1
  64. package/fixtures/v3/antworten/rechnungen.json +1 -1
  65. package/fixtures/v3/antworten/storno.json +1 -1
  66. package/fixtures/v3/stored/belege.json +1 -1
  67. package/fixtures/v3/stored/kasse.json +18 -18
  68. package/fixtures/v3/stored/rechnungen.json +1 -1
  69. package/fixtures/v3/v3-vokabular.json +115 -22
  70. package/fixtures/v3/zahlbetrag-faelle.json +1 -1
  71. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,19 @@ 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.25.0 - 2026-11-03
8
+
9
+ Return as voucher on cancellation (backend November 2026): instead of money, the customer gets a new multi-purpose voucher of the account's return type; the cancellation receipt stays the same as a cash cancellation. Additive; without `refundAs` requests and answers stay byte for byte as before.
10
+
11
+ - **`cancelReceipt` gains `refundAs?: 'voucher'` and `idempotencyKey?: string`.** `refundAs` needs a key (1 to 120 characters, checked before sending) and never goes together with `payments` (the server builds the refund itself; an employee tip goes back in cash). Only on the register path with a register user; the register shows the choice only when `getKasseSettings` carries `vouchers.returnType`. Reason: without a key a retried partial cancellation could create a second receipt and a second voucher.
12
+ - **`CancelReceiptResult.issuedVouchers?: ReturnIssuedVoucher[]`** and **`replayed?: true`**: the new voucher with its plain code exactly once (`fromReturn: true`); a retry with the same key returns the same receipt, the voucher without `code` and with `reprintRequired: true`. New type `ReturnIssuedVoucher`; `IssuedVoucher` gains `fromReturn?: true`.
13
+ - **`PosVoucherSettings.returnType?: PosVoucherReturnType`** (`{ typeId, typeName }`, read from `getKasseSettings` `vouchers.returnType`): present only when the return as voucher is possible (switch on, a fitting type); a malformed block leaves it out. The register shows „Als Gutschein“ only with it.
14
+ - **`Voucher.fromReturn`** (read only, a server field): the entry of the new voucher on the cancellation receipt (`action: redeem`, multi-purpose).
15
+ - **Receipt layout:** a cancellation with such an entry shows „Gesamt: -24,90 €“ like a cash cancellation and below it „Gutschein ····-2D9A -24,90 €“ instead of the payment method; a cash tip refund follows as „Barzahlung -2,00 €“. No „Zwischensumme“, no „Rest am Gutschein“. Golden receipts `voucher-return` and `voucher-return-tip` (lines, grid 32/48, sheet, print digests); all other goldens unchanged. Reason: the old rendering read like a redemption („Gutschein 24,90 €“, „Gesamt: 0,00 €“).
16
+ - **`CANCELLATION_ERROR_CODES`** gains `refund_as_invalid`, `refund_as_conflict`, `refund_as_voucher_not_available`, `refund_as_voucher_reason`, `refund_as_voucher_with_voucher`, `refund_as_voucher_no_type`, `refund_as_voucher_amount`, `idempotency_key_required` (after the tip codes, as in the contract).
17
+ - **Texts:** `cancellation.as_voucher` „Als Gutschein“, `cancellation.voucher_confirm` „{amount} als Gutschein zurückgeben“, six messages for a refusal (`cancellation.voucher_*`), mapped by code in `CANCELLATION_PAYMENT_ERROR_MESSAGES` (the invalid-input codes and `idempotency_conflict` map to `cancellation.input_rejected`).
18
+ - Contract `v3` re-fetched from the backend (refund codes in `errorCodes.cancellation`, `getKasseSettings` `vouchers.returnType`, vocabulary `refundAs`, `issuedVouchers`, `fromReturn`, `returnTypeId`, `return_issue`); `./stored` vocabulary regenerated.
19
+
7
20
  ## 1.24.0 - 2026-11-02
8
21
 
9
22
  Kasseneck Connect inventory: the register reports which Connect version runs at which register device, so Kasseneck can see who still runs an old Connect before setting a minimum version. Additive.
@@ -1,4 +1,5 @@
1
1
  import { ReceiptType, type ReceiptTypeKey, KeckPaymentMethod, type KeckPaymentMethodKey } from '../enums/index.js';
2
+ import { type ReturnIssuedVoucher } from '../models/voucher.js';
2
3
  import type { ManualReceipt } from '../models/manual-receipt.js';
3
4
  import { type Receipt, type ReceiptCompany, type ReceiptItem, type Voucher, type ReceiptSummary, type ReportMonth, type CancellationItem, type CancellationOf, type CancellationReason, type TipRefundSource, type ReturnDisposition, type ReceiptPaymentInput, type RegistrationInfo, type ReceiptEmailVia } from '../models/index.js';
4
5
  import { type ReceiptOutput, type ReceiptOutputEntryErrorCode, type ReceiptOutputLogKind, type ReceiptOutputResult } from '../models/receipt-output.js';
@@ -200,6 +201,20 @@ export type CancelReceiptOptions = {
200
201
  * aus der Lade (kein „gibt die Mitarbeiterin direkt“).
201
202
  */
202
203
  tipRefundSource?: TipRefundSource;
204
+ /**
205
+ * Rueckgabe als Gutschein (Server 2026-11): `voucher` -- statt Geld bekommt der Kunde einen neuen
206
+ * Mehrzweck-Gutschein der Rueckgabe-Sorte (`getKasseSettings` `vouchers.returnType`). Nur ueber den
207
+ * Kassenweg mit Kassen-Benutzer, nur ohne `payments` (der Server baut die Rueckzahlung selbst; ein
208
+ * Mitarbeiter-Trinkgeld geht bar zurueck). Braucht [idempotencyKey]. Den Klartext-Code liefert
209
+ * [CancelReceiptResult.issuedVouchers] genau einmal.
210
+ */
211
+ refundAs?: 'voucher';
212
+ /**
213
+ * Schluessel der Wiederholung (1 bis 120 Zeichen), Pflicht mit [refundAs]: die Kasse erzeugt ihn beim
214
+ * Oeffnen der Bestaetigung und schickt ihn bei jedem erneuten Senden mit. Gleicher Schluessel, gleicher
215
+ * Inhalt = derselbe Beleg (`replayed`), nie ein zweiter Gutschein; anderer Inhalt = `idempotency_conflict`.
216
+ */
217
+ idempotencyKey?: string;
203
218
  } & ({
204
219
  receipt: Receipt;
205
220
  cashregisterId?: string;
@@ -214,6 +229,10 @@ export interface CancelReceiptResult {
214
229
  receipt: Receipt;
215
230
  cancellationOf: CancellationOf;
216
231
  remaining: number[];
232
+ /** Nur mit `refundAs: 'voucher'`: der ausgegebene Gutschein (Klartext-Code nur beim ersten Mal). */
233
+ issuedVouchers?: ReturnIssuedVoucher[];
234
+ /** Nur bei einer Wiederholung mit demselben `idempotencyKey`: `true`, es entstand kein neuer Beleg. */
235
+ replayed?: true;
217
236
  }
218
237
  /**
219
238
  * Beleg **und** die Firmen-/Druckdaten derselben Antwort — das Ergebnis der
@@ -315,6 +315,18 @@ async function cancelReceipt(transport, options) {
315
315
  if (options.tipRefundSource !== undefined && options.refundTip === false) {
316
316
  throw new errors_js_1.KasseneckValidationError('cancelReceipt', 'tipRefundSource nur, wenn das Trinkgeld zurueckgeht (refundTip nicht false)', 'request');
317
317
  }
318
+ if (options.refundAs !== undefined) {
319
+ if (options.refundAs !== 'voucher')
320
+ throw new errors_js_1.KasseneckValidationError('cancelReceipt', 'refundAs: erlaubt ist nur voucher (oder weglassen)', 'request');
321
+ if (options.payments != null)
322
+ throw new errors_js_1.KasseneckValidationError('cancelReceipt', 'refundAs und payments gehen nicht zusammen: die Rueckzahlung baut der Server', 'request');
323
+ }
324
+ if (options.refundAs !== undefined || options.idempotencyKey !== undefined) {
325
+ const k = options.idempotencyKey;
326
+ if (typeof k !== 'string' || k.trim() === '' || k.length > BELEG_SCHLUESSEL_MAX) {
327
+ throw new errors_js_1.KasseneckValidationError('cancelReceipt', `idempotencyKey muss ein Text mit 1 bis ${BELEG_SCHLUESSEL_MAX} Zeichen sein (Pflicht mit refundAs)`, 'request');
328
+ }
329
+ }
318
330
  const altfeld = ALTE_ZAHLFELDER.find((feld) => options[feld] != null);
319
331
  if (altfeld != null) {
320
332
  throw new errors_js_1.KasseneckValidationError('cancelReceipt', `${altfeld} gibt es unter /v3 nicht mehr: Rueckzahlungen gehen als payments hinaus.`, 'request');
@@ -343,6 +355,10 @@ async function cancelReceipt(transport, options) {
343
355
  params.refundTip = options.refundTip;
344
356
  if (options.tipRefundSource !== undefined)
345
357
  params.tipRefundSource = options.tipRefundSource;
358
+ if (options.refundAs !== undefined)
359
+ params.refundAs = options.refundAs;
360
+ if (options.idempotencyKey !== undefined)
361
+ params.idempotencyKey = options.idempotencyKey;
346
362
  const daten = await transport('cancelReceipt', params);
347
363
  return (0, errors_js_1.signiertGelesen)('cancelReceipt', () => stornoAusHuelle(daten));
348
364
  }
@@ -365,6 +381,7 @@ function stornoAusHuelle(daten) {
365
381
  ...(typeof bezug.timeStamp === 'string' && bezug.timeStamp !== '' ? { timeStamp: bezug.timeStamp } : {}),
366
382
  },
367
383
  remaining: huelle.remaining,
384
+ ...rueckgabeGutscheine(daten),
368
385
  };
369
386
  }
370
387
  /** Nullbeleg (RKSV-Pruefbeleg) — ohne Positionen und ohne Zahlungsart. */
@@ -1061,3 +1078,14 @@ function paymentsExpectedCents(error) {
1061
1078
  const wert = error.details['expectedCents'];
1062
1079
  return Number.isSafeInteger(wert) ? wert : undefined;
1063
1080
  }
1081
+ /** `issuedVouchers` und `replayed` einer Storno-Antwort; nur was dasteht (ohne refundAs: nichts). */
1082
+ function rueckgabeGutscheine(daten) {
1083
+ const d = daten;
1084
+ const liste = Array.isArray(d.issuedVouchers)
1085
+ ? d.issuedVouchers.filter((v) => v !== null && typeof v === 'object' && typeof v.id === 'string')
1086
+ : null;
1087
+ return {
1088
+ ...(liste !== null ? { issuedVouchers: liste } : {}),
1089
+ ...(d.replayed === true ? { replayed: true } : {}),
1090
+ };
1091
+ }
@@ -1,5 +1,5 @@
1
1
  export { ReceiptType, type ReceiptTypeKey, VatRate, type VatRateKey, KeckPaymentMethod, type KeckPaymentMethodKey, CreditCardProvider, type CreditCardProviderKey, VoucherType, type VoucherTypeKey, VoucherAction, type VoucherActionKey, StripeLinkMode, type StripeLinkModeKey, } from './enums/index.js';
2
- export { type ReceiptItem, type ReceiptItemPayload, type ReceiptItemPayloadRead, toReceiptItemPayload, fromReceiptItemPayload, receiptItemTotalCents, receiptItemIsValid, negateReceiptItem, type TipRecipient, isTipItem, isVoucherItem, isVoucherFloatItem, type Voucher, type VoucherArticle, type IssuedVoucher, type VoucherPayload, toVoucherPayload, fromVoucherPayload, voucherIsValid, type Receipt, type RegistrationInfo, type ReceiptPayload, type ReceiptPayloadRead, toReceiptPayload, fromReceiptPayload, receiptSubSumCents, receiptSumCents, receiptValueVoucherSign, type CancellationOf, type CancellationItem, type Cancellation, type CancellationReason, type CancellationErrorCode, type CancellationStatus, type ReturnDisposition, RETURN_DISPOSITIONS, CANCELLATION_REASONS, CANCELLATION_STATUSES, CANCELLATION_ERROR_CODES, CANCELLATION_RESERVATION_MS, isCancellationReason, isReturnDisposition, isCancellationErrorCode, cancellationErrorCode, isCancellationError, cancellationFieldErrors, type CancellationFieldError, type ReceiptPayment, type ReceiptPaymentPayload, type ReceiptPaymentInput, fromReceiptPaymentPayload, toReceiptPaymentPayload, type PaymentErrorCode, PAYMENT_ERROR_CODES, isPaymentErrorCode, paymentErrorCode, isPaymentError, paymentFieldErrors, type PaymentFieldError, type ReceiptEmailErrorCode, type ReceiptEmailVia, RECEIPT_EMAIL_ERROR_CODES, RECEIPT_EMAIL_SEND_ERROR_CODES, type ReceiptEmailSendErrorCode, RECEIPT_EMAIL_VIAS, isReceiptEmailErrorCode, receiptEmailErrorCode, isReceiptEmailError, receiptEmailFieldErrors, type ReceiptEmailFieldError, RECEIPT_OUTPUT_KINDS, type ReceiptOutputKind, RECEIPT_OUTPUT_LOG_KINDS, type ReceiptOutputLogKind, RECEIPT_OUTPUT_RESULTS, type ReceiptOutputResult, RECEIPT_OUTPUT_ENTRIES_MAX, type ReceiptOutput, type ReceiptOutputActor, RECEIPT_OUTPUT_ENTRY_ERROR_CODES, type ReceiptOutputEntryErrorCode, RECEIPT_OUTPUT_ERROR_CODES, type ReceiptOutputErrorCode, isReceiptOutputErrorCode, receiptOutputErrorCode, isReceiptOutputError, receiptOutputFieldErrors, type ReceiptOutputFieldError, type ReceiptErrorCode, type ReceiptFieldError, RECEIPT_ERROR_CODES, isReceiptErrorCode, receiptErrorCode, isReceiptError, receiptFieldErrors, remainingQuantities, TIP_REFUND_SOURCES, type TipRefundSource, isTipRefundSource, openStaffTipCents, cancellationItemsForTip, cancellationCashRefundCents, asksTipRefundSource, asksRefundTip, type ReceiptCompany, type ReceiptCompanyPayload, fromReceiptCompanyPayload, receiptCompanyTaxInfo, type Cashregister, type CashregisterOnboarding, type CashregisterPayload, type CashregisterOnboardingPayload, type CashregisterAutoLogout, type CashregisterAutoLogoutPayload, fromCashregisterPayload, type ReceiptSummary, type ReceiptSummaryPayload, fromReceiptSummaryPayload, type ZeroKind, ZERO_KINDS, isZeroKind, type ReportMonth, reportMonthFromDate, previousReportMonth, nextReportMonth, reportMonthKey, reportMonthReadable, type StripeUrlSession, type StripeUrlSessionPayload, toStripeUrlSessionPayload, fromStripeUrlSessionPayload, type HobexReceipt, type HobexReceiptPayload, toHobexReceiptPayload, fromHobexReceiptPayload, hobexReceiptToCardPaymentData, hobexReceiptNeedsSignature, } from './models/index.js';
2
+ export { type ReceiptItem, type ReceiptItemPayload, type ReceiptItemPayloadRead, toReceiptItemPayload, fromReceiptItemPayload, receiptItemTotalCents, receiptItemIsValid, negateReceiptItem, type TipRecipient, isTipItem, isVoucherItem, isVoucherFloatItem, type Voucher, type VoucherArticle, type IssuedVoucher, type ReturnIssuedVoucher, type VoucherPayload, toVoucherPayload, fromVoucherPayload, voucherIsValid, type Receipt, type RegistrationInfo, type ReceiptPayload, type ReceiptPayloadRead, toReceiptPayload, fromReceiptPayload, receiptSubSumCents, receiptSumCents, receiptValueVoucherSign, type CancellationOf, type CancellationItem, type Cancellation, type CancellationReason, type CancellationErrorCode, type CancellationStatus, type ReturnDisposition, RETURN_DISPOSITIONS, CANCELLATION_REASONS, CANCELLATION_STATUSES, CANCELLATION_ERROR_CODES, CANCELLATION_RESERVATION_MS, isCancellationReason, isReturnDisposition, isCancellationErrorCode, cancellationErrorCode, isCancellationError, cancellationFieldErrors, type CancellationFieldError, type ReceiptPayment, type ReceiptPaymentPayload, type ReceiptPaymentInput, fromReceiptPaymentPayload, toReceiptPaymentPayload, type PaymentErrorCode, PAYMENT_ERROR_CODES, isPaymentErrorCode, paymentErrorCode, isPaymentError, paymentFieldErrors, type PaymentFieldError, type ReceiptEmailErrorCode, type ReceiptEmailVia, RECEIPT_EMAIL_ERROR_CODES, RECEIPT_EMAIL_SEND_ERROR_CODES, type ReceiptEmailSendErrorCode, RECEIPT_EMAIL_VIAS, isReceiptEmailErrorCode, receiptEmailErrorCode, isReceiptEmailError, receiptEmailFieldErrors, type ReceiptEmailFieldError, RECEIPT_OUTPUT_KINDS, type ReceiptOutputKind, RECEIPT_OUTPUT_LOG_KINDS, type ReceiptOutputLogKind, RECEIPT_OUTPUT_RESULTS, type ReceiptOutputResult, RECEIPT_OUTPUT_ENTRIES_MAX, type ReceiptOutput, type ReceiptOutputActor, RECEIPT_OUTPUT_ENTRY_ERROR_CODES, type ReceiptOutputEntryErrorCode, RECEIPT_OUTPUT_ERROR_CODES, type ReceiptOutputErrorCode, isReceiptOutputErrorCode, receiptOutputErrorCode, isReceiptOutputError, receiptOutputFieldErrors, type ReceiptOutputFieldError, type ReceiptErrorCode, type ReceiptFieldError, RECEIPT_ERROR_CODES, isReceiptErrorCode, receiptErrorCode, isReceiptError, receiptFieldErrors, remainingQuantities, TIP_REFUND_SOURCES, type TipRefundSource, isTipRefundSource, openStaffTipCents, cancellationItemsForTip, cancellationCashRefundCents, asksTipRefundSource, asksRefundTip, type ReceiptCompany, type ReceiptCompanyPayload, fromReceiptCompanyPayload, receiptCompanyTaxInfo, type Cashregister, type CashregisterOnboarding, type CashregisterPayload, type CashregisterOnboardingPayload, type CashregisterAutoLogout, type CashregisterAutoLogoutPayload, fromCashregisterPayload, type ReceiptSummary, type ReceiptSummaryPayload, fromReceiptSummaryPayload, type ZeroKind, ZERO_KINDS, isZeroKind, type ReportMonth, reportMonthFromDate, previousReportMonth, nextReportMonth, reportMonthKey, reportMonthReadable, type StripeUrlSession, type StripeUrlSessionPayload, toStripeUrlSessionPayload, fromStripeUrlSessionPayload, type HobexReceipt, type HobexReceiptPayload, toHobexReceiptPayload, fromHobexReceiptPayload, hobexReceiptToCardPaymentData, hobexReceiptNeedsSignature, } from './models/index.js';
3
3
  export { type AuthCredentials, type KasseneckAuth, type ApiKeyAuthOptions, type RegisterUserAuthOptions, apiKeyAuth, registerUserAuth, DEFAULT_BASE_URL, POS_BASE_URL, DEFAULT_TIMEOUT_MS, type HttpResponseLike, type HttpRequestInit, type FetchLike, type TransportOptions, type TransportBodyFields, type TransportCallOptions, type KasseneckTransport, type KasseneckBinaryTransport, type KasseneckPdfOrDataTransport, type PdfOrData, ALL_CALLS, type ApiCall, PUBLIC_CALLS, POS_CALLS, UNKNOWN_OUTCOME_CALLS, type PublicCall, type PosCall, createTransport, createBinaryTransport, createPdfOrDataTransport, createFileOrDataTransport, type FileOrData, type FileOrDataCallOptions, type KasseneckFileOrDataTransport, KasseneckApiError, KasseneckAuthError, KasseneckHttpError, KasseneckNetworkError, KasseneckValidationError, type ValidationScope, type KasseneckError, type HttpFailureReason, type CauseDigest, type ErrorOutcome, CLIENT_ERROR_CODES, type ClientErrorCode, isKasseneckApiError, isKasseneckAuthError, isKasseneckHttpError, isKasseneckNetworkError, isKasseneckValidationError, isOutcomeUnknown, type ReceiptCommonOptions, type SellReceiptOptions, type TipOptions, type TipRecipientShare, type CancelReceiptOptions, type CancelReceiptResult, type ReceiptWithCompany, sellReceipt, sellReceiptWithCompany, paymentsExpectedCents, cardRefundReference, receiptLayoutFromResult, cancelReceipt, zeroReceipt, getReceipt, getReceiptWithCompany, generateFullReceiptId, getFirstReceiptDate, listMyReceipts, type ListMyReceiptsOptions, type ReceiptList, type ReceiptListStats, listMyCashregisters, checkVoucherCombinationError, type SendReceiptEmailOptions, type SendReceiptEmailResult, sendReceiptEmail, type ReceiptOutputEntry, type LogReceiptOutputsOptions, type LogReceiptOutputsResult, type RejectedReceiptOutput, logReceiptOutputs, downloadDailyReport, downloadMonthlyReport, getCashregisterReport, type CashregisterReportPeriod, getReportV2, type ReportV2, type ReportV2Metadata, type ReportV2Options, listReceipts, listAllReceipts, fromListReceiptsSummaryPayload, listedReceiptWithCompany, LIST_RECEIPTS_VIEWS, LIST_RECEIPTS_ORDERS, LIST_RECEIPTS_LIMIT_MAX, LIST_RECEIPTS_DAYS_MAX, LIST_ALL_RECEIPTS_MAX_PAGES, LIST_RECEIPTS_ERROR_CODES, type ListReceiptsErrorCode, type ListReceiptsView, type ListReceiptsOrder, type ListReceiptsOptions, type ListReceiptsWindow, type ListReceiptsGrossByRate, type ListReceiptsSummary, type ListReceiptsDaySummary, type ListReceiptsPage, type ListedReceipt, createDepExport, getDepExport, waitForDepExport, getDepExportFile, createDepHandoverLink, revokeDepHandoverLink, DepExportTimeoutError, DepExportChecksumError, DEP_EXPORT_STATUSES, DEP_EXPORT_FILES, DEP_EXPORT_ERROR_CODES, DEP_EXPORT_FAILURES, DEP_EXPORT_POLL_START_MS, DEP_EXPORT_POLL_FACTOR, DEP_EXPORT_POLL_MAX_MS, DEP_EXPORT_WAIT_TIMEOUT_MS, DEP_EXPORT_DOWNLOAD_TIMEOUT_MS, type DepExportStatus, type DepExportFileKind, type DepExportErrorCode, type DepExportFailure, type CreateDepExportOptions, type CreateDepExportResult, type DepExportGap, type DepExportChainBreak, type DepExportFindings, type DepExportItems, type DepHandoverLinkInfo, type DepExport, type WaitForDepExportOptions, type GetDepExportFileOptions, type DepExportFile, type DepHandoverLink, type RevokedDepHandoverLink, type ListedFullReceipt, type ListReceiptsHeader, type CashboxStatus, type SignatureStatus, getCashboxStatus, getSignatureStatus, type KasseneckApi, createKasseneckApi, } from './client/index.js';
4
4
  export { type ReceiptDueTip, type ReceiptDueTipRecipient, type ReceiptDueOptions, type ReceiptDueBuckets, type ReceiptDueBreakdown, type ReceiptDueErrorReason, receiptDueCents, receiptDueBreakdown, ReceiptDueError, RECEIPT_DUE_ERROR_REASONS, isReceiptDueError, type VoucherDueInfo, type VoucherDueArticle, type VoucherDueType, type VoucherRedeemContext, voucherRedeemMaxCents, VOUCHER_ZERO_RATE_BUCKET_FROM, } from './receipt/due.js';
5
5
  export { parseServerTimeStamp, toViennaWallClock, type ViennaWallClock } from './vienna-time.js';
@@ -54,7 +54,7 @@ export declare function isReturnDisposition(value: unknown): value is ReturnDisp
54
54
  * [PAYMENT_ERROR_CODES]. Ein Code ausserhalb bleibt ueber
55
55
  * `KasseneckApiError.code` lesbar.
56
56
  */
57
- export declare const CANCELLATION_ERROR_CODES: readonly ["receipt_not_found", "receipt_type_not_cancellable", "training_receipt", "already_cancelled", "invalid_line", "quantity_exceeds_remaining", "unknown_reason", "note_too_long", "invalid_items", "cashregister_not_assigned", "not_permitted", "own_receipts_only", "cashregister_incomplete", "cancellation_failed", "cancellation_payments_required", "cancellation_refund_exceeds_payment", "cancellation_refund_reference_required", "cancellation_refund_reference_unknown", "cancellation_outcome_unknown", "invalid_return_disposition", "tip_refund_conflict", "invalid_tip_refund_source", "tip_refund_source_requires_cash", "tip_keep_not_possible_with_voucher", "account_not_found", "action_confirmation_required", "admin_required", "api_not_approved", "app_check_invalid", "app_check_missing", "cashregister_not_found", "cashregister_token_invalid", "cashregister_token_missing", "dialect_mismatch", "internal_translation_error", "live_not_enabled", "method_not_allowed", "mfa_required", "not_found", "password_change_required", "register_user_no_business", "register_user_not_allowed", "register_user_not_found", "response_translation_failed", "second_factor_required", "session_expired", "session_other_cashregister", "unauthorized", "user_disabled", "user_verification_failed", "validation", "route_missing", "response_unreadable"];
57
+ export declare const CANCELLATION_ERROR_CODES: readonly ["receipt_not_found", "receipt_type_not_cancellable", "training_receipt", "already_cancelled", "invalid_line", "quantity_exceeds_remaining", "unknown_reason", "note_too_long", "invalid_items", "cashregister_not_assigned", "not_permitted", "own_receipts_only", "cashregister_incomplete", "cancellation_failed", "cancellation_payments_required", "cancellation_refund_exceeds_payment", "cancellation_refund_reference_required", "cancellation_refund_reference_unknown", "cancellation_outcome_unknown", "invalid_return_disposition", "tip_refund_conflict", "invalid_tip_refund_source", "tip_refund_source_requires_cash", "tip_keep_not_possible_with_voucher", "refund_as_invalid", "refund_as_conflict", "refund_as_voucher_not_available", "refund_as_voucher_reason", "refund_as_voucher_with_voucher", "refund_as_voucher_no_type", "refund_as_voucher_amount", "idempotency_key_required", "account_not_found", "action_confirmation_required", "admin_required", "api_not_approved", "app_check_invalid", "app_check_missing", "cashregister_not_found", "cashregister_token_invalid", "cashregister_token_missing", "dialect_mismatch", "internal_translation_error", "live_not_enabled", "method_not_allowed", "mfa_required", "not_found", "password_change_required", "register_user_no_business", "register_user_not_allowed", "register_user_not_found", "response_translation_failed", "second_factor_required", "session_expired", "session_other_cashregister", "unauthorized", "user_disabled", "user_verification_failed", "validation", "route_missing", "response_unreadable"];
58
58
  export type CancellationErrorCode = (typeof CANCELLATION_ERROR_CODES)[number];
59
59
  export declare function isCancellationErrorCode(value: unknown): value is CancellationErrorCode;
60
60
  /** Der Code eines geworfenen Fehlers, wenn er in [CANCELLATION_ERROR_CODES] steht; sonst `undefined`. */
@@ -97,6 +97,15 @@ exports.CANCELLATION_ERROR_CODES = Object.freeze([
97
97
  'invalid_tip_refund_source', // tipRefundSource nicht drawer oder employee
98
98
  'tip_refund_source_requires_cash', // eine Quelle nur, wenn das Bargeld des Stornos das Trinkgeld deckt
99
99
  'tip_keep_not_possible_with_voucher', // refundTip false an einem Beleg mit Wertgutschein (das Trinkgeld geht mit)
100
+ // Rueckgabe als Gutschein (refundAs voucher, Server 2026-11)
101
+ 'refund_as_invalid', // refundAs ist nicht voucher
102
+ 'refund_as_conflict', // refundAs zusammen mit payments
103
+ 'refund_as_voucher_not_available', // ohne Kassen-Benutzer oder Gutscheinverkauf an der Kasse aus
104
+ 'refund_as_voucher_reason', // Grund passt nicht (nur customer_cancelled, other)
105
+ 'refund_as_voucher_with_voucher', // am Original haengt ein Gutschein mit Code
106
+ 'refund_as_voucher_no_type', // keine passende Rueckgabe-Sorte eingestellt
107
+ 'refund_as_voucher_amount', // Betrag ohne Trinkgeld ausserhalb 1,00 bis 10.000,00 Euro
108
+ 'idempotency_key_required', // refundAs ohne idempotencyKey
100
109
  // Anmeldung und Rand (errorCodes.auth ohne Partner-Zugang, errorCodes.edge)
101
110
  'account_not_found',
102
111
  'action_confirmation_required',
@@ -1,5 +1,5 @@
1
1
  export { type ReceiptItem, type ReceiptItemPayload, type ReceiptItemPayloadRead, toReceiptItemPayload, fromReceiptItemPayload, receiptItemTotalCents, receiptItemIsValid, negateReceiptItem, type TipRecipient, isTipItem, isDiscountItem, isVoucherItem, isVoucherFloatItem, } from './receipt-item.js';
2
- export { type Voucher, type VoucherArticle, type IssuedVoucher, type VoucherPayload, toVoucherPayload, fromVoucherPayload, voucherIsValid, isNewFormVoucher, voucherServerFields } from './voucher.js';
2
+ export { type Voucher, type VoucherArticle, type IssuedVoucher, type ReturnIssuedVoucher, type VoucherPayload, toVoucherPayload, fromVoucherPayload, voucherIsValid, isNewFormVoucher, voucherServerFields } from './voucher.js';
3
3
  export { type Receipt, type RegistrationInfo, type ReceiptPayload, type ReceiptPayloadRead, toReceiptPayload, fromReceiptPayload, readRegistrationInfo, receiptSubSumCents, receiptSumCents, receiptValueVoucherSign, } from './receipt.js';
4
4
  export { type CancellationOf, type CancellationItem, type Cancellation, type CancellationReason, type CancellationErrorCode, type CancellationStatus, type ReturnDisposition, RETURN_DISPOSITIONS, CANCELLATION_REASONS, CANCELLATION_STATUSES, CANCELLATION_ERROR_CODES, CANCELLATION_RESERVATION_MS, isCancellationReason, isReturnDisposition, isCancellationErrorCode, cancellationErrorCode, isCancellationError, cancellationFieldErrors, type CancellationFieldError, remainingQuantities, TIP_REFUND_SOURCES, type TipRefundSource, isTipRefundSource, openStaffTipCents, cancellationItemsForTip, cancellationCashRefundCents, asksTipRefundSource, asksRefundTip, } from './cancellation.js';
5
5
  export { type ReceiptPayment, type ReceiptPaymentPayload, type ReceiptPaymentInput, fromReceiptPaymentPayload, toReceiptPaymentPayload, } from './receipt-payment.js';
@@ -52,6 +52,11 @@ export interface Voucher {
52
52
  article?: VoucherArticle;
53
53
  balanceAfterCents?: number;
54
54
  remainingQuantityAfter?: number;
55
+ /**
56
+ * Rueckgabe als Gutschein: der Eintrag am Storno-Beleg ist die Ausgabe eines neuen Mehrzweck-
57
+ * Gutscheins statt einer Rueckzahlung (`action: redeem`). Am Bon Zahlweg statt Einloesung.
58
+ */
59
+ fromReturn?: boolean;
55
60
  taxedWith?: string;
56
61
  exempt?: boolean;
57
62
  zeroRateBucket?: boolean;
@@ -74,6 +79,8 @@ export interface IssuedVoucher {
74
79
  /** Verkauf ueber eine Sorte: ihre Kennung und ihr Name; sonst fehlen die Felder. */
75
80
  typeId?: string;
76
81
  typeName?: string;
82
+ /** Rueckgabe als Gutschein (`cancelReceipt` mit `refundAs: 'voucher'`): `true`; fehlt beim Verkauf. */
83
+ fromReturn?: true;
77
84
  validity?: {
78
85
  pattern: string;
79
86
  /** Sorte „N Jahre“: die Zahl N (Muster `1+3` fuer jedes N, die Daten gelten); fehlt sonst. */
@@ -83,6 +90,17 @@ export interface IssuedVoucher {
83
90
  validUntil: string | null;
84
91
  };
85
92
  }
93
+ /**
94
+ * Gutschein aus einer Rueckgabe in der Antwort von `cancelReceipt` (`data.issuedVouchers[]`). Beim ersten
95
+ * Mal wie [IssuedVoucher] mit Klartext-Code; bei einer Wiederholung mit demselben `idempotencyKey` ohne
96
+ * `code`, dafuer `reprintRequired: true` (der Zettel kommt dann ueber den Nachdruck).
97
+ */
98
+ export type ReturnIssuedVoucher = Omit<IssuedVoucher, 'code' | 'type' | 'index'> & {
99
+ code?: string;
100
+ type?: string;
101
+ index?: number;
102
+ reprintRequired?: true;
103
+ };
86
104
  /** Artikel eines Leistungsgutscheins, wie der Server ihn am Beleg festhaelt. */
87
105
  export interface VoucherArticle {
88
106
  id: string;
@@ -138,7 +156,7 @@ export declare function istWertVerkauf(voucher: Pick<Voucher, 'type' | 'action'
138
156
  * Felder, die nur der Server setzt; an einem Wunsch sind sie `voucher_invalid`.
139
157
  * Sortenname und Auszahlung friert der Server beim Verkauf ein (Stufe 4b).
140
158
  */
141
- export declare const GUTSCHEIN_SERVERFELDER: readonly ["voucherId", "codeSuffix", "zeroRateBucket", "voucherType", "typeName", "payout"];
159
+ export declare const GUTSCHEIN_SERVERFELDER: readonly ["voucherId", "codeSuffix", "zeroRateBucket", "voucherType", "typeName", "payout", "fromReturn"];
142
160
  /** Welche Serverfelder tragt der Gutschein (leere Liste = keines)? */
143
161
  export declare function voucherServerFields(voucher: Voucher): string[];
144
162
  export declare function toVoucherPayload(voucher: Voucher): VoucherPayload;
@@ -42,14 +42,14 @@ function istWertVerkauf(voucher) {
42
42
  * Felder, die nur der Server setzt; an einem Wunsch sind sie `voucher_invalid`.
43
43
  * Sortenname und Auszahlung friert der Server beim Verkauf ein (Stufe 4b).
44
44
  */
45
- exports.GUTSCHEIN_SERVERFELDER = ['voucherId', 'codeSuffix', 'zeroRateBucket', 'voucherType', 'typeName', 'payout'];
45
+ exports.GUTSCHEIN_SERVERFELDER = ['voucherId', 'codeSuffix', 'zeroRateBucket', 'voucherType', 'typeName', 'payout', 'fromReturn'];
46
46
  /** Welche Serverfelder tragt der Gutschein (leere Liste = keines)? */
47
47
  function voucherServerFields(voucher) {
48
48
  return exports.GUTSCHEIN_SERVERFELDER.filter((feld) => voucher[feld] != null);
49
49
  }
50
50
  const NEUE_FELDER = [
51
51
  'amountCents', 'articleId', 'quantity', 'positions', 'reason', 'typeId', 'typeName', 'payout', 'voucherType', 'voucherId', 'codeSuffix',
52
- 'vatRateBp', 'article', 'balanceAfterCents', 'remainingQuantityAfter', 'taxedWith', 'exempt', 'zeroRateBucket',
52
+ 'vatRateBp', 'article', 'balanceAfterCents', 'remainingQuantityAfter', 'taxedWith', 'exempt', 'zeroRateBucket', 'fromReturn',
53
53
  ];
54
54
  function toVoucherPayload(voucher) {
55
55
  const action = (0, enum_payload_js_1.requireEnumKey)(index_js_1.VoucherAction, voucher.action, 'Gutschein-Aktion');
@@ -153,6 +153,16 @@ export interface PosVoucherSettings {
153
153
  serviceArticles?: boolean;
154
154
  /** Standardvorlage des Etiketts (Leistungsgutschein, Notausgang); `null` ohne brauchbare Vorlage. */
155
155
  labelDefault?: VoucherLabelTemplate | null;
156
+ /**
157
+ * Sorte fuer Rueckgaben (Server 2026-11): nur gesetzt, wenn die Rueckgabe als Gutschein geht (Schalter,
158
+ * passende Sorte). Fehlt sie, zeigt die Kasse „Als Gutschein“ nicht.
159
+ */
160
+ returnType?: PosVoucherReturnType;
161
+ }
162
+ /** Sorte fuer Rueckgaben (`vouchers.returnType`): Kennung und Name. */
163
+ export interface PosVoucherReturnType {
164
+ typeId: string;
165
+ typeName: string;
156
166
  }
157
167
  /** Ohne Block `vouchers` (alter Server, Konto ohne Schalter): Verkaufen ist aus. */
158
168
  export declare const VOUCHER_SETTINGS_DEFAULTS: Readonly<PosVoucherSettings>;
@@ -82,8 +82,15 @@ function posVoucherSettingsFromWire(block) {
82
82
  types,
83
83
  serviceArticles: leistung,
84
84
  labelDefault: vorlageVomDraht(b['labelDefault']),
85
+ ...rueckgabeSorteVomDraht(b['returnType']),
85
86
  };
86
87
  }
88
+ /** `vouchers.returnType`, nur stimmig (Kennung wie eine Sorte, Name als Text); sonst fehlt es. */
89
+ function rueckgabeSorteVomDraht(roh) {
90
+ if (!istObjekt(roh) || typeof roh['typeId'] !== 'string' || !SORTE_ID.test(roh['typeId']) || typeof roh['typeName'] !== 'string')
91
+ return {};
92
+ return { returnType: { typeId: roh['typeId'], typeName: roh['typeName'] } };
93
+ }
87
94
  /** Kennung wie am Server (gutschein-core.ID_MUSTER): reservierte `__…__` gibt es nie als Sorte. */
88
95
  const SORTE_ID = /^(?!__.*__$)[A-Za-z0-9_-]{1,128}$/;
89
96
  /** Grenzen des Servers (gutschein-core.pruefeSorte): Fixbetrag 1,00 bis 10.000,00 €, Gueltigkeit 1 bis 30 Jahre. */
@@ -21,10 +21,10 @@ export { STOCK_LOCATION_TYPES, type StockLocationType, type StockLocation, type
21
21
  export { type ListMyStocktakesOptions, type ListMyStocktakeItemsOptions, type ListMyStocktakeCountsOptions, type RecordMyStocktakeCountOptions, type VoidMyStocktakeCountOptions, listMyStocktakes, listMyStocktakeItems, listMyStocktakeCounts, recordMyStocktakeCount, voidMyStocktakeCount, parseQuantityMilli, } from './inventur.js';
22
22
  export type { Stocktake, StocktakeItem, StocktakeCount, StocktakeCountResult, StocktakeItemPage, StocktakeCountPage, StocktakeActor, StocktakeProgress, StocktakeReview, StocktakeRecount, StocktakeScope, } from '../inventory/typen.js';
23
23
  export type { StocktakeStatus } from '../inventory/vertrag.js';
24
- export { VOUCHER_KINDS, VOUCHER_STATUSES, checkVoucher, reprintVoucherLabel, VOUCHER_SETTINGS_DEFAULTS, posVoucherSettingsFromWire, VOUCHER_PAYOUTS, VOUCHER_TYPE_KINDS, VOUCHER_AMOUNT_MODES, VOUCHER_TYPE_VALIDITY_PATTERNS, type VoucherKind, type VoucherStatus, type VoucherValidity, type VoucherArticle, type VoucherCheck, type PosVoucherSettings, type VoucherPayout, type VoucherTypeKind, type PosVoucherType, type VoucherLabelTemplate, } from './gutschein.js';
24
+ export { VOUCHER_KINDS, VOUCHER_STATUSES, checkVoucher, reprintVoucherLabel, VOUCHER_SETTINGS_DEFAULTS, posVoucherSettingsFromWire, VOUCHER_PAYOUTS, VOUCHER_TYPE_KINDS, VOUCHER_AMOUNT_MODES, VOUCHER_TYPE_VALIDITY_PATTERNS, 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';
25
25
  export { type GetMyDrawerStateOptions, type OpenMyShiftOptions, type RecordMyCashMovementOptions, type DrawerOpeningEntry, type LogMyDrawerOpeningsOptions, type GetMyShiftReportOptions, type TipPayout, type CloseMyShiftOptions, type AfterCountOption, getMyDrawerState, openMyShift, recordMyCashMovement, logMyDrawerOpenings, getMyShiftReport, closeMyShift, sumDenominations, parseCentsAllowZero, newIdempotencyKey, shiftTipLines, durationText, type ShiftTipLine, type ShiftTipLineKey, } from './schicht.js';
26
26
  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, 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 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';
27
27
  export { type ShiftReceiptLayoutOptions, shiftReceiptLayout, cashMovementLayout } from '../receipt/shift-sheet.js';
28
28
  export { RECEIPT_OUTPUT_KINDS, RECEIPT_OUTPUT_RESULTS, type ReceiptOutputKind, type ReceiptOutputResult } from '../models/receipt-output.js';
29
29
  export { RETURN_DISPOSITIONS, isReturnDisposition, type ReturnDisposition } from '../models/cancellation.js';
30
- 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, VOUCHER_ERROR_MESSAGES, voucherErrorMessage, 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';
30
+ 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, 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';
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  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 = exports.TERMINAL_VIA = exports.PRINTER_TYPE = exports.TILE_HEIGHT = exports.CATEGORY_POSITION = exports.LAYOUT = exports.RECEIPT_OUTPUT = exports.CARD_PROVIDER = exports.CHECKOUT_MODE = 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.posTipKeptByDefault = 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
4
  exports.getMyDrawerState = 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.reportConnectState = exports.inspectionInfoLines = exports.inspectionInfoRows = exports.getRegisterInspectionInfo = exports.depFolderName = exports.listMyTipRecipients = exports.getPrintJob = exports.createPrintJob = exports.listMyPrinters = exports.isPrintJobFinished = exports.PRINT_JOB_SOURCES = exports.PRINT_JOB_STATUSES = 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.allowedQuantity = exports.quantityDefaults = void 0;
5
- exports.receiptOutputLabel = exports.RETURN_DISPOSITION_LABELS = exports.labelText = exports.LABELS = exports.voucherErrorMessage = exports.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.AFTER_COUNT_TYPES = exports.SHIFT_RECEIPT_KINDS = 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.closeMyShift = exports.getMyShiftReport = exports.logMyDrawerOpenings = exports.recordMyCashMovement = exports.openMyShift = void 0;
5
+ exports.receiptOutputLabel = exports.RETURN_DISPOSITION_LABELS = exports.labelText = exports.LABELS = 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.AFTER_COUNT_TYPES = exports.SHIFT_RECEIPT_KINDS = 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.closeMyShift = exports.getMyShiftReport = exports.logMyDrawerOpenings = exports.recordMyCashMovement = exports.openMyShift = void 0;
6
6
  /**
7
7
  * Kachel-Kasse: Einstellungen, Artikelgruppen/Artikel fuer Kacheln,
8
8
  * Rabattverteilung, Drucker, Trinkgeld-Empfaenger, Lager (Standorte, Bestand,
@@ -179,6 +179,8 @@ Object.defineProperty(exports, "RECEIPT_EMAIL_ERROR_MESSAGES", { enumerable: tru
179
179
  Object.defineProperty(exports, "receiptEmailErrorMessage", { enumerable: true, get: function () { return texte_js_1.receiptEmailErrorMessage; } });
180
180
  Object.defineProperty(exports, "CANCELLATION_PAYMENT_ERROR_MESSAGES", { enumerable: true, get: function () { return texte_js_1.CANCELLATION_PAYMENT_ERROR_MESSAGES; } });
181
181
  Object.defineProperty(exports, "cancellationPaymentErrorMessage", { enumerable: true, get: function () { return texte_js_1.cancellationPaymentErrorMessage; } });
182
+ Object.defineProperty(exports, "CANCELLATION_VOUCHER_ERROR_MESSAGES", { enumerable: true, get: function () { return texte_js_1.CANCELLATION_VOUCHER_ERROR_MESSAGES; } });
183
+ Object.defineProperty(exports, "cancellationErrorMessage", { enumerable: true, get: function () { return texte_js_1.cancellationErrorMessage; } });
182
184
  Object.defineProperty(exports, "VOUCHER_ERROR_MESSAGES", { enumerable: true, get: function () { return texte_js_1.VOUCHER_ERROR_MESSAGES; } });
183
185
  Object.defineProperty(exports, "voucherErrorMessage", { enumerable: true, get: function () { return texte_js_1.voucherErrorMessage; } });
184
186
  Object.defineProperty(exports, "LABELS", { enumerable: true, get: function () { return texte_js_1.LABELS; } });
@@ -319,6 +319,24 @@ declare const MELDUNGEN_ROH: {
319
319
  readonly 'cancellation.tip_refunded_with_voucher': {
320
320
  readonly text: "Beleg mit Gutschein: Das Trinkgeld wird mitstorniert.";
321
321
  };
322
+ readonly 'cancellation.voucher_not_available': {
323
+ readonly text: "Als Gutschein geht hier nicht – bitte wie bezahlt zurückgeben.";
324
+ };
325
+ readonly 'cancellation.voucher_reason': {
326
+ readonly text: "Als Gutschein nur bei „Kunde hat storniert“ oder „Sonstiges“.";
327
+ };
328
+ readonly 'cancellation.voucher_with_voucher': {
329
+ readonly text: "Dieser Beleg hat einen Gutschein – bitte wie bezahlt zurückgeben.";
330
+ };
331
+ readonly 'cancellation.voucher_no_type': {
332
+ readonly text: "Keine Gutschein-Sorte für Rückgaben eingestellt – bitte wie bezahlt zurückgeben.";
333
+ };
334
+ readonly 'cancellation.voucher_amount': {
335
+ readonly text: "Dieser Betrag geht nicht als Gutschein – bitte wie bezahlt zurückgeben.";
336
+ };
337
+ readonly 'cancellation.voucher_type_changed': {
338
+ readonly text: "Die Gutschein-Sorte für Rückgaben hat sich geändert – bitte erneut versuchen.";
339
+ };
322
340
  readonly 'voucher_error.not_found': {
323
341
  readonly text: "Diesen Gutschein gibt es in diesem Betrieb nicht.";
324
342
  };
@@ -1109,6 +1127,29 @@ export type CancellationPaymentMessageCode = keyof typeof CANCELLATION_PAYMENT_E
1109
1127
  * `cancellation.failed` auf – wie bei `receiptEmailErrorMessage`.
1110
1128
  */
1111
1129
  export declare function cancellationPaymentErrorMessage(code: string | undefined | null): MessageKey;
1130
+ /**
1131
+ * Storno mit Rueckgabe als Gutschein (`refundAs: 'voucher'`, 1.25.0): welcher `code` welchen Satz bekommt.
1132
+ * Eigene Tabelle neben CANCELLATION_PAYMENT_ERROR_MESSAGES (die bleibt der Stand der 0.x-Linie); die Codes
1133
+ * fuer abgelehnte Eingaben und `idempotency_conflict` teilen sich `cancellation.input_rejected`.
1134
+ */
1135
+ export declare const CANCELLATION_VOUCHER_ERROR_MESSAGES: {
1136
+ readonly refund_as_voucher_not_available: "cancellation.voucher_not_available";
1137
+ readonly refund_as_voucher_reason: "cancellation.voucher_reason";
1138
+ readonly refund_as_voucher_with_voucher: "cancellation.voucher_with_voucher";
1139
+ readonly refund_as_voucher_no_type: "cancellation.voucher_no_type";
1140
+ readonly refund_as_voucher_amount: "cancellation.voucher_amount";
1141
+ readonly voucher_type_not_found: "cancellation.voucher_type_changed";
1142
+ readonly voucher_amount_mismatch: "cancellation.voucher_type_changed";
1143
+ readonly refund_as_invalid: "cancellation.input_rejected";
1144
+ readonly refund_as_conflict: "cancellation.input_rejected";
1145
+ readonly idempotency_key_required: "cancellation.input_rejected";
1146
+ readonly idempotency_conflict: "cancellation.input_rejected";
1147
+ };
1148
+ /**
1149
+ * Der Satz zu einem `code` eines Stornos: zuerst die Rueckgabe als Gutschein, dann die Storno-Zahlungen,
1150
+ * sonst `cancellation.failed`. Fuer die Kassen der eine Weg beim Storno.
1151
+ */
1152
+ export declare function cancellationErrorMessage(code: string | undefined | null): MessageKey;
1112
1153
  /**
1113
1154
  * Gutschein-Fehler (`/v3`): welcher `code` des Backends welchen Satz bekommt.
1114
1155
  * Wie RECEIPT_EMAIL_ERROR_MESSAGES: beide Kassen entscheiden am Code. Ein
@@ -1387,6 +1428,13 @@ declare const BESCHRIFTUNGEN_ROH: {
1387
1428
  readonly 'cancellation.all_cash': {
1388
1429
  readonly text: "Alles bar";
1389
1430
  };
1431
+ readonly 'cancellation.as_voucher': {
1432
+ readonly text: "Als Gutschein";
1433
+ };
1434
+ readonly 'cancellation.voucher_confirm': {
1435
+ readonly text: "{amount} als Gutschein zurückgeben";
1436
+ readonly placeholders: readonly ["amount"];
1437
+ };
1390
1438
  readonly 'cancellation.payment_remainder': {
1391
1439
  readonly text: "Rest {amount}";
1392
1440
  readonly placeholders: readonly ["amount"];
@@ -22,11 +22,12 @@
22
22
  * `placeholders` und `structure`).
23
23
  */
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.RETURN_DISPOSITION_LABELS = exports.LABELS = exports.VOUCHER_ERROR_MESSAGES = exports.CANCELLATION_PAYMENT_ERROR_MESSAGES = exports.RECEIPT_EMAIL_ERROR_MESSAGES = exports.CALLS_WITH_EFFECT = exports.ERROR_OUTCOME_RULES = exports.ERROR_CODE_RULES = exports.ERROR_RULES = exports.MESSAGES = void 0;
25
+ exports.RETURN_DISPOSITION_LABELS = exports.LABELS = exports.VOUCHER_ERROR_MESSAGES = exports.CANCELLATION_VOUCHER_ERROR_MESSAGES = exports.CANCELLATION_PAYMENT_ERROR_MESSAGES = exports.RECEIPT_EMAIL_ERROR_MESSAGES = exports.CALLS_WITH_EFFECT = exports.ERROR_OUTCOME_RULES = exports.ERROR_CODE_RULES = exports.ERROR_RULES = exports.MESSAGES = void 0;
26
26
  exports.findErrorRule = findErrorRule;
27
27
  exports.messageOutcome = messageOutcome;
28
28
  exports.receiptEmailErrorMessage = receiptEmailErrorMessage;
29
29
  exports.cancellationPaymentErrorMessage = cancellationPaymentErrorMessage;
30
+ exports.cancellationErrorMessage = cancellationErrorMessage;
30
31
  exports.voucherErrorMessage = voucherErrorMessage;
31
32
  exports.receiptOutputLabel = receiptOutputLabel;
32
33
  exports.labelText = labelText;
@@ -189,6 +190,14 @@ const MELDUNGEN_ROH = {
189
190
  'cancellation.tip_source_missing': { text: 'Bitte wählen: Woher kommt das Trinkgeld zurück?' },
190
191
  // Beleg mit Wertgutschein: keine Frage, das Trinkgeld geht mit (Ruling R59, asksRefundTip).
191
192
  'cancellation.tip_refunded_with_voucher': { text: 'Beleg mit Gutschein: Das Trinkgeld wird mitstorniert.' },
193
+ // Rueckgabe als Gutschein (refundAs voucher): die Kasse zeigt „Als Gutschein“ nur, wenn es geht; diese
194
+ // Saetze sind fuer den seltenen Fall, dass der Server trotzdem ablehnt.
195
+ 'cancellation.voucher_not_available': { text: 'Als Gutschein geht hier nicht – bitte wie bezahlt zurückgeben.' },
196
+ 'cancellation.voucher_reason': { text: 'Als Gutschein nur bei „Kunde hat storniert“ oder „Sonstiges“.' },
197
+ 'cancellation.voucher_with_voucher': { text: 'Dieser Beleg hat einen Gutschein – bitte wie bezahlt zurückgeben.' },
198
+ 'cancellation.voucher_no_type': { text: 'Keine Gutschein-Sorte für Rückgaben eingestellt – bitte wie bezahlt zurückgeben.' },
199
+ 'cancellation.voucher_amount': { text: 'Dieser Betrag geht nicht als Gutschein – bitte wie bezahlt zurückgeben.' },
200
+ 'cancellation.voucher_type_changed': { text: 'Die Gutschein-Sorte für Rückgaben hat sich geändert – bitte erneut versuchen.' },
192
201
  // --- Gutscheine: Fehlersätze (Zuordnung in VOUCHER_ERROR_MESSAGES) ---------
193
202
  'voucher_error.not_found': { text: 'Diesen Gutschein gibt es in diesem Betrieb nicht.' },
194
203
  'voucher_error.invalid': { text: 'Dieser Gutschein ist nicht gültig.' },
@@ -633,6 +642,32 @@ function cancellationPaymentErrorMessage(code) {
633
642
  const fehler = exports.CANCELLATION_PAYMENT_ERROR_MESSAGES;
634
643
  return (code !== undefined && code !== null && fehler[code]) || 'cancellation.failed';
635
644
  }
645
+ /**
646
+ * Storno mit Rueckgabe als Gutschein (`refundAs: 'voucher'`, 1.25.0): welcher `code` welchen Satz bekommt.
647
+ * Eigene Tabelle neben CANCELLATION_PAYMENT_ERROR_MESSAGES (die bleibt der Stand der 0.x-Linie); die Codes
648
+ * fuer abgelehnte Eingaben und `idempotency_conflict` teilen sich `cancellation.input_rejected`.
649
+ */
650
+ exports.CANCELLATION_VOUCHER_ERROR_MESSAGES = {
651
+ refund_as_voucher_not_available: 'cancellation.voucher_not_available',
652
+ refund_as_voucher_reason: 'cancellation.voucher_reason',
653
+ refund_as_voucher_with_voucher: 'cancellation.voucher_with_voucher',
654
+ refund_as_voucher_no_type: 'cancellation.voucher_no_type',
655
+ refund_as_voucher_amount: 'cancellation.voucher_amount',
656
+ voucher_type_not_found: 'cancellation.voucher_type_changed',
657
+ voucher_amount_mismatch: 'cancellation.voucher_type_changed',
658
+ refund_as_invalid: 'cancellation.input_rejected',
659
+ refund_as_conflict: 'cancellation.input_rejected',
660
+ idempotency_key_required: 'cancellation.input_rejected',
661
+ idempotency_conflict: 'cancellation.input_rejected',
662
+ };
663
+ /**
664
+ * Der Satz zu einem `code` eines Stornos: zuerst die Rueckgabe als Gutschein, dann die Storno-Zahlungen,
665
+ * sonst `cancellation.failed`. Fuer die Kassen der eine Weg beim Storno.
666
+ */
667
+ function cancellationErrorMessage(code) {
668
+ const gutschein = exports.CANCELLATION_VOUCHER_ERROR_MESSAGES;
669
+ return (code !== undefined && code !== null && gutschein[code]) || cancellationPaymentErrorMessage(code);
670
+ }
636
671
  /**
637
672
  * Gutschein-Fehler (`/v3`): welcher `code` des Backends welchen Satz bekommt.
638
673
  * Wie RECEIPT_EMAIL_ERROR_MESSAGES: beide Kassen entscheiden am Code. Ein
@@ -778,6 +813,9 @@ const BESCHRIFTUNGEN_ROH = {
778
813
  'cancellation.as_paid': { text: 'wie bezahlt' },
779
814
  'cancellation.cash': { text: 'bar' },
780
815
  'cancellation.all_cash': { text: 'Alles bar' },
816
+ // Rueckgabe als Gutschein: dritte Wahl in „Wie zurückgeben?“ und die Bestaetigung.
817
+ 'cancellation.as_voucher': { text: 'Als Gutschein' },
818
+ 'cancellation.voucher_confirm': { text: '{amount} als Gutschein zurückgeben', placeholders: ['amount'] },
781
819
  'cancellation.payment_remainder': { text: 'Rest {amount}', placeholders: ['amount'] },
782
820
  'cancellation.difference': { text: 'Differenz' },
783
821
  // --- Storno mit oder ohne Trinkgeld (Schichten-Spec, Nachtrag 5) -----------
@@ -480,6 +480,27 @@ function zahlungsZeilen(receipt) {
480
480
  }
481
481
  return zeilen;
482
482
  }
483
+ /** Eintrag einer Rueckgabe als Gutschein: nur am Storno-Beleg, Mehrzweck (`value`), `redeem` mit `fromReturn`. */
484
+ function istRueckgabeGutschein(voucher) {
485
+ return voucher.fromReturn === true && voucher.action === index_js_1.VoucherAction.redeem && voucher.type === index_js_1.VoucherType.value;
486
+ }
487
+ /**
488
+ * Zahlwege einer Rueckgabe als Gutschein, je mit Betrag (8:4): zuerst jeder neue Gutschein
489
+ * „Gutschein ····-XXXX“ | „-24,90 €“, dann jede Zahlung ausser 0 Cent (Mitarbeiter-Trinkgeld bar zurueck)
490
+ * „Barzahlung“ | „-2,00 €“.
491
+ */
492
+ function rueckgabeZahlungsZeilen(receipt, rueckgaben) {
493
+ const zeilen = rueckgaben.map((v) => {
494
+ const endung = gutscheinEndung(v);
495
+ return paarZeile(endung != null ? `Gutschein ····-${endung}` : 'Gutschein', `${formatCents(-(v.valueCents ?? 0))} €`, 8, 4);
496
+ });
497
+ for (const zahlung of receipt.payments ?? []) {
498
+ if (zahlung.amountCents === 0)
499
+ continue;
500
+ zeilen.push(paarZeile(zahlungsartText(zahlung.method), `${formatCents(zahlung.amountCents)} €`, 8, 4));
501
+ }
502
+ return zeilen;
503
+ }
483
504
  // -------------------------------------------------------- Kleinunternehmer
484
505
  /**
485
506
  * Hinweis auf die Steuerbefreiung, den ein Kleinunternehmerbeleg tragen muss —
@@ -1266,12 +1287,17 @@ function buildReceiptLayout(receipt, company, options = {}) {
1266
1287
  }
1267
1288
  lines.push({ kind: 'rule', char: '-' });
1268
1289
  // --- Summen
1269
- const summeCents = (0, index_js_2.receiptSumCents)(receipt);
1290
+ // Rueckgabe als Gutschein (Storno, `fromReturn`): der neue Gutschein ist der Zahlweg der Rueckgabe, keine
1291
+ // Einloesung. „Gesamt“ zeigt wie beim Bar-Storno den Betrag der Waren, darunter „Gutschein ····-XXXX“ mit
1292
+ // dem Minus statt „Barzahlung“ (Spec 2026-11-02, A.5).
1293
+ const rueckgaben = receipt.vouchers.filter(istRueckgabeGutschein);
1294
+ const rueckgabeCents = rueckgaben.reduce((summe, v) => summe + (v.valueCents ?? 0), 0);
1295
+ const summeCents = (0, index_js_2.receiptSumCents)(receipt) - rueckgabeCents;
1270
1296
  const zwischensummeCents = (0, index_js_2.receiptSubSumCents)(receipt);
1271
1297
  if (summeCents !== zwischensummeCents) {
1272
1298
  lines.push(paarZeile('Zwischensumme', `${formatCents(zwischensummeCents)} €`));
1273
1299
  for (const voucher of receipt.vouchers) {
1274
- if (voucher.type !== index_js_1.VoucherType.value || voucher.zeroRateBucket === true)
1300
+ if (voucher.type !== index_js_1.VoucherType.value || voucher.zeroRateBucket === true || istRueckgabeGutschein(voucher))
1275
1301
  continue;
1276
1302
  if (voucher.action !== index_js_1.VoucherAction.redeem && voucher.action !== index_js_1.VoucherAction.payout)
1277
1303
  continue;
@@ -1292,7 +1318,7 @@ function buildReceiptLayout(receipt, company, options = {}) {
1292
1318
  lines.push({ kind: 'rule', char: '-' });
1293
1319
  }
1294
1320
  lines.push(paarZeile('Gesamt:', `${formatCents(summeCents)} €`));
1295
- lines.push(...zahlungsZeilen(receipt));
1321
+ lines.push(...(rueckgaben.length > 0 ? rueckgabeZahlungsZeilen(receipt, rueckgaben) : zahlungsZeilen(receipt)));
1296
1322
  lines.push({ kind: 'space', lines: 1 });
1297
1323
  // --- Rechtshinweise und Ausfallhinweis
1298
1324
  const hinweise = company.isSmallBusiness
@@ -1,5 +1,5 @@
1
1
  /** Fingerabdruck des Vertrags-Exports, aus dem diese Datei stammt (`_quelle.sha256`). */
2
- export declare const VOKABULAR_QUELLE = "d0d80190bd87c82b9a1037f6898059a51d56bb89a3fef6747c503b0b028cedce";
2
+ export declare const VOKABULAR_QUELLE = "44d12486b6108ca8c040230f317438b21c7761477fa1a9a7d6a65b28a5444e32";
3
3
  /** Schema-Notation des Vertrags: Blatt 'aussen': 'innen', Objekt { __: 'innen', ... }, Liste [ { __: 'innen', ... } ]. */
4
4
  export type SchemaEintrag = string | SchemaObjekt | readonly [SchemaObjekt];
5
5
  export interface SchemaObjekt {
@@ -4,7 +4,7 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.KATALOGE = exports.ARTIKEL_FELDER = exports.SCHEMAS = exports.VOKABULAR_QUELLE = void 0;
6
6
  /** Fingerabdruck des Vertrags-Exports, aus dem diese Datei stammt (`_quelle.sha256`). */
7
- exports.VOKABULAR_QUELLE = "d0d80190bd87c82b9a1037f6898059a51d56bb89a3fef6747c503b0b028cedce";
7
+ exports.VOKABULAR_QUELLE = "44d12486b6108ca8c040230f317438b21c7761477fa1a9a7d6a65b28a5444e32";
8
8
  /** Schema je Endpunkt (aussen -> innen) und Wertverweise auf die Kataloge. */
9
9
  exports.SCHEMAS = {
10
10
  "getReceipt": {
@@ -73,7 +73,8 @@ exports.SCHEMAS = {
73
73
  "redeemableUntil": "einloesbarBis",
74
74
  "refundableUntil": "rueckzahlbarBis",
75
75
  "validUntil": "gueltigBis"
76
- }
76
+ },
77
+ "fromReturn": "rueckgabe"
77
78
  }
78
79
  ],
79
80
  "outputs": [
@@ -285,7 +286,12 @@ exports.SCHEMAS = {
285
286
  "soldCount": "verkauft"
286
287
  }
287
288
  ],
288
- "serviceArticles": "leistungsArtikel"
289
+ "serviceArticles": "leistungsArtikel",
290
+ "returnType": {
291
+ "__": "rueckgabe",
292
+ "typeId": "sorteId",
293
+ "typeName": "sorteName"
294
+ }
289
295
  },
290
296
  "connect": {
291
297
  "__": "connect",
@@ -4,4 +4,4 @@
4
4
  * Client-Version, Nachtrag §6). Ein Test haelt sie gleich mit `package.json`;
5
5
  * beim Anheben der Version beide Stellen aendern.
6
6
  */
7
- export declare const PACKAGE_VERSION = "1.24.0";
7
+ export declare const PACKAGE_VERSION = "1.25.0";
@@ -7,4 +7,4 @@ exports.PACKAGE_VERSION = void 0;
7
7
  * Client-Version, Nachtrag §6). Ein Test haelt sie gleich mit `package.json`;
8
8
  * beim Anheben der Version beide Stellen aendern.
9
9
  */
10
- exports.PACKAGE_VERSION = '1.24.0';
10
+ exports.PACKAGE_VERSION = '1.25.0';