diff options
author | MS <ms@taler.net> | 2020-11-13 17:04:47 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2020-11-13 17:04:47 +0100 |
commit | a89c1c13dcc5ece619c2f60cb1c2e7adc9d555ab (patch) | |
tree | d9685500559683dfa6ba5de45ccb0bf223e0a16d /cli | |
parent | 5c2b1dfc68d8b5451d82e7916e8c2260c81d3d95 (diff) | |
download | libeufin-a89c1c13dcc5ece619c2f60cb1c2e7adc9d555ab.tar.gz libeufin-a89c1c13dcc5ece619c2f60cb1c2e7adc9d555ab.tar.bz2 libeufin-a89c1c13dcc5ece619c2f60cb1c2e7adc9d555ab.zip |
Testing environment.
Diffstat (limited to 'cli')
-rwxr-xr-x | cli/setup-template.sh | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/cli/setup-template.sh b/cli/setup-template.sh index 512e3905..3088a883 100755 --- a/cli/setup-template.sh +++ b/cli/setup-template.sh @@ -14,9 +14,10 @@ EBICS_BASE_URL="$SANDBOX_URL/ebicsweb" # A bank account details. IBAN=LU150102294655243148 -BIC=y +BIC=ABNALU2A PERSON_NAME=z ACCOUNT_NAME=a +ACCOUNT_NAME_AT_NEXUS="local-$ACCOUNT_NAME" # A Nexus user details. NEXUS_USER=u @@ -96,7 +97,17 @@ echo Download bank accounts connections download-bank-accounts \ $NEXUS_BANK_CONNECTION_NAME > /dev/null -echo Note: NEXUS_USERNAME, NEXUS_PASSWORD, and NEXUS_BASE_URL -echo have been *already* exported in this shell. Bank connection -echo $(tput bold)$NEXUS_BANK_CONNECTION_NAME$(tput sgr0) can be soon used via the $(tput bold)libeufin-cli$(tput sgr0) utility! -exec bash +# Import bank account for user. +./libeufin-cli \ + connections import-bank-account \ + --offered-account-id=$ACCOUNT_NAME \ + --nexus-bank-account-id=$ACCOUNT_NAME_AT_NEXUS \ + $NEXUS_BANK_CONNECTION_NAME > /dev/null + +cat << EOF + +Now usable via $(tput bold)libeufin-cli$(tput sgr0): +Bank connection: $(tput bold)$NEXUS_BANK_CONNECTION_NAME$(tput sgr0) +Bank account: $(tput bold)$ACCOUNT_NAME_AT_NEXUS$(tput sgr0) + +EOF |