summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-07-23 21:07:29 +0200
committerChristian Grothoff <grothoff@gnunet.org>2022-07-23 21:07:29 +0200
commit78922c86c294978d1667d3341df40fab44b2be44 (patch)
tree20e402af3e50c79aba6894308c079c62b873e135
parent2881c2e6fb5286eea3d452417700d9fae18a83ae (diff)
downloadtaler-mdb-78922c86c294978d1667d3341df40fab44b2be44.tar.gz
taler-mdb-78922c86c294978d1667d3341df40fab44b2be44.tar.bz2
taler-mdb-78922c86c294978d1667d3341df40fab44b2be44.zip
-adjust to new tip API
-rw-r--r--src/taler-coin-acceptor.c29
1 files changed, 10 insertions, 19 deletions
diff --git a/src/taler-coin-acceptor.c b/src/taler-coin-acceptor.c
index 2e917e0..1a2f8cf 100644
--- a/src/taler-coin-acceptor.c
+++ b/src/taler-coin-acceptor.c
@@ -167,33 +167,20 @@ do_shutdown (void *cls)
* With result of a GET /private/tips/$TIP_ID request
*
* @param cls closure
- * @param hr HTTP response details
- * @param total_authorized how many tips were authorized under this tip
- * @param total_picked_up how many tips have been picked up
- * @param reason what was the reason given for the tip
- * @param expiration when the tip will expire
- * @param reserve_pub which reserve is funding this tip
- * @param pickups_length length of the @a pickups array
- * @param pickups array of pickup operations performed for this tip
+ * @param tsr response details
*/
static void
pickup_cb (
void *cls,
- const struct TALER_MERCHANT_HttpResponse *hr,
- const struct TALER_Amount *total_authorized,
- const struct TALER_Amount *total_picked_up,
- const char *reason,
- struct GNUNET_TIME_Timestamp expiration,
- const struct TALER_ReservePublicKeyP *reserve_pub,
- unsigned int pickups_length,
- const struct TALER_MERCHANT_PickupDetail pickups[])
+ const struct TALER_MERCHANT_TipStatusResponse *tsr)
{
tmgh = NULL;
- switch (hr->http_status)
+ switch (tsr->hr.http_status)
{
case MHD_HTTP_OK:
- if (0 == TALER_amount_cmp (&sum,
- total_picked_up))
+ if (0 ==
+ TALER_amount_cmp (&sum,
+ &tsr->details.success.total_picked_up))
{
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Process completed\n");
@@ -206,6 +193,8 @@ pickup_cb (
tmgh = TALER_MERCHANT_merchant_tip_get (ctx,
merchant_url,
&tip_id,
+ NULL,
+ GNUNET_TIME_UNIT_ZERO,
false,
&pickup_cb,
NULL);
@@ -255,6 +244,8 @@ authorize_cb (
tmgh = TALER_MERCHANT_merchant_tip_get (ctx,
merchant_url,
&tip_id,
+ NULL,
+ GNUNET_TIME_UNIT_ZERO,
false,
&pickup_cb,
NULL);