Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postInvoicesInvoiceMarkUncollectible
Synopsis
- postInvoicesInvoiceMarkUncollectible :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostInvoicesInvoiceMarkUncollectibleRequestBody -> m (Either HttpException (Response PostInvoicesInvoiceMarkUncollectibleResponse))
- postInvoicesInvoiceMarkUncollectibleRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostInvoicesInvoiceMarkUncollectibleRequestBody -> m (Either HttpException (Response ByteString))
- postInvoicesInvoiceMarkUncollectibleM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostInvoicesInvoiceMarkUncollectibleRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostInvoicesInvoiceMarkUncollectibleResponse))
- postInvoicesInvoiceMarkUncollectibleRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostInvoicesInvoiceMarkUncollectibleRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostInvoicesInvoiceMarkUncollectibleRequestBody = PostInvoicesInvoiceMarkUncollectibleRequestBody {}
- data PostInvoicesInvoiceMarkUncollectibleResponse
Documentation
postInvoicesInvoiceMarkUncollectible Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | invoice | Constraints: Maximum length of 5000 |
-> PostInvoicesInvoiceMarkUncollectibleRequestBody | The request body to send |
-> m (Either HttpException (Response PostInvoicesInvoiceMarkUncollectibleResponse)) | Monad containing the result of the operation |
POST /v1/invoices/{invoice}/mark_uncollectible
<p>Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes.</p>
postInvoicesInvoiceMarkUncollectibleRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostInvoicesInvoiceMarkUncollectibleRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/invoices/{invoice}/mark_uncollectible
The same as postInvoicesInvoiceMarkUncollectible
but returns the raw ByteString
postInvoicesInvoiceMarkUncollectibleM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostInvoicesInvoiceMarkUncollectibleRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostInvoicesInvoiceMarkUncollectibleResponse)) Source #
POST /v1/invoices/{invoice}/mark_uncollectible
Monadic version of postInvoicesInvoiceMarkUncollectible
(use with runWithConfiguration
)
postInvoicesInvoiceMarkUncollectibleRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostInvoicesInvoiceMarkUncollectibleRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/invoices/{invoice}/mark_uncollectible
Monadic version of postInvoicesInvoiceMarkUncollectibleRaw
(use with runWithConfiguration
)
data PostInvoicesInvoiceMarkUncollectibleRequestBody Source #
Defines the data type for the schema postInvoicesInvoiceMarkUncollectibleRequestBody
PostInvoicesInvoiceMarkUncollectibleRequestBody | |
|
Instances
data PostInvoicesInvoiceMarkUncollectibleResponse Source #
Represents a response of the operation postInvoicesInvoiceMarkUncollectible
.
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), PostInvoicesInvoiceMarkUncollectibleResponseError
is used.
PostInvoicesInvoiceMarkUncollectibleResponseError String | Means either no matching case available or a parse error |
PostInvoicesInvoiceMarkUncollectibleResponse200 Invoice | Successful response. |
PostInvoicesInvoiceMarkUncollectibleResponseDefault Error | Error response. |