@kreiseck/kasseneck-api 1.36.0 → 1.38.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 (226) hide show
  1. package/CHANGELOG.md +45 -1
  2. package/README.md +16 -0
  3. package/dist/cjs/client/aufrufe.d.ts +2 -2
  4. package/dist/cjs/client/aufrufe.js +5 -0
  5. package/dist/cjs/client/receipts.d.ts +1 -1
  6. package/dist/cjs/index.d.ts +1 -1
  7. package/dist/cjs/index.js +6 -5
  8. package/dist/cjs/invoice/texte.d.ts +18 -1
  9. package/dist/cjs/invoice/texte.js +43 -2
  10. package/dist/cjs/invoice/vertrag.d.ts +1 -1
  11. package/dist/cjs/invoice/vertrag.js +1 -0
  12. package/dist/cjs/models/cancellation.d.ts +1 -1
  13. package/dist/cjs/models/cancellation.js +2 -0
  14. package/dist/cjs/models/index.d.ts +2 -1
  15. package/dist/cjs/models/index.js +6 -3
  16. package/dist/cjs/models/invoice-payment-ref.d.ts +42 -0
  17. package/dist/cjs/models/invoice-payment-ref.js +38 -0
  18. package/dist/cjs/models/receipt-item.d.ts +10 -2
  19. package/dist/cjs/models/receipt-item.js +14 -1
  20. package/dist/cjs/models/receipt.d.ts +7 -0
  21. package/dist/cjs/models/receipt.js +6 -0
  22. package/dist/cjs/payments/hobex-hps/index.d.ts +2 -1
  23. package/dist/cjs/payments/hobex-hps/index.js +3 -1
  24. package/dist/cjs/payments/hobex-hps/outcome.d.ts +10 -0
  25. package/dist/cjs/payments/hobex-hps/payments.d.ts +54 -0
  26. package/dist/cjs/payments/hobex-hps/payments.js +157 -1
  27. package/dist/cjs/payments/hobex-hps/support.d.ts +19 -0
  28. package/dist/cjs/payments/hobex-hps/support.js +22 -0
  29. package/dist/cjs/payments/hobex-hps/transaction-response.js +1 -1
  30. package/dist/cjs/payments/index.d.ts +1 -1
  31. package/dist/cjs/payments/index.js +2 -1
  32. package/dist/cjs/pos/errors.d.ts +1 -1
  33. package/dist/cjs/pos/errors.js +1 -0
  34. package/dist/cjs/pos/index.d.ts +4 -4
  35. package/dist/cjs/pos/index.js +13 -5
  36. package/dist/cjs/pos/schicht-lesen.d.ts +3 -1
  37. package/dist/cjs/pos/schicht-lesen.js +28 -1
  38. package/dist/cjs/pos/schicht-typen.d.ts +50 -4
  39. package/dist/cjs/pos/schicht-typen.js +7 -2
  40. package/dist/cjs/pos/schicht.d.ts +6 -4
  41. package/dist/cjs/pos/schicht.js +6 -3
  42. package/dist/cjs/pos/settings.d.ts +37 -8
  43. package/dist/cjs/pos/settings.js +34 -10
  44. package/dist/cjs/pos/texte.d.ts +262 -4
  45. package/dist/cjs/pos/texte.js +157 -7
  46. package/dist/cjs/pos/trinkgeld.d.ts +30 -0
  47. package/dist/cjs/pos/trinkgeld.js +30 -0
  48. package/dist/cjs/receipt/index.d.ts +1 -0
  49. package/dist/cjs/receipt/index.js +4 -2
  50. package/dist/cjs/receipt/layout.d.ts +2 -2
  51. package/dist/cjs/receipt/layout.js +106 -117
  52. package/dist/cjs/receipt/shift-sheet.js +12 -2
  53. package/dist/cjs/receipt/vermerke.d.ts +80 -0
  54. package/dist/cjs/receipt/vermerke.js +167 -0
  55. package/dist/cjs/register/pairing.d.ts +4 -0
  56. package/dist/cjs/register/pairing.js +2 -0
  57. package/dist/cjs/stored/draht.js +25 -1
  58. package/dist/cjs/stored/vokabular.d.ts +1 -1
  59. package/dist/cjs/stored/vokabular.js +32 -2
  60. package/dist/cjs/version.d.ts +1 -1
  61. package/dist/cjs/version.js +1 -1
  62. package/dist/esm/client/aufrufe.d.ts +2 -2
  63. package/dist/esm/client/aufrufe.js +5 -0
  64. package/dist/esm/client/receipts.d.ts +1 -1
  65. package/dist/esm/index.d.ts +1 -1
  66. package/dist/esm/index.js +1 -1
  67. package/dist/esm/invoice/texte.d.ts +18 -1
  68. package/dist/esm/invoice/texte.js +43 -2
  69. package/dist/esm/invoice/vertrag.d.ts +1 -1
  70. package/dist/esm/invoice/vertrag.js +1 -0
  71. package/dist/esm/models/cancellation.d.ts +1 -1
  72. package/dist/esm/models/cancellation.js +2 -0
  73. package/dist/esm/models/index.d.ts +2 -1
  74. package/dist/esm/models/index.js +2 -1
  75. package/dist/esm/models/invoice-payment-ref.d.ts +42 -0
  76. package/dist/esm/models/invoice-payment-ref.js +35 -0
  77. package/dist/esm/models/receipt-item.d.ts +10 -2
  78. package/dist/esm/models/receipt-item.js +13 -1
  79. package/dist/esm/models/receipt.d.ts +7 -0
  80. package/dist/esm/models/receipt.js +6 -0
  81. package/dist/esm/payments/hobex-hps/index.d.ts +2 -1
  82. package/dist/esm/payments/hobex-hps/index.js +1 -0
  83. package/dist/esm/payments/hobex-hps/outcome.d.ts +10 -0
  84. package/dist/esm/payments/hobex-hps/payments.d.ts +54 -0
  85. package/dist/esm/payments/hobex-hps/payments.js +158 -2
  86. package/dist/esm/payments/hobex-hps/support.d.ts +19 -0
  87. package/dist/esm/payments/hobex-hps/support.js +19 -0
  88. package/dist/esm/payments/hobex-hps/transaction-response.js +1 -1
  89. package/dist/esm/payments/index.d.ts +1 -1
  90. package/dist/esm/payments/index.js +1 -1
  91. package/dist/esm/pos/errors.d.ts +1 -1
  92. package/dist/esm/pos/errors.js +1 -0
  93. package/dist/esm/pos/index.d.ts +4 -4
  94. package/dist/esm/pos/index.js +5 -5
  95. package/dist/esm/pos/schicht-lesen.d.ts +3 -1
  96. package/dist/esm/pos/schicht-lesen.js +27 -1
  97. package/dist/esm/pos/schicht-typen.d.ts +50 -4
  98. package/dist/esm/pos/schicht-typen.js +6 -1
  99. package/dist/esm/pos/schicht.d.ts +6 -4
  100. package/dist/esm/pos/schicht.js +6 -3
  101. package/dist/esm/pos/settings.d.ts +37 -8
  102. package/dist/esm/pos/settings.js +30 -9
  103. package/dist/esm/pos/texte.d.ts +262 -4
  104. package/dist/esm/pos/texte.js +156 -6
  105. package/dist/esm/pos/trinkgeld.d.ts +30 -0
  106. package/dist/esm/pos/trinkgeld.js +28 -0
  107. package/dist/esm/receipt/index.d.ts +1 -0
  108. package/dist/esm/receipt/index.js +1 -0
  109. package/dist/esm/receipt/layout.d.ts +2 -2
  110. package/dist/esm/receipt/layout.js +103 -113
  111. package/dist/esm/receipt/shift-sheet.js +12 -2
  112. package/dist/esm/receipt/vermerke.d.ts +80 -0
  113. package/dist/esm/receipt/vermerke.js +155 -0
  114. package/dist/esm/register/pairing.d.ts +4 -0
  115. package/dist/esm/register/pairing.js +2 -0
  116. package/dist/esm/stored/draht.js +25 -1
  117. package/dist/esm/stored/vokabular.d.ts +1 -1
  118. package/dist/esm/stored/vokabular.js +32 -2
  119. package/dist/esm/version.d.ts +1 -1
  120. package/dist/esm/version.js +1 -1
  121. package/fixtures/duplicate-cases.json +1 -1
  122. package/fixtures/expected/duplicate.shift-close.hex +1 -1
  123. package/fixtures/expected/invoice-payment-cancellation.grid32.txt +28 -0
  124. package/fixtures/expected/invoice-payment-cancellation.grid48.txt +26 -0
  125. package/fixtures/expected/invoice-payment-cancellation.lines.json +189 -0
  126. package/fixtures/expected/invoice-payment-cancellation.sheet32.json +194 -0
  127. package/fixtures/expected/invoice-payment-cancellation.sheet48.json +182 -0
  128. package/fixtures/expected/invoice-payment-manual-receipt.grid32.txt +30 -0
  129. package/fixtures/expected/invoice-payment-manual-receipt.grid48.txt +29 -0
  130. package/fixtures/expected/invoice-payment-manual-receipt.lines.json +199 -0
  131. package/fixtures/expected/invoice-payment-manual-receipt.sheet32.json +206 -0
  132. package/fixtures/expected/invoice-payment-manual-receipt.sheet48.json +200 -0
  133. package/fixtures/expected/invoice-payment-normal.grid32.txt +22 -0
  134. package/fixtures/expected/invoice-payment-normal.grid48.txt +21 -0
  135. package/fixtures/expected/invoice-payment-normal.lines.json +192 -0
  136. package/fixtures/expected/invoice-payment-normal.sheet32.json +158 -0
  137. package/fixtures/expected/invoice-payment-normal.sheet48.json +152 -0
  138. package/fixtures/expected/invoice-payment-outage.grid32.txt +23 -0
  139. package/fixtures/expected/invoice-payment-outage.grid48.txt +21 -0
  140. package/fixtures/expected/invoice-payment-outage.lines.json +172 -0
  141. package/fixtures/expected/invoice-payment-outage.sheet32.json +164 -0
  142. package/fixtures/expected/invoice-payment-outage.sheet48.json +152 -0
  143. package/fixtures/expected/invoice-payment-partial.grid32.txt +20 -0
  144. package/fixtures/expected/invoice-payment-partial.grid48.txt +20 -0
  145. package/fixtures/expected/invoice-payment-partial.lines.json +162 -0
  146. package/fixtures/expected/invoice-payment-partial.sheet32.json +146 -0
  147. package/fixtures/expected/invoice-payment-partial.sheet48.json +146 -0
  148. package/fixtures/expected/invoice-payment-refund.grid32.txt +20 -0
  149. package/fixtures/expected/invoice-payment-refund.grid48.txt +20 -0
  150. package/fixtures/expected/invoice-payment-refund.lines.json +162 -0
  151. package/fixtures/expected/invoice-payment-refund.sheet32.json +146 -0
  152. package/fixtures/expected/invoice-payment-refund.sheet48.json +146 -0
  153. package/fixtures/expected/invoice-payment-see-invoice.grid32.txt +22 -0
  154. package/fixtures/expected/invoice-payment-see-invoice.grid48.txt +21 -0
  155. package/fixtures/expected/invoice-payment-see-invoice.lines.json +192 -0
  156. package/fixtures/expected/invoice-payment-see-invoice.sheet32.json +158 -0
  157. package/fixtures/expected/invoice-payment-see-invoice.sheet48.json +152 -0
  158. package/fixtures/expected/invoice-payment-training.grid32.txt +30 -0
  159. package/fixtures/expected/invoice-payment-training.grid48.txt +27 -0
  160. package/fixtures/expected/invoice-payment-training.lines.json +183 -0
  161. package/fixtures/expected/invoice-payment-training.sheet32.json +206 -0
  162. package/fixtures/expected/invoice-payment-training.sheet48.json +188 -0
  163. package/fixtures/expected/invoice-payment-without-vat.grid32.txt +20 -0
  164. package/fixtures/expected/invoice-payment-without-vat.grid48.txt +19 -0
  165. package/fixtures/expected/invoice-payment-without-vat.lines.json +162 -0
  166. package/fixtures/expected/invoice-payment-without-vat.sheet32.json +146 -0
  167. package/fixtures/expected/invoice-payment-without-vat.sheet48.json +140 -0
  168. package/fixtures/expected/invoice-payment-zero-percent.grid32.txt +22 -0
  169. package/fixtures/expected/invoice-payment-zero-percent.grid48.txt +21 -0
  170. package/fixtures/expected/invoice-payment-zero-percent.lines.json +192 -0
  171. package/fixtures/expected/invoice-payment-zero-percent.sheet32.json +158 -0
  172. package/fixtures/expected/invoice-payment-zero-percent.sheet48.json +152 -0
  173. package/fixtures/expected/shift-close-card-tips.grid32.txt +44 -0
  174. package/fixtures/expected/shift-close-card-tips.grid48.txt +40 -0
  175. package/fixtures/expected/shift-close-card-tips.lines.json +479 -0
  176. package/fixtures/expected/shift-close-put-in.grid32.txt +1 -1
  177. package/fixtures/expected/shift-close-put-in.grid48.txt +1 -1
  178. package/fixtures/expected/shift-close-put-in.lines.json +1 -1
  179. package/fixtures/expected/shift-close-take-out.grid32.txt +1 -1
  180. package/fixtures/expected/shift-close-take-out.grid48.txt +1 -1
  181. package/fixtures/expected/shift-close-take-out.lines.json +1 -1
  182. package/fixtures/expected/shift-close.grid32.txt +1 -1
  183. package/fixtures/expected/shift-close.grid48.txt +1 -1
  184. package/fixtures/expected/shift-close.lines.json +1 -1
  185. package/fixtures/expected/shift-interim-card-tips.grid32.txt +34 -0
  186. package/fixtures/expected/shift-interim-card-tips.grid48.txt +31 -0
  187. package/fixtures/expected/shift-interim-card-tips.lines.json +344 -0
  188. package/fixtures/hobex-hps-codes.json +2 -2
  189. package/fixtures/invoice-api.schema.json +3 -2
  190. package/fixtures/invoice-texts.json +37 -3
  191. package/fixtures/manifest.json +80 -0
  192. package/fixtures/pos-message-cases.json +3 -0
  193. package/fixtures/pos-texts.json +313 -3
  194. package/fixtures/receipt-due-generated.json +3 -3
  195. package/fixtures/receipt-due-voucher-generated.json +5 -5
  196. package/fixtures/receipts/invoice-payment-cancellation.json +70 -0
  197. package/fixtures/receipts/invoice-payment-manual-receipt.json +69 -0
  198. package/fixtures/receipts/invoice-payment-normal.json +65 -0
  199. package/fixtures/receipts/invoice-payment-outage.json +63 -0
  200. package/fixtures/receipts/invoice-payment-partial.json +63 -0
  201. package/fixtures/receipts/invoice-payment-refund.json +63 -0
  202. package/fixtures/receipts/invoice-payment-see-invoice.json +65 -0
  203. package/fixtures/receipts/invoice-payment-training.json +63 -0
  204. package/fixtures/receipts/invoice-payment-without-vat.json +63 -0
  205. package/fixtures/receipts/invoice-payment-zero-percent.json +65 -0
  206. package/fixtures/renames-1.0.json +10 -0
  207. package/fixtures/shift-ablauf-cases.json +4 -4
  208. package/fixtures/shift-cases.json +4 -2
  209. package/fixtures/shift-receipts-card-tips.json +73 -0
  210. package/fixtures/shift-receipts.json +9 -9
  211. package/fixtures/stored/card-tip-cases.json +132 -0
  212. package/fixtures/surface.json +23 -6
  213. package/fixtures/v3/antworten/belege.json +2 -2
  214. package/fixtures/v3/antworten/belegmail.json +2 -2
  215. package/fixtures/v3/antworten/berichte.json +2 -2
  216. package/fixtures/v3/antworten/kasse-belege.json +2 -2
  217. package/fixtures/v3/antworten/kasse.json +247 -127
  218. package/fixtures/v3/antworten/lager.json +1 -1
  219. package/fixtures/v3/antworten/rechnungen.json +2 -2
  220. package/fixtures/v3/antworten/storno.json +2 -2
  221. package/fixtures/v3/stored/belege.json +2 -2
  222. package/fixtures/v3/stored/kasse.json +3 -3
  223. package/fixtures/v3/stored/rechnungen.json +2 -2
  224. package/fixtures/v3/v3-vokabular.json +264 -21
  225. package/fixtures/v3/zahlbetrag-faelle.json +2 -2
  226. package/package.json +1 -1
@@ -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", "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"];
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", "invoice_payment_not_cancellable", "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`. */
@@ -90,6 +90,8 @@ export const CANCELLATION_ERROR_CODES = Object.freeze([
90
90
  'refund_as_voucher_no_type', // keine passende Rueckgabe-Sorte eingestellt
91
91
  'refund_as_voucher_amount', // Betrag ohne Trinkgeld ausserhalb 1,00 bis 10.000,00 Euro
92
92
  'idempotency_key_required', // refundAs ohne idempotencyKey
93
+ // Zahlung auf Rechnung (Server 2026-11): ein Zahlungsbeleg wird nur im Kundenbereich bei der Rechnung storniert
94
+ 'invoice_payment_not_cancellable', // Original ist ein Zahlungsbeleg (Positionen invoice_payment)
93
95
  // Anmeldung und Rand (errorCodes.auth ohne Partner-Zugang, errorCodes.edge)
94
96
  'account_not_found',
95
97
  'action_confirmation_required',
@@ -1,4 +1,4 @@
1
- export { type ReceiptItem, type ReceiptItemPayload, type ReceiptItemPayloadRead, toReceiptItemPayload, fromReceiptItemPayload, receiptItemTotalCents, receiptItemIsValid, negateReceiptItem, type TipRecipient, isTipItem, isDiscountItem, isVoucherItem, isVoucherFloatItem, isDepositItem, isDepositReturnItem, } from './receipt-item.js';
1
+ export { type ReceiptItem, type ReceiptItemPayload, type ReceiptItemPayloadRead, toReceiptItemPayload, fromReceiptItemPayload, receiptItemTotalCents, receiptItemIsValid, negateReceiptItem, type TipRecipient, isTipItem, isDiscountItem, isVoucherItem, isVoucherFloatItem, isDepositItem, isDepositReturnItem, isInvoicePaymentItem, } from './receipt-item.js';
2
2
  export { type Voucher, type VoucherArticle, type IssuedVoucher, type ReturnIssuedVoucher, type VoucherPayload, toVoucherPayload, fromVoucherPayload, voucherIsValid, isNewFormVoucher, voucherServerFields, type VoucherSource, type LegacyValueVoucherWish, VOUCHER_SOURCES, isExternalVoucher, externalVoucherIsValid, normalizeExternalVoucherNumber, checkExternalVoucherNumber, type ExternalVoucherNumberCheck, ownVoucherCodeShape, OWN_VOUCHER_CODE_SHAPES, type OwnVoucherCodeShape, EXTERNAL_VOUCHER_NUMBER_MAX, EXTERNAL_VOUCHER_TAXED_WITH_MAX, EXTERNAL_VOUCHER_VAT_RATES_BP, } 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';
@@ -11,6 +11,7 @@ export { type ReceiptCompany, type ReceiptCompanyPayload, fromReceiptCompanyPayl
11
11
  export { type Cashregister, type CashregisterOnboarding, type CashregisterPayload, type CashregisterOnboardingPayload, type CashregisterAutoLogout, type CashregisterAutoLogoutPayload, fromCashregisterPayload, } from './cashregister.js';
12
12
  export { type ReceiptSummary, type ReceiptSummaryPayload, fromReceiptSummaryPayload, type ZeroKind, ZERO_KINDS, isZeroKind } from './receipt-summary.js';
13
13
  export { type ManualReceipt, type ManualReceiptReason, MANUAL_RECEIPT_REASONS, readManualReceipt, type ManualReceiptErrorCode, MANUAL_RECEIPT_ERROR_CODES, isManualReceiptErrorCode, } from './manual-receipt.js';
14
+ export { type InvoicePaymentRef, type InvoicePaymentTaxNote, readInvoicePaymentRefs } from './invoice-payment-ref.js';
14
15
  export { type ReportMonth, reportMonthFromDate, previousReportMonth, nextReportMonth, reportMonthKey, reportMonthReadable, } from './report-month.js';
15
16
  export { type StripeUrlSession, type StripeUrlSessionPayload, toStripeUrlSessionPayload, fromStripeUrlSessionPayload, } from './stripe-url-session.js';
16
17
  export { type HobexReceipt, type HobexReceiptPayload, toHobexReceiptPayload, fromHobexReceiptPayload, hobexReceiptToCardPaymentData, hobexReceiptNeedsSignature, } from './hobex-receipt.js';
@@ -1,4 +1,4 @@
1
- export { toReceiptItemPayload, fromReceiptItemPayload, receiptItemTotalCents, receiptItemIsValid, negateReceiptItem, isTipItem, isDiscountItem, isVoucherItem, isVoucherFloatItem, isDepositItem, isDepositReturnItem, } from './receipt-item.js';
1
+ export { toReceiptItemPayload, fromReceiptItemPayload, receiptItemTotalCents, receiptItemIsValid, negateReceiptItem, isTipItem, isDiscountItem, isVoucherItem, isVoucherFloatItem, isDepositItem, isDepositReturnItem, isInvoicePaymentItem, } from './receipt-item.js';
2
2
  export { toVoucherPayload, fromVoucherPayload, voucherIsValid, isNewFormVoucher, voucherServerFields, VOUCHER_SOURCES, isExternalVoucher, externalVoucherIsValid, normalizeExternalVoucherNumber, checkExternalVoucherNumber, ownVoucherCodeShape, OWN_VOUCHER_CODE_SHAPES, EXTERNAL_VOUCHER_NUMBER_MAX, EXTERNAL_VOUCHER_TAXED_WITH_MAX, EXTERNAL_VOUCHER_VAT_RATES_BP, } from './voucher.js';
3
3
  export { toReceiptPayload, fromReceiptPayload, readRegistrationInfo, receiptSubSumCents, receiptSumCents, receiptValueVoucherSign, } from './receipt.js';
4
4
  export { RETURN_DISPOSITIONS, CANCELLATION_REASONS, CANCELLATION_STATUSES, CANCELLATION_ERROR_CODES, CANCELLATION_RESERVATION_MS, isCancellationReason, isReturnDisposition, isCancellationErrorCode, cancellationErrorCode, isCancellationError, cancellationFieldErrors, remainingQuantities, TIP_REFUND_SOURCES, isTipRefundSource, openStaffTipCents, cancellationItemsForTip, cancellationCashRefundCents, asksTipRefundSource, asksRefundTip, } from './cancellation.js';
@@ -11,6 +11,7 @@ export { fromReceiptCompanyPayload, receiptCompanyTaxInfo, } from './receipt-com
11
11
  export { fromCashregisterPayload, } from './cashregister.js';
12
12
  export { fromReceiptSummaryPayload, ZERO_KINDS, isZeroKind } from './receipt-summary.js';
13
13
  export { MANUAL_RECEIPT_REASONS, readManualReceipt, MANUAL_RECEIPT_ERROR_CODES, isManualReceiptErrorCode, } from './manual-receipt.js';
14
+ export { readInvoicePaymentRefs } from './invoice-payment-ref.js';
14
15
  export { reportMonthFromDate, previousReportMonth, nextReportMonth, reportMonthKey, reportMonthReadable, } from './report-month.js';
15
16
  export { toStripeUrlSessionPayload, fromStripeUrlSessionPayload, } from './stripe-url-session.js';
16
17
  export { toHobexReceiptPayload, fromHobexReceiptPayload, hobexReceiptToCardPaymentData, hobexReceiptNeedsSignature, } from './hobex-receipt.js';
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Zahlung auf Rechnung (`invoicePayments` am Beleg, Backend `rechnungszahlung`):
3
+ * Ein Zahlungsbeleg nimmt in der Kasse Geld fuer eine oder mehrere Rechnungen
4
+ * entgegen (bar oder mit Karte vor Ort) bzw. gibt es zu einer Gutschrift
5
+ * zurueck. Seine Positionen tragen `kind: 'invoice_payment'` und zaehlen im
6
+ * RKSV-Feld „Null“; die Umsatzsteuer steht auf der Rechnung, nicht am Beleg.
7
+ *
8
+ * Je Rechnung ein Bezug, in der Reihenfolge der Positionen (eine Zeile je
9
+ * Rechnung). Der Bezug ist nicht signiert (wie `cancellationOf`), die
10
+ * Rechnungsnummer steht zusaetzlich im Text der Position.
11
+ *
12
+ * Nur der Server legt solche Belege an; dieses Paket liest sie nur.
13
+ */
14
+ export interface InvoicePaymentRef {
15
+ invoiceId: string;
16
+ /** Nummer der Rechnung bzw. Gutschrift aus ihrem Rechnungskreis (`2026-0042`). */
17
+ invoiceNumber: string;
18
+ /** Kennung des Zahlungseintrags an der Rechnung. */
19
+ paymentId: string;
20
+ customerId: string | null;
21
+ /** Betrag dieser Zeile in Cent; bei einer Rueckzahlung zu einer Gutschrift negativ. */
22
+ amountCents: number;
23
+ /** Teilzahlung: weniger als der Rechnungsbetrag. */
24
+ partial: boolean;
25
+ /** Zahlungstag `YYYY-MM-DD` (Wiener Tag), `null` wenn unbekannt. */
26
+ paidOn: string | null;
27
+ /**
28
+ * Steuerhinweis unter der Position: `incl_vat` (die Rechnung weist Umsatzsteuer aus), `zero_percent`
29
+ * (steuerfrei oder nicht steuerbar) oder `see_invoice` (Reverse Charge). Fehlt er, steht kein Hinweis.
30
+ */
31
+ taxNote?: InvoicePaymentTaxNote;
32
+ }
33
+ /** Werte von [InvoicePaymentRef.taxNote] (gespeichert `inkl_ust` | `null_prozent` | `siehe_rechnung`). */
34
+ export type InvoicePaymentTaxNote = 'incl_vat' | 'zero_percent' | 'see_invoice';
35
+ /**
36
+ * Liest `invoicePayments` vom Draht. Ein Eintrag ohne Rechnungs-ID, Nummer,
37
+ * Zahlungs-ID oder ganzzahligen Betrag faellt weg (lesen tolerant, der Beleg
38
+ * bleibt anzeigbar); ohne brauchbaren Eintrag gibt es keinen Bezug
39
+ * (`undefined`). Ein unbekannter oder fehlender `taxNote` ergibt keinen
40
+ * Hinweis: ein Beleg behauptet nie eine Steuer, die er nicht kennt.
41
+ */
42
+ export declare function readInvoicePaymentRefs(roh: unknown): InvoicePaymentRef[] | undefined;
@@ -0,0 +1,35 @@
1
+ const STEUERHINWEISE = ['incl_vat', 'zero_percent', 'see_invoice'];
2
+ const istText = (w) => typeof w === 'string' && w !== '';
3
+ /**
4
+ * Liest `invoicePayments` vom Draht. Ein Eintrag ohne Rechnungs-ID, Nummer,
5
+ * Zahlungs-ID oder ganzzahligen Betrag faellt weg (lesen tolerant, der Beleg
6
+ * bleibt anzeigbar); ohne brauchbaren Eintrag gibt es keinen Bezug
7
+ * (`undefined`). Ein unbekannter oder fehlender `taxNote` ergibt keinen
8
+ * Hinweis: ein Beleg behauptet nie eine Steuer, die er nicht kennt.
9
+ */
10
+ export function readInvoicePaymentRefs(roh) {
11
+ if (!Array.isArray(roh))
12
+ return undefined;
13
+ const raus = [];
14
+ for (const e of roh) {
15
+ if (e === null || typeof e !== 'object' || Array.isArray(e))
16
+ continue;
17
+ const o = e;
18
+ if (!istText(o['invoiceId']) || !istText(o['invoiceNumber']) || !istText(o['paymentId']))
19
+ continue;
20
+ if (!Number.isSafeInteger(o['amountCents']))
21
+ continue;
22
+ const hinweis = o['taxNote'];
23
+ raus.push({
24
+ invoiceId: o['invoiceId'],
25
+ invoiceNumber: o['invoiceNumber'],
26
+ paymentId: o['paymentId'],
27
+ customerId: istText(o['customerId']) ? o['customerId'] : null,
28
+ amountCents: o['amountCents'],
29
+ partial: o['partial'] === true,
30
+ paidOn: istText(o['paidOn']) ? o['paidOn'] : null,
31
+ ...(typeof hinweis === 'string' && STEUERHINWEISE.includes(hinweis) ? { taxNote: hinweis } : {}),
32
+ });
33
+ }
34
+ return raus.length > 0 ? raus : undefined;
35
+ }
@@ -35,8 +35,10 @@ export interface ReceiptItem {
35
35
  * Inhaber-Trinkgeld (`recipient.owner`) Umsatz. Rabatt-Positionen sind
36
36
  * negative Entgeltminderungen je Steuersatz; die Kennzeichnung steuert nur
37
37
  * die Bon-Darstellung (Summenzeile mit Aufteilung), nie die Beträge.
38
+ * `invoice_payment`: Zahlung auf Rechnung (Zahlungsbeleg, nur vom Server; Bezug in
39
+ * `Receipt.invoicePayments`), siehe [isInvoicePaymentItem].
38
40
  */
39
- kind?: 'tip' | 'discount' | 'voucher' | 'voucher_float' | 'deposit' | 'deposit_return';
41
+ kind?: 'tip' | 'discount' | 'voucher' | 'voucher_float' | 'deposit' | 'deposit_return' | 'invoice_payment';
40
42
  /** Empfaenger der Trinkgeld-Position; `null` = nicht zugeordnet. */
41
43
  recipient?: TipRecipient | null;
42
44
  /** Zahlart der Trinkgeld-Position (kann von der des Belegs abweichen). */
@@ -92,6 +94,12 @@ export interface ReceiptItem {
92
94
  export declare function isDepositItem(item: ReceiptItem | ReceiptItemPayloadRead): boolean;
93
95
  /** Leergutzeile (Ruecknahme, negativer Betrag)? */
94
96
  export declare function isDepositReturnItem(item: ReceiptItem | ReceiptItemPayloadRead): boolean;
97
+ /**
98
+ * Zahlung auf Rechnung (Zahlungsbeleg)? Die Position zaehlt im RKSV-Feld „Null“, ist aber kein
99
+ * steuerfreier Umsatz: die Umsatzsteuer steht auf der Rechnung. Am Bon steht sie ohne Satzkennzeichen
100
+ * und nicht in der Steuertabelle. Ein Beleg mit einer solchen Position besteht nur aus solchen.
101
+ */
102
+ export declare function isInvoicePaymentItem(item: ReceiptItem | ReceiptItemPayloadRead): boolean;
95
103
  /** Empfaenger einer Trinkgeld-Position (Kassen-Benutzer, Snapshot des Namens). */
96
104
  export interface TipRecipient {
97
105
  registerUserId: string;
@@ -121,7 +129,7 @@ export interface ReceiptItemPayload {
121
129
  unitPriceCents: number;
122
130
  vatRate: number;
123
131
  /** Trinkgeld-/Rabatt-/Gutschein-Kennzeichnung, siehe [ReceiptItem.kind]. */
124
- kind?: 'tip' | 'discount' | 'voucher' | 'voucher_float' | 'deposit' | 'deposit_return';
132
+ kind?: 'tip' | 'discount' | 'voucher' | 'voucher_float' | 'deposit' | 'deposit_return' | 'invoice_payment';
125
133
  recipient?: TipRecipient | null;
126
134
  paymentMethod?: string;
127
135
  receivedImmediately?: boolean;
@@ -9,6 +9,14 @@ export function isDepositItem(item) {
9
9
  export function isDepositReturnItem(item) {
10
10
  return item != null && item.kind === 'deposit_return';
11
11
  }
12
+ /**
13
+ * Zahlung auf Rechnung (Zahlungsbeleg)? Die Position zaehlt im RKSV-Feld „Null“, ist aber kein
14
+ * steuerfreier Umsatz: die Umsatzsteuer steht auf der Rechnung. Am Bon steht sie ohne Satzkennzeichen
15
+ * und nicht in der Steuertabelle. Ein Beleg mit einer solchen Position besteht nur aus solchen.
16
+ */
17
+ export function isInvoicePaymentItem(item) {
18
+ return item != null && item.kind === 'invoice_payment';
19
+ }
12
20
  /** Trinkgeld-Position? Die eine Erkennungsstelle — niemand prueft `kind` selbst. */
13
21
  export function isTipItem(item) {
14
22
  return item != null && item.kind === 'tip';
@@ -62,6 +70,10 @@ export function toReceiptItemPayload(item) {
62
70
  // (createReceipt weist sie als voucher_invalid ab).
63
71
  if (item.kind === 'voucher' || item.kind === 'voucher_float')
64
72
  nutzlast.kind = item.kind;
73
+ // Zahlung auf Rechnung (vom Server): reist mit wie die Gutschein-Positionen; ein Wunsch an den Server
74
+ // traegt sie nie (createReceipt weist sie ausser beim Selbstaufruf ab).
75
+ if (item.kind === 'invoice_payment')
76
+ nutzlast.kind = 'invoice_payment';
65
77
  // Pfand & Leergut: Kennzeichen und Felder reisen mit (Cache schreibt gelesene Belege wieder; ein Wunsch an
66
78
  // den Server traegt `deposit` nie mit `articleId`, siehe createReceiptParams).
67
79
  if (item.kind === 'deposit' || item.kind === 'deposit_return') {
@@ -131,7 +143,7 @@ export function fromReceiptItemPayload(payload) {
131
143
  }
132
144
  : payload.kind === 'discount'
133
145
  ? { kind: 'discount' }
134
- : payload.kind === 'voucher' || payload.kind === 'voucher_float'
146
+ : payload.kind === 'voucher' || payload.kind === 'voucher_float' || payload.kind === 'invoice_payment'
135
147
  ? { kind: payload.kind }
136
148
  : payload.kind === 'deposit' || payload.kind === 'deposit_return'
137
149
  ? {
@@ -1,5 +1,6 @@
1
1
  import { ReceiptType, KeckPaymentMethod, CreditCardProvider } from '../enums/index.js';
2
2
  import { type ManualReceipt } from './manual-receipt.js';
3
+ import { type InvoicePaymentRef } from './invoice-payment-ref.js';
3
4
  import { type ReceiptItem, type ReceiptItemPayload, type ReceiptItemPayloadRead } from './receipt-item.js';
4
5
  import { type Voucher, type VoucherPayload } from './voucher.js';
5
6
  import { type Cancellation, type CancellationOf, type CancellationReason } from './cancellation.js';
@@ -86,6 +87,11 @@ export interface Receipt {
86
87
  * Kasse `returns: 'shared'` hat und der Beleg Pfand traegt. Der Bon druckt daraus die Fusszeile.
87
88
  */
88
89
  sharedReturnPoint?: SharedReturnPoint;
90
+ /**
91
+ * Nur am Zahlungsbeleg (Zahlung auf Rechnung, Positionen `kind: 'invoice_payment'`): je Rechnung ein
92
+ * Bezug, in der Reihenfolge der Positionen (gespeichert `rechnungszahlung`). Siehe [InvoicePaymentRef].
93
+ */
94
+ invoicePayments?: InvoicePaymentRef[];
89
95
  }
90
96
  /** Gemeinsame Ruecknahmestelle fuer Leergut (Name und Anschrift, wie der Server sie am Beleg stempelt). */
91
97
  export interface SharedReturnPoint {
@@ -148,6 +154,7 @@ export interface ReceiptPayloadRead extends Omit<ReceiptPayload, 'items' | 'vouc
148
154
  name?: string | null;
149
155
  address?: string | null;
150
156
  } | null;
157
+ invoicePayments?: unknown;
151
158
  }
152
159
  /**
153
160
  * Schreibt die Nutzlast in der **neuen** Form — sie **normalisiert, statt zu
@@ -1,6 +1,7 @@
1
1
  import { ReceiptType, KeckPaymentMethod, CreditCardProvider, VoucherAction, VoucherType } from '../enums/index.js';
2
2
  import { readEnumKey, requireEnumKey } from './enum-payload.js';
3
3
  import { readManualReceipt } from './manual-receipt.js';
4
+ import { readInvoicePaymentRefs } from './invoice-payment-ref.js';
4
5
  import { toReceiptItemPayload, fromReceiptItemPayload, receiptItemTotalCents, } from './receipt-item.js';
5
6
  import { toVoucherPayload, fromVoucherPayload } from './voucher.js';
6
7
  import { isReturnDisposition } from './cancellation.js';
@@ -91,8 +92,13 @@ export function fromReceiptPayload(payload) {
91
92
  ...handbelegFeld(payload.manualReceipt),
92
93
  ...(typeof payload.onPremises === 'boolean' ? { onPremises: payload.onPremises } : {}),
93
94
  ...pfandStelleFeld(payload.sharedReturnPoint),
95
+ ...rechnungszahlungFeld(payload.invoicePayments),
94
96
  };
95
97
  }
98
+ function rechnungszahlungFeld(roh) {
99
+ const invoicePayments = readInvoicePaymentRefs(roh);
100
+ return invoicePayments ? { invoicePayments } : {};
101
+ }
96
102
  function pfandStelleFeld(roh) {
97
103
  if (roh == null || typeof roh !== 'object')
98
104
  return {};
@@ -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';
@@ -24,3 +24,4 @@ export { createHpsPayments, } from './payments.js';
24
24
  export { MAX_TRANSACTION_ID_LENGTH, createHpsTransactionIdGenerator, isValidHpsTransactionId, newHpsTransactionId, } from './transaction-id.js';
25
25
  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, } from './transaction-response.js';
26
26
  export { hobexReceiptFromHps } from './receipt.js';
27
+ export { HOBEX_SUPPORT } from './support.js';
@@ -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;
@@ -1,8 +1,34 @@
1
1
  import { HpsClarifyTimeoutError, HpsConnectException, HpsConnectTerminalError, HpsPreflightError, } from './errors.js';
2
2
  import { newHpsTransactionId } from './transaction-id.js';
3
- import { APPROVED_CODE, hpsCodeInfo, hpsCodeReason, isApproved, isCanceled, isConclusive, isConclusiveAsStatus, isHostUncertain, isNoStatement, isNotAbortable, isTechnicalError, isUnknownCode, needsReversal, NOT_ABORTABLE_CODE, NOT_FOUND_CODE, TECHNICAL_ERROR_CODE, TRANSACTION_CANCELED_CODE, } from './transaction-response.js';
3
+ import { APPROVED_CODE, HPS_CODES, hpsCodeInfo, hpsCodeReason, isApproved, isCanceled, isConclusive, isConclusiveAsStatus, isHostUncertain, isHostUncertainReason, isNoStatement, isNotAbortable, isTechnicalError, isUnknownCode, needsReversal, NOT_ABORTABLE_CODE, NOT_FOUND_CODE, TECHNICAL_ERROR_CODE, TRANSACTION_CANCELED_CODE, } from './transaction-response.js';
4
4
  /** Teiler, mit dem das Abbruchbudget aus [HpsPaymentsOptions.resolveBudgetMs] entsteht. */
5
5
  const ABORT_BUDGET_DIVISOR = 6;
6
+ /** Teiler fuer das Budget von [HpsPayments.clarifyPayment]: bei der Vorgabe 15 s. */
7
+ const CLARIFY_BUDGET_DIVISOR = 6;
8
+ /**
9
+ * `true`, wenn die Klaerung von [HpsPayments.pay] bei diesem Grund sicher ein
10
+ * Storno versucht hat: der Grund kommt von der ersten Stoerung beim Host
11
+ * ([offenerGrund]), und JEDER Code mit diesem Grund verlangt ein Storno. Aus
12
+ * der Tabelle gerechnet, damit ein neuer Code ohne Storno die Regel nicht
13
+ * still bricht.
14
+ */
15
+ function stornoSicherVersucht(reason) {
16
+ const codes = HPS_CODES.filter((c) => c.reason === reason);
17
+ return codes.length > 0 && codes.every((c) => c.sendReversal);
18
+ }
19
+ /** Siehe Tabelle an [HpsPayments.clarifyPayment]. */
20
+ function nachfrageRegel(previous) {
21
+ if (previous === null || (previous !== 'beforeResolve' && previous.clarified === true)) {
22
+ return { genehmigt: false, aufgehoben: false, abgelehnt: false };
23
+ }
24
+ if (previous === 'beforeResolve')
25
+ return { genehmigt: true, aufgehoben: true, abgelehnt: true };
26
+ const reason = previous.reason;
27
+ if (reason !== undefined && isHostUncertainReason(reason)) {
28
+ return { genehmigt: false, aufgehoben: stornoSicherVersucht(reason), abgelehnt: false };
29
+ }
30
+ return { genehmigt: true, aufgehoben: true, abgelehnt: true };
31
+ }
6
32
  /**
7
33
  * Teiler fuer das Budget des nachgeschickten Stornos: ein Drittel, bei der
8
34
  * Vorgabe 30 s. Ein Storno geht ueber den Host und darf Sekunden brauchen.
@@ -50,6 +76,7 @@ export function createHpsPayments(client, target, options = {}) {
50
76
  const observer = options.observer;
51
77
  const abortBudgetMs = Math.trunc(resolveBudgetMs / ABORT_BUDGET_DIVISOR);
52
78
  const reversalBudgetMs = Math.trunc(resolveBudgetMs / REVERSAL_BUDGET_DIVISOR);
79
+ const clarifyBudgetMs = Math.trunc(resolveBudgetMs / CLARIFY_BUDGET_DIVISOR);
53
80
  function emit(kind, message, transactionId) {
54
81
  if (!observer)
55
82
  return;
@@ -851,5 +878,134 @@ export function createHpsPayments(client, target, options = {}) {
851
878
  }
852
879
  return resolveCancel(id, steps, res);
853
880
  }
854
- return { pay, refund, cancel };
881
+ /**
882
+ * Spaete Nachfrage zu einer Zahlung, siehe [HpsPayments.clarifyPayment].
883
+ * Liest nur den Status -- nie ein Abbruch, nie ein Storno. Wirft wie [pay]
884
+ * nur [HpsPreflightError]: Connect hat die Abfrage abgewiesen, bevor sie
885
+ * das Terminal erreichte (etwa `terminal_unreachable`).
886
+ */
887
+ async function clarifyPayment(clarifyOptions) {
888
+ const id = clarifyOptions.transactionId;
889
+ const previous = clarifyOptions.previous;
890
+ const regel = nachfrageRegel(previous);
891
+ // Ein Nachfrage-Ergebnis als Vorgeschichte zaehlt wie "nicht bekannt" --
892
+ // auch sein `reason` (siehe [HpsPaymentResult.clarified]).
893
+ const vorgeschichteBekannt = previous !== null && (previous === 'beforeResolve' || previous.clarified !== true);
894
+ const vorherGrund = vorgeschichteBekannt && typeof previous === 'object' ? previous.reason : undefined;
895
+ const vorherGestoert = vorherGrund !== undefined && isHostUncertainReason(vorherGrund);
896
+ const steps = [nachfrageAnfang(previous, regel)];
897
+ emit('resolving', steps[0], id);
898
+ const start = now();
899
+ const elapsedMs = () => now() - start;
900
+ let wait = 0;
901
+ let transportFailures = 0;
902
+ let ohneAussage = 0;
903
+ // Die erste Stoerung beim Host, die der Status in DIESER Nachfrage meldet.
904
+ let stoerung;
905
+ let letzteAntwort;
906
+ // Ein schluessiger Code, der hier nicht entscheiden durfte (`'0'`, `9011`, eine
907
+ // Ablehnung), erklaert den offenen Ausgang nicht -- sonst stuende etwa „genehmigt“
908
+ // als Grund an einem offenen Ergebnis (Geraetetest 11.11.2026, Vorgeschichte unbekannt).
909
+ const offen = () => {
910
+ const erklaerend = letzteAntwort && !isConclusiveAsStatus(letzteAntwort) ? letzteAntwort : undefined;
911
+ return {
912
+ ...open(id, steps, letzteAntwort, vorherGrund ?? offenerGrund(stoerung, erklaerend)),
913
+ clarified: true,
914
+ };
915
+ };
916
+ /** Warum eine Antwort, die sonst entschiede, hier nichts sagt. */
917
+ const vorbehalt = () => {
918
+ if (!vorgeschichteBekannt)
919
+ return 'der bisherige Klaerweg ist nicht bekannt, ein Storno kann nachgeschickt sein';
920
+ if (vorherGestoert)
921
+ return `nach der Stoerung beim hobex-Host (${vorherGrund}) kann ein Storno nachgeschickt sein`;
922
+ return 'das Terminal meldet eine Stoerung beim hobex-Host';
923
+ };
924
+ while (elapsedMs() < clarifyBudgetMs) {
925
+ if (wait > 0) {
926
+ await sleep(Math.min(wait, clarifyBudgetMs - elapsedMs()));
927
+ if (elapsedMs() >= clarifyBudgetMs)
928
+ break;
929
+ }
930
+ let status;
931
+ try {
932
+ status = await withinBudget(elapsedMs, () => client.status({ ...target, transactionId: id }), clarifyBudgetMs - elapsedMs());
933
+ transportFailures = 0;
934
+ letzteAntwort = status;
935
+ }
936
+ catch (e) {
937
+ if (e instanceof HpsPreflightError)
938
+ throw e;
939
+ transportFailures += 1;
940
+ steps.push(`Statusabfrage gescheitert (${transportFailures}): ${describe(e)}`);
941
+ noteUnexpected(e, id);
942
+ if (transportFailures >= maxTransportFailures) {
943
+ steps.push('Terminal antwortet nicht -- Ausgang bleibt offen');
944
+ return offen();
945
+ }
946
+ wait = nextWait(wait);
947
+ continue;
948
+ }
949
+ if (isHostUncertain(status))
950
+ stoerung ??= status;
951
+ // Wie in [resolve]: nach einer Stoerung beim Host -- vorher oder jetzt
952
+ // gemeldet -- entscheidet hoechstens noch die Genehmigung.
953
+ const gestoert = vorherGestoert || stoerung !== undefined;
954
+ if (isApproved(status)) {
955
+ if (regel.genehmigt) {
956
+ const settled = fromResponse(status, id, steps);
957
+ if (settled)
958
+ return { ...settled, clarified: true };
959
+ }
960
+ steps.push(`Status: genehmigt (${APPROVED_CODE}) -- ${vorbehalt()}, keine Aussage`);
961
+ }
962
+ else if (isCanceled(status) && regel.aufgehoben && (vorherGestoert || stoerung === undefined)) {
963
+ steps.push(`Status: Zahlung aufgehoben (${TRANSACTION_CANCELED_CODE}) -- es ist nichts belastet`);
964
+ emit('resolved', steps[steps.length - 1], id);
965
+ return { outcome: 'declined', transactionId: id, response: status, reason: 'canceled', clarified: true, steps: [...steps] };
966
+ }
967
+ else if (regel.abgelehnt && !gestoert && isConclusiveAsStatus(status)) {
968
+ const settled = fromResponse(status, id, steps);
969
+ if (settled)
970
+ return { ...settled, clarified: true };
971
+ }
972
+ else if (isConclusiveAsStatus(status)) {
973
+ const info = hpsCodeInfo(status.responseCode);
974
+ const was = isCanceled(status) ? 'aufgehoben' : 'abgelehnt';
975
+ steps.push(`Status: ${was} (${info.code} "${info.title}") -- ${vorbehalt()}, keine Aussage`);
976
+ }
977
+ else {
978
+ steps.push(statusOhneErgebnis(status) ?? 'Status: noch kein Ergebniscode');
979
+ }
980
+ ohneAussage += 1;
981
+ if (ohneAussage >= 2) {
982
+ steps.push('Statusabfrage zweimal ohne Aussage -- das Terminal kann es nicht sagen, Ausgang bleibt offen');
983
+ return offen();
984
+ }
985
+ wait = nextWait(wait);
986
+ }
987
+ steps.push('Ausgang bleibt offen');
988
+ return offen();
989
+ }
990
+ return { pay, refund, cancel, clarifyPayment };
991
+ }
992
+ /** Erster Eintrag im Nachweis einer spaeten Nachfrage: was sie entscheiden darf. */
993
+ function nachfrageAnfang(previous, regel) {
994
+ const anfang = 'Spaete Nachfrage beim Terminal -- nur lesend, ohne Abbruch und ohne Storno';
995
+ if (previous === null)
996
+ return `${anfang}; der bisherige Klaerweg ist nicht bekannt, keine Antwort entscheidet`;
997
+ if (previous !== 'beforeResolve' && previous.clarified === true) {
998
+ return `${anfang}; als Vorgeschichte kam das Ergebnis einer frueheren Nachfrage, nicht das der Zahlung -- `
999
+ + 'der Klaerweg der Zahlung bleibt unbekannt, keine Antwort entscheidet';
1000
+ }
1001
+ if (previous === 'beforeResolve') {
1002
+ return `${anfang}; die Klaerung der Zahlung hatte nicht begonnen, es wurde kein Storno nachgeschickt`;
1003
+ }
1004
+ if (previous.reason !== undefined && isHostUncertainReason(previous.reason)) {
1005
+ return regel.aufgehoben
1006
+ ? `${anfang}; nach der Stoerung beim hobex-Host (${previous.reason}) wurde ein Storno versucht, `
1007
+ + `entscheidet nur "aufgehoben" (${TRANSACTION_CANCELED_CODE})`
1008
+ : `${anfang}; nach der Stoerung beim hobex-Host (${previous.reason}) entscheidet keine Antwort`;
1009
+ }
1010
+ return `${anfang}; die Klaerung der Zahlung endete offen ohne Stoerung beim hobex-Host`;
855
1011
  }
@@ -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,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 const HOBEX_SUPPORT = Object.freeze({
16
+ phone: '+43 662 2255-88',
17
+ display: '0662 2255-88',
18
+ availability: '24/7',
19
+ });
@@ -40,7 +40,7 @@ import { TECS_CODES } from './tecs-codes.js';
40
40
  /** Der Satz fuer den Bediener je Grund, deutsch. */
41
41
  export const HPS_REASON_HINTS = {
42
42
  approved: 'Vom Terminal genehmigt.',
43
- approvedWithCondition: 'Das Terminal meldet eine Genehmigung mit Vorbehalt (etwa nur über einen Teilbetrag). Ob und in welcher Höhe belastet wurde, bitte am Terminalbeleg prüfen – nicht erneut kassieren, bevor es geklärt ist.',
43
+ 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.',
44
44
  aborted: 'Der Vorgang wurde abgebrochen. Es wurde kein Geld bewegt.',
45
45
  noCard: 'Es wurde keine Karte vorgehalten. Es wurde kein Geld bewegt – bitte erneut versuchen.',
46
46
  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';
@@ -43,4 +43,4 @@
43
43
  export { StripeLinkMode } from '../enums/index.js';
44
44
  export { createStripeLink, stripeCaptureIntent, } from './stripe.js';
45
45
  export { hobexPay, hobexRefund, newHobexTransactionId, } from './hobex.js';
46
- export { 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 { 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';