![JAR search and dependency download from the Maven repository](/logo.png)
com.fincatto.documentofiscal.cte300.classes.nota.CTeNotaInfoIdentificacaoTomadorServico3 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nfe Show documentation
Show all versions of nfe Show documentation
Biblioteca de comunicacao de nota fiscal eletronica brasileira
package com.fincatto.documentofiscal.cte300.classes.nota;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Namespace;
import org.simpleframework.xml.Root;
import com.fincatto.documentofiscal.DFBase;
import com.fincatto.documentofiscal.cte300.classes.CTTomadorServico;
/**
* @author Caio
* @info Indicador do "papel" do tomador do serviço no CT-e
*/
@Root(name = "toma3")
@Namespace(reference = "http://www.portalfiscal.inf.br/cte")
public class CTeNotaInfoIdentificacaoTomadorServico3 extends DFBase {
private static final long serialVersionUID = -5654667720761777310L;
@Element(name = "toma", required = false)
private CTTomadorServico tomadorServico;
public CTeNotaInfoIdentificacaoTomadorServico3(CTTomadorServico tomadorServico) {
setTomadorServico(tomadorServico);
}
public CTeNotaInfoIdentificacaoTomadorServico3() {
this.tomadorServico = null;
}
public CTTomadorServico getTomadorServico() {
return this.tomadorServico;
}
/**
* Tomador do Serviço 0-Remetente; 1-Expedidor; 2-Recebedor; 3-Destinatário Serão utilizadas as informações contidas no respectivo grupo, conforme indicado pelo conteúdo deste campo
*/
public void setTomadorServico(final CTTomadorServico tomadorServico) {
if (!CTTomadorServico.TOMADOR_3.contains(tomadorServico)) {
throw new IllegalArgumentException("O tomador do servico n\u00e3o \u00e9 v\u00e1lido para este papel");
}
this.tomadorServico = tomadorServico;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy