Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation create_pending_purchase
Synopsis
- create_pending_purchase :: forall m. MonadHTTP m => PurchaseCreate -> ClientT m (Response Create_pending_purchaseResponse)
- data Create_pending_purchaseResponse
- create_pending_purchaseWithConfiguration :: forall m. MonadHTTP m => Configuration -> PurchaseCreate -> m (Response Create_pending_purchaseResponse)
- create_pending_purchaseRaw :: forall m. MonadHTTP m => PurchaseCreate -> ClientT m (Response ByteString)
- create_pending_purchaseWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> PurchaseCreate -> m (Response ByteString)
Documentation
create_pending_purchase Source #
:: forall m. MonadHTTP m | |
=> PurchaseCreate | The request body to send |
-> ClientT m (Response Create_pending_purchaseResponse) | Monadic computation which returns the result of the operation |
POST /purchases/pending
A purchase is a hybrid checkout containing at least one or more subscriptions or one-time charges (adjustments) and supports both coupon and gift card redemptions. All items purchased will be on one invoice and paid for with one transaction. A purchase is only a request data type and is not persistent in Recurly and an invoice collection will be the returned type.
Use for **Adyen HPP** and **Online Banking** transaction requests. This runs the validations but not the transactions. The API request allows the inclusion of the following field: **external_hpp_type** with `'adyen'` in the **billing_info** object.
For additional information regarding shipping fees, please see https://docs.recurly.com/docs/shipping
Note: an email address is required on the account for a Pending Purchase.
data Create_pending_purchaseResponse Source #
Represents a response of the operation create_pending_purchase
.
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_pending_purchaseResponseError
is used.
Create_pending_purchaseResponseError String | Means either no matching case available or a parse error |
Create_pending_purchaseResponse200 InvoiceCollection | Returns the pending invoice |
Create_pending_purchaseResponse400 Error | Bad request; perhaps missing or invalid parameters. |
Create_pending_purchaseResponse422 Error | Pending purchase cannot be completed for the specified reason. |
Create_pending_purchaseResponseDefault Error | Unexpected error. |
create_pending_purchaseWithConfiguration Source #
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> PurchaseCreate | The request body to send |
-> m (Response Create_pending_purchaseResponse) | Monadic computation which returns the result of the operation |
POST /purchases/pending
The same as create_pending_purchase
but accepts an explicit configuration.
create_pending_purchaseRaw Source #
:: forall m. MonadHTTP m | |
=> PurchaseCreate | The request body to send |
-> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
POST /purchases/pending
The same as create_pending_purchase
but returns the raw ByteString
.
create_pending_purchaseWithConfigurationRaw Source #
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> PurchaseCreate | The request body to send |
-> m (Response ByteString) | Monadic computation which returns the result of the operation |
POST /purchases/pending
The same as create_pending_purchase
but accepts an explicit configuration and returns the raw ByteString
.