paypal-adaptive-hoops-0.13.1.0: src/PayPal/Adaptive/Core/PayResponse/PayKey.hs
{-# LANGUAGE TemplateHaskell #-}
module PayPal.Adaptive.Core.PayResponse.PayKey where
import Import
-- | Expires after three hours.
--
-- <https://developer.paypal.com/docs/classic/api/adaptive-payments/Pay_API_Operation/>
newtype PayKey = PayKey { _unPayKey :: Text } deriving (Eq, Show)
instance FromJSON PayKey where
parseJSON = withText "PayKey" $ return . PayKey
instance ToJSON PayKey where
toJSON (PayKey a) = toJSON a
$(makeLenses ''PayKey)