diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/merchant_api_tip_enable.c | 1 | ||||
-rw-r--r-- | src/lib/reserve_tip.priv | bin | 0 -> 32 bytes | |||
-rw-r--r-- | src/lib/test_merchant_api.c | 10 |
3 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/merchant_api_tip_enable.c b/src/lib/merchant_api_tip_enable.c index 6b575945..eb7dadf4 100644 --- a/src/lib/merchant_api_tip_enable.c +++ b/src/lib/merchant_api_tip_enable.c @@ -145,6 +145,7 @@ TALER_MERCHANT_tip_enable (struct GNUNET_CURL_Context *ctx, CURL *eh; json_t *te_obj; + (void) GNUNET_TIME_round_abs (&expiration); teo = GNUNET_new (struct TALER_MERCHANT_TipEnableOperation); teo->ctx = ctx; teo->cb = enable_cb; diff --git a/src/lib/reserve_tip.priv b/src/lib/reserve_tip.priv Binary files differnew file mode 100644 index 00000000..3cd75052 --- /dev/null +++ b/src/lib/reserve_tip.priv diff --git a/src/lib/test_merchant_api.c b/src/lib/test_merchant_api.c index adbd52c8..b0b546e7 100644 --- a/src/lib/test_merchant_api.c +++ b/src/lib/test_merchant_api.c @@ -3108,6 +3108,16 @@ run (void *cls) .details.admin_add_incoming.transfer_details = "{ \"uuid\": 100}", .details.admin_add_incoming.amount = "EUR:10.02" }, + { .oc = OC_TIP_ENABLE, + .label = "enable-tip-1", + .expected_response_code = MHD_HTTP_OK, + .details.tip_enable.admin_add_incoming_ref = "create-reserve-tip-1", + .details.tip_enable.amount = "EUR:5.01" }, + { .oc = OC_TIP_ENABLE, + .label = "enable-tip-2", + .expected_response_code = MHD_HTTP_OK, + .details.tip_enable.admin_add_incoming_ref = "create-reserve-tip-1", + .details.tip_enable.amount = "EUR:5.01" }, /* Fill reserve with EUR:5.01, as withdraw fee is 1 ct per |