Class UpsertTaxCodeMappingRequest
- Namespace
- Integrations.Contracts.Admin
- Assembly
- Integrations.Contracts.dll
Create or update a tax-code mapping (admin only). Mappings are data, so new work types need no deploy.
public sealed record UpsertTaxCodeMappingRequest : IEquatable<UpsertTaxCodeMappingRequest>
- Inheritance
-
UpsertTaxCodeMappingRequest
- Implements
- Inherited Members
Constructors
UpsertTaxCodeMappingRequest(LineCategory, string, string?, string?, string?, string?, string?, string?, DateOnly?, DateOnly?, bool)
Create or update a tax-code mapping (admin only). Mappings are data, so new work types need no deploy.
public UpsertTaxCodeMappingRequest(LineCategory Category, string TaxCode, string? EntityId = null, string? Country = null, string? WorkType = null, string? WorkSubType = null, string? Trade = null, string? Notes = null, DateOnly? EffectiveFrom = null, DateOnly? EffectiveTo = null, bool IsActive = true)
Parameters
CategoryLineCategoryLine category to match.
TaxCodestringAvaTax tax code to use.
EntityIdstringLimit to one entity; null applies to all.
CountrystringLimit to one country; null applies to all.
WorkTypestringWork type to match; null matches any.
WorkSubTypestringWork sub-type to match; null matches any.
TradestringTrade to match; null matches any.
NotesstringWhy this mapping exists.
EffectiveFromDateOnly?First date the row applies; defaults to today.
EffectiveToDateOnly?Last date the row applies; null means open-ended.
IsActiveboolSet false to retire the row without deleting it.
Properties
Category
Line category to match.
public LineCategory Category { get; init; }
Property Value
Country
Limit to one country; null applies to all.
public string? Country { get; init; }
Property Value
EffectiveFrom
First date the row applies; defaults to today.
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
Limit to one entity; null applies to all.
public string? EntityId { get; init; }
Property Value
IsActive
Set false to retire the row without deleting it.
public bool IsActive { get; init; }
Property Value
Notes
Why this mapping exists.
public string? Notes { get; init; }
Property Value
TaxCode
AvaTax tax code to use.
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; null matches any.
public string? WorkType { get; init; }