diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-08-27 03:56:19 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-08-27 03:56:19 +0200 |
commit | 8697efd2c8751717a3a3fcaf72feb7c49ebfec02 (patch) | |
tree | e41b044c85d459e9b6042aab541fd6c88470528b /src/webex/wxApi.ts | |
parent | 21c176a69ee04c4d59baedb79017f6c42ece22d6 (diff) | |
download | wallet-core-8697efd2c8751717a3a3fcaf72feb7c49ebfec02.tar.xz |
implement refunds
Diffstat (limited to 'src/webex/wxApi.ts')
-rw-r--r-- | src/webex/wxApi.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/webex/wxApi.ts b/src/webex/wxApi.ts index 306406a1a..1423da53b 100644 --- a/src/webex/wxApi.ts +++ b/src/webex/wxApi.ts @@ -31,6 +31,7 @@ import { DenominationRecord, ExchangeRecord, PreCoinRecord, + PurchaseRecord, QueryPaymentResult, ReserveCreationInfo, ReserveRecord, @@ -322,6 +323,13 @@ export function returnCoins(args: { amount: AmountJson, exchange: string, sender 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); } @@ -329,3 +337,11 @@ export function logAndDisplayError(args: any): Promise<void> { 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 }); +} |