stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.GetSubscriptions

Description

Contains the different functions to run the operation getSubscriptions

Synopsis

Documentation

getSubscriptions Source #

Arguments

:: 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.

Constructors

GetSubscriptionsParameters 

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`.

Constructors

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 "charge_automatically"

GetSubscriptionsParametersQueryCollectionMethod'EnumSendInvoice

Represents the JSON value "send_invoice"

data GetSubscriptionsParametersQueryCreated'OneOf1 Source #

Defines the object schema located at paths./v1/subscriptions.GET.parameters.properties.queryCreated.anyOf in the specification.

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'

data GetSubscriptionsParametersQueryCurrentPeriodEnd'OneOf1 Source #

Defines the object schema located at paths./v1/subscriptions.GET.parameters.properties.queryCurrent_period_end.anyOf in the specification.

Instances

Instances details
Eq GetSubscriptionsParametersQueryCurrentPeriodEnd'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.GetSubscriptions

Show GetSubscriptionsParametersQueryCurrentPeriodEnd'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.GetSubscriptions

ToJSON GetSubscriptionsParametersQueryCurrentPeriodEnd'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.GetSubscriptions

FromJSON GetSubscriptionsParametersQueryCurrentPeriodEnd'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.GetSubscriptions

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

Instances details
Eq GetSubscriptionsParametersQueryCurrentPeriodEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetSubscriptions

Show GetSubscriptionsParametersQueryCurrentPeriodEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetSubscriptions

ToJSON GetSubscriptionsParametersQueryCurrentPeriodEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetSubscriptions

FromJSON GetSubscriptionsParametersQueryCurrentPeriodEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetSubscriptions

data GetSubscriptionsParametersQueryCurrentPeriodStart'OneOf1 Source #

Defines the object schema located at paths./v1/subscriptions.GET.parameters.properties.queryCurrent_period_start.anyOf in the specification.

Instances

Instances details
Eq GetSubscriptionsParametersQueryCurrentPeriodStart'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.GetSubscriptions

Show GetSubscriptionsParametersQueryCurrentPeriodStart'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.GetSubscriptions

ToJSON GetSubscriptionsParametersQueryCurrentPeriodStart'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.GetSubscriptions

FromJSON GetSubscriptionsParametersQueryCurrentPeriodStart'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.GetSubscriptions

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

Instances details
Eq GetSubscriptionsParametersQueryCurrentPeriodStart'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetSubscriptions

Show GetSubscriptionsParametersQueryCurrentPeriodStart'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetSubscriptions

ToJSON GetSubscriptionsParametersQueryCurrentPeriodStart'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetSubscriptions

FromJSON GetSubscriptionsParametersQueryCurrentPeriodStart'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetSubscriptions

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.

Constructors

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 "active"

GetSubscriptionsParametersQueryStatus'EnumAll

Represents the JSON value "all"

GetSubscriptionsParametersQueryStatus'EnumCanceled

Represents the JSON value "canceled"

GetSubscriptionsParametersQueryStatus'EnumEnded

Represents the JSON value "ended"

GetSubscriptionsParametersQueryStatus'EnumIncomplete

Represents the JSON value "incomplete"

GetSubscriptionsParametersQueryStatus'EnumIncompleteExpired

Represents the JSON value "incomplete_expired"

GetSubscriptionsParametersQueryStatus'EnumPastDue

Represents the JSON value "past_due"

GetSubscriptionsParametersQueryStatus'EnumTrialing

Represents the JSON value "trialing"

GetSubscriptionsParametersQueryStatus'EnumUnpaid

Represents the JSON value "unpaid"

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.

Constructors

GetSubscriptionsResponseError String

Means either no matching case available or a parse error

GetSubscriptionsResponse200 GetSubscriptionsResponseBody200

Successful response.

GetSubscriptionsResponseDefault Error

Error response.

data GetSubscriptionsResponseBody200 Source #

Defines the object schema located at paths./v1/subscriptions.GET.responses.200.content.application/json.schema in the specification.

Constructors

GetSubscriptionsResponseBody200 

Fields