| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
RecurlyClient.Operations.Get_subscription
Description
Contains the different functions to run the operation get_subscription
Synopsis
- get_subscription :: forall m. MonadHTTP m => Text -> ClientT m (Response Get_subscriptionResponse)
- data Get_subscriptionResponse
- get_subscriptionWithConfiguration :: forall m. MonadHTTP m => Configuration -> Text -> m (Response Get_subscriptionResponse)
- get_subscriptionRaw :: forall m. MonadHTTP m => Text -> ClientT m (Response ByteString)
- get_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 Get_subscriptionResponse) | Monadic computation which returns the result of the operation |
GET /subscriptions/{subscription_id}Fetch a subscription
data Get_subscriptionResponse Source #
Represents a response of the operation get_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), Get_subscriptionResponseError is used.
Constructors
| Get_subscriptionResponseError String | Means either no matching case available or a parse error |
| Get_subscriptionResponse200 Subscription | A subscription. |
| Get_subscriptionResponse404 Error | Incorrect site or subscription ID. |
| Get_subscriptionResponseDefault Error | Unexpected error |
Instances
| Show Get_subscriptionResponse Source # | |
Defined in RecurlyClient.Operations.Get_subscription Methods showsPrec :: Int -> Get_subscriptionResponse -> ShowS # show :: Get_subscriptionResponse -> String # showList :: [Get_subscriptionResponse] -> ShowS # | |
| Eq Get_subscriptionResponse Source # | |
Defined in RecurlyClient.Operations.Get_subscription Methods (==) :: Get_subscriptionResponse -> Get_subscriptionResponse -> Bool # (/=) :: Get_subscriptionResponse -> Get_subscriptionResponse -> Bool # | |
get_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 Get_subscriptionResponse) | Monadic computation which returns the result of the operation |
GET /subscriptions/{subscription_id}The same as get_subscription but accepts an explicit configuration.
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 |
GET /subscriptions/{subscription_id}The same as get_subscription but returns the raw ByteString.
get_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 |
GET /subscriptions/{subscription_id}The same as get_subscription but accepts an explicit configuration and returns the raw ByteString.