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
TitlestringWhat the document is, as printed at the top —
Invoice,Receipt,Credit note.NumberstringIts number.
IssuedOnDateTimeOffsetWhen it was issued.
IssuerBillingDocumentPartyWho issues it.
CustomerBillingDocumentPartyWho it is issued to.
CurrencyCodestringISO 4217; the amounts are written in it.
LinesIReadOnlyList<BillingDocumentLine>What it charges or gives back.
TotaldecimalIts total.
CultureNamestringThe culture dates and amounts are written in —
pt-BR.StatusstringA stamp printed next to the title —
Paid— when given.PeriodStartDateOnly?The first day of the period it bills, when it bills one.
PeriodEndDateOnly?The last day of that period.
AmountPaiddecimal?What was paid of it, printed when given.
AmountDuedecimal?What is still owed, printed when given.
PaymentDescriptionstringHow it was paid —
Visa •••• 4242 on 10/11/2026— when it was.ReferencestringAnother document it refers to — the invoice a credit note credits — printed under the number.
NotesstringFree text printed after the totals.
LabelsBillingDocumentLabelsThe fixed words, translated; English when not given.
AccentColorstringThe 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
AmountDue
What is still owed, printed when given.
public decimal? AmountDue { get; init; }
Property Value
AmountPaid
What was paid of it, printed when given.
public decimal? AmountPaid { get; init; }
Property Value
CultureName
The culture dates and amounts are written in — pt-BR.
public string CultureName { get; init; }
Property Value
CurrencyCode
ISO 4217; the amounts are written in it.
public string CurrencyCode { get; init; }
Property Value
Customer
Who it is issued to.
public BillingDocumentParty Customer { get; init; }
Property Value
IssuedOn
When it was issued.
public DateTimeOffset IssuedOn { get; init; }
Property Value
Issuer
Who issues it.
public BillingDocumentParty Issuer { get; init; }
Property Value
Labels
The fixed words, translated; English when not given.
public BillingDocumentLabels? Labels { get; init; }
Property Value
Lines
What it charges or gives back.
public IReadOnlyList<BillingDocumentLine> Lines { get; init; }
Property Value
Notes
Free text printed after the totals.
public string? Notes { get; init; }
Property Value
Number
Its number.
public string Number { get; init; }
Property Value
PaymentDescription
How it was paid — Visa •••• 4242 on 10/11/2026 — when it was.
public string? PaymentDescription { get; init; }
Property Value
PeriodEnd
The last day of that period.
public DateOnly? PeriodEnd { get; init; }
Property Value
PeriodStart
The first day of the period it bills, when it bills one.
public DateOnly? PeriodStart { get; init; }
Property Value
Reference
Another document it refers to — the invoice a credit note credits — printed under the number.
public string? Reference { get; init; }
Property Value
Status
A stamp printed next to the title — Paid — when given.
public string? Status { get; init; }
Property Value
Title
What the document is, as printed at the top — Invoice, Receipt, Credit note.
public string Title { get; init; }
Property Value
Total
Its total.
public decimal Total { get; init; }