예제 #1
0
        public Payment(PaymentData data) : base(data)
        {
            PaymentMethod = PaymentMethodFactory.Create(data?.PaymentMethod);
            var c = new Currency(data?.Currency);

            Amount = new Money(c, data?.Amount ?? 0, data?.DateMade);
        }
예제 #2
0
 public PaymentMethodsList(IEnumerable <PaymentMethodData> items, RepositoryPage page) : base(page)
 {
     if (items is null)
     {
         return;
     }
     foreach (var paymentMethodDbRecord in items)
     {
         Add(PaymentMethodFactory.Create(paymentMethodDbRecord));
     }
 }