diff options
author | Florian Dold <florian@dold.me> | 2022-11-01 11:34:20 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-11-01 11:41:28 +0100 |
commit | dab739a63e032fcf26674dc1bf56533b00c45b6b (patch) | |
tree | 06a5bdadc34ebefb324d867a65bc803952870227 /packages/taler-util/src/taler-types.ts | |
parent | 2f6225f6e7cb70f1fd083a5b26143f5c8c2776c5 (diff) | |
download | wallet-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.ts | 7 |
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())) |