Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.CouponMini
Description
Contains the types generated from the schema CouponMini
Synopsis
- data CouponMini = CouponMini {}
- mkCouponMini :: CouponMini
- data CouponMiniCoupon_type
- data CouponMiniState
Documentation
data CouponMini Source #
Defines the object schema located at components.schemas.CouponMini
in the specification.
Constructors
CouponMini | |
Fields
|
Instances
FromJSON CouponMini Source # | |
Defined in RecurlyClient.Types.CouponMini | |
ToJSON CouponMini Source # | |
Defined in RecurlyClient.Types.CouponMini Methods toJSON :: CouponMini -> Value # toEncoding :: CouponMini -> Encoding # toJSONList :: [CouponMini] -> Value # toEncodingList :: [CouponMini] -> Encoding # | |
Show CouponMini Source # | |
Defined in RecurlyClient.Types.CouponMini Methods showsPrec :: Int -> CouponMini -> ShowS # show :: CouponMini -> String # showList :: [CouponMini] -> ShowS # | |
Eq CouponMini Source # | |
Defined in RecurlyClient.Types.CouponMini |
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 |
CouponMiniCoupon_typeEnumSingle_code | Represents the JSON value |
Instances
FromJSON CouponMiniCoupon_type Source # | |
Defined in RecurlyClient.Types.CouponMini Methods parseJSON :: Value -> Parser CouponMiniCoupon_type # parseJSONList :: Value -> Parser [CouponMiniCoupon_type] # | |
ToJSON CouponMiniCoupon_type Source # | |
Defined in RecurlyClient.Types.CouponMini Methods toJSON :: CouponMiniCoupon_type -> Value # toEncoding :: CouponMiniCoupon_type -> Encoding # toJSONList :: [CouponMiniCoupon_type] -> Value # toEncodingList :: [CouponMiniCoupon_type] -> Encoding # | |
Show CouponMiniCoupon_type Source # | |
Defined in RecurlyClient.Types.CouponMini Methods showsPrec :: Int -> CouponMiniCoupon_type -> ShowS # show :: CouponMiniCoupon_type -> String # showList :: [CouponMiniCoupon_type] -> ShowS # | |
Eq CouponMiniCoupon_type Source # | |
Defined in RecurlyClient.Types.CouponMini Methods (==) :: CouponMiniCoupon_type -> CouponMiniCoupon_type -> Bool # (/=) :: CouponMiniCoupon_type -> CouponMiniCoupon_type -> Bool # |
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 |
CouponMiniStateEnumMaxed_out | Represents the JSON value |
CouponMiniStateEnumRedeemable | Represents the JSON value |
Instances
FromJSON CouponMiniState Source # | |
Defined in RecurlyClient.Types.CouponMini Methods parseJSON :: Value -> Parser CouponMiniState # parseJSONList :: Value -> Parser [CouponMiniState] # | |
ToJSON CouponMiniState Source # | |
Defined in RecurlyClient.Types.CouponMini Methods toJSON :: CouponMiniState -> Value # toEncoding :: CouponMiniState -> Encoding # toJSONList :: [CouponMiniState] -> Value # toEncodingList :: [CouponMiniState] -> Encoding # | |
Show CouponMiniState Source # | |
Defined in RecurlyClient.Types.CouponMini Methods showsPrec :: Int -> CouponMiniState -> ShowS # show :: CouponMiniState -> String # showList :: [CouponMiniState] -> ShowS # | |
Eq CouponMiniState Source # | |
Defined in RecurlyClient.Types.CouponMini Methods (==) :: CouponMiniState -> CouponMiniState -> Bool # (/=) :: CouponMiniState -> CouponMiniState -> Bool # |