From 7b1909bc99690999d06767cfe6d9947e83974174 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 13 Jan 2020 22:01:45 +0100 Subject: make fakebank and banklib match specifified new API --- src/include/taler_bank_service.h | 23 ++++++++++++++++++----- src/include/taler_testing_lib.h | 13 ------------- src/include/taler_util.h | 12 ++++++++++++ 3 files changed, 30 insertions(+), 18 deletions(-) (limited to 'src/include') diff --git a/src/include/taler_bank_service.h b/src/include/taler_bank_service.h index 60fce8cb2..67961b820 100644 --- a/src/include/taler_bank_service.h +++ b/src/include/taler_bank_service.h @@ -199,11 +199,11 @@ typedef void * to the operators of the bank. * * @param ctx curl context for the event loop - * @param account_base_url URL of the account (used to execute this request) - * @param auth authentication data to use + * @param account_base_url URL of the bank (money flows into this account) + * @param auth authentication data to send to the bank * @param reserve_pub wire transfer subject for the transfer * @param amount amount that was deposited - * @param credit_account account to deposit into + * @param debit_account account to deposit from (payto URI, but used as 'payfrom') * @param res_cb the callback to call when the final result for this request is available * @param res_cb_cls closure for the above callback * @return NULL @@ -350,7 +350,13 @@ struct TALER_BANK_CreditDetails * payto://-URL of the source account that * send the funds. */ - const char *account_url; + const char *debit_account_url; + + /** + * payto://-URL of the target account that + * received the funds. + */ + const char *credit_account_url; }; @@ -455,7 +461,14 @@ struct TALER_BANK_DebitDetails * payto://-URL of the source account that * send the funds. */ - const char *account_url; + const char *debit_account_url; + + /** + * payto://-URL of the target account that + * received the funds. + */ + const char *credit_account_url; + }; diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index b43336952..9499526af 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -73,19 +73,6 @@ TALER_TESTING_make_trait_string (5, data) -/** - * Create an x-taler-bank payto:// URL from a @a bank_url - * and an @a account_name. - * - * @param bank_url the bank URL - * @param account_name the account name - * @return payto:// URL - */ -char * -TALER_TESTING_make_xtalerbank_payto (const char *bank_url, - const char *account_name); - - /** * Allocate and return a piece of wire-details. Combines * a @a payto -URL and adds some salt to create the JSON. diff --git a/src/include/taler_util.h b/src/include/taler_util.h index 105dba61a..b6fed3f12 100644 --- a/src/include/taler_util.h +++ b/src/include/taler_util.h @@ -391,4 +391,16 @@ char * TALER_payto_get_method (const char *payto_url); +/** + * Create an x-taler-bank payto:// URL from a @a bank_url + * and an @a account_name. + * + * @param bank_url the bank URL + * @param account_name the account name + * @return payto:// URL + */ +char * +TALER_payto_xtalerbank_make (const char *bank_url, + const char *account_name); + #endif -- cgit v1.2.3