aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util/src/taler-types.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-11-01 11:34:20 +0100
committerFlorian Dold <florian@dold.me>2022-11-01 11:41:28 +0100
commitdab739a63e032fcf26674dc1bf56533b00c45b6b (patch)
tree06a5bdadc34ebefb324d867a65bc803952870227 /packages/taler-util/src/taler-types.ts
parent2f6225f6e7cb70f1fd083a5b26143f5c8c2776c5 (diff)
downloadwallet-core-dab739a63e032fcf26674dc1bf56533b00c45b6b.tar.xz
wallet-core: use PeerContractTerms
Diffstat (limited to 'packages/taler-util/src/taler-types.ts')
-rw-r--r--packages/taler-util/src/taler-types.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/taler-util/src/taler-types.ts b/packages/taler-util/src/taler-types.ts
index e6223ca76..134f59836 100644
--- a/packages/taler-util/src/taler-types.ts
+++ b/packages/taler-util/src/taler-types.ts
@@ -413,8 +413,9 @@ export interface InternationalizedString {
/**
* Contract terms from a merchant.
+ * FIXME: Add type field!
*/
-export interface ContractTerms {
+export interface MerchantContractTerms {
/**
* Hash of the merchant's wire details.
*/
@@ -1310,8 +1311,8 @@ export const codecForProduct = (): Codec<Product> =>
.property("price", codecOptional(codecForString()))
.build("Tax");
-export const codecForContractTerms = (): Codec<ContractTerms> =>
- buildCodecForObject<ContractTerms>()
+export const codecForContractTerms = (): Codec<MerchantContractTerms> =>
+ buildCodecForObject<MerchantContractTerms>()
.property("order_id", codecForString())
.property("fulfillment_url", codecOptional(codecForString()))
.property("fulfillment_message", codecOptional(codecForString()))