Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getSubscriptions
Synopsis
- getSubscriptions :: forall m. MonadHTTP m => GetSubscriptionsParameters -> ClientT m (Response GetSubscriptionsResponse)
- data GetSubscriptionsParameters = GetSubscriptionsParameters {
- getSubscriptionsParametersQueryCollectionMethod :: Maybe GetSubscriptionsParametersQueryCollectionMethod'
- getSubscriptionsParametersQueryCreated :: Maybe GetSubscriptionsParametersQueryCreated'Variants
- getSubscriptionsParametersQueryCurrentPeriodEnd :: Maybe GetSubscriptionsParametersQueryCurrentPeriodEnd'Variants
- getSubscriptionsParametersQueryCurrentPeriodStart :: Maybe GetSubscriptionsParametersQueryCurrentPeriodStart'Variants
- getSubscriptionsParametersQueryCustomer :: Maybe Text
- getSubscriptionsParametersQueryEndingBefore :: Maybe Text
- getSubscriptionsParametersQueryExpand :: Maybe [Text]
- getSubscriptionsParametersQueryLimit :: Maybe Int
- getSubscriptionsParametersQueryPrice :: Maybe Text
- getSubscriptionsParametersQueryStartingAfter :: Maybe Text
- getSubscriptionsParametersQueryStatus :: Maybe GetSubscriptionsParametersQueryStatus'
- mkGetSubscriptionsParameters :: GetSubscriptionsParameters
- data GetSubscriptionsParametersQueryCollectionMethod'
- data GetSubscriptionsParametersQueryCreated'OneOf1 = GetSubscriptionsParametersQueryCreated'OneOf1 {}
- mkGetSubscriptionsParametersQueryCreated'OneOf1 :: GetSubscriptionsParametersQueryCreated'OneOf1
- data GetSubscriptionsParametersQueryCreated'Variants
- data GetSubscriptionsParametersQueryCurrentPeriodEnd'OneOf1 = GetSubscriptionsParametersQueryCurrentPeriodEnd'OneOf1 {}
- mkGetSubscriptionsParametersQueryCurrentPeriodEnd'OneOf1 :: GetSubscriptionsParametersQueryCurrentPeriodEnd'OneOf1
- data GetSubscriptionsParametersQueryCurrentPeriodEnd'Variants
- data GetSubscriptionsParametersQueryCurrentPeriodStart'OneOf1 = GetSubscriptionsParametersQueryCurrentPeriodStart'OneOf1 {}
- mkGetSubscriptionsParametersQueryCurrentPeriodStart'OneOf1 :: GetSubscriptionsParametersQueryCurrentPeriodStart'OneOf1
- data GetSubscriptionsParametersQueryCurrentPeriodStart'Variants
- data GetSubscriptionsParametersQueryStatus'
- = GetSubscriptionsParametersQueryStatus'Other Value
- | GetSubscriptionsParametersQueryStatus'Typed Text
- | GetSubscriptionsParametersQueryStatus'EnumActive
- | GetSubscriptionsParametersQueryStatus'EnumAll
- | GetSubscriptionsParametersQueryStatus'EnumCanceled
- | GetSubscriptionsParametersQueryStatus'EnumEnded
- | GetSubscriptionsParametersQueryStatus'EnumIncomplete
- | GetSubscriptionsParametersQueryStatus'EnumIncompleteExpired
- | GetSubscriptionsParametersQueryStatus'EnumPastDue
- | GetSubscriptionsParametersQueryStatus'EnumTrialing
- | GetSubscriptionsParametersQueryStatus'EnumUnpaid
- data GetSubscriptionsResponse
- data GetSubscriptionsResponseBody200 = GetSubscriptionsResponseBody200 {}
- mkGetSubscriptionsResponseBody200 :: [Subscription] -> Bool -> Text -> GetSubscriptionsResponseBody200
Documentation
:: forall m. MonadHTTP m | |
=> GetSubscriptionsParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response GetSubscriptionsResponse) | Monadic computation which returns the result of the operation |
GET /v1/subscriptions
<p>By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify <code>status=canceled</code>.</p>
data GetSubscriptionsParameters Source #
Defines the object schema located at paths./v1/subscriptions.GET.parameters
in the specification.
GetSubscriptionsParameters | |
|
Instances
mkGetSubscriptionsParameters :: GetSubscriptionsParameters Source #
Create a new GetSubscriptionsParameters
with all required fields.
data GetSubscriptionsParametersQueryCollectionMethod' Source #
Defines the enum schema located at paths./v1/subscriptions.GET.parameters.properties.queryCollection_method
in the specification.
Represents the parameter named 'collection_method'
The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`.
GetSubscriptionsParametersQueryCollectionMethod'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
GetSubscriptionsParametersQueryCollectionMethod'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
GetSubscriptionsParametersQueryCollectionMethod'EnumChargeAutomatically | Represents the JSON value |
GetSubscriptionsParametersQueryCollectionMethod'EnumSendInvoice | Represents the JSON value |
Instances
data GetSubscriptionsParametersQueryCreated'OneOf1 Source #
Defines the object schema located at paths./v1/subscriptions.GET.parameters.properties.queryCreated.anyOf
in the specification.
Instances
mkGetSubscriptionsParametersQueryCreated'OneOf1 :: GetSubscriptionsParametersQueryCreated'OneOf1 Source #
Create a new GetSubscriptionsParametersQueryCreated'OneOf1
with all required fields.
data GetSubscriptionsParametersQueryCreated'Variants Source #
Defines the oneOf schema located at paths./v1/subscriptions.GET.parameters.properties.queryCreated.anyOf
in the specification.
Represents the parameter named 'created'
GetSubscriptionsParametersQueryCreated'GetSubscriptionsParametersQueryCreated'OneOf1 GetSubscriptionsParametersQueryCreated'OneOf1 | |
GetSubscriptionsParametersQueryCreated'Int Int |
Instances
data GetSubscriptionsParametersQueryCurrentPeriodEnd'OneOf1 Source #
Defines the object schema located at paths./v1/subscriptions.GET.parameters.properties.queryCurrent_period_end.anyOf
in the specification.
Instances
mkGetSubscriptionsParametersQueryCurrentPeriodEnd'OneOf1 :: GetSubscriptionsParametersQueryCurrentPeriodEnd'OneOf1 Source #
Create a new GetSubscriptionsParametersQueryCurrentPeriodEnd'OneOf1
with all required fields.
data GetSubscriptionsParametersQueryCurrentPeriodEnd'Variants Source #
Defines the oneOf schema located at paths./v1/subscriptions.GET.parameters.properties.queryCurrent_period_end.anyOf
in the specification.
Represents the parameter named 'current_period_end'
Instances
data GetSubscriptionsParametersQueryCurrentPeriodStart'OneOf1 Source #
Defines the object schema located at paths./v1/subscriptions.GET.parameters.properties.queryCurrent_period_start.anyOf
in the specification.
Instances
mkGetSubscriptionsParametersQueryCurrentPeriodStart'OneOf1 :: GetSubscriptionsParametersQueryCurrentPeriodStart'OneOf1 Source #
Create a new GetSubscriptionsParametersQueryCurrentPeriodStart'OneOf1
with all required fields.
data GetSubscriptionsParametersQueryCurrentPeriodStart'Variants Source #
Defines the oneOf schema located at paths./v1/subscriptions.GET.parameters.properties.queryCurrent_period_start.anyOf
in the specification.
Represents the parameter named 'current_period_start'
Instances
data GetSubscriptionsParametersQueryStatus' Source #
Defines the enum schema located at paths./v1/subscriptions.GET.parameters.properties.queryStatus
in the specification.
Represents the parameter named 'status'
The status of the subscriptions to retrieve. Passing in a value of `canceled` will return all canceled subscriptions, including those belonging to deleted customers. Pass `ended` to find subscriptions that are canceled and subscriptions that are expired due to incomplete payment. Passing in a value of `all` will return subscriptions of all statuses. If no value is supplied, all subscriptions that have not been canceled are returned.
GetSubscriptionsParametersQueryStatus'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
GetSubscriptionsParametersQueryStatus'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
GetSubscriptionsParametersQueryStatus'EnumActive | Represents the JSON value |
GetSubscriptionsParametersQueryStatus'EnumAll | Represents the JSON value |
GetSubscriptionsParametersQueryStatus'EnumCanceled | Represents the JSON value |
GetSubscriptionsParametersQueryStatus'EnumEnded | Represents the JSON value |
GetSubscriptionsParametersQueryStatus'EnumIncomplete | Represents the JSON value |
GetSubscriptionsParametersQueryStatus'EnumIncompleteExpired | Represents the JSON value |
GetSubscriptionsParametersQueryStatus'EnumPastDue | Represents the JSON value |
GetSubscriptionsParametersQueryStatus'EnumTrialing | Represents the JSON value |
GetSubscriptionsParametersQueryStatus'EnumUnpaid | Represents the JSON value |
data GetSubscriptionsResponse Source #
Represents a response of the operation getSubscriptions
.
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), GetSubscriptionsResponseError
is used.
GetSubscriptionsResponseError String | Means either no matching case available or a parse error |
GetSubscriptionsResponse200 GetSubscriptionsResponseBody200 | Successful response. |
GetSubscriptionsResponseDefault Error | Error response. |
Instances
Eq GetSubscriptionsResponse Source # | |
Defined in StripeAPI.Operations.GetSubscriptions | |
Show GetSubscriptionsResponse Source # | |
Defined in StripeAPI.Operations.GetSubscriptions showsPrec :: Int -> GetSubscriptionsResponse -> ShowS # show :: GetSubscriptionsResponse -> String # showList :: [GetSubscriptionsResponse] -> ShowS # |
data GetSubscriptionsResponseBody200 Source #
Defines the object schema located at paths./v1/subscriptions.GET.responses.200.content.application/json.schema
in the specification.
GetSubscriptionsResponseBody200 | |
|