Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.AddOnMini
Description
Contains the types generated from the schema AddOnMini
Synopsis
- data AddOnMini = AddOnMini {
- addOnMiniAccounting_code :: Maybe Text
- addOnMiniAdd_on_type :: Maybe AddOnMiniAdd_on_type
- addOnMiniCode :: Maybe Text
- addOnMiniExternal_sku :: Maybe Text
- addOnMiniId :: Maybe Text
- addOnMiniItem_id :: Maybe Text
- addOnMiniMeasured_unit_id :: Maybe Text
- addOnMiniName :: Maybe Text
- addOnMiniObject :: Maybe Text
- addOnMiniUsage_percentage :: Maybe Float
- addOnMiniUsage_type :: Maybe AddOnMiniUsage_type
- mkAddOnMini :: AddOnMini
- data AddOnMiniAdd_on_type
- data AddOnMiniUsage_type
Documentation
Defines the object schema located at components.schemas.AddOnMini
in the specification.
Just the important parts.
Constructors
AddOnMini | |
Fields
|
mkAddOnMini :: AddOnMini Source #
Create a new AddOnMini
with all required fields.
data AddOnMiniAdd_on_type Source #
Defines the enum schema located at components.schemas.AddOnMini.properties.add_on_type
in the specification.
Whether the add-on type is fixed, or usage-based.
Constructors
AddOnMiniAdd_on_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
AddOnMiniAdd_on_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
AddOnMiniAdd_on_typeEnumFixed | Represents the JSON value |
AddOnMiniAdd_on_typeEnumUsage | Represents the JSON value |
Instances
FromJSON AddOnMiniAdd_on_type Source # | |
Defined in RecurlyClient.Types.AddOnMini Methods parseJSON :: Value -> Parser AddOnMiniAdd_on_type # parseJSONList :: Value -> Parser [AddOnMiniAdd_on_type] # | |
ToJSON AddOnMiniAdd_on_type Source # | |
Defined in RecurlyClient.Types.AddOnMini Methods toJSON :: AddOnMiniAdd_on_type -> Value # toEncoding :: AddOnMiniAdd_on_type -> Encoding # toJSONList :: [AddOnMiniAdd_on_type] -> Value # toEncodingList :: [AddOnMiniAdd_on_type] -> Encoding # | |
Show AddOnMiniAdd_on_type Source # | |
Defined in RecurlyClient.Types.AddOnMini Methods showsPrec :: Int -> AddOnMiniAdd_on_type -> ShowS # show :: AddOnMiniAdd_on_type -> String # showList :: [AddOnMiniAdd_on_type] -> ShowS # | |
Eq AddOnMiniAdd_on_type Source # | |
Defined in RecurlyClient.Types.AddOnMini Methods (==) :: AddOnMiniAdd_on_type -> AddOnMiniAdd_on_type -> Bool # (/=) :: AddOnMiniAdd_on_type -> AddOnMiniAdd_on_type -> Bool # |
data AddOnMiniUsage_type Source #
Defines the enum schema located at components.schemas.AddOnMini.properties.usage_type
in the specification.
Type of usage, returns usage type if `add_on_type` is `usage`.
Constructors
AddOnMiniUsage_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
AddOnMiniUsage_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
AddOnMiniUsage_typeEnumPrice | Represents the JSON value |
AddOnMiniUsage_typeEnumPercentage | Represents the JSON value |
Instances
FromJSON AddOnMiniUsage_type Source # | |
Defined in RecurlyClient.Types.AddOnMini Methods parseJSON :: Value -> Parser AddOnMiniUsage_type # parseJSONList :: Value -> Parser [AddOnMiniUsage_type] # | |
ToJSON AddOnMiniUsage_type Source # | |
Defined in RecurlyClient.Types.AddOnMini Methods toJSON :: AddOnMiniUsage_type -> Value # toEncoding :: AddOnMiniUsage_type -> Encoding # toJSONList :: [AddOnMiniUsage_type] -> Value # toEncodingList :: [AddOnMiniUsage_type] -> Encoding # | |
Show AddOnMiniUsage_type Source # | |
Defined in RecurlyClient.Types.AddOnMini Methods showsPrec :: Int -> AddOnMiniUsage_type -> ShowS # show :: AddOnMiniUsage_type -> String # showList :: [AddOnMiniUsage_type] -> ShowS # | |
Eq AddOnMiniUsage_type Source # | |
Defined in RecurlyClient.Types.AddOnMini Methods (==) :: AddOnMiniUsage_type -> AddOnMiniUsage_type -> Bool # (/=) :: AddOnMiniUsage_type -> AddOnMiniUsage_type -> Bool # |