aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-05-20 18:27:35 +0200
committerFlorian Dold <florian@dold.me>2021-05-20 18:27:35 +0200
commit9a861b80efc1b753296b477ce61b8abf24137dee (patch)
treecf0e50ba1ba6e7e4a17950ae29ffdee9afc1c312 /packages/taler-util
parent6f1b7f5b998c1d7c385cad2f29a85db311999131 (diff)
allow deletion via API
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/walletTypes.ts9
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");