From 387416f02dec4a7f948ba96e918e3cacaf92639e Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 12 Dec 2023 21:24:21 +0100 Subject: wallet-core: implement maxExpirationDate for checkPeerPushDebit --- packages/taler-util/src/wallet-types.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'packages/taler-util/src') diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index b54ee8c0a..3b4bc6a29 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -2483,6 +2483,16 @@ export interface CheckPeerPushDebitResponse { amountRaw: AmountString; amountEffective: AmountString; exchangeBaseUrl: string; + /** + * Maximum expiration date, based on how close the coins + * used for the payment are to expiry. + * + * The value is based on when the wallet would typically + * automatically refresh the coins on its own, leaving enough + * time to get a refund for the push payment and refresh the + * coin. + */ + maxExpirationDate: TalerProtocolTimestamp; } export interface InitiatePeerPushDebitRequest { -- cgit v1.2.3