Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getChargesCharge
Synopsis
- getChargesCharge :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> Maybe String -> GetChargesChargeRequestBody -> m (Either HttpException (Response GetChargesChargeResponse))
- getChargesChargeRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> Maybe String -> GetChargesChargeRequestBody -> m (Either HttpException (Response ByteString))
- getChargesChargeM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> GetChargesChargeRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetChargesChargeResponse))
- getChargesChargeRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> GetChargesChargeRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data GetChargesChargeRequestBody = GetChargesChargeRequestBody {
- data GetChargesChargeResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | charge | Constraints: Maximum length of 5000 |
-> Maybe String | expand: Specifies which fields in the response should be expanded. |
-> GetChargesChargeRequestBody | The request body to send |
-> m (Either HttpException (Response GetChargesChargeResponse)) | Monad containing the result of the operation |
GET /v1/charges/{charge}
<p>Retrieves the details of a charge that has previously been created. Supply the unique charge ID that was returned from your previous request, and Stripe will return the corresponding charge information. The same information is returned when creating or refunding the charge.</p>
getChargesChargeRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> Maybe String -> GetChargesChargeRequestBody -> m (Either HttpException (Response ByteString)) Source #
GET /v1/charges/{charge}
The same as getChargesCharge
but returns the raw ByteString
getChargesChargeM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> GetChargesChargeRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetChargesChargeResponse)) Source #
GET /v1/charges/{charge}
Monadic version of getChargesCharge
(use with runWithConfiguration
)
getChargesChargeRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> GetChargesChargeRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
GET /v1/charges/{charge}
Monadic version of getChargesChargeRaw
(use with runWithConfiguration
)
data GetChargesChargeRequestBody Source #
Defines the data type for the schema getChargesChargeRequestBody
Instances
data GetChargesChargeResponse Source #
Represents a response of the operation getChargesCharge
.
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), GetChargesChargeResponseError
is used.
GetChargesChargeResponseError String | Means either no matching case available or a parse error |
GetChargesChargeResponse200 Charge | Successful response. |
GetChargesChargeResponseDefault Error | Error response. |
Instances
Eq GetChargesChargeResponse Source # | |
Defined in StripeAPI.Operations.GetChargesCharge | |
Show GetChargesChargeResponse Source # | |
Defined in StripeAPI.Operations.GetChargesCharge showsPrec :: Int -> GetChargesChargeResponse -> ShowS # show :: GetChargesChargeResponse -> String # showList :: [GetChargesChargeResponse] -> ShowS # |