-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Api client for popular Ukrainian bank - Monobank @package api-monobank @version 0.1.0.0 module Utils uncapFst :: String -> String module Types -- | Wrapper for user token from Developer's Dashboard, -- https://api.monobank.ua/ type Token = Text data Currency Currency :: String -> Int -> Int -> String -> String -> Currency [isoCode] :: Currency -> String [isoNumericCode] :: Currency -> Int [decimalDigits] :: Currency -> Int [symbol] :: Currency -> String [name] :: Currency -> String convertCurrencyFromCode :: Int -> Currency -- | Data type that represents currency pair from Monobank at spicific time data CurrencyPair CurrencyPair :: Currency -> Currency -> Int -> Maybe Float -> Maybe Float -> Maybe Float -> CurrencyPair -- | Currency derived from international identificator [cpCurrencyCodeA] :: CurrencyPair -> Currency -- | Currency derived from international identificator [cpCurrencyCodeB] :: CurrencyPair -> Currency -- | Timestamp for the currency pair information [cpDate] :: CurrencyPair -> Int -- | Rate to sell currency [cpRateSell] :: CurrencyPair -> Maybe Float -- | Rate to buy currency [cpRateBuy] :: CurrencyPair -> Maybe Float -- | Rate [cpRateCross] :: CurrencyPair -> Maybe Float showCurrencyPair :: CurrencyPair -> IO () data Account Account :: Text -> Int -> Int -> Currency -> Text -> Account [acId] :: Account -> Text -- | Current balance [acBalance] :: Account -> Int -- | Current credit limit available to user [acCreditLimit] :: Account -> Int -- | Currency of the account [acCurrency] :: Account -> Currency [acCashbackType] :: Account -> Text data User User :: String -> [Account] -> User -- | User's full name [uName] :: User -> String -- | List of user accounts, by currency type [uAccounts] :: User -> [Account] data Statement Statement :: String -> String -> String -> String -> Bool -> Int -> Int -> Currency -> Int -> Int -> Int -> Statement [stId] :: Statement -> String [stTime] :: Statement -> String [stDescription] :: Statement -> String [stMCC] :: Statement -> String [stHold] :: Statement -> Bool [stAmount] :: Statement -> Int [stOperationAmount] :: Statement -> Int [stCurrency] :: Statement -> Currency [stComissionRate] :: Statement -> Int [stCashbackAmount] :: Statement -> Int [balance] :: Statement -> Int instance GHC.Show.Show Types.Statement instance GHC.Classes.Eq Types.Statement instance GHC.Show.Show Types.User instance GHC.Classes.Eq Types.User instance GHC.Show.Show Types.Account instance GHC.Classes.Eq Types.Account instance GHC.Show.Show Types.CurrencyPair instance GHC.Show.Show Types.Currency instance GHC.Classes.Eq Types.Currency instance Data.Aeson.Types.FromJSON.FromJSON Types.CurrencyPair module Api getCurrencies :: IO [CurrencyPair] getPersonalInfo :: () => a getPersonalStatement :: () => a getPersonalStatementFull :: () => a