aboutsummaryrefslogtreecommitdiff
path: root/src/android/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/index.ts')
-rw-r--r--src/android/index.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/android/index.ts b/src/android/index.ts
index 3ed88e4ba..fcdbdaa6e 100644
--- a/src/android/index.ts
+++ b/src/android/index.ts
@@ -210,6 +210,16 @@ class AndroidWalletMessageHandler {
const wallet = await this.wp.promise;
return await wallet.getHistory();
}
+ case "getExchangeTos": {
+ const wallet = await this.wp.promise;
+ const exchangeBaseUrl = args.exchangeBaseUrl;
+ return wallet.getExchangeTos(exchangeBaseUrl);
+ }
+ case "setExchangeTosAccepted": {
+ const wallet = await this.wp.promise;
+ await wallet.acceptExchangeTermsOfService(args.exchangeBaseUrl, args.acceptedEtag);
+ return {};
+ }
case "retryPendingNow": {
const wallet = await this.wp.promise;
await wallet.runPending(true);