merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

ModeNameSize
-rw-r--r--.dir-locals.el16L
-rw-r--r--.gitignore92L
-rw-r--r--.gitmodules8L
-rw-r--r--AUTHORS6L
-rw-r--r--COPYING14L
-rw-r--r--COPYING.AGPL661L
-rw-r--r--COPYING.GPL674L
-rw-r--r--COPYING.LGPL510L
-rw-r--r--ChangeLog125L
-rw-r--r--Makefile.am29L
-rw-r--r--NEWS0B
-rw-r--r--README92L
-rw-r--r--RELEASE.md21L
-rwxr-xr-xbootstrap57L
-rw-r--r--configure.ac509L
-rw-r--r--contrib/.gitignore6L
-rw-r--r--contrib/Makefile.am.in42L
-rwxr-xr-xcontrib/bump62L
-rwxr-xr-xcontrib/check-prebuilt15L
-rw-r--r--contrib/ci/Containerfile76L
-rwxr-xr-xcontrib/ci/ci.sh34L
-rwxr-xr-xcontrib/ci/debian-package-job.sh23L
-rw-r--r--contrib/ci/jobs/0-codespell/config.ini6L
-rw-r--r--contrib/ci/jobs/0-codespell/dictionary.txt48L
-rwxr-xr-xcontrib/ci/jobs/0-codespell/job.sh103L
-rwxr-xr-xcontrib/ci/jobs/1-build/build.sh12L
-rwxr-xr-xcontrib/ci/jobs/1-build/job.sh9L
-rwxr-xr-xcontrib/ci/jobs/2-test/1-build.sh12L
-rwxr-xr-xcontrib/ci/jobs/2-test/2-install.sh4L
-rwxr-xr-xcontrib/ci/jobs/2-test/3-startdb.sh7L
-rwxr-xr-xcontrib/ci/jobs/2-test/4-test.sh25L
-rwxr-xr-xcontrib/ci/jobs/2-test/5-coverage.sh20L
-rw-r--r--contrib/ci/jobs/2-test/config.ini6L
-rwxr-xr-xcontrib/ci/jobs/2-test/job.sh10L
-rw-r--r--contrib/ci/jobs/3-docs/config.ini6L
-rwxr-xr-xcontrib/ci/jobs/3-docs/docs.sh11L
-rwxr-xr-xcontrib/ci/jobs/3-docs/job.sh6L
-rwxr-xr-xcontrib/ci/jobs/4-deb-package/job.sh2L
-rw-r--r--contrib/ci/jobs/5-deploy-package/config.ini6L
-rwxr-xr-xcontrib/ci/jobs/5-deploy-package/job.sh14L
l---------contrib/ci/jobs/6-arm64-build/build.sh1L
-rw-r--r--contrib/ci/jobs/6-arm64-build/config.ini6L
l---------contrib/ci/jobs/6-arm64-build/job.sh1L
-rw-r--r--contrib/ci/jobs/7-arm64-deb-package/config.ini6L
-rwxr-xr-xcontrib/ci/jobs/7-arm64-deb-package/job.sh2L
l---------contrib/ci/jobs/8-arm64-deploy-package/config.ini1L
l---------contrib/ci/jobs/8-arm64-deploy-package/job.sh1L
-rwxr-xr-xcontrib/ci/version.sh20L
-rw-r--r--contrib/gnunet.tag226L
-rw-r--r--contrib/merchant-spa.lock1L
-rw-r--r--contrib/merchant-tos-demo-v0.en.rst7L
-rw-r--r--contrib/merchant-tos-tops-v0.en.rst113L
-rw-r--r--contrib/microhttpd.tag150L
-rw-r--r--contrib/taler-exchange.tag211L
-rwxr-xr-xcontrib/taler-merchant-dbconfig136L
-rwxr-xr-xcontrib/uncrustify-mode.el161L
-rw-r--r--contrib/uncrustify.cfg95L
-rw-r--r--contrib/uncrustify.el13L
-rwxr-xr-xcontrib/uncrustify.sh14L
-rwxr-xr-xcontrib/uncrustify_precommit71L
m---------contrib/wallet-core @ 91ff254
-rw-r--r--debian/.gitignore27L
-rw-r--r--debian/README-packaging.md6L
-rw-r--r--debian/changelog635L
-rw-r--r--debian/control80L
-rw-r--r--debian/copyright699L
-rw-r--r--debian/etc/apache2/sites-available/taler-merchant.conf48L
-rw-r--r--debian/etc/nginx/sites-available/taler-merchant56L
-rw-r--r--debian/etc/taler-merchant/conf.d/merchant.conf10L
-rw-r--r--debian/etc/taler-merchant/overrides.conf1L
-rw-r--r--debian/etc/taler-merchant/secrets/merchant-db.secret.conf8L
-rw-r--r--debian/etc/taler-merchant/taler-merchant.conf37L
-rw-r--r--debian/libtalermerchant-dev.install14L
-rw-r--r--debian/libtalermerchant.install5L
-rw-r--r--debian/patches/0001-Dont_copy_license_file.patch22L
-rw-r--r--debian/patches/series1L
-rw-r--r--debian/po/POTFILES.in1L
-rwxr-xr-xdebian/rules59L
-rw-r--r--debian/source/format1L
-rw-r--r--debian/source/options3L
-rw-r--r--debian/taler-merchant.README.Debian38L
-rw-r--r--debian/taler-merchant.docs1L
-rw-r--r--debian/taler-merchant.install11L
-rw-r--r--debian/taler-merchant.lintian-overrides3L
-rw-r--r--debian/taler-merchant.postinst101L
-rw-r--r--debian/taler-merchant.postrm27L
-rw-r--r--debian/taler-merchant.prerm20L
-rw-r--r--debian/taler-merchant.taler-merchant-dbinit-gc.service11L
-rw-r--r--debian/taler-merchant.taler-merchant-dbinit-gc.timer11L
-rw-r--r--debian/taler-merchant.taler-merchant-depositcheck.service21L
-rw-r--r--debian/taler-merchant.taler-merchant-donaukeyupdate.service18L
-rw-r--r--debian/taler-merchant.taler-merchant-exchangekeyupdate.service18L
-rw-r--r--debian/taler-merchant.taler-merchant-httpd.service21L
-rw-r--r--debian/taler-merchant.taler-merchant-httpd.socket14L
-rw-r--r--debian/taler-merchant.taler-merchant-kyccheck.service21L
-rw-r--r--debian/taler-merchant.taler-merchant-reconciliation.service21L
-rw-r--r--debian/taler-merchant.taler-merchant-webhook.service21L
-rw-r--r--debian/taler-merchant.taler-merchant-wirewatch.service22L
-rw-r--r--debian/taler-merchant.taler-merchant.slice7L
-rw-r--r--debian/taler-merchant.taler-merchant.target15L
-rw-r--r--debian/taler-merchant.tmpfiles2L
-rw-r--r--debian/upstream/metadata4L
-rw-r--r--debian/upstream/signing-key.asc637L
-rw-r--r--debian/watch3L
-rw-r--r--doc/Makefile.am40L
-rw-r--r--doc/brown-paper.css63L
-rwxr-xr-xdoc/config.sh86L
-rw-r--r--doc/docstyle.css76L
-rw-r--r--doc/doxygen/.gitignore2L
-rw-r--r--doc/doxygen/Makefile.am19L
-rw-r--r--doc/doxygen/logo.svg87L
-rw-r--r--doc/doxygen/taler.doxy301L
m---------doc/prebuilt @ af5ddaf
-rw-r--r--m4/ax_compare_version.m4177L
-rw-r--r--m4/ax_lib_postgresql.m4247L
-rw-r--r--m4/ax_prog_doxygen.m4586L
-rw-r--r--m4/libcurl.m4251L
-rw-r--r--m4/mhd.m469L
-rw-r--r--src/.gitignore10L
-rw-r--r--src/Makefile.am3L
-rw-r--r--src/backend/.gitignore7L
-rw-r--r--src/backend/Makefile.am375L
-rw-r--r--src/backend/kudos.conf5L
-rw-r--r--src/backend/merchant.conf71L
-rw-r--r--src/backend/merchant.priv32B
-rw-r--r--src/backend/taler-merchant-depositcheck.c1167L
-rw-r--r--src/backend/taler-merchant-donaukeyupdate.c1132L
-rw-r--r--src/backend/taler-merchant-exchangekeyupdate.c1076L
-rw-r--r--src/backend/taler-merchant-httpd.c3423L
-rw-r--r--src/backend/taler-merchant-httpd.h981L
-rw-r--r--src/backend/taler-merchant-httpd_config.c166L
-rw-r--r--src/backend/taler-merchant-httpd_config.h39L
-rw-r--r--src/backend/taler-merchant-httpd_contract.c67L
-rw-r--r--src/backend/taler-merchant-httpd_contract.h53L
-rw-r--r--src/backend/taler-merchant-httpd_exchanges.c1250L
-rw-r--r--src/backend/taler-merchant-httpd_exchanges.h269L
-rw-r--r--src/backend/taler-merchant-httpd_get-orders-ID.c1713L
-rw-r--r--src/backend/taler-merchant-httpd_get-orders-ID.h47L
-rw-r--r--src/backend/taler-merchant-httpd_get-products-image.c87L
-rw-r--r--src/backend/taler-merchant-httpd_get-products-image.h31L
-rw-r--r--src/backend/taler-merchant-httpd_get-templates-ID.c75L
-rw-r--r--src/backend/taler-merchant-httpd_get-templates-ID.h42L
-rw-r--r--src/backend/taler-merchant-httpd_helper.c1549L
-rw-r--r--src/backend/taler-merchant-httpd_helper.h401L
-rw-r--r--src/backend/taler-merchant-httpd_mfa.c701L
-rw-r--r--src/backend/taler-merchant-httpd_mfa.h90L
-rw-r--r--src/backend/taler-merchant-httpd_mhd.c78L
-rw-r--r--src/backend/taler-merchant-httpd_mhd.h114L
-rw-r--r--src/backend/taler-merchant-httpd_post-challenge-ID-confirm.c125L
-rw-r--r--src/backend/taler-merchant-httpd_post-challenge-ID-confirm.h45L
-rw-r--r--src/backend/taler-merchant-httpd_post-challenge-ID.c657L
-rw-r--r--src/backend/taler-merchant-httpd_post-challenge-ID.h49L
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-abort.c1041L
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-abort.h49L
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-claim.c308L
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-claim.h42L
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-paid.c198L
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-paid.h40L
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-pay.c5049L
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-pay.h49L
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-refund.c839L
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-refund.h48L
-rw-r--r--src/backend/taler-merchant-httpd_post-using-templates.c307L
-rw-r--r--src/backend/taler-merchant-httpd_post-using-templates.h40L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-account-ID.c94L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-account-ID.h42L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-categories-ID.c92L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-categories-ID.h42L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-donau-instance-ID.c93L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-donau-instance-ID.h44L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-instances-ID-token.c164L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-instances-ID-token.h59L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-instances-ID.c155L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-instances-ID.h56L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-orders-ID.c133L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-orders-ID.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-otp-devices-ID.c78L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-otp-devices-ID.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-products-ID.c103L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-products-ID.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-templates-ID.c78L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-templates-ID.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-token-families-SLUG.c75L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-token-families-SLUG.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-transfers-ID.c90L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-transfers-ID.h42L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-units-ID.c83L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-units-ID.h33L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-webhooks-ID.c78L
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-webhooks-ID.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-accounts-ID.c105L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-accounts-ID.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-accounts.c84L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-accounts.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-categories-ID.c121L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-categories-ID.h42L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-categories.c93L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-categories.h42L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-donau-instances.c122L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-donau-instances.h42L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-incoming.c194L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-incoming.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c1300L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.h67L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-instances-ID-tokens.c117L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-instances-ID-tokens.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-instances-ID.c156L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-instances-ID.h56L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-instances.c125L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-instances.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-orders-ID.c1649L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-orders-ID.h49L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-orders.c1022L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-orders.h68L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-otp-devices-ID.c110L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-otp-devices-ID.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-otp-devices.c80L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-otp-devices.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-pos.c229L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-pos.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-products-ID.c146L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-products-ID.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-products.c149L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-products.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-statistics-amount-SLUG.c254L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-statistics-amount-SLUG.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-statistics-counter-SLUG.c227L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-statistics-counter-SLUG.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-templates-ID.c80L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-templates-ID.h42L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-templates.c79L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-templates.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-token-families-SLUG.c126L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-token-families-SLUG.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-token-families.c101L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-token-families.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-transfers.c177L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-transfers.h42L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-units-ID.c88L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-units-ID.h33L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-units.c91L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-units.h33L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-webhooks-ID.c92L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-webhooks-ID.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-webhooks.c80L
-rw-r--r--src/backend/taler-merchant-httpd_private-get-webhooks.h41L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-accounts-ID.c133L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-accounts-ID.h43L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-categories-ID.c120L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-categories-ID.h45L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-instances-ID.c465L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-instances-ID.h59L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-orders-ID-forget.c243L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-orders-ID-forget.h43L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-otp-devices-ID.c114L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-otp-devices-ID.h44L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-products-ID.c445L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-products-ID.h43L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-templates-ID.c217L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-templates-ID.h43L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-token-families-SLUG.c159L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-token-families-SLUG.h43L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-units-ID.c242L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-units-ID.h33L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-webhooks-ID.c188L
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-webhooks-ID.h43L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-account.c325L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-account.h44L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-categories.c170L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-categories.h45L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-donau-instance.c352L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-donau-instance.h49L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-instances-ID-auth.c341L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-instances-ID-auth.h80L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-instances-ID-token.c191L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-instances-ID-token.h45L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-instances.c641L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-instances.h59L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-orders-ID-refund.c446L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-orders-ID-refund.h43L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-orders.c4595L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-orders.h50L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-otp-devices.c199L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-otp-devices.h44L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-products-ID-lock.c206L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-products-ID-lock.h43L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-products.c388L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-products.h43L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-templates.c252L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-templates.h43L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-token-families.c384L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-token-families.h43L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-transfers.c158L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-transfers.h44L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-units.c219L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-units.h33L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-webhooks.c215L
-rw-r--r--src/backend/taler-merchant-httpd_private-post-webhooks.h43L
-rw-r--r--src/backend/taler-merchant-httpd_qr.c98L
-rw-r--r--src/backend/taler-merchant-httpd_qr.h35L
-rw-r--r--src/backend/taler-merchant-httpd_spa.c87L
-rw-r--r--src/backend/taler-merchant-httpd_spa.h52L
-rw-r--r--src/backend/taler-merchant-httpd_statics.c339L
-rw-r--r--src/backend/taler-merchant-httpd_statics.h50L
-rw-r--r--src/backend/taler-merchant-httpd_terms.c79L
-rw-r--r--src/backend/taler-merchant-httpd_terms.h62L
-rw-r--r--src/backend/taler-merchant-kyccheck.c1590L
-rw-r--r--src/backend/taler-merchant-reconciliation.c1271L
-rw-r--r--src/backend/taler-merchant-webhook.c588L
-rw-r--r--src/backend/taler-merchant-wirewatch.c705L
-rw-r--r--src/backend/test-merchant.conf0B
-rw-r--r--src/backend/test.conf172L
-rw-r--r--src/backend/tops.conf5L
-rw-r--r--src/backenddb/.gitignore1L
-rw-r--r--src/backenddb/Makefile.am308L
-rw-r--r--src/backenddb/drop.sql34L
-rw-r--r--src/backenddb/example-statistics-0001.sql140L
-rw-r--r--src/backenddb/future.sql64L
-rw-r--r--src/backenddb/merchant-0001.sql889L
-rw-r--r--src/backenddb/merchant-0002.sql171L
-rw-r--r--src/backenddb/merchant-0003.sql50L
-rw-r--r--src/backenddb/merchant-0004.sql30L
-rw-r--r--src/backenddb/merchant-0005.sql36L
-rw-r--r--src/backenddb/merchant-0006.sql66L
-rw-r--r--src/backenddb/merchant-0007.sql34L
-rw-r--r--src/backenddb/merchant-0008.sql58L
-rw-r--r--src/backenddb/merchant-0009.sql43L
-rw-r--r--src/backenddb/merchant-0010.sql59L
-rw-r--r--src/backenddb/merchant-0011.sql39L
-rw-r--r--src/backenddb/merchant-0012.sql33L
-rw-r--r--src/backenddb/merchant-0013.sql122L
-rw-r--r--src/backenddb/merchant-0014.sql589L
-rw-r--r--src/backenddb/merchant-0015.sql35L
-rw-r--r--src/backenddb/merchant-0016.sql31L
-rw-r--r--src/backenddb/merchant-0017.sql35L
-rw-r--r--src/backenddb/merchant-0018.sql37L
-rw-r--r--src/backenddb/merchant-0019.sql42L
-rw-r--r--src/backenddb/merchant-0020.sql41L
-rw-r--r--src/backenddb/merchant-0021.sql295L
-rw-r--r--src/backenddb/merchant-0022.sql157L
-rw-r--r--src/backenddb/merchant-0023.sql88L
-rw-r--r--src/backenddb/merchant-0024.sql35L
-rw-r--r--src/backenddb/merchant-0025.sql155L
-rw-r--r--src/backenddb/merchant-0026.sql67L
-rw-r--r--src/backenddb/merchant-0027.sql464L
-rw-r--r--src/backenddb/merchantdb-postgres.conf6L
-rw-r--r--src/backenddb/merchantdb_helper.c122L
-rw-r--r--src/backenddb/merchantdb_plugin.c79L
-rw-r--r--src/backenddb/pg_account_kyc_get_status.c224L
-rw-r--r--src/backenddb/pg_account_kyc_get_status.h49L
-rw-r--r--src/backenddb/pg_account_kyc_set_failed.c101L
-rw-r--r--src/backenddb/pg_account_kyc_set_failed.h51L
-rw-r--r--src/backenddb/pg_account_kyc_set_failed.sql100L
-rw-r--r--src/backenddb/pg_account_kyc_set_status.c118L
-rw-r--r--src/backenddb/pg_account_kyc_set_status.h61L
-rw-r--r--src/backenddb/pg_account_kyc_set_status.sql119L
-rw-r--r--src/backenddb/pg_activate_account.c53L
-rw-r--r--src/backenddb/pg_activate_account.h41L
-rw-r--r--src/backenddb/pg_check_donau_instance.c64L
-rw-r--r--src/backenddb/pg_check_donau_instance.h45L
-rw-r--r--src/backenddb/pg_check_transfer_exists.c63L
-rw-r--r--src/backenddb/pg_check_transfer_exists.h43L
-rw-r--r--src/backenddb/pg_create_mfa_challenge.c84L
-rw-r--r--src/backenddb/pg_create_mfa_challenge.h59L
-rw-r--r--src/backenddb/pg_delete_category.c54L
-rw-r--r--src/backenddb/pg_delete_category.h43L
-rw-r--r--src/backenddb/pg_delete_contract_terms.c59L
-rw-r--r--src/backenddb/pg_delete_contract_terms.h47L
-rw-r--r--src/backenddb/pg_delete_donau_instance.c53L
-rw-r--r--src/backenddb/pg_delete_donau_instance.h43L
-rw-r--r--src/backenddb/pg_delete_exchange_accounts.c48L
-rw-r--r--src/backenddb/pg_delete_exchange_accounts.h42L
-rw-r--r--src/backenddb/pg_delete_instance_private_key.c50L
-rw-r--r--src/backenddb/pg_delete_instance_private_key.h39L
-rw-r--r--src/backenddb/pg_delete_login_token.c81L
-rw-r--r--src/backenddb/pg_delete_login_token.h58L
-rw-r--r--src/backenddb/pg_delete_order.c93L
-rw-r--r--src/backenddb/pg_delete_order.h45L
-rw-r--r--src/backenddb/pg_delete_otp.c54L
-rw-r--r--src/backenddb/pg_delete_otp.h43L
-rw-r--r--src/backenddb/pg_delete_pending_webhook.c48L
-rw-r--r--src/backenddb/pg_delete_pending_webhook.h40L
-rw-r--r--src/backenddb/pg_delete_product.c57L
-rw-r--r--src/backenddb/pg_delete_product.h43L
-rw-r--r--src/backenddb/pg_delete_template.c55L
-rw-r--r--src/backenddb/pg_delete_template.h44L
-rw-r--r--src/backenddb/pg_delete_token_family.c53L
-rw-r--r--src/backenddb/pg_delete_token_family.h41L
-rw-r--r--src/backenddb/pg_delete_transfer.c58L
-rw-r--r--src/backenddb/pg_delete_transfer.h43L
-rw-r--r--src/backenddb/pg_delete_unit.c68L
-rw-r--r--src/backenddb/pg_delete_unit.h45L
-rw-r--r--src/backenddb/pg_delete_webhook.c54L
-rw-r--r--src/backenddb/pg_delete_webhook.h42L
-rw-r--r--src/backenddb/pg_do_handle_category_changes.sql162L
-rw-r--r--src/backenddb/pg_do_handle_inventory_changes.sql294L
-rw-r--r--src/backenddb/pg_expire_locks.c86L
-rw-r--r--src/backenddb/pg_expire_locks.h39L
-rw-r--r--src/backenddb/pg_finalize_transfer_status.c80L
-rw-r--r--src/backenddb/pg_finalize_transfer_status.h54L
-rw-r--r--src/backenddb/pg_gc.c69L
-rw-r--r--src/backenddb/pg_gc.h37L
-rw-r--r--src/backenddb/pg_get_kyc_limits.c79L
-rw-r--r--src/backenddb/pg_get_kyc_limits.h50L
-rw-r--r--src/backenddb/pg_get_kyc_status.c111L
-rw-r--r--src/backenddb/pg_get_kyc_status.h66L
-rw-r--r--src/backenddb/pg_helper.c138L
-rw-r--r--src/backenddb/pg_helper.h158L
-rw-r--r--src/backenddb/pg_inactivate_account.c53L
-rw-r--r--src/backenddb/pg_inactivate_account.h42L
-rw-r--r--src/backenddb/pg_increase_refund.c709L
-rw-r--r--src/backenddb/pg_increase_refund.h62L
-rw-r--r--src/backenddb/pg_insert_account.c73L
-rw-r--r--src/backenddb/pg_insert_account.h41L
-rw-r--r--src/backenddb/pg_insert_category.c66L
-rw-r--r--src/backenddb/pg_insert_category.h46L
-rw-r--r--src/backenddb/pg_insert_contract_terms.c135L
-rw-r--r--src/backenddb/pg_insert_contract_terms.h52L
-rw-r--r--src/backenddb/pg_insert_deposit.c79L
-rw-r--r--src/backenddb/pg_insert_deposit.h55L
-rw-r--r--src/backenddb/pg_insert_deposit_confirmation.c134L
-rw-r--r--src/backenddb/pg_insert_deposit_confirmation.h60L
-rw-r--r--src/backenddb/pg_insert_deposit_to_transfer.c68L
-rw-r--r--src/backenddb/pg_insert_deposit_to_transfer.h48L
-rw-r--r--src/backenddb/pg_insert_deposit_to_transfer.sql138L
-rw-r--r--src/backenddb/pg_insert_donau_instance.c73L
-rw-r--r--src/backenddb/pg_insert_donau_instance.h46L
-rw-r--r--src/backenddb/pg_insert_exchange_account.c66L
-rw-r--r--src/backenddb/pg_insert_exchange_account.h51L
-rw-r--r--src/backenddb/pg_insert_exchange_keys.c72L
-rw-r--r--src/backenddb/pg_insert_exchange_keys.h43L
-rw-r--r--src/backenddb/pg_insert_exchange_signkey.c66L
-rw-r--r--src/backenddb/pg_insert_exchange_signkey.h50L
-rw-r--r--src/backenddb/pg_insert_instance.c121L
-rw-r--r--src/backenddb/pg_insert_instance.h49L
-rw-r--r--src/backenddb/pg_insert_issued_token.c78L
-rw-r--r--src/backenddb/pg_insert_issued_token.h42L
-rw-r--r--src/backenddb/pg_insert_issued_token.sql72L
-rw-r--r--src/backenddb/pg_insert_login_token.c67L
-rw-r--r--src/backenddb/pg_insert_login_token.h52L
-rw-r--r--src/backenddb/pg_insert_order.c95L
-rw-r--r--src/backenddb/pg_insert_order.h56L
-rw-r--r--src/backenddb/pg_insert_order_blinded_sigs.c61L
-rw-r--r--src/backenddb/pg_insert_order_blinded_sigs.h47L
-rw-r--r--src/backenddb/pg_insert_order_lock.c98L
-rw-r--r--src/backenddb/pg_insert_order_lock.h50L
-rw-r--r--src/backenddb/pg_insert_otp.c74L
-rw-r--r--src/backenddb/pg_insert_otp.h45L
-rw-r--r--src/backenddb/pg_insert_pending_webhook.c70L
-rw-r--r--src/backenddb/pg_insert_pending_webhook.h49L
-rw-r--r--src/backenddb/pg_insert_product.c101L
-rw-r--r--src/backenddb/pg_insert_product.h55L
-rw-r--r--src/backenddb/pg_insert_product.sql215L
-rw-r--r--src/backenddb/pg_insert_refund_proof.c58L
-rw-r--r--src/backenddb/pg_insert_refund_proof.h43L
-rw-r--r--src/backenddb/pg_insert_spent_token.c88L
-rw-r--r--src/backenddb/pg_insert_spent_token.h47L
-rw-r--r--src/backenddb/pg_insert_spent_token.sql88L
-rw-r--r--src/backenddb/pg_insert_template.c69L
-rw-r--r--src/backenddb/pg_insert_template.h46L
-rw-r--r--src/backenddb/pg_insert_token_family.c95L
-rw-r--r--src/backenddb/pg_insert_token_family.h43L
-rw-r--r--src/backenddb/pg_insert_token_family_key.c140L
-rw-r--r--src/backenddb/pg_insert_token_family_key.h54L
-rw-r--r--src/backenddb/pg_insert_transfer.c83L
-rw-r--r--src/backenddb/pg_insert_transfer.h52L
-rw-r--r--src/backenddb/pg_insert_transfer_details.c173L
-rw-r--r--src/backenddb/pg_insert_transfer_details.h51L
-rw-r--r--src/backenddb/pg_insert_transfer_details.sql260L
-rw-r--r--src/backenddb/pg_insert_unit.c84L
-rw-r--r--src/backenddb/pg_insert_unit.h47L
-rw-r--r--src/backenddb/pg_insert_webhook.c70L
-rw-r--r--src/backenddb/pg_insert_webhook.h43L
-rw-r--r--src/backenddb/pg_lock_product.c102L
-rw-r--r--src/backenddb/pg_lock_product.h52L
-rw-r--r--src/backenddb/pg_lookup_account.c62L
-rw-r--r--src/backenddb/pg_lookup_account.h43L
-rw-r--r--src/backenddb/pg_lookup_all_products.c217L
-rw-r--r--src/backenddb/pg_lookup_all_products.h43L
-rw-r--r--src/backenddb/pg_lookup_categories.c149L
-rw-r--r--src/backenddb/pg_lookup_categories.h43L
-rw-r--r--src/backenddb/pg_lookup_contract_terms.c80L
-rw-r--r--src/backenddb/pg_lookup_contract_terms.h48L
-rw-r--r--src/backenddb/pg_lookup_contract_terms2.c96L
-rw-r--r--src/backenddb/pg_lookup_contract_terms2.h54L
-rw-r--r--src/backenddb/pg_lookup_contract_terms3.c112L
-rw-r--r--src/backenddb/pg_lookup_contract_terms3.h58L
-rw-r--r--src/backenddb/pg_lookup_deposits.c165L
-rw-r--r--src/backenddb/pg_lookup_deposits.h47L
-rw-r--r--src/backenddb/pg_lookup_deposits_by_contract_and_coin.c328L
-rw-r--r--src/backenddb/pg_lookup_deposits_by_contract_and_coin.h48L
-rw-r--r--src/backenddb/pg_lookup_deposits_by_order.c166L
-rw-r--r--src/backenddb/pg_lookup_deposits_by_order.h43L
-rw-r--r--src/backenddb/pg_lookup_donau_keys.c73L
-rw-r--r--src/backenddb/pg_lookup_donau_keys.h47L
-rw-r--r--src/backenddb/pg_lookup_expected_transfers.c280L
-rw-r--r--src/backenddb/pg_lookup_expected_transfers.h61L
-rw-r--r--src/backenddb/pg_lookup_instance_auth.c59L
-rw-r--r--src/backenddb/pg_lookup_instance_auth.h40L
-rw-r--r--src/backenddb/pg_lookup_instances.c345L
-rw-r--r--src/backenddb/pg_lookup_instances.h60L
-rw-r--r--src/backenddb/pg_lookup_login_tokens.c182L
-rw-r--r--src/backenddb/pg_lookup_login_tokens.h48L
-rw-r--r--src/backenddb/pg_lookup_mfa_challenge.c105L
-rw-r--r--src/backenddb/pg_lookup_mfa_challenge.h62L
-rw-r--r--src/backenddb/pg_lookup_order.c96L
-rw-r--r--src/backenddb/pg_lookup_order.h49L
-rw-r--r--src/backenddb/pg_lookup_order_by_fulfillment.c80L
-rw-r--r--src/backenddb/pg_lookup_order_by_fulfillment.h49L
-rw-r--r--src/backenddb/pg_lookup_order_charity.c95L
-rw-r--r--src/backenddb/pg_lookup_order_charity.h65L
-rw-r--r--src/backenddb/pg_lookup_order_status.c73L
-rw-r--r--src/backenddb/pg_lookup_order_status.h45L
-rw-r--r--src/backenddb/pg_lookup_order_status_by_serial.c71L
-rw-r--r--src/backenddb/pg_lookup_order_status_by_serial.h48L
-rw-r--r--src/backenddb/pg_lookup_order_summary.c75L
-rw-r--r--src/backenddb/pg_lookup_order_summary.h45L
-rw-r--r--src/backenddb/pg_lookup_orders.c291L
-rw-r--r--src/backenddb/pg_lookup_orders.h45L
-rw-r--r--src/backenddb/pg_lookup_otp_devices.c133L
-rw-r--r--src/backenddb/pg_lookup_otp_devices.h45L
-rw-r--r--src/backenddb/pg_lookup_pending_deposits.c200L
-rw-r--r--src/backenddb/pg_lookup_pending_deposits.h50L
-rw-r--r--src/backenddb/pg_lookup_pending_webhooks.c261L
-rw-r--r--src/backenddb/pg_lookup_pending_webhooks.h78L
-rw-r--r--src/backenddb/pg_lookup_product.c182L
-rw-r--r--src/backenddb/pg_lookup_product.h49L
-rw-r--r--src/backenddb/pg_lookup_product_image.c66L
-rw-r--r--src/backenddb/pg_lookup_product_image.h32L
-rw-r--r--src/backenddb/pg_lookup_products.c194L
-rw-r--r--src/backenddb/pg_lookup_products.h72L
-rw-r--r--src/backenddb/pg_lookup_refund_proof.c63L
-rw-r--r--src/backenddb/pg_lookup_refund_proof.h43L
-rw-r--r--src/backenddb/pg_lookup_refunds.c148L
-rw-r--r--src/backenddb/pg_lookup_refunds.h46L
-rw-r--r--src/backenddb/pg_lookup_refunds_detailed.c185L
-rw-r--r--src/backenddb/pg_lookup_refunds_detailed.h46L
-rw-r--r--src/backenddb/pg_lookup_spent_tokens_by_order.c162L
-rw-r--r--src/backenddb/pg_lookup_spent_tokens_by_order.h45L
-rw-r--r--src/backenddb/pg_lookup_statistics_amount_by_bucket.c227L
-rw-r--r--src/backenddb/pg_lookup_statistics_amount_by_bucket.h46L
-rw-r--r--src/backenddb/pg_lookup_statistics_amount_by_interval.c244L
-rw-r--r--src/backenddb/pg_lookup_statistics_amount_by_interval.h46L
-rw-r--r--src/backenddb/pg_lookup_statistics_counter_by_bucket.c167L
-rw-r--r--src/backenddb/pg_lookup_statistics_counter_by_bucket.h46L
-rw-r--r--src/backenddb/pg_lookup_statistics_counter_by_interval.c210L
-rw-r--r--src/backenddb/pg_lookup_statistics_counter_by_interval.h46L
-rw-r--r--src/backenddb/pg_lookup_template.c104L
-rw-r--r--src/backenddb/pg_lookup_template.h46L
-rw-r--r--src/backenddb/pg_lookup_templates.c133L
-rw-r--r--src/backenddb/pg_lookup_templates.h44L
-rw-r--r--src/backenddb/pg_lookup_token_families.c162L
-rw-r--r--src/backenddb/pg_lookup_token_families.h43L
-rw-r--r--src/backenddb/pg_lookup_token_family.c137L
-rw-r--r--src/backenddb/pg_lookup_token_family.h44L
-rw-r--r--src/backenddb/pg_lookup_token_family_key.c188L
-rw-r--r--src/backenddb/pg_lookup_token_family_key.h52L
-rw-r--r--src/backenddb/pg_lookup_token_family_keys.c224L
-rw-r--r--src/backenddb/pg_lookup_token_family_keys.h52L
-rw-r--r--src/backenddb/pg_lookup_transfer_details.c157L
-rw-r--r--src/backenddb/pg_lookup_transfer_details.h45L
-rw-r--r--src/backenddb/pg_lookup_transfer_details_by_order.c230L
-rw-r--r--src/backenddb/pg_lookup_transfer_details_by_order.h44L
-rw-r--r--src/backenddb/pg_lookup_transfer_summary.c153L
-rw-r--r--src/backenddb/pg_lookup_transfer_summary.h45L
-rw-r--r--src/backenddb/pg_lookup_transfers.c228L
-rw-r--r--src/backenddb/pg_lookup_transfers.h60L
-rw-r--r--src/backenddb/pg_lookup_units.c152L
-rw-r--r--src/backenddb/pg_lookup_units.h43L
-rw-r--r--src/backenddb/pg_lookup_webhook.c92L
-rw-r--r--src/backenddb/pg_lookup_webhook.h44L
-rw-r--r--src/backenddb/pg_lookup_webhook_by_event.c158L
-rw-r--r--src/backenddb/pg_lookup_webhook_by_event.h45L
-rw-r--r--src/backenddb/pg_lookup_webhooks.c133L
-rw-r--r--src/backenddb/pg_lookup_webhooks.h43L
-rw-r--r--src/backenddb/pg_lookup_wire_fee.c83L
-rw-r--r--src/backenddb/pg_lookup_wire_fee.h52L
-rw-r--r--src/backenddb/pg_mark_contract_paid.c123L
-rw-r--r--src/backenddb/pg_mark_contract_paid.h48L
-rw-r--r--src/backenddb/pg_mark_order_wired.c48L
-rw-r--r--src/backenddb/pg_mark_order_wired.h39L
-rw-r--r--src/backenddb/pg_purge_instance.c54L
-rw-r--r--src/backenddb/pg_purge_instance.h40L
-rw-r--r--src/backenddb/pg_refund_coin.c77L
-rw-r--r--src/backenddb/pg_refund_coin.h51L
-rw-r--r--src/backenddb/pg_select_account.c80L
-rw-r--r--src/backenddb/pg_select_account.h44L
-rw-r--r--src/backenddb/pg_select_account_by_uri.c83L
-rw-r--r--src/backenddb/pg_select_account_by_uri.h44L
-rw-r--r--src/backenddb/pg_select_accounts.c180L
-rw-r--r--src/backenddb/pg_select_accounts.h44L
-rw-r--r--src/backenddb/pg_select_accounts_by_exchange.c146L
-rw-r--r--src/backenddb/pg_select_accounts_by_exchange.h45L
-rw-r--r--src/backenddb/pg_select_all_donau_instances.c173L
-rw-r--r--src/backenddb/pg_select_all_donau_instances.h45L
-rw-r--r--src/backenddb/pg_select_category.c100L
-rw-r--r--src/backenddb/pg_select_category.h49L
-rw-r--r--src/backenddb/pg_select_category_by_name.c67L
-rw-r--r--src/backenddb/pg_select_category_by_name.h46L
-rw-r--r--src/backenddb/pg_select_donau_instance_by_serial.c63L
-rw-r--r--src/backenddb/pg_select_donau_instance_by_serial.h46L
-rw-r--r--src/backenddb/pg_select_donau_instances.c175L
-rw-r--r--src/backenddb/pg_select_donau_instances.h46L
-rw-r--r--src/backenddb/pg_select_donau_instances_filtered.c132L
-rw-r--r--src/backenddb/pg_select_donau_instances_filtered.h47L
-rw-r--r--src/backenddb/pg_select_exchange_keys.c73L
-rw-r--r--src/backenddb/pg_select_exchange_keys.h45L
-rw-r--r--src/backenddb/pg_select_login_token.c67L
-rw-r--r--src/backenddb/pg_select_login_token.h48L
-rw-r--r--src/backenddb/pg_select_open_transfers.c160L
-rw-r--r--src/backenddb/pg_select_open_transfers.h47L
-rw-r--r--src/backenddb/pg_select_order_blinded_sigs.c127L
-rw-r--r--src/backenddb/pg_select_order_blinded_sigs.h47L
-rw-r--r--src/backenddb/pg_select_otp.c91L
-rw-r--r--src/backenddb/pg_select_otp.h45L
-rw-r--r--src/backenddb/pg_select_otp_serial.c61L
-rw-r--r--src/backenddb/pg_select_otp_serial.h43L
-rw-r--r--src/backenddb/pg_select_unit.c135L
-rw-r--r--src/backenddb/pg_select_unit.h43L
-rw-r--r--src/backenddb/pg_select_wirewatch_accounts.c147L
-rw-r--r--src/backenddb/pg_select_wirewatch_accounts.h44L
-rw-r--r--src/backenddb/pg_solve_mfa_challenge.c83L
-rw-r--r--src/backenddb/pg_solve_mfa_challenge.h53L
-rw-r--r--src/backenddb/pg_solve_mfa_challenge.sql84L
-rw-r--r--src/backenddb/pg_statistics_examples.sql200L
-rw-r--r--src/backenddb/pg_statistics_helpers.sql1092L
-rw-r--r--src/backenddb/pg_store_wire_fee_by_exchange.c76L
-rw-r--r--src/backenddb/pg_store_wire_fee_by_exchange.h52L
-rw-r--r--src/backenddb/pg_template.c26L
-rw-r--r--src/backenddb/pg_template.h29L
-rwxr-xr-xsrc/backenddb/pg_template.sh21L
-rw-r--r--src/backenddb/pg_unlock_inventory.c47L
-rw-r--r--src/backenddb/pg_unlock_inventory.h42L
-rw-r--r--src/backenddb/pg_update_account.c65L
-rw-r--r--src/backenddb/pg_update_account.h48L
-rw-r--r--src/backenddb/pg_update_category.c59L
-rw-r--r--src/backenddb/pg_update_category.h47L
-rw-r--r--src/backenddb/pg_update_contract_session.c84L
-rw-r--r--src/backenddb/pg_update_contract_session.h49L
-rw-r--r--src/backenddb/pg_update_contract_terms.c106L
-rw-r--r--src/backenddb/pg_update_contract_terms.h49L
-rw-r--r--src/backenddb/pg_update_deposit_confirmation_status.c67L
-rw-r--r--src/backenddb/pg_update_deposit_confirmation_status.h53L
-rw-r--r--src/backenddb/pg_update_donau_instance.c71L
-rw-r--r--src/backenddb/pg_update_donau_instance.h46L
-rw-r--r--src/backenddb/pg_update_donau_instance_receipts_amount.c55L
-rw-r--r--src/backenddb/pg_update_donau_instance_receipts_amount.h43L
-rw-r--r--src/backenddb/pg_update_instance.c89L
-rw-r--r--src/backenddb/pg_update_instance.h39L
-rw-r--r--src/backenddb/pg_update_instance_auth.c52L
-rw-r--r--src/backenddb/pg_update_instance_auth.h43L
-rw-r--r--src/backenddb/pg_update_mfa_challenge.c60L
-rw-r--r--src/backenddb/pg_update_mfa_challenge.h53L
-rw-r--r--src/backenddb/pg_update_otp.c65L
-rw-r--r--src/backenddb/pg_update_otp.h47L
-rw-r--r--src/backenddb/pg_update_pending_webhook.c51L
-rw-r--r--src/backenddb/pg_update_pending_webhook.h41L
-rw-r--r--src/backenddb/pg_update_product.c121L
-rw-r--r--src/backenddb/pg_update_product.h67L
-rw-r--r--src/backenddb/pg_update_product.sql177L
-rw-r--r--src/backenddb/pg_update_template.c76L
-rw-r--r--src/backenddb/pg_update_template.h46L
-rw-r--r--src/backenddb/pg_update_token_family.c70L
-rw-r--r--src/backenddb/pg_update_token_family.h44L
-rw-r--r--src/backenddb/pg_update_transfer_status.c71L
-rw-r--r--src/backenddb/pg_update_transfer_status.h53L
-rw-r--r--src/backenddb/pg_update_unit.c97L
-rw-r--r--src/backenddb/pg_update_unit.h61L
-rw-r--r--src/backenddb/pg_update_webhook.c68L
-rw-r--r--src/backenddb/pg_update_webhook.h45L
-rw-r--r--src/backenddb/pg_update_wirewatch_progress.c58L
-rw-r--r--src/backenddb/pg_update_wirewatch_progress.h46L
-rw-r--r--src/backenddb/pg_upsert_donau_keys.c77L
-rw-r--r--src/backenddb/pg_upsert_donau_keys.h44L
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c765L
-rw-r--r--src/backenddb/procedures.sql.in53L
-rw-r--r--src/backenddb/test-merchantdb-postgres.conf12L
-rw-r--r--src/backenddb/test.conf172L
-rw-r--r--src/backenddb/test_merchantdb.c7369L
-rwxr-xr-xsrc/backenddb/test_webhook_trigger.sh369L
-rw-r--r--src/backenddb/versioning.sql294L
-rw-r--r--src/bank/Makefile.am28L
-rw-r--r--src/bank/mb_common.c76L
-rw-r--r--src/bank/mb_common.h45L
-rw-r--r--src/bank/mb_credit.c342L
-rw-r--r--src/bank/mb_parse.c268L
-rw-r--r--src/include/Makefile.am19L
-rw-r--r--src/include/cutted_from_service155L
-rw-r--r--src/include/gettext.h71L
-rw-r--r--src/include/platform.h334L
-rw-r--r--src/include/taler_merchant_bank_lib.h263L
-rw-r--r--src/include/taler_merchant_donau.h397L
-rw-r--r--src/include/taler_merchant_pay_service.h610L
-rw-r--r--src/include/taler_merchant_service.h6621L
-rw-r--r--src/include/taler_merchant_testing_lib.h2348L
-rw-r--r--src/include/taler_merchant_util.h987L
-rw-r--r--src/include/taler_merchantdb_lib.h121L
-rw-r--r--src/include/taler_merchantdb_plugin.h4838L
-rw-r--r--src/lib/.gitignore1L
-rw-r--r--src/lib/Makefile.am115L
-rw-r--r--src/lib/merchant_api_common.c604L
-rw-r--r--src/lib/merchant_api_common.h100L
-rw-r--r--src/lib/merchant_api_curl_defaults.c55L
-rw-r--r--src/lib/merchant_api_curl_defaults.h41L
-rw-r--r--src/lib/merchant_api_delete_account.c185L
-rw-r--r--src/lib/merchant_api_delete_donau_instance.c198L
-rw-r--r--src/lib/merchant_api_delete_instance.c236L
-rw-r--r--src/lib/merchant_api_delete_instance_token.c178L
-rw-r--r--src/lib/merchant_api_delete_order.c177L
-rw-r--r--src/lib/merchant_api_delete_otp_device.c184L
-rw-r--r--src/lib/merchant_api_delete_product.c184L
-rw-r--r--src/lib/merchant_api_delete_template.c184L
-rw-r--r--src/lib/merchant_api_delete_transfer.c184L
-rw-r--r--src/lib/merchant_api_delete_unit.c177L
-rw-r--r--src/lib/merchant_api_delete_webhook.c184L
-rw-r--r--src/lib/merchant_api_get_account.c211L
-rw-r--r--src/lib/merchant_api_get_accounts.c247L
-rw-r--r--src/lib/merchant_api_get_config.c320L
-rw-r--r--src/lib/merchant_api_get_donau_instance.c299L
-rw-r--r--src/lib/merchant_api_get_instance.c235L
-rw-r--r--src/lib/merchant_api_get_instances.c263L
-rw-r--r--src/lib/merchant_api_get_kyc.c515L
-rw-r--r--src/lib/merchant_api_get_orders.c442L
-rw-r--r--src/lib/merchant_api_get_otp_device.c210L
-rw-r--r--src/lib/merchant_api_get_otp_devices.c248L
-rw-r--r--src/lib/merchant_api_get_product.c249L
-rw-r--r--src/lib/merchant_api_get_product_image.c188L
-rw-r--r--src/lib/merchant_api_get_products.c262L
-rw-r--r--src/lib/merchant_api_get_statistics.c717L
-rw-r--r--src/lib/merchant_api_get_template.c201L
-rw-r--r--src/lib/merchant_api_get_templates.c247L
-rw-r--r--src/lib/merchant_api_get_tokenfamily.c218L
-rw-r--r--src/lib/merchant_api_get_transfers.c312L
-rw-r--r--src/lib/merchant_api_get_unit.c249L
-rw-r--r--src/lib/merchant_api_get_units.c329L
-rw-r--r--src/lib/merchant_api_get_webhook.c221L
-rw-r--r--src/lib/merchant_api_get_webhooks.c246L
-rw-r--r--src/lib/merchant_api_lock_product.c279L
-rw-r--r--src/lib/merchant_api_merchant_get_order.c538L
-rw-r--r--src/lib/merchant_api_patch_account.c254L
-rw-r--r--src/lib/merchant_api_patch_instance.c271L
-rw-r--r--src/lib/merchant_api_patch_order_forget.c254L
-rw-r--r--src/lib/merchant_api_patch_otp_device.c252L
-rw-r--r--src/lib/merchant_api_patch_product.c346L
-rw-r--r--src/lib/merchant_api_patch_template.c249L
-rw-r--r--src/lib/merchant_api_patch_unit.c291L
-rw-r--r--src/lib/merchant_api_patch_webhook.c254L
-rw-r--r--src/lib/merchant_api_post_account.c250L
-rw-r--r--src/lib/merchant_api_post_donau_instance.c237L
-rw-r--r--src/lib/merchant_api_post_instance_auth.c227L
-rw-r--r--src/lib/merchant_api_post_instance_token.c235L
-rw-r--r--src/lib/merchant_api_post_instances.c280L
-rw-r--r--src/lib/merchant_api_post_order_abort.c436L
-rw-r--r--src/lib/merchant_api_post_order_claim.c242L
-rw-r--r--src/lib/merchant_api_post_order_paid.c271L
-rw-r--r--src/lib/merchant_api_post_order_pay.c791L
-rw-r--r--src/lib/merchant_api_post_order_refund.c246L
-rw-r--r--src/lib/merchant_api_post_orders.c296L
-rw-r--r--src/lib/merchant_api_post_otp_devices.c237L
-rw-r--r--src/lib/merchant_api_post_products.c433L
-rw-r--r--src/lib/merchant_api_post_templates.c279L
-rw-r--r--src/lib/merchant_api_post_tokenfamilies.c257L
-rw-r--r--src/lib/merchant_api_post_transfers.c256L
-rw-r--r--src/lib/merchant_api_post_units.c218L
-rw-r--r--src/lib/merchant_api_post_using_templates.c177L
-rw-r--r--src/lib/merchant_api_post_webhooks.c240L
-rw-r--r--src/lib/merchant_api_wallet_get_order.c306L
-rw-r--r--src/lib/merchant_api_wallet_get_template.c195L
-rw-r--r--src/lib/merchant_api_wallet_post_order_refund.c345L
-rw-r--r--src/lib/taler_merchant_pay_service.c1070L
-rw-r--r--src/lib/test_merchant_api_common.c163L
-rw-r--r--src/merchant-tools/.gitignore5L
-rw-r--r--src/merchant-tools/Makefile.am65L
-rw-r--r--src/merchant-tools/benchmark-common.conf91L
-rw-r--r--src/merchant-tools/benchmark-cs.conf16L
-rw-r--r--src/merchant-tools/benchmark-rsa.conf16L
-rw-r--r--src/merchant-tools/coins-cs.conf58L
-rw-r--r--src/merchant-tools/coins-rsa.conf63L
-rw-r--r--src/merchant-tools/exchange_benchmark_home/taler/exchange/offline-keys/master.priv32B
-rw-r--r--src/merchant-tools/taler-merchant-benchmark.c631L
-rw-r--r--src/merchant-tools/taler-merchant-dbinit.c147L
-rw-r--r--src/merchant-tools/taler-merchant-passwd.c265L
-rw-r--r--src/merchant-tools/taler-merchant-rproxy-setup388L
-rw-r--r--src/merchant-tools/taler-merchant-setup-reserve.c433L
-rw-r--r--src/testing/.gitignore23L
-rw-r--r--src/testing/Makefile.am296L
-rw-r--r--src/testing/reserve_dtip.priv32B
-rw-r--r--src/testing/reserve_tip.priv32B
-rwxr-xr-xsrc/testing/setup.sh73L
-rwxr-xr-xsrc/testing/test-merchant-walletharness.sh49L
-rw-r--r--src/testing/test.conf181L
-rwxr-xr-xsrc/testing/test_email_helper.sh5L
-rw-r--r--src/testing/test_key_rotation.conf151L
-rw-r--r--src/testing/test_kyc_api.c588L
-rw-r--r--src/testing/test_kyc_api.conf273L
-rw-r--r--src/testing/test_merchant.priv32B
-rwxr-xr-xsrc/testing/test_merchant_accounts.sh323L
-rw-r--r--src/testing/test_merchant_api-cs.conf50L
-rw-r--r--src/testing/test_merchant_api-rsa.conf118L
-rw-r--r--src/testing/test_merchant_api.c2723L
-rw-r--r--src/testing/test_merchant_api.conf125L
-rw-r--r--src/testing/test_merchant_api_home/.local/share/taler-auditor/offline-keys/auditor.priv32B
-rw-r--r--src/testing/test_merchant_api_home/.local/share/taler-exchange/exchange-offline/master.priv32B
-rw-r--r--src/testing/test_merchant_api_proxy_exchange.conf30L
-rw-r--r--src/testing/test_merchant_api_proxy_merchant.conf31L
-rw-r--r--src/testing/test_merchant_api_twisted-cs.conf15L
-rw-r--r--src/testing/test_merchant_api_twisted-rsa.conf15L
-rw-r--r--src/testing/test_merchant_api_twisted.c491L
-rwxr-xr-xsrc/testing/test_merchant_instance_auth.sh486L
-rwxr-xr-xsrc/testing/test_merchant_instance_creation.sh72L
-rwxr-xr-xsrc/testing/test_merchant_instance_purge.sh80L
-rwxr-xr-xsrc/testing/test_merchant_instance_response.sh166L
-rwxr-xr-xsrc/testing/test_merchant_kyc.sh140L
-rw-r--r--src/testing/test_merchant_mfa.conf30L
-rwxr-xr-xsrc/testing/test_merchant_mfa.sh401L
-rwxr-xr-xsrc/testing/test_merchant_order_autocleanup.sh340L
-rwxr-xr-xsrc/testing/test_merchant_order_creation.sh720L
-rwxr-xr-xsrc/testing/test_merchant_order_refund.sh234L
-rwxr-xr-xsrc/testing/test_merchant_product_creation.sh318L
-rwxr-xr-xsrc/testing/test_merchant_transfer_tracking.sh772L
-rwxr-xr-xsrc/testing/test_merchant_wirewatch.sh394L
-rw-r--r--src/testing/test_reconciliation.c365L
-rwxr-xr-xsrc/testing/test_sms_helper.sh5L
-rw-r--r--src/testing/test_template.conf215L
-rw-r--r--src/testing/testing_api_cmd_abort_order.c414L
-rw-r--r--src/testing/testing_api_cmd_checkserver.c270L
-rw-r--r--src/testing/testing_api_cmd_claim_order.c291L
-rw-r--r--src/testing/testing_api_cmd_config.c154L
-rw-r--r--src/testing/testing_api_cmd_delete_account.c213L
-rw-r--r--src/testing/testing_api_cmd_delete_donau_instances.c190L
-rw-r--r--src/testing/testing_api_cmd_delete_instance.c217L
-rw-r--r--src/testing/testing_api_cmd_delete_order.c180L
-rw-r--r--src/testing/testing_api_cmd_delete_otp_device.c181L
-rw-r--r--src/testing/testing_api_cmd_delete_product.c181L
-rw-r--r--src/testing/testing_api_cmd_delete_template.c179L
-rw-r--r--src/testing/testing_api_cmd_delete_transfer.c203L
-rw-r--r--src/testing/testing_api_cmd_delete_unit.c176L
-rw-r--r--src/testing/testing_api_cmd_delete_webhook.c181L
-rw-r--r--src/testing/testing_api_cmd_depositcheck.c164L
-rw-r--r--src/testing/testing_api_cmd_forget_order.c251L
-rw-r--r--src/testing/testing_api_cmd_get_donau_instances.c184L
-rw-r--r--src/testing/testing_api_cmd_get_instance.c336L
-rw-r--r--src/testing/testing_api_cmd_get_instances.c263L
-rw-r--r--src/testing/testing_api_cmd_get_orders.c608L
-rw-r--r--src/testing/testing_api_cmd_get_otp_device.c206L
-rw-r--r--src/testing/testing_api_cmd_get_otp_devices.c238L
-rw-r--r--src/testing/testing_api_cmd_get_product.c472L
-rw-r--r--src/testing/testing_api_cmd_get_product_image.c217L
-rw-r--r--src/testing/testing_api_cmd_get_products.c245L
-rw-r--r--src/testing/testing_api_cmd_get_statisticsamount.c220L
-rw-r--r--src/testing/testing_api_cmd_get_statisticscounter.c220L
-rw-r--r--src/testing/testing_api_cmd_get_template.c242L
-rw-r--r--src/testing/testing_api_cmd_get_templates.c238L
-rw-r--r--src/testing/testing_api_cmd_get_transfers.c336L
-rw-r--r--src/testing/testing_api_cmd_get_unit.c352L
-rw-r--r--src/testing/testing_api_cmd_get_units.c361L
-rw-r--r--src/testing/testing_api_cmd_get_webhook.c285L
-rw-r--r--src/testing/testing_api_cmd_get_webhooks.c237L
-rw-r--r--src/testing/testing_api_cmd_instance_auth.c219L
-rw-r--r--src/testing/testing_api_cmd_instance_token.c394L
-rw-r--r--src/testing/testing_api_cmd_kyc_get.c316L
-rw-r--r--src/testing/testing_api_cmd_lock_product.c298L
-rw-r--r--src/testing/testing_api_cmd_merchant_get_order.c1146L
-rw-r--r--src/testing/testing_api_cmd_patch_instance.c273L
-rw-r--r--src/testing/testing_api_cmd_patch_otp_device.c250L
-rw-r--r--src/testing/testing_api_cmd_patch_product.c503L
-rw-r--r--src/testing/testing_api_cmd_patch_template.c243L
-rw-r--r--src/testing/testing_api_cmd_patch_unit.c278L
-rw-r--r--src/testing/testing_api_cmd_patch_webhook.c259L
-rw-r--r--src/testing/testing_api_cmd_pay_order.c1660L
-rw-r--r--src/testing/testing_api_cmd_post_account.c253L
-rw-r--r--src/testing/testing_api_cmd_post_donau_charity_merchant.c263L
-rw-r--r--src/testing/testing_api_cmd_post_donau_instances.c254L
-rw-r--r--src/testing/testing_api_cmd_post_instances.c313L
-rw-r--r--src/testing/testing_api_cmd_post_orders.c1113L
-rw-r--r--src/testing/testing_api_cmd_post_orders_paid.c245L
-rw-r--r--src/testing/testing_api_cmd_post_otp_devices.c256L
-rw-r--r--src/testing/testing_api_cmd_post_products.c535L
-rw-r--r--src/testing/testing_api_cmd_post_templates.c271L
-rw-r--r--src/testing/testing_api_cmd_post_tokenfamilies.c286L
-rw-r--r--src/testing/testing_api_cmd_post_transfers.c480L
-rw-r--r--src/testing/testing_api_cmd_post_units.c242L
-rw-r--r--src/testing/testing_api_cmd_post_using_templates.c607L
-rw-r--r--src/testing/testing_api_cmd_post_webhooks.c280L
-rw-r--r--src/testing/testing_api_cmd_refund_order.c265L
-rw-r--r--src/testing/testing_api_cmd_testserver.c374L
-rw-r--r--src/testing/testing_api_cmd_tme.c163L
-rw-r--r--src/testing/testing_api_cmd_wallet_get_order.c901L
-rw-r--r--src/testing/testing_api_cmd_wallet_post_orders_refund.c293L
-rw-r--r--src/testing/testing_api_cmd_webhook.c162L
-rw-r--r--src/testing/testing_api_helpers.c71L
-rw-r--r--src/testing/testing_api_traits.c34L
-rw-r--r--src/testing/tor_merchant.priv32B
-rw-r--r--src/tsconfig.json10L
-rw-r--r--src/util/.gitignore2L
-rw-r--r--src/util/Makefile.am61L
-rw-r--r--src/util/contract_parse.c1312L
-rw-r--r--src/util/contract_serialize.c478L
-rw-r--r--src/util/currencies.conf99L
-rw-r--r--src/util/json.c171L
-rw-r--r--src/util/merchant-paths.conf29L
-rw-r--r--src/util/mfa.c179L
-rw-r--r--src/util/os_installation.c62L
-rw-r--r--src/util/taler-merchant-config.c73L
-rw-r--r--src/util/test_contract.c248L