[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 13/15: fix program input interface
From: |
gnunet |
Subject: |
[taler-wallet-core] 13/15: fix program input interface |
Date: |
Wed, 04 Dec 2024 12:13:23 +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 cb7283bd351d7f057109dda87b36bacbcba3c8fe
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Tue Dec 3 11:12:42 2024 -0300
fix program input interface
---
packages/taler-util/src/types-taler-exchange.ts | 6 +++---
packages/taler-util/src/types-taler-kyc-aml.ts | 15 ++++++++-------
2 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/packages/taler-util/src/types-taler-exchange.ts
b/packages/taler-util/src/types-taler-exchange.ts
index 346ee1ba1..6f50a5c9c 100644
--- a/packages/taler-util/src/types-taler-exchange.ts
+++ b/packages/taler-util/src/types-taler-exchange.ts
@@ -1800,7 +1800,7 @@ export interface KycProcessClientInformation {
// List of available voluntary checks the client could pay for.
// Since **vATTEST**.
- voluntary_checks?: { [name: string]: KycCheckPublicInformation };
+ voluntary_measures?: KycRequirementInformation[];
}
declare const opaque_kycReq: unique symbol;
@@ -2648,8 +2648,8 @@ export const codecForKycProcessClientInformation =
)
.property("is_and_combinator", codecOptional(codecForBoolean()))
.property(
- "voluntary_checks",
- codecOptional(codecForMap(codecForKycCheckPublicInformation())),
+ "voluntary_measures",
+ codecOptional(codecForList(codecForKycRequirementInformation())),
)
.build("TalerExchangeApi.KycProcessClientInformation");
diff --git a/packages/taler-util/src/types-taler-kyc-aml.ts
b/packages/taler-util/src/types-taler-kyc-aml.ts
index 284a7d984..186f7daf2 100644
--- a/packages/taler-util/src/types-taler-kyc-aml.ts
+++ b/packages/taler-util/src/types-taler-kyc-aml.ts
@@ -20,6 +20,7 @@ import {
codecForAccountProperties,
codecForAny,
codecForList,
+ codecOptional,
} from "./index.js";
import {
AmountString,
@@ -95,15 +96,15 @@ export interface AmlProgramInput {
// keys will match the HTML FORM field names and
// the values will use the KycStructuredFormData
// encoding.
- attributes: any;
+ attributes?: any;
// JSON array with the results of historic
// AML decisions about the account.
- aml_history: AmlHistoryEntry[];
+ aml_history?: AmlHistoryEntry[];
// JSON array with the results of historic
// KYC data about the account.
- kyc_history: KycHistoryEntry[];
+ kyc_history?: KycHistoryEntry[];
// Default KYC rules of the exchange (exposed and not exposed).
//
@@ -340,8 +341,8 @@ export interface MeasureInformation {
export const codecForAmlProgramInput = (): Codec<AmlProgramInput> =>
buildCodecForObject<AmlProgramInput>()
- .property("aml_history", codecForList(codecForAny()))
- .property("kyc_history", codecForList(codecForAny()))
- .property("attributes", codecForAccountProperties())
- .property("context", codecForAny())
+ .property("aml_history", codecOptional( codecForList(codecForAny())))
+ .property("kyc_history", codecOptional(codecForList(codecForAny())))
+ .property("attributes", codecOptional(codecForAccountProperties()))
+ .property("context", codecOptional(codecForAny()))
.build("AmlProgramInput");
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-wallet-core] 01/15: Translated using Weblate (German), (continued)
- [taler-wallet-core] 01/15: Translated using Weblate (German), gnunet, 2024/12/04
- [taler-wallet-core] 06/15: add support for required input, show server measure on aml spa when doing debug, gnunet, 2024/12/04
- [taler-wallet-core] 08/15: accept tos kyc/aml form, gnunet, 2024/12/04
- [taler-wallet-core] 09/15: add prefix, gnunet, 2024/12/04
- [taler-wallet-core] 04/15: wallet-core: parse useForeignAccount field, gnunet, 2024/12/04
- [taler-wallet-core] 03/15: wallet-core: allow treating bank accounts as foreign in withdrawal, gnunet, 2024/12/04
- [taler-wallet-core] 05/15: -small fixes from QC, gnunet, 2024/12/04
- [taler-wallet-core] 07/15: Translated using Weblate (German), gnunet, 2024/12/04
- [taler-wallet-core] 12/15: add kyc form, testing vqf, gnunet, 2024/12/04
- [taler-wallet-core] 11/15: Translated using Weblate (German), gnunet, 2024/12/04
- [taler-wallet-core] 13/15: fix program input interface,
gnunet <=
- [taler-wallet-core] 14/15: test using multiple form in kyc measures, gnunet, 2024/12/04
- [taler-wallet-core] 15/15: Translated using Weblate (German), gnunet, 2024/12/04
- [taler-wallet-core] 10/15: test prefix, gnunet, 2024/12/04