From 154f964aab5df00cbadaa015474c2b323161aa96 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 23 Apr 2023 22:57:55 +0200 Subject: API change for #6363 --- src/include/taler_merchant_service.h | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (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 92e18335..723f1b07 100644 --- a/src/include/taler_merchant_service.h +++ b/src/include/taler_merchant_service.h @@ -491,6 +491,30 @@ typedef void const struct TALER_MERCHANT_HttpResponse *hr); +/** + * Information about an account of the merchant. + */ +struct TALER_MERCHANT_AccountConfig +{ + /** + * Payto URI of the account. + */ + const char *payto_uri; + + /** + * Optional credit facade for the account. + * Can be NULL. + */ + const char *credit_facade_url; + + /** + * Credit facade credentials for the account. + * Can be NULL. + */ + json_t *credit_facade_credentials; + +}; + /** * Setup an new instance in the backend. * @@ -520,7 +544,7 @@ TALER_MERCHANT_instances_post ( const char *backend_url, const char *instance_id, unsigned int accounts_length, - const char *payto_uris[], + const struct TALER_MERCHANT_AccountConfig accounts[], const char *name, enum TALER_KYCLOGIC_KycUserType ut, const json_t *address, @@ -594,7 +618,7 @@ TALER_MERCHANT_instance_patch ( const char *backend_url, const char *instance_id, unsigned int accounts_length, - const char *payto_uris[], + const struct TALER_MERCHANT_AccountConfig accounts[], const char *name, enum TALER_KYCLOGIC_KycUserType ut, const json_t *address, -- cgit v1.2.3