stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.GetOrdersId

Description

Contains the different functions to run the operation getOrdersId

Synopsis

Documentation

getOrdersId Source #

Arguments

:: (MonadHTTP m, SecurityScheme s) 
=> Configuration s

The configuration to use in the request

-> Maybe String

expand: Specifies which fields in the response should be expanded.

-> String

id | Constraints: Maximum length of 5000

-> GetOrdersIdRequestBody

The request body to send

-> m (Either HttpException (Response GetOrdersIdResponse))

Monad containing the result of the operation

GET /v1/orders/{id}

<p>Retrieves the details of an existing order. Supply the unique order ID from either an order creation request or the order list, and Stripe will return the corresponding order information.</p>

getOrdersIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> String -> GetOrdersIdRequestBody -> m (Either HttpException (Response ByteString)) Source #

GET /v1/orders/{id}

The same as getOrdersId but returns the raw ByteString

data GetOrdersIdResponse Source #

Represents a response of the operation getOrdersId.

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), GetOrdersIdResponseError is used.

Constructors

GetOrdersIdResponseError String

Means either no matching case available or a parse error

GetOrdersIdResponse200 Order

Successful response.

GetOrdersIdResponseDefault Error

Error response.