Exemple #1
0
        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));
        }
Exemple #2
0
 private static RequestTransaction create(RequestTransactionData data)
 {
     return(new RequestTransaction(data));
 }