Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.Update_subscription
Description
Contains the different functions to run the operation update_subscription
Synopsis
- update_subscription :: forall m. MonadHTTP m => Text -> SubscriptionUpdate -> ClientT m (Response Update_subscriptionResponse)
- data Update_subscriptionResponse
- update_subscriptionWithConfiguration :: forall m. MonadHTTP m => Configuration -> Text -> SubscriptionUpdate -> m (Response Update_subscriptionResponse)
- update_subscriptionRaw :: forall m. MonadHTTP m => Text -> SubscriptionUpdate -> ClientT m (Response ByteString)
- update_subscriptionWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> Text -> SubscriptionUpdate -> 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`. |
-> SubscriptionUpdate | The request body to send |
-> ClientT m (Response Update_subscriptionResponse) | Monadic computation which returns the result of the operation |
PUT /subscriptions/{subscription_id}
This only lets you change the subscription settings that have no impact on the billed amount. Use the Create Subscription Change endpoint to make those changes.
data Update_subscriptionResponse Source #
Represents a response of the operation update_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), Update_subscriptionResponseError
is used.
Constructors
Update_subscriptionResponseError String | Means either no matching case available or a parse error |
Update_subscriptionResponse200 Subscription | A subscription. |
Update_subscriptionResponseDefault Error | Unexpected error. |
Instances
Show Update_subscriptionResponse Source # | |
Defined in RecurlyClient.Operations.Update_subscription Methods showsPrec :: Int -> Update_subscriptionResponse -> ShowS # show :: Update_subscriptionResponse -> String # showList :: [Update_subscriptionResponse] -> ShowS # | |
Eq Update_subscriptionResponse Source # | |
Defined in RecurlyClient.Operations.Update_subscription Methods (==) :: Update_subscriptionResponse -> Update_subscriptionResponse -> Bool # (/=) :: Update_subscriptionResponse -> Update_subscriptionResponse -> Bool # |
update_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`. |
-> SubscriptionUpdate | The request body to send |
-> m (Response Update_subscriptionResponse) | Monadic computation which returns the result of the operation |
PUT /subscriptions/{subscription_id}
The same as update_subscription
but accepts an explicit configuration.
update_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`. |
-> SubscriptionUpdate | The request body to send |
-> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
PUT /subscriptions/{subscription_id}
The same as update_subscription
but returns the raw ByteString
.
update_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`. |
-> SubscriptionUpdate | The request body to send |
-> m (Response ByteString) | Monadic computation which returns the result of the operation |
PUT /subscriptions/{subscription_id}
The same as update_subscription
but accepts an explicit configuration and returns the raw ByteString
.