{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE OverloadedStrings #-}
module StripeAPI.Types.PaymentMethodEps 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 qualified Prelude as GHC.Integer.Type
import qualified Prelude as GHC.Maybe
data PaymentMethodEps = PaymentMethodEps
{
PaymentMethodEps -> Maybe PaymentMethodEpsBank'
paymentMethodEpsBank :: (GHC.Maybe.Maybe PaymentMethodEpsBank')
}
deriving
( Int -> PaymentMethodEps -> ShowS
[PaymentMethodEps] -> ShowS
PaymentMethodEps -> String
(Int -> PaymentMethodEps -> ShowS)
-> (PaymentMethodEps -> String)
-> ([PaymentMethodEps] -> ShowS)
-> Show PaymentMethodEps
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PaymentMethodEps] -> ShowS
$cshowList :: [PaymentMethodEps] -> ShowS
show :: PaymentMethodEps -> String
$cshow :: PaymentMethodEps -> String
showsPrec :: Int -> PaymentMethodEps -> ShowS
$cshowsPrec :: Int -> PaymentMethodEps -> ShowS
GHC.Show.Show,
PaymentMethodEps -> PaymentMethodEps -> Bool
(PaymentMethodEps -> PaymentMethodEps -> Bool)
-> (PaymentMethodEps -> PaymentMethodEps -> Bool)
-> Eq PaymentMethodEps
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PaymentMethodEps -> PaymentMethodEps -> Bool
$c/= :: PaymentMethodEps -> PaymentMethodEps -> Bool
== :: PaymentMethodEps -> PaymentMethodEps -> Bool
$c== :: PaymentMethodEps -> PaymentMethodEps -> Bool
GHC.Classes.Eq
)
instance Data.Aeson.Types.ToJSON.ToJSON PaymentMethodEps where
toJSON :: PaymentMethodEps -> Value
toJSON PaymentMethodEps
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"bank" Text -> Maybe PaymentMethodEpsBank' -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PaymentMethodEps -> Maybe PaymentMethodEpsBank'
paymentMethodEpsBank PaymentMethodEps
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
toEncoding :: PaymentMethodEps -> Encoding
toEncoding PaymentMethodEps
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs (Text
"bank" Text -> Maybe PaymentMethodEpsBank' -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PaymentMethodEps -> Maybe PaymentMethodEpsBank'
paymentMethodEpsBank PaymentMethodEps
obj)
instance Data.Aeson.Types.FromJSON.FromJSON PaymentMethodEps where
parseJSON :: Value -> Parser PaymentMethodEps
parseJSON = String
-> (Object -> Parser PaymentMethodEps)
-> Value
-> Parser PaymentMethodEps
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"PaymentMethodEps" (\Object
obj -> (Maybe PaymentMethodEpsBank' -> PaymentMethodEps)
-> Parser (Maybe PaymentMethodEpsBank' -> PaymentMethodEps)
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe PaymentMethodEpsBank' -> PaymentMethodEps
PaymentMethodEps Parser (Maybe PaymentMethodEpsBank' -> PaymentMethodEps)
-> Parser (Maybe PaymentMethodEpsBank') -> Parser PaymentMethodEps
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser (Maybe PaymentMethodEpsBank')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"bank"))
mkPaymentMethodEps :: PaymentMethodEps
mkPaymentMethodEps :: PaymentMethodEps
mkPaymentMethodEps = PaymentMethodEps :: Maybe PaymentMethodEpsBank' -> PaymentMethodEps
PaymentMethodEps {paymentMethodEpsBank :: Maybe PaymentMethodEpsBank'
paymentMethodEpsBank = Maybe PaymentMethodEpsBank'
forall a. Maybe a
GHC.Maybe.Nothing}
data PaymentMethodEpsBank'
=
PaymentMethodEpsBank'Other Data.Aeson.Types.Internal.Value
|
PaymentMethodEpsBank'Typed Data.Text.Internal.Text
|
PaymentMethodEpsBank'EnumArzteUndApothekerBank
|
PaymentMethodEpsBank'EnumAustrianAnadiBankAg
|
PaymentMethodEpsBank'EnumBankAustria
|
PaymentMethodEpsBank'EnumBankhausCarlSpangler
|
PaymentMethodEpsBank'EnumBankhausSchelhammerUndSchatteraAg
|
PaymentMethodEpsBank'EnumBawagPskAg
|
PaymentMethodEpsBank'EnumBksBankAg
|
PaymentMethodEpsBank'EnumBrullKallmusBankAg
|
PaymentMethodEpsBank'EnumBtvVierLanderBank
|
PaymentMethodEpsBank'EnumCapitalBankGraweGruppeAg
|
PaymentMethodEpsBank'EnumDolomitenbank
|
PaymentMethodEpsBank'EnumEasybankAg
|
PaymentMethodEpsBank'EnumErsteBankUndSparkassen
|
PaymentMethodEpsBank'EnumHypoAlpeadriabankInternationalAg
|
PaymentMethodEpsBank'EnumHypoBankBurgenlandAktiengesellschaft
|
PaymentMethodEpsBank'EnumHypoNoeLbFurNiederosterreichUWien
|
PaymentMethodEpsBank'EnumHypoOberosterreichSalzburgSteiermark
|
PaymentMethodEpsBank'EnumHypoTirolBankAg
|
PaymentMethodEpsBank'EnumHypoVorarlbergBankAg
|
PaymentMethodEpsBank'EnumMarchfelderBank
|
PaymentMethodEpsBank'EnumOberbankAg
|
PaymentMethodEpsBank'EnumRaiffeisenBankengruppeOsterreich
|
PaymentMethodEpsBank'EnumSchoellerbankAg
|
PaymentMethodEpsBank'EnumSpardaBankWien
|
PaymentMethodEpsBank'EnumVolksbankGruppe
|
PaymentMethodEpsBank'EnumVolkskreditbankAg
|
PaymentMethodEpsBank'EnumVrBankBraunau
deriving (Int -> PaymentMethodEpsBank' -> ShowS
[PaymentMethodEpsBank'] -> ShowS
PaymentMethodEpsBank' -> String
(Int -> PaymentMethodEpsBank' -> ShowS)
-> (PaymentMethodEpsBank' -> String)
-> ([PaymentMethodEpsBank'] -> ShowS)
-> Show PaymentMethodEpsBank'
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PaymentMethodEpsBank'] -> ShowS
$cshowList :: [PaymentMethodEpsBank'] -> ShowS
show :: PaymentMethodEpsBank' -> String
$cshow :: PaymentMethodEpsBank' -> String
showsPrec :: Int -> PaymentMethodEpsBank' -> ShowS
$cshowsPrec :: Int -> PaymentMethodEpsBank' -> ShowS
GHC.Show.Show, PaymentMethodEpsBank' -> PaymentMethodEpsBank' -> Bool
(PaymentMethodEpsBank' -> PaymentMethodEpsBank' -> Bool)
-> (PaymentMethodEpsBank' -> PaymentMethodEpsBank' -> Bool)
-> Eq PaymentMethodEpsBank'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PaymentMethodEpsBank' -> PaymentMethodEpsBank' -> Bool
$c/= :: PaymentMethodEpsBank' -> PaymentMethodEpsBank' -> Bool
== :: PaymentMethodEpsBank' -> PaymentMethodEpsBank' -> Bool
$c== :: PaymentMethodEpsBank' -> PaymentMethodEpsBank' -> Bool
GHC.Classes.Eq)
instance Data.Aeson.Types.ToJSON.ToJSON PaymentMethodEpsBank' where
toJSON :: PaymentMethodEpsBank' -> Value
toJSON (PaymentMethodEpsBank'Other Value
val) = Value
val
toJSON (PaymentMethodEpsBank'Typed Text
val) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
val
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumArzteUndApothekerBank) = Value
"arzte_und_apotheker_bank"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumAustrianAnadiBankAg) = Value
"austrian_anadi_bank_ag"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumBankAustria) = Value
"bank_austria"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumBankhausCarlSpangler) = Value
"bankhaus_carl_spangler"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumBankhausSchelhammerUndSchatteraAg) = Value
"bankhaus_schelhammer_und_schattera_ag"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumBawagPskAg) = Value
"bawag_psk_ag"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumBksBankAg) = Value
"bks_bank_ag"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumBrullKallmusBankAg) = Value
"brull_kallmus_bank_ag"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumBtvVierLanderBank) = Value
"btv_vier_lander_bank"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumCapitalBankGraweGruppeAg) = Value
"capital_bank_grawe_gruppe_ag"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumDolomitenbank) = Value
"dolomitenbank"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumEasybankAg) = Value
"easybank_ag"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumErsteBankUndSparkassen) = Value
"erste_bank_und_sparkassen"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumHypoAlpeadriabankInternationalAg) = Value
"hypo_alpeadriabank_international_ag"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumHypoBankBurgenlandAktiengesellschaft) = Value
"hypo_bank_burgenland_aktiengesellschaft"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumHypoNoeLbFurNiederosterreichUWien) = Value
"hypo_noe_lb_fur_niederosterreich_u_wien"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumHypoOberosterreichSalzburgSteiermark) = Value
"hypo_oberosterreich_salzburg_steiermark"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumHypoTirolBankAg) = Value
"hypo_tirol_bank_ag"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumHypoVorarlbergBankAg) = Value
"hypo_vorarlberg_bank_ag"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumMarchfelderBank) = Value
"marchfelder_bank"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumOberbankAg) = Value
"oberbank_ag"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumRaiffeisenBankengruppeOsterreich) = Value
"raiffeisen_bankengruppe_osterreich"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumSchoellerbankAg) = Value
"schoellerbank_ag"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumSpardaBankWien) = Value
"sparda_bank_wien"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumVolksbankGruppe) = Value
"volksbank_gruppe"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumVolkskreditbankAg) = Value
"volkskreditbank_ag"
toJSON (PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumVrBankBraunau) = Value
"vr_bank_braunau"
instance Data.Aeson.Types.FromJSON.FromJSON PaymentMethodEpsBank' where
parseJSON :: Value -> Parser PaymentMethodEpsBank'
parseJSON Value
val =
PaymentMethodEpsBank' -> Parser PaymentMethodEpsBank'
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
"arzte_und_apotheker_bank" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumArzteUndApothekerBank
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"austrian_anadi_bank_ag" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumAustrianAnadiBankAg
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"bank_austria" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumBankAustria
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"bankhaus_carl_spangler" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumBankhausCarlSpangler
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"bankhaus_schelhammer_und_schattera_ag" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumBankhausSchelhammerUndSchatteraAg
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"bawag_psk_ag" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumBawagPskAg
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"bks_bank_ag" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumBksBankAg
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"brull_kallmus_bank_ag" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumBrullKallmusBankAg
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"btv_vier_lander_bank" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumBtvVierLanderBank
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"capital_bank_grawe_gruppe_ag" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumCapitalBankGraweGruppeAg
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"dolomitenbank" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumDolomitenbank
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"easybank_ag" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumEasybankAg
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"erste_bank_und_sparkassen" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumErsteBankUndSparkassen
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"hypo_alpeadriabank_international_ag" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumHypoAlpeadriabankInternationalAg
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"hypo_bank_burgenland_aktiengesellschaft" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumHypoBankBurgenlandAktiengesellschaft
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"hypo_noe_lb_fur_niederosterreich_u_wien" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumHypoNoeLbFurNiederosterreichUWien
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"hypo_oberosterreich_salzburg_steiermark" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumHypoOberosterreichSalzburgSteiermark
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"hypo_tirol_bank_ag" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumHypoTirolBankAg
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"hypo_vorarlberg_bank_ag" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumHypoVorarlbergBankAg
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"marchfelder_bank" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumMarchfelderBank
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"oberbank_ag" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumOberbankAg
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"raiffeisen_bankengruppe_osterreich" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumRaiffeisenBankengruppeOsterreich
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"schoellerbank_ag" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumSchoellerbankAg
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"sparda_bank_wien" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumSpardaBankWien
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"volksbank_gruppe" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumVolksbankGruppe
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"volkskreditbank_ag" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumVolkskreditbankAg
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"vr_bank_braunau" -> PaymentMethodEpsBank'
PaymentMethodEpsBank'EnumVrBankBraunau
| Bool
GHC.Base.otherwise -> Value -> PaymentMethodEpsBank'
PaymentMethodEpsBank'Other Value
val
)