Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postInvoiceitemsInvoiceitem
Synopsis
- postInvoiceitemsInvoiceitem :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostInvoiceitemsInvoiceitemRequestBody -> m (Either HttpException (Response PostInvoiceitemsInvoiceitemResponse))
- postInvoiceitemsInvoiceitemRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostInvoiceitemsInvoiceitemRequestBody -> m (Either HttpException (Response ByteString))
- postInvoiceitemsInvoiceitemM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostInvoiceitemsInvoiceitemRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostInvoiceitemsInvoiceitemResponse))
- postInvoiceitemsInvoiceitemRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostInvoiceitemsInvoiceitemRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostInvoiceitemsInvoiceitemRequestBody = PostInvoiceitemsInvoiceitemRequestBody {
- postInvoiceitemsInvoiceitemRequestBodyAmount :: Maybe Integer
- postInvoiceitemsInvoiceitemRequestBodyDescription :: Maybe String
- postInvoiceitemsInvoiceitemRequestBodyDiscountable :: Maybe Bool
- postInvoiceitemsInvoiceitemRequestBodyExpand :: Maybe ([] String)
- postInvoiceitemsInvoiceitemRequestBodyMetadata :: Maybe PostInvoiceitemsInvoiceitemRequestBodyMetadata'
- postInvoiceitemsInvoiceitemRequestBodyPeriod :: Maybe PostInvoiceitemsInvoiceitemRequestBodyPeriod'
- postInvoiceitemsInvoiceitemRequestBodyQuantity :: Maybe Integer
- postInvoiceitemsInvoiceitemRequestBodyTaxRates :: Maybe PostInvoiceitemsInvoiceitemRequestBodyTaxRates'Variants
- postInvoiceitemsInvoiceitemRequestBodyUnitAmount :: Maybe Integer
- postInvoiceitemsInvoiceitemRequestBodyUnitAmountDecimal :: Maybe String
- data PostInvoiceitemsInvoiceitemRequestBodyMetadata' = PostInvoiceitemsInvoiceitemRequestBodyMetadata' {
- data PostInvoiceitemsInvoiceitemRequestBodyPeriod' = PostInvoiceitemsInvoiceitemRequestBodyPeriod' {}
- data PostInvoiceitemsInvoiceitemRequestBodyTaxRates'OneOf1
- data PostInvoiceitemsInvoiceitemRequestBodyTaxRates'Variants
- data PostInvoiceitemsInvoiceitemResponse
Documentation
postInvoiceitemsInvoiceitem Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | invoiceitem | Constraints: Maximum length of 5000 |
-> PostInvoiceitemsInvoiceitemRequestBody | The request body to send |
-> m (Either HttpException (Response PostInvoiceitemsInvoiceitemResponse)) | Monad containing the result of the operation |
POST /v1/invoiceitems/{invoiceitem}
<p>Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it’s attached to is closed.</p>
postInvoiceitemsInvoiceitemRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostInvoiceitemsInvoiceitemRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/invoiceitems/{invoiceitem}
The same as postInvoiceitemsInvoiceitem
but returns the raw ByteString
postInvoiceitemsInvoiceitemM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostInvoiceitemsInvoiceitemRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostInvoiceitemsInvoiceitemResponse)) Source #
POST /v1/invoiceitems/{invoiceitem}
Monadic version of postInvoiceitemsInvoiceitem
(use with runWithConfiguration
)
postInvoiceitemsInvoiceitemRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostInvoiceitemsInvoiceitemRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/invoiceitems/{invoiceitem}
Monadic version of postInvoiceitemsInvoiceitemRaw
(use with runWithConfiguration
)
data PostInvoiceitemsInvoiceitemRequestBody Source #
Defines the data type for the schema postInvoiceitemsInvoiceitemRequestBody
PostInvoiceitemsInvoiceitemRequestBody | |
|
data PostInvoiceitemsInvoiceitemRequestBodyMetadata' Source #
Defines the data type for the schema postInvoiceitemsInvoiceitemRequestBodyMetadata'
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
data PostInvoiceitemsInvoiceitemRequestBodyPeriod' Source #
Defines the data type for the schema postInvoiceitemsInvoiceitemRequestBodyPeriod'
The period associated with this invoice item.
data PostInvoiceitemsInvoiceitemRequestBodyTaxRates'OneOf1 Source #
Defines the enum schema postInvoiceitemsInvoiceitemRequestBodyTax_rates'OneOf1
Instances
data PostInvoiceitemsInvoiceitemRequestBodyTaxRates'Variants Source #
Define the one-of schema postInvoiceitemsInvoiceitemRequestBodyTax_rates'
The tax rates which apply to the invoice item. When set, the `default_tax_rates` on the invoice do not apply to this invoice item. Pass an empty string to remove previously-defined tax rates.
Instances
data PostInvoiceitemsInvoiceitemResponse Source #
Represents a response of the operation postInvoiceitemsInvoiceitem
.
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), PostInvoiceitemsInvoiceitemResponseError
is used.
PostInvoiceitemsInvoiceitemResponseError String | Means either no matching case available or a parse error |
PostInvoiceitemsInvoiceitemResponse200 Invoiceitem | Successful response. |
PostInvoiceitemsInvoiceitemResponseDefault Error | Error response. |