stripeapi-2.0.1.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostInvoiceitemsInvoiceitem

Description

Contains the different functions to run the operation postInvoiceitemsInvoiceitem

Synopsis

Documentation

postInvoiceitemsInvoiceitem Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

invoiceitem | Constraints: Maximum length of 5000

-> Maybe PostInvoiceitemsInvoiceitemRequestBody

The request body to send

-> ClientT m (Response PostInvoiceitemsInvoiceitemResponse)

Monadic computation which returns 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>

data PostInvoiceitemsInvoiceitemRequestBody Source #

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

Constructors

PostInvoiceitemsInvoiceitemRequestBody 

Fields

data PostInvoiceitemsInvoiceitemRequestBodyDiscounts'OneOf1 Source #

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

Instances

Instances details
Eq PostInvoiceitemsInvoiceitemRequestBodyDiscounts'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

Show PostInvoiceitemsInvoiceitemRequestBodyDiscounts'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

ToJSON PostInvoiceitemsInvoiceitemRequestBodyDiscounts'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

FromJSON PostInvoiceitemsInvoiceitemRequestBodyDiscounts'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

data PostInvoiceitemsInvoiceitemRequestBodyDiscounts'Variants Source #

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

The coupons & existing discounts which apply to the invoice item or invoice line item. Item discounts are applied before invoice discounts. Pass an empty string to remove previously-defined discounts.

Instances

Instances details
Eq PostInvoiceitemsInvoiceitemRequestBodyDiscounts'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

Show PostInvoiceitemsInvoiceitemRequestBodyDiscounts'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

ToJSON PostInvoiceitemsInvoiceitemRequestBodyDiscounts'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

FromJSON PostInvoiceitemsInvoiceitemRequestBodyDiscounts'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

data PostInvoiceitemsInvoiceitemRequestBodyMetadata'Variants Source #

Defines the oneOf schema located at paths./v1/invoiceitems/{invoiceitem}.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`.

Instances

Instances details
Eq PostInvoiceitemsInvoiceitemRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

Show PostInvoiceitemsInvoiceitemRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

ToJSON PostInvoiceitemsInvoiceitemRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

FromJSON PostInvoiceitemsInvoiceitemRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

data PostInvoiceitemsInvoiceitemRequestBodyPeriod' Source #

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

The period associated with this invoice item.

data PostInvoiceitemsInvoiceitemRequestBodyPriceData' Source #

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

Data used to generate a new Price object inline.

Instances

Instances details
Eq PostInvoiceitemsInvoiceitemRequestBodyPriceData' Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

Show PostInvoiceitemsInvoiceitemRequestBodyPriceData' Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

ToJSON PostInvoiceitemsInvoiceitemRequestBodyPriceData' Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

FromJSON PostInvoiceitemsInvoiceitemRequestBodyPriceData' Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

data PostInvoiceitemsInvoiceitemRequestBodyPriceData'TaxBehavior' Source #

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

Constructors

PostInvoiceitemsInvoiceitemRequestBodyPriceData'TaxBehavior'Other Value

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

PostInvoiceitemsInvoiceitemRequestBodyPriceData'TaxBehavior'Typed Text

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

PostInvoiceitemsInvoiceitemRequestBodyPriceData'TaxBehavior'EnumExclusive

Represents the JSON value "exclusive"

PostInvoiceitemsInvoiceitemRequestBodyPriceData'TaxBehavior'EnumInclusive

Represents the JSON value "inclusive"

PostInvoiceitemsInvoiceitemRequestBodyPriceData'TaxBehavior'EnumUnspecified

Represents the JSON value "unspecified"

Instances

Instances details
Eq PostInvoiceitemsInvoiceitemRequestBodyPriceData'TaxBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

Show PostInvoiceitemsInvoiceitemRequestBodyPriceData'TaxBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

ToJSON PostInvoiceitemsInvoiceitemRequestBodyPriceData'TaxBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

FromJSON PostInvoiceitemsInvoiceitemRequestBodyPriceData'TaxBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

data PostInvoiceitemsInvoiceitemRequestBodyTaxRates'Variants Source #

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

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

Instances details
Eq PostInvoiceitemsInvoiceitemRequestBodyTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

Show PostInvoiceitemsInvoiceitemRequestBodyTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

ToJSON PostInvoiceitemsInvoiceitemRequestBodyTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem

FromJSON PostInvoiceitemsInvoiceitemRequestBodyTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoiceitemsInvoiceitem