Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema CreditNoteLineItem
Synopsis
- data CreditNoteLineItem = CreditNoteLineItem {
- creditNoteLineItemAmount :: Int
- creditNoteLineItemDescription :: Maybe Text
- creditNoteLineItemDiscountAmount :: Int
- creditNoteLineItemDiscountAmounts :: [DiscountsResourceDiscountAmount]
- creditNoteLineItemId :: Text
- creditNoteLineItemInvoiceLineItem :: Maybe Text
- creditNoteLineItemLivemode :: Bool
- creditNoteLineItemQuantity :: Maybe Int
- creditNoteLineItemTaxAmounts :: [CreditNoteTaxAmount]
- creditNoteLineItemTaxRates :: [TaxRate]
- creditNoteLineItemType :: CreditNoteLineItemType'
- creditNoteLineItemUnitAmount :: Maybe Int
- creditNoteLineItemUnitAmountDecimal :: Maybe Text
- mkCreditNoteLineItem :: Int -> Int -> [DiscountsResourceDiscountAmount] -> Text -> Bool -> [CreditNoteTaxAmount] -> [TaxRate] -> CreditNoteLineItemType' -> CreditNoteLineItem
- data CreditNoteLineItemType'
Documentation
data CreditNoteLineItem Source #
Defines the object schema located at components.schemas.credit_note_line_item
in the specification.
CreditNoteLineItem | |
|
Instances
Eq CreditNoteLineItem Source # | |
Defined in StripeAPI.Types.CreditNoteLineItem (==) :: CreditNoteLineItem -> CreditNoteLineItem -> Bool # (/=) :: CreditNoteLineItem -> CreditNoteLineItem -> Bool # | |
Show CreditNoteLineItem Source # | |
Defined in StripeAPI.Types.CreditNoteLineItem showsPrec :: Int -> CreditNoteLineItem -> ShowS # show :: CreditNoteLineItem -> String # showList :: [CreditNoteLineItem] -> ShowS # | |
ToJSON CreditNoteLineItem Source # | |
Defined in StripeAPI.Types.CreditNoteLineItem toJSON :: CreditNoteLineItem -> Value # toEncoding :: CreditNoteLineItem -> Encoding # toJSONList :: [CreditNoteLineItem] -> Value # toEncodingList :: [CreditNoteLineItem] -> Encoding # | |
FromJSON CreditNoteLineItem Source # | |
Defined in StripeAPI.Types.CreditNoteLineItem parseJSON :: Value -> Parser CreditNoteLineItem # parseJSONList :: Value -> Parser [CreditNoteLineItem] # |
:: Int | |
-> Int | |
-> [DiscountsResourceDiscountAmount] | |
-> Text | |
-> Bool | |
-> [CreditNoteTaxAmount] | |
-> [TaxRate] | |
-> CreditNoteLineItemType' | |
-> CreditNoteLineItem |
Create a new CreditNoteLineItem
with all required fields.
data CreditNoteLineItemType' Source #
Defines the enum schema located at components.schemas.credit_note_line_item.properties.type
in the specification.
The type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. When the type is `invoice_line_item` there is an additional `invoice_line_item` property on the resource the value of which is the id of the credited line item on the invoice.
CreditNoteLineItemType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
CreditNoteLineItemType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
CreditNoteLineItemType'EnumCustomLineItem | Represents the JSON value |
CreditNoteLineItemType'EnumInvoiceLineItem | Represents the JSON value |
Instances
Eq CreditNoteLineItemType' Source # | |
Defined in StripeAPI.Types.CreditNoteLineItem | |
Show CreditNoteLineItemType' Source # | |
Defined in StripeAPI.Types.CreditNoteLineItem showsPrec :: Int -> CreditNoteLineItemType' -> ShowS # show :: CreditNoteLineItemType' -> String # showList :: [CreditNoteLineItemType'] -> ShowS # | |
ToJSON CreditNoteLineItemType' Source # | |
Defined in StripeAPI.Types.CreditNoteLineItem | |
FromJSON CreditNoteLineItemType' Source # | |
Defined in StripeAPI.Types.CreditNoteLineItem |