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

RecurlyClient.Types.SubscriptionAddOn

Description

Contains the types generated from the schema SubscriptionAddOn

Synopsis

Documentation

data SubscriptionAddOn Source #

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

This links an Add-on to a specific Subscription.

Constructors

SubscriptionAddOn 

Fields

mkSubscriptionAddOn :: SubscriptionAddOn Source #

Create a new SubscriptionAddOn with all required fields.

data SubscriptionAddOnAdd_on_source Source #

Defines the enum schema located at components.schemas.SubscriptionAddOn.properties.add_on_source in the specification.

Used to determine where the associated add-on data is pulled from. If this value is set to `plan_add_on` or left blank, then add-on data will be pulled from the plan's add-ons. If the associated `plan` has `allow_any_item_on_subscriptions` set to `true` and this field is set to `item`, then the associated add-on data will be pulled from the site's item catalog.

Constructors

SubscriptionAddOnAdd_on_sourceOther Value

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

SubscriptionAddOnAdd_on_sourceTyped Text

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

SubscriptionAddOnAdd_on_sourceEnumPlan_add_on

Represents the JSON value "plan_add_on"

SubscriptionAddOnAdd_on_sourceEnumItem

Represents the JSON value "item"

data SubscriptionAddOnRevenue_schedule_type Source #

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

Constructors

SubscriptionAddOnRevenue_schedule_typeOther Value

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

SubscriptionAddOnRevenue_schedule_typeTyped Text

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

SubscriptionAddOnRevenue_schedule_typeEnumAt_range_end

Represents the JSON value "at_range_end"

SubscriptionAddOnRevenue_schedule_typeEnumAt_range_start

Represents the JSON value "at_range_start"

SubscriptionAddOnRevenue_schedule_typeEnumEvenly

Represents the JSON value "evenly"

SubscriptionAddOnRevenue_schedule_typeEnumNever

Represents the JSON value "never"

data SubscriptionAddOnTier_type Source #

Defines the enum schema located at components.schemas.SubscriptionAddOn.properties.tier_type in the specification.

The pricing model for the add-on. For more information, click here. See our Guide for an overview of how to configure quantity-based pricing models.

Constructors

SubscriptionAddOnTier_typeOther Value

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

SubscriptionAddOnTier_typeTyped Text

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

SubscriptionAddOnTier_typeEnumFlat

Represents the JSON value "flat"

SubscriptionAddOnTier_typeEnumTiered

Represents the JSON value "tiered"

SubscriptionAddOnTier_typeEnumStairstep

Represents the JSON value "stairstep"

SubscriptionAddOnTier_typeEnumVolume

Represents the JSON value "volume"

data SubscriptionAddOnUsage_calculation_type Source #

Defines the enum schema located at components.schemas.SubscriptionAddOn.properties.usage_calculation_type in the specification.

The type of calculation to be employed for an add-on. Cumulative billing will sum all usage records created in the current billing cycle. Last-in-period billing will apply only the most recent usage record in the billing period. If no value is specified, cumulative billing will be used.

Constructors

SubscriptionAddOnUsage_calculation_typeOther Value

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

SubscriptionAddOnUsage_calculation_typeTyped Text

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

SubscriptionAddOnUsage_calculation_typeEnumCumulative

Represents the JSON value "cumulative"

SubscriptionAddOnUsage_calculation_typeEnumLast_in_period

Represents the JSON value "last_in_period"

data SubscriptionAddOnUsage_timeframe Source #

Defines the enum schema located at components.schemas.SubscriptionAddOn.properties.usage_timeframe in the specification.

The time at which usage totals are reset for billing purposes.

Constructors

SubscriptionAddOnUsage_timeframeOther Value

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

SubscriptionAddOnUsage_timeframeTyped Text

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

SubscriptionAddOnUsage_timeframeEnumBilling_period

Represents the JSON value "billing_period"

SubscriptionAddOnUsage_timeframeEnumSubscription_term

Represents the JSON value "subscription_term"