OrderPlannedSettlementSearchResult.java

package com.tradecloud.dto.order;

import com.tradecloud.domain.common.Currency;
import com.tradecloud.domain.model.organisationalunit.OrganisationalUnit;
import com.tradecloud.domain.model.payment.PaymentMethod;
import com.tradecloud.domain.model.payment.PaymentTerm;
import com.tradecloud.domain.supplier.OrganisationalUnitSupplier;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by ds on 2015/06/08.
 */
@XmlRootElement(name = "OrderPlannedSettlementDTO")
@XmlAccessorType(XmlAccessType.FIELD)
public class OrderPlannedSettlementSearchResult extends OrderSearchResult  {

    private String orderReference;
    private String shippingReference;
    private String shipmentReference;
    @XmlElement(name = "OrganisationalUnit")
    private OrganisationalUnit organisationalUnit;
    @XmlElement(name = "Supplier")
    private OrganisationalUnitSupplier supplier;
    private PaymentTerm paymentTerm;
    private PaymentMethod paymentMethod;
    private BigDecimal plannedSettlementAmount;
    private Currency currency;
    private BigDecimal percentage;
    private BigDecimal forwardRate;
    private Date settlementDate;
    private BigDecimal paymentAmount;
    private BigDecimal balance;
    private Date paymentDate;
    private String paidInFull;
    private String orderComments;
    private String paymentReference;
    private String nominatedBank;

    @Override
    public String getOrderReference() {
        return orderReference;
    }

    @Override
    public void setOrderReference(String orderReference) {
        this.orderReference = orderReference;
    }

    @Override
    public String getShippingReference() {
        return shippingReference;
    }

    @Override
    public void setShippingReference(String shippingReference) {
        this.shippingReference = shippingReference;
    }

    @Override
    public OrganisationalUnit getOrganisationalUnit() {
        return organisationalUnit;
    }

    @Override
    public void setOrganisationalUnit(OrganisationalUnit organisationalUnit) {
        this.organisationalUnit = organisationalUnit;
    }

    @Override
    public OrganisationalUnitSupplier getSupplier() {
        return supplier;
    }

    @Override
    public void setSupplier(OrganisationalUnitSupplier supplier) {
        this.supplier = supplier;
    }

    public PaymentTerm getPaymentTerm() {
        return paymentTerm;
    }

    public void setPaymentTerm(PaymentTerm paymentTerm) {
        this.paymentTerm = paymentTerm;
    }

    public PaymentMethod getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(PaymentMethod paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    public BigDecimal getPlannedSettlementAmount() {
        return plannedSettlementAmount;
    }

    public void setPlannedSettlementAmount(BigDecimal plannedSettlementAmount) {
        this.plannedSettlementAmount = plannedSettlementAmount;
    }

    public Currency getCurrency() {
        return currency;
    }

    public void setCurrency(Currency currency) {
        this.currency = currency;
    }

    public BigDecimal getPercentage() {
        return percentage;
    }

    public void setPercentage(BigDecimal percentage) {
        this.percentage = percentage;
    }

    public BigDecimal getForwardRate() {
        return forwardRate;
    }

    public void setForwardRate(BigDecimal forwardRate) {
        this.forwardRate = forwardRate;
    }

    public Date getSettlementDate() {
        return settlementDate;
    }

    public void setSettlementDate(Date settlementDate) {
        this.settlementDate = settlementDate;
    }

    public BigDecimal getPaymentAmount() {
        return paymentAmount;
    }

    public void setPaymentAmount(BigDecimal paymentAmount) {
        this.paymentAmount = paymentAmount;
    }

    public Date getPaymentDate() {
        return paymentDate;
    }

    public void setPaymentDate(Date paymentDate) {
        this.paymentDate = paymentDate;
    }

    public String getPaidInFull() {
        return paidInFull;
    }

    public void setPaidInFull(String paidInFull) {
        this.paidInFull = paidInFull;
    }

    public String getOrderComments() {
        return orderComments;
    }

    public void setOrderComments(String orderComments) {
        this.orderComments = orderComments;
    }

    public String getNominatedBank() {
        return nominatedBank;
    }

    public void setNominatedBank(String nominatedBank) {
        this.nominatedBank = nominatedBank;
    }

    @Override
    public String toString() {
        return "OrderPlannedSettlementSearchResult{" +
                "orderReference='" + orderReference + '\'' +
                ", shippingReference='" + shippingReference + '\'' +
                ", organisationalUnit=" + organisationalUnit +
                ", supplier=" + supplier +
                ", paymentTerm=" + paymentTerm +
                ", paymentMethod=" + paymentMethod +
                ", plannedSettlementAmount=" + plannedSettlementAmount +
                ", currency=" + currency +
                ", percentage=" + percentage +
                ", forwardRate=" + forwardRate +
                ", settlementDate=" + settlementDate +
                ", paymentAmount=" + paymentAmount +
                ", paymentDate=" + paymentDate +
                ", paidInFull='" + paidInFull + '\'' +
                ", orderComments='" + orderComments + '\'' +
                '}';
    }

    public String getPaymentReference() {
        return paymentReference;
    }

    public void setPaymentReference(String paymentReference) {
        this.paymentReference = paymentReference;
    }

    public String getShipmentReference() {
        return shipmentReference;
    }

    public void setShipmentReference(String shipmentReference) {
        this.shipmentReference = shipmentReference;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }
}