Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
|
Instances
FromJSON CouponDiscount Source # | |
Defined in RecurlyClient.Types.CouponDiscount Methods parseJSON :: Value -> Parser CouponDiscount # parseJSONList :: Value -> Parser [CouponDiscount] # | |
ToJSON CouponDiscount Source # | |
Defined in RecurlyClient.Types.CouponDiscount Methods toJSON :: CouponDiscount -> Value # toEncoding :: CouponDiscount -> Encoding # toJSONList :: [CouponDiscount] -> Value # toEncodingList :: [CouponDiscount] -> Encoding # | |
Show CouponDiscount Source # | |
Defined in RecurlyClient.Types.CouponDiscount Methods showsPrec :: Int -> CouponDiscount -> ShowS # show :: CouponDiscount -> String # showList :: [CouponDiscount] -> ShowS # | |
Eq CouponDiscount Source # | |
Defined in RecurlyClient.Types.CouponDiscount Methods (==) :: CouponDiscount -> CouponDiscount -> Bool # (/=) :: CouponDiscount -> CouponDiscount -> Bool # |
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
|
Instances
FromJSON CouponDiscountTrial Source # | |
Defined in RecurlyClient.Types.CouponDiscount Methods parseJSON :: Value -> Parser CouponDiscountTrial # parseJSONList :: Value -> Parser [CouponDiscountTrial] # | |
ToJSON CouponDiscountTrial Source # | |
Defined in RecurlyClient.Types.CouponDiscount Methods toJSON :: CouponDiscountTrial -> Value # toEncoding :: CouponDiscountTrial -> Encoding # toJSONList :: [CouponDiscountTrial] -> Value # toEncodingList :: [CouponDiscountTrial] -> Encoding # | |
Show CouponDiscountTrial Source # | |
Defined in RecurlyClient.Types.CouponDiscount Methods showsPrec :: Int -> CouponDiscountTrial -> ShowS # show :: CouponDiscountTrial -> String # showList :: [CouponDiscountTrial] -> ShowS # | |
Eq CouponDiscountTrial Source # | |
Defined in RecurlyClient.Types.CouponDiscount Methods (==) :: CouponDiscountTrial -> CouponDiscountTrial -> Bool # (/=) :: CouponDiscountTrial -> CouponDiscountTrial -> Bool # |
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 |
CouponDiscountTrialUnitEnumMonth | Represents the JSON value |
CouponDiscountTrialUnitEnumWeek | Represents the JSON value |
Instances
FromJSON CouponDiscountTrialUnit Source # | |
Defined in RecurlyClient.Types.CouponDiscount Methods parseJSON :: Value -> Parser CouponDiscountTrialUnit # parseJSONList :: Value -> Parser [CouponDiscountTrialUnit] # | |
ToJSON CouponDiscountTrialUnit Source # | |
Defined in RecurlyClient.Types.CouponDiscount Methods toJSON :: CouponDiscountTrialUnit -> Value # toEncoding :: CouponDiscountTrialUnit -> Encoding # toJSONList :: [CouponDiscountTrialUnit] -> Value # | |
Show CouponDiscountTrialUnit Source # | |
Defined in RecurlyClient.Types.CouponDiscount Methods showsPrec :: Int -> CouponDiscountTrialUnit -> ShowS # show :: CouponDiscountTrialUnit -> String # showList :: [CouponDiscountTrialUnit] -> ShowS # | |
Eq CouponDiscountTrialUnit Source # | |
Defined in RecurlyClient.Types.CouponDiscount Methods (==) :: CouponDiscountTrialUnit -> CouponDiscountTrialUnit -> Bool # (/=) :: CouponDiscountTrialUnit -> CouponDiscountTrialUnit -> Bool # |
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 |
CouponDiscountTypeEnumFree_trial | Represents the JSON value |
CouponDiscountTypeEnumPercent | Represents the JSON value |
Instances
FromJSON CouponDiscountType Source # | |
Defined in RecurlyClient.Types.CouponDiscount Methods parseJSON :: Value -> Parser CouponDiscountType # parseJSONList :: Value -> Parser [CouponDiscountType] # | |
ToJSON CouponDiscountType Source # | |
Defined in RecurlyClient.Types.CouponDiscount Methods toJSON :: CouponDiscountType -> Value # toEncoding :: CouponDiscountType -> Encoding # toJSONList :: [CouponDiscountType] -> Value # toEncodingList :: [CouponDiscountType] -> Encoding # | |
Show CouponDiscountType Source # | |
Defined in RecurlyClient.Types.CouponDiscount Methods showsPrec :: Int -> CouponDiscountType -> ShowS # show :: CouponDiscountType -> String # showList :: [CouponDiscountType] -> ShowS # | |
Eq CouponDiscountType Source # | |
Defined in RecurlyClient.Types.CouponDiscount Methods (==) :: CouponDiscountType -> CouponDiscountType -> Bool # (/=) :: CouponDiscountType -> CouponDiscountType -> Bool # |