stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.GetChargesCharge

Description

Contains the different functions to run the operation getChargesCharge

Synopsis

Documentation

getChargesCharge Source #

Arguments

:: (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

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.

Constructors

GetChargesChargeResponseError String

Means either no matching case available or a parse error

GetChargesChargeResponse200 Charge

Successful response.

GetChargesChargeResponseDefault Error

Error response.