-- | Description: Account status data type
module Polysemy.Account.Data.AccountStatus where

-- | Basic account status.
data AccountStatus =
  -- | The account was added to storage, but not processed fully.
  Creating
  |
  -- | The account was fully created, but not approved by an admin.
  Pending
  |
  -- | The account is fully operational.
  Active
  |
  -- | An admin has disabled the account.
  Locked
  deriving stock (AccountStatus -> AccountStatus -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AccountStatus -> AccountStatus -> Bool
$c/= :: AccountStatus -> AccountStatus -> Bool
== :: AccountStatus -> AccountStatus -> Bool
$c== :: AccountStatus -> AccountStatus -> Bool
Eq, Int -> AccountStatus -> ShowS
[AccountStatus] -> ShowS
AccountStatus -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AccountStatus] -> ShowS
$cshowList :: [AccountStatus] -> ShowS
show :: AccountStatus -> String
$cshow :: AccountStatus -> String
showsPrec :: Int -> AccountStatus -> ShowS
$cshowsPrec :: Int -> AccountStatus -> ShowS
Show, forall x. Rep AccountStatus x -> AccountStatus
forall x. AccountStatus -> Rep AccountStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AccountStatus x -> AccountStatus
$cfrom :: forall x. AccountStatus -> Rep AccountStatus x
Generic)

json ''AccountStatus