Table of Contents

Class BillingDocumentModel

Namespace
NuvTools.Report.Documents
Assembly
NuvTools.Report.dll

Everything a billing document prints — an invoice, a receipt or a credit note: the application decides what it is called and fills it in; the layout is the package's.

public record BillingDocumentModel : IEquatable<BillingDocumentModel>
Inheritance
BillingDocumentModel
Implements
Inherited Members

Constructors

BillingDocumentModel(string, string, DateTimeOffset, BillingDocumentParty, BillingDocumentParty, string, IReadOnlyList<BillingDocumentLine>, decimal, string, string?, DateOnly?, DateOnly?, decimal?, decimal?, string?, string?, string?, BillingDocumentLabels?, string)

Everything a billing document prints — an invoice, a receipt or a credit note: the application decides what it is called and fills it in; the layout is the package's.

public BillingDocumentModel(string Title, string Number, DateTimeOffset IssuedOn, BillingDocumentParty Issuer, BillingDocumentParty Customer, string CurrencyCode, IReadOnlyList<BillingDocumentLine> Lines, decimal Total, string CultureName = "en-US", string? Status = null, DateOnly? PeriodStart = null, DateOnly? PeriodEnd = null, decimal? AmountPaid = null, decimal? AmountDue = null, string? PaymentDescription = null, string? Reference = null, string? Notes = null, BillingDocumentLabels? Labels = null, string AccentColor = "#E96B20")

Parameters

Title string

What the document is, as printed at the top — Invoice, Receipt, Credit note.

Number string

Its number.

IssuedOn DateTimeOffset

When it was issued.

Issuer BillingDocumentParty

Who issues it.

Customer BillingDocumentParty

Who it is issued to.

CurrencyCode string

ISO 4217; the amounts are written in it.

Lines IReadOnlyList<BillingDocumentLine>

What it charges or gives back.

Total decimal

Its total.

CultureName string

The culture dates and amounts are written in — pt-BR.

Status string

A stamp printed next to the title — Paid — when given.

PeriodStart DateOnly?

The first day of the period it bills, when it bills one.

PeriodEnd DateOnly?

The last day of that period.

AmountPaid decimal?

What was paid of it, printed when given.

AmountDue decimal?

What is still owed, printed when given.

PaymentDescription string

How it was paid — Visa •••• 4242 on 10/11/2026 — when it was.

Reference string

Another document it refers to — the invoice a credit note credits — printed under the number.

Notes string

Free text printed after the totals.

Labels BillingDocumentLabels

The fixed words, translated; English when not given.

AccentColor string

The colour of the title and the rules, as #RRGGBB.

Properties

AccentColor

The colour of the title and the rules, as #RRGGBB.

public string AccentColor { get; init; }

Property Value

string

AmountDue

What is still owed, printed when given.

public decimal? AmountDue { get; init; }

Property Value

decimal?

AmountPaid

What was paid of it, printed when given.

public decimal? AmountPaid { get; init; }

Property Value

decimal?

CultureName

The culture dates and amounts are written in — pt-BR.

public string CultureName { get; init; }

Property Value

string

CurrencyCode

ISO 4217; the amounts are written in it.

public string CurrencyCode { get; init; }

Property Value

string

Customer

Who it is issued to.

public BillingDocumentParty Customer { get; init; }

Property Value

BillingDocumentParty

IssuedOn

When it was issued.

public DateTimeOffset IssuedOn { get; init; }

Property Value

DateTimeOffset

Issuer

Who issues it.

public BillingDocumentParty Issuer { get; init; }

Property Value

BillingDocumentParty

Labels

The fixed words, translated; English when not given.

public BillingDocumentLabels? Labels { get; init; }

Property Value

BillingDocumentLabels

Lines

What it charges or gives back.

public IReadOnlyList<BillingDocumentLine> Lines { get; init; }

Property Value

IReadOnlyList<BillingDocumentLine>

Notes

Free text printed after the totals.

public string? Notes { get; init; }

Property Value

string

Number

Its number.

public string Number { get; init; }

Property Value

string

PaymentDescription

How it was paid — Visa •••• 4242 on 10/11/2026 — when it was.

public string? PaymentDescription { get; init; }

Property Value

string

PeriodEnd

The last day of that period.

public DateOnly? PeriodEnd { get; init; }

Property Value

DateOnly?

PeriodStart

The first day of the period it bills, when it bills one.

public DateOnly? PeriodStart { get; init; }

Property Value

DateOnly?

Reference

Another document it refers to — the invoice a credit note credits — printed under the number.

public string? Reference { get; init; }

Property Value

string

Status

A stamp printed next to the title — Paid — when given.

public string? Status { get; init; }

Property Value

string

Title

What the document is, as printed at the top — Invoice, Receipt, Credit note.

public string Title { get; init; }

Property Value

string

Total

Its total.

public decimal Total { get; init; }

Property Value

decimal