taler-android

Android apps for GNU Taler (wallet, PoS, cashier)
Log | Files | Refs | README | LICENSE

sim-kyc.conf (2596B)


      1 # This file is part of GNU Taler
      2 # (C) 2026 Taler Systems S.A.
      3 #
      4 # GNU Taler is free software; you can redistribute it and/or modify it under the
      5 # terms of the GNU General Public License as published by the Free Software
      6 # Foundation; either version 3, or (at your option) any later version.
      7 #
      8 # GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
      9 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
     10 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     11 #
     12 # You should have received a copy of the GNU General Public License along with
     13 # GNU Taler; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
     14 #
     15 # The simulator stack with KYC turned on, so the wallet's "KYC required" and
     16 # "Complete KYC" paths become reachable: withdrawing more than EUR:5 within a
     17 # day trips a rule.
     18 #
     19 # The exchange's own test suite uses a form check backed by
     20 # taler-exchange-helper-measure-test-form, which is built only in its test
     21 # tree, so this uses the helpers the packaged exchange ships.
     22 
     23 @INLINE@ sim.conf
     24 
     25 [exchange]
     26 ENABLE_KYC = YES
     27 
     28 # What the user has to do when a rule trips: fill in a form served by the
     29 # exchange's KYC SPA.  A FORM check (rather than INFO) is what gives the wallet
     30 # a link to offer, and "none" accepts whatever the form returns — the test
     31 # suite's validating program, taler-exchange-helper-measure-test-form, is not
     32 # part of the packaged exchange.
     33 [kyc-check-sim-form]
     34 VOLUNTARY = NO
     35 TYPE = FORM
     36 DESCRIPTION = "The simulator requires identification for larger withdrawals"
     37 DESCRIPTION_I18N = {}
     38 REQUIRES =
     39 FALLBACK = sim-freeze
     40 FORM_NAME = full_name_and_birthdate
     41 OUTPUTS = FULL_NAME DATE_OF_BIRTH
     42 
     43 [kyc-measure-sim-form]
     44 CHECK_NAME = sim-form
     45 PROGRAM = none
     46 CONTEXT = {}
     47 
     48 # Shown once the check has been passed.
     49 [kyc-check-sim-info]
     50 VOLUNTARY = NO
     51 TYPE = INFO
     52 DESCRIPTION = "Your account is operating normally"
     53 DESCRIPTION_I18N = {}
     54 REQUIRES =
     55 FALLBACK = sim-freeze
     56 
     57 [kyc-measure-sim-info]
     58 CHECK_NAME = sim-info
     59 CONTEXT = {}
     60 
     61 [kyc-measure-sim-freeze]
     62 CHECK_NAME = skip
     63 PROGRAM = freeze
     64 CONTEXT = {}
     65 
     66 [aml-program-none]
     67 DESCRIPTION = "Do nothing"
     68 COMMAND = taler-exchange-helper-measure-none
     69 FALLBACK = sim-freeze
     70 
     71 [aml-program-freeze]
     72 DESCRIPTION = "Freeze the account pending investigation"
     73 COMMAND = taler-exchange-helper-measure-freeze
     74 FALLBACK = sim-freeze
     75 
     76 # Withdrawing more than EUR:5 in a day needs the check above.
     77 [kyc-rule-sim-withdraw]
     78 ENABLED = YES
     79 EXPOSED = YES
     80 IS_AND_COMBINATOR = YES
     81 OPERATION_TYPE = WITHDRAW
     82 THRESHOLD = EUR:5
     83 TIMEFRAME = 1d
     84 NEXT_MEASURES = sim-form