Table of Contents

Class TaxLineDto

Namespace
Integrations.Contracts.Tax
Assembly
Integrations.Contracts.dll

A calculated line with its tax broken down by jurisdiction.

public sealed record TaxLineDto : IEquatable<TaxLineDto>
Inheritance
TaxLineDto
Implements
Inherited Members

Constructors

TaxLineDto(int, string?, LineCategory, string?, string?, string?, string, decimal, decimal, decimal, decimal, bool, AddressDto, IReadOnlyList<JurisdictionTaxDto>, int?)

A calculated line with its tax broken down by jurisdiction.

public TaxLineDto(int LineNumber, string? SourceLineId, LineCategory Category, string? WorkType, string? WorkSubType, string? Trade, string TaxCode, decimal Amount, decimal TaxableAmount, decimal ExemptAmount, decimal Tax, bool IsTaxable, AddressDto JobSite, IReadOnlyList<JurisdictionTaxDto> Jurisdictions, int? OriginalLineNumber = null)

Parameters

LineNumber int

1-based line number on the document.

SourceLineId string

Caller's line id, echoed back.

Category LineCategory

Labor, material, ...

WorkType string

Work type the tax code was chosen for.

WorkSubType string

Work sub-type, if given.

Trade string

Trade, if given.

TaxCode string

AvaTax tax code used.

Amount decimal

Line amount before tax.

TaxableAmount decimal

Taxable part of the line.

ExemptAmount decimal

Exempt part of the line.

Tax decimal

Total tax on the line across jurisdictions.

IsTaxable bool

Whether any part of the line is taxable.

JobSite AddressDto

Job site the line was taxed at.

Jurisdictions IReadOnlyList<JurisdictionTaxDto>

Tax per jurisdiction.

OriginalLineNumber int?

On a credit: the invoice line it reverses.

Properties

Amount

Line amount before tax.

public decimal Amount { get; init; }

Property Value

decimal

Category

Labor, material, ...

public LineCategory Category { get; init; }

Property Value

LineCategory

ExemptAmount

Exempt part of the line.

public decimal ExemptAmount { get; init; }

Property Value

decimal

IsTaxable

Whether any part of the line is taxable.

public bool IsTaxable { get; init; }

Property Value

bool

JobSite

Job site the line was taxed at.

public AddressDto JobSite { get; init; }

Property Value

AddressDto

Jurisdictions

Tax per jurisdiction.

public IReadOnlyList<JurisdictionTaxDto> Jurisdictions { get; init; }

Property Value

IReadOnlyList<JurisdictionTaxDto>

LineNumber

1-based line number on the document.

public int LineNumber { get; init; }

Property Value

int

OriginalLineNumber

On a credit: the invoice line it reverses.

public int? OriginalLineNumber { get; init; }

Property Value

int?

SourceLineId

Caller's line id, echoed back.

public string? SourceLineId { get; init; }

Property Value

string

Tax

Total tax on the line across jurisdictions.

public decimal Tax { get; init; }

Property Value

decimal

TaxCode

AvaTax tax code used.

public string TaxCode { get; init; }

Property Value

string

TaxableAmount

Taxable part of the line.

public decimal TaxableAmount { get; init; }

Property Value

decimal

Trade

Trade, if given.

public string? Trade { get; init; }

Property Value

string

WorkSubType

Work sub-type, if given.

public string? WorkSubType { get; init; }

Property Value

string

WorkType

Work type the tax code was chosen for.

public string? WorkType { get; init; }

Property Value

string