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
IdGuidMapping id.
EntityIdstringLimits the row to one entity; null applies to all.
CountrystringLimits the row to one country; null applies to all.
WorkTypestringWork type to match (e.g.
HVAC); null matches any.WorkSubTypestringWork sub-type to match; null matches any.
TradestringTrade to match; null matches any.
CategoryLineCategoryLine category to match (labor, material, ...).
TaxCodestringAvaTax tax code to use, e.g.
SL010000.NotesstringWhy this mapping exists (for the tax team).
EffectiveFromDateOnlyFirst date the row applies.
EffectiveToDateOnly?Last date the row applies; null means open-ended.
IsActiveboolInactive rows are ignored.
Properties
Category
Line category to match (labor, material, ...).
public LineCategory Category { get; init; }
Property Value
Country
Limits the row to one country; null applies to all.
public string? Country { get; init; }
Property Value
EffectiveFrom
First date the row applies.
public DateOnly EffectiveFrom { get; init; }
Property Value
EffectiveTo
Last date the row applies; null means open-ended.
public DateOnly? EffectiveTo { get; init; }
Property Value
EntityId
Limits the row to one entity; null applies to all.
public string? EntityId { get; init; }
Property Value
Id
Mapping id.
public Guid Id { get; init; }
Property Value
IsActive
Inactive rows are ignored.
public bool IsActive { get; init; }
Property Value
Notes
Why this mapping exists (for the tax team).
public string? Notes { get; init; }
Property Value
TaxCode
AvaTax tax code to use, e.g. SL010000.
public string TaxCode { get; init; }
Property Value
Trade
Trade to match; null matches any.
public string? Trade { get; init; }
Property Value
WorkSubType
Work sub-type to match; null matches any.
public string? WorkSubType { get; init; }
Property Value
WorkType
Work type to match (e.g. HVAC); null matches any.
public string? WorkType { get; init; }