diff options
author | Sebastian <sebasjm@gmail.com> | 2021-10-13 14:26:18 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-10-13 14:26:18 -0300 |
commit | fbf501e727ffe37c30a0ebe038dfb8ae900be749 (patch) | |
tree | c3269b60751e1f3b729b2990736c587a6cbcd1b1 /packages/taler-util/src | |
parent | 021d508337490d25f6d7293bf0deadbb5f298f8c (diff) | |
download | wallet-core-fbf501e727ffe37c30a0ebe038dfb8ae900be749.tar.xz |
fixing tos request
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/walletTypes.ts | 13 |
1 files changed, 10 insertions, 3 deletions
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<AddExchangeRequest> export interface GetExchangeTosRequest { exchangeBaseUrl: string; + acceptedFormat?: string[]; } export const codecForGetExchangeTosRequest = (): Codec<GetExchangeTosRequest> => buildCodecForObject<GetExchangeTosRequest>() - .property("exchangeBaseUrl", codecForString()) - .build("GetExchangeTosRequest"); + .property("exchangeBaseUrl", codecForString()) + .property("acceptedFormat", codecOptional(codecForList(codecForString()))) + .build("GetExchangeTosRequest"); export interface AcceptManualWithdrawalRequest { exchangeBaseUrl: string; |