diff options
author | Sebastian <sebasjm@gmail.com> | 2021-09-13 15:32:06 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-09-13 15:32:15 -0300 |
commit | 9f009873809d5b7e8d1d95d77f009862724c577b (patch) | |
tree | cd424abc49b290c684f9947daa759a9a6fb28150 /packages/taler-util/src/walletTypes.ts | |
parent | 57b6cd42692584063819ccac3c2218f1283332a4 (diff) | |
download | wallet-core-9f009873809d5b7e8d1d95d77f009862724c577b.tar.xz |
added integration with the wallet-core to get info about the last tos approved
Diffstat (limited to 'packages/taler-util/src/walletTypes.ts')
-rw-r--r-- | packages/taler-util/src/walletTypes.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/taler-util/src/walletTypes.ts b/packages/taler-util/src/walletTypes.ts index 7ec182fa2..79403ac69 100644 --- a/packages/taler-util/src/walletTypes.ts +++ b/packages/taler-util/src/walletTypes.ts @@ -716,12 +716,14 @@ export const codecForGetWithdrawalDetailsForUri = (): Codec<GetWithdrawalDetails export interface GetExchangeWithdrawalInfo { exchangeBaseUrl: string; amount: AmountJson; + tosAcceptedFormat?: string[]; } export const codecForGetExchangeWithdrawalInfo = (): Codec<GetExchangeWithdrawalInfo> => buildCodecForObject<GetExchangeWithdrawalInfo>() .property("exchangeBaseUrl", codecForString()) .property("amount", codecForAmountJson()) + .property("tosAcceptedFormat", codecOptional(codecForList(codecForString()))) .build("GetExchangeWithdrawalInfo"); export interface AbortProposalRequest { |