aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-03-15 00:24:39 -0300
committerSebastian <sebasjm@gmail.com>2022-03-15 00:24:39 -0300
commit984cbb7ab79b50eab38bb6a05ab56ccc278ac835 (patch)
treef1d06a6d337e3241707acce14cc6f691de37bb16 /packages/taler-util
parenta5f357f07857d4740931e57eb65b750ab9e66b02 (diff)
save tos etag after forced refresh
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/walletTypes.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-util/src/walletTypes.ts b/packages/taler-util/src/walletTypes.ts
index 444fac154..1c2037977 100644
--- a/packages/taler-util/src/walletTypes.ts
+++ b/packages/taler-util/src/walletTypes.ts
@@ -731,14 +731,14 @@ export const codecForGetWithdrawalDetailsForAmountRequest =
export interface AcceptExchangeTosRequest {
exchangeBaseUrl: string;
- etag: string;
+ etag: string | undefined;
}
export const codecForAcceptExchangeTosRequest =
(): Codec<AcceptExchangeTosRequest> =>
buildCodecForObject<AcceptExchangeTosRequest>()
.property("exchangeBaseUrl", codecForString())
- .property("etag", codecForString())
+ .property("etag", codecOptional(codecForString()))
.build("AcceptExchangeTosRequest");
export interface ApplyRefundRequest {