From 8425d79d48636028612790588c1f57907abbb5fa Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 4 Feb 2021 18:26:22 +0100 Subject: make auth token optional --- packages/taler-wallet-core/src/types/walletTypes.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/taler-wallet-core/src') diff --git a/packages/taler-wallet-core/src/types/walletTypes.ts b/packages/taler-wallet-core/src/types/walletTypes.ts index 1b98df276..022140911 100644 --- a/packages/taler-wallet-core/src/types/walletTypes.ts +++ b/packages/taler-wallet-core/src/types/walletTypes.ts @@ -689,7 +689,7 @@ export interface GetExchangeTosResult { export interface TestPayArgs { merchantBaseUrl: string; - merchantAuthToken: string; + merchantAuthToken?: string; amount: string; summary: string; } @@ -697,7 +697,7 @@ export interface TestPayArgs { export const codecForTestPayArgs = (): Codec => buildCodecForObject() .property("merchantBaseUrl", codecForString()) - .property("merchantAuthToken", codecForString()) + .property("merchantAuthToken", codecOptional(codecForString())) .property("amount", codecForString()) .property("summary", codecForString()) .build("TestPayArgs"); @@ -706,7 +706,7 @@ export interface IntegrationTestArgs { exchangeBaseUrl: string; bankBaseUrl: string; merchantBaseUrl: string; - merchantAuthToken: string; + merchantAuthToken?: string; amountToWithdraw: string; amountToSpend: string; } @@ -716,7 +716,7 @@ export const codecForIntegrationTestArgs = (): Codec => .property("exchangeBaseUrl", codecForString()) .property("bankBaseUrl", codecForString()) .property("merchantBaseUrl", codecForString()) - .property("merchantAuthToken", codecForString()) + .property("merchantAuthToken", codecOptional(codecForString())) .property("amountToSpend", codecForAmountString()) .property("amountToWithdraw", codecForAmountString()) .build("IntegrationTestArgs"); -- cgit v1.2.3