{-# LANGUAGE ExplicitForAll #-}
{-# 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 different functions to run the operation postSetupIntentsIntent
module StripeAPI.Operations.PostSetupIntentsIntent where

import qualified Control.Monad.Fail
import qualified Control.Monad.Trans.Reader
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.Either
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 Data.Vector
import qualified GHC.Base
import qualified GHC.Classes
import qualified GHC.Int
import qualified GHC.Show
import qualified GHC.Types
import qualified Network.HTTP.Client
import qualified Network.HTTP.Client as Network.HTTP.Client.Request
import qualified Network.HTTP.Client as Network.HTTP.Client.Types
import qualified Network.HTTP.Simple
import qualified Network.HTTP.Types
import qualified Network.HTTP.Types as Network.HTTP.Types.Status
import qualified Network.HTTP.Types as Network.HTTP.Types.URI
import qualified StripeAPI.Common
import StripeAPI.Types
import qualified Prelude as GHC.Integer.Type
import qualified Prelude as GHC.Maybe

-- | > POST /v1/setup_intents/{intent}
--
-- \<p>Updates a SetupIntent object.\<\/p>
postSetupIntentsIntent ::
  forall m.
  StripeAPI.Common.MonadHTTP m =>
  -- | intent | Constraints: Maximum length of 5000
  Data.Text.Internal.Text ->
  -- | The request body to send
  GHC.Maybe.Maybe PostSetupIntentsIntentRequestBody ->
  -- | Monadic computation which returns the result of the operation
  StripeAPI.Common.ClientT m (Network.HTTP.Client.Types.Response PostSetupIntentsIntentResponse)
postSetupIntentsIntent :: Text
-> Maybe PostSetupIntentsIntentRequestBody
-> ClientT m (Response PostSetupIntentsIntentResponse)
postSetupIntentsIntent
  Text
intent
  Maybe PostSetupIntentsIntentRequestBody
body =
    (Response ByteString -> Response PostSetupIntentsIntentResponse)
-> ClientT m (Response ByteString)
-> ClientT m (Response PostSetupIntentsIntentResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
GHC.Base.fmap
      ( \Response ByteString
response_0 ->
          (ByteString -> PostSetupIntentsIntentResponse)
-> Response ByteString -> Response PostSetupIntentsIntentResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
GHC.Base.fmap
            ( (String -> PostSetupIntentsIntentResponse)
-> (PostSetupIntentsIntentResponse
    -> PostSetupIntentsIntentResponse)
-> Either String PostSetupIntentsIntentResponse
-> PostSetupIntentsIntentResponse
forall a c b. (a -> c) -> (b -> c) -> Either a b -> c
Data.Either.either String -> PostSetupIntentsIntentResponse
PostSetupIntentsIntentResponseError PostSetupIntentsIntentResponse -> PostSetupIntentsIntentResponse
forall a. a -> a
GHC.Base.id
                (Either String PostSetupIntentsIntentResponse
 -> PostSetupIntentsIntentResponse)
-> (ByteString -> Either String PostSetupIntentsIntentResponse)
-> ByteString
-> PostSetupIntentsIntentResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
GHC.Base.. ( \Response ByteString
response ByteString
body ->
                               if
                                   | (\Status
status_1 -> Status -> Int
Network.HTTP.Types.Status.statusCode Status
status_1 Int -> Int -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Int
200) (Response ByteString -> Status
forall body. Response body -> Status
Network.HTTP.Client.Types.responseStatus Response ByteString
response) ->
                                     SetupIntent -> PostSetupIntentsIntentResponse
PostSetupIntentsIntentResponse200
                                       (SetupIntent -> PostSetupIntentsIntentResponse)
-> Either String SetupIntent
-> Either String PostSetupIntentsIntentResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> ( ByteString -> Either String SetupIntent
forall a. FromJSON a => ByteString -> Either String a
Data.Aeson.eitherDecodeStrict ByteString
body ::
                                                            Data.Either.Either
                                                              GHC.Base.String
                                                              SetupIntent
                                                        )
                                   | Bool -> Status -> Bool
forall a b. a -> b -> a
GHC.Base.const Bool
GHC.Types.True (Response ByteString -> Status
forall body. Response body -> Status
Network.HTTP.Client.Types.responseStatus Response ByteString
response) ->
                                     Error -> PostSetupIntentsIntentResponse
PostSetupIntentsIntentResponseDefault
                                       (Error -> PostSetupIntentsIntentResponse)
-> Either String Error
-> Either String PostSetupIntentsIntentResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> ( ByteString -> Either String Error
forall a. FromJSON a => ByteString -> Either String a
Data.Aeson.eitherDecodeStrict ByteString
body ::
                                                            Data.Either.Either
                                                              GHC.Base.String
                                                              Error
                                                        )
                                   | Bool
GHC.Base.otherwise -> String -> Either String PostSetupIntentsIntentResponse
forall a b. a -> Either a b
Data.Either.Left String
"Missing default response type"
                           )
                  Response ByteString
response_0
            )
            Response ByteString
response_0
      )
      (Text
-> Text
-> [QueryParameter]
-> Maybe PostSetupIntentsIntentRequestBody
-> RequestBodyEncoding
-> ClientT m (Response ByteString)
forall (m :: * -> *) body.
(MonadHTTP m, ToJSON body) =>
Text
-> Text
-> [QueryParameter]
-> Maybe body
-> RequestBodyEncoding
-> ClientT m (Response ByteString)
StripeAPI.Common.doBodyCallWithConfigurationM (Text -> Text
Data.Text.toUpper (Text -> Text) -> Text -> Text
forall a b. (a -> b) -> a -> b
GHC.Base.$ String -> Text
Data.Text.pack String
"POST") (String -> Text
Data.Text.pack (String
"/v1/setup_intents/" String -> String -> String
forall a. [a] -> [a] -> [a]
GHC.Base.++ (ByteString -> String
Data.ByteString.Char8.unpack (Bool -> ByteString -> ByteString
Network.HTTP.Types.URI.urlEncode Bool
GHC.Types.True (ByteString -> ByteString) -> ByteString -> ByteString
forall a b. (a -> b) -> a -> b
GHC.Base.$ (String -> ByteString
Data.ByteString.Char8.pack (String -> ByteString) -> String -> ByteString
forall a b. (a -> b) -> a -> b
GHC.Base.$ Text -> String
forall a. StringifyModel a => a -> String
StripeAPI.Common.stringifyModel Text
intent)) String -> String -> String
forall a. [a] -> [a] -> [a]
GHC.Base.++ String
""))) [QueryParameter]
forall a. Monoid a => a
GHC.Base.mempty Maybe PostSetupIntentsIntentRequestBody
body RequestBodyEncoding
StripeAPI.Common.RequestBodyEncodingFormData)

-- | Defines the object schema located at @paths.\/v1\/setup_intents\/{intent}.POST.requestBody.content.application\/x-www-form-urlencoded.schema@ in the specification.
data PostSetupIntentsIntentRequestBody = PostSetupIntentsIntentRequestBody
  { -- | customer: ID of the Customer this SetupIntent belongs to, if one exists.
    --
    -- If present, the SetupIntent\'s payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent.
    --
    -- Constraints:
    --
    -- * Maximum length of 5000
    PostSetupIntentsIntentRequestBody -> Maybe Text
postSetupIntentsIntentRequestBodyCustomer :: (GHC.Maybe.Maybe Data.Text.Internal.Text),
    -- | description: An arbitrary string attached to the object. Often useful for displaying to users.
    --
    -- Constraints:
    --
    -- * Maximum length of 1000
    PostSetupIntentsIntentRequestBody -> Maybe Text
postSetupIntentsIntentRequestBodyDescription :: (GHC.Maybe.Maybe Data.Text.Internal.Text),
    -- | expand: Specifies which fields in the response should be expanded.
    PostSetupIntentsIntentRequestBody -> Maybe [Text]
postSetupIntentsIntentRequestBodyExpand :: (GHC.Maybe.Maybe ([Data.Text.Internal.Text])),
    -- | metadata: Set of [key-value pairs](https:\/\/stripe.com\/docs\/api\/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to \`metadata\`.
    PostSetupIntentsIntentRequestBody
-> Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
postSetupIntentsIntentRequestBodyMetadata :: (GHC.Maybe.Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants),
    -- | payment_method: ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.
    --
    -- Constraints:
    --
    -- * Maximum length of 5000
    PostSetupIntentsIntentRequestBody -> Maybe Text
postSetupIntentsIntentRequestBodyPaymentMethod :: (GHC.Maybe.Maybe Data.Text.Internal.Text),
    -- | payment_method_options: Payment-method-specific configuration for this SetupIntent.
    PostSetupIntentsIntentRequestBody
-> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
postSetupIntentsIntentRequestBodyPaymentMethodOptions :: (GHC.Maybe.Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'),
    -- | payment_method_types: The list of payment method types (e.g. card) that this SetupIntent is allowed to set up. If this is not provided, defaults to [\"card\"].
    PostSetupIntentsIntentRequestBody -> Maybe [Text]
postSetupIntentsIntentRequestBodyPaymentMethodTypes :: (GHC.Maybe.Maybe ([Data.Text.Internal.Text]))
  }
  deriving
    ( Int -> PostSetupIntentsIntentRequestBody -> String -> String
[PostSetupIntentsIntentRequestBody] -> String -> String
PostSetupIntentsIntentRequestBody -> String
(Int -> PostSetupIntentsIntentRequestBody -> String -> String)
-> (PostSetupIntentsIntentRequestBody -> String)
-> ([PostSetupIntentsIntentRequestBody] -> String -> String)
-> Show PostSetupIntentsIntentRequestBody
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostSetupIntentsIntentRequestBody] -> String -> String
$cshowList :: [PostSetupIntentsIntentRequestBody] -> String -> String
show :: PostSetupIntentsIntentRequestBody -> String
$cshow :: PostSetupIntentsIntentRequestBody -> String
showsPrec :: Int -> PostSetupIntentsIntentRequestBody -> String -> String
$cshowsPrec :: Int -> PostSetupIntentsIntentRequestBody -> String -> String
GHC.Show.Show,
      PostSetupIntentsIntentRequestBody
-> PostSetupIntentsIntentRequestBody -> Bool
(PostSetupIntentsIntentRequestBody
 -> PostSetupIntentsIntentRequestBody -> Bool)
-> (PostSetupIntentsIntentRequestBody
    -> PostSetupIntentsIntentRequestBody -> Bool)
-> Eq PostSetupIntentsIntentRequestBody
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostSetupIntentsIntentRequestBody
-> PostSetupIntentsIntentRequestBody -> Bool
$c/= :: PostSetupIntentsIntentRequestBody
-> PostSetupIntentsIntentRequestBody -> Bool
== :: PostSetupIntentsIntentRequestBody
-> PostSetupIntentsIntentRequestBody -> Bool
$c== :: PostSetupIntentsIntentRequestBody
-> PostSetupIntentsIntentRequestBody -> Bool
GHC.Classes.Eq
    )

instance Data.Aeson.Types.ToJSON.ToJSON PostSetupIntentsIntentRequestBody where
  toJSON :: PostSetupIntentsIntentRequestBody -> Value
toJSON PostSetupIntentsIntentRequestBody
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"customer" Text -> Maybe Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBody -> Maybe Text
postSetupIntentsIntentRequestBodyCustomer PostSetupIntentsIntentRequestBody
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"description" Text -> Maybe Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBody -> Maybe Text
postSetupIntentsIntentRequestBodyDescription PostSetupIntentsIntentRequestBody
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"expand" Text -> Maybe [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBody -> Maybe [Text]
postSetupIntentsIntentRequestBodyExpand PostSetupIntentsIntentRequestBody
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"metadata" Text
-> Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBody
-> Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
postSetupIntentsIntentRequestBodyMetadata PostSetupIntentsIntentRequestBody
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"payment_method" Text -> Maybe Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBody -> Maybe Text
postSetupIntentsIntentRequestBodyPaymentMethod PostSetupIntentsIntentRequestBody
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"payment_method_options" Text
-> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBody
-> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
postSetupIntentsIntentRequestBodyPaymentMethodOptions PostSetupIntentsIntentRequestBody
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"payment_method_types" Text -> Maybe [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBody -> Maybe [Text]
postSetupIntentsIntentRequestBodyPaymentMethodTypes PostSetupIntentsIntentRequestBody
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
  toEncoding :: PostSetupIntentsIntentRequestBody -> Encoding
toEncoding PostSetupIntentsIntentRequestBody
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs ((Text
"customer" Text -> Maybe Text -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBody -> Maybe Text
postSetupIntentsIntentRequestBodyCustomer PostSetupIntentsIntentRequestBody
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"description" Text -> Maybe Text -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBody -> Maybe Text
postSetupIntentsIntentRequestBodyDescription PostSetupIntentsIntentRequestBody
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"expand" Text -> Maybe [Text] -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBody -> Maybe [Text]
postSetupIntentsIntentRequestBodyExpand PostSetupIntentsIntentRequestBody
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"metadata" Text
-> Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBody
-> Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
postSetupIntentsIntentRequestBodyMetadata PostSetupIntentsIntentRequestBody
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"payment_method" Text -> Maybe Text -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBody -> Maybe Text
postSetupIntentsIntentRequestBodyPaymentMethod PostSetupIntentsIntentRequestBody
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"payment_method_options" Text
-> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBody
-> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
postSetupIntentsIntentRequestBodyPaymentMethodOptions PostSetupIntentsIntentRequestBody
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> (Text
"payment_method_types" Text -> Maybe [Text] -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBody -> Maybe [Text]
postSetupIntentsIntentRequestBodyPaymentMethodTypes PostSetupIntentsIntentRequestBody
obj)))))))

instance Data.Aeson.Types.FromJSON.FromJSON PostSetupIntentsIntentRequestBody where
  parseJSON :: Value -> Parser PostSetupIntentsIntentRequestBody
parseJSON = String
-> (Object -> Parser PostSetupIntentsIntentRequestBody)
-> Value
-> Parser PostSetupIntentsIntentRequestBody
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"PostSetupIntentsIntentRequestBody" (\Object
obj -> (((((((Maybe Text
 -> Maybe Text
 -> Maybe [Text]
 -> Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
 -> Maybe Text
 -> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
 -> Maybe [Text]
 -> PostSetupIntentsIntentRequestBody)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
      -> Maybe Text
      -> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
      -> Maybe [Text]
      -> PostSetupIntentsIntentRequestBody)
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
-> Maybe Text
-> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> Maybe [Text]
-> PostSetupIntentsIntentRequestBody
PostSetupIntentsIntentRequestBody Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
   -> Maybe Text
   -> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
   -> Maybe [Text]
   -> PostSetupIntentsIntentRequestBody)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe [Text]
      -> Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
      -> Maybe Text
      -> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
      -> Maybe [Text]
      -> PostSetupIntentsIntentRequestBody)
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
"customer")) Parser
  (Maybe Text
   -> Maybe [Text]
   -> Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
   -> Maybe Text
   -> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
   -> Maybe [Text]
   -> PostSetupIntentsIntentRequestBody)
-> Parser (Maybe Text)
-> Parser
     (Maybe [Text]
      -> Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
      -> Maybe Text
      -> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
      -> Maybe [Text]
      -> PostSetupIntentsIntentRequestBody)
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
"description")) Parser
  (Maybe [Text]
   -> Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
   -> Maybe Text
   -> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
   -> Maybe [Text]
   -> PostSetupIntentsIntentRequestBody)
-> Parser (Maybe [Text])
-> Parser
     (Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
      -> Maybe Text
      -> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
      -> Maybe [Text]
      -> PostSetupIntentsIntentRequestBody)
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
"expand")) Parser
  (Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
   -> Maybe Text
   -> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
   -> Maybe [Text]
   -> PostSetupIntentsIntentRequestBody)
-> Parser
     (Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants)
-> Parser
     (Maybe Text
      -> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
      -> Maybe [Text]
      -> PostSetupIntentsIntentRequestBody)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
     (Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"metadata")) Parser
  (Maybe Text
   -> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
   -> Maybe [Text]
   -> PostSetupIntentsIntentRequestBody)
-> Parser (Maybe Text)
-> Parser
     (Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
      -> Maybe [Text] -> PostSetupIntentsIntentRequestBody)
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
"payment_method")) Parser
  (Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
   -> Maybe [Text] -> PostSetupIntentsIntentRequestBody)
-> Parser
     (Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions')
-> Parser (Maybe [Text] -> PostSetupIntentsIntentRequestBody)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
     (Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"payment_method_options")) Parser (Maybe [Text] -> PostSetupIntentsIntentRequestBody)
-> Parser (Maybe [Text])
-> Parser PostSetupIntentsIntentRequestBody
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
"payment_method_types"))

-- | Create a new 'PostSetupIntentsIntentRequestBody' with all required fields.
mkPostSetupIntentsIntentRequestBody :: PostSetupIntentsIntentRequestBody
mkPostSetupIntentsIntentRequestBody :: PostSetupIntentsIntentRequestBody
mkPostSetupIntentsIntentRequestBody =
  PostSetupIntentsIntentRequestBody :: Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
-> Maybe Text
-> Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> Maybe [Text]
-> PostSetupIntentsIntentRequestBody
PostSetupIntentsIntentRequestBody
    { postSetupIntentsIntentRequestBodyCustomer :: Maybe Text
postSetupIntentsIntentRequestBodyCustomer = Maybe Text
forall a. Maybe a
GHC.Maybe.Nothing,
      postSetupIntentsIntentRequestBodyDescription :: Maybe Text
postSetupIntentsIntentRequestBodyDescription = Maybe Text
forall a. Maybe a
GHC.Maybe.Nothing,
      postSetupIntentsIntentRequestBodyExpand :: Maybe [Text]
postSetupIntentsIntentRequestBodyExpand = Maybe [Text]
forall a. Maybe a
GHC.Maybe.Nothing,
      postSetupIntentsIntentRequestBodyMetadata :: Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
postSetupIntentsIntentRequestBodyMetadata = Maybe PostSetupIntentsIntentRequestBodyMetadata'Variants
forall a. Maybe a
GHC.Maybe.Nothing,
      postSetupIntentsIntentRequestBodyPaymentMethod :: Maybe Text
postSetupIntentsIntentRequestBodyPaymentMethod = Maybe Text
forall a. Maybe a
GHC.Maybe.Nothing,
      postSetupIntentsIntentRequestBodyPaymentMethodOptions :: Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
postSetupIntentsIntentRequestBodyPaymentMethodOptions = Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
forall a. Maybe a
GHC.Maybe.Nothing,
      postSetupIntentsIntentRequestBodyPaymentMethodTypes :: Maybe [Text]
postSetupIntentsIntentRequestBodyPaymentMethodTypes = Maybe [Text]
forall a. Maybe a
GHC.Maybe.Nothing
    }

-- | Defines the oneOf schema located at @paths.\/v1\/setup_intents\/{intent}.POST.requestBody.content.application\/x-www-form-urlencoded.schema.properties.metadata.anyOf@ in the specification.
--
-- Set of [key-value pairs](https:\/\/stripe.com\/docs\/api\/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to \`metadata\`.
data PostSetupIntentsIntentRequestBodyMetadata'Variants
  = -- | Represents the JSON value @""@
    PostSetupIntentsIntentRequestBodyMetadata'EmptyString
  | PostSetupIntentsIntentRequestBodyMetadata'Object Data.Aeson.Types.Internal.Object
  deriving (Int
-> PostSetupIntentsIntentRequestBodyMetadata'Variants
-> String
-> String
[PostSetupIntentsIntentRequestBodyMetadata'Variants]
-> String -> String
PostSetupIntentsIntentRequestBodyMetadata'Variants -> String
(Int
 -> PostSetupIntentsIntentRequestBodyMetadata'Variants
 -> String
 -> String)
-> (PostSetupIntentsIntentRequestBodyMetadata'Variants -> String)
-> ([PostSetupIntentsIntentRequestBodyMetadata'Variants]
    -> String -> String)
-> Show PostSetupIntentsIntentRequestBodyMetadata'Variants
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostSetupIntentsIntentRequestBodyMetadata'Variants]
-> String -> String
$cshowList :: [PostSetupIntentsIntentRequestBodyMetadata'Variants]
-> String -> String
show :: PostSetupIntentsIntentRequestBodyMetadata'Variants -> String
$cshow :: PostSetupIntentsIntentRequestBodyMetadata'Variants -> String
showsPrec :: Int
-> PostSetupIntentsIntentRequestBodyMetadata'Variants
-> String
-> String
$cshowsPrec :: Int
-> PostSetupIntentsIntentRequestBodyMetadata'Variants
-> String
-> String
GHC.Show.Show, PostSetupIntentsIntentRequestBodyMetadata'Variants
-> PostSetupIntentsIntentRequestBodyMetadata'Variants -> Bool
(PostSetupIntentsIntentRequestBodyMetadata'Variants
 -> PostSetupIntentsIntentRequestBodyMetadata'Variants -> Bool)
-> (PostSetupIntentsIntentRequestBodyMetadata'Variants
    -> PostSetupIntentsIntentRequestBodyMetadata'Variants -> Bool)
-> Eq PostSetupIntentsIntentRequestBodyMetadata'Variants
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostSetupIntentsIntentRequestBodyMetadata'Variants
-> PostSetupIntentsIntentRequestBodyMetadata'Variants -> Bool
$c/= :: PostSetupIntentsIntentRequestBodyMetadata'Variants
-> PostSetupIntentsIntentRequestBodyMetadata'Variants -> Bool
== :: PostSetupIntentsIntentRequestBodyMetadata'Variants
-> PostSetupIntentsIntentRequestBodyMetadata'Variants -> Bool
$c== :: PostSetupIntentsIntentRequestBodyMetadata'Variants
-> PostSetupIntentsIntentRequestBodyMetadata'Variants -> Bool
GHC.Classes.Eq)

instance Data.Aeson.Types.ToJSON.ToJSON PostSetupIntentsIntentRequestBodyMetadata'Variants where
  toJSON :: PostSetupIntentsIntentRequestBodyMetadata'Variants -> Value
toJSON (PostSetupIntentsIntentRequestBodyMetadata'Object Object
a) = Object -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Object
a
  toJSON (PostSetupIntentsIntentRequestBodyMetadata'Variants
PostSetupIntentsIntentRequestBodyMetadata'EmptyString) = Value
""

instance Data.Aeson.Types.FromJSON.FromJSON PostSetupIntentsIntentRequestBodyMetadata'Variants where
  parseJSON :: Value -> Parser PostSetupIntentsIntentRequestBodyMetadata'Variants
parseJSON Value
val =
    if
        | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"" -> PostSetupIntentsIntentRequestBodyMetadata'Variants
-> Parser PostSetupIntentsIntentRequestBodyMetadata'Variants
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure PostSetupIntentsIntentRequestBodyMetadata'Variants
PostSetupIntentsIntentRequestBodyMetadata'EmptyString
        | Bool
GHC.Base.otherwise -> case (Object -> PostSetupIntentsIntentRequestBodyMetadata'Variants
PostSetupIntentsIntentRequestBodyMetadata'Object (Object -> PostSetupIntentsIntentRequestBodyMetadata'Variants)
-> Result Object
-> Result PostSetupIntentsIntentRequestBodyMetadata'Variants
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> Value -> Result Object
forall a. FromJSON a => Value -> Result a
Data.Aeson.Types.FromJSON.fromJSON Value
val) Result PostSetupIntentsIntentRequestBodyMetadata'Variants
-> Result PostSetupIntentsIntentRequestBodyMetadata'Variants
-> Result PostSetupIntentsIntentRequestBodyMetadata'Variants
forall (f :: * -> *) a. Alternative f => f a -> f a -> f a
GHC.Base.<|> String -> Result PostSetupIntentsIntentRequestBodyMetadata'Variants
forall a. String -> Result a
Data.Aeson.Types.Internal.Error String
"No variant matched" of
          Data.Aeson.Types.Internal.Success PostSetupIntentsIntentRequestBodyMetadata'Variants
a -> PostSetupIntentsIntentRequestBodyMetadata'Variants
-> Parser PostSetupIntentsIntentRequestBodyMetadata'Variants
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure PostSetupIntentsIntentRequestBodyMetadata'Variants
a
          Data.Aeson.Types.Internal.Error String
a -> String -> Parser PostSetupIntentsIntentRequestBodyMetadata'Variants
forall (m :: * -> *) a. MonadFail m => String -> m a
Control.Monad.Fail.fail String
a

-- | Defines the object schema located at @paths.\/v1\/setup_intents\/{intent}.POST.requestBody.content.application\/x-www-form-urlencoded.schema.properties.payment_method_options@ in the specification.
--
-- Payment-method-specific configuration for this SetupIntent.
data PostSetupIntentsIntentRequestBodyPaymentMethodOptions' = PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
  { -- | acss_debit
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit :: (GHC.Maybe.Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'),
    -- | card
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'Card :: (GHC.Maybe.Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'),
    -- | sepa_debit
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit :: (GHC.Maybe.Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit')
  }
  deriving
    ( Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> String
-> String
[PostSetupIntentsIntentRequestBodyPaymentMethodOptions']
-> String -> String
PostSetupIntentsIntentRequestBodyPaymentMethodOptions' -> String
(Int
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
 -> String
 -> String)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
    -> String)
-> ([PostSetupIntentsIntentRequestBodyPaymentMethodOptions']
    -> String -> String)
-> Show PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions']
-> String -> String
$cshowList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions']
-> String -> String
show :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions' -> String
$cshow :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions' -> String
showsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> String
-> String
$cshowsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> String
-> String
GHC.Show.Show,
      PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions' -> Bool
(PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions' -> Bool)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
    -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions' -> Bool)
-> Eq PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions' -> Bool
$c/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions' -> Bool
== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions' -> Bool
$c== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions' -> Bool
GHC.Classes.Eq
    )

instance Data.Aeson.Types.ToJSON.ToJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions' where
  toJSON :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions' -> Value
toJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"acss_debit" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"card" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'Card PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"sepa_debit" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
  toEncoding :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions' -> Encoding
toEncoding PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs ((Text
"acss_debit" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"card" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'Card PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> (Text
"sepa_debit" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
obj)))

instance Data.Aeson.Types.FromJSON.FromJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions' where
  parseJSON :: Value
-> Parser PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
parseJSON = String
-> (Object
    -> Parser PostSetupIntentsIntentRequestBodyPaymentMethodOptions')
-> Value
-> Parser PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"PostSetupIntentsIntentRequestBodyPaymentMethodOptions'" (\Object
obj -> (((Maybe
   PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
 -> Maybe
      PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
 -> Maybe
      PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
      -> Maybe
           PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
      -> Maybe
           PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
      -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions')
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions' Parser
  (Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
   -> Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
   -> Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
   -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit')
-> Parser
     (Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
      -> Maybe
           PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
      -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"acss_debit")) Parser
  (Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
   -> Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
   -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions')
-> Parser
     (Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
      -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
     (Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"card")) Parser
  (Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
   -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit')
-> Parser PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"sepa_debit"))

-- | Create a new 'PostSetupIntentsIntentRequestBodyPaymentMethodOptions'' with all required fields.
mkPostSetupIntentsIntentRequestBodyPaymentMethodOptions' :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
mkPostSetupIntentsIntentRequestBodyPaymentMethodOptions' :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
mkPostSetupIntentsIntentRequestBodyPaymentMethodOptions' =
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions' :: Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'
    { postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit :: Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit = Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
forall a. Maybe a
GHC.Maybe.Nothing,
      postSetupIntentsIntentRequestBodyPaymentMethodOptions'Card :: Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'Card = Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
forall a. Maybe a
GHC.Maybe.Nothing,
      postSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit :: Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit = Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
forall a. Maybe a
GHC.Maybe.Nothing
    }

-- | Defines the object schema located at @paths.\/v1\/setup_intents\/{intent}.POST.requestBody.content.application\/x-www-form-urlencoded.schema.properties.payment_method_options.properties.acss_debit@ in the specification.
data PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit' = PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
  { -- | currency
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency :: (GHC.Maybe.Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'),
    -- | mandate_options
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions :: (GHC.Maybe.Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'),
    -- | verification_method
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod :: (GHC.Maybe.Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod')
  }
  deriving
    ( Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> String
-> String
[PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit']
-> String -> String
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> String
(Int
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
 -> String
 -> String)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
    -> String)
-> ([PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit']
    -> String -> String)
-> Show
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit']
-> String -> String
$cshowList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit']
-> String -> String
show :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> String
$cshow :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> String
showsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> String
-> String
$cshowsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> String
-> String
GHC.Show.Show,
      PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Bool
(PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
 -> Bool)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
    -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
    -> Bool)
-> Eq
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Bool
$c/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Bool
== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Bool
$c== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Bool
GHC.Classes.Eq
    )

instance Data.Aeson.Types.ToJSON.ToJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit' where
  toJSON :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Value
toJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"currency" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"mandate_options" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"verification_method" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
  toEncoding :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Encoding
toEncoding PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs ((Text
"currency" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"mandate_options" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> (Text
"verification_method" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
obj)))

instance Data.Aeson.Types.FromJSON.FromJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit' where
  parseJSON :: Value
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
parseJSON = String
-> (Object
    -> Parser
         PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit')
-> Value
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'" (\Object
obj -> (((Maybe
   PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
 -> Maybe
      PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
 -> Maybe
      PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
      -> Maybe
           PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
      -> Maybe
           PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
      -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit')
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit' Parser
  (Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
   -> Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
   -> Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
   -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
      -> Maybe
           PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
      -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"currency")) Parser
  (Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
   -> Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
   -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
      -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"mandate_options")) Parser
  (Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
   -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod')
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"verification_method"))

-- | Create a new 'PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'' with all required fields.
mkPostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit' :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
mkPostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit' :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
mkPostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit' =
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit' :: Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'
    { postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency :: Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency = Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
forall a. Maybe a
GHC.Maybe.Nothing,
      postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions :: Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions = Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
forall a. Maybe a
GHC.Maybe.Nothing,
      postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod :: Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod = Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
forall a. Maybe a
GHC.Maybe.Nothing
    }

-- | Defines the enum schema located at @paths.\/v1\/setup_intents\/{intent}.POST.requestBody.content.application\/x-www-form-urlencoded.schema.properties.payment_method_options.properties.acss_debit.properties.currency@ in the specification.
data PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
  = -- | This case is used if the value encountered during decoding does not match any of the provided cases in the specification.
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'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.
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'Typed Data.Text.Internal.Text
  | -- | Represents the JSON value @"cad"@
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'EnumCad
  | -- | Represents the JSON value @"usd"@
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'EnumUsd
  deriving (Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> String
-> String
[PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency']
-> String -> String
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> String
(Int
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
 -> String
 -> String)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
    -> String)
-> ([PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency']
    -> String -> String)
-> Show
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency']
-> String -> String
$cshowList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency']
-> String -> String
show :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> String
$cshow :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> String
showsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> String
-> String
$cshowsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> String
-> String
GHC.Show.Show, PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> Bool
(PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
 -> Bool)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
    -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
    -> Bool)
-> Eq
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> Bool
$c/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> Bool
== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> Bool
$c== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> Bool
GHC.Classes.Eq)

instance Data.Aeson.Types.ToJSON.ToJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency' where
  toJSON :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> Value
toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'Other Value
val) = Value
val
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'Typed Text
val) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
val
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'EnumCad) = Value
"cad"
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'EnumUsd) = Value
"usd"

instance Data.Aeson.Types.FromJSON.FromJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency' where
  parseJSON :: Value
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
parseJSON Value
val =
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
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
"cad" -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'EnumCad
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"usd" -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'EnumUsd
            | Bool
GHC.Base.otherwise -> Value
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'Currency'Other Value
val
      )

-- | Defines the object schema located at @paths.\/v1\/setup_intents\/{intent}.POST.requestBody.content.application\/x-www-form-urlencoded.schema.properties.payment_method_options.properties.acss_debit.properties.mandate_options@ in the specification.
data PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions' = PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
  { -- | custom_mandate_url
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl :: (GHC.Maybe.Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants),
    -- | interval_description
    --
    -- Constraints:
    --
    -- * Maximum length of 500
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Maybe Text
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'IntervalDescription :: (GHC.Maybe.Maybe Data.Text.Internal.Text),
    -- | payment_schedule
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule :: (GHC.Maybe.Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'),
    -- | transaction_type
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType :: (GHC.Maybe.Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType')
  }
  deriving
    ( Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> String
-> String
[PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions']
-> String -> String
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> String
(Int
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
 -> String
 -> String)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
    -> String)
-> ([PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions']
    -> String -> String)
-> Show
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions']
-> String -> String
$cshowList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions']
-> String -> String
show :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> String
$cshow :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> String
showsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> String
-> String
$cshowsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> String
-> String
GHC.Show.Show,
      PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Bool
(PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
 -> Bool)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
    -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
    -> Bool)
-> Eq
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Bool
$c/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Bool
== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Bool
$c== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Bool
GHC.Classes.Eq
    )

instance Data.Aeson.Types.ToJSON.ToJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions' where
  toJSON :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Value
toJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"custom_mandate_url" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
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..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Maybe Text
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'IntervalDescription PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"payment_schedule" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"transaction_type" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
  toEncoding :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Encoding
toEncoding PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs ((Text
"custom_mandate_url" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
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..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Maybe Text
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'IntervalDescription PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"payment_schedule" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> (Text
"transaction_type" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
obj))))

instance Data.Aeson.Types.FromJSON.FromJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions' where
  parseJSON :: Value
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
parseJSON = String
-> (Object
    -> Parser
         PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions')
-> Value
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'" (\Object
obj -> ((((Maybe
   PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
 -> Maybe Text
 -> Maybe
      PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
 -> Maybe
      PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
      -> Maybe Text
      -> Maybe
           PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
      -> Maybe
           PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
      -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions')
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> Maybe Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions' Parser
  (Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
   -> Maybe Text
   -> Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
   -> Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
   -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants)
-> Parser
     (Maybe Text
      -> Maybe
           PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
      -> Maybe
           PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
      -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"custom_mandate_url")) Parser
  (Maybe Text
   -> Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
   -> Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
   -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions')
-> Parser (Maybe Text)
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
      -> Maybe
           PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
      -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions')
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
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
   -> Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
   -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
      -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions')
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"payment_schedule")) Parser
  (Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
   -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType')
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"transaction_type"))

-- | Create a new 'PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'' with all required fields.
mkPostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions' :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
mkPostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions' :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
mkPostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions' =
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions' :: Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> Maybe Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'
    { postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl :: Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl = Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
forall a. Maybe a
GHC.Maybe.Nothing,
      postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'IntervalDescription :: Maybe Text
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'IntervalDescription = Maybe Text
forall a. Maybe a
GHC.Maybe.Nothing,
      postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule :: Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule = Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
forall a. Maybe a
GHC.Maybe.Nothing,
      postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType :: Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType = Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
forall a. Maybe a
GHC.Maybe.Nothing
    }

-- | Defines the oneOf schema located at @paths.\/v1\/setup_intents\/{intent}.POST.requestBody.content.application\/x-www-form-urlencoded.schema.properties.payment_method_options.properties.acss_debit.properties.mandate_options.properties.custom_mandate_url.anyOf@ in the specification.
data PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
  = -- | Represents the JSON value @""@
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'EmptyString
  | PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Text Data.Text.Internal.Text
  deriving (Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> String
-> String
[PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants]
-> String -> String
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> String
(Int
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
 -> String
 -> String)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
    -> String)
-> ([PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants]
    -> String -> String)
-> Show
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants]
-> String -> String
$cshowList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants]
-> String -> String
show :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> String
$cshow :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> String
showsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> String
-> String
$cshowsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> String
-> String
GHC.Show.Show, PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> Bool
(PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
 -> Bool)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
    -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
    -> Bool)
-> Eq
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> Bool
$c/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> Bool
== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> Bool
$c== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> Bool
GHC.Classes.Eq)

instance Data.Aeson.Types.ToJSON.ToJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants where
  toJSON :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> Value
toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Text Text
a) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
a
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'EmptyString) = Value
""

instance Data.Aeson.Types.FromJSON.FromJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants where
  parseJSON :: Value
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
parseJSON Value
val =
    if
        | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"" -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'EmptyString
        | Bool
GHC.Base.otherwise -> case (Text
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Text (Text
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants)
-> Result Text
-> Result
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> Value -> Result Text
forall a. FromJSON a => Value -> Result a
Data.Aeson.Types.FromJSON.fromJSON Value
val) Result
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> Result
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> Result
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
forall (f :: * -> *) a. Alternative f => f a -> f a -> f a
GHC.Base.<|> String
-> Result
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
forall a. String -> Result a
Data.Aeson.Types.Internal.Error String
"No variant matched" of
          Data.Aeson.Types.Internal.Success PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
a -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
a
          Data.Aeson.Types.Internal.Error String
a -> String
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'CustomMandateUrl'Variants
forall (m :: * -> *) a. MonadFail m => String -> m a
Control.Monad.Fail.fail String
a

-- | Defines the enum schema located at @paths.\/v1\/setup_intents\/{intent}.POST.requestBody.content.application\/x-www-form-urlencoded.schema.properties.payment_method_options.properties.acss_debit.properties.mandate_options.properties.payment_schedule@ in the specification.
data PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
  = -- | This case is used if the value encountered during decoding does not match any of the provided cases in the specification.
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'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.
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'Typed Data.Text.Internal.Text
  | -- | Represents the JSON value @"combined"@
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'EnumCombined
  | -- | Represents the JSON value @"interval"@
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'EnumInterval
  | -- | Represents the JSON value @"sporadic"@
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'EnumSporadic
  deriving (Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> String
-> String
[PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule']
-> String -> String
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> String
(Int
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
 -> String
 -> String)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
    -> String)
-> ([PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule']
    -> String -> String)
-> Show
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule']
-> String -> String
$cshowList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule']
-> String -> String
show :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> String
$cshow :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> String
showsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> String
-> String
$cshowsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> String
-> String
GHC.Show.Show, PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> Bool
(PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
 -> Bool)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
    -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
    -> Bool)
-> Eq
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> Bool
$c/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> Bool
== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> Bool
$c== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> Bool
GHC.Classes.Eq)

instance Data.Aeson.Types.ToJSON.ToJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule' where
  toJSON :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> Value
toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'Other Value
val) = Value
val
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'Typed Text
val) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
val
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'EnumCombined) = Value
"combined"
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'EnumInterval) = Value
"interval"
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'EnumSporadic) = Value
"sporadic"

instance Data.Aeson.Types.FromJSON.FromJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule' where
  parseJSON :: Value
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
parseJSON Value
val =
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
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" -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'EnumCombined
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"interval" -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'EnumInterval
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"sporadic" -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'EnumSporadic
            | Bool
GHC.Base.otherwise -> Value
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'PaymentSchedule'Other Value
val
      )

-- | Defines the enum schema located at @paths.\/v1\/setup_intents\/{intent}.POST.requestBody.content.application\/x-www-form-urlencoded.schema.properties.payment_method_options.properties.acss_debit.properties.mandate_options.properties.transaction_type@ in the specification.
data PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
  = -- | This case is used if the value encountered during decoding does not match any of the provided cases in the specification.
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'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.
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'Typed Data.Text.Internal.Text
  | -- | Represents the JSON value @"business"@
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'EnumBusiness
  | -- | Represents the JSON value @"personal"@
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'EnumPersonal
  deriving (Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> String
-> String
[PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType']
-> String -> String
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> String
(Int
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
 -> String
 -> String)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
    -> String)
-> ([PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType']
    -> String -> String)
-> Show
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType']
-> String -> String
$cshowList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType']
-> String -> String
show :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> String
$cshow :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> String
showsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> String
-> String
$cshowsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> String
-> String
GHC.Show.Show, PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> Bool
(PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
 -> Bool)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
    -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
    -> Bool)
-> Eq
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> Bool
$c/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> Bool
== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> Bool
$c== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> Bool
GHC.Classes.Eq)

instance Data.Aeson.Types.ToJSON.ToJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType' where
  toJSON :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> Value
toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'Other Value
val) = Value
val
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'Typed Text
val) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
val
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'EnumBusiness) = Value
"business"
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'EnumPersonal) = Value
"personal"

instance Data.Aeson.Types.FromJSON.FromJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType' where
  parseJSON :: Value
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
parseJSON Value
val =
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
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" -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'EnumBusiness
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"personal" -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'EnumPersonal
            | Bool
GHC.Base.otherwise -> Value
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'MandateOptions'TransactionType'Other Value
val
      )

-- | Defines the enum schema located at @paths.\/v1\/setup_intents\/{intent}.POST.requestBody.content.application\/x-www-form-urlencoded.schema.properties.payment_method_options.properties.acss_debit.properties.verification_method@ in the specification.
data PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
  = -- | This case is used if the value encountered during decoding does not match any of the provided cases in the specification.
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'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.
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'Typed Data.Text.Internal.Text
  | -- | Represents the JSON value @"automatic"@
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'EnumAutomatic
  | -- | Represents the JSON value @"instant"@
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'EnumInstant
  | -- | Represents the JSON value @"microdeposits"@
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'EnumMicrodeposits
  deriving (Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> String
-> String
[PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod']
-> String -> String
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> String
(Int
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
 -> String
 -> String)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
    -> String)
-> ([PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod']
    -> String -> String)
-> Show
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod']
-> String -> String
$cshowList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod']
-> String -> String
show :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> String
$cshow :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> String
showsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> String
-> String
$cshowsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> String
-> String
GHC.Show.Show, PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> Bool
(PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
 -> Bool)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
    -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
    -> Bool)
-> Eq
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> Bool
$c/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> Bool
== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> Bool
$c== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> Bool
GHC.Classes.Eq)

instance Data.Aeson.Types.ToJSON.ToJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod' where
  toJSON :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> Value
toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'Other Value
val) = Value
val
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'Typed Text
val) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
val
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'EnumAutomatic) = Value
"automatic"
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'EnumInstant) = Value
"instant"
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'EnumMicrodeposits) = Value
"microdeposits"

instance Data.Aeson.Types.FromJSON.FromJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod' where
  parseJSON :: Value
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
parseJSON Value
val =
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
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
"automatic" -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'EnumAutomatic
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"instant" -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'EnumInstant
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"microdeposits" -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'EnumMicrodeposits
            | Bool
GHC.Base.otherwise -> Value
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'AcssDebit'VerificationMethod'Other Value
val
      )

-- | Defines the object schema located at @paths.\/v1\/setup_intents\/{intent}.POST.requestBody.content.application\/x-www-form-urlencoded.schema.properties.payment_method_options.properties.card@ in the specification.
data PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card' = PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
  { -- | request_three_d_secure
    --
    -- Constraints:
    --
    -- * Maximum length of 5000
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure :: (GHC.Maybe.Maybe PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure')
  }
  deriving
    ( Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> String
-> String
[PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card']
-> String -> String
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> String
(Int
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
 -> String
 -> String)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
    -> String)
-> ([PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card']
    -> String -> String)
-> Show PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card']
-> String -> String
$cshowList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card']
-> String -> String
show :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> String
$cshow :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> String
showsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> String
-> String
$cshowsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> String
-> String
GHC.Show.Show,
      PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> Bool
(PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
 -> Bool)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
    -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
    -> Bool)
-> Eq PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> Bool
$c/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> Bool
== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> Bool
$c== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> Bool
GHC.Classes.Eq
    )

instance Data.Aeson.Types.ToJSON.ToJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card' where
  toJSON :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> Value
toJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"request_three_d_secure" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
  toEncoding :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> Encoding
toEncoding PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs (Text
"request_three_d_secure" Text
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
-> Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
obj)

instance Data.Aeson.Types.FromJSON.FromJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card' where
  parseJSON :: Value
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
parseJSON = String
-> (Object
    -> Parser
         PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card')
-> Value
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'" (\Object
obj -> (Maybe
   PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
      -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card')
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card' Parser
  (Maybe
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
   -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card')
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure')
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser
     (Maybe
        PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure')
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"request_three_d_secure"))

-- | Create a new 'PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'' with all required fields.
mkPostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card' :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
mkPostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card' :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
mkPostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card' = PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card' :: Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card' {postSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure :: Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
postSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure = Maybe
  PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
forall a. Maybe a
GHC.Maybe.Nothing}

-- | Defines the enum schema located at @paths.\/v1\/setup_intents\/{intent}.POST.requestBody.content.application\/x-www-form-urlencoded.schema.properties.payment_method_options.properties.card.properties.request_three_d_secure@ in the specification.
data PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
  = -- | This case is used if the value encountered during decoding does not match any of the provided cases in the specification.
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'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.
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'Typed Data.Text.Internal.Text
  | -- | Represents the JSON value @"any"@
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'EnumAny
  | -- | Represents the JSON value @"automatic"@
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'EnumAutomatic
  deriving (Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> String
-> String
[PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure']
-> String -> String
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> String
(Int
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
 -> String
 -> String)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
    -> String)
-> ([PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure']
    -> String -> String)
-> Show
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure']
-> String -> String
$cshowList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure']
-> String -> String
show :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> String
$cshow :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> String
showsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> String
-> String
$cshowsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> String
-> String
GHC.Show.Show, PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> Bool
(PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
 -> Bool)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
    -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
    -> Bool)
-> Eq
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> Bool
$c/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> Bool
== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> Bool
$c== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> Bool
GHC.Classes.Eq)

instance Data.Aeson.Types.ToJSON.ToJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure' where
  toJSON :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> Value
toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'Other Value
val) = Value
val
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'Typed Text
val) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
val
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'EnumAny) = Value
"any"
  toJSON (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'EnumAutomatic) = Value
"automatic"

instance Data.Aeson.Types.FromJSON.FromJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure' where
  parseJSON :: Value
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
parseJSON Value
val =
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'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" -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'EnumAny
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"automatic" -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'EnumAutomatic
            | Bool
GHC.Base.otherwise -> Value
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'Card'RequestThreeDSecure'Other Value
val
      )

-- | Defines the object schema located at @paths.\/v1\/setup_intents\/{intent}.POST.requestBody.content.application\/x-www-form-urlencoded.schema.properties.payment_method_options.properties.sepa_debit@ in the specification.
data PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit' = PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
  { -- | mandate_options
    PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> Maybe Object
postSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'MandateOptions :: (GHC.Maybe.Maybe Data.Aeson.Types.Internal.Object)
  }
  deriving
    ( Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> String
-> String
[PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit']
-> String -> String
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> String
(Int
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
 -> String
 -> String)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
    -> String)
-> ([PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit']
    -> String -> String)
-> Show
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit']
-> String -> String
$cshowList :: [PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit']
-> String -> String
show :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> String
$cshow :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> String
showsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> String
-> String
$cshowsPrec :: Int
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> String
-> String
GHC.Show.Show,
      PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> Bool
(PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
 -> Bool)
-> (PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
    -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
    -> Bool)
-> Eq
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> Bool
$c/= :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> Bool
== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> Bool
$c== :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> Bool
GHC.Classes.Eq
    )

instance Data.Aeson.Types.ToJSON.ToJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit' where
  toJSON :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> Value
toJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"mandate_options" Text -> Maybe Object -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> Maybe Object
postSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'MandateOptions PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
  toEncoding :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> Encoding
toEncoding PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs (Text
"mandate_options" Text -> Maybe Object -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
-> Maybe Object
postSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'MandateOptions PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
obj)

instance Data.Aeson.Types.FromJSON.FromJSON PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit' where
  parseJSON :: Value
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
parseJSON = String
-> (Object
    -> Parser
         PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit')
-> Value
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'" (\Object
obj -> (Maybe Object
 -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit')
-> Parser
     (Maybe Object
      -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit')
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe Object
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit' Parser
  (Maybe Object
   -> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit')
-> Parser (Maybe Object)
-> Parser
     PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser (Maybe Object)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"mandate_options"))

-- | Create a new 'PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'' with all required fields.
mkPostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit' :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
mkPostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit' :: PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
mkPostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit' = PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit' :: Maybe Object
-> PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'
PostSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit' {postSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'MandateOptions :: Maybe Object
postSetupIntentsIntentRequestBodyPaymentMethodOptions'SepaDebit'MandateOptions = Maybe Object
forall a. Maybe a
GHC.Maybe.Nothing}

-- | Represents a response of the operation 'postSetupIntentsIntent'.
--
-- The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), 'PostSetupIntentsIntentResponseError' is used.
data PostSetupIntentsIntentResponse
  = -- | Means either no matching case available or a parse error
    PostSetupIntentsIntentResponseError GHC.Base.String
  | -- | Successful response.
    PostSetupIntentsIntentResponse200 SetupIntent
  | -- | Error response.
    PostSetupIntentsIntentResponseDefault Error
  deriving (Int -> PostSetupIntentsIntentResponse -> String -> String
[PostSetupIntentsIntentResponse] -> String -> String
PostSetupIntentsIntentResponse -> String
(Int -> PostSetupIntentsIntentResponse -> String -> String)
-> (PostSetupIntentsIntentResponse -> String)
-> ([PostSetupIntentsIntentResponse] -> String -> String)
-> Show PostSetupIntentsIntentResponse
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostSetupIntentsIntentResponse] -> String -> String
$cshowList :: [PostSetupIntentsIntentResponse] -> String -> String
show :: PostSetupIntentsIntentResponse -> String
$cshow :: PostSetupIntentsIntentResponse -> String
showsPrec :: Int -> PostSetupIntentsIntentResponse -> String -> String
$cshowsPrec :: Int -> PostSetupIntentsIntentResponse -> String -> String
GHC.Show.Show, PostSetupIntentsIntentResponse
-> PostSetupIntentsIntentResponse -> Bool
(PostSetupIntentsIntentResponse
 -> PostSetupIntentsIntentResponse -> Bool)
-> (PostSetupIntentsIntentResponse
    -> PostSetupIntentsIntentResponse -> Bool)
-> Eq PostSetupIntentsIntentResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostSetupIntentsIntentResponse
-> PostSetupIntentsIntentResponse -> Bool
$c/= :: PostSetupIntentsIntentResponse
-> PostSetupIntentsIntentResponse -> Bool
== :: PostSetupIntentsIntentResponse
-> PostSetupIntentsIntentResponse -> Bool
$c== :: PostSetupIntentsIntentResponse
-> PostSetupIntentsIntentResponse -> Bool
GHC.Classes.Eq)