Class PaymentCreditNoteDTO
A credit note: part or all of a paid invoice given back, as its own document.
public record PaymentCreditNoteDTO : IEquatable<PaymentCreditNoteDTO>
- Inheritance
-
PaymentCreditNoteDTO
- Implements
- Inherited Members
Constructors
PaymentCreditNoteDTO(string, string, string?, string, long, bool, string?, DateTimeOffset, IReadOnlyDictionary<string, string>)
A credit note: part or all of a paid invoice given back, as its own document.
public PaymentCreditNoteDTO(string CreditNoteId, string InvoiceId, string? Number, string CurrencyCode, long AmountMinor, bool IsVoid, string? Memo, DateTimeOffset CreatedUtc, IReadOnlyDictionary<string, string> Metadata)
Parameters
CreditNoteIdstringThe provider's identifier for it.
InvoiceIdstringThe invoice it credits.
NumberstringThe number printed on it.
CurrencyCodestringISO 4217, upper case.
AmountMinorlongHow much it credits, in the currency's minor units.
IsVoidboolWhether it was voided after it was issued.
MemostringThe reason given, as printed on it.
CreatedUtcDateTimeOffsetWhen it was issued.
MetadataIReadOnlyDictionary<string, string>What the caller stored on it.
Properties
AmountMinor
How much it credits, in the currency's minor units.
public long AmountMinor { get; init; }
Property Value
CreatedUtc
When it was issued.
public DateTimeOffset CreatedUtc { get; init; }
Property Value
CreditNoteId
The provider's identifier for it.
public string CreditNoteId { get; init; }
Property Value
CurrencyCode
ISO 4217, upper case.
public string CurrencyCode { get; init; }
Property Value
InvoiceId
The invoice it credits.
public string InvoiceId { get; init; }
Property Value
IsVoid
Whether it was voided after it was issued.
public bool IsVoid { get; init; }
Property Value
Memo
The reason given, as printed on it.
public string? Memo { get; init; }
Property Value
Metadata
What the caller stored on it.
public IReadOnlyDictionary<string, string> Metadata { get; init; }
Property Value
Number
The number printed on it.
public string? Number { get; init; }