Ejemplo n.º 1
0
 public Payment(Guid id, CardDetails cardDetails, Currency currency, decimal amount, Guid acquiringBankId)
     : base(id)
 {
     CardDetails     = cardDetails ?? throw new PaymentDomainException(nameof(cardDetails));
     Amount          = amount > 0 ? amount : throw new PaymentDomainException(nameof(amount));
     Currency        = currency;
     PaymentStatus   = PaymentStatus.Initialized;
     AcquiringBankId = acquiringBankId;
 }
Ejemplo n.º 2
0
 public Payment(Guid id, CardDetails cardDetails, Currency currency, decimal amount)
     : this(id, cardDetails, currency, amount, Guid.Empty)
 {
 }