Table of Contents

Class TaxCodeMappingDto

Namespace
Integrations.Contracts.Admin
Assembly
Integrations.Contracts.dll

Maps a line (work type, trade, category) to an AvaTax tax code. Null filter columns are wildcards; the most specific active row wins.

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

Constructors

TaxCodeMappingDto(Guid, string?, string?, string?, string?, string?, LineCategory, string, string?, DateOnly, DateOnly?, bool)

Maps a line (work type, trade, category) to an AvaTax tax code. Null filter columns are wildcards; the most specific active row wins.

public TaxCodeMappingDto(Guid Id, string? EntityId, string? Country, string? WorkType, string? WorkSubType, string? Trade, LineCategory Category, string TaxCode, string? Notes, DateOnly EffectiveFrom, DateOnly? EffectiveTo, bool IsActive)

Parameters

Id Guid

Mapping id.

EntityId string

Limits the row to one entity; null applies to all.

Country string

Limits the row to one country; null applies to all.

WorkType string

Work type to match (e.g. HVAC); null matches any.

WorkSubType string

Work sub-type to match; null matches any.

Trade string

Trade to match; null matches any.

Category LineCategory

Line category to match (labor, material, ...).

TaxCode string

AvaTax tax code to use, e.g. SL010000.

Notes string

Why this mapping exists (for the tax team).

EffectiveFrom DateOnly

First date the row applies.

EffectiveTo DateOnly?

Last date the row applies; null means open-ended.

IsActive bool

Inactive rows are ignored.

Properties

Category

Line category to match (labor, material, ...).

public LineCategory Category { get; init; }

Property Value

LineCategory

Country

Limits the row to one country; null applies to all.

public string? Country { get; init; }

Property Value

string

EffectiveFrom

First date the row applies.

public DateOnly EffectiveFrom { get; init; }

Property Value

DateOnly

EffectiveTo

Last date the row applies; null means open-ended.

public DateOnly? EffectiveTo { get; init; }

Property Value

DateOnly?

EntityId

Limits the row to one entity; null applies to all.

public string? EntityId { get; init; }

Property Value

string

Id

Mapping id.

public Guid Id { get; init; }

Property Value

Guid

IsActive

Inactive rows are ignored.

public bool IsActive { get; init; }

Property Value

bool

Notes

Why this mapping exists (for the tax team).

public string? Notes { get; init; }

Property Value

string

TaxCode

AvaTax tax code to use, e.g. SL010000.

public string TaxCode { get; init; }

Property Value

string

Trade

Trade to match; null matches any.

public string? Trade { get; init; }

Property Value

string

WorkSubType

Work sub-type to match; null matches any.

public string? WorkSubType { get; init; }

Property Value

string

WorkType

Work type to match (e.g. HVAC); null matches any.

public string? WorkType { get; init; }

Property Value

string