Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.AddOnCreate
Description
Contains the types generated from the schema AddOnCreate
Synopsis
- data AddOnCreate = AddOnCreate {
- addOnCreateAccounting_code :: Maybe Text
- addOnCreateAdd_on_type :: Maybe AddOnCreateAdd_on_type
- addOnCreateAvalara_service_type :: Maybe Int
- addOnCreateAvalara_transaction_type :: Maybe Int
- addOnCreateCode :: Text
- addOnCreateCurrencies :: Maybe (NonEmpty AddOnPricing)
- addOnCreateDefault_quantity :: Maybe Int
- addOnCreateDisplay_quantity :: Maybe Bool
- addOnCreateItem_code :: Maybe Text
- addOnCreateItem_id :: Maybe Text
- addOnCreateLiability_gl_account_id :: Maybe Text
- addOnCreateMeasured_unit_id :: Maybe Text
- addOnCreateMeasured_unit_name :: Maybe Text
- addOnCreateName :: Text
- addOnCreateOptional :: Maybe Bool
- addOnCreatePercentage_tiers :: Maybe [PercentageTiersByCurrency]
- addOnCreatePerformance_obligation_id :: Maybe Text
- addOnCreatePlan_id :: Maybe Text
- addOnCreateRevenue_gl_account_id :: Maybe Text
- addOnCreateRevenue_schedule_type :: Maybe AddOnCreateRevenue_schedule_type
- addOnCreateTax_code :: Maybe Text
- addOnCreateTier_type :: Maybe AddOnCreateTier_type
- addOnCreateTiers :: Maybe [Tier]
- addOnCreateUsage_calculation_type :: Maybe AddOnCreateUsage_calculation_type
- addOnCreateUsage_percentage :: Maybe Float
- addOnCreateUsage_timeframe :: Maybe AddOnCreateUsage_timeframe
- addOnCreateUsage_type :: Maybe AddOnCreateUsage_type
- mkAddOnCreate :: Text -> Text -> AddOnCreate
- data AddOnCreateAdd_on_type
- data AddOnCreateRevenue_schedule_type
- data AddOnCreateTier_type
- data AddOnCreateUsage_calculation_type
- data AddOnCreateUsage_timeframe
- data AddOnCreateUsage_type
Documentation
data AddOnCreate Source #
Defines the object schema located at components.schemas.AddOnCreate
in the specification.
Full add-on details.
Constructors
AddOnCreate | |
Fields
|
Instances
FromJSON AddOnCreate Source # | |
Defined in RecurlyClient.Types.AddOnCreate | |
ToJSON AddOnCreate Source # | |
Defined in RecurlyClient.Types.AddOnCreate Methods toJSON :: AddOnCreate -> Value # toEncoding :: AddOnCreate -> Encoding # toJSONList :: [AddOnCreate] -> Value # toEncodingList :: [AddOnCreate] -> Encoding # | |
Show AddOnCreate Source # | |
Defined in RecurlyClient.Types.AddOnCreate Methods showsPrec :: Int -> AddOnCreate -> ShowS # show :: AddOnCreate -> String # showList :: [AddOnCreate] -> ShowS # | |
Eq AddOnCreate Source # | |
Defined in RecurlyClient.Types.AddOnCreate |
Arguments
:: Text | |
-> Text | |
-> AddOnCreate |
Create a new AddOnCreate
with all required fields.
data AddOnCreateAdd_on_type Source #
Defines the enum schema located at components.schemas.AddOnCreate.properties.add_on_type
in the specification.
Whether the add-on type is fixed, or usage-based.
Constructors
AddOnCreateAdd_on_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
AddOnCreateAdd_on_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
AddOnCreateAdd_on_typeEnumFixed | Represents the JSON value |
AddOnCreateAdd_on_typeEnumUsage | Represents the JSON value |
Instances
FromJSON AddOnCreateAdd_on_type Source # | |
Defined in RecurlyClient.Types.AddOnCreate Methods parseJSON :: Value -> Parser AddOnCreateAdd_on_type # parseJSONList :: Value -> Parser [AddOnCreateAdd_on_type] # | |
ToJSON AddOnCreateAdd_on_type Source # | |
Defined in RecurlyClient.Types.AddOnCreate Methods toJSON :: AddOnCreateAdd_on_type -> Value # toEncoding :: AddOnCreateAdd_on_type -> Encoding # toJSONList :: [AddOnCreateAdd_on_type] -> Value # | |
Show AddOnCreateAdd_on_type Source # | |
Defined in RecurlyClient.Types.AddOnCreate Methods showsPrec :: Int -> AddOnCreateAdd_on_type -> ShowS # show :: AddOnCreateAdd_on_type -> String # showList :: [AddOnCreateAdd_on_type] -> ShowS # | |
Eq AddOnCreateAdd_on_type Source # | |
Defined in RecurlyClient.Types.AddOnCreate Methods (==) :: AddOnCreateAdd_on_type -> AddOnCreateAdd_on_type -> Bool # (/=) :: AddOnCreateAdd_on_type -> AddOnCreateAdd_on_type -> Bool # |
data AddOnCreateRevenue_schedule_type Source #
Defines the enum schema located at components.schemas.AddOnCreate.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
AddOnCreateRevenue_schedule_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
AddOnCreateRevenue_schedule_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
AddOnCreateRevenue_schedule_typeEnumAt_range_end | Represents the JSON value |
AddOnCreateRevenue_schedule_typeEnumAt_range_start | Represents the JSON value |
AddOnCreateRevenue_schedule_typeEnumEvenly | Represents the JSON value |
AddOnCreateRevenue_schedule_typeEnumNever | Represents the JSON value |
Instances
data AddOnCreateTier_type Source #
Defines the enum schema located at components.schemas.AddOnCreate.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
AddOnCreateTier_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
AddOnCreateTier_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
AddOnCreateTier_typeEnumFlat | Represents the JSON value |
AddOnCreateTier_typeEnumTiered | Represents the JSON value |
AddOnCreateTier_typeEnumStairstep | Represents the JSON value |
AddOnCreateTier_typeEnumVolume | Represents the JSON value |
Instances
FromJSON AddOnCreateTier_type Source # | |
Defined in RecurlyClient.Types.AddOnCreate Methods parseJSON :: Value -> Parser AddOnCreateTier_type # parseJSONList :: Value -> Parser [AddOnCreateTier_type] # | |
ToJSON AddOnCreateTier_type Source # | |
Defined in RecurlyClient.Types.AddOnCreate Methods toJSON :: AddOnCreateTier_type -> Value # toEncoding :: AddOnCreateTier_type -> Encoding # toJSONList :: [AddOnCreateTier_type] -> Value # toEncodingList :: [AddOnCreateTier_type] -> Encoding # | |
Show AddOnCreateTier_type Source # | |
Defined in RecurlyClient.Types.AddOnCreate Methods showsPrec :: Int -> AddOnCreateTier_type -> ShowS # show :: AddOnCreateTier_type -> String # showList :: [AddOnCreateTier_type] -> ShowS # | |
Eq AddOnCreateTier_type Source # | |
Defined in RecurlyClient.Types.AddOnCreate Methods (==) :: AddOnCreateTier_type -> AddOnCreateTier_type -> Bool # (/=) :: AddOnCreateTier_type -> AddOnCreateTier_type -> Bool # |
data AddOnCreateUsage_calculation_type Source #
Defines the enum schema located at components.schemas.AddOnCreate.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
AddOnCreateUsage_calculation_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
AddOnCreateUsage_calculation_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
AddOnCreateUsage_calculation_typeEnumCumulative | Represents the JSON value |
AddOnCreateUsage_calculation_typeEnumLast_in_period | Represents the JSON value |
Instances
data AddOnCreateUsage_timeframe Source #
Defines the enum schema located at components.schemas.AddOnCreate.properties.usage_timeframe
in the specification.
The time at which usage totals are reset for billing purposes. Allows for `tiered` add-ons to accumulate usage over the course of multiple billing periods.
Constructors
AddOnCreateUsage_timeframeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
AddOnCreateUsage_timeframeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
AddOnCreateUsage_timeframeEnumBilling_period | Represents the JSON value |
AddOnCreateUsage_timeframeEnumSubscription_term | Represents the JSON value |
Instances
data AddOnCreateUsage_type Source #
Defines the enum schema located at components.schemas.AddOnCreate.properties.usage_type
in the specification.
Type of usage, required if `add_on_type` is `usage`. See our Guide for an overview of how to configure usage add-ons.
Constructors
AddOnCreateUsage_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
AddOnCreateUsage_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
AddOnCreateUsage_typeEnumPrice | Represents the JSON value |
AddOnCreateUsage_typeEnumPercentage | Represents the JSON value |
Instances
FromJSON AddOnCreateUsage_type Source # | |
Defined in RecurlyClient.Types.AddOnCreate Methods parseJSON :: Value -> Parser AddOnCreateUsage_type # parseJSONList :: Value -> Parser [AddOnCreateUsage_type] # | |
ToJSON AddOnCreateUsage_type Source # | |
Defined in RecurlyClient.Types.AddOnCreate Methods toJSON :: AddOnCreateUsage_type -> Value # toEncoding :: AddOnCreateUsage_type -> Encoding # toJSONList :: [AddOnCreateUsage_type] -> Value # toEncodingList :: [AddOnCreateUsage_type] -> Encoding # | |
Show AddOnCreateUsage_type Source # | |
Defined in RecurlyClient.Types.AddOnCreate Methods showsPrec :: Int -> AddOnCreateUsage_type -> ShowS # show :: AddOnCreateUsage_type -> String # showList :: [AddOnCreateUsage_type] -> ShowS # | |
Eq AddOnCreateUsage_type Source # | |
Defined in RecurlyClient.Types.AddOnCreate Methods (==) :: AddOnCreateUsage_type -> AddOnCreateUsage_type -> Bool # (/=) :: AddOnCreateUsage_type -> AddOnCreateUsage_type -> Bool # |