taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit b187475680099795131c8d1e39855db5f0951865
parent 3d5a50e0854f0e21bf6e28cb6f6eab3215d2c2b3
Author: Florian Dold <florian@dold.me>
Date:   Tue, 14 Jul 2026 10:30:47 +0200

util: new property in exchange /keys

Diffstat:
Mpackages/taler-util/src/types-taler-exchange.ts | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/packages/taler-util/src/types-taler-exchange.ts b/packages/taler-util/src/types-taler-exchange.ts @@ -514,6 +514,13 @@ export interface ExchangeKeysResponse { // How long should a P2P push payment be valid by default. // @since protocol **v35**. default_p2p_push_expiration?: RelativeTime; + + // Signal to the merchant backend that it should swap + // the terms-of-service and KYC auth authentication + // steps in the user experience. Optional, defaults + // to false if not given. + // @since protocol **v36**. + kyc_swap_tos_acceptance?: boolean; } export interface ExchangeMeltRequest { @@ -2492,7 +2499,6 @@ export const codecForExchangeConfig = (): Codec<ExchangeVersionResponse> => .deprecatedProperty("wallet_balance_limit_without_kyc") .build("TalerExchangeApi.ExchangeVersionResponse"); -// FIXME: complete the codec to check for valid exchange response export const codecForExchangeKeysResponse = (): Codec<ExchangeKeysResponse> => buildCodecForObject<ExchangeKeysResponse>() .property("version", codecForString()) @@ -2527,6 +2533,7 @@ export const codecForExchangeKeysResponse = (): Codec<ExchangeKeysResponse> => .property("disable_direct_deposit", codecOptional(codecForBoolean())) .property("bank_compliance_language", codecOptional(codecForString())) .property("default_p2p_push_expiration", codecOptional(codecForDuration)) + .property("kyc_swap_tos_acceptance", codecOptional(codecForBoolean())) .deprecatedProperty("rewards_allowed") .build("TalerExchangeApi.ExchangeKeysResponse");