Table of Contents

Class PaymentCreditNoteDTO

Namespace
NuvTools.Payment.DTOs
Assembly
NuvTools.Payment.dll

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

CreditNoteId string

The provider's identifier for it.

InvoiceId string

The invoice it credits.

Number string

The number printed on it.

CurrencyCode string

ISO 4217, upper case.

AmountMinor long

How much it credits, in the currency's minor units.

IsVoid bool

Whether it was voided after it was issued.

Memo string

The reason given, as printed on it.

CreatedUtc DateTimeOffset

When it was issued.

Metadata IReadOnlyDictionary<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

long

CreatedUtc

When it was issued.

public DateTimeOffset CreatedUtc { get; init; }

Property Value

DateTimeOffset

CreditNoteId

The provider's identifier for it.

public string CreditNoteId { get; init; }

Property Value

string

CurrencyCode

ISO 4217, upper case.

public string CurrencyCode { get; init; }

Property Value

string

InvoiceId

The invoice it credits.

public string InvoiceId { get; init; }

Property Value

string

IsVoid

Whether it was voided after it was issued.

public bool IsVoid { get; init; }

Property Value

bool

Memo

The reason given, as printed on it.

public string? Memo { get; init; }

Property Value

string

Metadata

What the caller stored on it.

public IReadOnlyDictionary<string, string> Metadata { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Number

The number printed on it.

public string? Number { get; init; }

Property Value

string