Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postInvoiceitems
Synopsis
- postInvoiceitems :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostInvoiceitemsRequestBody -> m (Either HttpException (Response PostInvoiceitemsResponse))
- postInvoiceitemsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostInvoiceitemsRequestBody -> m (Either HttpException (Response ByteString))
- postInvoiceitemsM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostInvoiceitemsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostInvoiceitemsResponse))
- postInvoiceitemsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostInvoiceitemsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostInvoiceitemsRequestBody = PostInvoiceitemsRequestBody {
- postInvoiceitemsRequestBodyAmount :: Maybe Integer
- postInvoiceitemsRequestBodyCurrency :: Maybe String
- postInvoiceitemsRequestBodyCustomer :: String
- postInvoiceitemsRequestBodyDescription :: Maybe String
- postInvoiceitemsRequestBodyDiscountable :: Maybe Bool
- postInvoiceitemsRequestBodyExpand :: Maybe ([] String)
- postInvoiceitemsRequestBodyInvoice :: Maybe String
- postInvoiceitemsRequestBodyMetadata :: Maybe PostInvoiceitemsRequestBodyMetadata'
- postInvoiceitemsRequestBodyPeriod :: Maybe PostInvoiceitemsRequestBodyPeriod'
- postInvoiceitemsRequestBodyQuantity :: Maybe Integer
- postInvoiceitemsRequestBodySubscription :: Maybe String
- postInvoiceitemsRequestBodyTaxRates :: Maybe ([] String)
- postInvoiceitemsRequestBodyUnitAmount :: Maybe Integer
- postInvoiceitemsRequestBodyUnitAmountDecimal :: Maybe String
- data PostInvoiceitemsRequestBodyMetadata' = PostInvoiceitemsRequestBodyMetadata' {
- data PostInvoiceitemsRequestBodyPeriod' = PostInvoiceitemsRequestBodyPeriod' {}
- data PostInvoiceitemsResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> PostInvoiceitemsRequestBody | The request body to send |
-> m (Either HttpException (Response PostInvoiceitemsResponse)) | Monad containing the result of the operation |
POST /v1/invoiceitems
<p>Creates an item to be added to a draft invoice. If no invoice is specified, the item will be on the next invoice created for the customer specified.</p>
postInvoiceitemsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostInvoiceitemsRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/invoiceitems
The same as postInvoiceitems
but returns the raw ByteString
postInvoiceitemsM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostInvoiceitemsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostInvoiceitemsResponse)) Source #
POST /v1/invoiceitems
Monadic version of postInvoiceitems
(use with runWithConfiguration
)
postInvoiceitemsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostInvoiceitemsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/invoiceitems
Monadic version of postInvoiceitemsRaw
(use with runWithConfiguration
)
data PostInvoiceitemsRequestBody Source #
Defines the data type for the schema postInvoiceitemsRequestBody
PostInvoiceitemsRequestBody | |
|
Instances
data PostInvoiceitemsRequestBodyMetadata' Source #
Defines the data type for the schema postInvoiceitemsRequestBodyMetadata'
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 PostInvoiceitemsRequestBodyPeriod' Source #
Defines the data type for the schema postInvoiceitemsRequestBodyPeriod'
The period associated with this invoice item.
data PostInvoiceitemsResponse Source #
Represents a response of the operation postInvoiceitems
.
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), PostInvoiceitemsResponseError
is used.
PostInvoiceitemsResponseError String | Means either no matching case available or a parse error |
PostInvoiceitemsResponse200 Invoiceitem | Successful response. |
PostInvoiceitemsResponseDefault Error | Error response. |
Instances
Eq PostInvoiceitemsResponse Source # | |
Defined in StripeAPI.Operations.PostInvoiceitems | |
Show PostInvoiceitemsResponse Source # | |
Defined in StripeAPI.Operations.PostInvoiceitems showsPrec :: Int -> PostInvoiceitemsResponse -> ShowS # show :: PostInvoiceitemsResponse -> String # showList :: [PostInvoiceitemsResponse] -> ShowS # |