| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
RecurlyClient.Types.PlanCreate
Description
Contains the types generated from the schema PlanCreate
Synopsis
- data PlanCreate = PlanCreate {
- planCreateAccounting_code :: Maybe Text
- planCreateAdd_ons :: Maybe [AddOnCreate]
- planCreateAllow_any_item_on_subscriptions :: Maybe Bool
- planCreateAuto_renew :: Maybe Bool
- planCreateAvalara_service_type :: Maybe Int
- planCreateAvalara_transaction_type :: Maybe Int
- planCreateCode :: Text
- planCreateCurrencies :: NonEmpty PlanPricing
- planCreateCustom_fields :: Maybe CustomFields
- planCreateDescription :: Maybe Text
- planCreateDunning_campaign_id :: Maybe Text
- planCreateHosted_pages :: Maybe PlanHostedPages
- planCreateInterval_length :: Maybe Int
- planCreateInterval_unit :: Maybe PlanCreateInterval_unit
- planCreateLiability_gl_account_id :: Maybe Text
- planCreateName :: Text
- planCreatePerformance_obligation_id :: Maybe Text
- planCreatePricing_model :: Maybe PlanCreatePricing_model
- planCreateRamp_intervals :: Maybe [PlanRampInterval]
- planCreateRevenue_gl_account_id :: Maybe Text
- planCreateRevenue_schedule_type :: Maybe PlanCreateRevenue_schedule_type
- planCreateSetup_fee_accounting_code :: Maybe Text
- planCreateSetup_fee_liability_gl_account_id :: Maybe Text
- planCreateSetup_fee_performance_obligation_id :: Maybe Text
- planCreateSetup_fee_revenue_gl_account_id :: Maybe Text
- planCreateSetup_fee_revenue_schedule_type :: Maybe PlanCreateSetup_fee_revenue_schedule_type
- planCreateTax_code :: Maybe Text
- planCreateTax_exempt :: Maybe Bool
- planCreateTotal_billing_cycles :: Maybe Int
- planCreateTrial_length :: Maybe Int
- planCreateTrial_requires_billing_info :: Maybe Bool
- planCreateTrial_unit :: Maybe PlanCreateTrial_unit
- planCreateVertex_transaction_type :: Maybe Text
- mkPlanCreate :: Text -> NonEmpty PlanPricing -> Text -> PlanCreate
- data PlanCreateInterval_unit
- data PlanCreatePricing_model
- data PlanCreateRevenue_schedule_type
- data PlanCreateSetup_fee_revenue_schedule_type
- = PlanCreateSetup_fee_revenue_schedule_typeOther Value
- | PlanCreateSetup_fee_revenue_schedule_typeTyped Text
- | PlanCreateSetup_fee_revenue_schedule_typeEnumAt_range_end
- | PlanCreateSetup_fee_revenue_schedule_typeEnumAt_range_start
- | PlanCreateSetup_fee_revenue_schedule_typeEnumEvenly
- | PlanCreateSetup_fee_revenue_schedule_typeEnumNever
- data PlanCreateTrial_unit
Documentation
data PlanCreate Source #
Defines the object schema located at components.schemas.PlanCreate in the specification.
Constructors
| PlanCreate | |
Fields
| |
Instances
| FromJSON PlanCreate Source # | |
Defined in RecurlyClient.Types.PlanCreate | |
| ToJSON PlanCreate Source # | |
Defined in RecurlyClient.Types.PlanCreate Methods toJSON :: PlanCreate -> Value # toEncoding :: PlanCreate -> Encoding # toJSONList :: [PlanCreate] -> Value # toEncodingList :: [PlanCreate] -> Encoding # | |
| Show PlanCreate Source # | |
Defined in RecurlyClient.Types.PlanCreate Methods showsPrec :: Int -> PlanCreate -> ShowS # show :: PlanCreate -> String # showList :: [PlanCreate] -> ShowS # | |
| Eq PlanCreate Source # | |
Defined in RecurlyClient.Types.PlanCreate | |
Arguments
| :: Text | |
| -> NonEmpty PlanPricing | |
| -> Text | |
| -> PlanCreate |
Create a new PlanCreate with all required fields.
data PlanCreateInterval_unit Source #
Defines the enum schema located at components.schemas.PlanCreate.properties.interval_unit in the specification.
Unit for the plan's billing interval.
Constructors
| PlanCreateInterval_unitOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| PlanCreateInterval_unitTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| PlanCreateInterval_unitEnumDays | Represents the JSON value |
| PlanCreateInterval_unitEnumMonths | Represents the JSON value |
Instances
| FromJSON PlanCreateInterval_unit Source # | |
Defined in RecurlyClient.Types.PlanCreate Methods parseJSON :: Value -> Parser PlanCreateInterval_unit # parseJSONList :: Value -> Parser [PlanCreateInterval_unit] # | |
| ToJSON PlanCreateInterval_unit Source # | |
Defined in RecurlyClient.Types.PlanCreate Methods toJSON :: PlanCreateInterval_unit -> Value # toEncoding :: PlanCreateInterval_unit -> Encoding # toJSONList :: [PlanCreateInterval_unit] -> Value # | |
| Show PlanCreateInterval_unit Source # | |
Defined in RecurlyClient.Types.PlanCreate Methods showsPrec :: Int -> PlanCreateInterval_unit -> ShowS # show :: PlanCreateInterval_unit -> String # showList :: [PlanCreateInterval_unit] -> ShowS # | |
| Eq PlanCreateInterval_unit Source # | |
Defined in RecurlyClient.Types.PlanCreate Methods (==) :: PlanCreateInterval_unit -> PlanCreateInterval_unit -> Bool # (/=) :: PlanCreateInterval_unit -> PlanCreateInterval_unit -> Bool # | |
data PlanCreatePricing_model Source #
Defines the enum schema located at components.schemas.PlanCreate.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
| PlanCreatePricing_modelOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| PlanCreatePricing_modelTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| PlanCreatePricing_modelEnumFixed | Represents the JSON value |
| PlanCreatePricing_modelEnumRamp | Represents the JSON value |
Instances
| FromJSON PlanCreatePricing_model Source # | |
Defined in RecurlyClient.Types.PlanCreate Methods parseJSON :: Value -> Parser PlanCreatePricing_model # parseJSONList :: Value -> Parser [PlanCreatePricing_model] # | |
| ToJSON PlanCreatePricing_model Source # | |
Defined in RecurlyClient.Types.PlanCreate Methods toJSON :: PlanCreatePricing_model -> Value # toEncoding :: PlanCreatePricing_model -> Encoding # toJSONList :: [PlanCreatePricing_model] -> Value # | |
| Show PlanCreatePricing_model Source # | |
Defined in RecurlyClient.Types.PlanCreate Methods showsPrec :: Int -> PlanCreatePricing_model -> ShowS # show :: PlanCreatePricing_model -> String # showList :: [PlanCreatePricing_model] -> ShowS # | |
| Eq PlanCreatePricing_model Source # | |
Defined in RecurlyClient.Types.PlanCreate Methods (==) :: PlanCreatePricing_model -> PlanCreatePricing_model -> Bool # (/=) :: PlanCreatePricing_model -> PlanCreatePricing_model -> Bool # | |
data PlanCreateRevenue_schedule_type Source #
Defines the enum schema located at components.schemas.PlanCreate.properties.revenue_schedule_type in the specification.
Constructors
| PlanCreateRevenue_schedule_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| PlanCreateRevenue_schedule_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| PlanCreateRevenue_schedule_typeEnumAt_range_end | Represents the JSON value |
| PlanCreateRevenue_schedule_typeEnumAt_range_start | Represents the JSON value |
| PlanCreateRevenue_schedule_typeEnumEvenly | Represents the JSON value |
| PlanCreateRevenue_schedule_typeEnumNever | Represents the JSON value |
Instances
| FromJSON PlanCreateRevenue_schedule_type Source # | |
Defined in RecurlyClient.Types.PlanCreate Methods parseJSON :: Value -> Parser PlanCreateRevenue_schedule_type # parseJSONList :: Value -> Parser [PlanCreateRevenue_schedule_type] # | |
| ToJSON PlanCreateRevenue_schedule_type Source # | |
Defined in RecurlyClient.Types.PlanCreate | |
| Show PlanCreateRevenue_schedule_type Source # | |
Defined in RecurlyClient.Types.PlanCreate Methods showsPrec :: Int -> PlanCreateRevenue_schedule_type -> ShowS # | |
| Eq PlanCreateRevenue_schedule_type Source # | |
Defined in RecurlyClient.Types.PlanCreate | |
data PlanCreateSetup_fee_revenue_schedule_type Source #
Defines the enum schema located at components.schemas.PlanCreate.properties.setup_fee_revenue_schedule_type in the specification.
Constructors
| PlanCreateSetup_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. |
| PlanCreateSetup_fee_revenue_schedule_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| PlanCreateSetup_fee_revenue_schedule_typeEnumAt_range_end | Represents the JSON value |
| PlanCreateSetup_fee_revenue_schedule_typeEnumAt_range_start | Represents the JSON value |
| PlanCreateSetup_fee_revenue_schedule_typeEnumEvenly | Represents the JSON value |
| PlanCreateSetup_fee_revenue_schedule_typeEnumNever | Represents the JSON value |
Instances
data PlanCreateTrial_unit Source #
Defines the enum schema located at components.schemas.PlanCreate.properties.trial_unit in the specification.
Units for the plan's trial period.
Constructors
| PlanCreateTrial_unitOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| PlanCreateTrial_unitTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| PlanCreateTrial_unitEnumDays | Represents the JSON value |
| PlanCreateTrial_unitEnumMonths | Represents the JSON value |
Instances
| FromJSON PlanCreateTrial_unit Source # | |
Defined in RecurlyClient.Types.PlanCreate Methods parseJSON :: Value -> Parser PlanCreateTrial_unit # parseJSONList :: Value -> Parser [PlanCreateTrial_unit] # | |
| ToJSON PlanCreateTrial_unit Source # | |
Defined in RecurlyClient.Types.PlanCreate Methods toJSON :: PlanCreateTrial_unit -> Value # toEncoding :: PlanCreateTrial_unit -> Encoding # toJSONList :: [PlanCreateTrial_unit] -> Value # toEncodingList :: [PlanCreateTrial_unit] -> Encoding # | |
| Show PlanCreateTrial_unit Source # | |
Defined in RecurlyClient.Types.PlanCreate Methods showsPrec :: Int -> PlanCreateTrial_unit -> ShowS # show :: PlanCreateTrial_unit -> String # showList :: [PlanCreateTrial_unit] -> ShowS # | |
| Eq PlanCreateTrial_unit Source # | |
Defined in RecurlyClient.Types.PlanCreate Methods (==) :: PlanCreateTrial_unit -> PlanCreateTrial_unit -> Bool # (/=) :: PlanCreateTrial_unit -> PlanCreateTrial_unit -> Bool # | |