{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE OverloadedStrings #-}
module StripeAPI.Types.LegalEntityCompanyVerificationDocument where
import qualified Control.Monad.Fail
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.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 GHC.Base
import qualified GHC.Classes
import qualified GHC.Int
import qualified GHC.Show
import qualified GHC.Types
import qualified StripeAPI.Common
import StripeAPI.TypeAlias
import {-# SOURCE #-} StripeAPI.Types.File
import qualified Prelude as GHC.Integer.Type
import qualified Prelude as GHC.Maybe
data LegalEntityCompanyVerificationDocument = LegalEntityCompanyVerificationDocument
{
LegalEntityCompanyVerificationDocument
-> Maybe LegalEntityCompanyVerificationDocumentBack'Variants
legalEntityCompanyVerificationDocumentBack :: (GHC.Maybe.Maybe LegalEntityCompanyVerificationDocumentBack'Variants),
LegalEntityCompanyVerificationDocument -> Maybe Text
legalEntityCompanyVerificationDocumentDetails :: (GHC.Maybe.Maybe Data.Text.Internal.Text),
LegalEntityCompanyVerificationDocument -> Maybe Text
legalEntityCompanyVerificationDocumentDetailsCode :: (GHC.Maybe.Maybe Data.Text.Internal.Text),
LegalEntityCompanyVerificationDocument
-> Maybe LegalEntityCompanyVerificationDocumentFront'Variants
legalEntityCompanyVerificationDocumentFront :: (GHC.Maybe.Maybe LegalEntityCompanyVerificationDocumentFront'Variants)
}
deriving
( Int -> LegalEntityCompanyVerificationDocument -> ShowS
[LegalEntityCompanyVerificationDocument] -> ShowS
LegalEntityCompanyVerificationDocument -> String
(Int -> LegalEntityCompanyVerificationDocument -> ShowS)
-> (LegalEntityCompanyVerificationDocument -> String)
-> ([LegalEntityCompanyVerificationDocument] -> ShowS)
-> Show LegalEntityCompanyVerificationDocument
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LegalEntityCompanyVerificationDocument] -> ShowS
$cshowList :: [LegalEntityCompanyVerificationDocument] -> ShowS
show :: LegalEntityCompanyVerificationDocument -> String
$cshow :: LegalEntityCompanyVerificationDocument -> String
showsPrec :: Int -> LegalEntityCompanyVerificationDocument -> ShowS
$cshowsPrec :: Int -> LegalEntityCompanyVerificationDocument -> ShowS
GHC.Show.Show,
LegalEntityCompanyVerificationDocument
-> LegalEntityCompanyVerificationDocument -> Bool
(LegalEntityCompanyVerificationDocument
-> LegalEntityCompanyVerificationDocument -> Bool)
-> (LegalEntityCompanyVerificationDocument
-> LegalEntityCompanyVerificationDocument -> Bool)
-> Eq LegalEntityCompanyVerificationDocument
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LegalEntityCompanyVerificationDocument
-> LegalEntityCompanyVerificationDocument -> Bool
$c/= :: LegalEntityCompanyVerificationDocument
-> LegalEntityCompanyVerificationDocument -> Bool
== :: LegalEntityCompanyVerificationDocument
-> LegalEntityCompanyVerificationDocument -> Bool
$c== :: LegalEntityCompanyVerificationDocument
-> LegalEntityCompanyVerificationDocument -> Bool
GHC.Classes.Eq
)
instance Data.Aeson.Types.ToJSON.ToJSON LegalEntityCompanyVerificationDocument where
toJSON :: LegalEntityCompanyVerificationDocument -> Value
toJSON LegalEntityCompanyVerificationDocument
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"back" Text
-> Maybe LegalEntityCompanyVerificationDocumentBack'Variants
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= LegalEntityCompanyVerificationDocument
-> Maybe LegalEntityCompanyVerificationDocumentBack'Variants
legalEntityCompanyVerificationDocumentBack LegalEntityCompanyVerificationDocument
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"details" Text -> Maybe Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= LegalEntityCompanyVerificationDocument -> Maybe Text
legalEntityCompanyVerificationDocumentDetails LegalEntityCompanyVerificationDocument
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"details_code" Text -> Maybe Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= LegalEntityCompanyVerificationDocument -> Maybe Text
legalEntityCompanyVerificationDocumentDetailsCode LegalEntityCompanyVerificationDocument
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"front" Text
-> Maybe LegalEntityCompanyVerificationDocumentFront'Variants
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= LegalEntityCompanyVerificationDocument
-> Maybe LegalEntityCompanyVerificationDocumentFront'Variants
legalEntityCompanyVerificationDocumentFront LegalEntityCompanyVerificationDocument
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
toEncoding :: LegalEntityCompanyVerificationDocument -> Encoding
toEncoding LegalEntityCompanyVerificationDocument
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs ((Text
"back" Text
-> Maybe LegalEntityCompanyVerificationDocumentBack'Variants
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= LegalEntityCompanyVerificationDocument
-> Maybe LegalEntityCompanyVerificationDocumentBack'Variants
legalEntityCompanyVerificationDocumentBack LegalEntityCompanyVerificationDocument
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"details" Text -> Maybe Text -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= LegalEntityCompanyVerificationDocument -> Maybe Text
legalEntityCompanyVerificationDocumentDetails LegalEntityCompanyVerificationDocument
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"details_code" Text -> Maybe Text -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= LegalEntityCompanyVerificationDocument -> Maybe Text
legalEntityCompanyVerificationDocumentDetailsCode LegalEntityCompanyVerificationDocument
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> (Text
"front" Text
-> Maybe LegalEntityCompanyVerificationDocumentFront'Variants
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= LegalEntityCompanyVerificationDocument
-> Maybe LegalEntityCompanyVerificationDocumentFront'Variants
legalEntityCompanyVerificationDocumentFront LegalEntityCompanyVerificationDocument
obj))))
instance Data.Aeson.Types.FromJSON.FromJSON LegalEntityCompanyVerificationDocument where
parseJSON :: Value -> Parser LegalEntityCompanyVerificationDocument
parseJSON = String
-> (Object -> Parser LegalEntityCompanyVerificationDocument)
-> Value
-> Parser LegalEntityCompanyVerificationDocument
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"LegalEntityCompanyVerificationDocument" (\Object
obj -> ((((Maybe LegalEntityCompanyVerificationDocumentBack'Variants
-> Maybe Text
-> Maybe Text
-> Maybe LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocument)
-> Parser
(Maybe LegalEntityCompanyVerificationDocumentBack'Variants
-> Maybe Text
-> Maybe Text
-> Maybe LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocument)
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe LegalEntityCompanyVerificationDocumentBack'Variants
-> Maybe Text
-> Maybe Text
-> Maybe LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocument
LegalEntityCompanyVerificationDocument Parser
(Maybe LegalEntityCompanyVerificationDocumentBack'Variants
-> Maybe Text
-> Maybe Text
-> Maybe LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocument)
-> Parser
(Maybe LegalEntityCompanyVerificationDocumentBack'Variants)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocument)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
(Maybe LegalEntityCompanyVerificationDocumentBack'Variants)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"back")) Parser
(Maybe Text
-> Maybe Text
-> Maybe LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocument)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocument)
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
"details")) Parser
(Maybe Text
-> Maybe LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocument)
-> Parser (Maybe Text)
-> Parser
(Maybe LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocument)
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
"details_code")) Parser
(Maybe LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocument)
-> Parser
(Maybe LegalEntityCompanyVerificationDocumentFront'Variants)
-> Parser LegalEntityCompanyVerificationDocument
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
(Maybe LegalEntityCompanyVerificationDocumentFront'Variants)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"front"))
mkLegalEntityCompanyVerificationDocument :: LegalEntityCompanyVerificationDocument
mkLegalEntityCompanyVerificationDocument :: LegalEntityCompanyVerificationDocument
mkLegalEntityCompanyVerificationDocument =
LegalEntityCompanyVerificationDocument :: Maybe LegalEntityCompanyVerificationDocumentBack'Variants
-> Maybe Text
-> Maybe Text
-> Maybe LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocument
LegalEntityCompanyVerificationDocument
{ legalEntityCompanyVerificationDocumentBack :: Maybe LegalEntityCompanyVerificationDocumentBack'Variants
legalEntityCompanyVerificationDocumentBack = Maybe LegalEntityCompanyVerificationDocumentBack'Variants
forall a. Maybe a
GHC.Maybe.Nothing,
legalEntityCompanyVerificationDocumentDetails :: Maybe Text
legalEntityCompanyVerificationDocumentDetails = Maybe Text
forall a. Maybe a
GHC.Maybe.Nothing,
legalEntityCompanyVerificationDocumentDetailsCode :: Maybe Text
legalEntityCompanyVerificationDocumentDetailsCode = Maybe Text
forall a. Maybe a
GHC.Maybe.Nothing,
legalEntityCompanyVerificationDocumentFront :: Maybe LegalEntityCompanyVerificationDocumentFront'Variants
legalEntityCompanyVerificationDocumentFront = Maybe LegalEntityCompanyVerificationDocumentFront'Variants
forall a. Maybe a
GHC.Maybe.Nothing
}
data LegalEntityCompanyVerificationDocumentBack'Variants
= LegalEntityCompanyVerificationDocumentBack'Text Data.Text.Internal.Text
| LegalEntityCompanyVerificationDocumentBack'File File
deriving (Int -> LegalEntityCompanyVerificationDocumentBack'Variants -> ShowS
[LegalEntityCompanyVerificationDocumentBack'Variants] -> ShowS
LegalEntityCompanyVerificationDocumentBack'Variants -> String
(Int
-> LegalEntityCompanyVerificationDocumentBack'Variants -> ShowS)
-> (LegalEntityCompanyVerificationDocumentBack'Variants -> String)
-> ([LegalEntityCompanyVerificationDocumentBack'Variants] -> ShowS)
-> Show LegalEntityCompanyVerificationDocumentBack'Variants
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LegalEntityCompanyVerificationDocumentBack'Variants] -> ShowS
$cshowList :: [LegalEntityCompanyVerificationDocumentBack'Variants] -> ShowS
show :: LegalEntityCompanyVerificationDocumentBack'Variants -> String
$cshow :: LegalEntityCompanyVerificationDocumentBack'Variants -> String
showsPrec :: Int -> LegalEntityCompanyVerificationDocumentBack'Variants -> ShowS
$cshowsPrec :: Int -> LegalEntityCompanyVerificationDocumentBack'Variants -> ShowS
GHC.Show.Show, LegalEntityCompanyVerificationDocumentBack'Variants
-> LegalEntityCompanyVerificationDocumentBack'Variants -> Bool
(LegalEntityCompanyVerificationDocumentBack'Variants
-> LegalEntityCompanyVerificationDocumentBack'Variants -> Bool)
-> (LegalEntityCompanyVerificationDocumentBack'Variants
-> LegalEntityCompanyVerificationDocumentBack'Variants -> Bool)
-> Eq LegalEntityCompanyVerificationDocumentBack'Variants
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LegalEntityCompanyVerificationDocumentBack'Variants
-> LegalEntityCompanyVerificationDocumentBack'Variants -> Bool
$c/= :: LegalEntityCompanyVerificationDocumentBack'Variants
-> LegalEntityCompanyVerificationDocumentBack'Variants -> Bool
== :: LegalEntityCompanyVerificationDocumentBack'Variants
-> LegalEntityCompanyVerificationDocumentBack'Variants -> Bool
$c== :: LegalEntityCompanyVerificationDocumentBack'Variants
-> LegalEntityCompanyVerificationDocumentBack'Variants -> Bool
GHC.Classes.Eq)
instance Data.Aeson.Types.ToJSON.ToJSON LegalEntityCompanyVerificationDocumentBack'Variants where
toJSON :: LegalEntityCompanyVerificationDocumentBack'Variants -> Value
toJSON (LegalEntityCompanyVerificationDocumentBack'Text Text
a) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
a
toJSON (LegalEntityCompanyVerificationDocumentBack'File File
a) = File -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON File
a
instance Data.Aeson.Types.FromJSON.FromJSON LegalEntityCompanyVerificationDocumentBack'Variants where
parseJSON :: Value -> Parser LegalEntityCompanyVerificationDocumentBack'Variants
parseJSON Value
val = case (Text -> LegalEntityCompanyVerificationDocumentBack'Variants
LegalEntityCompanyVerificationDocumentBack'Text (Text -> LegalEntityCompanyVerificationDocumentBack'Variants)
-> Result Text
-> Result LegalEntityCompanyVerificationDocumentBack'Variants
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> Value -> Result Text
forall a. FromJSON a => Value -> Result a
Data.Aeson.Types.FromJSON.fromJSON Value
val) Result LegalEntityCompanyVerificationDocumentBack'Variants
-> Result LegalEntityCompanyVerificationDocumentBack'Variants
-> Result LegalEntityCompanyVerificationDocumentBack'Variants
forall (f :: * -> *) a. Alternative f => f a -> f a -> f a
GHC.Base.<|> ((File -> LegalEntityCompanyVerificationDocumentBack'Variants
LegalEntityCompanyVerificationDocumentBack'File (File -> LegalEntityCompanyVerificationDocumentBack'Variants)
-> Result File
-> Result LegalEntityCompanyVerificationDocumentBack'Variants
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> Value -> Result File
forall a. FromJSON a => Value -> Result a
Data.Aeson.Types.FromJSON.fromJSON Value
val) Result LegalEntityCompanyVerificationDocumentBack'Variants
-> Result LegalEntityCompanyVerificationDocumentBack'Variants
-> Result LegalEntityCompanyVerificationDocumentBack'Variants
forall (f :: * -> *) a. Alternative f => f a -> f a -> f a
GHC.Base.<|> String
-> Result LegalEntityCompanyVerificationDocumentBack'Variants
forall a. String -> Result a
Data.Aeson.Types.Internal.Error String
"No variant matched") of
Data.Aeson.Types.Internal.Success LegalEntityCompanyVerificationDocumentBack'Variants
a -> LegalEntityCompanyVerificationDocumentBack'Variants
-> Parser LegalEntityCompanyVerificationDocumentBack'Variants
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure LegalEntityCompanyVerificationDocumentBack'Variants
a
Data.Aeson.Types.Internal.Error String
a -> String
-> Parser LegalEntityCompanyVerificationDocumentBack'Variants
forall (m :: * -> *) a. MonadFail m => String -> m a
Control.Monad.Fail.fail String
a
data LegalEntityCompanyVerificationDocumentFront'Variants
= LegalEntityCompanyVerificationDocumentFront'Text Data.Text.Internal.Text
| LegalEntityCompanyVerificationDocumentFront'File File
deriving (Int
-> LegalEntityCompanyVerificationDocumentFront'Variants -> ShowS
[LegalEntityCompanyVerificationDocumentFront'Variants] -> ShowS
LegalEntityCompanyVerificationDocumentFront'Variants -> String
(Int
-> LegalEntityCompanyVerificationDocumentFront'Variants -> ShowS)
-> (LegalEntityCompanyVerificationDocumentFront'Variants -> String)
-> ([LegalEntityCompanyVerificationDocumentFront'Variants]
-> ShowS)
-> Show LegalEntityCompanyVerificationDocumentFront'Variants
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LegalEntityCompanyVerificationDocumentFront'Variants] -> ShowS
$cshowList :: [LegalEntityCompanyVerificationDocumentFront'Variants] -> ShowS
show :: LegalEntityCompanyVerificationDocumentFront'Variants -> String
$cshow :: LegalEntityCompanyVerificationDocumentFront'Variants -> String
showsPrec :: Int
-> LegalEntityCompanyVerificationDocumentFront'Variants -> ShowS
$cshowsPrec :: Int
-> LegalEntityCompanyVerificationDocumentFront'Variants -> ShowS
GHC.Show.Show, LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocumentFront'Variants -> Bool
(LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocumentFront'Variants -> Bool)
-> (LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocumentFront'Variants -> Bool)
-> Eq LegalEntityCompanyVerificationDocumentFront'Variants
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocumentFront'Variants -> Bool
$c/= :: LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocumentFront'Variants -> Bool
== :: LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocumentFront'Variants -> Bool
$c== :: LegalEntityCompanyVerificationDocumentFront'Variants
-> LegalEntityCompanyVerificationDocumentFront'Variants -> Bool
GHC.Classes.Eq)
instance Data.Aeson.Types.ToJSON.ToJSON LegalEntityCompanyVerificationDocumentFront'Variants where
toJSON :: LegalEntityCompanyVerificationDocumentFront'Variants -> Value
toJSON (LegalEntityCompanyVerificationDocumentFront'Text Text
a) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
a
toJSON (LegalEntityCompanyVerificationDocumentFront'File File
a) = File -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON File
a
instance Data.Aeson.Types.FromJSON.FromJSON LegalEntityCompanyVerificationDocumentFront'Variants where
parseJSON :: Value
-> Parser LegalEntityCompanyVerificationDocumentFront'Variants
parseJSON Value
val = case (Text -> LegalEntityCompanyVerificationDocumentFront'Variants
LegalEntityCompanyVerificationDocumentFront'Text (Text -> LegalEntityCompanyVerificationDocumentFront'Variants)
-> Result Text
-> Result LegalEntityCompanyVerificationDocumentFront'Variants
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> Value -> Result Text
forall a. FromJSON a => Value -> Result a
Data.Aeson.Types.FromJSON.fromJSON Value
val) Result LegalEntityCompanyVerificationDocumentFront'Variants
-> Result LegalEntityCompanyVerificationDocumentFront'Variants
-> Result LegalEntityCompanyVerificationDocumentFront'Variants
forall (f :: * -> *) a. Alternative f => f a -> f a -> f a
GHC.Base.<|> ((File -> LegalEntityCompanyVerificationDocumentFront'Variants
LegalEntityCompanyVerificationDocumentFront'File (File -> LegalEntityCompanyVerificationDocumentFront'Variants)
-> Result File
-> Result LegalEntityCompanyVerificationDocumentFront'Variants
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> Value -> Result File
forall a. FromJSON a => Value -> Result a
Data.Aeson.Types.FromJSON.fromJSON Value
val) Result LegalEntityCompanyVerificationDocumentFront'Variants
-> Result LegalEntityCompanyVerificationDocumentFront'Variants
-> Result LegalEntityCompanyVerificationDocumentFront'Variants
forall (f :: * -> *) a. Alternative f => f a -> f a -> f a
GHC.Base.<|> String
-> Result LegalEntityCompanyVerificationDocumentFront'Variants
forall a. String -> Result a
Data.Aeson.Types.Internal.Error String
"No variant matched") of
Data.Aeson.Types.Internal.Success LegalEntityCompanyVerificationDocumentFront'Variants
a -> LegalEntityCompanyVerificationDocumentFront'Variants
-> Parser LegalEntityCompanyVerificationDocumentFront'Variants
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure LegalEntityCompanyVerificationDocumentFront'Variants
a
Data.Aeson.Types.Internal.Error String
a -> String
-> Parser LegalEntityCompanyVerificationDocumentFront'Variants
forall (m :: * -> *) a. MonadFail m => String -> m a
Control.Monad.Fail.fail String
a