Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postInvoicesInvoiceSend
Synopsis
- postInvoicesInvoiceSend :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostInvoicesInvoiceSendRequestBody -> m (Either HttpException (Response PostInvoicesInvoiceSendResponse))
- postInvoicesInvoiceSendRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostInvoicesInvoiceSendRequestBody -> m (Either HttpException (Response ByteString))
- postInvoicesInvoiceSendM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostInvoicesInvoiceSendRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostInvoicesInvoiceSendResponse))
- postInvoicesInvoiceSendRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostInvoicesInvoiceSendRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostInvoicesInvoiceSendRequestBody = PostInvoicesInvoiceSendRequestBody {}
- data PostInvoicesInvoiceSendResponse
Documentation
postInvoicesInvoiceSend Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | invoice | Constraints: Maximum length of 5000 |
-> PostInvoicesInvoiceSendRequestBody | The request body to send |
-> m (Either HttpException (Response PostInvoicesInvoiceSendResponse)) | Monad containing the result of the operation |
POST /v1/invoices/{invoice}/send
<p>Stripe will automatically send invoices to customers according to your <a href="https://dashboard.stripe.com/account/billing/automatic">subscriptions settings</a>. However, if you’d like to manually send an invoice to your customer out of the normal schedule, you can do so. When sending invoices that have already been paid, there will be no reference to the payment in the email.</p>
<p>Requests made in test-mode result in no emails being sent, despite sending an <code>invoice.sent</code> event.</p>
postInvoicesInvoiceSendRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostInvoicesInvoiceSendRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/invoices/{invoice}/send
The same as postInvoicesInvoiceSend
but returns the raw ByteString
postInvoicesInvoiceSendM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostInvoicesInvoiceSendRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostInvoicesInvoiceSendResponse)) Source #
POST /v1/invoices/{invoice}/send
Monadic version of postInvoicesInvoiceSend
(use with runWithConfiguration
)
postInvoicesInvoiceSendRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostInvoicesInvoiceSendRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/invoices/{invoice}/send
Monadic version of postInvoicesInvoiceSendRaw
(use with runWithConfiguration
)
data PostInvoicesInvoiceSendRequestBody Source #
Defines the data type for the schema postInvoicesInvoiceSendRequestBody
PostInvoicesInvoiceSendRequestBody | |
|
data PostInvoicesInvoiceSendResponse Source #
Represents a response of the operation postInvoicesInvoiceSend
.
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), PostInvoicesInvoiceSendResponseError
is used.
PostInvoicesInvoiceSendResponseError String | Means either no matching case available or a parse error |
PostInvoicesInvoiceSendResponse200 Invoice | Successful response. |
PostInvoicesInvoiceSendResponseDefault Error | Error response. |