示例#1
0
 public static Transaction createTransaction(
     final Card card,
     final TransactionType transactionType,
     final TransactionStatus transactionStatus,
     final BigDecimal amount,
     final String description) {
   final Transaction transaction =
       createTransaction(card, transactionType, transactionStatus, amount);
   transaction.setDescription(description);
   return transaction;
 }
示例#2
0
 public static Transaction createTransaction(
     final Card card,
     final TransactionType transactionType,
     final TransactionStatus transactionStatus,
     final BigDecimal amount) {
   Transaction transaction = new Transaction();
   transaction.setCard(card);
   transaction.setTransactionType(transactionType);
   transaction.setTransactionStatus(transactionStatus);
   transaction.setAmount(amount);
   transaction.setDate(new Date());
   return transaction;
 }