Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postInvoicesInvoicePay
Synopsis
- postInvoicesInvoicePay :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostInvoicesInvoicePayRequestBody -> m (Either HttpException (Response PostInvoicesInvoicePayResponse))
- postInvoicesInvoicePayRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostInvoicesInvoicePayRequestBody -> m (Either HttpException (Response ByteString))
- postInvoicesInvoicePayM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostInvoicesInvoicePayRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostInvoicesInvoicePayResponse))
- postInvoicesInvoicePayRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostInvoicesInvoicePayRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostInvoicesInvoicePayRequestBody = PostInvoicesInvoicePayRequestBody {
- postInvoicesInvoicePayRequestBodyExpand :: Maybe ([] String)
- postInvoicesInvoicePayRequestBodyForgive :: Maybe Bool
- postInvoicesInvoicePayRequestBodyOffSession :: Maybe Bool
- postInvoicesInvoicePayRequestBodyPaidOutOfBand :: Maybe Bool
- postInvoicesInvoicePayRequestBodyPaymentMethod :: Maybe String
- postInvoicesInvoicePayRequestBodySource :: Maybe String
- data PostInvoicesInvoicePayResponse
Documentation
postInvoicesInvoicePay Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | invoice | Constraints: Maximum length of 5000 |
-> PostInvoicesInvoicePayRequestBody | The request body to send |
-> m (Either HttpException (Response PostInvoicesInvoicePayResponse)) | Monad containing the result of the operation |
POST /v1/invoices/{invoice}/pay
<p>Stripe automatically creates and then attempts to collect payment on invoices for customers on subscriptions according to your <a href="https://dashboard.stripe.com/account/billing/automatic">subscriptions settings</a>. However, if you’d like to attempt payment on an invoice out of the normal collection schedule or for some other reason, you can do so.</p>
postInvoicesInvoicePayRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostInvoicesInvoicePayRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/invoices/{invoice}/pay
The same as postInvoicesInvoicePay
but returns the raw ByteString
postInvoicesInvoicePayM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostInvoicesInvoicePayRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostInvoicesInvoicePayResponse)) Source #
POST /v1/invoices/{invoice}/pay
Monadic version of postInvoicesInvoicePay
(use with runWithConfiguration
)
postInvoicesInvoicePayRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostInvoicesInvoicePayRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/invoices/{invoice}/pay
Monadic version of postInvoicesInvoicePayRaw
(use with runWithConfiguration
)
data PostInvoicesInvoicePayRequestBody Source #
Defines the data type for the schema postInvoicesInvoicePayRequestBody
PostInvoicesInvoicePayRequestBody | |
|
data PostInvoicesInvoicePayResponse Source #
Represents a response of the operation postInvoicesInvoicePay
.
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), PostInvoicesInvoicePayResponseError
is used.
PostInvoicesInvoicePayResponseError String | Means either no matching case available or a parse error |
PostInvoicesInvoicePayResponse200 Invoice | Successful response. |
PostInvoicesInvoicePayResponseDefault Error | Error response. |