summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/wxApi.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-webextension/src/wxApi.ts')
-rw-r--r--packages/taler-wallet-webextension/src/wxApi.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/taler-wallet-webextension/src/wxApi.ts b/packages/taler-wallet-webextension/src/wxApi.ts
index 63774b00b..8a0881a6c 100644
--- a/packages/taler-wallet-webextension/src/wxApi.ts
+++ b/packages/taler-wallet-webextension/src/wxApi.ts
@@ -40,6 +40,9 @@ import {
SetWalletDeviceIdRequest,
GetExchangeWithdrawalInfo,
AcceptExchangeTosRequest,
+ AcceptManualWithdrawalResult,
+ AcceptManualWithdrawalRequest,
+ AmountJson,
} from "@gnu-taler/taler-util";
import { AddBackupProviderRequest, BackupProviderState, OperationFailedError, RemoveBackupProviderRequest } from "@gnu-taler/taler-wallet-core";
import { BackupInfo } from "@gnu-taler/taler-wallet-core";
@@ -252,6 +255,21 @@ export function acceptWithdrawal(
});
}
+/**
+ * Create a reserve into the exchange that expect the amount indicated
+ * @param exchangeBaseUrl
+ * @param amount
+ * @returns
+ */
+export function acceptManualWithdrawal(
+ exchangeBaseUrl: string,
+ amount: string,
+): Promise<AcceptManualWithdrawalResult> {
+ return callBackend("acceptManualWithdrawal", {
+ amount, exchangeBaseUrl
+ });
+}
+
export function setExchangeTosAccepted(
exchangeBaseUrl: string,
etag: string | undefined