{-# LANGUAGE TemplateHaskell #-} module PayPal.Adaptive.Core.PayResponse.PayKey where import Import -- | Expires after three hours. -- -- 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)