From 21f67e8241e451a593b44562237cf9ae754c4eef Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 17 Dec 2023 22:17:02 +0800 Subject: -expand data returned from /config by merchant backend --- src/include/taler_merchant_service.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'src/include/taler_merchant_service.h') 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 @@ -309,6 +309,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. */ @@ -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; }; -- cgit v1.2.3