diff options
author | Florian Dold <florian@dold.me> | 2023-12-12 21:24:21 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-12-12 21:24:28 +0100 |
commit | 387416f02dec4a7f948ba96e918e3cacaf92639e (patch) | |
tree | 959fde0a7f8c51c2749251ddff32588907e44f4b /packages/taler-util/src | |
parent | f7e01690b44e42b7088457374a2a8606fd94f84e (diff) | |
download | wallet-core-387416f02dec4a7f948ba96e918e3cacaf92639e.tar.xz |
wallet-core: implement maxExpirationDate for checkPeerPushDebit
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 10 |
1 files changed, 10 insertions, 0 deletions
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 { |