taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit f958080a63c86e5240caab4a51f260859a5f60c6
parent 84314c88079fc7d6005ec6153b60c8f3be4a4120
Author: Florian Dold <florian@dold.me>
Date:   Tue,  3 Jun 2025 21:22:32 +0200

util: parse rule_gen in AccountKycStatus

Diffstat:
Mpackages/taler-util/src/types-taler-exchange.ts | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/packages/taler-util/src/types-taler-exchange.ts b/packages/taler-util/src/types-taler-exchange.ts @@ -1922,6 +1922,12 @@ export interface AccountKycStatus { // accounts without this flag being set! aml_review: boolean; + // Monotonically increasing number identifying the decision. + // 0 if no decision was taken for this account. Useful for + // long-polling via min_rule to long-poll for any change + // to the rules or limits. + rule_gen: Integer; + // Access token needed to construct the /kyc-spa/ // URL that the user should open in a browser to // proceed with the KYC process (optional if the status @@ -2726,6 +2732,7 @@ export const codecForAccountKycStatus = (): Codec<AccountKycStatus> => .property("aml_review", codecForBoolean()) .property("access_token", codecForAccessToken()) .property("limits", codecOptional(codecForList(codecForAccountLimit()))) + .property("rule_gen", codecForNumber()) .build("TalerExchangeApi.AccountKycStatus"); export const codecForOperationType = codecForEither(