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

RecurlyClient.Types.Usage

Description

Contains the types generated from the schema Usage

Synopsis

Documentation

data Usage Source #

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

Constructors

Usage 

Fields

Instances

Instances details
FromJSON Usage Source # 
Instance details

Defined in RecurlyClient.Types.Usage

ToJSON Usage Source # 
Instance details

Defined in RecurlyClient.Types.Usage

Show Usage Source # 
Instance details

Defined in RecurlyClient.Types.Usage

Methods

showsPrec :: Int -> Usage -> ShowS #

show :: Usage -> String #

showList :: [Usage] -> ShowS #

Eq Usage Source # 
Instance details

Defined in RecurlyClient.Types.Usage

Methods

(==) :: Usage -> Usage -> Bool #

(/=) :: Usage -> Usage -> Bool #

mkUsage :: Usage Source #

Create a new Usage with all required fields.

data UsageTier_type Source #

Defines the enum schema located at components.schemas.Usage.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

UsageTier_typeOther Value

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

UsageTier_typeTyped Text

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

UsageTier_typeEnumFlat

Represents the JSON value "flat"

UsageTier_typeEnumTiered

Represents the JSON value "tiered"

UsageTier_typeEnumStairstep

Represents the JSON value "stairstep"

UsageTier_typeEnumVolume

Represents the JSON value "volume"

data UsageUsage_type Source #

Defines the enum schema located at components.schemas.Usage.properties.usage_type in the specification.

Type of usage, returns usage type if `add_on_type` is `usage`.

Constructors

UsageUsage_typeOther Value

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

UsageUsage_typeTyped Text

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

UsageUsage_typeEnumPrice

Represents the JSON value "price"

UsageUsage_typeEnumPercentage

Represents the JSON value "percentage"