1 /*************************************************************************** 2 begin : Sat Jun 30 2018 3 copyright : (C) 2018 by Martin Preuss 4 email : martin@libchipcard.de 5 6 *************************************************************************** 7 * This file is part of the project "AqBanking". * 8 * Please see toplevel file COPYING of that project for license details. * 9 ***************************************************************************/ 10 11 /** @file account_type.h 12 * @short Definiton of account types. 13 */ 14 15 #ifndef AQBANKING_ACCOUNT_TYPE_H 16 #define AQBANKING_ACCOUNT_TYPE_H 17 18 19 20 21 typedef enum { 22 AB_AccountType_Invalid=-1, 23 AB_AccountType_Unknown=0, 24 AB_AccountType_Bank, 25 AB_AccountType_CreditCard, 26 AB_AccountType_Checking, 27 AB_AccountType_Savings, 28 AB_AccountType_Investment, 29 AB_AccountType_Cash, 30 AB_AccountType_MoneyMarket, 31 AB_AccountType_Credit, 32 AB_AccountType_Unspecified=100, 33 AB_AccountType_Last 34 } AB_ACCOUNT_TYPE; 35 36 37 #include <aqbanking/error.h> 38 39 40 41 /** 42 * Translate account type to a string (e.g. AB_AccountType_CreditCard -> "creditcard"). 43 */ 44 AQBANKING_API 45 /*@observer@*/ /*@null@*/ const char *AB_AccountType_toChar(AB_ACCOUNT_TYPE ty); 46 47 48 /** 49 * Translate account type from a string (e.g. "creditcard" -> AB_AccountType_CreditCard). 50 * @return account type (or AB_AccountType_Invalid on error). 51 */ 52 AQBANKING_API 53 AB_ACCOUNT_TYPE AB_AccountType_fromChar(const char *s); 54 55 56 57 58 59 #endif 60 61