{-# LANGUAGE ExplicitForAll #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE OverloadedStrings #-}
module StripeAPI.Operations.GetIdentityVerificationReports where
import qualified Control.Monad.Fail
import qualified Control.Monad.Trans.Reader
import qualified Data.Aeson
import qualified Data.Aeson as Data.Aeson.Encoding.Internal
import qualified Data.Aeson as Data.Aeson.Types
import qualified Data.Aeson as Data.Aeson.Types.FromJSON
import qualified Data.Aeson as Data.Aeson.Types.Internal
import qualified Data.Aeson as Data.Aeson.Types.ToJSON
import qualified Data.ByteString.Char8
import qualified Data.ByteString.Char8 as Data.ByteString.Internal
import qualified Data.Either
import qualified Data.Functor
import qualified Data.Scientific
import qualified Data.Text
import qualified Data.Text.Internal
import qualified Data.Time.Calendar as Data.Time.Calendar.Days
import qualified Data.Time.LocalTime as Data.Time.LocalTime.Internal.ZonedTime
import qualified Data.Vector
import qualified GHC.Base
import qualified GHC.Classes
import qualified GHC.Int
import qualified GHC.Show
import qualified GHC.Types
import qualified Network.HTTP.Client
import qualified Network.HTTP.Client as Network.HTTP.Client.Request
import qualified Network.HTTP.Client as Network.HTTP.Client.Types
import qualified Network.HTTP.Simple
import qualified Network.HTTP.Types
import qualified Network.HTTP.Types as Network.HTTP.Types.Status
import qualified Network.HTTP.Types as Network.HTTP.Types.URI
import qualified StripeAPI.Common
import StripeAPI.Types
import qualified Prelude as GHC.Integer.Type
import qualified Prelude as GHC.Maybe
getIdentityVerificationReports ::
forall m.
StripeAPI.Common.MonadHTTP m =>
GetIdentityVerificationReportsParameters ->
StripeAPI.Common.StripeT m (Network.HTTP.Client.Types.Response GetIdentityVerificationReportsResponse)
getIdentityVerificationReports :: GetIdentityVerificationReportsParameters
-> StripeT m (Response GetIdentityVerificationReportsResponse)
getIdentityVerificationReports GetIdentityVerificationReportsParameters
parameters =
(Response ByteString
-> Response GetIdentityVerificationReportsResponse)
-> StripeT m (Response ByteString)
-> StripeT m (Response GetIdentityVerificationReportsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
GHC.Base.fmap
( \Response ByteString
response_0 ->
(ByteString -> GetIdentityVerificationReportsResponse)
-> Response ByteString
-> Response GetIdentityVerificationReportsResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
GHC.Base.fmap
( (String -> GetIdentityVerificationReportsResponse)
-> (GetIdentityVerificationReportsResponse
-> GetIdentityVerificationReportsResponse)
-> Either String GetIdentityVerificationReportsResponse
-> GetIdentityVerificationReportsResponse
forall a c b. (a -> c) -> (b -> c) -> Either a b -> c
Data.Either.either String -> GetIdentityVerificationReportsResponse
GetIdentityVerificationReportsResponseError GetIdentityVerificationReportsResponse
-> GetIdentityVerificationReportsResponse
forall a. a -> a
GHC.Base.id
(Either String GetIdentityVerificationReportsResponse
-> GetIdentityVerificationReportsResponse)
-> (ByteString
-> Either String GetIdentityVerificationReportsResponse)
-> ByteString
-> GetIdentityVerificationReportsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
GHC.Base.. ( \Response ByteString
response ByteString
body ->
if
| (\Status
status_1 -> Status -> Int
Network.HTTP.Types.Status.statusCode Status
status_1 Int -> Int -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Int
200) (Response ByteString -> Status
forall body. Response body -> Status
Network.HTTP.Client.Types.responseStatus Response ByteString
response) ->
GetIdentityVerificationReportsResponseBody200
-> GetIdentityVerificationReportsResponse
GetIdentityVerificationReportsResponse200
(GetIdentityVerificationReportsResponseBody200
-> GetIdentityVerificationReportsResponse)
-> Either String GetIdentityVerificationReportsResponseBody200
-> Either String GetIdentityVerificationReportsResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> ( ByteString
-> Either String GetIdentityVerificationReportsResponseBody200
forall a. FromJSON a => ByteString -> Either String a
Data.Aeson.eitherDecodeStrict ByteString
body ::
Data.Either.Either
GHC.Base.String
GetIdentityVerificationReportsResponseBody200
)
| Bool -> Status -> Bool
forall a b. a -> b -> a
GHC.Base.const Bool
GHC.Types.True (Response ByteString -> Status
forall body. Response body -> Status
Network.HTTP.Client.Types.responseStatus Response ByteString
response) ->
Error -> GetIdentityVerificationReportsResponse
GetIdentityVerificationReportsResponseDefault
(Error -> GetIdentityVerificationReportsResponse)
-> Either String Error
-> Either String GetIdentityVerificationReportsResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> ( ByteString -> Either String Error
forall a. FromJSON a => ByteString -> Either String a
Data.Aeson.eitherDecodeStrict ByteString
body ::
Data.Either.Either
GHC.Base.String
Error
)
| Bool
GHC.Base.otherwise -> String -> Either String GetIdentityVerificationReportsResponse
forall a b. a -> Either a b
Data.Either.Left String
"Missing default response type"
)
Response ByteString
response_0
)
Response ByteString
response_0
)
( Text -> Text -> [QueryParameter] -> StripeT m (Response ByteString)
forall (m :: * -> *).
MonadHTTP m =>
Text -> Text -> [QueryParameter] -> StripeT m (Response ByteString)
StripeAPI.Common.doCallWithConfigurationM
(Text -> Text
Data.Text.toUpper (Text -> Text) -> Text -> Text
forall a b. (a -> b) -> a -> b
GHC.Base.$ String -> Text
Data.Text.pack String
"GET")
(String -> Text
Data.Text.pack String
"/v1/identity/verification_reports")
[ Text -> Maybe Value -> Text -> Bool -> QueryParameter
StripeAPI.Common.QueryParameter (String -> Text
Data.Text.pack String
"created") (GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON (GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Value)
-> Maybe
GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Maybe Value
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> GetIdentityVerificationReportsParameters
-> Maybe
GetIdentityVerificationReportsParametersQueryCreated'Variants
getIdentityVerificationReportsParametersQueryCreated GetIdentityVerificationReportsParameters
parameters) (String -> Text
Data.Text.pack String
"deepObject") Bool
GHC.Types.True,
Text -> Maybe Value -> Text -> Bool -> QueryParameter
StripeAPI.Common.QueryParameter (String -> Text
Data.Text.pack String
"ending_before") (Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON (Text -> Value) -> Maybe Text -> Maybe Value
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> GetIdentityVerificationReportsParameters -> Maybe Text
getIdentityVerificationReportsParametersQueryEndingBefore GetIdentityVerificationReportsParameters
parameters) (String -> Text
Data.Text.pack String
"form") Bool
GHC.Types.True,
Text -> Maybe Value -> Text -> Bool -> QueryParameter
StripeAPI.Common.QueryParameter (String -> Text
Data.Text.pack String
"expand") ([Text] -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON ([Text] -> Value) -> Maybe [Text] -> Maybe Value
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> GetIdentityVerificationReportsParameters -> Maybe [Text]
getIdentityVerificationReportsParametersQueryExpand GetIdentityVerificationReportsParameters
parameters) (String -> Text
Data.Text.pack String
"deepObject") Bool
GHC.Types.True,
Text -> Maybe Value -> Text -> Bool -> QueryParameter
StripeAPI.Common.QueryParameter (String -> Text
Data.Text.pack String
"limit") (Int -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON (Int -> Value) -> Maybe Int -> Maybe Value
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> GetIdentityVerificationReportsParameters -> Maybe Int
getIdentityVerificationReportsParametersQueryLimit GetIdentityVerificationReportsParameters
parameters) (String -> Text
Data.Text.pack String
"form") Bool
GHC.Types.True,
Text -> Maybe Value -> Text -> Bool -> QueryParameter
StripeAPI.Common.QueryParameter (String -> Text
Data.Text.pack String
"starting_after") (Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON (Text -> Value) -> Maybe Text -> Maybe Value
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> GetIdentityVerificationReportsParameters -> Maybe Text
getIdentityVerificationReportsParametersQueryStartingAfter GetIdentityVerificationReportsParameters
parameters) (String -> Text
Data.Text.pack String
"form") Bool
GHC.Types.True,
Text -> Maybe Value -> Text -> Bool -> QueryParameter
StripeAPI.Common.QueryParameter (String -> Text
Data.Text.pack String
"type") (GetIdentityVerificationReportsParametersQueryType' -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON (GetIdentityVerificationReportsParametersQueryType' -> Value)
-> Maybe GetIdentityVerificationReportsParametersQueryType'
-> Maybe Value
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> GetIdentityVerificationReportsParameters
-> Maybe GetIdentityVerificationReportsParametersQueryType'
getIdentityVerificationReportsParametersQueryType GetIdentityVerificationReportsParameters
parameters) (String -> Text
Data.Text.pack String
"form") Bool
GHC.Types.True,
Text -> Maybe Value -> Text -> Bool -> QueryParameter
StripeAPI.Common.QueryParameter (String -> Text
Data.Text.pack String
"verification_session") (Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON (Text -> Value) -> Maybe Text -> Maybe Value
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> GetIdentityVerificationReportsParameters -> Maybe Text
getIdentityVerificationReportsParametersQueryVerificationSession GetIdentityVerificationReportsParameters
parameters) (String -> Text
Data.Text.pack String
"form") Bool
GHC.Types.True
]
)
data GetIdentityVerificationReportsParameters = GetIdentityVerificationReportsParameters
{
GetIdentityVerificationReportsParameters
-> Maybe
GetIdentityVerificationReportsParametersQueryCreated'Variants
getIdentityVerificationReportsParametersQueryCreated :: (GHC.Maybe.Maybe GetIdentityVerificationReportsParametersQueryCreated'Variants),
GetIdentityVerificationReportsParameters -> Maybe Text
getIdentityVerificationReportsParametersQueryEndingBefore :: (GHC.Maybe.Maybe Data.Text.Internal.Text),
GetIdentityVerificationReportsParameters -> Maybe [Text]
getIdentityVerificationReportsParametersQueryExpand :: (GHC.Maybe.Maybe ([Data.Text.Internal.Text])),
GetIdentityVerificationReportsParameters -> Maybe Int
getIdentityVerificationReportsParametersQueryLimit :: (GHC.Maybe.Maybe GHC.Types.Int),
GetIdentityVerificationReportsParameters -> Maybe Text
getIdentityVerificationReportsParametersQueryStartingAfter :: (GHC.Maybe.Maybe Data.Text.Internal.Text),
GetIdentityVerificationReportsParameters
-> Maybe GetIdentityVerificationReportsParametersQueryType'
getIdentityVerificationReportsParametersQueryType :: (GHC.Maybe.Maybe GetIdentityVerificationReportsParametersQueryType'),
GetIdentityVerificationReportsParameters -> Maybe Text
getIdentityVerificationReportsParametersQueryVerificationSession :: (GHC.Maybe.Maybe Data.Text.Internal.Text)
}
deriving
( Int -> GetIdentityVerificationReportsParameters -> ShowS
[GetIdentityVerificationReportsParameters] -> ShowS
GetIdentityVerificationReportsParameters -> String
(Int -> GetIdentityVerificationReportsParameters -> ShowS)
-> (GetIdentityVerificationReportsParameters -> String)
-> ([GetIdentityVerificationReportsParameters] -> ShowS)
-> Show GetIdentityVerificationReportsParameters
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIdentityVerificationReportsParameters] -> ShowS
$cshowList :: [GetIdentityVerificationReportsParameters] -> ShowS
show :: GetIdentityVerificationReportsParameters -> String
$cshow :: GetIdentityVerificationReportsParameters -> String
showsPrec :: Int -> GetIdentityVerificationReportsParameters -> ShowS
$cshowsPrec :: Int -> GetIdentityVerificationReportsParameters -> ShowS
GHC.Show.Show,
GetIdentityVerificationReportsParameters
-> GetIdentityVerificationReportsParameters -> Bool
(GetIdentityVerificationReportsParameters
-> GetIdentityVerificationReportsParameters -> Bool)
-> (GetIdentityVerificationReportsParameters
-> GetIdentityVerificationReportsParameters -> Bool)
-> Eq GetIdentityVerificationReportsParameters
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIdentityVerificationReportsParameters
-> GetIdentityVerificationReportsParameters -> Bool
$c/= :: GetIdentityVerificationReportsParameters
-> GetIdentityVerificationReportsParameters -> Bool
== :: GetIdentityVerificationReportsParameters
-> GetIdentityVerificationReportsParameters -> Bool
$c== :: GetIdentityVerificationReportsParameters
-> GetIdentityVerificationReportsParameters -> Bool
GHC.Classes.Eq
)
instance Data.Aeson.Types.ToJSON.ToJSON GetIdentityVerificationReportsParameters where
toJSON :: GetIdentityVerificationReportsParameters -> Value
toJSON GetIdentityVerificationReportsParameters
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"queryCreated" Text
-> Maybe
GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParameters
-> Maybe
GetIdentityVerificationReportsParametersQueryCreated'Variants
getIdentityVerificationReportsParametersQueryCreated GetIdentityVerificationReportsParameters
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"queryEnding_before" Text -> Maybe Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParameters -> Maybe Text
getIdentityVerificationReportsParametersQueryEndingBefore GetIdentityVerificationReportsParameters
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"queryExpand" Text -> Maybe [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParameters -> Maybe [Text]
getIdentityVerificationReportsParametersQueryExpand GetIdentityVerificationReportsParameters
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"queryLimit" Text -> Maybe Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParameters -> Maybe Int
getIdentityVerificationReportsParametersQueryLimit GetIdentityVerificationReportsParameters
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"queryStarting_after" Text -> Maybe Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParameters -> Maybe Text
getIdentityVerificationReportsParametersQueryStartingAfter GetIdentityVerificationReportsParameters
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"queryType" Text
-> Maybe GetIdentityVerificationReportsParametersQueryType' -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParameters
-> Maybe GetIdentityVerificationReportsParametersQueryType'
getIdentityVerificationReportsParametersQueryType GetIdentityVerificationReportsParameters
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"queryVerification_session" Text -> Maybe Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParameters -> Maybe Text
getIdentityVerificationReportsParametersQueryVerificationSession GetIdentityVerificationReportsParameters
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
toEncoding :: GetIdentityVerificationReportsParameters -> Encoding
toEncoding GetIdentityVerificationReportsParameters
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs ((Text
"queryCreated" Text
-> Maybe
GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParameters
-> Maybe
GetIdentityVerificationReportsParametersQueryCreated'Variants
getIdentityVerificationReportsParametersQueryCreated GetIdentityVerificationReportsParameters
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"queryEnding_before" Text -> Maybe Text -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParameters -> Maybe Text
getIdentityVerificationReportsParametersQueryEndingBefore GetIdentityVerificationReportsParameters
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"queryExpand" Text -> Maybe [Text] -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParameters -> Maybe [Text]
getIdentityVerificationReportsParametersQueryExpand GetIdentityVerificationReportsParameters
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"queryLimit" Text -> Maybe Int -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParameters -> Maybe Int
getIdentityVerificationReportsParametersQueryLimit GetIdentityVerificationReportsParameters
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"queryStarting_after" Text -> Maybe Text -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParameters -> Maybe Text
getIdentityVerificationReportsParametersQueryStartingAfter GetIdentityVerificationReportsParameters
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"queryType" Text
-> Maybe GetIdentityVerificationReportsParametersQueryType'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParameters
-> Maybe GetIdentityVerificationReportsParametersQueryType'
getIdentityVerificationReportsParametersQueryType GetIdentityVerificationReportsParameters
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> (Text
"queryVerification_session" Text -> Maybe Text -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParameters -> Maybe Text
getIdentityVerificationReportsParametersQueryVerificationSession GetIdentityVerificationReportsParameters
obj)))))))
instance Data.Aeson.Types.FromJSON.FromJSON GetIdentityVerificationReportsParameters where
parseJSON :: Value -> Parser GetIdentityVerificationReportsParameters
parseJSON = String
-> (Object -> Parser GetIdentityVerificationReportsParameters)
-> Value
-> Parser GetIdentityVerificationReportsParameters
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"GetIdentityVerificationReportsParameters" (\Object
obj -> (((((((Maybe
GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Maybe Text
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe GetIdentityVerificationReportsParametersQueryType'
-> Maybe Text
-> GetIdentityVerificationReportsParameters)
-> Parser
(Maybe
GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Maybe Text
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe GetIdentityVerificationReportsParametersQueryType'
-> Maybe Text
-> GetIdentityVerificationReportsParameters)
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Maybe Text
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe GetIdentityVerificationReportsParametersQueryType'
-> Maybe Text
-> GetIdentityVerificationReportsParameters
GetIdentityVerificationReportsParameters Parser
(Maybe
GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Maybe Text
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe GetIdentityVerificationReportsParametersQueryType'
-> Maybe Text
-> GetIdentityVerificationReportsParameters)
-> Parser
(Maybe
GetIdentityVerificationReportsParametersQueryCreated'Variants)
-> Parser
(Maybe Text
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe GetIdentityVerificationReportsParametersQueryType'
-> Maybe Text
-> GetIdentityVerificationReportsParameters)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
(Maybe
GetIdentityVerificationReportsParametersQueryCreated'Variants)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"queryCreated")) Parser
(Maybe Text
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe GetIdentityVerificationReportsParametersQueryType'
-> Maybe Text
-> GetIdentityVerificationReportsParameters)
-> Parser (Maybe Text)
-> Parser
(Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe GetIdentityVerificationReportsParametersQueryType'
-> Maybe Text
-> GetIdentityVerificationReportsParameters)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"queryEnding_before")) Parser
(Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe GetIdentityVerificationReportsParametersQueryType'
-> Maybe Text
-> GetIdentityVerificationReportsParameters)
-> Parser (Maybe [Text])
-> Parser
(Maybe Int
-> Maybe Text
-> Maybe GetIdentityVerificationReportsParametersQueryType'
-> Maybe Text
-> GetIdentityVerificationReportsParameters)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser (Maybe [Text])
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"queryExpand")) Parser
(Maybe Int
-> Maybe Text
-> Maybe GetIdentityVerificationReportsParametersQueryType'
-> Maybe Text
-> GetIdentityVerificationReportsParameters)
-> Parser (Maybe Int)
-> Parser
(Maybe Text
-> Maybe GetIdentityVerificationReportsParametersQueryType'
-> Maybe Text
-> GetIdentityVerificationReportsParameters)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"queryLimit")) Parser
(Maybe Text
-> Maybe GetIdentityVerificationReportsParametersQueryType'
-> Maybe Text
-> GetIdentityVerificationReportsParameters)
-> Parser (Maybe Text)
-> Parser
(Maybe GetIdentityVerificationReportsParametersQueryType'
-> Maybe Text -> GetIdentityVerificationReportsParameters)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"queryStarting_after")) Parser
(Maybe GetIdentityVerificationReportsParametersQueryType'
-> Maybe Text -> GetIdentityVerificationReportsParameters)
-> Parser
(Maybe GetIdentityVerificationReportsParametersQueryType')
-> Parser (Maybe Text -> GetIdentityVerificationReportsParameters)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
(Maybe GetIdentityVerificationReportsParametersQueryType')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"queryType")) Parser (Maybe Text -> GetIdentityVerificationReportsParameters)
-> Parser (Maybe Text)
-> Parser GetIdentityVerificationReportsParameters
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"queryVerification_session"))
mkGetIdentityVerificationReportsParameters :: GetIdentityVerificationReportsParameters
mkGetIdentityVerificationReportsParameters :: GetIdentityVerificationReportsParameters
mkGetIdentityVerificationReportsParameters =
GetIdentityVerificationReportsParameters :: Maybe GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Maybe Text
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe GetIdentityVerificationReportsParametersQueryType'
-> Maybe Text
-> GetIdentityVerificationReportsParameters
GetIdentityVerificationReportsParameters
{ getIdentityVerificationReportsParametersQueryCreated :: Maybe GetIdentityVerificationReportsParametersQueryCreated'Variants
getIdentityVerificationReportsParametersQueryCreated = Maybe GetIdentityVerificationReportsParametersQueryCreated'Variants
forall a. Maybe a
GHC.Maybe.Nothing,
getIdentityVerificationReportsParametersQueryEndingBefore :: Maybe Text
getIdentityVerificationReportsParametersQueryEndingBefore = Maybe Text
forall a. Maybe a
GHC.Maybe.Nothing,
getIdentityVerificationReportsParametersQueryExpand :: Maybe [Text]
getIdentityVerificationReportsParametersQueryExpand = Maybe [Text]
forall a. Maybe a
GHC.Maybe.Nothing,
getIdentityVerificationReportsParametersQueryLimit :: Maybe Int
getIdentityVerificationReportsParametersQueryLimit = Maybe Int
forall a. Maybe a
GHC.Maybe.Nothing,
getIdentityVerificationReportsParametersQueryStartingAfter :: Maybe Text
getIdentityVerificationReportsParametersQueryStartingAfter = Maybe Text
forall a. Maybe a
GHC.Maybe.Nothing,
getIdentityVerificationReportsParametersQueryType :: Maybe GetIdentityVerificationReportsParametersQueryType'
getIdentityVerificationReportsParametersQueryType = Maybe GetIdentityVerificationReportsParametersQueryType'
forall a. Maybe a
GHC.Maybe.Nothing,
getIdentityVerificationReportsParametersQueryVerificationSession :: Maybe Text
getIdentityVerificationReportsParametersQueryVerificationSession = Maybe Text
forall a. Maybe a
GHC.Maybe.Nothing
}
data GetIdentityVerificationReportsParametersQueryCreated'OneOf1 = GetIdentityVerificationReportsParametersQueryCreated'OneOf1
{
GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Maybe Int
getIdentityVerificationReportsParametersQueryCreated'OneOf1Gt :: (GHC.Maybe.Maybe GHC.Types.Int),
GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Maybe Int
getIdentityVerificationReportsParametersQueryCreated'OneOf1Gte :: (GHC.Maybe.Maybe GHC.Types.Int),
GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Maybe Int
getIdentityVerificationReportsParametersQueryCreated'OneOf1Lt :: (GHC.Maybe.Maybe GHC.Types.Int),
GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Maybe Int
getIdentityVerificationReportsParametersQueryCreated'OneOf1Lte :: (GHC.Maybe.Maybe GHC.Types.Int)
}
deriving
( Int
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> ShowS
[GetIdentityVerificationReportsParametersQueryCreated'OneOf1]
-> ShowS
GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> String
(Int
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> ShowS)
-> (GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> String)
-> ([GetIdentityVerificationReportsParametersQueryCreated'OneOf1]
-> ShowS)
-> Show GetIdentityVerificationReportsParametersQueryCreated'OneOf1
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIdentityVerificationReportsParametersQueryCreated'OneOf1]
-> ShowS
$cshowList :: [GetIdentityVerificationReportsParametersQueryCreated'OneOf1]
-> ShowS
show :: GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> String
$cshow :: GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> String
showsPrec :: Int
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> ShowS
$cshowsPrec :: Int
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> ShowS
GHC.Show.Show,
GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Bool
(GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Bool)
-> (GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Bool)
-> Eq GetIdentityVerificationReportsParametersQueryCreated'OneOf1
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Bool
$c/= :: GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Bool
== :: GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Bool
$c== :: GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Bool
GHC.Classes.Eq
)
instance Data.Aeson.Types.ToJSON.ToJSON GetIdentityVerificationReportsParametersQueryCreated'OneOf1 where
toJSON :: GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Value
toJSON GetIdentityVerificationReportsParametersQueryCreated'OneOf1
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"gt" Text -> Maybe Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Maybe Int
getIdentityVerificationReportsParametersQueryCreated'OneOf1Gt GetIdentityVerificationReportsParametersQueryCreated'OneOf1
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"gte" Text -> Maybe Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Maybe Int
getIdentityVerificationReportsParametersQueryCreated'OneOf1Gte GetIdentityVerificationReportsParametersQueryCreated'OneOf1
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"lt" Text -> Maybe Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Maybe Int
getIdentityVerificationReportsParametersQueryCreated'OneOf1Lt GetIdentityVerificationReportsParametersQueryCreated'OneOf1
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"lte" Text -> Maybe Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Maybe Int
getIdentityVerificationReportsParametersQueryCreated'OneOf1Lte GetIdentityVerificationReportsParametersQueryCreated'OneOf1
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
toEncoding :: GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Encoding
toEncoding GetIdentityVerificationReportsParametersQueryCreated'OneOf1
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs ((Text
"gt" Text -> Maybe Int -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Maybe Int
getIdentityVerificationReportsParametersQueryCreated'OneOf1Gt GetIdentityVerificationReportsParametersQueryCreated'OneOf1
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"gte" Text -> Maybe Int -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Maybe Int
getIdentityVerificationReportsParametersQueryCreated'OneOf1Gte GetIdentityVerificationReportsParametersQueryCreated'OneOf1
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"lt" Text -> Maybe Int -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Maybe Int
getIdentityVerificationReportsParametersQueryCreated'OneOf1Lt GetIdentityVerificationReportsParametersQueryCreated'OneOf1
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> (Text
"lte" Text -> Maybe Int -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Maybe Int
getIdentityVerificationReportsParametersQueryCreated'OneOf1Lte GetIdentityVerificationReportsParametersQueryCreated'OneOf1
obj))))
instance Data.Aeson.Types.FromJSON.FromJSON GetIdentityVerificationReportsParametersQueryCreated'OneOf1 where
parseJSON :: Value
-> Parser
GetIdentityVerificationReportsParametersQueryCreated'OneOf1
parseJSON = String
-> (Object
-> Parser
GetIdentityVerificationReportsParametersQueryCreated'OneOf1)
-> Value
-> Parser
GetIdentityVerificationReportsParametersQueryCreated'OneOf1
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"GetIdentityVerificationReportsParametersQueryCreated'OneOf1" (\Object
obj -> ((((Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1)
-> Parser
(Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1)
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1
GetIdentityVerificationReportsParametersQueryCreated'OneOf1 Parser
(Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1)
-> Parser (Maybe Int)
-> Parser
(Maybe Int
-> Maybe Int
-> Maybe Int
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"gt")) Parser
(Maybe Int
-> Maybe Int
-> Maybe Int
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1)
-> Parser (Maybe Int)
-> Parser
(Maybe Int
-> Maybe Int
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"gte")) Parser
(Maybe Int
-> Maybe Int
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1)
-> Parser (Maybe Int)
-> Parser
(Maybe Int
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"lt")) Parser
(Maybe Int
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1)
-> Parser (Maybe Int)
-> Parser
GetIdentityVerificationReportsParametersQueryCreated'OneOf1
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"lte"))
mkGetIdentityVerificationReportsParametersQueryCreated'OneOf1 :: GetIdentityVerificationReportsParametersQueryCreated'OneOf1
mkGetIdentityVerificationReportsParametersQueryCreated'OneOf1 :: GetIdentityVerificationReportsParametersQueryCreated'OneOf1
mkGetIdentityVerificationReportsParametersQueryCreated'OneOf1 =
GetIdentityVerificationReportsParametersQueryCreated'OneOf1 :: Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> GetIdentityVerificationReportsParametersQueryCreated'OneOf1
GetIdentityVerificationReportsParametersQueryCreated'OneOf1
{ getIdentityVerificationReportsParametersQueryCreated'OneOf1Gt :: Maybe Int
getIdentityVerificationReportsParametersQueryCreated'OneOf1Gt = Maybe Int
forall a. Maybe a
GHC.Maybe.Nothing,
getIdentityVerificationReportsParametersQueryCreated'OneOf1Gte :: Maybe Int
getIdentityVerificationReportsParametersQueryCreated'OneOf1Gte = Maybe Int
forall a. Maybe a
GHC.Maybe.Nothing,
getIdentityVerificationReportsParametersQueryCreated'OneOf1Lt :: Maybe Int
getIdentityVerificationReportsParametersQueryCreated'OneOf1Lt = Maybe Int
forall a. Maybe a
GHC.Maybe.Nothing,
getIdentityVerificationReportsParametersQueryCreated'OneOf1Lte :: Maybe Int
getIdentityVerificationReportsParametersQueryCreated'OneOf1Lte = Maybe Int
forall a. Maybe a
GHC.Maybe.Nothing
}
data GetIdentityVerificationReportsParametersQueryCreated'Variants
= GetIdentityVerificationReportsParametersQueryCreated'GetIdentityVerificationReportsParametersQueryCreated'OneOf1 GetIdentityVerificationReportsParametersQueryCreated'OneOf1
| GetIdentityVerificationReportsParametersQueryCreated'Int GHC.Types.Int
deriving (Int
-> GetIdentityVerificationReportsParametersQueryCreated'Variants
-> ShowS
[GetIdentityVerificationReportsParametersQueryCreated'Variants]
-> ShowS
GetIdentityVerificationReportsParametersQueryCreated'Variants
-> String
(Int
-> GetIdentityVerificationReportsParametersQueryCreated'Variants
-> ShowS)
-> (GetIdentityVerificationReportsParametersQueryCreated'Variants
-> String)
-> ([GetIdentityVerificationReportsParametersQueryCreated'Variants]
-> ShowS)
-> Show
GetIdentityVerificationReportsParametersQueryCreated'Variants
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIdentityVerificationReportsParametersQueryCreated'Variants]
-> ShowS
$cshowList :: [GetIdentityVerificationReportsParametersQueryCreated'Variants]
-> ShowS
show :: GetIdentityVerificationReportsParametersQueryCreated'Variants
-> String
$cshow :: GetIdentityVerificationReportsParametersQueryCreated'Variants
-> String
showsPrec :: Int
-> GetIdentityVerificationReportsParametersQueryCreated'Variants
-> ShowS
$cshowsPrec :: Int
-> GetIdentityVerificationReportsParametersQueryCreated'Variants
-> ShowS
GHC.Show.Show, GetIdentityVerificationReportsParametersQueryCreated'Variants
-> GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Bool
(GetIdentityVerificationReportsParametersQueryCreated'Variants
-> GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Bool)
-> (GetIdentityVerificationReportsParametersQueryCreated'Variants
-> GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Bool)
-> Eq GetIdentityVerificationReportsParametersQueryCreated'Variants
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIdentityVerificationReportsParametersQueryCreated'Variants
-> GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Bool
$c/= :: GetIdentityVerificationReportsParametersQueryCreated'Variants
-> GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Bool
== :: GetIdentityVerificationReportsParametersQueryCreated'Variants
-> GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Bool
$c== :: GetIdentityVerificationReportsParametersQueryCreated'Variants
-> GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Bool
GHC.Classes.Eq)
instance Data.Aeson.Types.ToJSON.ToJSON GetIdentityVerificationReportsParametersQueryCreated'Variants where
toJSON :: GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Value
toJSON (GetIdentityVerificationReportsParametersQueryCreated'GetIdentityVerificationReportsParametersQueryCreated'OneOf1 GetIdentityVerificationReportsParametersQueryCreated'OneOf1
a) = GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON GetIdentityVerificationReportsParametersQueryCreated'OneOf1
a
toJSON (GetIdentityVerificationReportsParametersQueryCreated'Int Int
a) = Int -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Int
a
instance Data.Aeson.Types.FromJSON.FromJSON GetIdentityVerificationReportsParametersQueryCreated'Variants where
parseJSON :: Value
-> Parser
GetIdentityVerificationReportsParametersQueryCreated'Variants
parseJSON Value
val = case (GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> GetIdentityVerificationReportsParametersQueryCreated'Variants
GetIdentityVerificationReportsParametersQueryCreated'GetIdentityVerificationReportsParametersQueryCreated'OneOf1 (GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> GetIdentityVerificationReportsParametersQueryCreated'Variants)
-> Result
GetIdentityVerificationReportsParametersQueryCreated'OneOf1
-> Result
GetIdentityVerificationReportsParametersQueryCreated'Variants
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> Value
-> Result
GetIdentityVerificationReportsParametersQueryCreated'OneOf1
forall a. FromJSON a => Value -> Result a
Data.Aeson.Types.FromJSON.fromJSON Value
val) Result
GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Result
GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Result
GetIdentityVerificationReportsParametersQueryCreated'Variants
forall (f :: * -> *) a. Alternative f => f a -> f a -> f a
GHC.Base.<|> ((Int
-> GetIdentityVerificationReportsParametersQueryCreated'Variants
GetIdentityVerificationReportsParametersQueryCreated'Int (Int
-> GetIdentityVerificationReportsParametersQueryCreated'Variants)
-> Result Int
-> Result
GetIdentityVerificationReportsParametersQueryCreated'Variants
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> Value -> Result Int
forall a. FromJSON a => Value -> Result a
Data.Aeson.Types.FromJSON.fromJSON Value
val) Result
GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Result
GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Result
GetIdentityVerificationReportsParametersQueryCreated'Variants
forall (f :: * -> *) a. Alternative f => f a -> f a -> f a
GHC.Base.<|> String
-> Result
GetIdentityVerificationReportsParametersQueryCreated'Variants
forall a. String -> Result a
Data.Aeson.Types.Internal.Error String
"No variant matched") of
Data.Aeson.Types.Internal.Success GetIdentityVerificationReportsParametersQueryCreated'Variants
a -> GetIdentityVerificationReportsParametersQueryCreated'Variants
-> Parser
GetIdentityVerificationReportsParametersQueryCreated'Variants
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure GetIdentityVerificationReportsParametersQueryCreated'Variants
a
Data.Aeson.Types.Internal.Error String
a -> String
-> Parser
GetIdentityVerificationReportsParametersQueryCreated'Variants
forall (m :: * -> *) a. MonadFail m => String -> m a
Control.Monad.Fail.fail String
a
data GetIdentityVerificationReportsParametersQueryType'
=
GetIdentityVerificationReportsParametersQueryType'Other Data.Aeson.Types.Internal.Value
|
GetIdentityVerificationReportsParametersQueryType'Typed Data.Text.Internal.Text
|
GetIdentityVerificationReportsParametersQueryType'EnumDocument
|
GetIdentityVerificationReportsParametersQueryType'EnumIdNumber
deriving (Int -> GetIdentityVerificationReportsParametersQueryType' -> ShowS
[GetIdentityVerificationReportsParametersQueryType'] -> ShowS
GetIdentityVerificationReportsParametersQueryType' -> String
(Int
-> GetIdentityVerificationReportsParametersQueryType' -> ShowS)
-> (GetIdentityVerificationReportsParametersQueryType' -> String)
-> ([GetIdentityVerificationReportsParametersQueryType'] -> ShowS)
-> Show GetIdentityVerificationReportsParametersQueryType'
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIdentityVerificationReportsParametersQueryType'] -> ShowS
$cshowList :: [GetIdentityVerificationReportsParametersQueryType'] -> ShowS
show :: GetIdentityVerificationReportsParametersQueryType' -> String
$cshow :: GetIdentityVerificationReportsParametersQueryType' -> String
showsPrec :: Int -> GetIdentityVerificationReportsParametersQueryType' -> ShowS
$cshowsPrec :: Int -> GetIdentityVerificationReportsParametersQueryType' -> ShowS
GHC.Show.Show, GetIdentityVerificationReportsParametersQueryType'
-> GetIdentityVerificationReportsParametersQueryType' -> Bool
(GetIdentityVerificationReportsParametersQueryType'
-> GetIdentityVerificationReportsParametersQueryType' -> Bool)
-> (GetIdentityVerificationReportsParametersQueryType'
-> GetIdentityVerificationReportsParametersQueryType' -> Bool)
-> Eq GetIdentityVerificationReportsParametersQueryType'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIdentityVerificationReportsParametersQueryType'
-> GetIdentityVerificationReportsParametersQueryType' -> Bool
$c/= :: GetIdentityVerificationReportsParametersQueryType'
-> GetIdentityVerificationReportsParametersQueryType' -> Bool
== :: GetIdentityVerificationReportsParametersQueryType'
-> GetIdentityVerificationReportsParametersQueryType' -> Bool
$c== :: GetIdentityVerificationReportsParametersQueryType'
-> GetIdentityVerificationReportsParametersQueryType' -> Bool
GHC.Classes.Eq)
instance Data.Aeson.Types.ToJSON.ToJSON GetIdentityVerificationReportsParametersQueryType' where
toJSON :: GetIdentityVerificationReportsParametersQueryType' -> Value
toJSON (GetIdentityVerificationReportsParametersQueryType'Other Value
val) = Value
val
toJSON (GetIdentityVerificationReportsParametersQueryType'Typed Text
val) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
val
toJSON (GetIdentityVerificationReportsParametersQueryType'
GetIdentityVerificationReportsParametersQueryType'EnumDocument) = Value
"document"
toJSON (GetIdentityVerificationReportsParametersQueryType'
GetIdentityVerificationReportsParametersQueryType'EnumIdNumber) = Value
"id_number"
instance Data.Aeson.Types.FromJSON.FromJSON GetIdentityVerificationReportsParametersQueryType' where
parseJSON :: Value -> Parser GetIdentityVerificationReportsParametersQueryType'
parseJSON Value
val =
GetIdentityVerificationReportsParametersQueryType'
-> Parser GetIdentityVerificationReportsParametersQueryType'
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure
( if
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"document" -> GetIdentityVerificationReportsParametersQueryType'
GetIdentityVerificationReportsParametersQueryType'EnumDocument
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"id_number" -> GetIdentityVerificationReportsParametersQueryType'
GetIdentityVerificationReportsParametersQueryType'EnumIdNumber
| Bool
GHC.Base.otherwise -> Value -> GetIdentityVerificationReportsParametersQueryType'
GetIdentityVerificationReportsParametersQueryType'Other Value
val
)
data GetIdentityVerificationReportsResponse
=
GetIdentityVerificationReportsResponseError GHC.Base.String
|
GetIdentityVerificationReportsResponse200 GetIdentityVerificationReportsResponseBody200
|
GetIdentityVerificationReportsResponseDefault Error
deriving (Int -> GetIdentityVerificationReportsResponse -> ShowS
[GetIdentityVerificationReportsResponse] -> ShowS
GetIdentityVerificationReportsResponse -> String
(Int -> GetIdentityVerificationReportsResponse -> ShowS)
-> (GetIdentityVerificationReportsResponse -> String)
-> ([GetIdentityVerificationReportsResponse] -> ShowS)
-> Show GetIdentityVerificationReportsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIdentityVerificationReportsResponse] -> ShowS
$cshowList :: [GetIdentityVerificationReportsResponse] -> ShowS
show :: GetIdentityVerificationReportsResponse -> String
$cshow :: GetIdentityVerificationReportsResponse -> String
showsPrec :: Int -> GetIdentityVerificationReportsResponse -> ShowS
$cshowsPrec :: Int -> GetIdentityVerificationReportsResponse -> ShowS
GHC.Show.Show, GetIdentityVerificationReportsResponse
-> GetIdentityVerificationReportsResponse -> Bool
(GetIdentityVerificationReportsResponse
-> GetIdentityVerificationReportsResponse -> Bool)
-> (GetIdentityVerificationReportsResponse
-> GetIdentityVerificationReportsResponse -> Bool)
-> Eq GetIdentityVerificationReportsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIdentityVerificationReportsResponse
-> GetIdentityVerificationReportsResponse -> Bool
$c/= :: GetIdentityVerificationReportsResponse
-> GetIdentityVerificationReportsResponse -> Bool
== :: GetIdentityVerificationReportsResponse
-> GetIdentityVerificationReportsResponse -> Bool
$c== :: GetIdentityVerificationReportsResponse
-> GetIdentityVerificationReportsResponse -> Bool
GHC.Classes.Eq)
data GetIdentityVerificationReportsResponseBody200 = GetIdentityVerificationReportsResponseBody200
{
GetIdentityVerificationReportsResponseBody200
-> [Identity'verificationReport]
getIdentityVerificationReportsResponseBody200Data :: ([Identity'verificationReport]),
GetIdentityVerificationReportsResponseBody200 -> Bool
getIdentityVerificationReportsResponseBody200HasMore :: GHC.Types.Bool,
GetIdentityVerificationReportsResponseBody200 -> Text
getIdentityVerificationReportsResponseBody200Url :: Data.Text.Internal.Text
}
deriving
( Int -> GetIdentityVerificationReportsResponseBody200 -> ShowS
[GetIdentityVerificationReportsResponseBody200] -> ShowS
GetIdentityVerificationReportsResponseBody200 -> String
(Int -> GetIdentityVerificationReportsResponseBody200 -> ShowS)
-> (GetIdentityVerificationReportsResponseBody200 -> String)
-> ([GetIdentityVerificationReportsResponseBody200] -> ShowS)
-> Show GetIdentityVerificationReportsResponseBody200
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIdentityVerificationReportsResponseBody200] -> ShowS
$cshowList :: [GetIdentityVerificationReportsResponseBody200] -> ShowS
show :: GetIdentityVerificationReportsResponseBody200 -> String
$cshow :: GetIdentityVerificationReportsResponseBody200 -> String
showsPrec :: Int -> GetIdentityVerificationReportsResponseBody200 -> ShowS
$cshowsPrec :: Int -> GetIdentityVerificationReportsResponseBody200 -> ShowS
GHC.Show.Show,
GetIdentityVerificationReportsResponseBody200
-> GetIdentityVerificationReportsResponseBody200 -> Bool
(GetIdentityVerificationReportsResponseBody200
-> GetIdentityVerificationReportsResponseBody200 -> Bool)
-> (GetIdentityVerificationReportsResponseBody200
-> GetIdentityVerificationReportsResponseBody200 -> Bool)
-> Eq GetIdentityVerificationReportsResponseBody200
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIdentityVerificationReportsResponseBody200
-> GetIdentityVerificationReportsResponseBody200 -> Bool
$c/= :: GetIdentityVerificationReportsResponseBody200
-> GetIdentityVerificationReportsResponseBody200 -> Bool
== :: GetIdentityVerificationReportsResponseBody200
-> GetIdentityVerificationReportsResponseBody200 -> Bool
$c== :: GetIdentityVerificationReportsResponseBody200
-> GetIdentityVerificationReportsResponseBody200 -> Bool
GHC.Classes.Eq
)
instance Data.Aeson.Types.ToJSON.ToJSON GetIdentityVerificationReportsResponseBody200 where
toJSON :: GetIdentityVerificationReportsResponseBody200 -> Value
toJSON GetIdentityVerificationReportsResponseBody200
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"data" Text -> [Identity'verificationReport] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsResponseBody200
-> [Identity'verificationReport]
getIdentityVerificationReportsResponseBody200Data GetIdentityVerificationReportsResponseBody200
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"has_more" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsResponseBody200 -> Bool
getIdentityVerificationReportsResponseBody200HasMore GetIdentityVerificationReportsResponseBody200
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"url" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsResponseBody200 -> Text
getIdentityVerificationReportsResponseBody200Url GetIdentityVerificationReportsResponseBody200
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"object" Text -> Value -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= Text -> Value
Data.Aeson.Types.Internal.String Text
"list" Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
toEncoding :: GetIdentityVerificationReportsResponseBody200 -> Encoding
toEncoding GetIdentityVerificationReportsResponseBody200
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs ((Text
"data" Text -> [Identity'verificationReport] -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsResponseBody200
-> [Identity'verificationReport]
getIdentityVerificationReportsResponseBody200Data GetIdentityVerificationReportsResponseBody200
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"has_more" Text -> Bool -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsResponseBody200 -> Bool
getIdentityVerificationReportsResponseBody200HasMore GetIdentityVerificationReportsResponseBody200
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"url" Text -> Text -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= GetIdentityVerificationReportsResponseBody200 -> Text
getIdentityVerificationReportsResponseBody200Url GetIdentityVerificationReportsResponseBody200
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> (Text
"object" Text -> Value -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= Text -> Value
Data.Aeson.Types.Internal.String Text
"list"))))
instance Data.Aeson.Types.FromJSON.FromJSON GetIdentityVerificationReportsResponseBody200 where
parseJSON :: Value -> Parser GetIdentityVerificationReportsResponseBody200
parseJSON = String
-> (Object -> Parser GetIdentityVerificationReportsResponseBody200)
-> Value
-> Parser GetIdentityVerificationReportsResponseBody200
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"GetIdentityVerificationReportsResponseBody200" (\Object
obj -> ((([Identity'verificationReport]
-> Bool -> Text -> GetIdentityVerificationReportsResponseBody200)
-> Parser
([Identity'verificationReport]
-> Bool -> Text -> GetIdentityVerificationReportsResponseBody200)
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure [Identity'verificationReport]
-> Bool -> Text -> GetIdentityVerificationReportsResponseBody200
GetIdentityVerificationReportsResponseBody200 Parser
([Identity'verificationReport]
-> Bool -> Text -> GetIdentityVerificationReportsResponseBody200)
-> Parser [Identity'verificationReport]
-> Parser
(Bool -> Text -> GetIdentityVerificationReportsResponseBody200)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser [Identity'verificationReport]
forall a. FromJSON a => Object -> Text -> Parser a
Data.Aeson.Types.FromJSON..: Text
"data")) Parser
(Bool -> Text -> GetIdentityVerificationReportsResponseBody200)
-> Parser Bool
-> Parser (Text -> GetIdentityVerificationReportsResponseBody200)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser Bool
forall a. FromJSON a => Object -> Text -> Parser a
Data.Aeson.Types.FromJSON..: Text
"has_more")) Parser (Text -> GetIdentityVerificationReportsResponseBody200)
-> Parser Text
-> Parser GetIdentityVerificationReportsResponseBody200
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Data.Aeson.Types.FromJSON..: Text
"url"))
mkGetIdentityVerificationReportsResponseBody200 ::
[Identity'verificationReport] ->
GHC.Types.Bool ->
Data.Text.Internal.Text ->
GetIdentityVerificationReportsResponseBody200
mkGetIdentityVerificationReportsResponseBody200 :: [Identity'verificationReport]
-> Bool -> Text -> GetIdentityVerificationReportsResponseBody200
mkGetIdentityVerificationReportsResponseBody200 [Identity'verificationReport]
getIdentityVerificationReportsResponseBody200Data Bool
getIdentityVerificationReportsResponseBody200HasMore Text
getIdentityVerificationReportsResponseBody200Url =
GetIdentityVerificationReportsResponseBody200 :: [Identity'verificationReport]
-> Bool -> Text -> GetIdentityVerificationReportsResponseBody200
GetIdentityVerificationReportsResponseBody200
{ getIdentityVerificationReportsResponseBody200Data :: [Identity'verificationReport]
getIdentityVerificationReportsResponseBody200Data = [Identity'verificationReport]
getIdentityVerificationReportsResponseBody200Data,
getIdentityVerificationReportsResponseBody200HasMore :: Bool
getIdentityVerificationReportsResponseBody200HasMore = Bool
getIdentityVerificationReportsResponseBody200HasMore,
getIdentityVerificationReportsResponseBody200Url :: Text
getIdentityVerificationReportsResponseBody200Url = Text
getIdentityVerificationReportsResponseBody200Url
}