public static RequestTransaction CreateRequest(string id, decimal?amount, string explanation, string senderAccountId, string receiverAccountId, TransactionStatus status = TransactionStatus.Pending, DateTime?validFrom = null, DateTime?validTo = null) { var r = new RequestTransactionData { ID = id, Amount = amount, Explanation = explanation, Status = status, ValidFrom = validFrom ?? DateTime.MinValue, ValidTo = validTo ?? DateTime.MaxValue, SenderAccountId = senderAccountId, ReceiverAccountId = receiverAccountId }; return(new RequestTransaction(r)); }
private static RequestTransaction create(RequestTransactionData data) { return(new RequestTransaction(data)); }