| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.Types.PortalSubscriptionUpdate
Description
Contains the types generated from the schema PortalSubscriptionUpdate
Synopsis
- data PortalSubscriptionUpdate = PortalSubscriptionUpdate {}
- mkPortalSubscriptionUpdate :: [PortalSubscriptionUpdateDefaultAllowedUpdates'] -> Bool -> PortalSubscriptionUpdateProrationBehavior' -> PortalSubscriptionUpdate
- data PortalSubscriptionUpdateDefaultAllowedUpdates'
- data PortalSubscriptionUpdateProrationBehavior'
Documentation
data PortalSubscriptionUpdate Source #
Defines the object schema located at components.schemas.portal_subscription_update in the specification.
Constructors
| PortalSubscriptionUpdate | |
Fields
| |
Instances
| Eq PortalSubscriptionUpdate Source # | |
Defined in StripeAPI.Types.PortalSubscriptionUpdate Methods (==) :: PortalSubscriptionUpdate -> PortalSubscriptionUpdate -> Bool # (/=) :: PortalSubscriptionUpdate -> PortalSubscriptionUpdate -> Bool # | |
| Show PortalSubscriptionUpdate Source # | |
Defined in StripeAPI.Types.PortalSubscriptionUpdate Methods showsPrec :: Int -> PortalSubscriptionUpdate -> ShowS # show :: PortalSubscriptionUpdate -> String # showList :: [PortalSubscriptionUpdate] -> ShowS # | |
| ToJSON PortalSubscriptionUpdate Source # | |
Defined in StripeAPI.Types.PortalSubscriptionUpdate Methods toJSON :: PortalSubscriptionUpdate -> Value # toEncoding :: PortalSubscriptionUpdate -> Encoding # toJSONList :: [PortalSubscriptionUpdate] -> Value # | |
| FromJSON PortalSubscriptionUpdate Source # | |
Defined in StripeAPI.Types.PortalSubscriptionUpdate Methods parseJSON :: Value -> Parser PortalSubscriptionUpdate # parseJSONList :: Value -> Parser [PortalSubscriptionUpdate] # | |
mkPortalSubscriptionUpdate Source #
Arguments
| :: [PortalSubscriptionUpdateDefaultAllowedUpdates'] | |
| -> Bool | |
| -> PortalSubscriptionUpdateProrationBehavior' | |
| -> PortalSubscriptionUpdate |
Create a new PortalSubscriptionUpdate with all required fields.
data PortalSubscriptionUpdateDefaultAllowedUpdates' Source #
Defines the enum schema located at components.schemas.portal_subscription_update.properties.default_allowed_updates.items in the specification.
Constructors
| PortalSubscriptionUpdateDefaultAllowedUpdates'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| PortalSubscriptionUpdateDefaultAllowedUpdates'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| PortalSubscriptionUpdateDefaultAllowedUpdates'EnumPrice | Represents the JSON value |
| PortalSubscriptionUpdateDefaultAllowedUpdates'EnumPromotionCode | Represents the JSON value |
| PortalSubscriptionUpdateDefaultAllowedUpdates'EnumQuantity | Represents the JSON value |
Instances
data PortalSubscriptionUpdateProrationBehavior' Source #
Defines the enum schema located at components.schemas.portal_subscription_update.properties.proration_behavior in the specification.
Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
Constructors
| PortalSubscriptionUpdateProrationBehavior'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| PortalSubscriptionUpdateProrationBehavior'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| PortalSubscriptionUpdateProrationBehavior'EnumAlwaysInvoice | Represents the JSON value |
| PortalSubscriptionUpdateProrationBehavior'EnumCreateProrations | Represents the JSON value |
| PortalSubscriptionUpdateProrationBehavior'EnumNone | Represents the JSON value |