All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fincatto.documentofiscal.cte200.classes.cte.CTInfoEntregaComData Maven / Gradle / Ivy

There is a newer version: 4.0.78
Show newest version
package com.fincatto.documentofiscal.cte200.classes.cte;

import java.time.LocalDate;
import org.simpleframework.xml.Element;

import com.fincatto.documentofiscal.DFBase;
import com.fincatto.documentofiscal.cte200.classes.CTTipoEntregaData;

public class CTInfoEntregaComData extends DFBase {
    private static final long serialVersionUID = 7236218662791375431L;

    @Element(name = "tpPer")
    private CTTipoEntregaData tipoPeriodo;

    @Element(name = "dProg")
    private LocalDate dataProgramada;

    public LocalDate getDataProgramada() {
        return this.dataProgramada;
    }

    public void setDataProgramada(final LocalDate dataProgramada) {
        this.dataProgramada = dataProgramada;
    }

    public CTTipoEntregaData getTipoPeriodo() {
        return this.tipoPeriodo;
    }

    public void setTipoPeriodo(final CTTipoEntregaData tipoPeriodo) {
        if (!CTTipoEntregaData.COM_DATA.contains(tipoPeriodo)) {
            throw new IllegalArgumentException("O tipo de per\u00edodo programado para entrega deve ser com data");
        }
        this.tipoPeriodo = tipoPeriodo;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy