{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DerivingStrategies #-} module Hercules.API.Accounts.AccountInstallationStatus where import Data.OpenApi qualified as O3 import Hercules.API.Accounts.Account (Account) import Hercules.API.Forge.Forge (Forge) import Hercules.API.Prelude data AccountInstallationStatus = AccountInstallationStatus { AccountInstallationStatus -> Forge site :: Forge, AccountInstallationStatus -> Maybe Account account :: Maybe Account, AccountInstallationStatus -> Bool isProcessingInstallationWebHook :: Bool, AccountInstallationStatus -> Maybe Int secondsSinceInstallationWebHookComplete :: Maybe Int } deriving ((forall x. AccountInstallationStatus -> Rep AccountInstallationStatus x) -> (forall x. Rep AccountInstallationStatus x -> AccountInstallationStatus) -> Generic AccountInstallationStatus forall x. Rep AccountInstallationStatus x -> AccountInstallationStatus forall x. AccountInstallationStatus -> Rep AccountInstallationStatus x forall a. (forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a $cfrom :: forall x. AccountInstallationStatus -> Rep AccountInstallationStatus x from :: forall x. AccountInstallationStatus -> Rep AccountInstallationStatus x $cto :: forall x. Rep AccountInstallationStatus x -> AccountInstallationStatus to :: forall x. Rep AccountInstallationStatus x -> AccountInstallationStatus Generic, Int -> AccountInstallationStatus -> ShowS [AccountInstallationStatus] -> ShowS AccountInstallationStatus -> String (Int -> AccountInstallationStatus -> ShowS) -> (AccountInstallationStatus -> String) -> ([AccountInstallationStatus] -> ShowS) -> Show AccountInstallationStatus forall a. (Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a $cshowsPrec :: Int -> AccountInstallationStatus -> ShowS showsPrec :: Int -> AccountInstallationStatus -> ShowS $cshow :: AccountInstallationStatus -> String show :: AccountInstallationStatus -> String $cshowList :: [AccountInstallationStatus] -> ShowS showList :: [AccountInstallationStatus] -> ShowS Show, AccountInstallationStatus -> AccountInstallationStatus -> Bool (AccountInstallationStatus -> AccountInstallationStatus -> Bool) -> (AccountInstallationStatus -> AccountInstallationStatus -> Bool) -> Eq AccountInstallationStatus forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a $c== :: AccountInstallationStatus -> AccountInstallationStatus -> Bool == :: AccountInstallationStatus -> AccountInstallationStatus -> Bool $c/= :: AccountInstallationStatus -> AccountInstallationStatus -> Bool /= :: AccountInstallationStatus -> AccountInstallationStatus -> Bool Eq) deriving anyclass (AccountInstallationStatus -> () (AccountInstallationStatus -> ()) -> NFData AccountInstallationStatus forall a. (a -> ()) -> NFData a $crnf :: AccountInstallationStatus -> () rnf :: AccountInstallationStatus -> () NFData, [AccountInstallationStatus] -> Value [AccountInstallationStatus] -> Encoding AccountInstallationStatus -> Value AccountInstallationStatus -> Encoding (AccountInstallationStatus -> Value) -> (AccountInstallationStatus -> Encoding) -> ([AccountInstallationStatus] -> Value) -> ([AccountInstallationStatus] -> Encoding) -> ToJSON AccountInstallationStatus forall a. (a -> Value) -> (a -> Encoding) -> ([a] -> Value) -> ([a] -> Encoding) -> ToJSON a $ctoJSON :: AccountInstallationStatus -> Value toJSON :: AccountInstallationStatus -> Value $ctoEncoding :: AccountInstallationStatus -> Encoding toEncoding :: AccountInstallationStatus -> Encoding $ctoJSONList :: [AccountInstallationStatus] -> Value toJSONList :: [AccountInstallationStatus] -> Value $ctoEncodingList :: [AccountInstallationStatus] -> Encoding toEncodingList :: [AccountInstallationStatus] -> Encoding ToJSON, Value -> Parser [AccountInstallationStatus] Value -> Parser AccountInstallationStatus (Value -> Parser AccountInstallationStatus) -> (Value -> Parser [AccountInstallationStatus]) -> FromJSON AccountInstallationStatus forall a. (Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a $cparseJSON :: Value -> Parser AccountInstallationStatus parseJSON :: Value -> Parser AccountInstallationStatus $cparseJSONList :: Value -> Parser [AccountInstallationStatus] parseJSONList :: Value -> Parser [AccountInstallationStatus] FromJSON, Proxy AccountInstallationStatus -> Declare (Definitions Schema) NamedSchema (Proxy AccountInstallationStatus -> Declare (Definitions Schema) NamedSchema) -> ToSchema AccountInstallationStatus forall a. (Proxy a -> Declare (Definitions Schema) NamedSchema) -> ToSchema a $cdeclareNamedSchema :: Proxy AccountInstallationStatus -> Declare (Definitions Schema) NamedSchema declareNamedSchema :: Proxy AccountInstallationStatus -> Declare (Definitions Schema) NamedSchema ToSchema, Typeable AccountInstallationStatus Typeable AccountInstallationStatus -> (Proxy AccountInstallationStatus -> Declare (Definitions Schema) NamedSchema) -> ToSchema AccountInstallationStatus Proxy AccountInstallationStatus -> Declare (Definitions Schema) NamedSchema forall a. Typeable a -> (Proxy a -> Declare (Definitions Schema) NamedSchema) -> ToSchema a $cdeclareNamedSchema :: Proxy AccountInstallationStatus -> Declare (Definitions Schema) NamedSchema declareNamedSchema :: Proxy AccountInstallationStatus -> Declare (Definitions Schema) NamedSchema O3.ToSchema)