Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postOrdersIdPay
Synopsis
- postOrdersIdPay :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostOrdersIdPayRequestBody -> m (Either HttpException (Response PostOrdersIdPayResponse))
- postOrdersIdPayRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostOrdersIdPayRequestBody -> m (Either HttpException (Response ByteString))
- postOrdersIdPayM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostOrdersIdPayRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostOrdersIdPayResponse))
- postOrdersIdPayRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostOrdersIdPayRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostOrdersIdPayRequestBody = PostOrdersIdPayRequestBody {
- postOrdersIdPayRequestBodyApplicationFee :: Maybe Integer
- postOrdersIdPayRequestBodyCustomer :: Maybe String
- postOrdersIdPayRequestBodyEmail :: Maybe String
- postOrdersIdPayRequestBodyExpand :: Maybe ([] String)
- postOrdersIdPayRequestBodyMetadata :: Maybe PostOrdersIdPayRequestBodyMetadata'
- postOrdersIdPayRequestBodySource :: Maybe String
- data PostOrdersIdPayRequestBodyMetadata' = PostOrdersIdPayRequestBodyMetadata' {
- data PostOrdersIdPayResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | id | Constraints: Maximum length of 5000 |
-> PostOrdersIdPayRequestBody | The request body to send |
-> m (Either HttpException (Response PostOrdersIdPayResponse)) | Monad containing 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>
postOrdersIdPayRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostOrdersIdPayRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/orders/{id}/pay
The same as postOrdersIdPay
but returns the raw ByteString
postOrdersIdPayM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostOrdersIdPayRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostOrdersIdPayResponse)) Source #
POST /v1/orders/{id}/pay
Monadic version of postOrdersIdPay
(use with runWithConfiguration
)
postOrdersIdPayRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostOrdersIdPayRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/orders/{id}/pay
Monadic version of postOrdersIdPayRaw
(use with runWithConfiguration
)
data PostOrdersIdPayRequestBody Source #
Defines the data type for the schema postOrdersIdPayRequestBody
PostOrdersIdPayRequestBody | |
|
Instances
data PostOrdersIdPayRequestBodyMetadata' Source #
Defines the data type for the schema postOrdersIdPayRequestBodyMetadata'
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
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 # |