Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
CreditNote | |
|
Instances
Eq CreditNote Source # | |
Defined in StripeAPI.Types.CreditNote (==) :: CreditNote -> CreditNote -> Bool # (/=) :: CreditNote -> CreditNote -> Bool # | |
Show CreditNote Source # | |
Defined in StripeAPI.Types.CreditNote showsPrec :: Int -> CreditNote -> ShowS # show :: CreditNote -> String # showList :: [CreditNote] -> ShowS # | |
ToJSON CreditNote Source # | |
Defined in StripeAPI.Types.CreditNote toJSON :: CreditNote -> Value # toEncoding :: CreditNote -> Encoding # toJSONList :: [CreditNote] -> Value # toEncodingList :: [CreditNote] -> Encoding # | |
FromJSON CreditNote Source # | |
Defined in StripeAPI.Types.CreditNote parseJSON :: Value -> Parser CreditNote # parseJSONList :: Value -> Parser [CreditNote] # |
:: 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.
CreditNoteCustomer'Text Text | |
CreditNoteCustomer'Customer Customer | |
CreditNoteCustomer'DeletedCustomer DeletedCustomer |
Instances
Eq CreditNoteCustomer'Variants Source # | |
Defined in StripeAPI.Types.CreditNote | |
Show CreditNoteCustomer'Variants Source # | |
Defined in StripeAPI.Types.CreditNote showsPrec :: Int -> CreditNoteCustomer'Variants -> ShowS # show :: CreditNoteCustomer'Variants -> String # showList :: [CreditNoteCustomer'Variants] -> ShowS # | |
ToJSON CreditNoteCustomer'Variants Source # | |
Defined in StripeAPI.Types.CreditNote | |
FromJSON CreditNoteCustomer'Variants Source # | |
Defined in StripeAPI.Types.CreditNote |
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.
CreditNoteCustomerBalanceTransaction'Text Text | |
CreditNoteCustomerBalanceTransaction'CustomerBalanceTransaction CustomerBalanceTransaction |
data CreditNoteInvoice'Variants Source #
Defines the oneOf schema located at components.schemas.credit_note.properties.invoice.anyOf
in the specification.
ID of the invoice.
Instances
Eq CreditNoteInvoice'Variants Source # | |
Defined in StripeAPI.Types.CreditNote | |
Show CreditNoteInvoice'Variants Source # | |
Defined in StripeAPI.Types.CreditNote showsPrec :: Int -> CreditNoteInvoice'Variants -> ShowS # show :: CreditNoteInvoice'Variants -> String # showList :: [CreditNoteInvoice'Variants] -> ShowS # | |
ToJSON CreditNoteInvoice'Variants Source # | |
Defined in StripeAPI.Types.CreditNote | |
FromJSON CreditNoteInvoice'Variants Source # | |
Defined in StripeAPI.Types.CreditNote |
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
CreditNoteLines' | |
|
Instances
Eq CreditNoteLines' Source # | |
Defined in StripeAPI.Types.CreditNote (==) :: CreditNoteLines' -> CreditNoteLines' -> Bool # (/=) :: CreditNoteLines' -> CreditNoteLines' -> Bool # | |
Show CreditNoteLines' Source # | |
Defined in StripeAPI.Types.CreditNote showsPrec :: Int -> CreditNoteLines' -> ShowS # show :: CreditNoteLines' -> String # showList :: [CreditNoteLines'] -> ShowS # | |
ToJSON CreditNoteLines' Source # | |
Defined in StripeAPI.Types.CreditNote toJSON :: CreditNoteLines' -> Value # toEncoding :: CreditNoteLines' -> Encoding # toJSONList :: [CreditNoteLines'] -> Value # toEncodingList :: [CreditNoteLines'] -> Encoding # | |
FromJSON CreditNoteLines' Source # | |
Defined in StripeAPI.Types.CreditNote parseJSON :: Value -> Parser CreditNoteLines' # parseJSONList :: Value -> Parser [CreditNoteLines'] # |
:: [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`
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 (==) :: CreditNoteReason' -> CreditNoteReason' -> Bool # (/=) :: CreditNoteReason' -> CreditNoteReason' -> Bool # | |
Show CreditNoteReason' Source # | |
Defined in StripeAPI.Types.CreditNote showsPrec :: Int -> CreditNoteReason' -> ShowS # show :: CreditNoteReason' -> String # showList :: [CreditNoteReason'] -> ShowS # | |
ToJSON CreditNoteReason' Source # | |
Defined in StripeAPI.Types.CreditNote toJSON :: CreditNoteReason' -> Value # toEncoding :: CreditNoteReason' -> Encoding # toJSONList :: [CreditNoteReason'] -> Value # toEncodingList :: [CreditNoteReason'] -> Encoding # | |
FromJSON CreditNoteReason' Source # | |
Defined in StripeAPI.Types.CreditNote 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.
Instances
Eq CreditNoteRefund'Variants Source # | |
Defined in StripeAPI.Types.CreditNote | |
Show CreditNoteRefund'Variants Source # | |
Defined in StripeAPI.Types.CreditNote showsPrec :: Int -> CreditNoteRefund'Variants -> ShowS # show :: CreditNoteRefund'Variants -> String # showList :: [CreditNoteRefund'Variants] -> ShowS # | |
ToJSON CreditNoteRefund'Variants Source # | |
Defined in StripeAPI.Types.CreditNote | |
FromJSON CreditNoteRefund'Variants Source # | |
Defined in StripeAPI.Types.CreditNote |
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.
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 (==) :: CreditNoteStatus' -> CreditNoteStatus' -> Bool # (/=) :: CreditNoteStatus' -> CreditNoteStatus' -> Bool # | |
Show CreditNoteStatus' Source # | |
Defined in StripeAPI.Types.CreditNote showsPrec :: Int -> CreditNoteStatus' -> ShowS # show :: CreditNoteStatus' -> String # showList :: [CreditNoteStatus'] -> ShowS # | |
ToJSON CreditNoteStatus' Source # | |
Defined in StripeAPI.Types.CreditNote toJSON :: CreditNoteStatus' -> Value # toEncoding :: CreditNoteStatus' -> Encoding # toJSONList :: [CreditNoteStatus'] -> Value # toEncodingList :: [CreditNoteStatus'] -> Encoding # | |
FromJSON CreditNoteStatus' Source # | |
Defined in StripeAPI.Types.CreditNote 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.
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 (==) :: CreditNoteType' -> CreditNoteType' -> Bool # (/=) :: CreditNoteType' -> CreditNoteType' -> Bool # | |
Show CreditNoteType' Source # | |
Defined in StripeAPI.Types.CreditNote showsPrec :: Int -> CreditNoteType' -> ShowS # show :: CreditNoteType' -> String # showList :: [CreditNoteType'] -> ShowS # | |
ToJSON CreditNoteType' Source # | |
Defined in StripeAPI.Types.CreditNote toJSON :: CreditNoteType' -> Value # toEncoding :: CreditNoteType' -> Encoding # toJSONList :: [CreditNoteType'] -> Value # toEncodingList :: [CreditNoteType'] -> Encoding # | |
FromJSON CreditNoteType' Source # | |
Defined in StripeAPI.Types.CreditNote parseJSON :: Value -> Parser CreditNoteType' # parseJSONList :: Value -> Parser [CreditNoteType'] # |