Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Empty = Empty
- toUnit :: Empty -> ()
- type AccountID = String
- type TransactionID = String
- type WebhookID = String
- newtype AttachmentID = AttID Text
- data AccountsResponse = AccountsResponse {}
- data Account = Account {}
- accountID :: Account -> String
- data Balance = Balance {}
- data DeclineReason
- data Address = Address {}
- data Merchant = Merchant {}
- data Transactions = Transactions {
- transactions :: [Transaction]
- data TransactionResponse = TransactionResponse {}
- data Transaction = Transaction {
- transactionAccountBalance :: Integer
- transactionAmount :: Integer
- transactionCreated :: String
- transactionCurrency :: String
- transactionDescription :: String
- transactionID :: TransactionID
- transactionDeclineReason :: Maybe DeclineReason
- transactionIsLoad :: Bool
- transactionSettled :: Bool
- transactionCategory :: Maybe String
- transactionMerchant :: Merchant
- transactionMetadata :: Map String String
- data Metadata = Metadata {}
- data FeedItemType = BasicItem
- data FeedItemParams = BasicFeedItem {}
- newBasicFeedItem :: String -> String -> FeedItemParams
- data FeedItem = FeedItem {}
- data Webhooks = Webhooks {}
- data Webhook = Webhook {}
- data FileUploadReq = FileUploadReq {}
- data FileUploadRes = FileUploadRes {}
- data Attachment = Attachment {}
- type Mondo = ReaderT String (ReaderT Manager (ExceptT ServantError IO))
- withMondo :: String -> Mondo a -> IO (Either ServantError a)
- getAccounts :: Mondo AccountsResponse
- getBalance :: AccountID -> Mondo Balance
- getTransaction :: TransactionID -> Bool -> Mondo Transaction
- listTransactions :: AccountID -> Mondo Transactions
- annotateTransaction :: TransactionID -> Metadata -> Mondo Transaction
- createFeedItem :: FeedItem -> Mondo ()
- registerWebhook :: Webhook -> Mondo Webhook
- listWebhooks :: AccountID -> Mondo Webhooks
- deleteWebhook :: WebhookID -> Mondo ()
- uploadAttachment :: FileUploadReq -> Mondo FileUploadRes
- registerAttachment :: Attachment -> Mondo Attachment
- removeAttachment :: AttachmentID -> Mondo ()
Documentation
type TransactionID = String Source
The type of transaction IDs.
newtype AttachmentID Source
The type of attachment IDs.
data AccountsResponse Source
data DeclineReason Source
Enumerates reasons which cause transactions to be declined.
Address | |
|
data Transactions Source
data Transaction Source
newBasicFeedItem :: String -> String -> FeedItemParams Source
data FileUploadReq Source
data FileUploadRes Source
getBalance :: AccountID -> Mondo Balance Source
getTransaction :: TransactionID -> Bool -> Mondo Transaction Source
createFeedItem :: FeedItem -> Mondo () Source
`createFeedItem item' creates a new feed item.
registerWebhook :: Webhook -> Mondo Webhook Source
listWebhooks :: AccountID -> Mondo Webhooks Source
deleteWebhook :: WebhookID -> Mondo () Source
removeAttachment :: AttachmentID -> Mondo () Source