{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE OverloadedStrings #-}
module StripeAPI.Types.PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit 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 PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit = PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
{
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> Maybe Text
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitCustomMandateUrl :: (GHC.Maybe.Maybe Data.Text.Internal.Text),
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> Maybe Text
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitIntervalDescription :: (GHC.Maybe.Maybe Data.Text.Internal.Text),
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule :: (GHC.Maybe.Maybe PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'),
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType :: (GHC.Maybe.Maybe PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType')
}
deriving
( Int
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> ShowS
[PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit] -> ShowS
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit -> String
(Int
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> ShowS)
-> (PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> String)
-> ([PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit]
-> ShowS)
-> Show PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit] -> ShowS
$cshowList :: [PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit] -> ShowS
show :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit -> String
$cshow :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit -> String
showsPrec :: Int
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> ShowS
$cshowsPrec :: Int
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> ShowS
GHC.Show.Show,
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit -> Bool
(PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> Bool)
-> (PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> Bool)
-> Eq PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit -> Bool
$c/= :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit -> Bool
== :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit -> Bool
$c== :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit -> Bool
GHC.Classes.Eq
)
instance Data.Aeson.Types.ToJSON.ToJSON PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit where
toJSON :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit -> Value
toJSON PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"custom_mandate_url" Text -> Maybe Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> Maybe Text
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitCustomMandateUrl PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"interval_description" Text -> Maybe Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> Maybe Text
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitIntervalDescription PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"payment_schedule" Text
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"transaction_type" Text
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
toEncoding :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> Encoding
toEncoding PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs ((Text
"custom_mandate_url" Text -> Maybe Text -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> Maybe Text
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitCustomMandateUrl PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"interval_description" Text -> Maybe Text -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> Maybe Text
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitIntervalDescription PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"payment_schedule" Text
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> (Text
"transaction_type" Text
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
obj))))
instance Data.Aeson.Types.FromJSON.FromJSON PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit where
parseJSON :: Value
-> Parser PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
parseJSON = String
-> (Object
-> Parser PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit)
-> Value
-> Parser PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit" (\Object
obj -> ((((Maybe Text
-> Maybe Text
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit)
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe Text
-> Maybe Text
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit Parser
(Maybe Text
-> Maybe Text
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit)
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
"custom_mandate_url")) Parser
(Maybe Text
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit)
-> Parser (Maybe Text)
-> Parser
(Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit)
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
"interval_description")) Parser
(Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit)
-> Parser
(Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule')
-> Parser
(Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
(Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"payment_schedule")) Parser
(Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit)
-> Parser
(Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType')
-> Parser PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
(Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"transaction_type"))
mkPaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
mkPaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
mkPaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit =
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit :: Maybe Text
-> Maybe Text
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit
{ paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitCustomMandateUrl :: Maybe Text
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitCustomMandateUrl = Maybe Text
forall a. Maybe a
GHC.Maybe.Nothing,
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitIntervalDescription :: Maybe Text
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitIntervalDescription = Maybe Text
forall a. Maybe a
GHC.Maybe.Nothing,
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule :: Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule = Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
forall a. Maybe a
GHC.Maybe.Nothing,
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType :: Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
paymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType = Maybe
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
forall a. Maybe a
GHC.Maybe.Nothing
}
data PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
=
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'Other Data.Aeson.Types.Internal.Value
|
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'Typed Data.Text.Internal.Text
|
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'EnumCombined
|
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'EnumInterval
|
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'EnumSporadic
deriving (Int
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> ShowS
[PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule']
-> ShowS
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> String
(Int
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> ShowS)
-> (PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> String)
-> ([PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule']
-> ShowS)
-> Show
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule']
-> ShowS
$cshowList :: [PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule']
-> ShowS
show :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> String
$cshow :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> String
showsPrec :: Int
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> ShowS
$cshowsPrec :: Int
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> ShowS
GHC.Show.Show, PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Bool
(PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Bool)
-> (PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Bool)
-> Eq
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Bool
$c/= :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Bool
== :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Bool
$c== :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Bool
GHC.Classes.Eq)
instance Data.Aeson.Types.ToJSON.ToJSON PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule' where
toJSON :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Value
toJSON (PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'Other Value
val) = Value
val
toJSON (PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'Typed Text
val) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
val
toJSON (PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'EnumCombined) = Value
"combined"
toJSON (PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'EnumInterval) = Value
"interval"
toJSON (PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'EnumSporadic) = Value
"sporadic"
instance Data.Aeson.Types.FromJSON.FromJSON PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule' where
parseJSON :: Value
-> Parser
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
parseJSON Value
val =
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
-> Parser
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
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
"combined" -> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'EnumCombined
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"interval" -> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'EnumInterval
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"sporadic" -> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'EnumSporadic
| Bool
GHC.Base.otherwise -> Value
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitPaymentSchedule'Other Value
val
)
data PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
=
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'Other Data.Aeson.Types.Internal.Value
|
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'Typed Data.Text.Internal.Text
|
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'EnumBusiness
|
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'EnumPersonal
deriving (Int
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> ShowS
[PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType']
-> ShowS
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> String
(Int
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> ShowS)
-> (PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> String)
-> ([PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType']
-> ShowS)
-> Show
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType']
-> ShowS
$cshowList :: [PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType']
-> ShowS
show :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> String
$cshow :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> String
showsPrec :: Int
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> ShowS
$cshowsPrec :: Int
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> ShowS
GHC.Show.Show, PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> Bool
(PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> Bool)
-> (PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> Bool)
-> Eq
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> Bool
$c/= :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> Bool
== :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> Bool
$c== :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> Bool
GHC.Classes.Eq)
instance Data.Aeson.Types.ToJSON.ToJSON PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType' where
toJSON :: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> Value
toJSON (PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'Other Value
val) = Value
val
toJSON (PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'Typed Text
val) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
val
toJSON (PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'EnumBusiness) = Value
"business"
toJSON (PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'EnumPersonal) = Value
"personal"
instance Data.Aeson.Types.FromJSON.FromJSON PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType' where
parseJSON :: Value
-> Parser
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
parseJSON Value
val =
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
-> Parser
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
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
"business" -> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'EnumBusiness
| Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"personal" -> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'EnumPersonal
| Bool
GHC.Base.otherwise -> Value
-> PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'
PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitTransactionType'Other Value
val
)