Safe Haskell | None |
---|---|
Language | Haskell2010 |
StripeAPI.Operations.GetPlans
Description
Contains the different functions to run the operation getPlans
Synopsis
- getPlans :: forall m. MonadHTTP m => GetPlansParameters -> ClientT 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
Arguments
:: forall m. MonadHTTP m | |
=> GetPlansParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT 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.
Constructors
GetPlansParameters | |
Fields
|
Instances
Eq GetPlansParameters Source # | |
Defined in StripeAPI.Operations.GetPlans Methods (==) :: GetPlansParameters -> GetPlansParameters -> Bool # (/=) :: GetPlansParameters -> GetPlansParameters -> Bool # | |
Show GetPlansParameters Source # | |
Defined in StripeAPI.Operations.GetPlans Methods showsPrec :: Int -> GetPlansParameters -> ShowS # show :: GetPlansParameters -> String # showList :: [GetPlansParameters] -> ShowS # | |
ToJSON GetPlansParameters Source # | |
Defined in StripeAPI.Operations.GetPlans Methods toJSON :: GetPlansParameters -> Value # toEncoding :: GetPlansParameters -> Encoding # toJSONList :: [GetPlansParameters] -> Value # toEncodingList :: [GetPlansParameters] -> Encoding # | |
FromJSON GetPlansParameters Source # | |
Defined in StripeAPI.Operations.GetPlans Methods 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.
Constructors
GetPlansParametersQueryCreated'OneOf1 | |
Instances
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.
Constructors
GetPlansParametersQueryCreated'GetPlansParametersQueryCreated'OneOf1 GetPlansParametersQueryCreated'OneOf1 | |
GetPlansParametersQueryCreated'Int Int |
Instances
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.
Constructors
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 Methods (==) :: GetPlansResponse -> GetPlansResponse -> Bool # (/=) :: GetPlansResponse -> GetPlansResponse -> Bool # | |
Show GetPlansResponse Source # | |
Defined in StripeAPI.Operations.GetPlans Methods 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.
Constructors
GetPlansResponseBody200 | |
Fields
|
Instances
Eq GetPlansResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetPlans Methods (==) :: GetPlansResponseBody200 -> GetPlansResponseBody200 -> Bool # (/=) :: GetPlansResponseBody200 -> GetPlansResponseBody200 -> Bool # | |
Show GetPlansResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetPlans Methods showsPrec :: Int -> GetPlansResponseBody200 -> ShowS # show :: GetPlansResponseBody200 -> String # showList :: [GetPlansResponseBody200] -> ShowS # | |
ToJSON GetPlansResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetPlans Methods toJSON :: GetPlansResponseBody200 -> Value # toEncoding :: GetPlansResponseBody200 -> Encoding # toJSONList :: [GetPlansResponseBody200] -> Value # | |
FromJSON GetPlansResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetPlans Methods parseJSON :: Value -> Parser GetPlansResponseBody200 # parseJSONList :: Value -> Parser [GetPlansResponseBody200] # |
mkGetPlansResponseBody200 Source #
Arguments
:: [Plan] | |
-> Bool | |
-> Text | |
-> GetPlansResponseBody200 |
Create a new GetPlansResponseBody200
with all required fields.