recurly-client-0.1.0.0: Client for Recurly subscription management
Safe HaskellSafe-Inferred
LanguageHaskell2010

RecurlyClient.Operations.Create_shipping_method

Description

Contains the different functions to run the operation create_shipping_method

Synopsis

Documentation

create_shipping_method Source #

Arguments

:: forall m. MonadHTTP m 
=> ShippingMethodCreate

The request body to send

-> ClientT m (Response Create_shipping_methodResponse)

Monadic computation which returns the result of the operation

POST /shipping_methods

Create a new shipping method

data Create_shipping_methodResponse Source #

Represents a response of the operation create_shipping_method.

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_shipping_methodResponseError is used.

Constructors

Create_shipping_methodResponseError String

Means either no matching case available or a parse error

Create_shipping_methodResponse201 ShippingMethod

A new shipping method.

Create_shipping_methodResponse400 Error

Bad request, perhaps invalid JSON?

Create_shipping_methodResponse404 Error

Incorrect site ID.

Create_shipping_methodResponse422 Error

Invalid request parameters.

Create_shipping_methodResponseDefault Error

Unexpected error.

create_shipping_methodWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> ShippingMethodCreate

The request body to send

-> m (Response Create_shipping_methodResponse)

Monadic computation which returns the result of the operation

POST /shipping_methods

The same as create_shipping_method but accepts an explicit configuration.

create_shipping_methodRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> ShippingMethodCreate

The request body to send

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

POST /shipping_methods

The same as create_shipping_method but returns the raw ByteString.

create_shipping_methodWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> ShippingMethodCreate

The request body to send

-> m (Response ByteString)

Monadic computation which returns the result of the operation

POST /shipping_methods

The same as create_shipping_method but accepts an explicit configuration and returns the raw ByteString.