CustomsDeclarationCostedValues.java

package com.tradecloud.domain.shipment.clearing;

import com.tradecloud.common.base.PersistenceBase;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlTransient;
import java.math.BigDecimal;

@Entity
public class CustomsDeclarationCostedValues extends PersistenceBase {

    private BigDecimal amountDue;
    private BigDecimal penaltiesDue;
    private BigDecimal customsVat;
    private BigDecimal customsDuty;
    private BigDecimal customsTotal;
    private BigDecimal schedule1P2;
    private BigDecimal cif;
    @XmlTransient
    @Enumerated(EnumType.STRING)
    @NotNull
    private Type type;
    private Integer version;

    public enum Type {
        BEFORE_CORRECTION, AFTER_CORRECTION;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public BigDecimal getAmountDue() {
        return amountDue;
    }

    public void setAmountDue(BigDecimal amountDue) {
        this.amountDue = amountDue;
    }

    public BigDecimal getPenaltiesDue() {
        return penaltiesDue;
    }

    public void setPenaltiesDue(BigDecimal penaltiesDue) {
        this.penaltiesDue = penaltiesDue;
    }

    public BigDecimal getCustomsVat() {
        return customsVat;
    }

    public void setCustomsVat(BigDecimal customsVat) {
        this.customsVat = customsVat;
    }

    public BigDecimal getCustomsDuty() {
        return customsDuty;
    }

    public void setCustomsDuty(BigDecimal customsDuty) {
        this.customsDuty = customsDuty;
    }

    public BigDecimal getCustomsTotal() {
        return customsTotal;
    }

    public void setCustomsTotal(BigDecimal customsTotal) {
        this.customsTotal = customsTotal;
    }

    public BigDecimal getSchedule1P2() {
        return schedule1P2;
    }

    public void setSchedule1P2(BigDecimal schedule1P2) {
        this.schedule1P2 = schedule1P2;
    }

    public BigDecimal getCif() {
        return cif;
    }

    public void setCif(BigDecimal cif) {
        this.cif = cif;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}