summaryrefslogtreecommitdiff
path: root/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-20 01:25:22 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-20 01:25:22 +0100
commit378d8dee5825c67f9387542661ea6b34c30adbea (patch)
tree24824f90b61cd52d94cff98a727bea25091f94a5 /src/wallet.ts
parentaa37ef082d0e4aaedeb219d0a3f726da146edba7 (diff)
downloadwallet-core-378d8dee5825c67f9387542661ea6b34c30adbea.tar.gz
wallet-core-378d8dee5825c67f9387542661ea6b34c30adbea.tar.bz2
wallet-core-378d8dee5825c67f9387542661ea6b34c30adbea.zip
implement refusing proposals
Diffstat (limited to 'src/wallet.ts')
-rw-r--r--src/wallet.ts11
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) {