stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostInvoiceitems

Description

Contains the different functions to run the operation postInvoiceitems

Synopsis

Documentation

postInvoiceitems Source #

Arguments

:: forall m. MonadHTTP m 
=> PostInvoiceitemsRequestBody

The request body to send

-> ClientT m (Response PostInvoiceitemsResponse)

Monadic computation which returns the result of the operation

POST /v1/invoiceitems

<p>Creates an item to be added to a draft invoice (up to 250 items per invoice). If no invoice is specified, the item will be on the next invoice created for the customer specified.</p>

data PostInvoiceitemsRequestBody Source #

Defines the object schema located at paths./v1/invoiceitems.POST.requestBody.content.application/x-www-form-urlencoded.schema in the specification.

Constructors

PostInvoiceitemsRequestBody 

Fields

data PostInvoiceitemsRequestBodyDiscounts'OneOf1 Source #

Defines the object schema located at paths./v1/invoiceitems.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.discounts.anyOf.items in the specification.

Constructors

PostInvoiceitemsRequestBodyDiscounts'OneOf1 

Fields

data PostInvoiceitemsRequestBodyDiscounts'Variants Source #

Defines the oneOf schema located at paths./v1/invoiceitems.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.discounts.anyOf in the specification.

The coupons to redeem into discounts for the invoice item or invoice line item.

data PostInvoiceitemsRequestBodyMetadata'Variants Source #

Defines the oneOf schema located at paths./v1/invoiceitems.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.metadata.anyOf in the specification.

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 object schema located at paths./v1/invoiceitems.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.period in the specification.

The period associated with this invoice item.

data PostInvoiceitemsRequestBodyPriceData' Source #

Defines the object schema located at paths./v1/invoiceitems.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.price_data in the specification.

Data used to generate a new Price object inline.

data PostInvoiceitemsRequestBodyPriceData'TaxBehavior' Source #

Defines the enum schema located at paths./v1/invoiceitems.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.price_data.properties.tax_behavior in the specification.

Constructors

PostInvoiceitemsRequestBodyPriceData'TaxBehavior'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostInvoiceitemsRequestBodyPriceData'TaxBehavior'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostInvoiceitemsRequestBodyPriceData'TaxBehavior'EnumExclusive

Represents the JSON value "exclusive"

PostInvoiceitemsRequestBodyPriceData'TaxBehavior'EnumInclusive

Represents the JSON value "inclusive"

PostInvoiceitemsRequestBodyPriceData'TaxBehavior'EnumUnspecified

Represents the JSON value "unspecified"

Instances

Instances details
Eq PostInvoiceitemsRequestBodyPriceData'TaxBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitems

Show PostInvoiceitemsRequestBodyPriceData'TaxBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitems

ToJSON PostInvoiceitemsRequestBodyPriceData'TaxBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitems

FromJSON PostInvoiceitemsRequestBodyPriceData'TaxBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitems

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.