mondo-0.1.0.0: Haskell bindings for the Mondo API

Safe HaskellNone
LanguageHaskell2010

Mondo

Synopsis

Documentation

data DeclineReason Source

Enumerates reasons which cause transactions to be declined.

data MondoAuth Source

Instances

HasClient * api => HasClient * ((:>) * * MondoAuth api) Source 
type Client * ((:>) * * MondoAuth api) = String -> Client * api Source 

data MondoAccount Source

Instances

HasClient * api => HasClient * ((:>) * * MondoAccount api) Source 
type Client * ((:>) * * MondoAccount api) = AccountID -> Client * api Source 

type MondoAPI = (MondoAuth :> ("accounts" :> Get `[JSON]` AccountsResponse)) :<|> ((MondoAuth :> ("balance" :> (QueryParam "account_id" AccountID :> Get `[JSON]` Balance))) :<|> ((MondoAuth :> ("transactions" :> (Capture "transaction_id" String :> Get `[JSON]` TransactionResponse))) :<|> (MondoAuth :> ("transactions" :> (QueryParam "account_id" AccountID :> Get `[JSON]` Transactions))))) Source

A type representing the Mondo API.

mondoURL :: BaseUrl Source

The URL of the Mondo API.

class GetNth n a b | n a -> b where Source

Methods

getNth :: Proxy n -> a -> b Source

Instances

(~) * x y => GetNth 0 x y Source 
GetNth ((-) n 1) x y => GetNth n ((:<|>) a x) y Source 
GetNth 0 ((:<|>) x y) x Source