[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 01/02: fix program input interface
From: |
gnunet |
Subject: |
[taler-wallet-core] 01/02: fix program input interface |
Date: |
Tue, 03 Dec 2024 15:13:11 +0100 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit 0b9ea45bfa604bebb76b4655dd81a7552007d6d9
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.