exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit aededdc183d3658bbe456caf954ffd5102c01491
parent a0943ee6ab8e9bd0558e2ce57735a9a0a6a8dd5c
Author: Florian Dold <florian@dold.me>
Date:   Thu,  8 May 2025 21:10:37 +0200

kyc: fix vqf customer type handling

Diffstat:
Msrc/kyclogic/taler-exchange-helper-measure-tops-kyx-check | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/kyclogic/taler-exchange-helper-measure-tops-kyx-check b/src/kyclogic/taler-exchange-helper-measure-tops-kyx-check @@ -105,28 +105,28 @@ in FORM="none" ;; "OPERATIONAL") - FORM="vqf-902.11" + FORM="form-vqf-902.11" ;; "FOUNDATION") # FIXME: #9825: Not yet supported! # FORM="vqf-902.12" - FORM="inform-investigate" + FORM=error INVESTIGATE="true" ;; "TRUST") # FIXME: #9027: Not yet supported! # FORM="vqf-902.13" - FORM="inform-investigate" + FORM=error INVESTIGATE="true" ;; "LIFE_INSURANCE") # FIXME: #9826: Not yet supported! # FORM="vqf-902.15" - FORM="inform-investigate" + FORM=error INVESTIGATE="true" ;; "OTHER") - FORM="vqf-902.9" + FORM="form-vqf-902.9" INVESTIGATE="true" ;; esac @@ -150,8 +150,8 @@ in # Proceed to FORM. echo "Selected VQF form ${FORM}." 1>&2 # Force user to fill in $FORM - NEW_RULES=$(echo "$CURRENT_RULES" | jq '(.rules[] |= if (.measures[0]=="kyx") then .measures=["form-'${FORM}'"] else . end)') - NEW_MEASURES='"form-'${FORM}'"' + NEW_RULES=$(echo "$CURRENT_RULES" | jq --arg form "$FORM" '(.rules[] |= if (.measures[0]=="kyx") then .measures=[$form] else . end)') + NEW_MEASURES="\"$FORM\"" ;; esac