diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-22 14:22:03 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-22 14:22:03 +0530 |
commit | e60563fb540c04d9ba751fea69c1fc0f1de598b5 (patch) | |
tree | 45f7c86b66dc150d413f9855efaa6341e4a44624 /src/wallet.ts | |
parent | f4a8702b3cf93f9edf96d1d1c8cb88baa309e301 (diff) | |
download | wallet-core-e60563fb540c04d9ba751fea69c1fc0f1de598b5.tar.xz |
consistent error handling for HTTP request (and some other things)
Diffstat (limited to 'src/wallet.ts')
-rw-r--r-- | src/wallet.ts | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/wallet.ts b/src/wallet.ts index 9df279897..ff72f3c75 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -52,7 +52,7 @@ import { ReserveRecordStatus, CoinSourceType, } from "./types/dbTypes"; -import { MerchantRefundDetails, CoinDumpJson } from "./types/talerTypes"; +import { CoinDumpJson } from "./types/talerTypes"; import { BenchmarkResult, ConfirmPayResult, @@ -106,11 +106,7 @@ import { } from "./types/pending"; import { WalletNotification, NotificationType } from "./types/notifications"; import { HistoryQuery, HistoryEvent } from "./types/history"; -import { - processPurchaseQueryRefund, - getFullRefundFees, - applyRefund, -} from "./operations/refund"; +import { processPurchaseQueryRefund, applyRefund } from "./operations/refund"; import { durationMin, Duration } from "./util/time"; import { processRecoupGroup } from "./operations/recoup"; import { OperationFailedAndReportedError } from "./operations/errors"; @@ -372,12 +368,12 @@ export class Wallet { type: NotificationType.InternalError, message: "uncaught exception", exception: e, - }); + }); } } this.ws.notify({ type: NotificationType.PendingOperationProcessed, - }); + }); } } } @@ -712,12 +708,6 @@ export class Wallet { return this.db.get(Stores.purchases, contractTermsHash); } - async getFullRefundFees( - refundPermissions: MerchantRefundDetails[], - ): Promise<AmountJson> { - return getFullRefundFees(this.ws, refundPermissions); - } - async acceptTip(talerTipUri: string): Promise<void> { try { return acceptTip(this.ws, talerTipUri); |