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

com.fincatto.documentofiscal.mdfe3.classes.nota.evento.MDFeEnviaEventoPagamento Maven / Gradle / Ivy

There is a newer version: 4.0.78
Show newest version
package com.fincatto.documentofiscal.mdfe3.classes.nota.evento;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Namespace;
import org.simpleframework.xml.Root;

import com.fincatto.documentofiscal.DFBase;
import com.fincatto.documentofiscal.mdfe3.classes.nota.MDFInfoModalRodoviarioInfPag;
import com.fincatto.documentofiscal.mdfe3.classes.nota.MDFInfoModalRodoviarioInfViagens;
import com.fincatto.documentofiscal.validadores.DFStringValidador;
import java.util.List;
import org.simpleframework.xml.ElementList;

/**
 * No manual o nome da tag root é evPagtoMDFe, mas no xsd está evPagtoOperMDFe.
 * Verificar se vai haver uma correção no futuro.
 * Created by Edivaldo Merlo Stens on 29/06/20.
 */
@Root(name = "evPagtoOperMDFe")
@Namespace(reference = "http://www.portalfiscal.inf.br/mdfe")
public class MDFeEnviaEventoPagamento extends DFBase {

    private static final long serialVersionUID = -6894944230355205787L;

    @Element(name = "descEvento")
    private String descricaoEvento = "Pagamento Operação MDF-e";

    @Element(name = "nProt")
    private String nProt;

    @ElementList(entry = "infViagens", inline = true, required = true)
    protected List infViagens;

    @ElementList(entry = "infPag", inline = true, required = true)
    protected List infPag;

    public void setDescricaoEvento(final String descricaoEvento) {
        final String defaultValue = "Pagamento Operação MDF-e";
        DFStringValidador.equals(defaultValue, descricaoEvento);
        this.descricaoEvento = descricaoEvento;
    }

    public String getDescricaoEvento() {
        return this.descricaoEvento;
    }

    public String getNProt() {
        return nProt;
    }

    public void setNProt(String nProt) {
        this.nProt = nProt;
    }

    public List getInfViagens() {
        return infViagens;
    }

    public void setInfViagens(List infViagens) {
        this.infViagens = infViagens;
    }

    public List getInfPag() {
        return infPag;
    }

    public void setInfPag(List infPag) {
        this.infPag = infPag;
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy