Safe Haskell | None |
---|---|
Language | Haskell2010 |
- ppPost :: ToJSON a => Client -> Text -> a -> IO (Either AdaptiveErr (Response ByteString))
- ppDecode :: FromJSON a => Response ByteString -> Either AdaptiveErr a
- parseErrId :: Value -> Parser Int
- requestEnvelope :: Value
- payExecStatusCompleted :: PayResp -> Either AdaptiveErr ()
- getPayInfo :: PayResp -> Either AdaptiveErr PayInfo
- transactionStatusCompleted :: PayResp -> PayInfo -> Either AdaptiveErr ()
- errorFieldNothing :: PayResp -> Either AdaptiveErr ()
- checkPayKey :: PayResp -> Either AdaptiveErr ()
- payExecStatusCreated :: PayResp -> Either AdaptiveErr ()
- noPayInfo :: PayResp -> Either AdaptiveErr ()
- data SerializeDeposit = SerializeDeposit Deposit Text
- data SerializeWithdrawal = SerializeWithdrawal Withdrawal Text
Documentation
ppPost :: ToJSON a => Client -> Text -> a -> IO (Either AdaptiveErr (Response ByteString)) Source
Exported by Web.PayPal.Adaptive.Internal
ppDecode :: FromJSON a => Response ByteString -> Either AdaptiveErr a Source
Exported by Web.PayPal.Adaptive.Internal
parseErrId :: Value -> Parser Int Source
Exported by Web.PayPal.Adaptive.Internal
requestEnvelope :: Value Source
Exported by Web.PayPal.Adaptive.Internal
"en_US" is hardcoded because it's the only supported error language.
payExecStatusCompleted :: PayResp -> Either AdaptiveErr () Source
Exported by Web.PayPal.Adaptive.Internal
getPayInfo :: PayResp -> Either AdaptiveErr PayInfo Source
Exported by Web.PayPal.Adaptive.Internal
TODO: this makes the assumption that an empty PayInfo list means the transaction is pending. Is this always right?
transactionStatusCompleted :: PayResp -> PayInfo -> Either AdaptiveErr () Source
Exported by Web.PayPal.Adaptive.Internal
errorFieldNothing :: PayResp -> Either AdaptiveErr () Source
Exported by Web.PayPal.Adaptive.Internal
checkPayKey :: PayResp -> Either AdaptiveErr () Source
Exported by Web.PayPal.Adaptive.Internal
payExecStatusCreated :: PayResp -> Either AdaptiveErr () Source
Exported by Web.PayPal.Adaptive.Internal
noPayInfo :: PayResp -> Either AdaptiveErr () Source
Exported by Web.PayPal.Adaptive.Internal
data SerializeDeposit Source
Exported by Web.PayPal.Adaptive.Internal
data SerializeWithdrawal Source
Exported by Web.PayPal.Adaptive.Internal