{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE OverloadedStrings #-}
module StripeAPI.Types.InvoicesPaymentSettings 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.InvoicePaymentMethodOptionsBancontact
import {-# SOURCE #-} StripeAPI.Types.InvoicePaymentMethodOptionsCard
import {-# SOURCE #-} StripeAPI.Types.InvoicesPaymentMethodOptions
import qualified Prelude as GHC.Integer.Type
import qualified Prelude as GHC.Maybe
data InvoicesPaymentSettings = InvoicesPaymentSettings
{
InvoicesPaymentSettings
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'
invoicesPaymentSettingsPaymentMethodOptions :: (GHC.Maybe.Maybe InvoicesPaymentSettingsPaymentMethodOptions'),
InvoicesPaymentSettings
-> Maybe [InvoicesPaymentSettingsPaymentMethodTypes']
invoicesPaymentSettingsPaymentMethodTypes :: (GHC.Maybe.Maybe ([InvoicesPaymentSettingsPaymentMethodTypes']))
}
deriving
( Int -> InvoicesPaymentSettings -> ShowS
[InvoicesPaymentSettings] -> ShowS
InvoicesPaymentSettings -> String
(Int -> InvoicesPaymentSettings -> ShowS)
-> (InvoicesPaymentSettings -> String)
-> ([InvoicesPaymentSettings] -> ShowS)
-> Show InvoicesPaymentSettings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InvoicesPaymentSettings] -> ShowS
$cshowList :: [InvoicesPaymentSettings] -> ShowS
show :: InvoicesPaymentSettings -> String
$cshow :: InvoicesPaymentSettings -> String
showsPrec :: Int -> InvoicesPaymentSettings -> ShowS
$cshowsPrec :: Int -> InvoicesPaymentSettings -> ShowS
GHC.Show.Show,
InvoicesPaymentSettings -> InvoicesPaymentSettings -> Bool
(InvoicesPaymentSettings -> InvoicesPaymentSettings -> Bool)
-> (InvoicesPaymentSettings -> InvoicesPaymentSettings -> Bool)
-> Eq InvoicesPaymentSettings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InvoicesPaymentSettings -> InvoicesPaymentSettings -> Bool
$c/= :: InvoicesPaymentSettings -> InvoicesPaymentSettings -> Bool
== :: InvoicesPaymentSettings -> InvoicesPaymentSettings -> Bool
$c== :: InvoicesPaymentSettings -> InvoicesPaymentSettings -> Bool
GHC.Classes.Eq
)
instance Data.Aeson.Types.ToJSON.ToJSON InvoicesPaymentSettings where
toJSON :: InvoicesPaymentSettings -> Value
toJSON InvoicesPaymentSettings
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"payment_method_options" Text -> Maybe InvoicesPaymentSettingsPaymentMethodOptions' -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= InvoicesPaymentSettings
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'
invoicesPaymentSettingsPaymentMethodOptions InvoicesPaymentSettings
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"payment_method_types" Text -> Maybe [InvoicesPaymentSettingsPaymentMethodTypes'] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= InvoicesPaymentSettings
-> Maybe [InvoicesPaymentSettingsPaymentMethodTypes']
invoicesPaymentSettingsPaymentMethodTypes InvoicesPaymentSettings
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
toEncoding :: InvoicesPaymentSettings -> Encoding
toEncoding InvoicesPaymentSettings
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs ((Text
"payment_method_options" Text
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions' -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= InvoicesPaymentSettings
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'
invoicesPaymentSettingsPaymentMethodOptions InvoicesPaymentSettings
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> (Text
"payment_method_types" Text
-> Maybe [InvoicesPaymentSettingsPaymentMethodTypes'] -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= InvoicesPaymentSettings
-> Maybe [InvoicesPaymentSettingsPaymentMethodTypes']
invoicesPaymentSettingsPaymentMethodTypes InvoicesPaymentSettings
obj))
instance Data.Aeson.Types.FromJSON.FromJSON InvoicesPaymentSettings where
parseJSON :: Value -> Parser InvoicesPaymentSettings
parseJSON = String
-> (Object -> Parser InvoicesPaymentSettings)
-> Value
-> Parser InvoicesPaymentSettings
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"InvoicesPaymentSettings" (\Object
obj -> ((Maybe InvoicesPaymentSettingsPaymentMethodOptions'
-> Maybe [InvoicesPaymentSettingsPaymentMethodTypes']
-> InvoicesPaymentSettings)
-> Parser
(Maybe InvoicesPaymentSettingsPaymentMethodOptions'
-> Maybe [InvoicesPaymentSettingsPaymentMethodTypes']
-> InvoicesPaymentSettings)
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe InvoicesPaymentSettingsPaymentMethodOptions'
-> Maybe [InvoicesPaymentSettingsPaymentMethodTypes']
-> InvoicesPaymentSettings
InvoicesPaymentSettings Parser
(Maybe InvoicesPaymentSettingsPaymentMethodOptions'
-> Maybe [InvoicesPaymentSettingsPaymentMethodTypes']
-> InvoicesPaymentSettings)
-> Parser (Maybe InvoicesPaymentSettingsPaymentMethodOptions')
-> Parser
(Maybe [InvoicesPaymentSettingsPaymentMethodTypes']
-> InvoicesPaymentSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser (Maybe InvoicesPaymentSettingsPaymentMethodOptions')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"payment_method_options")) Parser
(Maybe [InvoicesPaymentSettingsPaymentMethodTypes']
-> InvoicesPaymentSettings)
-> Parser (Maybe [InvoicesPaymentSettingsPaymentMethodTypes'])
-> Parser InvoicesPaymentSettings
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser (Maybe [InvoicesPaymentSettingsPaymentMethodTypes'])
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"payment_method_types"))
mkInvoicesPaymentSettings :: InvoicesPaymentSettings
mkInvoicesPaymentSettings :: InvoicesPaymentSettings
mkInvoicesPaymentSettings =
InvoicesPaymentSettings :: Maybe InvoicesPaymentSettingsPaymentMethodOptions'
-> Maybe [InvoicesPaymentSettingsPaymentMethodTypes']
-> InvoicesPaymentSettings
InvoicesPaymentSettings
{ invoicesPaymentSettingsPaymentMethodOptions :: Maybe InvoicesPaymentSettingsPaymentMethodOptions'
invoicesPaymentSettingsPaymentMethodOptions = Maybe InvoicesPaymentSettingsPaymentMethodOptions'
forall a. Maybe a
GHC.Maybe.Nothing,
invoicesPaymentSettingsPaymentMethodTypes :: Maybe [InvoicesPaymentSettingsPaymentMethodTypes']
invoicesPaymentSettingsPaymentMethodTypes = Maybe [InvoicesPaymentSettingsPaymentMethodTypes']
forall a. Maybe a
GHC.Maybe.Nothing
}
data InvoicesPaymentSettingsPaymentMethodOptions' = InvoicesPaymentSettingsPaymentMethodOptions'
{
InvoicesPaymentSettingsPaymentMethodOptions'
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
invoicesPaymentSettingsPaymentMethodOptions'Bancontact :: (GHC.Maybe.Maybe InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'),
InvoicesPaymentSettingsPaymentMethodOptions'
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card'
invoicesPaymentSettingsPaymentMethodOptions'Card :: (GHC.Maybe.Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card')
}
deriving
( Int -> InvoicesPaymentSettingsPaymentMethodOptions' -> ShowS
[InvoicesPaymentSettingsPaymentMethodOptions'] -> ShowS
InvoicesPaymentSettingsPaymentMethodOptions' -> String
(Int -> InvoicesPaymentSettingsPaymentMethodOptions' -> ShowS)
-> (InvoicesPaymentSettingsPaymentMethodOptions' -> String)
-> ([InvoicesPaymentSettingsPaymentMethodOptions'] -> ShowS)
-> Show InvoicesPaymentSettingsPaymentMethodOptions'
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InvoicesPaymentSettingsPaymentMethodOptions'] -> ShowS
$cshowList :: [InvoicesPaymentSettingsPaymentMethodOptions'] -> ShowS
show :: InvoicesPaymentSettingsPaymentMethodOptions' -> String
$cshow :: InvoicesPaymentSettingsPaymentMethodOptions' -> String
showsPrec :: Int -> InvoicesPaymentSettingsPaymentMethodOptions' -> ShowS
$cshowsPrec :: Int -> InvoicesPaymentSettingsPaymentMethodOptions' -> ShowS
GHC.Show.Show,
InvoicesPaymentSettingsPaymentMethodOptions'
-> InvoicesPaymentSettingsPaymentMethodOptions' -> Bool
(InvoicesPaymentSettingsPaymentMethodOptions'
-> InvoicesPaymentSettingsPaymentMethodOptions' -> Bool)
-> (InvoicesPaymentSettingsPaymentMethodOptions'
-> InvoicesPaymentSettingsPaymentMethodOptions' -> Bool)
-> Eq InvoicesPaymentSettingsPaymentMethodOptions'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InvoicesPaymentSettingsPaymentMethodOptions'
-> InvoicesPaymentSettingsPaymentMethodOptions' -> Bool
$c/= :: InvoicesPaymentSettingsPaymentMethodOptions'
-> InvoicesPaymentSettingsPaymentMethodOptions' -> Bool
== :: InvoicesPaymentSettingsPaymentMethodOptions'
-> InvoicesPaymentSettingsPaymentMethodOptions' -> Bool
$c== :: InvoicesPaymentSettingsPaymentMethodOptions'
-> InvoicesPaymentSettingsPaymentMethodOptions' -> Bool
GHC.Classes.Eq
)
instance Data.Aeson.Types.ToJSON.ToJSON InvoicesPaymentSettingsPaymentMethodOptions' where
toJSON :: InvoicesPaymentSettingsPaymentMethodOptions' -> Value
toJSON InvoicesPaymentSettingsPaymentMethodOptions'
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"bancontact" Text
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= InvoicesPaymentSettingsPaymentMethodOptions'
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
invoicesPaymentSettingsPaymentMethodOptions'Bancontact InvoicesPaymentSettingsPaymentMethodOptions'
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"card" Text
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card' -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= InvoicesPaymentSettingsPaymentMethodOptions'
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card'
invoicesPaymentSettingsPaymentMethodOptions'Card InvoicesPaymentSettingsPaymentMethodOptions'
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
toEncoding :: InvoicesPaymentSettingsPaymentMethodOptions' -> Encoding
toEncoding InvoicesPaymentSettingsPaymentMethodOptions'
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs ((Text
"bancontact" Text
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= InvoicesPaymentSettingsPaymentMethodOptions'
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
invoicesPaymentSettingsPaymentMethodOptions'Bancontact InvoicesPaymentSettingsPaymentMethodOptions'
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> (Text
"card" Text
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= InvoicesPaymentSettingsPaymentMethodOptions'
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card'
invoicesPaymentSettingsPaymentMethodOptions'Card InvoicesPaymentSettingsPaymentMethodOptions'
obj))
instance Data.Aeson.Types.FromJSON.FromJSON InvoicesPaymentSettingsPaymentMethodOptions' where
parseJSON :: Value -> Parser InvoicesPaymentSettingsPaymentMethodOptions'
parseJSON = String
-> (Object -> Parser InvoicesPaymentSettingsPaymentMethodOptions')
-> Value
-> Parser InvoicesPaymentSettingsPaymentMethodOptions'
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"InvoicesPaymentSettingsPaymentMethodOptions'" (\Object
obj -> ((Maybe InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> InvoicesPaymentSettingsPaymentMethodOptions')
-> Parser
(Maybe InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> InvoicesPaymentSettingsPaymentMethodOptions')
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> InvoicesPaymentSettingsPaymentMethodOptions'
InvoicesPaymentSettingsPaymentMethodOptions' Parser
(Maybe InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> InvoicesPaymentSettingsPaymentMethodOptions')
-> Parser
(Maybe InvoicesPaymentSettingsPaymentMethodOptions'Bancontact')
-> Parser
(Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> InvoicesPaymentSettingsPaymentMethodOptions')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
(Maybe InvoicesPaymentSettingsPaymentMethodOptions'Bancontact')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"bancontact")) Parser
(Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> InvoicesPaymentSettingsPaymentMethodOptions')
-> Parser (Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card')
-> Parser InvoicesPaymentSettingsPaymentMethodOptions'
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser (Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"card"))
mkInvoicesPaymentSettingsPaymentMethodOptions' :: InvoicesPaymentSettingsPaymentMethodOptions'
mkInvoicesPaymentSettingsPaymentMethodOptions' :: InvoicesPaymentSettingsPaymentMethodOptions'
mkInvoicesPaymentSettingsPaymentMethodOptions' =
InvoicesPaymentSettingsPaymentMethodOptions' :: Maybe InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> InvoicesPaymentSettingsPaymentMethodOptions'
InvoicesPaymentSettingsPaymentMethodOptions'
{ invoicesPaymentSettingsPaymentMethodOptions'Bancontact :: Maybe InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
invoicesPaymentSettingsPaymentMethodOptions'Bancontact = Maybe InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
forall a. Maybe a
GHC.Maybe.Nothing,
invoicesPaymentSettingsPaymentMethodOptions'Card :: Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card'
invoicesPaymentSettingsPaymentMethodOptions'Card = Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card'
forall a. Maybe a
GHC.Maybe.Nothing
}
data InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' = InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
{
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
invoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage :: (GHC.Maybe.Maybe InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage')
}
deriving
( Int
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' -> ShowS
[InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'] -> ShowS
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' -> String
(Int
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> ShowS)
-> (InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> String)
-> ([InvoicesPaymentSettingsPaymentMethodOptions'Bancontact']
-> ShowS)
-> Show InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'] -> ShowS
$cshowList :: [InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'] -> ShowS
show :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' -> String
$cshow :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' -> String
showsPrec :: Int
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' -> ShowS
$cshowsPrec :: Int
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' -> ShowS
GHC.Show.Show,
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' -> Bool
(InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' -> Bool)
-> (InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' -> Bool)
-> Eq InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' -> Bool
$c/= :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' -> Bool
== :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' -> Bool
$c== :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' -> Bool
GHC.Classes.Eq
)
instance Data.Aeson.Types.ToJSON.ToJSON InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' where
toJSON :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' -> Value
toJSON InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"preferred_language" Text
-> Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
invoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
toEncoding :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' -> Encoding
toEncoding InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs (Text
"preferred_language" Text
-> Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
-> Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
invoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
obj)
instance Data.Aeson.Types.FromJSON.FromJSON InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' where
parseJSON :: Value
-> Parser InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
parseJSON = String
-> (Object
-> Parser InvoicesPaymentSettingsPaymentMethodOptions'Bancontact')
-> Value
-> Parser InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'" (\Object
obj -> (Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact')
-> Parser
(Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact')
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' Parser
(Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact')
-> Parser
(Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage')
-> Parser InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
(Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"preferred_language"))
mkInvoicesPaymentSettingsPaymentMethodOptions'Bancontact' :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
mkInvoicesPaymentSettingsPaymentMethodOptions'Bancontact' :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
mkInvoicesPaymentSettingsPaymentMethodOptions'Bancontact' = InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' :: Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact' {invoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage :: Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
invoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage = Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
forall a. Maybe a
GHC.Maybe.Nothing}
data InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
=
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'Other Data.Aeson.Types.Internal.Value
|
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'Typed Data.Text.Internal.Text
|
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'EnumDe
|
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'EnumEn
|
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'EnumFr
|
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'EnumNl
deriving (Int
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> ShowS
[InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage']
-> ShowS
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> String
(Int
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> ShowS)
-> (InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> String)
-> ([InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage']
-> ShowS)
-> Show
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage']
-> ShowS
$cshowList :: [InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage']
-> ShowS
show :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> String
$cshow :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> String
showsPrec :: Int
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> ShowS
$cshowsPrec :: Int
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> ShowS
GHC.Show.Show, InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> Bool
(InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> Bool)
-> (InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> Bool)
-> Eq
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> Bool
$c/= :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> Bool
== :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> Bool
$c== :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> Bool
GHC.Classes.Eq)
instance Data.Aeson.Types.ToJSON.ToJSON InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage' where
toJSON :: InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> Value
toJSON (InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'Other Value
val) = Value
val
toJSON (InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'Typed Text
val) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
val
toJSON (InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'EnumDe) = Value
"de"
toJSON (InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'EnumEn) = Value
"en"
toJSON (InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'EnumFr) = Value
"fr"
toJSON (InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'EnumNl) = Value
"nl"
instance Data.Aeson.Types.FromJSON.FromJSON InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage' where
parseJSON :: Value
-> Parser
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
parseJSON Value
val =
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
-> Parser
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
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
"de" -> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'EnumDe
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"en" -> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'EnumEn
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"fr" -> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'EnumFr
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"nl" -> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'EnumNl
| Bool
GHC.Base.otherwise -> Value
-> InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'
InvoicesPaymentSettingsPaymentMethodOptions'Bancontact'PreferredLanguage'Other Value
val
)
data InvoicesPaymentSettingsPaymentMethodOptions'Card' = InvoicesPaymentSettingsPaymentMethodOptions'Card'
{
InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
invoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure :: (GHC.Maybe.Maybe InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure')
}
deriving
( Int -> InvoicesPaymentSettingsPaymentMethodOptions'Card' -> ShowS
[InvoicesPaymentSettingsPaymentMethodOptions'Card'] -> ShowS
InvoicesPaymentSettingsPaymentMethodOptions'Card' -> String
(Int -> InvoicesPaymentSettingsPaymentMethodOptions'Card' -> ShowS)
-> (InvoicesPaymentSettingsPaymentMethodOptions'Card' -> String)
-> ([InvoicesPaymentSettingsPaymentMethodOptions'Card'] -> ShowS)
-> Show InvoicesPaymentSettingsPaymentMethodOptions'Card'
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InvoicesPaymentSettingsPaymentMethodOptions'Card'] -> ShowS
$cshowList :: [InvoicesPaymentSettingsPaymentMethodOptions'Card'] -> ShowS
show :: InvoicesPaymentSettingsPaymentMethodOptions'Card' -> String
$cshow :: InvoicesPaymentSettingsPaymentMethodOptions'Card' -> String
showsPrec :: Int -> InvoicesPaymentSettingsPaymentMethodOptions'Card' -> ShowS
$cshowsPrec :: Int -> InvoicesPaymentSettingsPaymentMethodOptions'Card' -> ShowS
GHC.Show.Show,
InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card' -> Bool
(InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card' -> Bool)
-> (InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card' -> Bool)
-> Eq InvoicesPaymentSettingsPaymentMethodOptions'Card'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card' -> Bool
$c/= :: InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card' -> Bool
== :: InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card' -> Bool
$c== :: InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card' -> Bool
GHC.Classes.Eq
)
instance Data.Aeson.Types.ToJSON.ToJSON InvoicesPaymentSettingsPaymentMethodOptions'Card' where
toJSON :: InvoicesPaymentSettingsPaymentMethodOptions'Card' -> Value
toJSON InvoicesPaymentSettingsPaymentMethodOptions'Card'
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"request_three_d_secure" Text
-> Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
invoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure InvoicesPaymentSettingsPaymentMethodOptions'Card'
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
toEncoding :: InvoicesPaymentSettingsPaymentMethodOptions'Card' -> Encoding
toEncoding InvoicesPaymentSettingsPaymentMethodOptions'Card'
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs (Text
"request_three_d_secure" Text
-> Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= InvoicesPaymentSettingsPaymentMethodOptions'Card'
-> Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
invoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure InvoicesPaymentSettingsPaymentMethodOptions'Card'
obj)
instance Data.Aeson.Types.FromJSON.FromJSON InvoicesPaymentSettingsPaymentMethodOptions'Card' where
parseJSON :: Value -> Parser InvoicesPaymentSettingsPaymentMethodOptions'Card'
parseJSON = String
-> (Object
-> Parser InvoicesPaymentSettingsPaymentMethodOptions'Card')
-> Value
-> Parser InvoicesPaymentSettingsPaymentMethodOptions'Card'
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"InvoicesPaymentSettingsPaymentMethodOptions'Card'" (\Object
obj -> (Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card')
-> Parser
(Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card')
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card'
InvoicesPaymentSettingsPaymentMethodOptions'Card' Parser
(Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card')
-> Parser
(Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure')
-> Parser InvoicesPaymentSettingsPaymentMethodOptions'Card'
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
(Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"request_three_d_secure"))
mkInvoicesPaymentSettingsPaymentMethodOptions'Card' :: InvoicesPaymentSettingsPaymentMethodOptions'Card'
mkInvoicesPaymentSettingsPaymentMethodOptions'Card' :: InvoicesPaymentSettingsPaymentMethodOptions'Card'
mkInvoicesPaymentSettingsPaymentMethodOptions'Card' = InvoicesPaymentSettingsPaymentMethodOptions'Card' :: Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card'
InvoicesPaymentSettingsPaymentMethodOptions'Card' {invoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure :: Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
invoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure = Maybe
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
forall a. Maybe a
GHC.Maybe.Nothing}
data InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
=
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'Other Data.Aeson.Types.Internal.Value
|
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'Typed Data.Text.Internal.Text
|
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'EnumAny
|
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'EnumAutomatic
deriving (Int
-> InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> ShowS
[InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure']
-> ShowS
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> String
(Int
-> InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> ShowS)
-> (InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> String)
-> ([InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure']
-> ShowS)
-> Show
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure']
-> ShowS
$cshowList :: [InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure']
-> ShowS
show :: InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> String
$cshow :: InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> String
showsPrec :: Int
-> InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> ShowS
$cshowsPrec :: Int
-> InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> ShowS
GHC.Show.Show, InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> Bool
(InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> Bool)
-> (InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> Bool)
-> Eq
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> Bool
$c/= :: InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> Bool
== :: InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> Bool
$c== :: InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> Bool
GHC.Classes.Eq)
instance Data.Aeson.Types.ToJSON.ToJSON InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure' where
toJSON :: InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> Value
toJSON (InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'Other Value
val) = Value
val
toJSON (InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'Typed Text
val) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
val
toJSON (InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'EnumAny) = Value
"any"
toJSON (InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'EnumAutomatic) = Value
"automatic"
instance Data.Aeson.Types.FromJSON.FromJSON InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure' where
parseJSON :: Value
-> Parser
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
parseJSON Value
val =
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
-> Parser
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
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
"any" -> InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'EnumAny
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"automatic" -> InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'EnumAutomatic
| Bool
GHC.Base.otherwise -> Value
-> InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'
InvoicesPaymentSettingsPaymentMethodOptions'Card'RequestThreeDSecure'Other Value
val
)
data InvoicesPaymentSettingsPaymentMethodTypes'
=
InvoicesPaymentSettingsPaymentMethodTypes'Other Data.Aeson.Types.Internal.Value
|
InvoicesPaymentSettingsPaymentMethodTypes'Typed Data.Text.Internal.Text
|
InvoicesPaymentSettingsPaymentMethodTypes'EnumAchCreditTransfer
|
InvoicesPaymentSettingsPaymentMethodTypes'EnumAchDebit
|
InvoicesPaymentSettingsPaymentMethodTypes'EnumAuBecsDebit
|
InvoicesPaymentSettingsPaymentMethodTypes'EnumBacsDebit
|
InvoicesPaymentSettingsPaymentMethodTypes'EnumBancontact
|
InvoicesPaymentSettingsPaymentMethodTypes'EnumCard
|
InvoicesPaymentSettingsPaymentMethodTypes'EnumFpx
|
InvoicesPaymentSettingsPaymentMethodTypes'EnumGiropay
|
InvoicesPaymentSettingsPaymentMethodTypes'EnumIdeal
|
InvoicesPaymentSettingsPaymentMethodTypes'EnumSepaDebit
|
InvoicesPaymentSettingsPaymentMethodTypes'EnumSofort
deriving (Int -> InvoicesPaymentSettingsPaymentMethodTypes' -> ShowS
[InvoicesPaymentSettingsPaymentMethodTypes'] -> ShowS
InvoicesPaymentSettingsPaymentMethodTypes' -> String
(Int -> InvoicesPaymentSettingsPaymentMethodTypes' -> ShowS)
-> (InvoicesPaymentSettingsPaymentMethodTypes' -> String)
-> ([InvoicesPaymentSettingsPaymentMethodTypes'] -> ShowS)
-> Show InvoicesPaymentSettingsPaymentMethodTypes'
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InvoicesPaymentSettingsPaymentMethodTypes'] -> ShowS
$cshowList :: [InvoicesPaymentSettingsPaymentMethodTypes'] -> ShowS
show :: InvoicesPaymentSettingsPaymentMethodTypes' -> String
$cshow :: InvoicesPaymentSettingsPaymentMethodTypes' -> String
showsPrec :: Int -> InvoicesPaymentSettingsPaymentMethodTypes' -> ShowS
$cshowsPrec :: Int -> InvoicesPaymentSettingsPaymentMethodTypes' -> ShowS
GHC.Show.Show, InvoicesPaymentSettingsPaymentMethodTypes'
-> InvoicesPaymentSettingsPaymentMethodTypes' -> Bool
(InvoicesPaymentSettingsPaymentMethodTypes'
-> InvoicesPaymentSettingsPaymentMethodTypes' -> Bool)
-> (InvoicesPaymentSettingsPaymentMethodTypes'
-> InvoicesPaymentSettingsPaymentMethodTypes' -> Bool)
-> Eq InvoicesPaymentSettingsPaymentMethodTypes'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InvoicesPaymentSettingsPaymentMethodTypes'
-> InvoicesPaymentSettingsPaymentMethodTypes' -> Bool
$c/= :: InvoicesPaymentSettingsPaymentMethodTypes'
-> InvoicesPaymentSettingsPaymentMethodTypes' -> Bool
== :: InvoicesPaymentSettingsPaymentMethodTypes'
-> InvoicesPaymentSettingsPaymentMethodTypes' -> Bool
$c== :: InvoicesPaymentSettingsPaymentMethodTypes'
-> InvoicesPaymentSettingsPaymentMethodTypes' -> Bool
GHC.Classes.Eq)
instance Data.Aeson.Types.ToJSON.ToJSON InvoicesPaymentSettingsPaymentMethodTypes' where
toJSON :: InvoicesPaymentSettingsPaymentMethodTypes' -> Value
toJSON (InvoicesPaymentSettingsPaymentMethodTypes'Other Value
val) = Value
val
toJSON (InvoicesPaymentSettingsPaymentMethodTypes'Typed Text
val) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
val
toJSON (InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumAchCreditTransfer) = Value
"ach_credit_transfer"
toJSON (InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumAchDebit) = Value
"ach_debit"
toJSON (InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumAuBecsDebit) = Value
"au_becs_debit"
toJSON (InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumBacsDebit) = Value
"bacs_debit"
toJSON (InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumBancontact) = Value
"bancontact"
toJSON (InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumCard) = Value
"card"
toJSON (InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumFpx) = Value
"fpx"
toJSON (InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumGiropay) = Value
"giropay"
toJSON (InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumIdeal) = Value
"ideal"
toJSON (InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumSepaDebit) = Value
"sepa_debit"
toJSON (InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumSofort) = Value
"sofort"
instance Data.Aeson.Types.FromJSON.FromJSON InvoicesPaymentSettingsPaymentMethodTypes' where
parseJSON :: Value -> Parser InvoicesPaymentSettingsPaymentMethodTypes'
parseJSON Value
val =
InvoicesPaymentSettingsPaymentMethodTypes'
-> Parser InvoicesPaymentSettingsPaymentMethodTypes'
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
"ach_credit_transfer" -> InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumAchCreditTransfer
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"ach_debit" -> InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumAchDebit
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"au_becs_debit" -> InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumAuBecsDebit
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"bacs_debit" -> InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumBacsDebit
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"bancontact" -> InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumBancontact
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"card" -> InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumCard
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"fpx" -> InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumFpx
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"giropay" -> InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumGiropay
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"ideal" -> InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumIdeal
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"sepa_debit" -> InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumSepaDebit
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"sofort" -> InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'EnumSofort
| Bool
GHC.Base.otherwise -> Value -> InvoicesPaymentSettingsPaymentMethodTypes'
InvoicesPaymentSettingsPaymentMethodTypes'Other Value
val
)