diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-13 22:01:45 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-13 22:01:45 +0100 |
commit | 7b1909bc99690999d06767cfe6d9947e83974174 (patch) | |
tree | b71ebd088d7018b864f180f8f7e1ac659c86ea7a /src/include | |
parent | 2d16cddfd9f3d58f696313b8c2decb9da0e9cf7a (diff) | |
download | exchange-7b1909bc99690999d06767cfe6d9947e83974174.tar.xz |
make fakebank and banklib match specifified new API
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_bank_service.h | 23 | ||||
-rw-r--r-- | src/include/taler_testing_lib.h | 13 | ||||
-rw-r--r-- | src/include/taler_util.h | 12 |
3 files changed, 30 insertions, 18 deletions
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 @@ -74,19 +74,6 @@ /** - * 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 |