diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-05-15 12:53:35 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-05-15 12:53:35 +0530 |
commit | 35c83414f9e0af11012c1a2e00672d2a7c1856ae (patch) | |
tree | be7d1ad1787706400aaac931c00778b7699a1d1b /src/webex/wxApi.ts | |
parent | cda75feb5bf7623439f3f5f8da0c6da0c164b3fb (diff) | |
download | wallet-core-35c83414f9e0af11012c1a2e00672d2a7c1856ae.tar.xz |
fix issues in the webextension refund UI
Diffstat (limited to 'src/webex/wxApi.ts')
-rw-r--r-- | src/webex/wxApi.ts | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/webex/wxApi.ts b/src/webex/wxApi.ts index 0bd444856..1823f662c 100644 --- a/src/webex/wxApi.ts +++ b/src/webex/wxApi.ts @@ -246,9 +246,9 @@ export function returnCoins(args: { * the contract terms hash. */ export function getPurchaseDetails( - contractTermsHash: string, + proposalId: string, ): Promise<PurchaseDetails> { - return callBackend("get-purchase-details", { contractTermsHash }); + return callBackend("get-purchase-details", { proposalId }); } /** @@ -268,7 +268,9 @@ export function acceptTip(talerTipUri: string): Promise<void> { /** * Download a refund and accept it. */ -export function applyRefund(refundUrl: string): Promise<string> { +export function applyRefund( + refundUrl: string, +): Promise<{ contractTermsHash: string; proposalId: string }> { return callBackend("accept-refund", { refundUrl }); } @@ -329,7 +331,9 @@ export function getDiagnostics(): Promise<WalletDiagnostics> { /** * Get diagnostics information */ -export function setExtendedPermissions(value: boolean): Promise<ExtendedPermissionsResponse> { +export function setExtendedPermissions( + value: boolean, +): Promise<ExtendedPermissionsResponse> { return callBackend("set-extended-permissions", { value }); } @@ -340,7 +344,6 @@ export function getExtendedPermissions(): Promise<ExtendedPermissionsResponse> { return callBackend("get-extended-permissions", {}); } - export function onUpdateNotification(f: () => void): () => void { const port = chrome.runtime.connect({ name: "notifications" }); const listener = (): void => { @@ -350,4 +353,4 @@ export function onUpdateNotification(f: () => void): () => void { return () => { port.onMessage.removeListener(listener); }; -}
\ No newline at end of file +} |