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

RecurlyClient.Operations.Create_account

Description

Contains the different functions to run the operation create_account

Synopsis

Documentation

create_account Source #

Arguments

:: forall m. MonadHTTP m 
=> AccountCreate

The request body to send

-> ClientT m (Response Create_accountResponse)

Monadic computation which returns the result of the operation

POST /accounts

Create an account

data Create_accountResponse Source #

Represents a response of the operation create_account.

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

Constructors

Create_accountResponseError String

Means either no matching case available or a parse error

Create_accountResponse201 Account

An account.

Create_accountResponse400 Error

Bad request, perhaps invalid JSON?

Create_accountResponse404 Error

Incorrect site ID.

Create_accountResponse422 Error

Invalid parameters or an error running the billing info verification transaction.

Create_accountResponseDefault Error

Unexpected error.

create_accountWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> AccountCreate

The request body to send

-> m (Response Create_accountResponse)

Monadic computation which returns the result of the operation

POST /accounts

The same as create_account but accepts an explicit configuration.

create_accountRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> AccountCreate

The request body to send

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

POST /accounts

The same as create_account but returns the raw ByteString.

create_accountWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> AccountCreate

The request body to send

-> m (Response ByteString)

Monadic computation which returns the result of the operation

POST /accounts

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