Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getPaymentIntentsIntent
Synopsis
- getPaymentIntentsIntent :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> Maybe String -> String -> GetPaymentIntentsIntentRequestBody -> m (Either HttpException (Response GetPaymentIntentsIntentResponse))
- getPaymentIntentsIntentRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> Maybe String -> String -> GetPaymentIntentsIntentRequestBody -> m (Either HttpException (Response ByteString))
- getPaymentIntentsIntentM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> Maybe String -> String -> GetPaymentIntentsIntentRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetPaymentIntentsIntentResponse))
- getPaymentIntentsIntentRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> Maybe String -> String -> GetPaymentIntentsIntentRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data GetPaymentIntentsIntentRequestBody = GetPaymentIntentsIntentRequestBody {
- data GetPaymentIntentsIntentResponse
Documentation
getPaymentIntentsIntent Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> Maybe String | client_secret: The client secret of the PaymentIntent. Required if a publishable key is used to retrieve the source. |
-> Maybe String | expand: Specifies which fields in the response should be expanded. |
-> String | intent | Constraints: Maximum length of 5000 |
-> GetPaymentIntentsIntentRequestBody | The request body to send |
-> m (Either HttpException (Response GetPaymentIntentsIntentResponse)) | Monad containing the result of the operation |
GET /v1/payment_intents/{intent}
<p>Retrieves the details of a PaymentIntent that has previously been created. </p>
<p>Client-side retrieval using a publishable key is allowed when the <code>client_secret</code> is provided in the query string. </p>
<p>When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the <a href="#payment_intent_object">payment intent</a> object reference for more details.</p>
getPaymentIntentsIntentRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> Maybe String -> String -> GetPaymentIntentsIntentRequestBody -> m (Either HttpException (Response ByteString)) Source #
GET /v1/payment_intents/{intent}
The same as getPaymentIntentsIntent
but returns the raw ByteString
getPaymentIntentsIntentM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> Maybe String -> String -> GetPaymentIntentsIntentRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetPaymentIntentsIntentResponse)) Source #
GET /v1/payment_intents/{intent}
Monadic version of getPaymentIntentsIntent
(use with runWithConfiguration
)
getPaymentIntentsIntentRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> Maybe String -> String -> GetPaymentIntentsIntentRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
GET /v1/payment_intents/{intent}
Monadic version of getPaymentIntentsIntentRaw
(use with runWithConfiguration
)
data GetPaymentIntentsIntentRequestBody Source #
Defines the data type for the schema getPaymentIntentsIntentRequestBody
data GetPaymentIntentsIntentResponse Source #
Represents a response of the operation getPaymentIntentsIntent
.
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), GetPaymentIntentsIntentResponseError
is used.
GetPaymentIntentsIntentResponseError String | Means either no matching case available or a parse error |
GetPaymentIntentsIntentResponse200 PaymentIntent | Successful response. |
GetPaymentIntentsIntentResponseDefault Error | Error response. |