Core.Thalos.Service.API/Core.Thalos.Application/UseCases/Tenants/Input/CreateTenantRequest.cs

39 lines
959 B
C#

using Lib.Architecture.BuildingBlocks;
namespace Core.Thalos.Application.UseCases.Tenants.Input
{
public class CreateTenantRequest : Notificator, ICommand
{
public string Name { get; set; } = null!;
public string TaxIdentifier { get; set; } = null!;
public string AddressLine1 { get; set; } = null!;
public string? AddressLine2 { get; set; }
public string City { get; set; } = null!;
public string State { get; set; } = null!;
public string Country { get; set; } = null!;
public string PostalCode { get; set; } = null!;
public string ContactEmail { get; set; } = null!;
public string ContactPhone { get; set; } = null!;
public string? Website { get; set; }
public string? ConnectionString { get; set; }
public bool Isolated { get; set; }
public bool Validate()
{
return Name != null;
}
}
}