summaryrefslogtreecommitdiff
path: root/src/include/taler_merchant_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-10-13 21:06:58 +0200
committerChristian Grothoff <grothoff@gnunet.org>2023-10-13 21:16:51 +0200
commit28b80ac78306bfa216ab9638f40f65bd86eef716 (patch)
tree056c1e06cc893666212682935d8714d2bc96587f /src/include/taler_merchant_service.h
parent0f3490dc022620c7e42b86426e14198a04c2e17f (diff)
downloadmerchant-28b80ac78306bfa216ab9638f40f65bd86eef716.tar.gz
merchant-28b80ac78306bfa216ab9638f40f65bd86eef716.tar.bz2
merchant-28b80ac78306bfa216ab9638f40f65bd86eef716.zip
add currency specification parsing to /config logic in libtalermerchant
Diffstat (limited to 'src/include/taler_merchant_service.h')
-rw-r--r--src/include/taler_merchant_service.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/include/taler_merchant_service.h b/src/include/taler_merchant_service.h
index 6d79d45e..b3e15025 100644
--- a/src/include/taler_merchant_service.h
+++ b/src/include/taler_merchant_service.h
@@ -211,7 +211,7 @@ struct TALER_MERCHANT_RefundUriData
* @param[out] parse_data data extracted from the URI. Must be free'd.
* @return #GNUNET_SYSERR if @e refund_uri is malformed, #GNUNET_OK otherwise.
*/
-int
+enum GNUNET_GenericReturnValue
TALER_MERCHANT_parse_refund_uri (
const char *refund_uri,
struct TALER_MERCHANT_RefundUriData *parse_data);
@@ -288,7 +288,8 @@ enum TALER_MERCHANT_VersionCompatibility
struct TALER_MERCHANT_ConfigInformation
{
/**
- * Currency used/supported by the merchant.
+ * Default currency of the merchant. See cspecs
+ * for all currencies supported by the merchant.
*/
const char *currency;
@@ -333,6 +334,18 @@ struct TALER_MERCHANT_ConfigResponse
* protocol compatibility information
*/
enum TALER_MERCHANT_VersionCompatibility compat;
+
+ /**
+ * Length of the @e cspecs array.
+ */
+ unsigned int num_cspecs;
+
+ /**
+ * Array with rendering specifications for the currencies
+ * supported by this merchant backend.
+ */
+ const struct TALER_CurrencySpecification *cspecs;
+
} ok;
} details;
};