Table of Contents

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

lineNumber int
category LineCategory
amount decimal
quantity decimal
taxCode string
jobSite Address

Properties

Amount

Line amount in transaction currency. Negative on credits.

public decimal Amount { get; }

Property Value

decimal

Category

Labor, material, ...

public LineCategory Category { get; }

Property Value

LineCategory

Description

Line description.

public string? Description { get; set; }

Property Value

string

ExemptAmount

Exempt part of the line.

public decimal ExemptAmount { get; }

Property Value

decimal

Id

Line id.

public Guid Id { get; }

Property Value

Guid

IsTaxable

Whether any of the line was taxed.

public bool IsTaxable { get; }

Property Value

bool

ItemCode

Caller's item code.

public string? ItemCode { get; set; }

Property Value

string

JobSite

Where the work is performed (ship-to). Drives the jurisdiction.

public Address JobSite { get; }

Property Value

Address

Jurisdictions

Tax per jurisdiction.

public IReadOnlyList<TaxLineJurisdiction> Jurisdictions { get; }

Property Value

IReadOnlyList<TaxLineJurisdiction>

LineNumber

1-based line number (matches provider results).

public int LineNumber { get; }

Property Value

int

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

decimal

SourceLineId

Caller's line id (PO line, invoice line) for traceability.

public string? SourceLineId { get; set; }

Property Value

string

Tax

Total tax on the line.

public decimal Tax { get; }

Property Value

decimal

TaxCode

Provider tax code, resolved from the tax-code mapping unless the caller overrode it.

public string TaxCode { get; }

Property Value

string

TaxDocumentId

Owning document.

public Guid TaxDocumentId { get; }

Property Value

Guid

TaxableAmount

Taxable part of the line.

public decimal TaxableAmount { get; }

Property Value

decimal

Trade

Trade.

public string? Trade { get; set; }

Property Value

string

WorkSubType

Work sub-type.

public string? WorkSubType { get; set; }

Property Value

string

WorkType

Work type (drives the tax code).

public string? WorkType { get; set; }

Property Value

string