stripeapi-0.1.0.2: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostInvoicesInvoiceVoid

Description

Contains the different functions to run the operation postInvoicesInvoiceVoid

Synopsis

Documentation

postInvoicesInvoiceVoid Source #

Arguments

:: (MonadHTTP m, SecurityScheme s) 
=> Configuration s

The configuration to use in the request

-> Text

invoice | Constraints: Maximum length of 5000

-> Maybe PostInvoicesInvoiceVoidRequestBody

The request body to send

-> m (Either HttpException (Response PostInvoicesInvoiceVoidResponse))

Monad containing the result of the operation

POST /v1/invoices/{invoice}/void

<p>Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to <a href="#delete_invoice">deletion</a>, however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.</p>

data PostInvoicesInvoiceVoidRequestBody Source #

Defines the data type for the schema postInvoicesInvoiceVoidRequestBody

Constructors

PostInvoicesInvoiceVoidRequestBody 

Fields

data PostInvoicesInvoiceVoidResponse Source #

Represents a response of the operation postInvoicesInvoiceVoid.

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

Constructors

PostInvoicesInvoiceVoidResponseError String

Means either no matching case available or a parse error

PostInvoicesInvoiceVoidResponse200 Invoice

Successful response.

PostInvoicesInvoiceVoidResponseDefault Error

Error response.