stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Types.CreditNote

Description

Contains the types generated from the schema CreditNote

Synopsis

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

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.

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

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 "duplicate"

CreditNoteReason'EnumFraudulent

Represents the JSON value "fraudulent"

CreditNoteReason'EnumOrderChange

Represents the JSON value "order_change"

CreditNoteReason'EnumProductUnsatisfactory

Represents the JSON value "product_unsatisfactory"

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 "issued"

CreditNoteStatus'EnumVoid

Represents the JSON value "void"

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 "post_payment"

CreditNoteType'EnumPrePayment

Represents the JSON value "pre_payment"