summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/types
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/types')
-rw-r--r--packages/taler-wallet-core/src/types/dbTypes.ts26
-rw-r--r--packages/taler-wallet-core/src/types/notifications.ts20
-rw-r--r--packages/taler-wallet-core/src/types/pending.ts16
-rw-r--r--packages/taler-wallet-core/src/types/transactions.ts4
-rw-r--r--packages/taler-wallet-core/src/types/walletTypes.ts10
5 files changed, 38 insertions, 38 deletions
diff --git a/packages/taler-wallet-core/src/types/dbTypes.ts b/packages/taler-wallet-core/src/types/dbTypes.ts
index 0b2de8b0c..28842398b 100644
--- a/packages/taler-wallet-core/src/types/dbTypes.ts
+++ b/packages/taler-wallet-core/src/types/dbTypes.ts
@@ -35,7 +35,7 @@ import {
} from "./talerTypes";
import { Index, Store } from "../util/query";
-import { OperationErrorDetails, RefreshReason } from "./walletTypes";
+import { TalerErrorDetails, RefreshReason } from "./walletTypes";
import {
ReserveTransaction,
ReserveCreditTransaction,
@@ -335,7 +335,7 @@ export interface ReserveRecord {
* Last error that happened in a reserve operation
* (either talking to the bank or the exchange).
*/
- lastError: OperationErrorDetails | undefined;
+ lastError: TalerErrorDetails | undefined;
}
/**
@@ -649,7 +649,7 @@ export interface ExchangeRecord {
*/
updateDiff: ExchangeUpdateDiff | undefined;
- lastError?: OperationErrorDetails;
+ lastError?: TalerErrorDetails;
}
/**
@@ -679,7 +679,7 @@ export interface PlanchetRecord {
withdrawalDone: boolean;
- lastError: OperationErrorDetails | undefined;
+ lastError: TalerErrorDetails | undefined;
/**
* Public key of the reserve, this might be a reserve not
@@ -910,14 +910,14 @@ export interface ProposalRecord {
*/
retryInfo: RetryInfo;
- lastError: OperationErrorDetails | undefined;
+ lastError: TalerErrorDetails | undefined;
}
/**
* Status of a tip we got from a merchant.
*/
export interface TipRecord {
- lastError: OperationErrorDetails | undefined;
+ lastError: TalerErrorDetails | undefined;
/**
* Has the user accepted the tip? Only after the tip has been accepted coins
@@ -1002,9 +1002,9 @@ export interface RefreshGroupRecord {
*/
retryInfo: RetryInfo;
- lastError: OperationErrorDetails | undefined;
+ lastError: TalerErrorDetails | undefined;
- lastErrorPerCoin: { [coinIndex: number]: OperationErrorDetails };
+ lastErrorPerCoin: { [coinIndex: number]: TalerErrorDetails };
refreshGroupId: string;
@@ -1032,7 +1032,7 @@ export interface RefreshGroupRecord {
* Ongoing refresh
*/
export interface RefreshSessionRecord {
- lastError: OperationErrorDetails | undefined;
+ lastError: TalerErrorDetails | undefined;
/**
* Public key that's being melted in this session.
@@ -1383,7 +1383,7 @@ export interface PurchaseRecord {
payRetryInfo: RetryInfo;
- lastPayError: OperationErrorDetails | undefined;
+ lastPayError: TalerErrorDetails | undefined;
/**
* Retry information for querying the refund status with the merchant.
@@ -1393,7 +1393,7 @@ export interface PurchaseRecord {
/**
* Last error (or undefined) for querying the refund status with the merchant.
*/
- lastRefundStatusError: OperationErrorDetails | undefined;
+ lastRefundStatusError: TalerErrorDetails | undefined;
/**
* Continue querying the refund status until this deadline has expired.
@@ -1541,7 +1541,7 @@ export interface WithdrawalGroupRecord {
*/
retryInfo: RetryInfo;
- lastError: OperationErrorDetails | undefined;
+ lastError: TalerErrorDetails | undefined;
}
export interface BankWithdrawUriRecord {
@@ -1606,7 +1606,7 @@ export interface RecoupGroupRecord {
/**
* Last error that occured, if any.
*/
- lastError: OperationErrorDetails | undefined;
+ lastError: TalerErrorDetails | undefined;
}
export const enum ImportPayloadType {
diff --git a/packages/taler-wallet-core/src/types/notifications.ts b/packages/taler-wallet-core/src/types/notifications.ts
index 945b86eea..0196cebf1 100644
--- a/packages/taler-wallet-core/src/types/notifications.ts
+++ b/packages/taler-wallet-core/src/types/notifications.ts
@@ -22,7 +22,7 @@
/**
* Imports.
*/
-import { OperationErrorDetails } from "./walletTypes";
+import { TalerErrorDetails } from "./walletTypes";
import { WithdrawalSource } from "./dbTypes";
export const enum NotificationType {
@@ -154,32 +154,32 @@ export interface RefundFinishedNotification {
export interface ExchangeOperationErrorNotification {
type: NotificationType.ExchangeOperationError;
- error: OperationErrorDetails;
+ error: TalerErrorDetails;
}
export interface RefreshOperationErrorNotification {
type: NotificationType.RefreshOperationError;
- error: OperationErrorDetails;
+ error: TalerErrorDetails;
}
export interface RefundStatusOperationErrorNotification {
type: NotificationType.RefundStatusOperationError;
- error: OperationErrorDetails;
+ error: TalerErrorDetails;
}
export interface RefundApplyOperationErrorNotification {
type: NotificationType.RefundApplyOperationError;
- error: OperationErrorDetails;
+ error: TalerErrorDetails;
}
export interface PayOperationErrorNotification {
type: NotificationType.PayOperationError;
- error: OperationErrorDetails;
+ error: TalerErrorDetails;
}
export interface ProposalOperationErrorNotification {
type: NotificationType.ProposalOperationError;
- error: OperationErrorDetails;
+ error: TalerErrorDetails;
}
export interface TipOperationErrorNotification {
@@ -188,17 +188,17 @@ export interface TipOperationErrorNotification {
export interface WithdrawOperationErrorNotification {
type: NotificationType.WithdrawOperationError;
- error: OperationErrorDetails;
+ error: TalerErrorDetails;
}
export interface RecoupOperationErrorNotification {
type: NotificationType.RecoupOperationError;
- error: OperationErrorDetails;
+ error: TalerErrorDetails;
}
export interface ReserveOperationErrorNotification {
type: NotificationType.ReserveOperationError;
- error: OperationErrorDetails;
+ error: TalerErrorDetails;
}
export interface ReserveCreatedNotification {
diff --git a/packages/taler-wallet-core/src/types/pending.ts b/packages/taler-wallet-core/src/types/pending.ts
index 67d243a37..23c736a57 100644
--- a/packages/taler-wallet-core/src/types/pending.ts
+++ b/packages/taler-wallet-core/src/types/pending.ts
@@ -21,7 +21,7 @@
/**
* Imports.
*/
-import { OperationErrorDetails, BalancesResponse } from "./walletTypes";
+import { TalerErrorDetails, BalancesResponse } from "./walletTypes";
import { WithdrawalSource, RetryInfo, ReserveRecordStatus } from "./dbTypes";
import { Timestamp, Duration } from "../util/time";
@@ -67,7 +67,7 @@ export interface PendingExchangeUpdateOperation {
stage: ExchangeUpdateOperationStage;
reason: string;
exchangeBaseUrl: string;
- lastError: OperationErrorDetails | undefined;
+ lastError: TalerErrorDetails | undefined;
}
/**
@@ -122,7 +122,7 @@ export interface PendingReserveOperation {
*/
export interface PendingRefreshOperation {
type: PendingOperationType.Refresh;
- lastError?: OperationErrorDetails;
+ lastError?: TalerErrorDetails;
refreshGroupId: string;
finishedPerCoin: boolean[];
retryInfo: RetryInfo;
@@ -137,7 +137,7 @@ export interface PendingProposalDownloadOperation {
proposalTimestamp: Timestamp;
proposalId: string;
orderId: string;
- lastError?: OperationErrorDetails;
+ lastError?: TalerErrorDetails;
retryInfo: RetryInfo;
}
@@ -182,7 +182,7 @@ export interface PendingPayOperation {
proposalId: string;
isReplay: boolean;
retryInfo: RetryInfo;
- lastError: OperationErrorDetails | undefined;
+ lastError: TalerErrorDetails | undefined;
}
/**
@@ -193,14 +193,14 @@ export interface PendingRefundQueryOperation {
type: PendingOperationType.RefundQuery;
proposalId: string;
retryInfo: RetryInfo;
- lastError: OperationErrorDetails | undefined;
+ lastError: TalerErrorDetails | undefined;
}
export interface PendingRecoupOperation {
type: PendingOperationType.Recoup;
recoupGroupId: string;
retryInfo: RetryInfo;
- lastError: OperationErrorDetails | undefined;
+ lastError: TalerErrorDetails | undefined;
}
/**
@@ -209,7 +209,7 @@ export interface PendingRecoupOperation {
export interface PendingWithdrawOperation {
type: PendingOperationType.Withdraw;
source: WithdrawalSource;
- lastError: OperationErrorDetails | undefined;
+ lastError: TalerErrorDetails | undefined;
retryInfo: RetryInfo;
withdrawalGroupId: string;
numCoinsWithdrawn: number;
diff --git a/packages/taler-wallet-core/src/types/transactions.ts b/packages/taler-wallet-core/src/types/transactions.ts
index 400439548..dce480830 100644
--- a/packages/taler-wallet-core/src/types/transactions.ts
+++ b/packages/taler-wallet-core/src/types/transactions.ts
@@ -42,7 +42,7 @@ import {
codecForList,
codecForAny,
} from "../util/codec";
-import { OperationErrorDetails } from "./walletTypes";
+import { TalerErrorDetails } from "./walletTypes";
export interface TransactionsRequest {
/**
@@ -86,7 +86,7 @@ export interface TransactionCommon {
// Amount added or removed from the wallet's balance (including all fees and other costs)
amountEffective: AmountString;
- error?: OperationErrorDetails;
+ error?: TalerErrorDetails;
}
export type Transaction =
diff --git a/packages/taler-wallet-core/src/types/walletTypes.ts b/packages/taler-wallet-core/src/types/walletTypes.ts
index eb7d878fa..3182d50bb 100644
--- a/packages/taler-wallet-core/src/types/walletTypes.ts
+++ b/packages/taler-wallet-core/src/types/walletTypes.ts
@@ -214,7 +214,7 @@ export interface ConfirmPayResultDone {
export interface ConfirmPayResultPending {
type: ConfirmPayResultType.Pending;
- lastError: OperationErrorDetails;
+ lastError: TalerErrorDetails;
}
export type ConfirmPayResult = ConfirmPayResultDone | ConfirmPayResultPending;
@@ -494,9 +494,9 @@ export interface WalletDiagnostics {
dbOutdated: boolean;
}
-export interface OperationErrorDetails {
- talerErrorCode: number;
- talerErrorHint: string;
+export interface TalerErrorDetails {
+ code: number;
+ hint: string;
message: string;
details: unknown;
}
@@ -816,7 +816,7 @@ export interface CoreApiResponseError {
type: "error";
operation: string;
id: string;
- error: OperationErrorDetails;
+ error: TalerErrorDetails;
}
export interface WithdrawTestBalanceRequest {