br.com.swconsultoria.nfe.schema.envConfRecebto.TretEvento Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-nfe Show documentation
Show all versions of java-nfe Show documentation
Api java para consumo do webService de nota fiscal eletronica
package br.com.swconsultoria.nfe.schema.envConfRecebto;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* Tipo retorno do Evento
*
* Classe Java de TretEvento complex type.
*
*
O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe.
*
*
* <complexType name="TretEvento">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="infEvento">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
* <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
* <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
* <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
* <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
* <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
* <element name="tpEvento" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <whiteSpace value="preserve"/>
* <pattern value="[0-9]{6}"/>
* </restriction>
* </simpleType>
* </element>
* <element name="xEvento" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
* <minLength value="5"/>
* <maxLength value="60"/>
* </restriction>
* </simpleType>
* </element>
* <element name="nSeqEvento" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <whiteSpace value="preserve"/>
* <pattern value="[0-9]{1,2}"/>
* </restriction>
* </simpleType>
* </element>
* <choice minOccurs="0">
* <element name="CNPJDest" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
* <element name="CPFDest" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
* </choice>
* <element name="emailDest" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
* <minLength value="1"/>
* <maxLength value="60"/>
* </restriction>
* </simpleType>
* </element>
* <element name="dhRegEvento">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <whiteSpace value="preserve"/>
* <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-3]:00"/>
* </restriction>
* </simpleType>
* </element>
* <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
* </sequence>
* <attribute name="Id">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
* <pattern value="ID[0-9]{15}"/>
* </restriction>
* </simpleType>
* </attribute>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
* </sequence>
* <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TretEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = {
"infEvento",
"signature"
})
public class TretEvento {
@XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
protected TretEvento.InfEvento infEvento;
@XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#")
protected SignatureType signature;
@XmlAttribute(name = "versao", required = true)
protected String versao;
/**
* Obtém o valor da propriedade infEvento.
*
* @return
* possible object is
* {@link TretEvento.InfEvento }
*
*/
public TretEvento.InfEvento getInfEvento() {
return infEvento;
}
/**
* Define o valor da propriedade infEvento.
*
* @param value
* allowed object is
* {@link TretEvento.InfEvento }
*
*/
public void setInfEvento(TretEvento.InfEvento value) {
this.infEvento = value;
}
/**
* Obtém o valor da propriedade signature.
*
* @return
* possible object is
* {@link SignatureType }
*
*/
public SignatureType getSignature() {
return signature;
}
/**
* Define o valor da propriedade signature.
*
* @param value
* allowed object is
* {@link SignatureType }
*
*/
public void setSignature(SignatureType value) {
this.signature = value;
}
/**
* Obtém o valor da propriedade versao.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVersao() {
return versao;
}
/**
* Define o valor da propriedade versao.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVersao(String value) {
this.versao = value;
}
/**
* Classe Java de anonymous complex type.
*
*
O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/>
* <element name="verAplic" type="{http://www.portalfiscal.inf.br/nfe}TVerAplic"/>
* <element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/>
* <element name="cStat" type="{http://www.portalfiscal.inf.br/nfe}TStat"/>
* <element name="xMotivo" type="{http://www.portalfiscal.inf.br/nfe}TMotivo"/>
* <element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe" minOccurs="0"/>
* <element name="tpEvento" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <whiteSpace value="preserve"/>
* <pattern value="[0-9]{6}"/>
* </restriction>
* </simpleType>
* </element>
* <element name="xEvento" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
* <minLength value="5"/>
* <maxLength value="60"/>
* </restriction>
* </simpleType>
* </element>
* <element name="nSeqEvento" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <whiteSpace value="preserve"/>
* <pattern value="[0-9]{1,2}"/>
* </restriction>
* </simpleType>
* </element>
* <choice minOccurs="0">
* <element name="CNPJDest" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/>
* <element name="CPFDest" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/>
* </choice>
* <element name="emailDest" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.portalfiscal.inf.br/nfe}TString">
* <minLength value="1"/>
* <maxLength value="60"/>
* </restriction>
* </simpleType>
* </element>
* <element name="dhRegEvento">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <whiteSpace value="preserve"/>
* <pattern value="(((20(([02468][048])|([13579][26]))-02-29))|(20[0-9][0-9])-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))T(20|21|22|23|[0-1]\d):[0-5]\d:[0-5]\d-0[1-3]:00"/>
* </restriction>
* </simpleType>
* </element>
* <element name="nProt" type="{http://www.portalfiscal.inf.br/nfe}TProt" minOccurs="0"/>
* </sequence>
* <attribute name="Id">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
* <pattern value="ID[0-9]{15}"/>
* </restriction>
* </simpleType>
* </attribute>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"tpAmb",
"verAplic",
"cOrgao",
"cStat",
"xMotivo",
"chNFe",
"tpEvento",
"xEvento",
"nSeqEvento",
"cnpjDest",
"cpfDest",
"emailDest",
"dhRegEvento",
"nProt"
})
public static class InfEvento {
@XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
protected String tpAmb;
@XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
protected String verAplic;
@XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
protected String cOrgao;
@XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
protected String cStat;
@XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
protected String xMotivo;
@XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe")
protected String chNFe;
@XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe")
protected String tpEvento;
@XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe")
protected String xEvento;
@XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe")
protected String nSeqEvento;
@XmlElement(name = "CNPJDest", namespace = "http://www.portalfiscal.inf.br/nfe")
protected String cnpjDest;
@XmlElement(name = "CPFDest", namespace = "http://www.portalfiscal.inf.br/nfe")
protected String cpfDest;
@XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe")
protected String emailDest;
@XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
protected String dhRegEvento;
@XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe")
protected String nProt;
@XmlAttribute(name = "Id")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
protected String id;
/**
* Obtém o valor da propriedade tpAmb.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTpAmb() {
return tpAmb;
}
/**
* Define o valor da propriedade tpAmb.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTpAmb(String value) {
this.tpAmb = value;
}
/**
* Obtém o valor da propriedade verAplic.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVerAplic() {
return verAplic;
}
/**
* Define o valor da propriedade verAplic.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVerAplic(String value) {
this.verAplic = value;
}
/**
* Obtém o valor da propriedade cOrgao.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCOrgao() {
return cOrgao;
}
/**
* Define o valor da propriedade cOrgao.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCOrgao(String value) {
this.cOrgao = value;
}
/**
* Obtém o valor da propriedade cStat.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCStat() {
return cStat;
}
/**
* Define o valor da propriedade cStat.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCStat(String value) {
this.cStat = value;
}
/**
* Obtém o valor da propriedade xMotivo.
*
* @return
* possible object is
* {@link String }
*
*/
public String getXMotivo() {
return xMotivo;
}
/**
* Define o valor da propriedade xMotivo.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setXMotivo(String value) {
this.xMotivo = value;
}
/**
* Obtém o valor da propriedade chNFe.
*
* @return
* possible object is
* {@link String }
*
*/
public String getChNFe() {
return chNFe;
}
/**
* Define o valor da propriedade chNFe.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setChNFe(String value) {
this.chNFe = value;
}
/**
* Obtém o valor da propriedade tpEvento.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTpEvento() {
return tpEvento;
}
/**
* Define o valor da propriedade tpEvento.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTpEvento(String value) {
this.tpEvento = value;
}
/**
* Obtém o valor da propriedade xEvento.
*
* @return
* possible object is
* {@link String }
*
*/
public String getXEvento() {
return xEvento;
}
/**
* Define o valor da propriedade xEvento.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setXEvento(String value) {
this.xEvento = value;
}
/**
* Obtém o valor da propriedade nSeqEvento.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNSeqEvento() {
return nSeqEvento;
}
/**
* Define o valor da propriedade nSeqEvento.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNSeqEvento(String value) {
this.nSeqEvento = value;
}
/**
* Obtém o valor da propriedade cnpjDest.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCNPJDest() {
return cnpjDest;
}
/**
* Define o valor da propriedade cnpjDest.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCNPJDest(String value) {
this.cnpjDest = value;
}
/**
* Obtém o valor da propriedade cpfDest.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCPFDest() {
return cpfDest;
}
/**
* Define o valor da propriedade cpfDest.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCPFDest(String value) {
this.cpfDest = value;
}
/**
* Obtém o valor da propriedade emailDest.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEmailDest() {
return emailDest;
}
/**
* Define o valor da propriedade emailDest.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEmailDest(String value) {
this.emailDest = value;
}
/**
* Obtém o valor da propriedade dhRegEvento.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDhRegEvento() {
return dhRegEvento;
}
/**
* Define o valor da propriedade dhRegEvento.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDhRegEvento(String value) {
this.dhRegEvento = value;
}
/**
* Obtém o valor da propriedade nProt.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNProt() {
return nProt;
}
/**
* Define o valor da propriedade nProt.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNProt(String value) {
this.nProt = value;
}
/**
* Obtém o valor da propriedade id.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Define o valor da propriedade id.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
}
}