Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.Create_account
Description
Contains the different functions to run the operation create_account
Synopsis
- create_account :: forall m. MonadHTTP m => AccountCreate -> ClientT m (Response Create_accountResponse)
- data Create_accountResponse
- create_accountWithConfiguration :: forall m. MonadHTTP m => Configuration -> AccountCreate -> m (Response Create_accountResponse)
- create_accountRaw :: forall m. MonadHTTP m => AccountCreate -> ClientT m (Response ByteString)
- create_accountWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> AccountCreate -> m (Response ByteString)
Documentation
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. |
Instances
Show Create_accountResponse Source # | |
Defined in RecurlyClient.Operations.Create_account Methods showsPrec :: Int -> Create_accountResponse -> ShowS # show :: Create_accountResponse -> String # showList :: [Create_accountResponse] -> ShowS # | |
Eq Create_accountResponse Source # | |
Defined in RecurlyClient.Operations.Create_account Methods (==) :: Create_accountResponse -> Create_accountResponse -> Bool # (/=) :: Create_accountResponse -> Create_accountResponse -> Bool # |
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.
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
.