{-# 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 PaymentIntentNextActionVerifyWithMicrodeposits module StripeAPI.Types.PaymentIntentNextActionVerifyWithMicrodeposits where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as Data.Aeson.Encoding.Internal import qualified Data.Aeson as Data.Aeson.Types import qualified Data.Aeson as Data.Aeson.Types.FromJSON import qualified Data.Aeson as Data.Aeson.Types.Internal import qualified Data.Aeson as Data.Aeson.Types.ToJSON import qualified Data.ByteString.Char8 import qualified Data.ByteString.Char8 as Data.ByteString.Internal import qualified Data.Functor import qualified Data.Scientific import qualified Data.Text import qualified Data.Text.Internal import qualified Data.Time.Calendar as Data.Time.Calendar.Days import qualified Data.Time.LocalTime as Data.Time.LocalTime.Internal.ZonedTime import qualified GHC.Base import qualified GHC.Classes import qualified GHC.Int import qualified GHC.Show import qualified GHC.Types import qualified StripeAPI.Common import StripeAPI.TypeAlias import qualified Prelude as GHC.Integer.Type import qualified Prelude as GHC.Maybe -- | Defines the object schema located at @components.schemas.payment_intent_next_action_verify_with_microdeposits@ in the specification. data PaymentIntentNextActionVerifyWithMicrodeposits = PaymentIntentNextActionVerifyWithMicrodeposits { -- | arrival_date: The timestamp when the microdeposits are expected to land. paymentIntentNextActionVerifyWithMicrodepositsArrivalDate :: 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 paymentIntentNextActionVerifyWithMicrodepositsHostedVerificationUrl :: Data.Text.Internal.Text } deriving ( GHC.Show.Show, GHC.Classes.Eq ) instance Data.Aeson.Types.ToJSON.ToJSON PaymentIntentNextActionVerifyWithMicrodeposits where toJSON obj = Data.Aeson.Types.Internal.object ("arrival_date" Data.Aeson.Types.ToJSON..= paymentIntentNextActionVerifyWithMicrodepositsArrivalDate obj : "hosted_verification_url" Data.Aeson.Types.ToJSON..= paymentIntentNextActionVerifyWithMicrodepositsHostedVerificationUrl obj : GHC.Base.mempty) toEncoding obj = Data.Aeson.Encoding.Internal.pairs (("arrival_date" Data.Aeson.Types.ToJSON..= paymentIntentNextActionVerifyWithMicrodepositsArrivalDate obj) GHC.Base.<> ("hosted_verification_url" Data.Aeson.Types.ToJSON..= paymentIntentNextActionVerifyWithMicrodepositsHostedVerificationUrl obj)) instance Data.Aeson.Types.FromJSON.FromJSON PaymentIntentNextActionVerifyWithMicrodeposits where parseJSON = Data.Aeson.Types.FromJSON.withObject "PaymentIntentNextActionVerifyWithMicrodeposits" (\obj -> (GHC.Base.pure PaymentIntentNextActionVerifyWithMicrodeposits GHC.Base.<*> (obj Data.Aeson.Types.FromJSON..: "arrival_date")) GHC.Base.<*> (obj Data.Aeson.Types.FromJSON..: "hosted_verification_url")) -- | Create a new 'PaymentIntentNextActionVerifyWithMicrodeposits' with all required fields. mkPaymentIntentNextActionVerifyWithMicrodeposits :: -- | 'paymentIntentNextActionVerifyWithMicrodepositsArrivalDate' GHC.Types.Int -> -- | 'paymentIntentNextActionVerifyWithMicrodepositsHostedVerificationUrl' Data.Text.Internal.Text -> PaymentIntentNextActionVerifyWithMicrodeposits mkPaymentIntentNextActionVerifyWithMicrodeposits paymentIntentNextActionVerifyWithMicrodepositsArrivalDate paymentIntentNextActionVerifyWithMicrodepositsHostedVerificationUrl = PaymentIntentNextActionVerifyWithMicrodeposits { paymentIntentNextActionVerifyWithMicrodepositsArrivalDate = paymentIntentNextActionVerifyWithMicrodepositsArrivalDate, paymentIntentNextActionVerifyWithMicrodepositsHostedVerificationUrl = paymentIntentNextActionVerifyWithMicrodepositsHostedVerificationUrl }