From 5056da6548d5880211abd3e1cdacd92134e40dab Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 1 Sep 2020 18:00:46 +0530 Subject: test error handling --- .../taler-wallet-core/src/types/transactions.ts | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'packages/taler-wallet-core/src/types/transactions.ts') diff --git a/packages/taler-wallet-core/src/types/transactions.ts b/packages/taler-wallet-core/src/types/transactions.ts index 061ce28f4..400439548 100644 --- a/packages/taler-wallet-core/src/types/transactions.ts +++ b/packages/taler-wallet-core/src/types/transactions.ts @@ -42,6 +42,7 @@ import { codecForList, codecForAny, } from "../util/codec"; +import { OperationErrorDetails } from "./walletTypes"; export interface TransactionsRequest { /** @@ -63,24 +64,6 @@ export interface TransactionsResponse { transactions: Transaction[]; } -export interface TransactionError { - /** - * TALER_EC_* unique error code. - * The action(s) offered and message displayed on the transaction item depend on this code. - */ - ec: number; - - /** - * English-only error hint, if available. - */ - hint?: string; - - /** - * Error details specific to "ec", if applicable/available - */ - details?: any; -} - export interface TransactionCommon { // opaque unique ID for the transaction, used as a starting point for paginating queries // and for invoking actions on the transaction (e.g. deleting/hiding it from the history) @@ -103,7 +86,7 @@ export interface TransactionCommon { // Amount added or removed from the wallet's balance (including all fees and other costs) amountEffective: AmountString; - error?: TransactionError; + error?: OperationErrorDetails; } export type Transaction = -- cgit v1.2.3