Class TaxDocumentLine
- Namespace
- Integrations.Domain.Tax
- Assembly
- Integrations.Domain.dll
One line of a tax document, with its calculated tax by jurisdiction.
public sealed class TaxDocumentLine
- Inheritance
-
TaxDocumentLine
- Inherited Members
- Extension Methods
Constructors
TaxDocumentLine(int, LineCategory, decimal, decimal, string, Address)
Creates a line before calculation.
public TaxDocumentLine(int lineNumber, LineCategory category, decimal amount, decimal quantity, string taxCode, Address jobSite)
Parameters
Properties
Amount
Line amount in transaction currency. Negative on credits.
public decimal Amount { get; }
Property Value
Category
Labor, material, ...
public LineCategory Category { get; }
Property Value
Description
Line description.
public string? Description { get; set; }
Property Value
ExemptAmount
Exempt part of the line.
public decimal ExemptAmount { get; }
Property Value
Id
Line id.
public Guid Id { get; }
Property Value
IsTaxable
Whether any of the line was taxed.
public bool IsTaxable { get; }
Property Value
ItemCode
Caller's item code.
public string? ItemCode { get; set; }
Property Value
JobSite
Where the work is performed (ship-to). Drives the jurisdiction.
public Address JobSite { get; }
Property Value
Jurisdictions
Tax per jurisdiction.
public IReadOnlyList<TaxLineJurisdiction> Jurisdictions { get; }
Property Value
LineNumber
1-based line number (matches provider results).
public int LineNumber { get; }
Property Value
OriginalLineNumber
For credit lines: the line number on the original invoice being credited.
public int? OriginalLineNumber { get; set; }
Property Value
- int?
Quantity
Units.
public decimal Quantity { get; }
Property Value
SourceLineId
Caller's line id (PO line, invoice line) for traceability.
public string? SourceLineId { get; set; }
Property Value
Tax
Total tax on the line.
public decimal Tax { get; }
Property Value
TaxCode
Provider tax code, resolved from the tax-code mapping unless the caller overrode it.
public string TaxCode { get; }
Property Value
TaxDocumentId
Owning document.
public Guid TaxDocumentId { get; }
Property Value
TaxableAmount
Taxable part of the line.
public decimal TaxableAmount { get; }
Property Value
Trade
Trade.
public string? Trade { get; set; }
Property Value
WorkSubType
Work sub-type.
public string? WorkSubType { get; set; }
Property Value
WorkType
Work type (drives the tax code).
public string? WorkType { get; set; }