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

RecurlyClient.Types.CouponDiscount

Description

Contains the types generated from the schema CouponDiscount

Synopsis

Documentation

data CouponDiscount Source #

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

Details of the discount a coupon applies. Will contain a `type` property and one of the following properties: `percent`, `fixed`, `trial`.

Constructors

CouponDiscount 

Fields

mkCouponDiscount :: CouponDiscount Source #

Create a new CouponDiscount with all required fields.

data CouponDiscountTrial Source #

Defines the object schema located at components.schemas.CouponDiscount.properties.trial in the specification.

This is only present when `type=free_trial`.

Constructors

CouponDiscountTrial 

Fields

mkCouponDiscountTrial :: CouponDiscountTrial Source #

Create a new CouponDiscountTrial with all required fields.

data CouponDiscountTrialUnit Source #

Defines the enum schema located at components.schemas.CouponDiscount.properties.trial.properties.unit in the specification.

Temporal unit of the free trial

Constructors

CouponDiscountTrialUnitOther Value

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

CouponDiscountTrialUnitTyped Text

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

CouponDiscountTrialUnitEnumDay

Represents the JSON value "day"

CouponDiscountTrialUnitEnumMonth

Represents the JSON value "month"

CouponDiscountTrialUnitEnumWeek

Represents the JSON value "week"

data CouponDiscountType Source #

Defines the enum schema located at components.schemas.CouponDiscount.properties.type in the specification.

Constructors

CouponDiscountTypeOther Value

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

CouponDiscountTypeTyped Text

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

CouponDiscountTypeEnumFixed

Represents the JSON value "fixed"

CouponDiscountTypeEnumFree_trial

Represents the JSON value "free_trial"

CouponDiscountTypeEnumPercent

Represents the JSON value "percent"