package com.accenture.multibank.entities;

import java.math.BigDecimal;

/**
 * @author manuel
 * @version 12/20/16
 */
public class Transaction {

	private String fromAccount;
	private String toAccount;
	private BigDecimal amount;
    private Status status;

    public Transaction() {
    }

	public Transaction(String from, String to, BigDecimal amount) {
		this.fromAccount = from;
		this.toAccount = to;
        this.amount = amount;
        this.status = Status.IN_PROCESS;
    }

	public String getFromAccountNumber() {
		return fromAccount;
    }

	public String getToAccountNumber() {
		return toAccount;
    }

    public int getAmount() {
        return amount;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }
}


package com.accenture.multibank.entities;

import java.math.BigDecimal;

/**
 * @author manuel
 * @version 12/20/16
 */
public class Transaction {

	private String fromAccount;
	private String toAccount;
	private BigDecimal amount;
    private Status status;

    public Transaction() {
    }

	public Transaction(String from, String to, BigDecimal amount) {
		this.fromAccount = from;
		this.toAccount = to;
        this.amount = amount;
        this.status = Status.IN_PROCESS;
    }

	public String getFromAccountNumber() {
		return fromAccount;
    }

	public String getToAccountNumber() {
		return toAccount;
    }

	public BigDecimal getAmount() {
        return amount;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }
}


fix Transaction