zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Domain/Aggregates/BuyerAggregate/PaymentMethod.cs
2023-12-05 17:22:48 +08:00

23 lines
646 B
C#

using ZeroFramework.DeviceCenter.Domain.Entities;
namespace ZeroFramework.DeviceCenter.Domain.Aggregates.BuyerAggregate
{
public class PaymentMethod : BaseEntity<int>
{
public string CardNumber { get; private set; } = string.Empty;
public CardType CardType { get; private set; }
public DateTimeOffset Expiration { get; private set; }
protected PaymentMethod() { }
public PaymentMethod(string cardNumber, int cardType, DateTimeOffset expiration)
{
CardNumber = cardNumber;
CardType = (CardType)cardType;
Expiration = expiration;
}
}
}