Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getInvoicesInvoice
Synopsis
- getInvoicesInvoice :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> String -> GetInvoicesInvoiceRequestBody -> m (Either HttpException (Response GetInvoicesInvoiceResponse))
- getInvoicesInvoiceRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> String -> GetInvoicesInvoiceRequestBody -> m (Either HttpException (Response ByteString))
- getInvoicesInvoiceM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetInvoicesInvoiceRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetInvoicesInvoiceResponse))
- getInvoicesInvoiceRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetInvoicesInvoiceRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data GetInvoicesInvoiceRequestBody = GetInvoicesInvoiceRequestBody {
- data GetInvoicesInvoiceResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> Maybe String | expand: Specifies which fields in the response should be expanded. |
-> String | invoice | Constraints: Maximum length of 5000 |
-> GetInvoicesInvoiceRequestBody | The request body to send |
-> m (Either HttpException (Response GetInvoicesInvoiceResponse)) | Monad containing the result of the operation |
GET /v1/invoices/{invoice}
<p>Retrieves the invoice with the given ID.</p>
getInvoicesInvoiceRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> String -> GetInvoicesInvoiceRequestBody -> m (Either HttpException (Response ByteString)) Source #
GET /v1/invoices/{invoice}
The same as getInvoicesInvoice
but returns the raw ByteString
getInvoicesInvoiceM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetInvoicesInvoiceRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetInvoicesInvoiceResponse)) Source #
GET /v1/invoices/{invoice}
Monadic version of getInvoicesInvoice
(use with runWithConfiguration
)
getInvoicesInvoiceRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetInvoicesInvoiceRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
GET /v1/invoices/{invoice}
Monadic version of getInvoicesInvoiceRaw
(use with runWithConfiguration
)
data GetInvoicesInvoiceRequestBody Source #
Defines the data type for the schema getInvoicesInvoiceRequestBody
Instances
data GetInvoicesInvoiceResponse Source #
Represents a response of the operation getInvoicesInvoice
.
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), GetInvoicesInvoiceResponseError
is used.
GetInvoicesInvoiceResponseError String | Means either no matching case available or a parse error |
GetInvoicesInvoiceResponse200 Invoice | Successful response. |
GetInvoicesInvoiceResponseDefault Error | Error response. |