summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-04-09 17:45:08 +0200
committerChristian Grothoff <christian@grothoff.org>2024-04-09 17:45:08 +0200
commit5b0f4ae9e68c3f5065c2c62bed7c7d3bc0b4423a (patch)
treedc2301c91223601b5f76b1a8289e137df9f3ccfa /src/lib
parent714b0ef777cf0ef736a80f070936716609ccade3 (diff)
downloadmerchant-5b0f4ae9e68c3f5065c2c62bed7c7d3bc0b4423a.tar.gz
merchant-5b0f4ae9e68c3f5065c2c62bed7c7d3bc0b4423a.tar.bz2
merchant-5b0f4ae9e68c3f5065c2c62bed7c7d3bc0b4423a.zip
implement protocol v14 / fix #8717
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/merchant_api_get_config.c4
-rw-r--r--src/lib/merchant_api_merchant_get_order.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/merchant_api_get_config.c b/src/lib/merchant_api_get_config.c
index ddbc20a3..b4b700bd 100644
--- a/src/lib/merchant_api_get_config.c
+++ b/src/lib/merchant_api_get_config.c
@@ -34,12 +34,12 @@
* Which version of the Taler protocol is implemented
* by this library? Used to determine compatibility.
*/
-#define MERCHANT_PROTOCOL_CURRENT 13
+#define MERCHANT_PROTOCOL_CURRENT 14
/**
* How many configs are we backwards-compatible with?
*/
-#define MERCHANT_PROTOCOL_AGE 1
+#define MERCHANT_PROTOCOL_AGE 2
/**
* How many exchanges do we allow at most per merchant?
diff --git a/src/lib/merchant_api_merchant_get_order.c b/src/lib/merchant_api_merchant_get_order.c
index 3a49db34..3bd4003b 100644
--- a/src/lib/merchant_api_merchant_get_order.c
+++ b/src/lib/merchant_api_merchant_get_order.c
@@ -202,6 +202,11 @@ handle_paid (struct TALER_MERCHANT_OrderMerchantGetHandle *omgh,
&wire_details),
GNUNET_JSON_spec_array_const ("refund_details",
&refund_details),
+ /* Only available since **v14** */
+ GNUNET_JSON_spec_mark_optional (
+ GNUNET_JSON_spec_timestamp ("last_payment",
+ &osr->details.ok.details.paid.last_payment),
+ NULL),
GNUNET_JSON_spec_end ()
};