summaryrefslogtreecommitdiff
path: root/src/webex/wxApi.ts
diff options
context:
space:
mode:
authorJeffrey Burdges <burdges@gnunet.org>2017-08-29 13:41:58 +0200
committerJeffrey Burdges <burdges@gnunet.org>2017-08-29 13:41:58 +0200
commit541256ca99875b6007cf6338f7593c8397053514 (patch)
tree662ca2ee4d1846401bdc826895ad7a8390d54f9a /src/webex/wxApi.ts
parent33edef30acda54fc23ec1238d8de13c07a0c87a8 (diff)
parent52ebba90d6625f78105b94fb4f528bca829cb18f (diff)
downloadwallet-core-541256ca99875b6007cf6338f7593c8397053514.tar.gz
wallet-core-541256ca99875b6007cf6338f7593c8397053514.tar.bz2
wallet-core-541256ca99875b6007cf6338f7593c8397053514.zip
Merge branch 'master' of ssh://taler.net/wallet-webex
Diffstat (limited to 'src/webex/wxApi.ts')
-rw-r--r--src/webex/wxApi.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/webex/wxApi.ts b/src/webex/wxApi.ts
index 1371e27e4..1423da53b 100644
--- a/src/webex/wxApi.ts
+++ b/src/webex/wxApi.ts
@@ -31,6 +31,7 @@ import {
DenominationRecord,
ExchangeRecord,
PreCoinRecord,
+ PurchaseRecord,
QueryPaymentResult,
ReserveCreationInfo,
ReserveRecord,
@@ -321,3 +322,26 @@ export function getSenderWireInfos(): Promise<SenderWireInfos> {
export function returnCoins(args: { amount: AmountJson, exchange: string, senderWire: object }): Promise<void> {
return callBackend("return-coins", args);
}
+
+
+/**
+ * Record an error report and display it in a tabl.
+ *
+ * If sameTab is set, the error report will be opened in the current tab,
+ * otherwise in a new tab.
+ */
+export function logAndDisplayError(args: any): Promise<void> {
+ return callBackend("log-and-display-error", args);
+}
+
+export function getReport(reportUid: string): Promise<void> {
+ return callBackend("get-report", { reportUid });
+}
+
+export function acceptRefund(refundData: any): Promise<number> {
+ return callBackend("accept-refund", refundData);
+}
+
+export function getPurchase(contractTermsHash: string): Promise<PurchaseRecord> {
+ return callBackend("get-purchase", { contractTermsHash });
+}