summaryrefslogtreecommitdiff
path: root/packages/taler-util/src/walletTypes.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-09-13 15:32:06 -0300
committerSebastian <sebasjm@gmail.com>2021-09-13 15:32:15 -0300
commit9f009873809d5b7e8d1d95d77f009862724c577b (patch)
treecd424abc49b290c684f9947daa759a9a6fb28150 /packages/taler-util/src/walletTypes.ts
parent57b6cd42692584063819ccac3c2218f1283332a4 (diff)
downloadwallet-core-9f009873809d5b7e8d1d95d77f009862724c577b.tar.gz
wallet-core-9f009873809d5b7e8d1d95d77f009862724c577b.tar.bz2
wallet-core-9f009873809d5b7e8d1d95d77f009862724c577b.zip
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.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/taler-util/src/walletTypes.ts b/packages/taler-util/src/walletTypes.ts
index 7ec182fa..79403ac6 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 {