diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-20 01:25:22 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-20 01:25:22 +0100 |
commit | 378d8dee5825c67f9387542661ea6b34c30adbea (patch) | |
tree | 24824f90b61cd52d94cff98a727bea25091f94a5 /src/wallet.ts | |
parent | aa37ef082d0e4aaedeb219d0a3f726da146edba7 (diff) |
implement refusing proposals
Diffstat (limited to 'src/wallet.ts')
-rw-r--r-- | src/wallet.ts | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/wallet.ts b/src/wallet.ts index b08122b66..015a44ccc 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -36,7 +36,8 @@ import { import { abortFailedPayment, - preparePay, + preparePayForUri, + refuseProposal, confirmPay, processDownloadProposal, processPurchasePay, @@ -355,8 +356,8 @@ export class Wallet { * If the payment is possible, the signature are already generated but not * yet send to the merchant. */ - async preparePay(talerPayUri: string): Promise<PreparePayResult> { - return preparePay(this.ws, talerPayUri); + async preparePayForUri(talerPayUri: string): Promise<PreparePayResult> { + return preparePayForUri(this.ws, talerPayUri); } /** @@ -681,6 +682,10 @@ export class Wallet { } } + async refuseProposal(proposalId: string): Promise<void> { + return refuseProposal(this.ws, proposalId); + } + async getPurchaseDetails(hc: string): Promise<PurchaseDetails> { const purchase = await this.db.get(Stores.purchases, hc); if (!purchase) { |