diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-07-20 02:17:55 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-07-20 02:17:55 +0200 |
commit | a8bd05298eccf3ac3f89afca4b28856fbb1be82f (patch) | |
tree | 66fb1d9943d7f60e2e72f8dba4944b24e4e63b81 /src/webex/wxApi.ts | |
parent | 8d5b1e539be1d86c3d184448de9e38fce52a7bd4 (diff) | |
download | wallet-core-a8bd05298eccf3ac3f89afca4b28856fbb1be82f.tar.xz |
Store bank account information for reserve.
Fixes #4852.
Diffstat (limited to 'src/webex/wxApi.ts')
-rw-r--r-- | src/webex/wxApi.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/webex/wxApi.ts b/src/webex/wxApi.ts index a064b4133..9d8ba4d1d 100644 --- a/src/webex/wxApi.ts +++ b/src/webex/wxApi.ts @@ -264,7 +264,7 @@ export function paymentFailed(contractTermsHash: string): Promise<void> { * Get the payment cookie for the current tab, or undefined if no payment * cookie was set. */ -export function getTabCookie(contractTermsHash: string, merchantSig: string): Promise<any> { +export function getTabCookie(): Promise<any> { return callBackend("get-tab-cookie", { }); } @@ -284,6 +284,13 @@ export function checkUpgrade(): Promise<UpgradeResponse> { } /** + * Create a reserve. + */ +export function createReserve(args: { amount: AmountJson, exchange: string, senderWire?: object }): Promise<any> { + return callBackend("create-reserve", args); +} + +/** * Reset database */ export function resetDb(): Promise<void> { |