Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.SubscriptionAddOnUpdate
Description
Contains the types generated from the schema SubscriptionAddOnUpdate
Synopsis
- data SubscriptionAddOnUpdate = SubscriptionAddOnUpdate {
- subscriptionAddOnUpdateAdd_on_source :: Maybe SubscriptionAddOnUpdateAdd_on_source
- subscriptionAddOnUpdateCode :: Maybe Text
- subscriptionAddOnUpdateId :: Maybe Text
- subscriptionAddOnUpdatePercentage_tiers :: Maybe (NonEmpty SubscriptionAddOnPercentageTier)
- subscriptionAddOnUpdateQuantity :: Maybe Int
- subscriptionAddOnUpdateRevenue_schedule_type :: Maybe SubscriptionAddOnUpdateRevenue_schedule_type
- subscriptionAddOnUpdateTiers :: Maybe (NonEmpty SubscriptionAddOnTier)
- subscriptionAddOnUpdateUnit_amount :: Maybe Float
- subscriptionAddOnUpdateUnit_amount_decimal :: Maybe Text
- subscriptionAddOnUpdateUsage_percentage :: Maybe Float
- mkSubscriptionAddOnUpdate :: SubscriptionAddOnUpdate
- data SubscriptionAddOnUpdateAdd_on_source
- data SubscriptionAddOnUpdateRevenue_schedule_type
- = SubscriptionAddOnUpdateRevenue_schedule_typeOther Value
- | SubscriptionAddOnUpdateRevenue_schedule_typeTyped Text
- | SubscriptionAddOnUpdateRevenue_schedule_typeEnumAt_range_end
- | SubscriptionAddOnUpdateRevenue_schedule_typeEnumAt_range_start
- | SubscriptionAddOnUpdateRevenue_schedule_typeEnumEvenly
- | SubscriptionAddOnUpdateRevenue_schedule_typeEnumNever
Documentation
data SubscriptionAddOnUpdate Source #
Defines the object schema located at components.schemas.SubscriptionAddOnUpdate
in the specification.
Constructors
SubscriptionAddOnUpdate | |
Fields
|
Instances
FromJSON SubscriptionAddOnUpdate Source # | |
Defined in RecurlyClient.Types.SubscriptionAddOnUpdate Methods parseJSON :: Value -> Parser SubscriptionAddOnUpdate # parseJSONList :: Value -> Parser [SubscriptionAddOnUpdate] # | |
ToJSON SubscriptionAddOnUpdate Source # | |
Defined in RecurlyClient.Types.SubscriptionAddOnUpdate Methods toJSON :: SubscriptionAddOnUpdate -> Value # toEncoding :: SubscriptionAddOnUpdate -> Encoding # toJSONList :: [SubscriptionAddOnUpdate] -> Value # | |
Show SubscriptionAddOnUpdate Source # | |
Defined in RecurlyClient.Types.SubscriptionAddOnUpdate Methods showsPrec :: Int -> SubscriptionAddOnUpdate -> ShowS # show :: SubscriptionAddOnUpdate -> String # showList :: [SubscriptionAddOnUpdate] -> ShowS # | |
Eq SubscriptionAddOnUpdate Source # | |
Defined in RecurlyClient.Types.SubscriptionAddOnUpdate Methods (==) :: SubscriptionAddOnUpdate -> SubscriptionAddOnUpdate -> Bool # (/=) :: SubscriptionAddOnUpdate -> SubscriptionAddOnUpdate -> Bool # |
mkSubscriptionAddOnUpdate :: SubscriptionAddOnUpdate Source #
Create a new SubscriptionAddOnUpdate
with all required fields.
data SubscriptionAddOnUpdateAdd_on_source Source #
Defines the enum schema located at components.schemas.SubscriptionAddOnUpdate.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
SubscriptionAddOnUpdateAdd_on_sourceOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
SubscriptionAddOnUpdateAdd_on_sourceTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
SubscriptionAddOnUpdateAdd_on_sourceEnumPlan_add_on | Represents the JSON value |
SubscriptionAddOnUpdateAdd_on_sourceEnumItem | Represents the JSON value |
Instances
data SubscriptionAddOnUpdateRevenue_schedule_type Source #
Defines the enum schema located at components.schemas.SubscriptionAddOnUpdate.properties.revenue_schedule_type
in the specification.
Constructors
SubscriptionAddOnUpdateRevenue_schedule_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
SubscriptionAddOnUpdateRevenue_schedule_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
SubscriptionAddOnUpdateRevenue_schedule_typeEnumAt_range_end | Represents the JSON value |
SubscriptionAddOnUpdateRevenue_schedule_typeEnumAt_range_start | Represents the JSON value |
SubscriptionAddOnUpdateRevenue_schedule_typeEnumEvenly | Represents the JSON value |
SubscriptionAddOnUpdateRevenue_schedule_typeEnumNever | Represents the JSON value |