Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.SubscriptionAddOnCreate
Description
Contains the types generated from the schema SubscriptionAddOnCreate
Synopsis
- data SubscriptionAddOnCreate = SubscriptionAddOnCreate {
- subscriptionAddOnCreateAdd_on_source :: Maybe SubscriptionAddOnCreateAdd_on_source
- subscriptionAddOnCreateCode :: Text
- subscriptionAddOnCreatePercentage_tiers :: Maybe (NonEmpty SubscriptionAddOnPercentageTier)
- subscriptionAddOnCreateQuantity :: Maybe Int
- subscriptionAddOnCreateRevenue_schedule_type :: Maybe SubscriptionAddOnCreateRevenue_schedule_type
- subscriptionAddOnCreateTiers :: Maybe (NonEmpty SubscriptionAddOnTier)
- subscriptionAddOnCreateUnit_amount :: Maybe Float
- subscriptionAddOnCreateUnit_amount_decimal :: Maybe Text
- subscriptionAddOnCreateUsage_percentage :: Maybe Float
- mkSubscriptionAddOnCreate :: Text -> SubscriptionAddOnCreate
- data SubscriptionAddOnCreateAdd_on_source
- data SubscriptionAddOnCreateRevenue_schedule_type
- = SubscriptionAddOnCreateRevenue_schedule_typeOther Value
- | SubscriptionAddOnCreateRevenue_schedule_typeTyped Text
- | SubscriptionAddOnCreateRevenue_schedule_typeEnumAt_range_end
- | SubscriptionAddOnCreateRevenue_schedule_typeEnumAt_range_start
- | SubscriptionAddOnCreateRevenue_schedule_typeEnumEvenly
- | SubscriptionAddOnCreateRevenue_schedule_typeEnumNever
Documentation
data SubscriptionAddOnCreate Source #
Defines the object schema located at components.schemas.SubscriptionAddOnCreate
in the specification.
Constructors
SubscriptionAddOnCreate | |
Fields
|
Instances
FromJSON SubscriptionAddOnCreate Source # | |
Defined in RecurlyClient.Types.SubscriptionAddOnCreate Methods parseJSON :: Value -> Parser SubscriptionAddOnCreate # parseJSONList :: Value -> Parser [SubscriptionAddOnCreate] # | |
ToJSON SubscriptionAddOnCreate Source # | |
Defined in RecurlyClient.Types.SubscriptionAddOnCreate Methods toJSON :: SubscriptionAddOnCreate -> Value # toEncoding :: SubscriptionAddOnCreate -> Encoding # toJSONList :: [SubscriptionAddOnCreate] -> Value # | |
Show SubscriptionAddOnCreate Source # | |
Defined in RecurlyClient.Types.SubscriptionAddOnCreate Methods showsPrec :: Int -> SubscriptionAddOnCreate -> ShowS # show :: SubscriptionAddOnCreate -> String # showList :: [SubscriptionAddOnCreate] -> ShowS # | |
Eq SubscriptionAddOnCreate Source # | |
Defined in RecurlyClient.Types.SubscriptionAddOnCreate Methods (==) :: SubscriptionAddOnCreate -> SubscriptionAddOnCreate -> Bool # (/=) :: SubscriptionAddOnCreate -> SubscriptionAddOnCreate -> Bool # |
mkSubscriptionAddOnCreate Source #
Arguments
:: Text | |
-> SubscriptionAddOnCreate |
Create a new SubscriptionAddOnCreate
with all required fields.
data SubscriptionAddOnCreateAdd_on_source Source #
Defines the enum schema located at components.schemas.SubscriptionAddOnCreate.properties.add_on_source
in the specification.
Used to determine where the associated add-on data is pulled from. If this value is set to `plan_add_on` or left blank, then add-on data will be pulled from the plan's add-ons. If the associated `plan` has `allow_any_item_on_subscriptions` set to `true` and this field is set to `item`, then the associated add-on data will be pulled from the site's item catalog.
Constructors
SubscriptionAddOnCreateAdd_on_sourceOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
SubscriptionAddOnCreateAdd_on_sourceTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
SubscriptionAddOnCreateAdd_on_sourceEnumPlan_add_on | Represents the JSON value |
SubscriptionAddOnCreateAdd_on_sourceEnumItem | Represents the JSON value |
Instances
data SubscriptionAddOnCreateRevenue_schedule_type Source #
Defines the enum schema located at components.schemas.SubscriptionAddOnCreate.properties.revenue_schedule_type
in the specification.
Constructors
SubscriptionAddOnCreateRevenue_schedule_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
SubscriptionAddOnCreateRevenue_schedule_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
SubscriptionAddOnCreateRevenue_schedule_typeEnumAt_range_end | Represents the JSON value |
SubscriptionAddOnCreateRevenue_schedule_typeEnumAt_range_start | Represents the JSON value |
SubscriptionAddOnCreateRevenue_schedule_typeEnumEvenly | Represents the JSON value |
SubscriptionAddOnCreateRevenue_schedule_typeEnumNever | Represents the JSON value |