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

RecurlyClient.Types.CouponMini

Description

Contains the types generated from the schema CouponMini

Synopsis

Documentation

data CouponMini Source #

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

Constructors

CouponMini 

Fields

mkCouponMini :: CouponMini Source #

Create a new CouponMini with all required fields.

data CouponMiniCoupon_type Source #

Defines the enum schema located at components.schemas.CouponMini.properties.coupon_type in the specification.

Whether the coupon is "single_code" or "bulk". Bulk coupons will require a `unique_code_template` and will generate unique codes through the `/generate` endpoint.

Constructors

CouponMiniCoupon_typeOther Value

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

CouponMiniCoupon_typeTyped Text

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

CouponMiniCoupon_typeEnumBulk

Represents the JSON value "bulk"

CouponMiniCoupon_typeEnumSingle_code

Represents the JSON value "single_code"

data CouponMiniState Source #

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

Indicates if the coupon is redeemable, and if it is not, why.

Constructors

CouponMiniStateOther Value

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

CouponMiniStateTyped Text

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

CouponMiniStateEnumExpired

Represents the JSON value "expired"

CouponMiniStateEnumMaxed_out

Represents the JSON value "maxed_out"

CouponMiniStateEnumRedeemable

Represents the JSON value "redeemable"