commit 30bedc37db1f66428137f97060267cd304588a67 parent 32ad0a29ad8d6f38815a33a3988362a8c0be58ec Author: Florian Dold <florian@dold.me> Date: Tue, 29 Jul 2025 21:19:12 +0200 wallet-core: type decls for nfc pos confirmation Diffstat:
| M | packages/taler-util/src/taleruri.ts | | | 2 | ++ |
| M | packages/taler-util/src/types-taler-wallet-transactions.ts | | | 14 | +++++++++++++- |
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/packages/taler-util/src/taleruri.ts b/packages/taler-util/src/taleruri.ts @@ -84,6 +84,8 @@ export interface PayTemplateUriResult { type: TalerUriAction.PayTemplate; merchantBaseUrl: string; templateId: string; + // nfc?: boolean; + // amount?: boolean; } export interface WithdrawUriResult { diff --git a/packages/taler-util/src/types-taler-wallet-transactions.ts b/packages/taler-util/src/types-taler-wallet-transactions.ts @@ -698,9 +698,21 @@ export interface TransactionPayment extends TransactionCommon { refundQueryActive: boolean; /** - * Does this purchase has an pos validation + * PoS confirmation codes, separated by newlines. + * Only present for purchases that support PoS confirmation. */ posConfirmation: string | undefined; + + /** + * Until when will the posConfirmation be valid? + */ + posConfirmationDeadline?: TalerProtocolTimestamp; + + /** + * Did we receive the payment via a taler://pay-template/ URI + * and did the URI contain a nfc=1 flag? + */ + posConfirmationViaNfc?: boolean; } export interface OrderShortInfo {