Safe Haskell | None |
---|---|
Language | Haskell2010 |
Deal.DealCollection
Synopsis
- depositInflow :: Date -> CollectionRule -> Map PoolId PoolCashflow -> Map AccountName Account -> Either String (Map AccountName Account)
- depositPoolFlow :: [CollectionRule] -> Date -> Map PoolId PoolCashflow -> Map String Account -> Either String (Map String Account)
- readProceeds :: PoolSource -> TsRow -> Either String Balance
- extractTxnsFromFlowFrameMap :: Maybe [PoolId] -> Map PoolId PoolCashflow -> [TsRow]
- data CollectionRule
- = Collect (Maybe [PoolId]) PoolSource AccountName
- | CollectByPct (Maybe [PoolId]) PoolSource [(Rate, AccountName)]
Documentation
depositInflow :: Date -> CollectionRule -> Map PoolId PoolCashflow -> Map AccountName Account -> Either String (Map AccountName Account) Source #
deposit cash to account by pool map CF and rules
depositPoolFlow :: [CollectionRule] -> Date -> Map PoolId PoolCashflow -> Map String Account -> Either String (Map String Account) Source #
readProceeds :: PoolSource -> TsRow -> Either String Balance Source #
extractTxnsFromFlowFrameMap :: Maybe [PoolId] -> Map PoolId PoolCashflow -> [TsRow] Source #
deposit cash to account by collection rule
data CollectionRule Source #
Constructors
Collect (Maybe [PoolId]) PoolSource AccountName | collect a pool source from pool collection and deposit to an account |
CollectByPct (Maybe [PoolId]) PoolSource [(Rate, AccountName)] | collect a pool source from pool collection and deposit to multiple accounts with percentages |