Table of Contents

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

Category LineCategory

Line category to match.

TaxCode string

AvaTax tax code to use.

EntityId string

Limit to one entity; null applies to all.

Country string

Limit to one country; null applies to all.

WorkType string

Work type to match; null matches any.

WorkSubType string

Work sub-type to match; null matches any.

Trade string

Trade to match; null matches any.

Notes string

Why this mapping exists.

EffectiveFrom DateOnly?

First date the row applies; defaults to today.

EffectiveTo DateOnly?

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

IsActive bool

Set false to retire the row without deleting it.

Properties

Category

Line category to match.

public LineCategory Category { get; init; }

Property Value

LineCategory

Country

Limit to one country; null applies to all.

public string? Country { get; init; }

Property Value

string

EffectiveFrom

First date the row applies; defaults to today.

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

Limit to one entity; null applies to all.

public string? EntityId { get; init; }

Property Value

string

IsActive

Set false to retire the row without deleting it.

public bool IsActive { get; init; }

Property Value

bool

Notes

Why this mapping exists.

public string? Notes { get; init; }

Property Value

string

TaxCode

AvaTax tax code to use.

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; null matches any.

public string? WorkType { get; init; }

Property Value

string