aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_bank_service.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-17 23:40:33 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-17 23:40:44 +0100
commitd95f2a9e437b946bba66c2a0054524fc2e320621 (patch)
treed09f50a8aa04b57877139a3934d669c4a316d533 /src/include/taler_bank_service.h
parentf0d8311b1ccbe9e816127ca9a4de65a6f605c4b9 (diff)
DCE, part one
Diffstat (limited to 'src/include/taler_bank_service.h')
-rw-r--r--src/include/taler_bank_service.h118
1 files changed, 0 insertions, 118 deletions
diff --git a/src/include/taler_bank_service.h b/src/include/taler_bank_service.h
index 09406add0..a0b36b1e0 100644
--- a/src/include/taler_bank_service.h
+++ b/src/include/taler_bank_service.h
@@ -85,96 +85,11 @@ struct TALER_BANK_AuthenticationData
char *password;
} basic;
- struct
- {
- /**
- * Port that the fakebank runs on.
- */
- uint16_t fb_port;
- } fakebank;
-
} details;
};
-/**
- * Different account types supported by payto://.
- */
-enum TALER_PaytoAccountType
-{
-
- /**
- * Used to indicate an uninitialized struct.
- */
- TALER_PAC_NONE = 0,
-
- /**
- * Account type of a bank running the x-taler-bank protocol.
- */
- TALER_PAC_X_TALER_BANK,
-
- /**
- * Account identified by IBAN number.
- */
- TALER_PAC_IBAN
-};
-
-
-/**
- * Information about an account extracted from a payto://-URL.
- */
-struct TALER_Account
-{
-
- /**
- * How this the account represented.
- */
- enum TALER_PaytoAccountType type;
-
- /**
- * Internals depending on @e type.
- */
- union
- {
-
- /**
- * Taler bank address from x-taler-bank. Set if
- * @e type is #TALER_AC_X_TALER_BANK.
- */
- struct
- {
-
- /**
- * Bank account base URL.
- */
- char *account_base_url;
-
- /**
- * Only the hostname of the bank.
- */
- char *hostname;
-
- } x_taler_bank;
-
- /**
- * Taler bank address from iban. Set if
- * @e type is #TALER_AC_IBAN.
- */
- struct
- {
-
- /**
- * IBAN number.
- */
- char *number;
-
- } iban;
-
- } details;
-};
-
-
/* ********************* /admin/add/incoming *********************** */
@@ -552,39 +467,6 @@ TALER_BANK_debit_history_cancel (struct TALER_BANK_DebitHistoryHandle *hh);
/* ******************** Convenience functions **************** */
-/**
- * Convenience method for parsing configuration section with bank account data.
- *
- * @param cfg configuration to parse
- * @param section the section with the configuration data
- * @param acc[out] set to the account details
- * @return #GNUNET_OK on success
- */
-int
-TALER_BANK_account_parse_cfg (const struct GNUNET_CONFIGURATION_Handle *cfg,
- const char *section,
- struct TALER_Account *acc);
-
-/**
- * Release memory allocated in @a acc.
- *
- * @param acc account to free, the pointer itself is NOT free'd.
- */
-void
-TALER_BANK_account_free (struct TALER_Account *acc);
-
-
-/**
- * Parse @a payto_url and store the result in @a acc
- *
- * @param payto_url URL to parse
- * @param acc[in,out] account to initialize, free using #TALER_BANK_account_free() later
- * @return #TALER_EC_NONE if @a payto_url is well-formed
- */
-enum TALER_ErrorCode
-TALER_BANK_payto_to_account (const char *payto_url,
- struct TALER_Account *acc);
-
/**
* Convenience method for parsing configuration section with bank