From 9f009873809d5b7e8d1d95d77f009862724c577b Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 13 Sep 2021 15:32:06 -0300 Subject: added integration with the wallet-core to get info about the last tos approved --- packages/taler-wallet-webextension/src/wxApi.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'packages/taler-wallet-webextension/src/wxApi.ts') 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 { + 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 { return callBackend("getExchangeWithdrawalInfo", req); -- cgit v1.2.3