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
idstringnamestringcountrystringbaseCurrencystringnowDateTimeOffset
Properties
AvaTaxCompanyCode
AvaTax company code. Null until the entity is set up in AvaTax.
public string? AvaTaxCompanyCode { get; set; }
Property Value
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
Country
ISO country of the entity's home jurisdiction.
public string Country { get; set; }
Property Value
CreatedAt
When the entity was created.
public DateTimeOffset CreatedAt { get; }
Property Value
Features
What the entity is allowed to do (all off by default).
public EntityFeatures Features { get; set; }
Property Value
GlAccounts
GL account per GlCategory name, for the future Sage sync. Optional.
public Dictionary<string, string> GlAccounts { get; set; }
Property Value
Id
Stable code used by callers, e.g. PVC, DXT-USA, DXT-CA.
public string Id { get; }
Property Value
IsActive
Inactive entities reject every request.
public bool IsActive { get; set; }
Property Value
Name
Display name.
public string Name { get; set; }
Property Value
UpdatedAt
When it last changed.
public DateTimeOffset UpdatedAt { get; set; }