stripeapi-1.0.0.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostInvoicesInvoiceFinalize

Description

Contains the different functions to run the operation postInvoicesInvoiceFinalize

Synopsis

Documentation

postInvoicesInvoiceFinalize Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

invoice | Constraints: Maximum length of 5000

-> Maybe PostInvoicesInvoiceFinalizeRequestBody

The request body to send

-> StripeT m (Response PostInvoicesInvoiceFinalizeResponse)

Monadic computation which returns the result of the operation

POST /v1/invoices/{invoice}/finalize

<p>Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you’d like to finalize a draft invoice manually, you can do so using this method.</p>

data PostInvoicesInvoiceFinalizeRequestBody Source #

Defines the object schema located at paths./v1/invoices/{invoice}/finalize.POST.requestBody.content.application/x-www-form-urlencoded.schema in the specification.

Constructors

PostInvoicesInvoiceFinalizeRequestBody 

Fields

data PostInvoicesInvoiceFinalizeResponse Source #

Represents a response of the operation postInvoicesInvoiceFinalize.

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), PostInvoicesInvoiceFinalizeResponseError is used.

Constructors

PostInvoicesInvoiceFinalizeResponseError String

Means either no matching case available or a parse error

PostInvoicesInvoiceFinalizeResponse200 Invoice

Successful response.

PostInvoicesInvoiceFinalizeResponseDefault Error

Error response.