Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.Create_external_product
Description
Contains the different functions to run the operation create_external_product
Synopsis
- create_external_product :: forall m. MonadHTTP m => ExternalProductCreate -> ClientT m (Response Create_external_productResponse)
- data Create_external_productResponse
- create_external_productWithConfiguration :: forall m. MonadHTTP m => Configuration -> ExternalProductCreate -> m (Response Create_external_productResponse)
- create_external_productRaw :: forall m. MonadHTTP m => ExternalProductCreate -> ClientT m (Response ByteString)
- create_external_productWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> ExternalProductCreate -> m (Response ByteString)
Documentation
create_external_product Source #
Arguments
:: forall m. MonadHTTP m | |
=> ExternalProductCreate | The request body to send |
-> ClientT m (Response Create_external_productResponse) | Monadic computation which returns the result of the operation |
POST /external_products
Create an external product
data Create_external_productResponse Source #
Represents a response of the operation create_external_product
.
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_external_productResponseError
is used.
Constructors
Create_external_productResponseError String | Means either no matching case available or a parse error |
Create_external_productResponse201 ExternalProduct | Returns the external product |
Create_external_productResponse400 Error | Bad request; perhaps missing or invalid parameters. |
Create_external_productResponse404 Error | External product cannot be created for the specified reason. |
Create_external_productResponseDefault Error | Unexpected error. |
Instances
create_external_productWithConfiguration Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> ExternalProductCreate | The request body to send |
-> m (Response Create_external_productResponse) | Monadic computation which returns the result of the operation |
POST /external_products
The same as create_external_product
but accepts an explicit configuration.
create_external_productRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> ExternalProductCreate | The request body to send |
-> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
POST /external_products
The same as create_external_product
but returns the raw ByteString
.
create_external_productWithConfigurationRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> ExternalProductCreate | The request body to send |
-> m (Response ByteString) | Monadic computation which returns the result of the operation |
POST /external_products
The same as create_external_product
but accepts an explicit configuration and returns the raw ByteString
.