Safe Haskell | None |
---|---|
Language | Haskell2010 |
StripeAPI.Operations.GetCheckoutSessions
Description
Contains the different functions to run the operation getCheckoutSessions
Synopsis
- getCheckoutSessions :: forall m. MonadHTTP m => GetCheckoutSessionsParameters -> StripeT m (Response GetCheckoutSessionsResponse)
- data GetCheckoutSessionsParameters = GetCheckoutSessionsParameters {
- getCheckoutSessionsParametersQueryEndingBefore :: Maybe Text
- getCheckoutSessionsParametersQueryExpand :: Maybe [Text]
- getCheckoutSessionsParametersQueryLimit :: Maybe Int
- getCheckoutSessionsParametersQueryPaymentIntent :: Maybe Text
- getCheckoutSessionsParametersQueryStartingAfter :: Maybe Text
- getCheckoutSessionsParametersQuerySubscription :: Maybe Text
- mkGetCheckoutSessionsParameters :: GetCheckoutSessionsParameters
- data GetCheckoutSessionsResponse
- data GetCheckoutSessionsResponseBody200 = GetCheckoutSessionsResponseBody200 {}
- mkGetCheckoutSessionsResponseBody200 :: [Checkout'session] -> Bool -> Text -> GetCheckoutSessionsResponseBody200
Documentation
Arguments
:: forall m. MonadHTTP m | |
=> GetCheckoutSessionsParameters | Contains all available parameters of this operation (query and path parameters) |
-> StripeT m (Response GetCheckoutSessionsResponse) | Monadic computation which returns the result of the operation |
GET /v1/checkout/sessions
<p>Returns a list of Checkout Sessions.</p>
data GetCheckoutSessionsParameters Source #
Defines the object schema located at paths./v1/checkout/sessions.GET.parameters
in the specification.
Constructors
GetCheckoutSessionsParameters | |
Fields
|
Instances
mkGetCheckoutSessionsParameters :: GetCheckoutSessionsParameters Source #
Create a new GetCheckoutSessionsParameters
with all required fields.
data GetCheckoutSessionsResponse Source #
Represents a response of the operation getCheckoutSessions
.
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), GetCheckoutSessionsResponseError
is used.
Constructors
GetCheckoutSessionsResponseError String | Means either no matching case available or a parse error |
GetCheckoutSessionsResponse200 GetCheckoutSessionsResponseBody200 | Successful response. |
GetCheckoutSessionsResponseDefault Error | Error response. |
Instances
Eq GetCheckoutSessionsResponse Source # | |
Defined in StripeAPI.Operations.GetCheckoutSessions Methods (==) :: GetCheckoutSessionsResponse -> GetCheckoutSessionsResponse -> Bool # (/=) :: GetCheckoutSessionsResponse -> GetCheckoutSessionsResponse -> Bool # | |
Show GetCheckoutSessionsResponse Source # | |
Defined in StripeAPI.Operations.GetCheckoutSessions Methods showsPrec :: Int -> GetCheckoutSessionsResponse -> ShowS # show :: GetCheckoutSessionsResponse -> String # showList :: [GetCheckoutSessionsResponse] -> ShowS # |
data GetCheckoutSessionsResponseBody200 Source #
Defines the object schema located at paths./v1/checkout/sessions.GET.responses.200.content.application/json.schema
in the specification.
Constructors
GetCheckoutSessionsResponseBody200 | |
Fields
|
Instances
mkGetCheckoutSessionsResponseBody200 Source #
Arguments
:: [Checkout'session] | |
-> Bool | |
-> Text | |
-> GetCheckoutSessionsResponseBody200 |
Create a new GetCheckoutSessionsResponseBody200
with all required fields.