module TD.Query.CancelRecoveryEmailAddressVerification
  (CancelRecoveryEmailAddressVerification(..)
  ) where

import qualified Data.Aeson as A
import qualified Data.Aeson.Types as AT
import qualified TD.Lib.Internal as I

-- | Cancels verification of the 2-step verification recovery email address. Returns 'TD.Data.PasswordState.PasswordState'
data CancelRecoveryEmailAddressVerification
  = CancelRecoveryEmailAddressVerification
  deriving (CancelRecoveryEmailAddressVerification
-> CancelRecoveryEmailAddressVerification -> Bool
(CancelRecoveryEmailAddressVerification
 -> CancelRecoveryEmailAddressVerification -> Bool)
-> (CancelRecoveryEmailAddressVerification
    -> CancelRecoveryEmailAddressVerification -> Bool)
-> Eq CancelRecoveryEmailAddressVerification
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CancelRecoveryEmailAddressVerification
-> CancelRecoveryEmailAddressVerification -> Bool
== :: CancelRecoveryEmailAddressVerification
-> CancelRecoveryEmailAddressVerification -> Bool
$c/= :: CancelRecoveryEmailAddressVerification
-> CancelRecoveryEmailAddressVerification -> Bool
/= :: CancelRecoveryEmailAddressVerification
-> CancelRecoveryEmailAddressVerification -> Bool
Eq, Int -> CancelRecoveryEmailAddressVerification -> ShowS
[CancelRecoveryEmailAddressVerification] -> ShowS
CancelRecoveryEmailAddressVerification -> String
(Int -> CancelRecoveryEmailAddressVerification -> ShowS)
-> (CancelRecoveryEmailAddressVerification -> String)
-> ([CancelRecoveryEmailAddressVerification] -> ShowS)
-> Show CancelRecoveryEmailAddressVerification
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CancelRecoveryEmailAddressVerification -> ShowS
showsPrec :: Int -> CancelRecoveryEmailAddressVerification -> ShowS
$cshow :: CancelRecoveryEmailAddressVerification -> String
show :: CancelRecoveryEmailAddressVerification -> String
$cshowList :: [CancelRecoveryEmailAddressVerification] -> ShowS
showList :: [CancelRecoveryEmailAddressVerification] -> ShowS
Show)

instance I.ShortShow CancelRecoveryEmailAddressVerification where
  shortShow :: CancelRecoveryEmailAddressVerification -> String
shortShow
    CancelRecoveryEmailAddressVerification
CancelRecoveryEmailAddressVerification
        = String
"CancelRecoveryEmailAddressVerification"

instance AT.ToJSON CancelRecoveryEmailAddressVerification where
  toJSON :: CancelRecoveryEmailAddressVerification -> Value
toJSON
    CancelRecoveryEmailAddressVerification
CancelRecoveryEmailAddressVerification
        = [Pair] -> Value
A.object
          [ Key
"@type" Key -> Value -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
A..= Text -> Value
AT.String Text
"cancelRecoveryEmailAddressVerification"
          ]