summaryrefslogtreecommitdiff
path: root/packages/taler-util/src/taler-types.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-03-19 19:57:50 -0300
committerSebastian <sebasjm@gmail.com>2024-03-19 19:57:50 -0300
commit630f53f8a5721b2f5f2d43772aa4de7146df58fc (patch)
tree7762ebd73bf8e8ada087c34ac547c5b7bdb09f98 /packages/taler-util/src/taler-types.ts
parent7c7086e11f641100e0dd06364a97503df348e2b2 (diff)
downloadwallet-core-630f53f8a5721b2f5f2d43772aa4de7146df58fc.tar.gz
wallet-core-630f53f8a5721b2f5f2d43772aa4de7146df58fc.tar.bz2
wallet-core-630f53f8a5721b2f5f2d43772aa4de7146df58fc.zip
wip
Diffstat (limited to 'packages/taler-util/src/taler-types.ts')
-rw-r--r--packages/taler-util/src/taler-types.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/taler-util/src/taler-types.ts b/packages/taler-util/src/taler-types.ts
index a0db25182..e8a6fca7a 100644
--- a/packages/taler-util/src/taler-types.ts
+++ b/packages/taler-util/src/taler-types.ts
@@ -486,7 +486,7 @@ export interface MerchantContractTerms {
// Total price for the transaction.
// The exchange will subtract deposit fees from that amount
// before transferring it to the merchant.
- amount: string;
+ amount: AmountString;
// Nonce generated by the wallet and echoed by the merchant
// in this field when the proposal is generated.
@@ -568,7 +568,7 @@ export interface MerchantContractTerms {
// Maximum total deposit fee accepted by the merchant for this contract.
// Overrides defaults of the merchant instance.
- max_fee: string;
+ max_fee: AmountString;
// Extra data that is only interpreted by the merchant frontend.
// Useful when the merchant needs to store extra information on a
@@ -1464,14 +1464,14 @@ export const codecForMerchantContractTerms = (): Codec<MerchantContractTerms> =>
.property("summary", codecForString())
.property("summary_i18n", codecOptional(codecForInternationalizedString()))
.property("nonce", codecForString())
- .property("amount", codecForString())
+ .property("amount", codecForAmountString())
.property("pay_deadline", codecForTimestamp)
.property("refund_deadline", codecForTimestamp)
.property("wire_transfer_deadline", codecForTimestamp)
.property("timestamp", codecForTimestamp)
.property("delivery_location", codecOptional(codecForLocation()))
.property("delivery_date", codecOptional(codecForTimestamp))
- .property("max_fee", codecForString())
+ .property("max_fee", codecForAmountString())
.property("merchant", codecForMerchantInfo())
.property("merchant_pub", codecForString())
.property("exchanges", codecForList(codecForExchangeHandle()))