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

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

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

import com.fincatto.documentofiscal.DFBase;
import com.fincatto.documentofiscal.cte200.classes.CTTipoEntregaHorario;
import org.simpleframework.xml.Element;

import java.time.LocalTime;

public class CTInfoEntregaComHora extends DFBase {
    private static final long serialVersionUID = 6042838442221064469L;

    @Element(name = "tpHor")
    private CTTipoEntregaHorario tipoHorario;

    @Element(name = "hProg")
    private LocalTime horarioProgramado;

    public LocalTime getHorarioProgramado() {
        return this.horarioProgramado;
    }

    public void setHorarioProgramado(final LocalTime horarioProgramado) {
        this.horarioProgramado = horarioProgramado;
    }

    public CTTipoEntregaHorario getTipoHorario() {
        return this.tipoHorario;
    }

    public void setTipoHorario(final CTTipoEntregaHorario tipoHorario) {
        if (!CTTipoEntregaHorario.COM_HORARIO.contains(tipoHorario)) {
            throw new IllegalArgumentException("O tipo de per\u00edodo programado para entrega deve ser com horario");
        }
        this.tipoHorario = tipoHorario;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy