package io.teiler.server.dto;

import com.google.gson.annotations.SerializedName;

/**
 * Class holding all information about a suggested payment.
 *
 *  @author dthoma
 */
public class SuggestedCompensation {

    @SerializedName("amount")
    private Integer amount;

    @SerializedName("payer")
    private Person payer;

    @SerializedName("profiteer")
    private Person profiteer;

    public SuggestedCompensation(Integer amount, Person payer, Person profiteer) {
        this.amount = amount;
        this.payer = payer;
        this.profiteer = profiteer;
    }

    @Override
    public String toString() {
        return "SuggestedCompensation [amount=" + amount + ", payer=" + payer.toString() + ", profiteer=" + profiteer.toString() + "]";
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Person getPayer() {
        return payer;
    }

    public void setPayer(Person payer) {
        this.payer = payer;
    }

    public Person getProfiteer() {
        return profiteer;
    }

    public void setProfiteer(Person profiteer) {
        this.profiteer = profiteer;
    }
}

package io.teiler.server.dto;

import com.google.gson.annotations.SerializedName;

/**
 * Class holding all information about a suggested payment.
 *
 *  @author dthoma
 */
public class SuggestedCompensation {

    @SerializedName("amount")
    private Integer amount;

    @SerializedName("payer")
    private Person payer;

    @SerializedName("profiteer")
    private Person profiteer;

    public SuggestedCompensation(Integer amount, Person payer, Person profiteer) {
        this.amount = amount;
        this.payer = payer;
        this.profiteer = profiteer;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Person getPayer() {
        return payer;
    }

    public void setPayer(Person payer) {
        this.payer = payer;
    }

    public Person getProfiteer() {
        return profiteer;
    }

    public void setProfiteer(Person profiteer) {
        this.profiteer = profiteer;
    }

    @Override
    public String toString() {
        return "SuggestedCompensation [amount=" + amount + ", payer=" + payer.toString() + ", profiteer=" + profiteer.toString() + "]";
    }
}

move tostring below getters/setters