merchant

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

meson.build (12055B)


      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_auth.c',
     70     'taler-merchant-httpd_contract.c',
     71     'taler-merchant-httpd_dispatcher.c',
     72     'taler-merchant-httpd_exchanges.c',
     73     'taler-merchant-httpd_get-orders-ORDER_ID.c',
     74     'taler-merchant-httpd_get-sessions-SESSION_ID.c',
     75     'taler-merchant-httpd_get-products-IMAGE_HASH-image.c',
     76     'taler-merchant-httpd_get-config.c',
     77     'taler-merchant-httpd_get-exchanges.c',
     78     'taler-merchant-httpd_get-templates-TEMPLATE_ID.c',
     79     'taler-merchant-httpd_helper.c',
     80     'taler-merchant-httpd_mhd.c',
     81     'taler-merchant-httpd_get-terms.c',
     82     'taler-merchant-httpd_mfa.c',
     83     'taler-merchant-httpd_delete-private-accounts-H_WIRE.c',
     84     'taler-merchant-httpd_delete-private-categories-CATEGORY_ID.c',
     85     'taler-merchant-httpd_delete-private-units-UNIT.c',
     86     'taler-merchant-httpd_delete-management-instances-INSTANCE.c',
     87     'taler-merchant-httpd_delete-private-token.c',
     88     'taler-merchant-httpd_delete-private-tokens-SERIAL.c',
     89     'taler-merchant-httpd_delete-private-products-PRODUCT_ID.c',
     90     'taler-merchant-httpd_delete-private-orders-ORDER_ID.c',
     91     'taler-merchant-httpd_delete-private-otp-devices-DEVICE_ID.c',
     92     'taler-merchant-httpd_delete-private-templates-TEMPLATE_ID.c',
     93     'taler-merchant-httpd_delete-private-tokenfamilies-TOKEN_FAMILY_SLUG.c',
     94     'taler-merchant-httpd_delete-private-transfers-TID.c',
     95     'taler-merchant-httpd_delete-private-webhooks-WEBHOOK_ID.c',
     96     'taler-merchant-httpd_get-private-accounts.c',
     97     'taler-merchant-httpd_get-private-accounts-H_WIRE.c',
     98     'taler-merchant-httpd_get-private-categories.c',
     99     'taler-merchant-httpd_get-private-units.c',
    100     'taler-merchant-httpd_get-private-categories-CATEGORY_ID.c',
    101     'taler-merchant-httpd_get-private-units-UNIT.c',
    102     'taler-merchant-httpd_get-management-instances.c',
    103     'taler-merchant-httpd_get-management-instances-INSTANCE.c',
    104     'taler-merchant-httpd_get-private-kyc.c',
    105     'taler-merchant-httpd_kyc-order.c',
    106     'taler-merchant-httpd_get-private-tokens.c',
    107     'taler-merchant-httpd_get-private-pos.c',
    108     'taler-merchant-httpd_get-private-products.c',
    109     'taler-merchant-httpd_get-private-products-PRODUCT_ID.c',
    110     'taler-merchant-httpd_get-private-orders.c',
    111     'taler-merchant-httpd_get-private-orders-ORDER_ID.c',
    112     'taler-merchant-httpd_get-private-otp-devices.c',
    113     'taler-merchant-httpd_get-private-otp-devices-DEVICE_ID.c',
    114     'taler-merchant-httpd_get-private-incoming.c',
    115     'taler-merchant-httpd_get-private-incoming-ID.c',
    116     'taler-merchant-httpd_get-private-transfers.c',
    117     'taler-merchant-httpd_get-private-templates.c',
    118     'taler-merchant-httpd_get-private-templates-TEMPLATE_ID.c',
    119     'taler-merchant-httpd_get-private-tokenfamilies.c',
    120     'taler-merchant-httpd_get-private-tokenfamilies-TOKEN_FAMILY_SLUG.c',
    121     'taler-merchant-httpd_get-private-webhooks.c',
    122     'taler-merchant-httpd_get-private-webhooks-WEBHOOK_ID.c',
    123     'taler-merchant-httpd_patch-private-accounts-H_WIRE.c',
    124     'taler-merchant-httpd_patch-private-categories-CATEGORY_ID.c',
    125     'taler-merchant-httpd_patch-private-units-UNIT.c',
    126     'taler-merchant-httpd_patch-management-instances-INSTANCE.c',
    127     'taler-merchant-httpd_patch-private-orders-ORDER_ID-forget.c',
    128     'taler-merchant-httpd_patch-private-otp-devices-DEVICE_ID.c',
    129     'taler-merchant-httpd_patch-private-products-PRODUCT_ID.c',
    130     'taler-merchant-httpd_patch-private-templates-TEMPLATE_ID.c',
    131     'taler-merchant-httpd_patch-private-tokenfamilies-TOKEN_FAMILY_SLUG.c',
    132     'taler-merchant-httpd_patch-private-webhooks-WEBHOOK_ID.c',
    133     'taler-merchant-httpd_post-private-accounts.c',
    134     'taler-merchant-httpd_post-private-categories.c',
    135     'taler-merchant-httpd_post-private-units.c',
    136     'taler-merchant-httpd_post-management-instances.c',
    137     'taler-merchant-httpd_post-management-instances-INSTANCE-auth.c',
    138     'taler-merchant-httpd_post-private-token.c',
    139     'taler-merchant-httpd_post-private-orders-ORDER_ID-refund.c',
    140     'taler-merchant-httpd_post-private-orders.c',
    141     'taler-merchant-httpd_post-private-products.c',
    142     'taler-merchant-httpd_post-private-otp-devices.c',
    143     'taler-merchant-httpd_post-private-products-PRODUCT_ID-lock.c',
    144     'taler-merchant-httpd_post-private-templates.c',
    145     'taler-merchant-httpd_post-private-tokenfamilies.c',
    146     'taler-merchant-httpd_post-private-transfers.c',
    147     'taler-merchant-httpd_post-private-webhooks.c',
    148     'taler-merchant-httpd_post-private-accounts-H_WIRE-kycauth.c',
    149     'taler-merchant-httpd_post-private-accept-tos-early.c',
    150     'taler-merchant-httpd_post-challenge-ID.c',
    151     'taler-merchant-httpd_post-challenge-ID-confirm.c',
    152     'taler-merchant-httpd_post-orders-ORDER_ID-abort.c',
    153     'taler-merchant-httpd_post-orders-ORDER_ID-claim.c',
    154     'taler-merchant-httpd_post-orders-ORDER_ID-pay.c',
    155     'taler-merchant-httpd_post-orders-ORDER_ID-paid.c',
    156     'taler-merchant-httpd_post-orders-ORDER_ID-refund.c',
    157     'taler-merchant-httpd_post-orders-ORDER_ID-unclaim.c',
    158     'taler-merchant-httpd_post-templates-TEMPLATE_ID.c',
    159     'taler-merchant-httpd_post-reports-REPORT_ID.c',
    160     'taler-merchant-httpd_get-private-statistics-amount-SLUG.c',
    161     'taler-merchant-httpd_get-private-statistics-counter-SLUG.c',
    162     'taler-merchant-httpd_get-private-statistics-report-transactions.c',
    163     'taler-merchant-httpd_qr.c',
    164     'taler-merchant-httpd_get-webui.c',
    165     'taler-merchant-httpd_delete-private-reports-REPORT_ID.c',
    166     'taler-merchant-httpd_get-private-reports-REPORT_ID.c',
    167     'taler-merchant-httpd_get-private-reports.c',
    168     'taler-merchant-httpd_patch-private-reports-REPORT_ID.c',
    169     'taler-merchant-httpd_post-private-reports.c',
    170     'taler-merchant-httpd_delete-private-pots-POT_ID.c',
    171     'taler-merchant-httpd_get-private-pots-POT_ID.c',
    172     'taler-merchant-httpd_get-private-pots.c',
    173     'taler-merchant-httpd_patch-private-pots-POT_ID.c',
    174     'taler-merchant-httpd_post-private-pots.c',
    175     'taler-merchant-httpd_delete-private-groups-GROUP_ID.c',
    176     'taler-merchant-httpd_get-private-groups.c',
    177     'taler-merchant-httpd_patch-private-groups-GROUP_ID.c',
    178     'taler-merchant-httpd_post-private-groups.c',
    179     'taler-merchant-httpd_statics.c',
    180     'taler-merchant-httpd_get-private-donau.c',
    181     'taler-merchant-httpd_post-private-donau.c',
    182     'taler-merchant-httpd_delete-private-donau-DONAU_SERIAL.c',
    183 ]
    184 
    185 executable(
    186     'taler-merchant-httpd',
    187     taler_merchant_httpd_SOURCES,
    188     dependencies: [
    189         donau_dep,
    190         donaujson_dep,
    191         libtalermerchantutil_dep,
    192         libtalermerchantbank_dep,
    193         talerutil_dep,
    194         talerjson_dep,
    195         libtalermerchantdb_dep,
    196         talerpq_dep,
    197         talerkyclogic_dep,
    198         talerbank_dep,
    199         talermhd_dep,
    200         talerexchange_dep,
    201         talertemplating_dep,
    202         gnunetutil_dep,
    203         gnunetjson_dep,
    204         gnunetcurl_dep,
    205         pq_dep,
    206         mhd_dep,
    207         json_dep,
    208         qrencode_dep,
    209     ],
    210     include_directories: [incdir, configuration_inc],
    211     install: true,
    212 )
    213 
    214 
    215 
    216 executable(
    217     'taler-merchant-kyccheck',
    218     ['taler-merchant-kyccheck.c'],
    219     dependencies: [
    220         libtalermerchantutil_dep,
    221         talerutil_dep,
    222         talerjson_dep,
    223         libtalermerchantdb_dep,
    224         talerpq_dep,
    225         talerexchange_dep,
    226         gnunetutil_dep,
    227         gnunetjson_dep,
    228         gnunetcurl_dep,
    229         pq_dep,
    230         curl_dep,
    231         json_dep,
    232     ],
    233     include_directories: [incdir, configuration_inc],
    234     install: true,
    235 )
    236 
    237 
    238 
    239 executable(
    240     'taler-merchant-reconciliation',
    241     ['taler-merchant-reconciliation.c'],
    242     dependencies: [
    243         libtalermerchantutil_dep,
    244         talerutil_dep,
    245         talerjson_dep,
    246         libtalermerchantdb_dep,
    247         talerpq_dep,
    248         talerexchange_dep,
    249         gnunetpq_dep,
    250         gnunetutil_dep,
    251         gnunetjson_dep,
    252         gnunetcurl_dep,
    253         pq_dep,
    254         curl_dep,
    255     ],
    256     include_directories: [incdir, configuration_inc],
    257     install: true,
    258 )
    259 
    260 
    261 
    262 executable(
    263     'taler-merchant-report-generator',
    264     ['taler-merchant-report-generator.c'],
    265     dependencies: [
    266         libtalermerchantutil_dep,
    267         talerutil_dep,
    268         talerjson_dep,
    269         libtalermerchantdb_dep,
    270         talerpq_dep,
    271         talercurl_dep,
    272         talerexchange_dep,
    273         gnunetpq_dep,
    274         gnunetutil_dep,
    275         gnunetjson_dep,
    276         gnunetcurl_dep,
    277         pq_dep,
    278         curl_dep,
    279         json_dep,
    280     ],
    281     include_directories: [incdir, configuration_inc],
    282     install: true,
    283 )
    284 
    285 
    286 
    287 executable(
    288     'taler-merchant-webhook',
    289     ['taler-merchant-webhook.c'],
    290     dependencies: [
    291         libtalermerchantutil_dep,
    292         talerutil_dep,
    293         talerjson_dep,
    294         libtalermerchantdb_dep,
    295         talermhd_dep,
    296         talerpq_dep,
    297         talerexchange_dep,
    298         gnunetutil_dep,
    299         gnunetjson_dep,
    300         gnunetcurl_dep,
    301         pq_dep,
    302         curl_dep,
    303         json_dep,
    304     ],
    305     include_directories: [incdir, configuration_inc],
    306     install: true,
    307 )
    308 
    309 
    310 executable(
    311     'taler-merchant-wirewatch',
    312     ['taler-merchant-wirewatch.c'],
    313     dependencies: [
    314         libtalermerchantutil_dep,
    315         libtalermerchantbank_dep,
    316         talerutil_dep,
    317         talerjson_dep,
    318         libtalermerchantdb_dep,
    319         talermhd_dep,
    320         talerpq_dep,
    321         talerexchange_dep,
    322         gnunetutil_dep,
    323         gnunetjson_dep,
    324         gnunetcurl_dep,
    325         pq_dep,
    326         curl_dep,
    327         json_dep,
    328     ],
    329     include_directories: [incdir, configuration_inc],
    330     install: true,
    331 )
    332 
    333 
    334 
    335 if donau_dep.found()
    336     executable(
    337         'taler-merchant-donaukeyupdate',
    338         ['taler-merchant-donaukeyupdate.c'],
    339         dependencies: [
    340             libtalermerchantutil_dep,
    341             talerutil_dep,
    342             talerjson_dep,
    343             libtalermerchantdb_dep,
    344             talermhd_dep,
    345             talerpq_dep,
    346             talerexchange_dep,
    347             gnunetutil_dep,
    348             gnunetjson_dep,
    349             gnunetcurl_dep,
    350             pq_dep,
    351             curl_dep,
    352             donau_dep,
    353         ],
    354         include_directories: [incdir, configuration_inc],
    355         install: true,
    356     )
    357 
    358 endif
    359 
    360 
    361 test_merchant_kyc_order = executable(
    362     'test_merchant_kyc_order',
    363     [
    364         'test_merchant_kyc_order.c',
    365         'taler-merchant-httpd_kyc-order.c',
    366     ],
    367     dependencies: [
    368         talerjson_dep,
    369         gnunetutil_dep,
    370         json_dep,
    371     ],
    372     include_directories: [incdir, configuration_inc],
    373     install: false,
    374 )
    375 test(
    376     'test_merchant_kyc_order',
    377     test_merchant_kyc_order,
    378     suite: ['backend'],
    379 )