Table of Contents

Class TaxLineRequest

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

One cost line. WorkType/WorkSubType/Trade + Category select the tax code through the mapping table unless TaxCode overrides it. JobSite overrides the document's job site for this line.

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

Constructors

TaxLineRequest(LineCategory, decimal, decimal?, string?, string?, string?, string?, string?, string?, string?, AddressDto?)

One cost line. WorkType/WorkSubType/Trade + Category select the tax code through the mapping table unless TaxCode overrides it. JobSite overrides the document's job site for this line.

public TaxLineRequest(LineCategory Category, decimal Amount, decimal? Quantity = null, string? WorkType = null, string? WorkSubType = null, string? Trade = null, string? TaxCode = null, string? ItemCode = null, string? Description = null, string? SourceLineId = null, AddressDto? JobSite = null)

Parameters

Category LineCategory

Labor, material, freight, ... Keep labor and materials on separate lines.

Amount decimal

Line amount before tax, in the document currency. Never negative: use a credit instead.

Quantity decimal?

Units, if meaningful. Defaults to 1.

WorkType string

Work type (e.g. HVAC, Plumbing) used to pick the tax code.

WorkSubType string

Work sub-type, for finer tax-code mapping.

Trade string

Trade, for finer tax-code mapping.

TaxCode string

Explicit AvaTax tax code; skips the mapping table.

ItemCode string

Caller's item or SKU code, passed through for audit.

Description string

Line description shown on reports.

SourceLineId string

Caller's line id (PO/WO line), passed through so results can be matched back.

JobSite AddressDto

Job site for this line only, when it differs from the document's.

Properties

Amount

Line amount before tax, in the document currency. Never negative: use a credit instead.

public decimal Amount { get; init; }

Property Value

decimal

Category

Labor, material, freight, ... Keep labor and materials on separate lines.

public LineCategory Category { get; init; }

Property Value

LineCategory

Description

Line description shown on reports.

public string? Description { get; init; }

Property Value

string

ItemCode

Caller's item or SKU code, passed through for audit.

public string? ItemCode { get; init; }

Property Value

string

JobSite

Job site for this line only, when it differs from the document's.

public AddressDto? JobSite { get; init; }

Property Value

AddressDto

Quantity

Units, if meaningful. Defaults to 1.

public decimal? Quantity { get; init; }

Property Value

decimal?

SourceLineId

Caller's line id (PO/WO line), passed through so results can be matched back.

public string? SourceLineId { get; init; }

Property Value

string

TaxCode

Explicit AvaTax tax code; skips the mapping table.

public string? TaxCode { get; init; }

Property Value

string

Trade

Trade, for finer tax-code mapping.

public string? Trade { get; init; }

Property Value

string

WorkSubType

Work sub-type, for finer tax-code mapping.

public string? WorkSubType { get; init; }

Property Value

string

WorkType

Work type (e.g. HVAC, Plumbing) used to pick the tax code.

public string? WorkType { get; init; }

Property Value

string