stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostInvoiceitems

Description

Contains the different functions to run the operation postInvoiceitems

Synopsis

Documentation

postInvoiceitems Source #

Arguments

:: (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

data PostInvoiceitemsRequestBody Source #

Defines the data type for the schema postInvoiceitemsRequestBody

Constructors

PostInvoiceitemsRequestBody 

Fields

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.

Constructors

PostInvoiceitemsResponseError String

Means either no matching case available or a parse error

PostInvoiceitemsResponse200 Invoiceitem

Successful response.

PostInvoiceitemsResponseDefault Error

Error response.