exchange

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

taler-exchange-kyc-oauth2-test-forms-converter.sh (555B)


      1 #!/bin/bash
      2 # This file is in the public domain.
      3 #
      4 # Converts the JSON output of the test OAuth 2.0 service like
      5 # taler-exchange-kyc-oauth2-test-converter.sh, but returns it as two
      6 # attribute sets, one per form, as a provider that collects several
      7 # forms in one KYC process does.  The first set is the primary one.
      8 #
      9 
     10 # Die if anything goes wrong.
     11 set -eu
     12 
     13 echo "Running $0" 1>&2
     14 
     15 taler-exchange-kyc-oauth2-test-converter.sh \
     16     | jq '[ . + {"FORM_ID":"test-forms-primary"},
     17             {"FORM_ID":"test-forms-second","NOTE":"second form"} ]'
     18 exit 0