Class EntityDto
- Namespace
- Integrations.Contracts.Admin
- Assembly
- Integrations.Contracts.dll
A legal entity (PVC, Dexterra Canada, ...) and how it maps to the tax provider.
public sealed record EntityDto : IEquatable<EntityDto>
- Inheritance
-
EntityDto
- Implements
- Inherited Members
Constructors
EntityDto(string, string, string, string, string?, int?, EntityFeaturesDto, IReadOnlyDictionary<string, string>, bool)
A legal entity (PVC, Dexterra Canada, ...) and how it maps to the tax provider.
public EntityDto(string Id, string Name, string Country, string BaseCurrency, string? AvaTaxCompanyCode, int? AvaTaxCompanyId, EntityFeaturesDto Features, IReadOnlyDictionary<string, string> GlAccounts, bool IsActive)
Parameters
IdstringShort entity id used on every request, e.g.
PVC.NamestringDisplay name.
CountrystringISO 3166-1 alpha-2 home country.
BaseCurrencystringFunctional currency (ISO 4217) amounts are converted into.
AvaTaxCompanyCodestringAvaTax company code documents are recorded under.
AvaTaxCompanyIdint?AvaTax numeric company id (needed for customer, vendor and certificate calls).
FeaturesEntityFeaturesDtoWhat this entity is allowed to do.
GlAccountsIReadOnlyDictionary<string, string>GL account per GlCategory name, passed through on events for the ERP sync.
IsActiveboolInactive entities reject every request.
Properties
AvaTaxCompanyCode
AvaTax company code documents are recorded under.
public string? AvaTaxCompanyCode { get; init; }
Property Value
AvaTaxCompanyId
AvaTax numeric company id (needed for customer, vendor and certificate calls).
public int? AvaTaxCompanyId { get; init; }
Property Value
- int?
BaseCurrency
Functional currency (ISO 4217) amounts are converted into.
public string BaseCurrency { get; init; }
Property Value
Country
ISO 3166-1 alpha-2 home country.
public string Country { get; init; }
Property Value
Features
What this entity is allowed to do.
public EntityFeaturesDto Features { get; init; }
Property Value
GlAccounts
GL account per GlCategory name, passed through on events for the ERP sync.
public IReadOnlyDictionary<string, string> GlAccounts { get; init; }
Property Value
Id
Short entity id used on every request, e.g. PVC.
public string Id { get; init; }
Property Value
IsActive
Inactive entities reject every request.
public bool IsActive { get; init; }
Property Value
Name
Display name.
public string Name { get; init; }