Table of Contents

Class UpsertEntityRequest

Namespace
Integrations.Contracts.Admin
Assembly
Integrations.Contracts.dll

Create or update an entity (admin only). The id comes from the route.

public sealed record UpsertEntityRequest : IEquatable<UpsertEntityRequest>
Inheritance
UpsertEntityRequest
Implements
Inherited Members

Constructors

UpsertEntityRequest(string, string, string, string?, int?, EntityFeaturesDto?, IReadOnlyDictionary<string, string>?, bool)

Create or update an entity (admin only). The id comes from the route.

public UpsertEntityRequest(string Name, string Country, string BaseCurrency, string? AvaTaxCompanyCode, int? AvaTaxCompanyId, EntityFeaturesDto? Features = null, IReadOnlyDictionary<string, string>? GlAccounts = null, bool IsActive = true)

Parameters

Name string

Display name.

Country string

ISO 3166-1 alpha-2 home country.

BaseCurrency string

Functional currency (ISO 4217).

AvaTaxCompanyCode string

AvaTax company code. Optional until tax is enabled.

AvaTaxCompanyId int?

AvaTax numeric company id. Optional until certificates or party sync are enabled.

Features EntityFeaturesDto

Feature flags; omitted means everything off.

GlAccounts IReadOnlyDictionary<string, string>

GL account per GlCategory name. Optional.

IsActive bool

Set false to stop all activity for the entity.

Properties

AvaTaxCompanyCode

AvaTax company code. Optional until tax is enabled.

public string? AvaTaxCompanyCode { get; init; }

Property Value

string

AvaTaxCompanyId

AvaTax numeric company id. Optional until certificates or party sync are enabled.

public int? AvaTaxCompanyId { get; init; }

Property Value

int?

BaseCurrency

Functional currency (ISO 4217).

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

Feature flags; omitted means everything off.

public EntityFeaturesDto? Features { get; init; }

Property Value

EntityFeaturesDto

GlAccounts

GL account per GlCategory name. Optional.

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

Property Value

IReadOnlyDictionary<string, string>

IsActive

Set false to stop all activity for the entity.

public bool IsActive { get; init; }

Property Value

bool

Name

Display name.

public string Name { get; init; }

Property Value

string