{-# LANGUAGE MultiWayIf #-}
-- CHANGE WITH CAUTION: This is a generated code file generated by https://github.com/Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator.
{-# LANGUAGE OverloadedStrings #-}

-- | Contains the types generated from the schema PaymentMethodDetailsP24
module StripeAPI.Types.PaymentMethodDetailsP24 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

-- | Defines the object schema located at @components.schemas.payment_method_details_p24@ in the specification.
data PaymentMethodDetailsP24 = PaymentMethodDetailsP24
  { -- | bank: The customer\'s bank. Can be one of \`ing\`, \`citi_handlowy\`, \`tmobile_usbugi_bankowe\`, \`plus_bank\`, \`etransfer_pocztowy24\`, \`banki_spbdzielcze\`, \`bank_nowy_bfg_sa\`, \`getin_bank\`, \`blik\`, \`noble_pay\`, \`ideabank\`, \`envelobank\`, \`santander_przelew24\`, \`nest_przelew\`, \`mbank_mtransfer\`, \`inteligo\`, \`pbac_z_ipko\`, \`bnp_paribas\`, \`credit_agricole\`, \`toyota_bank\`, \`bank_pekao_sa\`, \`volkswagen_bank\`, \`bank_millennium\`, \`alior_bank\`, or \`boz\`.
    PaymentMethodDetailsP24 -> Maybe PaymentMethodDetailsP24Bank'
paymentMethodDetailsP24Bank :: (GHC.Maybe.Maybe PaymentMethodDetailsP24Bank'),
    -- | reference: Unique reference for this Przelewy24 payment.
    --
    -- Constraints:
    --
    -- * Maximum length of 5000
    PaymentMethodDetailsP24 -> Maybe Text
paymentMethodDetailsP24Reference :: (GHC.Maybe.Maybe Data.Text.Internal.Text),
    -- | verified_name: Owner\'s verified full name. Values are verified or provided by Przelewy24 directly
    -- (if supported) at the time of authorization or settlement. They cannot be set or mutated.
    -- Przelewy24 rarely provides this information so the attribute is usually empty.
    --
    -- Constraints:
    --
    -- * Maximum length of 5000
    PaymentMethodDetailsP24 -> Maybe Text
paymentMethodDetailsP24VerifiedName :: (GHC.Maybe.Maybe Data.Text.Internal.Text)
  }
  deriving
    ( Int -> PaymentMethodDetailsP24 -> ShowS
[PaymentMethodDetailsP24] -> ShowS
PaymentMethodDetailsP24 -> String
(Int -> PaymentMethodDetailsP24 -> ShowS)
-> (PaymentMethodDetailsP24 -> String)
-> ([PaymentMethodDetailsP24] -> ShowS)
-> Show PaymentMethodDetailsP24
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PaymentMethodDetailsP24] -> ShowS
$cshowList :: [PaymentMethodDetailsP24] -> ShowS
show :: PaymentMethodDetailsP24 -> String
$cshow :: PaymentMethodDetailsP24 -> String
showsPrec :: Int -> PaymentMethodDetailsP24 -> ShowS
$cshowsPrec :: Int -> PaymentMethodDetailsP24 -> ShowS
GHC.Show.Show,
      PaymentMethodDetailsP24 -> PaymentMethodDetailsP24 -> Bool
(PaymentMethodDetailsP24 -> PaymentMethodDetailsP24 -> Bool)
-> (PaymentMethodDetailsP24 -> PaymentMethodDetailsP24 -> Bool)
-> Eq PaymentMethodDetailsP24
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PaymentMethodDetailsP24 -> PaymentMethodDetailsP24 -> Bool
$c/= :: PaymentMethodDetailsP24 -> PaymentMethodDetailsP24 -> Bool
== :: PaymentMethodDetailsP24 -> PaymentMethodDetailsP24 -> Bool
$c== :: PaymentMethodDetailsP24 -> PaymentMethodDetailsP24 -> Bool
GHC.Classes.Eq
    )

instance Data.Aeson.Types.ToJSON.ToJSON PaymentMethodDetailsP24 where
  toJSON :: PaymentMethodDetailsP24 -> Value
toJSON PaymentMethodDetailsP24
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"bank" Text -> Maybe PaymentMethodDetailsP24Bank' -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PaymentMethodDetailsP24 -> Maybe PaymentMethodDetailsP24Bank'
paymentMethodDetailsP24Bank PaymentMethodDetailsP24
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"reference" Text -> Maybe Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PaymentMethodDetailsP24 -> Maybe Text
paymentMethodDetailsP24Reference PaymentMethodDetailsP24
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"verified_name" Text -> Maybe Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PaymentMethodDetailsP24 -> Maybe Text
paymentMethodDetailsP24VerifiedName PaymentMethodDetailsP24
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
  toEncoding :: PaymentMethodDetailsP24 -> Encoding
toEncoding PaymentMethodDetailsP24
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs ((Text
"bank" Text -> Maybe PaymentMethodDetailsP24Bank' -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PaymentMethodDetailsP24 -> Maybe PaymentMethodDetailsP24Bank'
paymentMethodDetailsP24Bank PaymentMethodDetailsP24
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"reference" Text -> Maybe Text -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PaymentMethodDetailsP24 -> Maybe Text
paymentMethodDetailsP24Reference PaymentMethodDetailsP24
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> (Text
"verified_name" Text -> Maybe Text -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PaymentMethodDetailsP24 -> Maybe Text
paymentMethodDetailsP24VerifiedName PaymentMethodDetailsP24
obj)))

instance Data.Aeson.Types.FromJSON.FromJSON PaymentMethodDetailsP24 where
  parseJSON :: Value -> Parser PaymentMethodDetailsP24
parseJSON = String
-> (Object -> Parser PaymentMethodDetailsP24)
-> Value
-> Parser PaymentMethodDetailsP24
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"PaymentMethodDetailsP24" (\Object
obj -> (((Maybe PaymentMethodDetailsP24Bank'
 -> Maybe Text -> Maybe Text -> PaymentMethodDetailsP24)
-> Parser
     (Maybe PaymentMethodDetailsP24Bank'
      -> Maybe Text -> Maybe Text -> PaymentMethodDetailsP24)
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe PaymentMethodDetailsP24Bank'
-> Maybe Text -> Maybe Text -> PaymentMethodDetailsP24
PaymentMethodDetailsP24 Parser
  (Maybe PaymentMethodDetailsP24Bank'
   -> Maybe Text -> Maybe Text -> PaymentMethodDetailsP24)
-> Parser (Maybe PaymentMethodDetailsP24Bank')
-> Parser (Maybe Text -> Maybe Text -> PaymentMethodDetailsP24)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser (Maybe PaymentMethodDetailsP24Bank')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"bank")) Parser (Maybe Text -> Maybe Text -> PaymentMethodDetailsP24)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> PaymentMethodDetailsP24)
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
"reference")) Parser (Maybe Text -> PaymentMethodDetailsP24)
-> Parser (Maybe Text) -> Parser PaymentMethodDetailsP24
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
"verified_name"))

-- | Create a new 'PaymentMethodDetailsP24' with all required fields.
mkPaymentMethodDetailsP24 :: PaymentMethodDetailsP24
mkPaymentMethodDetailsP24 :: PaymentMethodDetailsP24
mkPaymentMethodDetailsP24 =
  PaymentMethodDetailsP24 :: Maybe PaymentMethodDetailsP24Bank'
-> Maybe Text -> Maybe Text -> PaymentMethodDetailsP24
PaymentMethodDetailsP24
    { paymentMethodDetailsP24Bank :: Maybe PaymentMethodDetailsP24Bank'
paymentMethodDetailsP24Bank = Maybe PaymentMethodDetailsP24Bank'
forall a. Maybe a
GHC.Maybe.Nothing,
      paymentMethodDetailsP24Reference :: Maybe Text
paymentMethodDetailsP24Reference = Maybe Text
forall a. Maybe a
GHC.Maybe.Nothing,
      paymentMethodDetailsP24VerifiedName :: Maybe Text
paymentMethodDetailsP24VerifiedName = Maybe Text
forall a. Maybe a
GHC.Maybe.Nothing
    }

-- | Defines the enum schema located at @components.schemas.payment_method_details_p24.properties.bank@ in the specification.
--
-- The customer\'s bank. Can be one of \`ing\`, \`citi_handlowy\`, \`tmobile_usbugi_bankowe\`, \`plus_bank\`, \`etransfer_pocztowy24\`, \`banki_spbdzielcze\`, \`bank_nowy_bfg_sa\`, \`getin_bank\`, \`blik\`, \`noble_pay\`, \`ideabank\`, \`envelobank\`, \`santander_przelew24\`, \`nest_przelew\`, \`mbank_mtransfer\`, \`inteligo\`, \`pbac_z_ipko\`, \`bnp_paribas\`, \`credit_agricole\`, \`toyota_bank\`, \`bank_pekao_sa\`, \`volkswagen_bank\`, \`bank_millennium\`, \`alior_bank\`, or \`boz\`.
data PaymentMethodDetailsP24Bank'
  = -- | This case is used if the value encountered during decoding does not match any of the provided cases in the specification.
    PaymentMethodDetailsP24Bank'Other Data.Aeson.Types.Internal.Value
  | -- | This constructor can be used to send values to the server which are not present in the specification yet.
    PaymentMethodDetailsP24Bank'Typed Data.Text.Internal.Text
  | -- | Represents the JSON value @"alior_bank"@
    PaymentMethodDetailsP24Bank'EnumAliorBank
  | -- | Represents the JSON value @"bank_millennium"@
    PaymentMethodDetailsP24Bank'EnumBankMillennium
  | -- | Represents the JSON value @"bank_nowy_bfg_sa"@
    PaymentMethodDetailsP24Bank'EnumBankNowyBfgSa
  | -- | Represents the JSON value @"bank_pekao_sa"@
    PaymentMethodDetailsP24Bank'EnumBankPekaoSa
  | -- | Represents the JSON value @"banki_spbdzielcze"@
    PaymentMethodDetailsP24Bank'EnumBankiSpbdzielcze
  | -- | Represents the JSON value @"blik"@
    PaymentMethodDetailsP24Bank'EnumBlik
  | -- | Represents the JSON value @"bnp_paribas"@
    PaymentMethodDetailsP24Bank'EnumBnpParibas
  | -- | Represents the JSON value @"boz"@
    PaymentMethodDetailsP24Bank'EnumBoz
  | -- | Represents the JSON value @"citi_handlowy"@
    PaymentMethodDetailsP24Bank'EnumCitiHandlowy
  | -- | Represents the JSON value @"credit_agricole"@
    PaymentMethodDetailsP24Bank'EnumCreditAgricole
  | -- | Represents the JSON value @"envelobank"@
    PaymentMethodDetailsP24Bank'EnumEnvelobank
  | -- | Represents the JSON value @"etransfer_pocztowy24"@
    PaymentMethodDetailsP24Bank'EnumEtransferPocztowy24
  | -- | Represents the JSON value @"getin_bank"@
    PaymentMethodDetailsP24Bank'EnumGetinBank
  | -- | Represents the JSON value @"ideabank"@
    PaymentMethodDetailsP24Bank'EnumIdeabank
  | -- | Represents the JSON value @"ing"@
    PaymentMethodDetailsP24Bank'EnumIng
  | -- | Represents the JSON value @"inteligo"@
    PaymentMethodDetailsP24Bank'EnumInteligo
  | -- | Represents the JSON value @"mbank_mtransfer"@
    PaymentMethodDetailsP24Bank'EnumMbankMtransfer
  | -- | Represents the JSON value @"nest_przelew"@
    PaymentMethodDetailsP24Bank'EnumNestPrzelew
  | -- | Represents the JSON value @"noble_pay"@
    PaymentMethodDetailsP24Bank'EnumNoblePay
  | -- | Represents the JSON value @"pbac_z_ipko"@
    PaymentMethodDetailsP24Bank'EnumPbacZIpko
  | -- | Represents the JSON value @"plus_bank"@
    PaymentMethodDetailsP24Bank'EnumPlusBank
  | -- | Represents the JSON value @"santander_przelew24"@
    PaymentMethodDetailsP24Bank'EnumSantanderPrzelew24
  | -- | Represents the JSON value @"tmobile_usbugi_bankowe"@
    PaymentMethodDetailsP24Bank'EnumTmobileUsbugiBankowe
  | -- | Represents the JSON value @"toyota_bank"@
    PaymentMethodDetailsP24Bank'EnumToyotaBank
  | -- | Represents the JSON value @"volkswagen_bank"@
    PaymentMethodDetailsP24Bank'EnumVolkswagenBank
  deriving (Int -> PaymentMethodDetailsP24Bank' -> ShowS
[PaymentMethodDetailsP24Bank'] -> ShowS
PaymentMethodDetailsP24Bank' -> String
(Int -> PaymentMethodDetailsP24Bank' -> ShowS)
-> (PaymentMethodDetailsP24Bank' -> String)
-> ([PaymentMethodDetailsP24Bank'] -> ShowS)
-> Show PaymentMethodDetailsP24Bank'
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PaymentMethodDetailsP24Bank'] -> ShowS
$cshowList :: [PaymentMethodDetailsP24Bank'] -> ShowS
show :: PaymentMethodDetailsP24Bank' -> String
$cshow :: PaymentMethodDetailsP24Bank' -> String
showsPrec :: Int -> PaymentMethodDetailsP24Bank' -> ShowS
$cshowsPrec :: Int -> PaymentMethodDetailsP24Bank' -> ShowS
GHC.Show.Show, PaymentMethodDetailsP24Bank'
-> PaymentMethodDetailsP24Bank' -> Bool
(PaymentMethodDetailsP24Bank'
 -> PaymentMethodDetailsP24Bank' -> Bool)
-> (PaymentMethodDetailsP24Bank'
    -> PaymentMethodDetailsP24Bank' -> Bool)
-> Eq PaymentMethodDetailsP24Bank'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PaymentMethodDetailsP24Bank'
-> PaymentMethodDetailsP24Bank' -> Bool
$c/= :: PaymentMethodDetailsP24Bank'
-> PaymentMethodDetailsP24Bank' -> Bool
== :: PaymentMethodDetailsP24Bank'
-> PaymentMethodDetailsP24Bank' -> Bool
$c== :: PaymentMethodDetailsP24Bank'
-> PaymentMethodDetailsP24Bank' -> Bool
GHC.Classes.Eq)

instance Data.Aeson.Types.ToJSON.ToJSON PaymentMethodDetailsP24Bank' where
  toJSON :: PaymentMethodDetailsP24Bank' -> Value
toJSON (PaymentMethodDetailsP24Bank'Other Value
val) = Value
val
  toJSON (PaymentMethodDetailsP24Bank'Typed Text
val) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
val
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumAliorBank) = Value
"alior_bank"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumBankMillennium) = Value
"bank_millennium"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumBankNowyBfgSa) = Value
"bank_nowy_bfg_sa"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumBankPekaoSa) = Value
"bank_pekao_sa"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumBankiSpbdzielcze) = Value
"banki_spbdzielcze"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumBlik) = Value
"blik"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumBnpParibas) = Value
"bnp_paribas"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumBoz) = Value
"boz"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumCitiHandlowy) = Value
"citi_handlowy"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumCreditAgricole) = Value
"credit_agricole"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumEnvelobank) = Value
"envelobank"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumEtransferPocztowy24) = Value
"etransfer_pocztowy24"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumGetinBank) = Value
"getin_bank"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumIdeabank) = Value
"ideabank"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumIng) = Value
"ing"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumInteligo) = Value
"inteligo"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumMbankMtransfer) = Value
"mbank_mtransfer"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumNestPrzelew) = Value
"nest_przelew"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumNoblePay) = Value
"noble_pay"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumPbacZIpko) = Value
"pbac_z_ipko"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumPlusBank) = Value
"plus_bank"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumSantanderPrzelew24) = Value
"santander_przelew24"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumTmobileUsbugiBankowe) = Value
"tmobile_usbugi_bankowe"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumToyotaBank) = Value
"toyota_bank"
  toJSON (PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumVolkswagenBank) = Value
"volkswagen_bank"

instance Data.Aeson.Types.FromJSON.FromJSON PaymentMethodDetailsP24Bank' where
  parseJSON :: Value -> Parser PaymentMethodDetailsP24Bank'
parseJSON Value
val =
    PaymentMethodDetailsP24Bank' -> Parser PaymentMethodDetailsP24Bank'
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
"alior_bank" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumAliorBank
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"bank_millennium" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumBankMillennium
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"bank_nowy_bfg_sa" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumBankNowyBfgSa
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"bank_pekao_sa" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumBankPekaoSa
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"banki_spbdzielcze" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumBankiSpbdzielcze
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"blik" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumBlik
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"bnp_paribas" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumBnpParibas
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"boz" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumBoz
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"citi_handlowy" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumCitiHandlowy
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"credit_agricole" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumCreditAgricole
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"envelobank" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumEnvelobank
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"etransfer_pocztowy24" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumEtransferPocztowy24
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"getin_bank" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumGetinBank
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"ideabank" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumIdeabank
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"ing" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumIng
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"inteligo" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumInteligo
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"mbank_mtransfer" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumMbankMtransfer
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"nest_przelew" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumNestPrzelew
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"noble_pay" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumNoblePay
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"pbac_z_ipko" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumPbacZIpko
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"plus_bank" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumPlusBank
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"santander_przelew24" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumSantanderPrzelew24
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"tmobile_usbugi_bankowe" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumTmobileUsbugiBankowe
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"toyota_bank" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumToyotaBank
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"volkswagen_bank" -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'EnumVolkswagenBank
            | Bool
GHC.Base.otherwise -> Value -> PaymentMethodDetailsP24Bank'
PaymentMethodDetailsP24Bank'Other Value
val
      )