Exemplo n.º 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);
        }
Exemplo n.º 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));
     }
 }