Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postOrdersIdPay
Synopsis
Documentation
:: forall m. MonadHTTP m | |
=> Text | id | Constraints: Maximum length of 5000 |
-> Maybe PostOrdersIdPayRequestBody | The request body to send |
-> StripeT m (Response PostOrdersIdPayResponse) | Monadic computation which returns the result of the operation |
POST /v1/orders/{id}/pay
<p>Pay an order by providing a <code>source</code> to create a payment.</p>
data PostOrdersIdPayRequestBody Source #
Defines the object schema located at paths./v1/orders/{id}/pay.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
PostOrdersIdPayRequestBody | |
|
Instances
mkPostOrdersIdPayRequestBody :: PostOrdersIdPayRequestBody Source #
Create a new PostOrdersIdPayRequestBody
with all required fields.
data PostOrdersIdPayResponse Source #
Represents a response of the operation postOrdersIdPay
.
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), PostOrdersIdPayResponseError
is used.
PostOrdersIdPayResponseError String | Means either no matching case available or a parse error |
PostOrdersIdPayResponse200 Order | Successful response. |
PostOrdersIdPayResponseDefault Error | Error response. |
Instances
Eq PostOrdersIdPayResponse Source # | |
Defined in StripeAPI.Operations.PostOrdersIdPay | |
Show PostOrdersIdPayResponse Source # | |
Defined in StripeAPI.Operations.PostOrdersIdPay showsPrec :: Int -> PostOrdersIdPayResponse -> ShowS # show :: PostOrdersIdPayResponse -> String # showList :: [PostOrdersIdPayResponse] -> ShowS # |