recurly-client-0.1.0.0: Client for Recurly subscription management
Safe HaskellSafe-Inferred
LanguageHaskell2010

RecurlyClient.Types.Subscription

Description

Contains the types generated from the schema Subscription

Synopsis

Documentation

data Subscription Source #

Defines the object schema located at components.schemas.Subscription in the specification.

Constructors

Subscription 

Fields

mkSubscription :: Subscription Source #

Create a new Subscription with all required fields.

data SubscriptionCollection_method Source #

Defines the enum schema located at components.schemas.Subscription.properties.collection_method in the specification.

Constructors

SubscriptionCollection_methodOther Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

SubscriptionCollection_methodTyped Text

This constructor can be used to send values to the server which are not present in the specification yet.

SubscriptionCollection_methodEnumAutomatic

Represents the JSON value "automatic"

SubscriptionCollection_methodEnumManual

Represents the JSON value "manual"

data SubscriptionNet_terms_type Source #

Defines the enum schema located at components.schemas.Subscription.properties.net_terms_type in the specification.

Optionally supplied string that may be either `net` or `eom` (end-of-month). When `net`, an invoice becomes past due the specified number of `Net Terms` days from the current date. When `eom` an invoice becomes past due the specified number of `Net Terms` days from the last day of the current month.

Constructors

SubscriptionNet_terms_typeOther Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

SubscriptionNet_terms_typeTyped Text

This constructor can be used to send values to the server which are not present in the specification yet.

SubscriptionNet_terms_typeEnumNet

Represents the JSON value "net"

SubscriptionNet_terms_typeEnumEom

Represents the JSON value "eom"

data SubscriptionRevenue_schedule_type Source #

Defines the enum schema located at components.schemas.Subscription.properties.revenue_schedule_type in the specification.

Constructors

SubscriptionRevenue_schedule_typeOther Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

SubscriptionRevenue_schedule_typeTyped Text

This constructor can be used to send values to the server which are not present in the specification yet.

SubscriptionRevenue_schedule_typeEnumAt_range_end

Represents the JSON value "at_range_end"

SubscriptionRevenue_schedule_typeEnumAt_range_start

Represents the JSON value "at_range_start"

SubscriptionRevenue_schedule_typeEnumEvenly

Represents the JSON value "evenly"

SubscriptionRevenue_schedule_typeEnumNever

Represents the JSON value "never"

data SubscriptionState Source #

Defines the enum schema located at components.schemas.Subscription.properties.state in the specification.

Constructors

SubscriptionStateOther Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

SubscriptionStateTyped Text

This constructor can be used to send values to the server which are not present in the specification yet.

SubscriptionStateEnumActive

Represents the JSON value "active"

SubscriptionStateEnumCanceled

Represents the JSON value "canceled"

SubscriptionStateEnumExpired

Represents the JSON value "expired"

SubscriptionStateEnumFailed

Represents the JSON value "failed"

SubscriptionStateEnumFuture

Represents the JSON value "future"

SubscriptionStateEnumPaused

Represents the JSON value "paused"