Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.CouponRedemption
Description
Contains the types generated from the schema CouponRedemption
Synopsis
- data CouponRedemption = CouponRedemption {
- couponRedemptionAccount :: Maybe AccountMini
- couponRedemptionCoupon :: Maybe Coupon
- couponRedemptionCreated_at :: Maybe JsonDateTime
- couponRedemptionCurrency :: Maybe Text
- couponRedemptionDiscounted :: Maybe Float
- couponRedemptionId :: Maybe Text
- couponRedemptionObject :: Maybe Text
- couponRedemptionRemoved_at :: Maybe JsonDateTime
- couponRedemptionState :: Maybe CouponRedemptionState
- couponRedemptionSubscription_id :: Maybe Text
- couponRedemptionUpdated_at :: Maybe JsonDateTime
- mkCouponRedemption :: CouponRedemption
- data CouponRedemptionState
Documentation
data CouponRedemption Source #
Defines the object schema located at components.schemas.CouponRedemption
in the specification.
Constructors
CouponRedemption | |
Fields
|
Instances
FromJSON CouponRedemption Source # | |
Defined in RecurlyClient.Types.CouponRedemption Methods parseJSON :: Value -> Parser CouponRedemption # parseJSONList :: Value -> Parser [CouponRedemption] # | |
ToJSON CouponRedemption Source # | |
Defined in RecurlyClient.Types.CouponRedemption Methods toJSON :: CouponRedemption -> Value # toEncoding :: CouponRedemption -> Encoding # toJSONList :: [CouponRedemption] -> Value # toEncodingList :: [CouponRedemption] -> Encoding # | |
Show CouponRedemption Source # | |
Defined in RecurlyClient.Types.CouponRedemption Methods showsPrec :: Int -> CouponRedemption -> ShowS # show :: CouponRedemption -> String # showList :: [CouponRedemption] -> ShowS # | |
Eq CouponRedemption Source # | |
Defined in RecurlyClient.Types.CouponRedemption Methods (==) :: CouponRedemption -> CouponRedemption -> Bool # (/=) :: CouponRedemption -> CouponRedemption -> Bool # |
mkCouponRedemption :: CouponRedemption Source #
Create a new CouponRedemption
with all required fields.
data CouponRedemptionState Source #
Defines the enum schema located at components.schemas.CouponRedemption.properties.state
in the specification.
Constructors
CouponRedemptionStateOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
CouponRedemptionStateTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
CouponRedemptionStateEnumActive | Represents the JSON value |
CouponRedemptionStateEnumInactive | Represents the JSON value |
Instances
FromJSON CouponRedemptionState Source # | |
Defined in RecurlyClient.Types.CouponRedemption Methods parseJSON :: Value -> Parser CouponRedemptionState # parseJSONList :: Value -> Parser [CouponRedemptionState] # | |
ToJSON CouponRedemptionState Source # | |
Defined in RecurlyClient.Types.CouponRedemption Methods toJSON :: CouponRedemptionState -> Value # toEncoding :: CouponRedemptionState -> Encoding # toJSONList :: [CouponRedemptionState] -> Value # toEncodingList :: [CouponRedemptionState] -> Encoding # | |
Show CouponRedemptionState Source # | |
Defined in RecurlyClient.Types.CouponRedemption Methods showsPrec :: Int -> CouponRedemptionState -> ShowS # show :: CouponRedemptionState -> String # showList :: [CouponRedemptionState] -> ShowS # | |
Eq CouponRedemptionState Source # | |
Defined in RecurlyClient.Types.CouponRedemption Methods (==) :: CouponRedemptionState -> CouponRedemptionState -> Bool # (/=) :: CouponRedemptionState -> CouponRedemptionState -> Bool # |