| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.Operations.PostSubscriptionSchedulesScheduleRelease
Description
Contains the different functions to run the operation postSubscriptionSchedulesScheduleRelease
Synopsis
- postSubscriptionSchedulesScheduleRelease :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostSubscriptionSchedulesScheduleReleaseRequestBody -> m (Either HttpException (Response PostSubscriptionSchedulesScheduleReleaseResponse))
- postSubscriptionSchedulesScheduleReleaseRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostSubscriptionSchedulesScheduleReleaseRequestBody -> m (Either HttpException (Response ByteString))
- postSubscriptionSchedulesScheduleReleaseM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostSubscriptionSchedulesScheduleReleaseRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostSubscriptionSchedulesScheduleReleaseResponse))
- postSubscriptionSchedulesScheduleReleaseRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostSubscriptionSchedulesScheduleReleaseRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostSubscriptionSchedulesScheduleReleaseRequestBody = PostSubscriptionSchedulesScheduleReleaseRequestBody {}
- data PostSubscriptionSchedulesScheduleReleaseResponse
Documentation
postSubscriptionSchedulesScheduleRelease Source #
Arguments
| :: (MonadHTTP m, SecurityScheme s) | |
| => Configuration s | The configuration to use in the request |
| -> String | schedule | Constraints: Maximum length of 5000 |
| -> PostSubscriptionSchedulesScheduleReleaseRequestBody | The request body to send |
| -> m (Either HttpException (Response PostSubscriptionSchedulesScheduleReleaseResponse)) | Monad containing the result of the operation |
POST /v1/subscription_schedules/{schedule}/release<p>Releases the subscription schedule immediately, which will stop scheduling of its phases, but leave any existing subscription in place. A schedule can only be released if its status is <code>not_started</code> or <code>active</code>. If the subscription schedule is currently associated with a subscription, releasing it will remove its <code>subscription</code> property and set the subscription’s ID to the <code>released_subscription</code> property.</p>
postSubscriptionSchedulesScheduleReleaseRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostSubscriptionSchedulesScheduleReleaseRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/subscription_schedules/{schedule}/releaseThe same as postSubscriptionSchedulesScheduleRelease but returns the raw ByteString
postSubscriptionSchedulesScheduleReleaseM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostSubscriptionSchedulesScheduleReleaseRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostSubscriptionSchedulesScheduleReleaseResponse)) Source #
POST /v1/subscription_schedules/{schedule}/releaseMonadic version of postSubscriptionSchedulesScheduleRelease (use with runWithConfiguration)
postSubscriptionSchedulesScheduleReleaseRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostSubscriptionSchedulesScheduleReleaseRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/subscription_schedules/{schedule}/releaseMonadic version of postSubscriptionSchedulesScheduleReleaseRaw (use with runWithConfiguration)
data PostSubscriptionSchedulesScheduleReleaseRequestBody Source #
Defines the data type for the schema postSubscriptionSchedulesScheduleReleaseRequestBody
Constructors
| PostSubscriptionSchedulesScheduleReleaseRequestBody | |
Fields
| |
Instances
data PostSubscriptionSchedulesScheduleReleaseResponse Source #
Represents a response of the operation postSubscriptionSchedulesScheduleRelease.
The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), PostSubscriptionSchedulesScheduleReleaseResponseError is used.
Constructors
| PostSubscriptionSchedulesScheduleReleaseResponseError String | Means either no matching case available or a parse error |
| PostSubscriptionSchedulesScheduleReleaseResponse200 SubscriptionSchedule | Successful response. |
| PostSubscriptionSchedulesScheduleReleaseResponseDefault Error | Error response. |