From fbf501e727ffe37c30a0ebe038dfb8ae900be749 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 13 Oct 2021 14:26:18 -0300 Subject: fixing tos request --- packages/taler-util/src/walletTypes.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'packages/taler-util/src/walletTypes.ts') diff --git a/packages/taler-util/src/walletTypes.ts b/packages/taler-util/src/walletTypes.ts index 37abd8b53..63ece1e60 100644 --- a/packages/taler-util/src/walletTypes.ts +++ b/packages/taler-util/src/walletTypes.ts @@ -578,7 +578,7 @@ export interface GetExchangeTosResult { /** * Markdown version of the current ToS. */ - tos: string; + content: string; /** * Version tag of the current ToS. @@ -590,6 +590,11 @@ export interface GetExchangeTosResult { * if any. */ acceptedEtag: string | undefined; + + /** + * Accepted content type + */ + contentType: string; } export interface TestPayArgs { @@ -648,12 +653,14 @@ export const codecForForceExchangeUpdateRequest = (): Codec export interface GetExchangeTosRequest { exchangeBaseUrl: string; + acceptedFormat?: string[]; } export const codecForGetExchangeTosRequest = (): Codec => buildCodecForObject() - .property("exchangeBaseUrl", codecForString()) - .build("GetExchangeTosRequest"); + .property("exchangeBaseUrl", codecForString()) + .property("acceptedFormat", codecOptional(codecForList(codecForString()))) + .build("GetExchangeTosRequest"); export interface AcceptManualWithdrawalRequest { exchangeBaseUrl: string; -- cgit v1.2.3