{-# LANGUAGE MultiWayIf #-} -- CHANGE WITH CAUTION: This is a generated code file generated by https://github.com/Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator. {-# LANGUAGE OverloadedStrings #-} -- | Contains the types generated from the schema SetupIntentNextActionVerifyWithMicrodeposits module StripeAPI.Types.SetupIntentNextActionVerifyWithMicrodeposits where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as Data.Aeson.Encoding.Internal import qualified Data.Aeson as Data.Aeson.Types import qualified Data.Aeson as Data.Aeson.Types.FromJSON import qualified Data.Aeson as Data.Aeson.Types.Internal import qualified Data.Aeson as Data.Aeson.Types.ToJSON import qualified Data.ByteString.Char8 import qualified Data.ByteString.Char8 as Data.ByteString.Internal import qualified Data.Functor import qualified Data.Scientific import qualified Data.Text import qualified Data.Text.Internal import qualified Data.Time.Calendar as Data.Time.Calendar.Days import qualified Data.Time.LocalTime as Data.Time.LocalTime.Internal.ZonedTime import qualified GHC.Base import qualified GHC.Classes import qualified GHC.Int import qualified GHC.Show import qualified GHC.Types import qualified StripeAPI.Common import StripeAPI.TypeAlias import qualified Prelude as GHC.Integer.Type import qualified Prelude as GHC.Maybe -- | Defines the object schema located at @components.schemas.setup_intent_next_action_verify_with_microdeposits@ in the specification. data SetupIntentNextActionVerifyWithMicrodeposits = SetupIntentNextActionVerifyWithMicrodeposits { -- | arrival_date: The timestamp when the microdeposits are expected to land. setupIntentNextActionVerifyWithMicrodepositsArrivalDate :: GHC.Types.Int, -- | hosted_verification_url: The URL for the hosted verification page, which allows customers to verify their bank account. -- -- Constraints: -- -- * Maximum length of 5000 setupIntentNextActionVerifyWithMicrodepositsHostedVerificationUrl :: Data.Text.Internal.Text } deriving ( GHC.Show.Show, GHC.Classes.Eq ) instance Data.Aeson.Types.ToJSON.ToJSON SetupIntentNextActionVerifyWithMicrodeposits where toJSON obj = Data.Aeson.Types.Internal.object ("arrival_date" Data.Aeson.Types.ToJSON..= setupIntentNextActionVerifyWithMicrodepositsArrivalDate obj : "hosted_verification_url" Data.Aeson.Types.ToJSON..= setupIntentNextActionVerifyWithMicrodepositsHostedVerificationUrl obj : GHC.Base.mempty) toEncoding obj = Data.Aeson.Encoding.Internal.pairs (("arrival_date" Data.Aeson.Types.ToJSON..= setupIntentNextActionVerifyWithMicrodepositsArrivalDate obj) GHC.Base.<> ("hosted_verification_url" Data.Aeson.Types.ToJSON..= setupIntentNextActionVerifyWithMicrodepositsHostedVerificationUrl obj)) instance Data.Aeson.Types.FromJSON.FromJSON SetupIntentNextActionVerifyWithMicrodeposits where parseJSON = Data.Aeson.Types.FromJSON.withObject "SetupIntentNextActionVerifyWithMicrodeposits" (\obj -> (GHC.Base.pure SetupIntentNextActionVerifyWithMicrodeposits GHC.Base.<*> (obj Data.Aeson.Types.FromJSON..: "arrival_date")) GHC.Base.<*> (obj Data.Aeson.Types.FromJSON..: "hosted_verification_url")) -- | Create a new 'SetupIntentNextActionVerifyWithMicrodeposits' with all required fields. mkSetupIntentNextActionVerifyWithMicrodeposits :: -- | 'setupIntentNextActionVerifyWithMicrodepositsArrivalDate' GHC.Types.Int -> -- | 'setupIntentNextActionVerifyWithMicrodepositsHostedVerificationUrl' Data.Text.Internal.Text -> SetupIntentNextActionVerifyWithMicrodeposits mkSetupIntentNextActionVerifyWithMicrodeposits setupIntentNextActionVerifyWithMicrodepositsArrivalDate setupIntentNextActionVerifyWithMicrodepositsHostedVerificationUrl = SetupIntentNextActionVerifyWithMicrodeposits { setupIntentNextActionVerifyWithMicrodepositsArrivalDate = setupIntentNextActionVerifyWithMicrodepositsArrivalDate, setupIntentNextActionVerifyWithMicrodepositsHostedVerificationUrl = setupIntentNextActionVerifyWithMicrodepositsHostedVerificationUrl }