Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.Resume_subscription
Description
Contains the different functions to run the operation resume_subscription
Synopsis
- resume_subscription :: forall m. MonadHTTP m => Text -> ClientT m (Response Resume_subscriptionResponse)
- data Resume_subscriptionResponse
- resume_subscriptionWithConfiguration :: forall m. MonadHTTP m => Configuration -> Text -> m (Response Resume_subscriptionResponse)
- resume_subscriptionRaw :: forall m. MonadHTTP m => Text -> ClientT m (Response ByteString)
- resume_subscriptionWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> Text -> m (Response ByteString)
Documentation
Arguments
:: forall m. MonadHTTP m | |
=> Text | subscription_id: Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`. |
-> ClientT m (Response Resume_subscriptionResponse) | Monadic computation which returns the result of the operation |
PUT /subscriptions/{subscription_id}/resume
This will immediately resume a paused subscription and move it into the active state.
The subscription must be in the paused state. Active, expired, cancelled, or failed subscriptions cannot be resumed.
data Resume_subscriptionResponse Source #
Represents a response of the operation resume_subscription
.
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), Resume_subscriptionResponseError
is used.
Constructors
Resume_subscriptionResponseError String | Means either no matching case available or a parse error |
Resume_subscriptionResponse200 Subscription | A subscription. |
Resume_subscriptionResponse404 Error | Incorrect site or subscription ID. |
Resume_subscriptionResponse422 Error | A validation error such as "Unable to resume active subscription". |
Resume_subscriptionResponseDefault Error | Unexpected error. |
Instances
Show Resume_subscriptionResponse Source # | |
Defined in RecurlyClient.Operations.Resume_subscription Methods showsPrec :: Int -> Resume_subscriptionResponse -> ShowS # show :: Resume_subscriptionResponse -> String # showList :: [Resume_subscriptionResponse] -> ShowS # | |
Eq Resume_subscriptionResponse Source # | |
Defined in RecurlyClient.Operations.Resume_subscription Methods (==) :: Resume_subscriptionResponse -> Resume_subscriptionResponse -> Bool # (/=) :: Resume_subscriptionResponse -> Resume_subscriptionResponse -> Bool # |
resume_subscriptionWithConfiguration Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> Text | subscription_id: Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`. |
-> m (Response Resume_subscriptionResponse) | Monadic computation which returns the result of the operation |
PUT /subscriptions/{subscription_id}/resume
The same as resume_subscription
but accepts an explicit configuration.
resume_subscriptionRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> Text | subscription_id: Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`. |
-> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
PUT /subscriptions/{subscription_id}/resume
The same as resume_subscription
but returns the raw ByteString
.
resume_subscriptionWithConfigurationRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> Text | subscription_id: Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`. |
-> m (Response ByteString) | Monadic computation which returns the result of the operation |
PUT /subscriptions/{subscription_id}/resume
The same as resume_subscription
but accepts an explicit configuration and returns the raw ByteString
.