summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/types/walletTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-09-08 19:27:08 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-09-08 19:27:08 +0530
commitb9e43e652e606706a81f39d4f888477580de79b0 (patch)
treed6840162173a9c97414c3662a7ad43bf7349f1d6 /packages/taler-wallet-core/src/types/walletTypes.ts
parentb063382d25d1ed8572ebe2f52bf54247379300d5 (diff)
downloadwallet-core-b9e43e652e606706a81f39d4f888477580de79b0.tar.gz
wallet-core-b9e43e652e606706a81f39d4f888477580de79b0.tar.bz2
wallet-core-b9e43e652e606706a81f39d4f888477580de79b0.zip
fix tipping and adjust DB
Diffstat (limited to 'packages/taler-wallet-core/src/types/walletTypes.ts')
-rw-r--r--packages/taler-wallet-core/src/types/walletTypes.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/types/walletTypes.ts b/packages/taler-wallet-core/src/types/walletTypes.ts
index fb049caf9..c9014830b 100644
--- a/packages/taler-wallet-core/src/types/walletTypes.ts
+++ b/packages/taler-wallet-core/src/types/walletTypes.ts
@@ -359,8 +359,8 @@ export interface PrepareTipResult {
* Has the tip already been accepted?
*/
accepted: boolean;
- amount: AmountString;
- totalFees: AmountString;
+ tipAmountRaw: AmountString;
+ tipAmountEffective: AmountString;
exchangeBaseUrl: string;
expirationTimestamp: Timestamp;
}
@@ -368,8 +368,8 @@ export interface PrepareTipResult {
export const codecForPrepareTipResult = (): Codec<PrepareTipResult> =>
buildCodecForObject<PrepareTipResult>()
.property("accepted", codecForBoolean())
- .property("amount", codecForAmountString())
- .property("totalFees", codecForAmountString())
+ .property("tipAmountRaw", codecForAmountString())
+ .property("tipAmountEffective", codecForAmountString())
.property("exchangeBaseUrl", codecForString())
.property("expirationTimestamp", codecForTimestamp)
.property("walletTipId", codecForString())