aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/wxApi.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-09-13 15:32:06 -0300
committerSebastian <sebasjm@gmail.com>2021-09-13 15:32:15 -0300
commit9f009873809d5b7e8d1d95d77f009862724c577b (patch)
treecd424abc49b290c684f9947daa759a9a6fb28150 /packages/taler-wallet-webextension/src/wxApi.ts
parent57b6cd42692584063819ccac3c2218f1283332a4 (diff)
downloadwallet-core-9f009873809d5b7e8d1d95d77f009862724c577b.tar.xz
added integration with the wallet-core to get info about the last tos approved
Diffstat (limited to 'packages/taler-wallet-webextension/src/wxApi.ts')
-rw-r--r--packages/taler-wallet-webextension/src/wxApi.ts13
1 files changed, 12 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/wxApi.ts b/packages/taler-wallet-webextension/src/wxApi.ts
index acb28ffec..63774b00b 100644
--- a/packages/taler-wallet-webextension/src/wxApi.ts
+++ b/packages/taler-wallet-webextension/src/wxApi.ts
@@ -39,6 +39,7 @@ import {
RetryTransactionRequest,
SetWalletDeviceIdRequest,
GetExchangeWithdrawalInfo,
+ AcceptExchangeTosRequest,
} from "@gnu-taler/taler-util";
import { AddBackupProviderRequest, BackupProviderState, OperationFailedError, RemoveBackupProviderRequest } from "@gnu-taler/taler-wallet-core";
import { BackupInfo } from "@gnu-taler/taler-wallet-core";
@@ -251,6 +252,16 @@ export function acceptWithdrawal(
});
}
+export function setExchangeTosAccepted(
+ exchangeBaseUrl: string,
+ etag: string | undefined
+): Promise<void> {
+ return callBackend("setExchangeTosAccepted", {
+ exchangeBaseUrl, etag
+ } as AcceptExchangeTosRequest)
+}
+
+
/**
* Get diagnostics information
*/
@@ -287,7 +298,7 @@ export function getWithdrawalDetailsForUri(
/**
* Get diagnostics information
*/
- export function getExchangeWithdrawalInfo(
+export function getExchangeWithdrawalInfo(
req: GetExchangeWithdrawalInfo,
): Promise<ExchangeWithdrawDetails> {
return callBackend("getExchangeWithdrawalInfo", req);