summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/types/walletTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-08-10 20:05:41 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-08-10 20:05:41 +0530
commitc2dcad8efeb7948a98997053a8e26087b40bacf8 (patch)
treeb1ed219bfff2f78c7f4ed927c64d50956567823c /packages/taler-wallet-core/src/types/walletTypes.ts
parent2a4d2944aa4cd3045ae0b9c1569395c484eb4d05 (diff)
downloadwallet-core-c2dcad8efeb7948a98997053a8e26087b40bacf8.tar.gz
wallet-core-c2dcad8efeb7948a98997053a8e26087b40bacf8.tar.bz2
wallet-core-c2dcad8efeb7948a98997053a8e26087b40bacf8.zip
fix preparePay API response
Diffstat (limited to 'packages/taler-wallet-core/src/types/walletTypes.ts')
-rw-r--r--packages/taler-wallet-core/src/types/walletTypes.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/types/walletTypes.ts b/packages/taler-wallet-core/src/types/walletTypes.ts
index 83275a0cc..6175c40eb 100644
--- a/packages/taler-wallet-core/src/types/walletTypes.ts
+++ b/packages/taler-wallet-core/src/types/walletTypes.ts
@@ -353,12 +353,15 @@ export interface PreparePayResultInsufficientBalance {
status: PreparePayResultType.InsufficientBalance;
proposalId: string;
contractTerms: Record<string, unknown>;
+ amountRaw: string;
}
export interface PreparePayResultAlreadyConfirmed {
status: PreparePayResultType.AlreadyConfirmed;
contractTerms: Record<string, unknown>;
paid: boolean;
+ amountRaw: string;
+ amountEffective: string;
// Only specified if paid.
nextUrl?: string;
}