public PayinRefund(Guid id, Payin transaction, PurchaseOrder purchaseOrder) : base(id, TransactionKind.RefundPayin, purchaseOrder.TotalOnSalePrice, transaction.CreditedWallet, transaction.Author) { Credited = transaction.Debited; PurchaseOrder = purchaseOrder; PurchaseOrderId = purchaseOrder.Id; Payin = transaction; PayinId = transaction.Id; DomainEvents = new List <DomainEvent>(); }
protected Refund(Guid id, TransactionKind kind, Payin transaction) : this(id, kind, transaction.Credited, transaction.CreditedWallet, transaction.Author) { }