| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
RecurlyClient.Operations.Create_subscription
Description
Contains the different functions to run the operation create_subscription
Synopsis
- create_subscription :: forall m. MonadHTTP m => SubscriptionCreate -> ClientT m (Response Create_subscriptionResponse)
- data Create_subscriptionResponse
- create_subscriptionWithConfiguration :: forall m. MonadHTTP m => Configuration -> SubscriptionCreate -> m (Response Create_subscriptionResponse)
- create_subscriptionRaw :: forall m. MonadHTTP m => SubscriptionCreate -> ClientT m (Response ByteString)
- create_subscriptionWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> SubscriptionCreate -> m (Response ByteString)
Documentation
Arguments
| :: forall m. MonadHTTP m | |
| => SubscriptionCreate | The request body to send |
| -> ClientT m (Response Create_subscriptionResponse) | Monadic computation which returns the result of the operation |
POST /subscriptions
Create a new subscription
data Create_subscriptionResponse Source #
Represents a response of the operation create_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), Create_subscriptionResponseError is used.
Constructors
| Create_subscriptionResponseError String | Means either no matching case available or a parse error |
| Create_subscriptionResponse201 Subscription | A subscription. |
| Create_subscriptionResponse404 Error | Incorrect site ID. |
| Create_subscriptionResponse422 ErrorMayHaveTransaction | A validation error such as 'You already have a subscription to this plan.' error running the verification transaction. |
| Create_subscriptionResponseDefault Error | Unexpected error. |
Instances
| Show Create_subscriptionResponse Source # | |
Defined in RecurlyClient.Operations.Create_subscription Methods showsPrec :: Int -> Create_subscriptionResponse -> ShowS # show :: Create_subscriptionResponse -> String # showList :: [Create_subscriptionResponse] -> ShowS # | |
| Eq Create_subscriptionResponse Source # | |
Defined in RecurlyClient.Operations.Create_subscription Methods (==) :: Create_subscriptionResponse -> Create_subscriptionResponse -> Bool # (/=) :: Create_subscriptionResponse -> Create_subscriptionResponse -> Bool # | |
create_subscriptionWithConfiguration Source #
Arguments
| :: forall m. MonadHTTP m | |
| => Configuration | The configuration to use in the request |
| -> SubscriptionCreate | The request body to send |
| -> m (Response Create_subscriptionResponse) | Monadic computation which returns the result of the operation |
POST /subscriptions
The same as create_subscription but accepts an explicit configuration.
create_subscriptionRaw Source #
Arguments
| :: forall m. MonadHTTP m | |
| => SubscriptionCreate | The request body to send |
| -> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
POST /subscriptions
The same as create_subscription but returns the raw ByteString.
create_subscriptionWithConfigurationRaw Source #
Arguments
| :: forall m. MonadHTTP m | |
| => Configuration | The configuration to use in the request |
| -> SubscriptionCreate | The request body to send |
| -> m (Response ByteString) | Monadic computation which returns the result of the operation |
POST /subscriptions
The same as create_subscription but accepts an explicit configuration and returns the raw ByteString.