diff options
author | Florian Dold <florian@dold.me> | 2021-05-20 18:27:35 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-05-20 18:27:35 +0200 |
commit | 9a861b80efc1b753296b477ce61b8abf24137dee (patch) | |
tree | cf0e50ba1ba6e7e4a17950ae29ffdee9afc1c312 /packages/taler-util | |
parent | 6f1b7f5b998c1d7c385cad2f29a85db311999131 (diff) | |
download | wallet-core-9a861b80efc1b753296b477ce61b8abf24137dee.tar.xz |
allow deletion via API
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/walletTypes.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/taler-util/src/walletTypes.ts b/packages/taler-util/src/walletTypes.ts index 006140070..10dbf75eb 100644 --- a/packages/taler-util/src/walletTypes.ts +++ b/packages/taler-util/src/walletTypes.ts @@ -68,8 +68,6 @@ export class CreateReserveResponse { reservePub: string; } - - export interface Balance { available: AmountString; pendingIncoming: AmountString; @@ -949,4 +947,9 @@ export interface WalletCurrencyInfo { export interface DeleteTransactionRequest { transactionId: string; -}
\ No newline at end of file +} + +export const codecForDeleteTransactionRequest = (): Codec<DeleteTransactionRequest> => + buildCodecForObject<DeleteTransactionRequest>() + .property("transactionId", codecForString()) + .build("DeleteTransactionRequest"); |