Table of Contents

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

Id string

Short entity id used on every request, e.g. PVC.

Name string

Display name.

Country string

ISO 3166-1 alpha-2 home country.

BaseCurrency string

Functional currency (ISO 4217) amounts are converted into.

AvaTaxCompanyCode string

AvaTax company code documents are recorded under.

AvaTaxCompanyId int?

AvaTax numeric company id (needed for customer, vendor and certificate calls).

Features EntityFeaturesDto

What this entity is allowed to do.

GlAccounts IReadOnlyDictionary<string, string>

GL account per GlCategory name, passed through on events for the ERP sync.

IsActive bool

Inactive entities reject every request.

Properties

AvaTaxCompanyCode

AvaTax company code documents are recorded under.

public string? AvaTaxCompanyCode { get; init; }

Property Value

string

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

string

Country

ISO 3166-1 alpha-2 home country.

public string Country { get; init; }

Property Value

string

Features

What this entity is allowed to do.

public EntityFeaturesDto Features { get; init; }

Property Value

EntityFeaturesDto

GlAccounts

GL account per GlCategory name, passed through on events for the ERP sync.

public IReadOnlyDictionary<string, string> GlAccounts { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Id

Short entity id used on every request, e.g. PVC.

public string Id { get; init; }

Property Value

string

IsActive

Inactive entities reject every request.

public bool IsActive { get; init; }

Property Value

bool

Name

Display name.

public string Name { get; init; }

Property Value

string