| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.Types.CreditNote
Description
Contains the types generated from the schema CreditNote
Synopsis
- data CreditNote = CreditNote {
- creditNoteAmount :: Int
- creditNoteCreated :: Int
- creditNoteCurrency :: Text
- creditNoteCustomer :: CreditNoteCustomer'Variants
- creditNoteCustomerBalanceTransaction :: Maybe CreditNoteCustomerBalanceTransaction'Variants
- creditNoteDiscountAmount :: Int
- creditNoteDiscountAmounts :: [DiscountsResourceDiscountAmount]
- creditNoteId :: Text
- creditNoteInvoice :: CreditNoteInvoice'Variants
- creditNoteLines :: CreditNoteLines'
- creditNoteLivemode :: Bool
- creditNoteMemo :: Maybe Text
- creditNoteMetadata :: Maybe Object
- creditNoteNumber :: Text
- creditNoteOutOfBandAmount :: Maybe Int
- creditNotePdf :: Text
- creditNoteReason :: Maybe CreditNoteReason'
- creditNoteRefund :: Maybe CreditNoteRefund'Variants
- creditNoteStatus :: CreditNoteStatus'
- creditNoteSubtotal :: Int
- creditNoteTaxAmounts :: [CreditNoteTaxAmount]
- creditNoteTotal :: Int
- creditNoteType :: CreditNoteType'
- creditNoteVoidedAt :: Maybe Int
- mkCreditNote :: Int -> Int -> Text -> CreditNoteCustomer'Variants -> Int -> [DiscountsResourceDiscountAmount] -> Text -> CreditNoteInvoice'Variants -> CreditNoteLines' -> Bool -> Text -> Text -> CreditNoteStatus' -> Int -> [CreditNoteTaxAmount] -> Int -> CreditNoteType' -> CreditNote
- data CreditNoteCustomer'Variants
- data CreditNoteCustomerBalanceTransaction'Variants
- data CreditNoteInvoice'Variants
- data CreditNoteLines' = CreditNoteLines' {}
- mkCreditNoteLines' :: [CreditNoteLineItem] -> Bool -> Text -> CreditNoteLines'
- data CreditNoteReason'
- data CreditNoteRefund'Variants
- data CreditNoteStatus'
- data CreditNoteType'
Documentation
data CreditNote Source #
Defines the object schema located at components.schemas.credit_note in the specification.
Issue a credit note to adjust an invoice's amount after the invoice is finalized.
Related guide: Credit Notes.
Constructors
| CreditNote | |
Fields
| |
Instances
| Eq CreditNote Source # | |
Defined in StripeAPI.Types.CreditNote | |
| Show CreditNote Source # | |
Defined in StripeAPI.Types.CreditNote Methods showsPrec :: Int -> CreditNote -> ShowS # show :: CreditNote -> String # showList :: [CreditNote] -> ShowS # | |
| ToJSON CreditNote Source # | |
Defined in StripeAPI.Types.CreditNote Methods toJSON :: CreditNote -> Value # toEncoding :: CreditNote -> Encoding # toJSONList :: [CreditNote] -> Value # toEncodingList :: [CreditNote] -> Encoding # | |
| FromJSON CreditNote Source # | |
Defined in StripeAPI.Types.CreditNote | |
Arguments
| :: Int | |
| -> Int | |
| -> Text | |
| -> CreditNoteCustomer'Variants | |
| -> Int | |
| -> [DiscountsResourceDiscountAmount] | |
| -> Text | |
| -> CreditNoteInvoice'Variants | |
| -> CreditNoteLines' | |
| -> Bool | |
| -> Text | |
| -> Text | |
| -> CreditNoteStatus' | |
| -> Int | |
| -> [CreditNoteTaxAmount] | |
| -> Int | |
| -> CreditNoteType' | |
| -> CreditNote |
Create a new CreditNote with all required fields.
data CreditNoteCustomer'Variants Source #
Defines the oneOf schema located at components.schemas.credit_note.properties.customer.anyOf in the specification.
ID of the customer.
Constructors
| CreditNoteCustomer'Text Text | |
| CreditNoteCustomer'Customer Customer | |
| CreditNoteCustomer'DeletedCustomer DeletedCustomer |
Instances
data CreditNoteCustomerBalanceTransaction'Variants Source #
Defines the oneOf schema located at components.schemas.credit_note.properties.customer_balance_transaction.anyOf in the specification.
Customer balance transaction related to this credit note.
Constructors
| CreditNoteCustomerBalanceTransaction'Text Text | |
| CreditNoteCustomerBalanceTransaction'CustomerBalanceTransaction CustomerBalanceTransaction |
Instances
data CreditNoteInvoice'Variants Source #
Defines the oneOf schema located at components.schemas.credit_note.properties.invoice.anyOf in the specification.
ID of the invoice.
Constructors
| CreditNoteInvoice'Text Text | |
| CreditNoteInvoice'Invoice Invoice |
Instances
| Eq CreditNoteInvoice'Variants Source # | |
Defined in StripeAPI.Types.CreditNote Methods (==) :: CreditNoteInvoice'Variants -> CreditNoteInvoice'Variants -> Bool # (/=) :: CreditNoteInvoice'Variants -> CreditNoteInvoice'Variants -> Bool # | |
| Show CreditNoteInvoice'Variants Source # | |
Defined in StripeAPI.Types.CreditNote Methods showsPrec :: Int -> CreditNoteInvoice'Variants -> ShowS # show :: CreditNoteInvoice'Variants -> String # showList :: [CreditNoteInvoice'Variants] -> ShowS # | |
| ToJSON CreditNoteInvoice'Variants Source # | |
Defined in StripeAPI.Types.CreditNote Methods toJSON :: CreditNoteInvoice'Variants -> Value # toEncoding :: CreditNoteInvoice'Variants -> Encoding # toJSONList :: [CreditNoteInvoice'Variants] -> Value # toEncodingList :: [CreditNoteInvoice'Variants] -> Encoding # | |
| FromJSON CreditNoteInvoice'Variants Source # | |
Defined in StripeAPI.Types.CreditNote Methods parseJSON :: Value -> Parser CreditNoteInvoice'Variants # parseJSONList :: Value -> Parser [CreditNoteInvoice'Variants] # | |
data CreditNoteLines' Source #
Defines the object schema located at components.schemas.credit_note.properties.lines in the specification.
Line items that make up the credit note
Constructors
| CreditNoteLines' | |
Fields
| |
Instances
| Eq CreditNoteLines' Source # | |
Defined in StripeAPI.Types.CreditNote Methods (==) :: CreditNoteLines' -> CreditNoteLines' -> Bool # (/=) :: CreditNoteLines' -> CreditNoteLines' -> Bool # | |
| Show CreditNoteLines' Source # | |
Defined in StripeAPI.Types.CreditNote Methods showsPrec :: Int -> CreditNoteLines' -> ShowS # show :: CreditNoteLines' -> String # showList :: [CreditNoteLines'] -> ShowS # | |
| ToJSON CreditNoteLines' Source # | |
Defined in StripeAPI.Types.CreditNote Methods toJSON :: CreditNoteLines' -> Value # toEncoding :: CreditNoteLines' -> Encoding # toJSONList :: [CreditNoteLines'] -> Value # toEncodingList :: [CreditNoteLines'] -> Encoding # | |
| FromJSON CreditNoteLines' Source # | |
Defined in StripeAPI.Types.CreditNote Methods parseJSON :: Value -> Parser CreditNoteLines' # parseJSONList :: Value -> Parser [CreditNoteLines'] # | |
Arguments
| :: [CreditNoteLineItem] | |
| -> Bool | |
| -> Text | |
| -> CreditNoteLines' |
Create a new CreditNoteLines' with all required fields.
data CreditNoteReason' Source #
Defines the enum schema located at components.schemas.credit_note.properties.reason in the specification.
Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`
Constructors
| CreditNoteReason'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| CreditNoteReason'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| CreditNoteReason'EnumDuplicate | Represents the JSON value |
| CreditNoteReason'EnumFraudulent | Represents the JSON value |
| CreditNoteReason'EnumOrderChange | Represents the JSON value |
| CreditNoteReason'EnumProductUnsatisfactory | Represents the JSON value |
Instances
| Eq CreditNoteReason' Source # | |
Defined in StripeAPI.Types.CreditNote Methods (==) :: CreditNoteReason' -> CreditNoteReason' -> Bool # (/=) :: CreditNoteReason' -> CreditNoteReason' -> Bool # | |
| Show CreditNoteReason' Source # | |
Defined in StripeAPI.Types.CreditNote Methods showsPrec :: Int -> CreditNoteReason' -> ShowS # show :: CreditNoteReason' -> String # showList :: [CreditNoteReason'] -> ShowS # | |
| ToJSON CreditNoteReason' Source # | |
Defined in StripeAPI.Types.CreditNote Methods toJSON :: CreditNoteReason' -> Value # toEncoding :: CreditNoteReason' -> Encoding # toJSONList :: [CreditNoteReason'] -> Value # toEncodingList :: [CreditNoteReason'] -> Encoding # | |
| FromJSON CreditNoteReason' Source # | |
Defined in StripeAPI.Types.CreditNote Methods parseJSON :: Value -> Parser CreditNoteReason' # parseJSONList :: Value -> Parser [CreditNoteReason'] # | |
data CreditNoteRefund'Variants Source #
Defines the oneOf schema located at components.schemas.credit_note.properties.refund.anyOf in the specification.
Refund related to this credit note.
Constructors
| CreditNoteRefund'Text Text | |
| CreditNoteRefund'Refund Refund |
Instances
| Eq CreditNoteRefund'Variants Source # | |
Defined in StripeAPI.Types.CreditNote Methods (==) :: CreditNoteRefund'Variants -> CreditNoteRefund'Variants -> Bool # (/=) :: CreditNoteRefund'Variants -> CreditNoteRefund'Variants -> Bool # | |
| Show CreditNoteRefund'Variants Source # | |
Defined in StripeAPI.Types.CreditNote Methods showsPrec :: Int -> CreditNoteRefund'Variants -> ShowS # show :: CreditNoteRefund'Variants -> String # showList :: [CreditNoteRefund'Variants] -> ShowS # | |
| ToJSON CreditNoteRefund'Variants Source # | |
Defined in StripeAPI.Types.CreditNote Methods toJSON :: CreditNoteRefund'Variants -> Value # toEncoding :: CreditNoteRefund'Variants -> Encoding # toJSONList :: [CreditNoteRefund'Variants] -> Value # | |
| FromJSON CreditNoteRefund'Variants Source # | |
Defined in StripeAPI.Types.CreditNote Methods parseJSON :: Value -> Parser CreditNoteRefund'Variants # parseJSONList :: Value -> Parser [CreditNoteRefund'Variants] # | |
data CreditNoteStatus' Source #
Defines the enum schema located at components.schemas.credit_note.properties.status in the specification.
Status of this credit note, one of `issued` or `void`. Learn more about voiding credit notes.
Constructors
| CreditNoteStatus'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| CreditNoteStatus'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| CreditNoteStatus'EnumIssued | Represents the JSON value |
| CreditNoteStatus'EnumVoid | Represents the JSON value |
Instances
| Eq CreditNoteStatus' Source # | |
Defined in StripeAPI.Types.CreditNote Methods (==) :: CreditNoteStatus' -> CreditNoteStatus' -> Bool # (/=) :: CreditNoteStatus' -> CreditNoteStatus' -> Bool # | |
| Show CreditNoteStatus' Source # | |
Defined in StripeAPI.Types.CreditNote Methods showsPrec :: Int -> CreditNoteStatus' -> ShowS # show :: CreditNoteStatus' -> String # showList :: [CreditNoteStatus'] -> ShowS # | |
| ToJSON CreditNoteStatus' Source # | |
Defined in StripeAPI.Types.CreditNote Methods toJSON :: CreditNoteStatus' -> Value # toEncoding :: CreditNoteStatus' -> Encoding # toJSONList :: [CreditNoteStatus'] -> Value # toEncodingList :: [CreditNoteStatus'] -> Encoding # | |
| FromJSON CreditNoteStatus' Source # | |
Defined in StripeAPI.Types.CreditNote Methods parseJSON :: Value -> Parser CreditNoteStatus' # parseJSONList :: Value -> Parser [CreditNoteStatus'] # | |
data CreditNoteType' Source #
Defines the enum schema located at components.schemas.credit_note.properties.type in the specification.
Type of this credit note, one of `pre_payment` or `post_payment`. A `pre_payment` credit note means it was issued when the invoice was open. A `post_payment` credit note means it was issued when the invoice was paid.
Constructors
| CreditNoteType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| CreditNoteType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| CreditNoteType'EnumPostPayment | Represents the JSON value |
| CreditNoteType'EnumPrePayment | Represents the JSON value |
Instances
| Eq CreditNoteType' Source # | |
Defined in StripeAPI.Types.CreditNote Methods (==) :: CreditNoteType' -> CreditNoteType' -> Bool # (/=) :: CreditNoteType' -> CreditNoteType' -> Bool # | |
| Show CreditNoteType' Source # | |
Defined in StripeAPI.Types.CreditNote Methods showsPrec :: Int -> CreditNoteType' -> ShowS # show :: CreditNoteType' -> String # showList :: [CreditNoteType'] -> ShowS # | |
| ToJSON CreditNoteType' Source # | |
Defined in StripeAPI.Types.CreditNote Methods toJSON :: CreditNoteType' -> Value # toEncoding :: CreditNoteType' -> Encoding # toJSONList :: [CreditNoteType'] -> Value # toEncodingList :: [CreditNoteType'] -> Encoding # | |
| FromJSON CreditNoteType' Source # | |
Defined in StripeAPI.Types.CreditNote Methods parseJSON :: Value -> Parser CreditNoteType' # parseJSONList :: Value -> Parser [CreditNoteType'] # | |