Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getOrders
Synopsis
- getOrders :: forall m. MonadHTTP m => GetOrdersParameters -> ClientT m (Response GetOrdersResponse)
- data GetOrdersParameters = GetOrdersParameters {
- getOrdersParametersQueryCreated :: Maybe GetOrdersParametersQueryCreated'Variants
- getOrdersParametersQueryCustomer :: Maybe Text
- getOrdersParametersQueryEndingBefore :: Maybe Text
- getOrdersParametersQueryExpand :: Maybe [Text]
- getOrdersParametersQueryIds :: Maybe [Text]
- getOrdersParametersQueryLimit :: Maybe Int
- getOrdersParametersQueryStartingAfter :: Maybe Text
- getOrdersParametersQueryStatus :: Maybe Text
- getOrdersParametersQueryStatusTransitions :: Maybe GetOrdersParametersQueryStatusTransitions'
- getOrdersParametersQueryUpstreamIds :: Maybe [Text]
- mkGetOrdersParameters :: GetOrdersParameters
- data GetOrdersParametersQueryCreated'OneOf1 = GetOrdersParametersQueryCreated'OneOf1 {}
- mkGetOrdersParametersQueryCreated'OneOf1 :: GetOrdersParametersQueryCreated'OneOf1
- data GetOrdersParametersQueryCreated'Variants
- data GetOrdersParametersQueryStatusTransitions' = GetOrdersParametersQueryStatusTransitions' {
- getOrdersParametersQueryStatusTransitions'Canceled :: Maybe GetOrdersParametersQueryStatusTransitions'Canceled'Variants
- getOrdersParametersQueryStatusTransitions'Fulfilled :: Maybe GetOrdersParametersQueryStatusTransitions'Fulfilled'Variants
- getOrdersParametersQueryStatusTransitions'Paid :: Maybe GetOrdersParametersQueryStatusTransitions'Paid'Variants
- getOrdersParametersQueryStatusTransitions'Returned :: Maybe GetOrdersParametersQueryStatusTransitions'Returned'Variants
- mkGetOrdersParametersQueryStatusTransitions' :: GetOrdersParametersQueryStatusTransitions'
- data GetOrdersParametersQueryStatusTransitions'Canceled'OneOf1 = GetOrdersParametersQueryStatusTransitions'Canceled'OneOf1 {}
- mkGetOrdersParametersQueryStatusTransitions'Canceled'OneOf1 :: GetOrdersParametersQueryStatusTransitions'Canceled'OneOf1
- data GetOrdersParametersQueryStatusTransitions'Canceled'Variants
- data GetOrdersParametersQueryStatusTransitions'Fulfilled'OneOf1 = GetOrdersParametersQueryStatusTransitions'Fulfilled'OneOf1 {}
- mkGetOrdersParametersQueryStatusTransitions'Fulfilled'OneOf1 :: GetOrdersParametersQueryStatusTransitions'Fulfilled'OneOf1
- data GetOrdersParametersQueryStatusTransitions'Fulfilled'Variants
- data GetOrdersParametersQueryStatusTransitions'Paid'OneOf1 = GetOrdersParametersQueryStatusTransitions'Paid'OneOf1 {}
- mkGetOrdersParametersQueryStatusTransitions'Paid'OneOf1 :: GetOrdersParametersQueryStatusTransitions'Paid'OneOf1
- data GetOrdersParametersQueryStatusTransitions'Paid'Variants
- data GetOrdersParametersQueryStatusTransitions'Returned'OneOf1 = GetOrdersParametersQueryStatusTransitions'Returned'OneOf1 {}
- mkGetOrdersParametersQueryStatusTransitions'Returned'OneOf1 :: GetOrdersParametersQueryStatusTransitions'Returned'OneOf1
- data GetOrdersParametersQueryStatusTransitions'Returned'Variants
- data GetOrdersResponse
- data GetOrdersResponseBody200 = GetOrdersResponseBody200 {}
- mkGetOrdersResponseBody200 :: [Order] -> Bool -> Text -> GetOrdersResponseBody200
Documentation
:: forall m. MonadHTTP m | |
=> GetOrdersParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response GetOrdersResponse) | Monadic computation which returns the result of the operation |
GET /v1/orders
<p>Returns a list of your orders. The orders are returned sorted by creation date, with the most recently created orders appearing first.</p>
data GetOrdersParameters Source #
Defines the object schema located at paths./v1/orders.GET.parameters
in the specification.
GetOrdersParameters | |
|
Instances
Eq GetOrdersParameters Source # | |
Defined in StripeAPI.Operations.GetOrders (==) :: GetOrdersParameters -> GetOrdersParameters -> Bool # (/=) :: GetOrdersParameters -> GetOrdersParameters -> Bool # | |
Show GetOrdersParameters Source # | |
Defined in StripeAPI.Operations.GetOrders showsPrec :: Int -> GetOrdersParameters -> ShowS # show :: GetOrdersParameters -> String # showList :: [GetOrdersParameters] -> ShowS # | |
ToJSON GetOrdersParameters Source # | |
Defined in StripeAPI.Operations.GetOrders toJSON :: GetOrdersParameters -> Value # toEncoding :: GetOrdersParameters -> Encoding # toJSONList :: [GetOrdersParameters] -> Value # toEncodingList :: [GetOrdersParameters] -> Encoding # | |
FromJSON GetOrdersParameters Source # | |
Defined in StripeAPI.Operations.GetOrders parseJSON :: Value -> Parser GetOrdersParameters # parseJSONList :: Value -> Parser [GetOrdersParameters] # |
mkGetOrdersParameters :: GetOrdersParameters Source #
Create a new GetOrdersParameters
with all required fields.
data GetOrdersParametersQueryCreated'OneOf1 Source #
Defines the object schema located at paths./v1/orders.GET.parameters.properties.queryCreated.anyOf
in the specification.
mkGetOrdersParametersQueryCreated'OneOf1 :: GetOrdersParametersQueryCreated'OneOf1 Source #
Create a new GetOrdersParametersQueryCreated'OneOf1
with all required fields.
data GetOrdersParametersQueryCreated'Variants Source #
Defines the oneOf schema located at paths./v1/orders.GET.parameters.properties.queryCreated.anyOf
in the specification.
Represents the parameter named 'created'
Date this order was created.
GetOrdersParametersQueryCreated'GetOrdersParametersQueryCreated'OneOf1 GetOrdersParametersQueryCreated'OneOf1 | |
GetOrdersParametersQueryCreated'Int Int |
data GetOrdersParametersQueryStatusTransitions' Source #
Defines the object schema located at paths./v1/orders.GET.parameters.properties.queryStatus_transitions
in the specification.
Represents the parameter named 'status_transitions'
Filter orders based on when they were paid, fulfilled, canceled, or returned.
mkGetOrdersParametersQueryStatusTransitions' :: GetOrdersParametersQueryStatusTransitions' Source #
Create a new GetOrdersParametersQueryStatusTransitions'
with all required fields.
data GetOrdersParametersQueryStatusTransitions'Canceled'OneOf1 Source #
Defines the object schema located at paths./v1/orders.GET.parameters.properties.queryStatus_transitions.properties.canceled.anyOf
in the specification.
Instances
mkGetOrdersParametersQueryStatusTransitions'Canceled'OneOf1 :: GetOrdersParametersQueryStatusTransitions'Canceled'OneOf1 Source #
Create a new GetOrdersParametersQueryStatusTransitions'Canceled'OneOf1
with all required fields.
data GetOrdersParametersQueryStatusTransitions'Canceled'Variants Source #
Defines the oneOf schema located at paths./v1/orders.GET.parameters.properties.queryStatus_transitions.properties.canceled.anyOf
in the specification.
Instances
data GetOrdersParametersQueryStatusTransitions'Fulfilled'OneOf1 Source #
Defines the object schema located at paths./v1/orders.GET.parameters.properties.queryStatus_transitions.properties.fulfilled.anyOf
in the specification.
Instances
mkGetOrdersParametersQueryStatusTransitions'Fulfilled'OneOf1 :: GetOrdersParametersQueryStatusTransitions'Fulfilled'OneOf1 Source #
Create a new GetOrdersParametersQueryStatusTransitions'Fulfilled'OneOf1
with all required fields.
data GetOrdersParametersQueryStatusTransitions'Fulfilled'Variants Source #
Defines the oneOf schema located at paths./v1/orders.GET.parameters.properties.queryStatus_transitions.properties.fulfilled.anyOf
in the specification.
Instances
data GetOrdersParametersQueryStatusTransitions'Paid'OneOf1 Source #
Defines the object schema located at paths./v1/orders.GET.parameters.properties.queryStatus_transitions.properties.paid.anyOf
in the specification.
Instances
mkGetOrdersParametersQueryStatusTransitions'Paid'OneOf1 :: GetOrdersParametersQueryStatusTransitions'Paid'OneOf1 Source #
Create a new GetOrdersParametersQueryStatusTransitions'Paid'OneOf1
with all required fields.
data GetOrdersParametersQueryStatusTransitions'Paid'Variants Source #
Defines the oneOf schema located at paths./v1/orders.GET.parameters.properties.queryStatus_transitions.properties.paid.anyOf
in the specification.
Instances
data GetOrdersParametersQueryStatusTransitions'Returned'OneOf1 Source #
Defines the object schema located at paths./v1/orders.GET.parameters.properties.queryStatus_transitions.properties.returned.anyOf
in the specification.
Instances
mkGetOrdersParametersQueryStatusTransitions'Returned'OneOf1 :: GetOrdersParametersQueryStatusTransitions'Returned'OneOf1 Source #
Create a new GetOrdersParametersQueryStatusTransitions'Returned'OneOf1
with all required fields.
data GetOrdersParametersQueryStatusTransitions'Returned'Variants Source #
Defines the oneOf schema located at paths./v1/orders.GET.parameters.properties.queryStatus_transitions.properties.returned.anyOf
in the specification.
Instances
data GetOrdersResponse Source #
Represents a response of the operation getOrders
.
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), GetOrdersResponseError
is used.
GetOrdersResponseError String | Means either no matching case available or a parse error |
GetOrdersResponse200 GetOrdersResponseBody200 | Successful response. |
GetOrdersResponseDefault Error | Error response. |
Instances
Eq GetOrdersResponse Source # | |
Defined in StripeAPI.Operations.GetOrders (==) :: GetOrdersResponse -> GetOrdersResponse -> Bool # (/=) :: GetOrdersResponse -> GetOrdersResponse -> Bool # | |
Show GetOrdersResponse Source # | |
Defined in StripeAPI.Operations.GetOrders showsPrec :: Int -> GetOrdersResponse -> ShowS # show :: GetOrdersResponse -> String # showList :: [GetOrdersResponse] -> ShowS # |
data GetOrdersResponseBody200 Source #
Defines the object schema located at paths./v1/orders.GET.responses.200.content.application/json.schema
in the specification.
GetOrdersResponseBody200 | |
|
Instances
Eq GetOrdersResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetOrders | |
Show GetOrdersResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetOrders showsPrec :: Int -> GetOrdersResponseBody200 -> ShowS # show :: GetOrdersResponseBody200 -> String # showList :: [GetOrdersResponseBody200] -> ShowS # | |
ToJSON GetOrdersResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetOrders | |
FromJSON GetOrdersResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetOrders |
mkGetOrdersResponseBody200 Source #
:: [Order] | |
-> Bool | |
-> Text | |
-> GetOrdersResponseBody200 |
Create a new GetOrdersResponseBody200
with all required fields.