commit 6b920a7986ec1f80f57b22569d2ab01b4a4b5040
parent 861c27f9c866717e4c764fb9e9ddeb2fb0d97459
Author: Florian Dold <florian@dold.me>
Date: Mon, 27 Jan 2025 12:26:10 +0100
-field is optional
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/taler-util/src/types-taler-exchange.ts b/packages/taler-util/src/types-taler-exchange.ts
@@ -528,7 +528,7 @@ export interface ExchangeKeysResponse {
// Set to true if this exchange has KYC enabled and thus
// requires KYC auth wire transfers prior to a first deposit.
// @since in protocol **v24**.
- kyc_enabled: boolean;
+ kyc_enabled?: boolean;
// Shopping URL where users may find shops that accept
// digital cash issued by this exchange.
@@ -2318,7 +2318,7 @@ export const codecForExchangeKeysResponse = (): Codec<ExchangeKeysResponse> =>
.property("wads", codecForAny())
.property("wallet_balance_limit_without_kyc", codecForAny())
.property("wire_fees", codecForAny())
- .property("kyc_enabled", codecForBoolean())
+ .property("kyc_enabled", codecOptional(codecForBoolean()))
.property("shopping_url", codecOptional(codecForString()))
.property("tiny_amount", codecOptional(codecForAmountString()))
.deprecatedProperty("rewards_allowed")