summaryrefslogtreecommitdiff
path: root/src/include/taler_merchant_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-12-17 22:17:02 +0800
committerChristian Grothoff <grothoff@gnunet.org>2023-12-17 22:17:02 +0800
commit21f67e8241e451a593b44562237cf9ae754c4eef (patch)
treec18377379da20e3951f4a20116bfc4d60a36a830 /src/include/taler_merchant_service.h
parent7891e62bf98bd884c8c993ae698f9a985dbacfbd (diff)
downloadmerchant-21f67e8241e451a593b44562237cf9ae754c4eef.tar.gz
merchant-21f67e8241e451a593b44562237cf9ae754c4eef.tar.bz2
merchant-21f67e8241e451a593b44562237cf9ae754c4eef.zip
-expand data returned from /config by merchant backend
Diffstat (limited to 'src/include/taler_merchant_service.h')
-rw-r--r--src/include/taler_merchant_service.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/include/taler_merchant_service.h b/src/include/taler_merchant_service.h
index e8aad3d0..aeddefc8 100644
--- a/src/include/taler_merchant_service.h
+++ b/src/include/taler_merchant_service.h
@@ -310,6 +310,29 @@ struct TALER_MERCHANT_ConfigInformation
/**
+ * Information about an exchange the merchant backend trusts.
+ */
+struct TALER_MERCHANT_ExchangeConfigInfo
+{
+ /**
+ * Base URL of the exchange REST API.
+ */
+ const char *base_url;
+
+ /**
+ * Currency for which the merchant is configured to
+ * trust the exchange.
+ */
+ const char *currency;
+
+ /**
+ * Master public key of the exchange.
+ */
+ struct TALER_MasterPublicKeyP master_pub;
+
+};
+
+/**
* Response to /config request.
*/
struct TALER_MERCHANT_ConfigResponse
@@ -351,6 +374,17 @@ struct TALER_MERCHANT_ConfigResponse
*/
const struct TALER_CurrencySpecification *cspecs;
+ /**
+ * Length of the @e exchanges array.
+ */
+ unsigned int num_exchanges;
+
+ /**
+ * Array details about exchanges trusted
+ * by this merchant backend.
+ */
+ const struct TALER_MERCHANT_ExchangeConfigInfo *exchanges;
+
} ok;
} details;
};