summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-04-08 10:22:18 -0300
committerSebastian <sebasjm@gmail.com>2024-04-09 15:50:55 -0300
commit9dec13056fa7af00e6ba16e6e57d527e3aa25185 (patch)
tree0fe581e2a3d1ff8cc210e17d06a66337d512b6c4
parentf5608b5acac8bd3397ac3bb2954f165018703eb4 (diff)
downloadwallet-core-9dec13056fa7af00e6ba16e6e57d527e3aa25185.tar.gz
wallet-core-9dec13056fa7af00e6ba16e6e57d527e3aa25185.tar.bz2
wallet-core-9dec13056fa7af00e6ba16e6e57d527e3aa25185.zip
remove script, will be completed in deploymentv0.10.6-dev.1
-rwxr-xr-xpackages/taler-harness/bin/create_merchantAndBankAccount_pdf.sh40
-rw-r--r--packages/taler-harness/bin/pdf-template.html65
2 files changed, 0 insertions, 105 deletions
diff --git a/packages/taler-harness/bin/create_merchantAndBankAccount_pdf.sh b/packages/taler-harness/bin/create_merchantAndBankAccount_pdf.sh
deleted file mode 100755
index 008791eff..000000000
--- a/packages/taler-harness/bin/create_merchantAndBankAccount_pdf.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/bash
-# This file is in the public domain.
-
-THIS_FILE=$(realpath "$0")
-DIR=$(dirname "$THIS_FILE")
-
-# this script requires from debian packages
-# * jq
-# * sponge (from moreutils)
-# * wkhtmltopdf
-# * qrencode
-# * sponge:
-#
-# and from python pip packages
-#
-# * chevron
-
-DATA=$(mktemp)
-set -e
-
-[ -z "$1" ] && echo First parameter must be the json file result from \'taler-harness deployment provision-bank-and-merchant\'. Alternative \'-\' can be used if the file is provided from stdin. && exit 1
-
-cat $1 > $DATA
-
-[ -z "$(jq -r '.bankUser//empty' $DATA)" ] && echo the json file is not complete: missing bankUser && exit 1
-[ -z "$(jq -r '.bankURL//empty' $DATA)" ] && echo the json file is not complete: missing bankURL && exit 1
-[ -z "$(jq -r '.merchantURL//empty' $DATA)" ] && echo the json file is not complete: missing merchantURL && exit 1
-[ -z "$(jq -r '.templateURI//empty' $DATA)" ] && echo the json file is not complete: missing templateURI && exit 1
-[ -z "$(jq -r '.password//empty' $DATA)" ] && echo the json file is not complete: missing password && exit 1
-
-add_qr_image(){
- jq -r $1 $DATA | qrencode -l Q -m 2 -s 5 -o - | base64 -w 0 | jq -Rn '{"'$2'":inputs}' | jq -s add - $DATA | sponge $DATA
-}
-
-add_qr_image .templateURI templateQR
-add_qr_image .bankURL bankQR
-add_qr_image .merchantURL merchantQR
-
-chevron $DIR/pdf-template.html -d $DATA | wkhtmltopdf - out.pdf
-
diff --git a/packages/taler-harness/bin/pdf-template.html b/packages/taler-harness/bin/pdf-template.html
deleted file mode 100644
index d308d67c4..000000000
--- a/packages/taler-harness/bin/pdf-template.html
+++ /dev/null
@@ -1,65 +0,0 @@
-<html>
-
-<body style="padding: 3em">
- <h1 id="account-information">Account information</h1>
-
- <p>The information in this page is confidentail, do not share with others.</p>
-
- <h2 style="margin-top: 4em;" id="bank-account">Bank</h2>
- <p>
- In your bank account you will be able to see how much revenue
- has been consolidated.
- </p>
- <div style="display: flex; justify-content: space-between;">
-
- <div>
- <p>URL: {{bankURL}}</p>
- <p>accounts id: {{bankUser}}</p>
- <p>password: {{password}}</p>
- </div>
-
- <div>
- <figure style="text-align: center;">
- <img src="data:image/png;base64,{{bankQR}}" alt="" />
- <figcaption>bank URL</figcaption>
- </figure>
- </div>
- </div>
-
- <hr />
-
- <h2 style="margin-top: 4em;" id="merchant-instance">Backoffice</h2>
- <p>
- In this site you will be able to see how much are you selling,
- make refunds or create new QR codes.
- </p>
-
- <div style="display: flex; justify-content: space-between;">
- <div>
- <p>URL: {{merchantURL}}</p>
- <p>password: {{password}}</p>
- </div>
- <div>
- <figure style="text-align: center;">
- <img src="data:image/png;base64,{{merchantQR}}" alt="" />
- <figcaption>merchant URL</figcaption>
- </figure>
- </div>
- </div>
-
- <hr />
- <div style="page-break-after: always;">
-
- </div>
- <h1 style="margin-top: 4em;" id="template">Payme QR code</h1>
- <p>
- The following QR code can be utilized in
- public settings to request payments.
- </p>
- <figure style="text-align: center;">
- <img src="data:image/png;base64,{{templateQR}}" alt="" />
- <figcaption>{{templateURI}}</figcaption>
- </figure>
-</body>
-
-</html> \ No newline at end of file