erp-platform/api/src/Kurs.Platform.Domain/Entities/Definitions/Country.cs

58 lines
1.3 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using Volo.Abp.Domain.Entities.Auditing;
namespace Kurs.Platform.Entities;
public class Country : FullAuditedEntity<Guid>
{
public string Code { get; set; } // TR, US
public string Name { get; set; }
public string GroupName { get; set; }
public string CurrencyCode { get; set; }
2025-06-27 07:15:36 +00:00
public int PhoneCode { get; set; }
public string TaxLabel { get; set; }
public bool ZipRequired { get; set; }
public bool StateRequired { get; set; }
2025-06-27 07:15:36 +00:00
public ICollection<City> Cities { get; set; }
2025-08-19 10:19:31 +00:00
protected Country() { }
public Country(
Guid id,
string code,
string name,
string groupName,
string currentyCode,
int phoneCode,
string taxLabel,
bool zipRequired = false,
bool stateRequired = false)
: base(id)
{
Code = code;
Name = name;
GroupName = groupName;
CurrencyCode = currentyCode;
PhoneCode = phoneCode;
TaxLabel = taxLabel;
ZipRequired = zipRequired;
StateRequired = stateRequired;
}
}
public class CountryGroup : FullAuditedEntity<Guid>
{
public string Name { get; set; }
2025-08-19 10:19:31 +00:00
protected CountryGroup() { }
public CountryGroup(
Guid id,
string name)
: base(id)
{
Name = name;
}
}