Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.AddOn
Description
Contains the types generated from the schema AddOn
Synopsis
- data AddOn = AddOn {
- addOnAccounting_code :: Maybe Text
- addOnAdd_on_type :: Maybe AddOnAdd_on_type
- addOnAvalara_service_type :: Maybe Int
- addOnAvalara_transaction_type :: Maybe Int
- addOnCode :: Text
- addOnCreated_at :: Maybe JsonDateTime
- addOnCurrencies :: Maybe (NonEmpty AddOnPricing)
- addOnDefault_quantity :: Maybe Int
- addOnDeleted_at :: Maybe JsonDateTime
- addOnDisplay_quantity :: Maybe Bool
- addOnExternal_sku :: Maybe Text
- addOnId :: Maybe Text
- addOnItem :: Maybe ItemMini
- addOnLiability_gl_account_id :: Maybe Text
- addOnMeasured_unit_id :: Maybe Text
- addOnName :: Text
- addOnObject :: Maybe Text
- addOnOptional :: Maybe Bool
- addOnPercentage_tiers :: Maybe [PercentageTiersByCurrency]
- addOnPerformance_obligation_id :: Maybe Text
- addOnPlan_id :: Maybe Text
- addOnRevenue_gl_account_id :: Maybe Text
- addOnRevenue_schedule_type :: Maybe AddOnRevenue_schedule_type
- addOnState :: Maybe AddOnState
- addOnTax_code :: Maybe Text
- addOnTier_type :: Maybe AddOnTier_type
- addOnTiers :: Maybe [Tier]
- addOnUpdated_at :: Maybe JsonDateTime
- addOnUsage_calculation_type :: Maybe AddOnUsage_calculation_type
- addOnUsage_percentage :: Maybe Float
- addOnUsage_timeframe :: Maybe AddOnUsage_timeframe
- addOnUsage_type :: Maybe AddOnUsage_type
- mkAddOn :: Text -> Text -> AddOn
- data AddOnAdd_on_type
- data AddOnRevenue_schedule_type
- data AddOnState
- data AddOnTier_type
- data AddOnUsage_calculation_type
- data AddOnUsage_timeframe
- data AddOnUsage_type
Documentation
Defines the object schema located at components.schemas.AddOn
in the specification.
Full add-on details.
Constructors
AddOn | |
Fields
|
Create a new AddOn
with all required fields.
data AddOnAdd_on_type Source #
Defines the enum schema located at components.schemas.AddOn.properties.add_on_type
in the specification.
Whether the add-on type is fixed, or usage-based.
Constructors
AddOnAdd_on_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
AddOnAdd_on_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
AddOnAdd_on_typeEnumFixed | Represents the JSON value |
AddOnAdd_on_typeEnumUsage | Represents the JSON value |
Instances
FromJSON AddOnAdd_on_type Source # | |
Defined in RecurlyClient.Types.AddOn Methods parseJSON :: Value -> Parser AddOnAdd_on_type # parseJSONList :: Value -> Parser [AddOnAdd_on_type] # | |
ToJSON AddOnAdd_on_type Source # | |
Defined in RecurlyClient.Types.AddOn Methods toJSON :: AddOnAdd_on_type -> Value # toEncoding :: AddOnAdd_on_type -> Encoding # toJSONList :: [AddOnAdd_on_type] -> Value # toEncodingList :: [AddOnAdd_on_type] -> Encoding # | |
Show AddOnAdd_on_type Source # | |
Defined in RecurlyClient.Types.AddOn Methods showsPrec :: Int -> AddOnAdd_on_type -> ShowS # show :: AddOnAdd_on_type -> String # showList :: [AddOnAdd_on_type] -> ShowS # | |
Eq AddOnAdd_on_type Source # | |
Defined in RecurlyClient.Types.AddOn Methods (==) :: AddOnAdd_on_type -> AddOnAdd_on_type -> Bool # (/=) :: AddOnAdd_on_type -> AddOnAdd_on_type -> Bool # |
data AddOnRevenue_schedule_type Source #
Defines the enum schema located at components.schemas.AddOn.properties.revenue_schedule_type
in the specification.
When this add-on is invoiced, the line item will use this revenue schedule. If `item_code`/`item_id` is part of the request then `revenue_schedule_type` must be absent in the request as the value will be set from the item.
Constructors
AddOnRevenue_schedule_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
AddOnRevenue_schedule_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
AddOnRevenue_schedule_typeEnumAt_range_end | Represents the JSON value |
AddOnRevenue_schedule_typeEnumAt_range_start | Represents the JSON value |
AddOnRevenue_schedule_typeEnumEvenly | Represents the JSON value |
AddOnRevenue_schedule_typeEnumNever | Represents the JSON value |
Instances
FromJSON AddOnRevenue_schedule_type Source # | |
Defined in RecurlyClient.Types.AddOn Methods parseJSON :: Value -> Parser AddOnRevenue_schedule_type # parseJSONList :: Value -> Parser [AddOnRevenue_schedule_type] # | |
ToJSON AddOnRevenue_schedule_type Source # | |
Defined in RecurlyClient.Types.AddOn Methods toJSON :: AddOnRevenue_schedule_type -> Value # toEncoding :: AddOnRevenue_schedule_type -> Encoding # toJSONList :: [AddOnRevenue_schedule_type] -> Value # toEncodingList :: [AddOnRevenue_schedule_type] -> Encoding # | |
Show AddOnRevenue_schedule_type Source # | |
Defined in RecurlyClient.Types.AddOn Methods showsPrec :: Int -> AddOnRevenue_schedule_type -> ShowS # show :: AddOnRevenue_schedule_type -> String # showList :: [AddOnRevenue_schedule_type] -> ShowS # | |
Eq AddOnRevenue_schedule_type Source # | |
Defined in RecurlyClient.Types.AddOn Methods (==) :: AddOnRevenue_schedule_type -> AddOnRevenue_schedule_type -> Bool # (/=) :: AddOnRevenue_schedule_type -> AddOnRevenue_schedule_type -> Bool # |
data AddOnState Source #
Defines the enum schema located at components.schemas.AddOn.properties.state
in the specification.
Add-ons can be either active or inactive.
Constructors
AddOnStateOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
AddOnStateTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
AddOnStateEnumActive | Represents the JSON value |
AddOnStateEnumInactive | Represents the JSON value |
Instances
FromJSON AddOnState Source # | |
Defined in RecurlyClient.Types.AddOn | |
ToJSON AddOnState Source # | |
Defined in RecurlyClient.Types.AddOn Methods toJSON :: AddOnState -> Value # toEncoding :: AddOnState -> Encoding # toJSONList :: [AddOnState] -> Value # toEncodingList :: [AddOnState] -> Encoding # | |
Show AddOnState Source # | |
Defined in RecurlyClient.Types.AddOn Methods showsPrec :: Int -> AddOnState -> ShowS # show :: AddOnState -> String # showList :: [AddOnState] -> ShowS # | |
Eq AddOnState Source # | |
Defined in RecurlyClient.Types.AddOn |
data AddOnTier_type Source #
Defines the enum schema located at components.schemas.AddOn.properties.tier_type
in the specification.
The pricing model for the add-on. For more information, click here. See our Guide for an overview of how to configure quantity-based pricing models.
Constructors
AddOnTier_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
AddOnTier_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
AddOnTier_typeEnumFlat | Represents the JSON value |
AddOnTier_typeEnumTiered | Represents the JSON value |
AddOnTier_typeEnumStairstep | Represents the JSON value |
AddOnTier_typeEnumVolume | Represents the JSON value |
Instances
FromJSON AddOnTier_type Source # | |
Defined in RecurlyClient.Types.AddOn Methods parseJSON :: Value -> Parser AddOnTier_type # parseJSONList :: Value -> Parser [AddOnTier_type] # | |
ToJSON AddOnTier_type Source # | |
Defined in RecurlyClient.Types.AddOn Methods toJSON :: AddOnTier_type -> Value # toEncoding :: AddOnTier_type -> Encoding # toJSONList :: [AddOnTier_type] -> Value # toEncodingList :: [AddOnTier_type] -> Encoding # | |
Show AddOnTier_type Source # | |
Defined in RecurlyClient.Types.AddOn Methods showsPrec :: Int -> AddOnTier_type -> ShowS # show :: AddOnTier_type -> String # showList :: [AddOnTier_type] -> ShowS # | |
Eq AddOnTier_type Source # | |
Defined in RecurlyClient.Types.AddOn Methods (==) :: AddOnTier_type -> AddOnTier_type -> Bool # (/=) :: AddOnTier_type -> AddOnTier_type -> Bool # |
data AddOnUsage_calculation_type Source #
Defines the enum schema located at components.schemas.AddOn.properties.usage_calculation_type
in the specification.
The type of calculation to be employed for an add-on. Cumulative billing will sum all usage records created in the current billing cycle. Last-in-period billing will apply only the most recent usage record in the billing period. If no value is specified, cumulative billing will be used.
Constructors
AddOnUsage_calculation_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
AddOnUsage_calculation_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
AddOnUsage_calculation_typeEnumCumulative | Represents the JSON value |
AddOnUsage_calculation_typeEnumLast_in_period | Represents the JSON value |
Instances
data AddOnUsage_timeframe Source #
Defines the enum schema located at components.schemas.AddOn.properties.usage_timeframe
in the specification.
The time at which usage totals are reset for billing purposes.
Constructors
AddOnUsage_timeframeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
AddOnUsage_timeframeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
AddOnUsage_timeframeEnumBilling_period | Represents the JSON value |
AddOnUsage_timeframeEnumSubscription_term | Represents the JSON value |
Instances
FromJSON AddOnUsage_timeframe Source # | |
Defined in RecurlyClient.Types.AddOn Methods parseJSON :: Value -> Parser AddOnUsage_timeframe # parseJSONList :: Value -> Parser [AddOnUsage_timeframe] # | |
ToJSON AddOnUsage_timeframe Source # | |
Defined in RecurlyClient.Types.AddOn Methods toJSON :: AddOnUsage_timeframe -> Value # toEncoding :: AddOnUsage_timeframe -> Encoding # toJSONList :: [AddOnUsage_timeframe] -> Value # toEncodingList :: [AddOnUsage_timeframe] -> Encoding # | |
Show AddOnUsage_timeframe Source # | |
Defined in RecurlyClient.Types.AddOn Methods showsPrec :: Int -> AddOnUsage_timeframe -> ShowS # show :: AddOnUsage_timeframe -> String # showList :: [AddOnUsage_timeframe] -> ShowS # | |
Eq AddOnUsage_timeframe Source # | |
Defined in RecurlyClient.Types.AddOn Methods (==) :: AddOnUsage_timeframe -> AddOnUsage_timeframe -> Bool # (/=) :: AddOnUsage_timeframe -> AddOnUsage_timeframe -> Bool # |
data AddOnUsage_type Source #
Defines the enum schema located at components.schemas.AddOn.properties.usage_type
in the specification.
Type of usage, returns usage type if `add_on_type` is `usage`.
Constructors
AddOnUsage_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
AddOnUsage_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
AddOnUsage_typeEnumPrice | Represents the JSON value |
AddOnUsage_typeEnumPercentage | Represents the JSON value |
Instances
FromJSON AddOnUsage_type Source # | |
Defined in RecurlyClient.Types.AddOn Methods parseJSON :: Value -> Parser AddOnUsage_type # parseJSONList :: Value -> Parser [AddOnUsage_type] # | |
ToJSON AddOnUsage_type Source # | |
Defined in RecurlyClient.Types.AddOn Methods toJSON :: AddOnUsage_type -> Value # toEncoding :: AddOnUsage_type -> Encoding # toJSONList :: [AddOnUsage_type] -> Value # toEncodingList :: [AddOnUsage_type] -> Encoding # | |
Show AddOnUsage_type Source # | |
Defined in RecurlyClient.Types.AddOn Methods showsPrec :: Int -> AddOnUsage_type -> ShowS # show :: AddOnUsage_type -> String # showList :: [AddOnUsage_type] -> ShowS # | |
Eq AddOnUsage_type Source # | |
Defined in RecurlyClient.Types.AddOn Methods (==) :: AddOnUsage_type -> AddOnUsage_type -> Bool # (/=) :: AddOnUsage_type -> AddOnUsage_type -> Bool # |