Table of Contents

Class LegalEntity

Namespace
Integrations.Domain.Entities
Assembly
Integrations.Domain.dll

An "entity" in the PVC Connect glossary (PVC, Dexterra, Dexterra USA, Dexterra Canada, ...). Also called a subsidiary. Each entity maps to one AvaTax company and has its own functional (base) currency. Work orders and purchase orders carry the entity, so every tax and FX call is made on behalf of one.

public sealed class LegalEntity
Inheritance
LegalEntity
Inherited Members

Constructors

LegalEntity(string, string, string, string, DateTimeOffset)

Creates an entity with every feature off.

public LegalEntity(string id, string name, string country, string baseCurrency, DateTimeOffset now)

Parameters

id string
name string
country string
baseCurrency string
now DateTimeOffset

Properties

AvaTaxCompanyCode

AvaTax company code. Null until the entity is set up in AvaTax.

public string? AvaTaxCompanyCode { get; set; }

Property Value

string

AvaTaxCompanyId

AvaTax numeric company id, required by the certificate and customer APIs.

public int? AvaTaxCompanyId { get; set; }

Property Value

int?

BaseCurrency

Functional / base currency (PVC = USD, Dexterra Canada = CAD).

public string BaseCurrency { get; set; }

Property Value

string

Country

ISO country of the entity's home jurisdiction.

public string Country { get; set; }

Property Value

string

CreatedAt

When the entity was created.

public DateTimeOffset CreatedAt { get; }

Property Value

DateTimeOffset

Features

What the entity is allowed to do (all off by default).

public EntityFeatures Features { get; set; }

Property Value

EntityFeatures

GlAccounts

GL account per GlCategory name, for the future Sage sync. Optional.

public Dictionary<string, string> GlAccounts { get; set; }

Property Value

Dictionary<string, string>

Id

Stable code used by callers, e.g. PVC, DXT-USA, DXT-CA.

public string Id { get; }

Property Value

string

IsActive

Inactive entities reject every request.

public bool IsActive { get; set; }

Property Value

bool

Name

Display name.

public string Name { get; set; }

Property Value

string

UpdatedAt

When it last changed.

public DateTimeOffset UpdatedAt { get; set; }

Property Value

DateTimeOffset