aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-03 20:07:49 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-05 16:48:26 +0200
commitcdbf3a05ae3c92122b8ec15073c6fadfa0793315 (patch)
tree293712acc7b7809b95ce29a8dcce958399093b32
parentef97d426b1bc8cf4869a914b9e6405924c62e7a4 (diff)
downloadexchange-cdbf3a05ae3c92122b8ec15073c6fadfa0793315.tar.gz
exchange-cdbf3a05ae3c92122b8ec15073c6fadfa0793315.zip
modify TALER_EXCHANGE_deposits_get() API to combine returned arguments into a struct (simplifies merchant later)
-rw-r--r--src/include/taler_exchange_service.h4
-rw-r--r--src/testing/testing_api_cmd_deposits_get.c11
2 files changed, 10 insertions, 5 deletions
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h
index 2fb15db11..ea185f09a 100644
--- a/src/include/taler_exchange_service.h
+++ b/src/include/taler_exchange_service.h
@@ -1611,11 +1611,7 @@ struct TALER_EXCHANGE_TransferData
1611 struct GNUNET_TIME_Absolute execution_time; 1611 struct GNUNET_TIME_Absolute execution_time;
1612 1612
1613 /** 1613 /**
1614<<<<<<< HEAD
1615 * amount of the wire transfer; FIXME: total wired (without fee), or including @a wire_fee?
1616=======
1617 * amount of the wire transfer 1614 * amount of the wire transfer
1618>>>>>>> update exchange API to return struct instead of lots of individual args for TALER_EXCHANGE_transfers_get() -- simplifies merchant later
1619 */ 1615 */
1620 struct TALER_Amount total_amount; 1616 struct TALER_Amount total_amount;
1621 1617
diff --git a/src/testing/testing_api_cmd_deposits_get.c b/src/testing/testing_api_cmd_deposits_get.c
index 33987e161..700b0edf4 100644
--- a/src/testing/testing_api_cmd_deposits_get.c
+++ b/src/testing/testing_api_cmd_deposits_get.c
@@ -111,7 +111,14 @@ deposit_wtid_cb (void *cls,
111 switch (hr->http_status) 111 switch (hr->http_status)
112 { 112 {
113 case MHD_HTTP_OK: 113 case MHD_HTTP_OK:
114 tts->wtid = dd->wtid; 114 << << << < HEAD
115 tts->wtid = dd->wtid;
116 ====== =
117 GNUNET_assert (NULL != dd->wtid);
118 tts->wtid = *dd->wtid;
119 >> >> >> > modify
120 TALER_EXCHANGE_deposits_get () API to combine returned arguments into
121 a struct (simplifies merchant later)
115 if (NULL != tts->bank_transfer_reference) 122 if (NULL != tts->bank_transfer_reference)
116 { 123 {
117 const struct TALER_TESTING_Command *bank_transfer_cmd; 124 const struct TALER_TESTING_Command *bank_transfer_cmd;
@@ -147,6 +154,8 @@ deposit_wtid_cb (void *cls,
147 return; 154 return;
148 } 155 }
149 } 156 }
157
158
150 break; 159 break;
151 case MHD_HTTP_ACCEPTED: 160 case MHD_HTTP_ACCEPTED:
152 /* allowed, nothing to check here */ 161 /* allowed, nothing to check here */