[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-typescript-core] 06/08: sync types with docs
From: |
gnunet |
Subject: |
[taler-typescript-core] 06/08: sync types with docs |
Date: |
Wed, 15 Jan 2025 22:32:52 +0100 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository taler-typescript-core.
commit 9810c2747d761d49b9b2b6b4c5c8c7468096a2b7
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed Jan 15 14:41:40 2025 -0300
sync types with docs
---
packages/taler-util/src/types-taler-common.ts | 1 +
packages/taler-util/src/types-taler-exchange.ts | 36 +++++++++++++++++++++++++
2 files changed, 37 insertions(+)
diff --git a/packages/taler-util/src/types-taler-common.ts
b/packages/taler-util/src/types-taler-common.ts
index 174626b02..ee7be5176 100644
--- a/packages/taler-util/src/types-taler-common.ts
+++ b/packages/taler-util/src/types-taler-common.ts
@@ -229,6 +229,7 @@ export interface TalerCommonConfigResponse {
export const codecForTalerCommonConfigResponse =
(): Codec<TalerCommonConfigResponse> =>
buildCodecForObject<TalerCommonConfigResponse>()
+ .allowExtra()
.property("name", codecForString())
.property("version", codecForString())
.build("TalerCommonConfigResponse");
diff --git a/packages/taler-util/src/types-taler-exchange.ts
b/packages/taler-util/src/types-taler-exchange.ts
index be61218ba..409e33ee7 100644
--- a/packages/taler-util/src/types-taler-exchange.ts
+++ b/packages/taler-util/src/types-taler-exchange.ts
@@ -1632,6 +1632,13 @@ export interface ExchangeVersionResponse {
// Names of supported KYC requirements.
supported_kyc_requirements: string[];
+
+ // Bank-specific dialect for the AML SPA. Determines
+ // which set of forms is available as well as statistics
+ // to show and sets of properties/events to trigger in
+ // AML decisions.
+ // @since protocol **v24**.
+ aml_spa_dialect?: string;
}
export interface WireAccount {
@@ -2208,6 +2215,28 @@ export interface ExchangeKeysResponse {
// normalized JSON-object of field extensions, if it was set.
// The signature has purpose TALER_SIGNATURE_MASTER_EXTENSIONS.
extensions_sig?: EddsaSignature;
+
+ // Set to true if this exchange has KYC enabled and thus
+ // requires KYC auth wire transfers prior to a first deposit.
+ // @since in protocol **v24**.
+ kyc_enabled: boolean;
+
+ // Set to true if this exchange allows the use
+ // of reserves for rewards.
+ // @deprecated in protocol **v18**.
+ // rewards_allowed: false;
+
+ // Shopping URL where users may find shops that accept
+ // digital cash issued by this exchange.
+ // @since protocol **v21**.
+ shopping_url?: string;
+
+ // Small(est?) amount that can likely be transferred to
+ // the exchange. Should be the default amount for KYC
+ // authentication wire transfers to this exchange.
+ // Optional, not present if not known or not configured.
+ // @since protocol **v21**.
+ tiny_amount?: AmountString;
}
export interface ZeroLimitedOperation {
@@ -2422,6 +2451,9 @@ export const codecForExchangeConfig = ():
Codec<ExchangeVersionResponse> =>
.property("currency", codecForString())
.property("currency_specification", codecForCurrencySpecificiation())
.property("supported_kyc_requirements", codecForList(codecForString()))
+ .property("aml_spa_dialect", codecOptional(codecForString()))
+ .deprecatedProperty("shopping_url")
+ .deprecatedProperty("wallet_balance_limit_without_kyc")
.build("TalerExchangeApi.ExchangeVersionResponse");
// FIXME: complete the codec to check for valid exchange response
@@ -2453,6 +2485,10 @@ export const codecForExchangeKeys = ():
Codec<ExchangeKeysResponse> =>
.property("wads", codecForAny())
.property("wallet_balance_limit_without_kyc", codecForAny())
.property("wire_fees", codecForAny())
+ .property("kyc_enabled", codecForBoolean())
+ .property("shopping_url", codecOptional(codecForString()))
+ .property("tiny_amount", codecOptional(codecForAmountString()))
+ .deprecatedProperty("rewards_allowed")
.build("TalerExchangeApi.ExchangeKeysResponse");
export const codecForEventCounter = (): Codec<EventCounter> =>
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-typescript-core] branch master updated (f119f4aae -> 35b6e5931), gnunet, 2025/01/15
- [taler-typescript-core] 02/08: input duration, gnunet, 2025/01/15
- [taler-typescript-core] 01/08: new input type: secret, gnunet, 2025/01/15
- [taler-typescript-core] 03/08: fix some input array problems, gnunet, 2025/01/15
- [taler-typescript-core] 06/08: sync types with docs,
gnunet <=
- [taler-typescript-core] 07/08: use gana for account properties, gnunet, 2025/01/15
- [taler-typescript-core] 05/08: update measures, gnunet, 2025/01/15
- [taler-typescript-core] 08/08: properties form, gnunet, 2025/01/15
- [taler-typescript-core] 04/08: tospec, gnunet, 2025/01/15