stripeapi-0.1.0.2: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.DeleteInvoicesInvoice

Description

Contains the different functions to run the operation deleteInvoicesInvoice

Synopsis

Documentation

deleteInvoicesInvoice Source #

Arguments

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

The configuration to use in the request

-> Text

invoice | Constraints: Maximum length of 5000

-> Maybe DeleteInvoicesInvoiceRequestBody

The request body to send

-> m (Either HttpException (Response DeleteInvoicesInvoiceResponse))

Monad containing the result of the operation

DELETE /v1/invoices/{invoice}

<p>Permanently deletes a draft invoice. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized, it must be <a href="#void_invoice">voided</a>.</p>

data DeleteInvoicesInvoiceResponse Source #

Represents a response of the operation deleteInvoicesInvoice.

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

Constructors

DeleteInvoicesInvoiceResponseError String

Means either no matching case available or a parse error

DeleteInvoicesInvoiceResponse200 DeletedInvoice

Successful response.

DeleteInvoicesInvoiceResponseDefault Error

Error response.