Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getPlans
Synopsis
- getPlans :: forall m. MonadHTTP m => GetPlansParameters -> StripeT m (Response GetPlansResponse)
- data GetPlansParameters = GetPlansParameters {
- getPlansParametersQueryActive :: Maybe Bool
- getPlansParametersQueryCreated :: Maybe GetPlansParametersQueryCreated'Variants
- getPlansParametersQueryEndingBefore :: Maybe Text
- getPlansParametersQueryExpand :: Maybe [Text]
- getPlansParametersQueryLimit :: Maybe Int
- getPlansParametersQueryProduct :: Maybe Text
- getPlansParametersQueryStartingAfter :: Maybe Text
- mkGetPlansParameters :: GetPlansParameters
- data GetPlansParametersQueryCreated'OneOf1 = GetPlansParametersQueryCreated'OneOf1 {}
- mkGetPlansParametersQueryCreated'OneOf1 :: GetPlansParametersQueryCreated'OneOf1
- data GetPlansParametersQueryCreated'Variants
- data GetPlansResponse
- data GetPlansResponseBody200 = GetPlansResponseBody200 {}
- mkGetPlansResponseBody200 :: [Plan] -> Bool -> Text -> GetPlansResponseBody200
Documentation
:: forall m. MonadHTTP m | |
=> GetPlansParameters | Contains all available parameters of this operation (query and path parameters) |
-> StripeT m (Response GetPlansResponse) | Monadic computation which returns the result of the operation |
GET /v1/plans
<p>Returns a list of your plans.</p>
data GetPlansParameters Source #
Defines the object schema located at paths./v1/plans.GET.parameters
in the specification.
GetPlansParameters | |
|
Instances
Eq GetPlansParameters Source # | |
Defined in StripeAPI.Operations.GetPlans (==) :: GetPlansParameters -> GetPlansParameters -> Bool # (/=) :: GetPlansParameters -> GetPlansParameters -> Bool # | |
Show GetPlansParameters Source # | |
Defined in StripeAPI.Operations.GetPlans showsPrec :: Int -> GetPlansParameters -> ShowS # show :: GetPlansParameters -> String # showList :: [GetPlansParameters] -> ShowS # | |
ToJSON GetPlansParameters Source # | |
Defined in StripeAPI.Operations.GetPlans toJSON :: GetPlansParameters -> Value # toEncoding :: GetPlansParameters -> Encoding # toJSONList :: [GetPlansParameters] -> Value # toEncodingList :: [GetPlansParameters] -> Encoding # | |
FromJSON GetPlansParameters Source # | |
Defined in StripeAPI.Operations.GetPlans parseJSON :: Value -> Parser GetPlansParameters # parseJSONList :: Value -> Parser [GetPlansParameters] # |
mkGetPlansParameters :: GetPlansParameters Source #
Create a new GetPlansParameters
with all required fields.
data GetPlansParametersQueryCreated'OneOf1 Source #
Defines the object schema located at paths./v1/plans.GET.parameters.properties.queryCreated.anyOf
in the specification.
mkGetPlansParametersQueryCreated'OneOf1 :: GetPlansParametersQueryCreated'OneOf1 Source #
Create a new GetPlansParametersQueryCreated'OneOf1
with all required fields.
data GetPlansParametersQueryCreated'Variants Source #
Defines the oneOf schema located at paths./v1/plans.GET.parameters.properties.queryCreated.anyOf
in the specification.
Represents the parameter named 'created'
A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.
GetPlansParametersQueryCreated'GetPlansParametersQueryCreated'OneOf1 GetPlansParametersQueryCreated'OneOf1 | |
GetPlansParametersQueryCreated'Int Int |
data GetPlansResponse Source #
Represents a response of the operation getPlans
.
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), GetPlansResponseError
is used.
GetPlansResponseError String | Means either no matching case available or a parse error |
GetPlansResponse200 GetPlansResponseBody200 | Successful response. |
GetPlansResponseDefault Error | Error response. |
Instances
Eq GetPlansResponse Source # | |
Defined in StripeAPI.Operations.GetPlans (==) :: GetPlansResponse -> GetPlansResponse -> Bool # (/=) :: GetPlansResponse -> GetPlansResponse -> Bool # | |
Show GetPlansResponse Source # | |
Defined in StripeAPI.Operations.GetPlans showsPrec :: Int -> GetPlansResponse -> ShowS # show :: GetPlansResponse -> String # showList :: [GetPlansResponse] -> ShowS # |
data GetPlansResponseBody200 Source #
Defines the object schema located at paths./v1/plans.GET.responses.200.content.application/json.schema
in the specification.
GetPlansResponseBody200 | |
|
Instances
Eq GetPlansResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetPlans | |
Show GetPlansResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetPlans showsPrec :: Int -> GetPlansResponseBody200 -> ShowS # show :: GetPlansResponseBody200 -> String # showList :: [GetPlansResponseBody200] -> ShowS # | |
ToJSON GetPlansResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetPlans | |
FromJSON GetPlansResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetPlans |
mkGetPlansResponseBody200 Source #
:: [Plan] | |
-> Bool | |
-> Text | |
-> GetPlansResponseBody200 |
Create a new GetPlansResponseBody200
with all required fields.