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;
    }
}

@@ -571,196 +571,8 @@
  %7D%0A%0A
-    @Override%0A    public String toString() %7B%0A        return %22SuggestedCompensation %5Bamount=%22 + amount + %22, payer=%22 + payer.toString() + %22, profiteer=%22 + profiteer.toString() + %22%5D%22;%0A    %7D%0A%0A
     
@@ -1005,11 +1005,199 @@
 r;%0A    %7D
+%0A%0A    @Override%0A    public String toString() %7B%0A        return %22SuggestedCompensation %5Bamount=%22 + amount + %22, payer=%22 + payer.toString() + %22, profiteer=%22 + profiteer.toString() + %22%5D%22;%0A    %7D
 %0A%7D%0A

move tostring below getters/setters