Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.Plan
Description
Contains the types generated from the schema Plan
Synopsis
- data Plan = Plan {
- planAccounting_code :: Maybe Text
- planAllow_any_item_on_subscriptions :: Maybe Bool
- planAuto_renew :: Maybe Bool
- planAvalara_service_type :: Maybe Int
- planAvalara_transaction_type :: Maybe Int
- planCode :: Text
- planCreated_at :: Maybe JsonDateTime
- planCurrencies :: Maybe (NonEmpty PlanPricing)
- planCustom_fields :: Maybe CustomFields
- planDeleted_at :: Maybe JsonDateTime
- planDescription :: Maybe Text
- planDunning_campaign_id :: Maybe Text
- planHosted_pages :: Maybe PlanHostedPages
- planId :: Maybe Text
- planInterval_length :: Maybe Int
- planInterval_unit :: Maybe PlanInterval_unit
- planName :: Text
- planObject :: Maybe Text
- planPricing_model :: Maybe PlanPricing_model
- planRamp_intervals :: Maybe [PlanRampInterval]
- planRevenue_schedule_type :: Maybe PlanRevenue_schedule_type
- planSetup_fee_accounting_code :: Maybe Text
- planSetup_fee_revenue_schedule_type :: Maybe PlanSetup_fee_revenue_schedule_type
- planState :: Maybe PlanState
- planTax_code :: Maybe Text
- planTax_exempt :: Maybe Bool
- planTotal_billing_cycles :: Maybe Int
- planTrial_length :: Maybe Int
- planTrial_requires_billing_info :: Maybe Bool
- planTrial_unit :: Maybe PlanTrial_unit
- planUpdated_at :: Maybe JsonDateTime
- planVertex_transaction_type :: Maybe Text
- mkPlan :: Text -> Text -> Plan
- data PlanInterval_unit
- data PlanPricing_model
- data PlanRevenue_schedule_type
- data PlanSetup_fee_revenue_schedule_type
- data PlanState
- data PlanTrial_unit
Documentation
Defines the object schema located at components.schemas.Plan
in the specification.
Full plan details.
Constructors
Plan | |
Fields
|
Create a new Plan
with all required fields.
data PlanInterval_unit Source #
Defines the enum schema located at components.schemas.Plan.properties.interval_unit
in the specification.
Unit for the plan's billing interval.
Constructors
PlanInterval_unitOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PlanInterval_unitTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PlanInterval_unitEnumDays | Represents the JSON value |
PlanInterval_unitEnumMonths | Represents the JSON value |
Instances
FromJSON PlanInterval_unit Source # | |
Defined in RecurlyClient.Types.Plan Methods parseJSON :: Value -> Parser PlanInterval_unit # parseJSONList :: Value -> Parser [PlanInterval_unit] # | |
ToJSON PlanInterval_unit Source # | |
Defined in RecurlyClient.Types.Plan Methods toJSON :: PlanInterval_unit -> Value # toEncoding :: PlanInterval_unit -> Encoding # toJSONList :: [PlanInterval_unit] -> Value # toEncodingList :: [PlanInterval_unit] -> Encoding # | |
Show PlanInterval_unit Source # | |
Defined in RecurlyClient.Types.Plan Methods showsPrec :: Int -> PlanInterval_unit -> ShowS # show :: PlanInterval_unit -> String # showList :: [PlanInterval_unit] -> ShowS # | |
Eq PlanInterval_unit Source # | |
Defined in RecurlyClient.Types.Plan Methods (==) :: PlanInterval_unit -> PlanInterval_unit -> Bool # (/=) :: PlanInterval_unit -> PlanInterval_unit -> Bool # |
data PlanPricing_model Source #
Defines the enum schema located at components.schemas.Plan.properties.pricing_model
in the specification.
A fixed pricing model has the same price for each billing period. A ramp pricing model defines a set of Ramp Intervals, where a subscription changes price on a specified cadence of billing periods. The price change could be an increase or decrease.
Constructors
PlanPricing_modelOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PlanPricing_modelTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PlanPricing_modelEnumFixed | Represents the JSON value |
PlanPricing_modelEnumRamp | Represents the JSON value |
Instances
FromJSON PlanPricing_model Source # | |
Defined in RecurlyClient.Types.Plan Methods parseJSON :: Value -> Parser PlanPricing_model # parseJSONList :: Value -> Parser [PlanPricing_model] # | |
ToJSON PlanPricing_model Source # | |
Defined in RecurlyClient.Types.Plan Methods toJSON :: PlanPricing_model -> Value # toEncoding :: PlanPricing_model -> Encoding # toJSONList :: [PlanPricing_model] -> Value # toEncodingList :: [PlanPricing_model] -> Encoding # | |
Show PlanPricing_model Source # | |
Defined in RecurlyClient.Types.Plan Methods showsPrec :: Int -> PlanPricing_model -> ShowS # show :: PlanPricing_model -> String # showList :: [PlanPricing_model] -> ShowS # | |
Eq PlanPricing_model Source # | |
Defined in RecurlyClient.Types.Plan Methods (==) :: PlanPricing_model -> PlanPricing_model -> Bool # (/=) :: PlanPricing_model -> PlanPricing_model -> Bool # |
data PlanRevenue_schedule_type Source #
Defines the enum schema located at components.schemas.Plan.properties.revenue_schedule_type
in the specification.
Constructors
PlanRevenue_schedule_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PlanRevenue_schedule_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PlanRevenue_schedule_typeEnumAt_range_end | Represents the JSON value |
PlanRevenue_schedule_typeEnumAt_range_start | Represents the JSON value |
PlanRevenue_schedule_typeEnumEvenly | Represents the JSON value |
PlanRevenue_schedule_typeEnumNever | Represents the JSON value |
Instances
FromJSON PlanRevenue_schedule_type Source # | |
Defined in RecurlyClient.Types.Plan Methods parseJSON :: Value -> Parser PlanRevenue_schedule_type # parseJSONList :: Value -> Parser [PlanRevenue_schedule_type] # | |
ToJSON PlanRevenue_schedule_type Source # | |
Defined in RecurlyClient.Types.Plan Methods toJSON :: PlanRevenue_schedule_type -> Value # toEncoding :: PlanRevenue_schedule_type -> Encoding # toJSONList :: [PlanRevenue_schedule_type] -> Value # | |
Show PlanRevenue_schedule_type Source # | |
Defined in RecurlyClient.Types.Plan Methods showsPrec :: Int -> PlanRevenue_schedule_type -> ShowS # show :: PlanRevenue_schedule_type -> String # showList :: [PlanRevenue_schedule_type] -> ShowS # | |
Eq PlanRevenue_schedule_type Source # | |
Defined in RecurlyClient.Types.Plan Methods (==) :: PlanRevenue_schedule_type -> PlanRevenue_schedule_type -> Bool # (/=) :: PlanRevenue_schedule_type -> PlanRevenue_schedule_type -> Bool # |
data PlanSetup_fee_revenue_schedule_type Source #
Defines the enum schema located at components.schemas.Plan.properties.setup_fee_revenue_schedule_type
in the specification.
Constructors
PlanSetup_fee_revenue_schedule_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PlanSetup_fee_revenue_schedule_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PlanSetup_fee_revenue_schedule_typeEnumAt_range_end | Represents the JSON value |
PlanSetup_fee_revenue_schedule_typeEnumAt_range_start | Represents the JSON value |
PlanSetup_fee_revenue_schedule_typeEnumEvenly | Represents the JSON value |
PlanSetup_fee_revenue_schedule_typeEnumNever | Represents the JSON value |
Instances
Defines the enum schema located at components.schemas.Plan.properties.state
in the specification.
The current state of the plan.
Constructors
PlanStateOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PlanStateTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PlanStateEnumActive | Represents the JSON value |
PlanStateEnumInactive | Represents the JSON value |
data PlanTrial_unit Source #
Defines the enum schema located at components.schemas.Plan.properties.trial_unit
in the specification.
Units for the plan's trial period.
Constructors
PlanTrial_unitOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PlanTrial_unitTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PlanTrial_unitEnumDays | Represents the JSON value |
PlanTrial_unitEnumMonths | Represents the JSON value |
Instances
FromJSON PlanTrial_unit Source # | |
Defined in RecurlyClient.Types.Plan Methods parseJSON :: Value -> Parser PlanTrial_unit # parseJSONList :: Value -> Parser [PlanTrial_unit] # | |
ToJSON PlanTrial_unit Source # | |
Defined in RecurlyClient.Types.Plan Methods toJSON :: PlanTrial_unit -> Value # toEncoding :: PlanTrial_unit -> Encoding # toJSONList :: [PlanTrial_unit] -> Value # toEncodingList :: [PlanTrial_unit] -> Encoding # | |
Show PlanTrial_unit Source # | |
Defined in RecurlyClient.Types.Plan Methods showsPrec :: Int -> PlanTrial_unit -> ShowS # show :: PlanTrial_unit -> String # showList :: [PlanTrial_unit] -> ShowS # | |
Eq PlanTrial_unit Source # | |
Defined in RecurlyClient.Types.Plan Methods (==) :: PlanTrial_unit -> PlanTrial_unit -> Bool # (/=) :: PlanTrial_unit -> PlanTrial_unit -> Bool # |