Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.MeasuredUnit
Description
Contains the types generated from the schema MeasuredUnit
Synopsis
- data MeasuredUnit = MeasuredUnit {
- measuredUnitCreated_at :: Maybe JsonDateTime
- measuredUnitDeleted_at :: Maybe JsonDateTime
- measuredUnitDescription :: Maybe Text
- measuredUnitDisplay_name :: Maybe Text
- measuredUnitId :: Maybe Text
- measuredUnitName :: Maybe Text
- measuredUnitObject :: Maybe Text
- measuredUnitState :: Maybe MeasuredUnitState
- measuredUnitUpdated_at :: Maybe JsonDateTime
- mkMeasuredUnit :: MeasuredUnit
- data MeasuredUnitState
Documentation
data MeasuredUnit Source #
Defines the object schema located at components.schemas.MeasuredUnit
in the specification.
Constructors
MeasuredUnit | |
Fields
|
Instances
FromJSON MeasuredUnit Source # | |
Defined in RecurlyClient.Types.MeasuredUnit | |
ToJSON MeasuredUnit Source # | |
Defined in RecurlyClient.Types.MeasuredUnit Methods toJSON :: MeasuredUnit -> Value # toEncoding :: MeasuredUnit -> Encoding # toJSONList :: [MeasuredUnit] -> Value # toEncodingList :: [MeasuredUnit] -> Encoding # | |
Show MeasuredUnit Source # | |
Defined in RecurlyClient.Types.MeasuredUnit Methods showsPrec :: Int -> MeasuredUnit -> ShowS # show :: MeasuredUnit -> String # showList :: [MeasuredUnit] -> ShowS # | |
Eq MeasuredUnit Source # | |
Defined in RecurlyClient.Types.MeasuredUnit |
mkMeasuredUnit :: MeasuredUnit Source #
Create a new MeasuredUnit
with all required fields.
data MeasuredUnitState Source #
Defines the enum schema located at components.schemas.MeasuredUnit.properties.state
in the specification.
The current state of the measured unit.
Constructors
MeasuredUnitStateOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
MeasuredUnitStateTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
MeasuredUnitStateEnumActive | Represents the JSON value |
MeasuredUnitStateEnumInactive | Represents the JSON value |
Instances
FromJSON MeasuredUnitState Source # | |
Defined in RecurlyClient.Types.MeasuredUnit Methods parseJSON :: Value -> Parser MeasuredUnitState # parseJSONList :: Value -> Parser [MeasuredUnitState] # | |
ToJSON MeasuredUnitState Source # | |
Defined in RecurlyClient.Types.MeasuredUnit Methods toJSON :: MeasuredUnitState -> Value # toEncoding :: MeasuredUnitState -> Encoding # toJSONList :: [MeasuredUnitState] -> Value # toEncodingList :: [MeasuredUnitState] -> Encoding # | |
Show MeasuredUnitState Source # | |
Defined in RecurlyClient.Types.MeasuredUnit Methods showsPrec :: Int -> MeasuredUnitState -> ShowS # show :: MeasuredUnitState -> String # showList :: [MeasuredUnitState] -> ShowS # | |
Eq MeasuredUnitState Source # | |
Defined in RecurlyClient.Types.MeasuredUnit Methods (==) :: MeasuredUnitState -> MeasuredUnitState -> Bool # (/=) :: MeasuredUnitState -> MeasuredUnitState -> Bool # |