merchant

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

meson.build (13827B)


      1 # This build file is in the public domain
      2 install_data('kudos.conf', 'merchant.conf', 'tops.conf', install_dir: pkgcfgdir)
      3 
      4 
      5 configure_file(
      6     input: 'taler-merchant-report-generator-email',
      7     output: 'taler-merchant-report-generator-email',
      8     install: true,
      9     copy: true,
     10     install_dir: get_option('bindir'),
     11 )
     12 
     13 configure_file(
     14     input: 'taler-merchant-report-generator-file',
     15     output: 'taler-merchant-report-generator-file',
     16     install: true,
     17     copy: true,
     18     install_dir: get_option('bindir'),
     19 )
     20 
     21 
     22 executable(
     23     'taler-merchant-depositcheck',
     24     ['taler-merchant-depositcheck.c'],
     25     dependencies: [
     26         libtalermerchantutil_dep,
     27         talerutil_dep,
     28         talerjson_dep,
     29         libtalermerchantdb_dep,
     30         talerpq_dep,
     31         talerexchange_dep,
     32         gnunetutil_dep,
     33         gnunetjson_dep,
     34         gnunetcurl_dep,
     35         pq_dep,
     36         curl_dep,
     37         json_dep,
     38     ],
     39     include_directories: [incdir, configuration_inc],
     40     install: true,
     41 )
     42 
     43 
     44 executable(
     45     'taler-merchant-exchangekeyupdate',
     46     ['taler-merchant-exchangekeyupdate.c'],
     47     dependencies: [
     48         libtalermerchantutil_dep,
     49         talerutil_dep,
     50         talerjson_dep,
     51         libtalermerchantdb_dep,
     52         talerpq_dep,
     53         talerexchange_dep,
     54         gnunetutil_dep,
     55         gnunetjson_dep,
     56         gnunetcurl_dep,
     57         pq_dep,
     58         curl_dep,
     59         json_dep,
     60     ],
     61     include_directories: [incdir, configuration_inc],
     62     install: true,
     63 )
     64 
     65 
     66 
     67 taler_merchant_httpd_SOURCES = [
     68     'taler-merchant-httpd.c',
     69     'taler-merchant-httpd_amounts.c',
     70     'taler-merchant-httpd_auth.c',
     71     'taler-merchant-httpd_contract.c',
     72     'taler-merchant-httpd_dispatcher.c',
     73     'taler-merchant-httpd_exchanges.c',
     74     'taler-merchant-httpd_get-orders-ORDER_ID.c',
     75     'taler-merchant-httpd_get-sessions-SESSION_ID.c',
     76     'taler-merchant-httpd_get-products-IMAGE_HASH-image.c',
     77     'taler-merchant-httpd_get-config.c',
     78     'taler-merchant-httpd_get-exchanges.c',
     79     'taler-merchant-httpd_get-templates-TEMPLATE_ID.c',
     80     'taler-merchant-httpd_get-units.c',
     81     'taler-merchant-httpd_helper.c',
     82     'taler-merchant-httpd_token-keys.c',
     83     'taler-merchant-httpd_fountains.c',
     84     'taler-merchant-httpd_get-fountain-info.c',
     85     'taler-merchant-httpd_mhd.c',
     86     'taler-merchant-httpd_get-terms.c',
     87     'taler-merchant-httpd_mfa.c',
     88     'taler-merchant-httpd_delete-private-accounts-H_WIRE.c',
     89     'taler-merchant-httpd_delete-private-categories-CATEGORY_ID.c',
     90     'taler-merchant-httpd_delete-private-units-UNIT.c',
     91     'taler-merchant-httpd_delete-management-instances-INSTANCE.c',
     92     'taler-merchant-httpd_delete-private-token.c',
     93     'taler-merchant-httpd_delete-private-tokens-SERIAL.c',
     94     'taler-merchant-httpd_delete-private-products-PRODUCT_ID.c',
     95     'taler-merchant-httpd_delete-private-orders-ORDER_ID.c',
     96     'taler-merchant-httpd_delete-private-fountains-FOUNTAIN_ID.c',
     97     'taler-merchant-httpd_delete-private-otp-devices-DEVICE_ID.c',
     98     'taler-merchant-httpd_delete-private-templates-TEMPLATE_ID.c',
     99     'taler-merchant-httpd_delete-private-tokenfamilies-TOKEN_FAMILY_SLUG.c',
    100     'taler-merchant-httpd_delete-private-transfers-TID.c',
    101     'taler-merchant-httpd_delete-private-webhooks-WEBHOOK_ID.c',
    102     'taler-merchant-httpd_get-private-accounts.c',
    103     'taler-merchant-httpd_get-private-accounts-H_WIRE.c',
    104     'taler-merchant-httpd_get-private-categories.c',
    105     'taler-merchant-httpd_get-private-units.c',
    106     'taler-merchant-httpd_get-private-categories-CATEGORY_ID.c',
    107     'taler-merchant-httpd_get-private-units-UNIT.c',
    108     'taler-merchant-httpd_get-management-instances.c',
    109     'taler-merchant-httpd_get-management-instances-INSTANCE.c',
    110     'taler-merchant-httpd_get-private-kyc.c',
    111     'taler-merchant-httpd_kyc-order.c',
    112     'taler-merchant-httpd_get-private-tokens.c',
    113     'taler-merchant-httpd_get-private-pos.c',
    114     'taler-merchant-httpd_get-private-products.c',
    115     'taler-merchant-httpd_get-private-products-PRODUCT_ID.c',
    116     'taler-merchant-httpd_get-private-orders.c',
    117     'taler-merchant-httpd_get-private-orders-ORDER_ID.c',
    118     'taler-merchant-httpd_get-private-fountains.c',
    119     'taler-merchant-httpd_get-private-fountains-FOUNTAIN_ID.c',
    120     'taler-merchant-httpd_get-private-otp-devices.c',
    121     'taler-merchant-httpd_get-private-otp-devices-DEVICE_ID.c',
    122     'taler-merchant-httpd_get-private-incoming.c',
    123     'taler-merchant-httpd_get-private-incoming-ID.c',
    124     'taler-merchant-httpd_get-private-transfers.c',
    125     'taler-merchant-httpd_get-private-templates.c',
    126     'taler-merchant-httpd_get-private-templates-TEMPLATE_ID.c',
    127     'taler-merchant-httpd_get-private-tokenfamilies.c',
    128     'taler-merchant-httpd_get-private-tokenfamilies-TOKEN_FAMILY_SLUG.c',
    129     'taler-merchant-httpd_get-private-webhooks.c',
    130     'taler-merchant-httpd_get-private-webhooks-WEBHOOK_ID.c',
    131     'taler-merchant-httpd_patch-private-accounts-H_WIRE.c',
    132     'taler-merchant-httpd_patch-private-categories-CATEGORY_ID.c',
    133     'taler-merchant-httpd_patch-private-units-UNIT.c',
    134     'taler-merchant-httpd_patch-management-instances-INSTANCE.c',
    135     'taler-merchant-httpd_patch-private-orders-ORDER_ID-forget.c',
    136     'taler-merchant-httpd_patch-private-fountains-FOUNTAIN_ID.c',
    137     'taler-merchant-httpd_patch-private-otp-devices-DEVICE_ID.c',
    138     'taler-merchant-httpd_patch-private-products-PRODUCT_ID.c',
    139     'taler-merchant-httpd_patch-private-templates-TEMPLATE_ID.c',
    140     'taler-merchant-httpd_patch-private-tokenfamilies-TOKEN_FAMILY_SLUG.c',
    141     'taler-merchant-httpd_patch-private-webhooks-WEBHOOK_ID.c',
    142     'taler-merchant-httpd_post-private-accounts.c',
    143     'taler-merchant-httpd_post-private-categories.c',
    144     'taler-merchant-httpd_post-private-units.c',
    145     'taler-merchant-httpd_post-management-instances.c',
    146     'taler-merchant-httpd_post-management-instances-INSTANCE-auth.c',
    147     'taler-merchant-httpd_post-private-token.c',
    148     'taler-merchant-httpd_post-private-orders-ORDER_ID-collect.c',
    149     'taler-merchant-httpd_post-private-orders-ORDER_ID-refund.c',
    150     'taler-merchant-httpd_post-private-orders-ORDER_ID-refund-external.c',
    151     'taler-merchant-httpd_post-private-orders.c',
    152     'taler-merchant-httpd_post-private-products.c',
    153     'taler-merchant-httpd_post-private-fountains.c',
    154     'taler-merchant-httpd_post-private-otp-devices.c',
    155     'taler-merchant-httpd_post-private-products-PRODUCT_ID-lock.c',
    156     'taler-merchant-httpd_post-private-templates.c',
    157     'taler-merchant-httpd_post-private-tokenfamilies.c',
    158     'taler-merchant-httpd_post-private-transfers.c',
    159     'taler-merchant-httpd_post-private-webhooks.c',
    160     'taler-merchant-httpd_post-private-accounts-H_WIRE-kycauth.c',
    161     'taler-merchant-httpd_post-private-accept-tos-early.c',
    162     'taler-merchant-httpd_post-challenge-ID.c',
    163     'taler-merchant-httpd_post-challenge-ID-confirm.c',
    164     'taler-merchant-httpd_post-orders-ORDER_ID-abort.c',
    165     'taler-merchant-httpd_post-orders-ORDER_ID-claim.c',
    166     'taler-merchant-httpd_post-fountain-withdraw.c',
    167     'taler-merchant-httpd_post-orders-ORDER_ID-pay.c',
    168     'taler-merchant-httpd_post-orders-ORDER_ID-paid.c',
    169     'taler-merchant-httpd_post-orders-ORDER_ID-refund.c',
    170     'taler-merchant-httpd_post-orders-ORDER_ID-unclaim.c',
    171     'taler-merchant-httpd_post-templates-TEMPLATE_ID.c',
    172     'taler-merchant-httpd_post-reports-REPORT_ID.c',
    173     'taler-merchant-httpd_get-private-statistics-amount-SLUG.c',
    174     'taler-merchant-httpd_get-private-statistics-counter-SLUG.c',
    175     'taler-merchant-httpd_get-private-statistics-report-transactions.c',
    176     'taler-merchant-httpd_qr.c',
    177     'taler-merchant-httpd_get-webui.c',
    178     'taler-merchant-httpd_delete-private-reports-REPORT_ID.c',
    179     'taler-merchant-httpd_get-private-reports-REPORT_ID.c',
    180     'taler-merchant-httpd_get-private-reports.c',
    181     'taler-merchant-httpd_patch-private-reports-REPORT_ID.c',
    182     'taler-merchant-httpd_post-private-reports.c',
    183     'taler-merchant-httpd_delete-private-pots-POT_ID.c',
    184     'taler-merchant-httpd_get-private-pots-POT_ID.c',
    185     'taler-merchant-httpd_get-private-pots.c',
    186     'taler-merchant-httpd_patch-private-pots-POT_ID.c',
    187     'taler-merchant-httpd_post-private-pots.c',
    188     'taler-merchant-httpd_delete-private-groups-GROUP_ID.c',
    189     'taler-merchant-httpd_get-private-groups.c',
    190     'taler-merchant-httpd_patch-private-groups-GROUP_ID.c',
    191     'taler-merchant-httpd_post-private-groups.c',
    192     'taler-merchant-httpd_statics.c',
    193     'taler-merchant-httpd_get-private-donau.c',
    194     'taler-merchant-httpd_post-private-donau.c',
    195     'taler-merchant-httpd_delete-private-donau-DONAU_SERIAL.c',
    196 ]
    197 
    198 merchant_httpd = executable(
    199     'taler-merchant-httpd',
    200     taler_merchant_httpd_SOURCES,
    201     dependencies: [
    202         donau_dep,
    203         donaujson_dep,
    204         libtalermerchantutil_dep,
    205         libtalermerchantbank_dep,
    206         talerutil_dep,
    207         talerjson_dep,
    208         libtalermerchantdb_dep,
    209         talerpq_dep,
    210         talerkyclogic_dep,
    211         talerbank_dep,
    212         talermhd_dep,
    213         talerexchange_dep,
    214         talertemplating_dep,
    215         gnunetutil_dep,
    216         gnunetjson_dep,
    217         gnunetcurl_dep,
    218         pq_dep,
    219         mhd_dep,
    220         json_dep,
    221         qrencode_dep,
    222     ],
    223     include_directories: [incdir, configuration_inc],
    224     install: true,
    225 )
    226 
    227 
    228 
    229 executable(
    230     'taler-merchant-kyccheck',
    231     ['taler-merchant-kyccheck.c'],
    232     dependencies: [
    233         libtalermerchantutil_dep,
    234         talerutil_dep,
    235         talerjson_dep,
    236         libtalermerchantdb_dep,
    237         talerpq_dep,
    238         talerexchange_dep,
    239         gnunetutil_dep,
    240         gnunetjson_dep,
    241         gnunetcurl_dep,
    242         pq_dep,
    243         curl_dep,
    244         json_dep,
    245     ],
    246     include_directories: [incdir, configuration_inc],
    247     install: true,
    248 )
    249 
    250 
    251 
    252 executable(
    253     'taler-merchant-reconciliation',
    254     ['taler-merchant-reconciliation.c'],
    255     dependencies: [
    256         libtalermerchantutil_dep,
    257         talerutil_dep,
    258         talerjson_dep,
    259         libtalermerchantdb_dep,
    260         talerpq_dep,
    261         talerexchange_dep,
    262         gnunetpq_dep,
    263         gnunetutil_dep,
    264         gnunetjson_dep,
    265         gnunetcurl_dep,
    266         pq_dep,
    267         curl_dep,
    268     ],
    269     include_directories: [incdir, configuration_inc],
    270     install: true,
    271 )
    272 
    273 
    274 
    275 executable(
    276     'taler-merchant-report-generator',
    277     ['taler-merchant-report-generator.c'],
    278     dependencies: [
    279         libtalermerchantutil_dep,
    280         talerutil_dep,
    281         talerjson_dep,
    282         libtalermerchantdb_dep,
    283         talerpq_dep,
    284         talercurl_dep,
    285         talerexchange_dep,
    286         gnunetpq_dep,
    287         gnunetutil_dep,
    288         gnunetjson_dep,
    289         gnunetcurl_dep,
    290         pq_dep,
    291         curl_dep,
    292         json_dep,
    293     ],
    294     include_directories: [incdir, configuration_inc],
    295     install: true,
    296 )
    297 
    298 
    299 
    300 executable(
    301     'taler-merchant-webhook',
    302     ['taler-merchant-webhook.c'],
    303     dependencies: [
    304         libtalermerchantutil_dep,
    305         talerutil_dep,
    306         talerjson_dep,
    307         libtalermerchantdb_dep,
    308         talermhd_dep,
    309         talerpq_dep,
    310         talerexchange_dep,
    311         gnunetutil_dep,
    312         gnunetjson_dep,
    313         gnunetcurl_dep,
    314         pq_dep,
    315         curl_dep,
    316         json_dep,
    317     ],
    318     include_directories: [incdir, configuration_inc],
    319     install: true,
    320 )
    321 
    322 
    323 executable(
    324     'taler-merchant-wirewatch',
    325     ['taler-merchant-wirewatch.c'],
    326     dependencies: [
    327         libtalermerchantutil_dep,
    328         libtalermerchantbank_dep,
    329         talerutil_dep,
    330         talerjson_dep,
    331         libtalermerchantdb_dep,
    332         talermhd_dep,
    333         talerpq_dep,
    334         talerexchange_dep,
    335         gnunetutil_dep,
    336         gnunetjson_dep,
    337         gnunetcurl_dep,
    338         pq_dep,
    339         curl_dep,
    340         json_dep,
    341     ],
    342     include_directories: [incdir, configuration_inc],
    343     install: true,
    344 )
    345 
    346 
    347 
    348 if donau_dep.found()
    349     executable(
    350         'taler-merchant-donaukeyupdate',
    351         ['taler-merchant-donaukeyupdate.c'],
    352         dependencies: [
    353             libtalermerchantutil_dep,
    354             talerutil_dep,
    355             talerjson_dep,
    356             libtalermerchantdb_dep,
    357             talermhd_dep,
    358             talerpq_dep,
    359             talerexchange_dep,
    360             gnunetutil_dep,
    361             gnunetjson_dep,
    362             gnunetcurl_dep,
    363             pq_dep,
    364             curl_dep,
    365             donau_dep,
    366         ],
    367         include_directories: [incdir, configuration_inc],
    368         install: true,
    369     )
    370 
    371 endif
    372 
    373 
    374 test_merchant_kyc_order = executable(
    375     'test_merchant_kyc_order',
    376     [
    377         'test_merchant_kyc_order.c',
    378         'taler-merchant-httpd_kyc-order.c',
    379     ],
    380     dependencies: [
    381         talerjson_dep,
    382         gnunetutil_dep,
    383         json_dep,
    384     ],
    385     include_directories: [incdir, configuration_inc],
    386     install: false,
    387 )
    388 test(
    389     'test_merchant_kyc_order',
    390     test_merchant_kyc_order,
    391     suite: ['backend'],
    392 )
    393 
    394 test_merchant_high_fee_order = executable(
    395     'test_merchant_high_fee_order',
    396     [
    397         'test_merchant_high_fee_order.c',
    398         'taler-merchant-httpd_amounts.c',
    399     ],
    400     dependencies: [
    401         talerjson_dep,
    402         talerutil_dep,
    403         gnunetutil_dep,
    404         pq_dep,
    405         json_dep,
    406     ],
    407     include_directories: [incdir, configuration_inc],
    408     install: false,
    409 )
    410 test(
    411     'test_merchant_high_fee_order',
    412     test_merchant_high_fee_order,
    413     suite: ['backend'],
    414 )
    415 
    416 test_merchant_kyccheck = executable(
    417     'test_merchant_kyccheck',
    418     ['test_merchant_kyccheck.c'],
    419     dependencies: [
    420         libtalermerchantutil_dep,
    421         talerutil_dep,
    422         talerjson_dep,
    423         libtalermerchantdb_dep,
    424         talerpq_dep,
    425         talerexchange_dep,
    426         gnunetutil_dep,
    427         gnunetjson_dep,
    428         gnunetcurl_dep,
    429         pq_dep,
    430         curl_dep,
    431         json_dep,
    432     ],
    433     include_directories: [incdir, configuration_inc],
    434     install: false,
    435 )
    436 
    437 test('test_merchant_kyccheck', test_merchant_kyccheck, suite: ['backend'])