summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);