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
NamestringDisplay name.
CountrystringISO 3166-1 alpha-2 home country.
BaseCurrencystringFunctional currency (ISO 4217).
AvaTaxCompanyCodestringAvaTax company code. Optional until tax is enabled.
AvaTaxCompanyIdint?AvaTax numeric company id. Optional until certificates or party sync are enabled.
FeaturesEntityFeaturesDtoFeature flags; omitted means everything off.
GlAccountsIReadOnlyDictionary<string, string>GL account per GlCategory name. Optional.
IsActiveboolSet 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
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
Country
ISO 3166-1 alpha-2 home country.
public string Country { get; init; }
Property Value
Features
Feature flags; omitted means everything off.
public EntityFeaturesDto? Features { get; init; }
Property Value
GlAccounts
GL account per GlCategory name. Optional.
public IReadOnlyDictionary<string, string>? GlAccounts { get; init; }
Property Value
IsActive
Set false to stop all activity for the entity.
public bool IsActive { get; init; }
Property Value
Name
Display name.
public string Name { get; init; }