[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 02/02: make auth token optional
From: |
gnunet |
Subject: |
[taler-wallet-core] 02/02: make auth token optional |
Date: |
Thu, 04 Feb 2021 18:26:29 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit 8425d79d48636028612790588c1f57907abbb5fa
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Feb 4 18:26:22 2021 +0100
make auth token optional
---
packages/taler-wallet-core/src/types/walletTypes.ts | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/packages/taler-wallet-core/src/types/walletTypes.ts
b/packages/taler-wallet-core/src/types/walletTypes.ts
index 1b98df27..02214091 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<TestPayArgs> =>
buildCodecForObject<TestPayArgs>()
.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<IntegrationTestArgs> =>
.property("exchangeBaseUrl", codecForString())
.property("bankBaseUrl", codecForString())
.property("merchantBaseUrl", codecForString())
- .property("merchantAuthToken", codecForString())
+ .property("merchantAuthToken", codecOptional(codecForString()))
.property("amountToSpend", codecForAmountString())
.property("amountToWithdraw", codecForAmountString())
.build("IntegrationTestArgs");
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.