Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postInvoicesInvoicePay
Synopsis
- postInvoicesInvoicePay :: forall m. MonadHTTP m => Text -> Maybe PostInvoicesInvoicePayRequestBody -> StripeT m (Response PostInvoicesInvoicePayResponse)
- data PostInvoicesInvoicePayRequestBody = PostInvoicesInvoicePayRequestBody {
- postInvoicesInvoicePayRequestBodyExpand :: Maybe [Text]
- postInvoicesInvoicePayRequestBodyForgive :: Maybe Bool
- postInvoicesInvoicePayRequestBodyOffSession :: Maybe Bool
- postInvoicesInvoicePayRequestBodyPaidOutOfBand :: Maybe Bool
- postInvoicesInvoicePayRequestBodyPaymentMethod :: Maybe Text
- postInvoicesInvoicePayRequestBodySource :: Maybe Text
- mkPostInvoicesInvoicePayRequestBody :: PostInvoicesInvoicePayRequestBody
- data PostInvoicesInvoicePayResponse
Documentation
postInvoicesInvoicePay Source #
:: forall m. MonadHTTP m | |
=> Text | invoice | Constraints: Maximum length of 5000 |
-> Maybe PostInvoicesInvoicePayRequestBody | The request body to send |
-> StripeT m (Response PostInvoicesInvoicePayResponse) | Monadic computation which returns 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>
data PostInvoicesInvoicePayRequestBody Source #
Defines the object schema located at paths./v1/invoices/{invoice}/pay.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
PostInvoicesInvoicePayRequestBody | |
|
mkPostInvoicesInvoicePayRequestBody :: PostInvoicesInvoicePayRequestBody Source #
Create a new PostInvoicesInvoicePayRequestBody
with all required fields.
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. |