diff options
author | Florian Dold <florian@dold.me> | 2023-02-20 14:40:26 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-20 14:40:37 +0100 |
commit | 6b28885f0bfaf4ae4d6073db360f67088bda7a17 (patch) | |
tree | f5b22e6d3ed936a09d883a89bf5e4efc529df638 /packages/taler-util/src/wallet-types.ts | |
parent | c191a2da860fe7ba9a2439f04c94cdd894bd1fa8 (diff) | |
download | wallet-core-6b28885f0bfaf4ae4d6073db360f67088bda7a17.tar.xz |
wallet-core: stubs for suspend/resume tx
Diffstat (limited to 'packages/taler-util/src/wallet-types.ts')
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index aff83da14..338124d08 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -1649,6 +1649,26 @@ export const codecForAcceptTipRequest = (): Codec<AcceptTipRequest> => .property("walletTipId", codecForString()) .build("AcceptTipRequest"); +export interface SuspendTransactionRequest { + transactionId: string; +} + +export const codecForSuspendTransaction = + (): Codec<SuspendTransactionRequest> => + buildCodecForObject<AbortTransactionRequest>() + .property("transactionId", codecForString()) + .build("SuspendTransactionRequest"); + +export interface ResumeTransactionRequest { + transactionId: string; +} + +export const codecForResumeTransaction = + (): Codec<ResumeTransactionRequest> => + buildCodecForObject<ResumeTransactionRequest>() + .property("transactionId", codecForString()) + .build("ResumeTransactionRequest"); + export interface AbortTransactionRequest { transactionId: string; |