Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postInvoiceitems
Synopsis
- postInvoiceitems :: forall m. MonadHTTP m => PostInvoiceitemsRequestBody -> ClientT m (Response PostInvoiceitemsResponse)
- data PostInvoiceitemsRequestBody = PostInvoiceitemsRequestBody {
- postInvoiceitemsRequestBodyAmount :: Maybe Int
- postInvoiceitemsRequestBodyCurrency :: Maybe Text
- postInvoiceitemsRequestBodyCustomer :: Text
- postInvoiceitemsRequestBodyDescription :: Maybe Text
- postInvoiceitemsRequestBodyDiscountable :: Maybe Bool
- postInvoiceitemsRequestBodyDiscounts :: Maybe PostInvoiceitemsRequestBodyDiscounts'Variants
- postInvoiceitemsRequestBodyExpand :: Maybe [Text]
- postInvoiceitemsRequestBodyInvoice :: Maybe Text
- postInvoiceitemsRequestBodyMetadata :: Maybe PostInvoiceitemsRequestBodyMetadata'Variants
- postInvoiceitemsRequestBodyPeriod :: Maybe PostInvoiceitemsRequestBodyPeriod'
- postInvoiceitemsRequestBodyPrice :: Maybe Text
- postInvoiceitemsRequestBodyPriceData :: Maybe PostInvoiceitemsRequestBodyPriceData'
- postInvoiceitemsRequestBodyQuantity :: Maybe Int
- postInvoiceitemsRequestBodySubscription :: Maybe Text
- postInvoiceitemsRequestBodyTaxRates :: Maybe [Text]
- postInvoiceitemsRequestBodyUnitAmount :: Maybe Int
- postInvoiceitemsRequestBodyUnitAmountDecimal :: Maybe Text
- mkPostInvoiceitemsRequestBody :: Text -> PostInvoiceitemsRequestBody
- data PostInvoiceitemsRequestBodyDiscounts'OneOf1 = PostInvoiceitemsRequestBodyDiscounts'OneOf1 {}
- mkPostInvoiceitemsRequestBodyDiscounts'OneOf1 :: PostInvoiceitemsRequestBodyDiscounts'OneOf1
- data PostInvoiceitemsRequestBodyDiscounts'Variants
- data PostInvoiceitemsRequestBodyMetadata'Variants
- data PostInvoiceitemsRequestBodyPeriod' = PostInvoiceitemsRequestBodyPeriod' {}
- mkPostInvoiceitemsRequestBodyPeriod' :: Int -> Int -> PostInvoiceitemsRequestBodyPeriod'
- data PostInvoiceitemsRequestBodyPriceData' = PostInvoiceitemsRequestBodyPriceData' {
- postInvoiceitemsRequestBodyPriceData'Currency :: Text
- postInvoiceitemsRequestBodyPriceData'Product :: Text
- postInvoiceitemsRequestBodyPriceData'TaxBehavior :: Maybe PostInvoiceitemsRequestBodyPriceData'TaxBehavior'
- postInvoiceitemsRequestBodyPriceData'UnitAmount :: Maybe Int
- postInvoiceitemsRequestBodyPriceData'UnitAmountDecimal :: Maybe Text
- mkPostInvoiceitemsRequestBodyPriceData' :: Text -> Text -> PostInvoiceitemsRequestBodyPriceData'
- data PostInvoiceitemsRequestBodyPriceData'TaxBehavior'
- = PostInvoiceitemsRequestBodyPriceData'TaxBehavior'Other Value
- | PostInvoiceitemsRequestBodyPriceData'TaxBehavior'Typed Text
- | PostInvoiceitemsRequestBodyPriceData'TaxBehavior'EnumExclusive
- | PostInvoiceitemsRequestBodyPriceData'TaxBehavior'EnumInclusive
- | PostInvoiceitemsRequestBodyPriceData'TaxBehavior'EnumUnspecified
- data PostInvoiceitemsResponse
Documentation
:: 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.
PostInvoiceitemsRequestBody | |
|
Instances
mkPostInvoiceitemsRequestBody Source #
Create a new PostInvoiceitemsRequestBody
with all required 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.
PostInvoiceitemsRequestBodyDiscounts'OneOf1 | |
|
mkPostInvoiceitemsRequestBodyDiscounts'OneOf1 :: PostInvoiceitemsRequestBodyDiscounts'OneOf1 Source #
Create a new PostInvoiceitemsRequestBodyDiscounts'OneOf1
with all required 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.
Instances
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`.
PostInvoiceitemsRequestBodyMetadata'EmptyString | Represents the JSON value |
PostInvoiceitemsRequestBodyMetadata'Object Object |
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.
mkPostInvoiceitemsRequestBodyPeriod' Source #
Create a new PostInvoiceitemsRequestBodyPeriod'
with all required fields.
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.
PostInvoiceitemsRequestBodyPriceData' | |
|
mkPostInvoiceitemsRequestBodyPriceData' Source #
Create a new PostInvoiceitemsRequestBodyPriceData'
with all required fields.
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.
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 |
PostInvoiceitemsRequestBodyPriceData'TaxBehavior'EnumInclusive | Represents the JSON value |
PostInvoiceitemsRequestBodyPriceData'TaxBehavior'EnumUnspecified | Represents the JSON value |
Instances
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 # |