diff --git a/src/br/inf/portalfiscal/bpe/EvNaoEmbBPe.java b/src/br/inf/portalfiscal/bpe/EvNaoEmbBPe.java new file mode 100644 index 000000000..73549c47e --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/EvNaoEmbBPe.java @@ -0,0 +1,134 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.29 às 06:11:44 PM BRT +// + + +package br.inf.portalfiscal.bpe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

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="descEvento">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <enumeration value="Não Embarque"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="nProt" type="{http://www.portalfiscal.inf.br/bpe}TProt"/>
+ *         <element name="xJust" type="{http://www.portalfiscal.inf.br/bpe}TJust"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "descEvento", + "nProt", + "xJust" +}) +@XmlRootElement(name = "evNaoEmbBPe") +public class EvNaoEmbBPe { + + @XmlElement(required = true) + protected String descEvento; + @XmlElement(required = true) + protected String nProt; + @XmlElement(required = true) + protected String xJust; + + /** + * Obtém o valor da propriedade descEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescEvento() { + return descEvento; + } + + /** + * Define o valor da propriedade descEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescEvento(String value) { + this.descEvento = 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 xJust. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXJust() { + return xJust; + } + + /** + * Define o valor da propriedade xJust. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXJust(String value) { + this.xJust = value; + } + +} diff --git a/src/br/inf/portalfiscal/bpe/ObjectFactory.java b/src/br/inf/portalfiscal/bpe/ObjectFactory.java new file mode 100644 index 000000000..0f128f923 --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/ObjectFactory.java @@ -0,0 +1,316 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package br.inf.portalfiscal.bpe; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the br.inf.portalfiscal.bpe package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _RetBPe_QNAME = new QName("http://www.portalfiscal.inf.br/bpe", "retBPe"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.inf.portalfiscal.bpe + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link TImp } + * + */ + public TImp createTImp() { + return new TImp(); + } + + /** + * Create an instance of {@link TProtBPe } + * + */ + public TProtBPe createTProtBPe() { + return new TProtBPe(); + } + + /** + * Create an instance of {@link TBPe } + * + */ + public TBPe createTBPe() { + return new TBPe(); + } + + /** + * Create an instance of {@link TBPe.InfBPe } + * + */ + public TBPe.InfBPe createTBPeInfBPe() { + return new TBPe.InfBPe(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.Pag } + * + */ + public TBPe.InfBPe.Pag createTBPeInfBPePag() { + return new TBPe.InfBPe.Pag(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.Imp } + * + */ + public TBPe.InfBPe.Imp createTBPeInfBPeImp() { + return new TBPe.InfBPe.Imp(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.InfValorBPe } + * + */ + public TBPe.InfBPe.InfValorBPe createTBPeInfBPeInfValorBPe() { + return new TBPe.InfBPe.InfValorBPe(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.InfViagem } + * + */ + public TBPe.InfBPe.InfViagem createTBPeInfBPeInfViagem() { + return new TBPe.InfBPe.InfViagem(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.InfPassagem } + * + */ + public TBPe.InfBPe.InfPassagem createTBPeInfBPeInfPassagem() { + return new TBPe.InfBPe.InfPassagem(); + } + + /** + * Create an instance of {@link TRetBPe } + * + */ + public TRetBPe createTRetBPe() { + return new TRetBPe(); + } + + /** + * Create an instance of {@link TEnviBPe } + * + */ + public TEnviBPe createTEnviBPe() { + return new TEnviBPe(); + } + + /** + * Create an instance of {@link TEndereco } + * + */ + public TEndereco createTEndereco() { + return new TEndereco(); + } + + /** + * Create an instance of {@link TEndeEmi } + * + */ + public TEndeEmi createTEndeEmi() { + return new TEndeEmi(); + } + + /** + * Create an instance of {@link TImp.ICMS00 } + * + */ + public TImp.ICMS00 createTImpICMS00() { + return new TImp.ICMS00(); + } + + /** + * Create an instance of {@link TImp.ICMS20 } + * + */ + public TImp.ICMS20 createTImpICMS20() { + return new TImp.ICMS20(); + } + + /** + * Create an instance of {@link TImp.ICMS45 } + * + */ + public TImp.ICMS45 createTImpICMS45() { + return new TImp.ICMS45(); + } + + /** + * Create an instance of {@link TImp.ICMS90 } + * + */ + public TImp.ICMS90 createTImpICMS90() { + return new TImp.ICMS90(); + } + + /** + * Create an instance of {@link TImp.ICMSOutraUF } + * + */ + public TImp.ICMSOutraUF createTImpICMSOutraUF() { + return new TImp.ICMSOutraUF(); + } + + /** + * Create an instance of {@link TImp.ICMSSN } + * + */ + public TImp.ICMSSN createTImpICMSSN() { + return new TImp.ICMSSN(); + } + + /** + * Create an instance of {@link TProtBPe.InfProt } + * + */ + public TProtBPe.InfProt createTProtBPeInfProt() { + return new TProtBPe.InfProt(); + } + + /** + * Create an instance of {@link TBPe.InfBPeSupl } + * + */ + public TBPe.InfBPeSupl createTBPeInfBPeSupl() { + return new TBPe.InfBPeSupl(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.Ide } + * + */ + public TBPe.InfBPe.Ide createTBPeInfBPeIde() { + return new TBPe.InfBPe.Ide(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.Emit } + * + */ + public TBPe.InfBPe.Emit createTBPeInfBPeEmit() { + return new TBPe.InfBPe.Emit(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.Comp } + * + */ + public TBPe.InfBPe.Comp createTBPeInfBPeComp() { + return new TBPe.InfBPe.Comp(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.Agencia } + * + */ + public TBPe.InfBPe.Agencia createTBPeInfBPeAgencia() { + return new TBPe.InfBPe.Agencia(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.InfBPeSub } + * + */ + public TBPe.InfBPe.InfBPeSub createTBPeInfBPeInfBPeSub() { + return new TBPe.InfBPe.InfBPeSub(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.AutXML } + * + */ + public TBPe.InfBPe.AutXML createTBPeInfBPeAutXML() { + return new TBPe.InfBPe.AutXML(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.InfAdic } + * + */ + public TBPe.InfBPe.InfAdic createTBPeInfBPeInfAdic() { + return new TBPe.InfBPe.InfAdic(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.Pag.Card } + * + */ + public TBPe.InfBPe.Pag.Card createTBPeInfBPePagCard() { + return new TBPe.InfBPe.Pag.Card(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.Imp.ICMSUFFim } + * + */ + public TBPe.InfBPe.Imp.ICMSUFFim createTBPeInfBPeImpICMSUFFim() { + return new TBPe.InfBPe.Imp.ICMSUFFim(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.InfValorBPe.Comp } + * + */ + public TBPe.InfBPe.InfValorBPe.Comp createTBPeInfBPeInfValorBPeComp() { + return new TBPe.InfBPe.InfValorBPe.Comp(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.InfViagem.InfTravessia } + * + */ + public TBPe.InfBPe.InfViagem.InfTravessia createTBPeInfBPeInfViagemInfTravessia() { + return new TBPe.InfBPe.InfViagem.InfTravessia(); + } + + /** + * Create an instance of {@link TBPe.InfBPe.InfPassagem.InfPassageiro } + * + */ + public TBPe.InfBPe.InfPassagem.InfPassageiro createTBPeInfBPeInfPassagemInfPassageiro() { + return new TBPe.InfBPe.InfPassagem.InfPassageiro(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TRetBPe }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/bpe", name = "retBPe") + public JAXBElement createRetBPe(TRetBPe value) { + return new JAXBElement(_RetBPe_QNAME, TRetBPe.class, null, value); + } + +} diff --git a/src/br/inf/portalfiscal/bpe/TBPe.java b/src/br/inf/portalfiscal/bpe/TBPe.java new file mode 100644 index 000000000..1b2e86502 --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/TBPe.java @@ -0,0 +1,6042 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.10.23 às 04:19:56 PM BRST +// + + +package br.inf.portalfiscal.bpe; + +import java.util.ArrayList; +import java.util.List; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo Bilhete de Passagem Eletrônico + * + *

Classe Java de TBPe complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TBPe">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infBPe">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="ide">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="cUF" type="{http://www.portalfiscal.inf.br/bpe}TCodUfIBGE"/>
+ *                             <element name="tpAmb" type="{http://www.portalfiscal.inf.br/bpe}TAmb"/>
+ *                             <element name="mod" type="{http://www.portalfiscal.inf.br/bpe}TModBPe"/>
+ *                             <element name="serie">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TSerie">
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="nBP" type="{http://www.portalfiscal.inf.br/bpe}TNF"/>
+ *                             <element name="cBP">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <pattern value="[0-9]{8}"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="cDV">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <pattern value="[0-9]{1}"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="modal">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TModal">
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="dhEmi" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+ *                             <element name="tpEmis">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <enumeration value="1"/>
+ *                                   <enumeration value="2"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="verProc">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                   <minLength value="1"/>
+ *                                   <maxLength value="20"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="tpBPe">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TTipoBPe">
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="indPres" type="{http://www.portalfiscal.inf.br/bpe}TIndPres"/>
+ *                             <element name="UFIni" type="{http://www.portalfiscal.inf.br/bpe}TUf_sem_EX"/>
+ *                             <element name="cMunIni" type="{http://www.portalfiscal.inf.br/bpe}TCodMunIBGE"/>
+ *                             <element name="UFFim" type="{http://www.portalfiscal.inf.br/bpe}TUf"/>
+ *                             <element name="cMunFim" type="{http://www.portalfiscal.inf.br/bpe}TCodMunIBGE"/>
+ *                             <sequence minOccurs="0">
+ *                               <element name="dhCont" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+ *                               <element name="xJust">
+ *                                 <simpleType>
+ *                                   <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                     <minLength value="15"/>
+ *                                     <maxLength value="256"/>
+ *                                   </restriction>
+ *                                 </simpleType>
+ *                               </element>
+ *                             </sequence>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                   <element name="emit">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpj"/>
+ *                             <element name="IE">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TIe">
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="IEST" minOccurs="0">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TIe">
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="xNome">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                   <maxLength value="60"/>
+ *                                   <minLength value="2"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="xFant" minOccurs="0">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                   <maxLength value="60"/>
+ *                                   <minLength value="1"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <sequence minOccurs="0">
+ *                               <element name="IM">
+ *                                 <simpleType>
+ *                                   <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                     <minLength value="1"/>
+ *                                     <maxLength value="15"/>
+ *                                   </restriction>
+ *                                 </simpleType>
+ *                               </element>
+ *                               <element name="CNAE">
+ *                                 <simpleType>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                     <whiteSpace value="preserve"/>
+ *                                     <pattern value="[0-9]{7}"/>
+ *                                   </restriction>
+ *                                 </simpleType>
+ *                               </element>
+ *                             </sequence>
+ *                             <element name="CRT">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <enumeration value="1"/>
+ *                                   <enumeration value="2"/>
+ *                                   <enumeration value="3"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="enderEmit" type="{http://www.portalfiscal.inf.br/bpe}TEndeEmi"/>
+ *                             <element name="TAR" minOccurs="0">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <minLength value="1"/>
+ *                                   <maxLength value="20"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                   <element name="comp" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="xNome">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                   <maxLength value="60"/>
+ *                                   <minLength value="2"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <choice>
+ *                               <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpjOpc"/>
+ *                               <element name="CPF" type="{http://www.portalfiscal.inf.br/bpe}TCpf"/>
+ *                               <element name="idEstrangeiro">
+ *                                 <simpleType>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                     <whiteSpace value="preserve"/>
+ *                                     <pattern value="([!-ÿ]{0}|[!-ÿ]{5,20})?"/>
+ *                                   </restriction>
+ *                                 </simpleType>
+ *                               </element>
+ *                             </choice>
+ *                             <element name="IE" minOccurs="0">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TIeDest">
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="enderComp" type="{http://www.portalfiscal.inf.br/bpe}TEndereco"/>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                   <element name="agencia" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="xNome">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                   <maxLength value="60"/>
+ *                                   <minLength value="2"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpjOpc"/>
+ *                             <element name="enderAgencia" type="{http://www.portalfiscal.inf.br/bpe}TEndereco"/>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                   <element name="infBPeSub" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="chBPe" type="{http://www.portalfiscal.inf.br/bpe}TChDFe"/>
+ *                             <element name="tpSub" type="{http://www.portalfiscal.inf.br/bpe}TTipoSubstituicao"/>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                   <element name="infPassagem">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="cLocOrig">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <minLength value="1"/>
+ *                                   <maxLength value="7"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="xLocOrig">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                   <maxLength value="60"/>
+ *                                   <minLength value="2"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="cLocDest">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <minLength value="1"/>
+ *                                   <maxLength value="7"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="xLocDest">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                   <maxLength value="60"/>
+ *                                   <minLength value="2"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="dhEmb" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+ *                             <element name="infPassageiro" minOccurs="0">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <sequence>
+ *                                       <element name="xNome">
+ *                                         <simpleType>
+ *                                           <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                             <maxLength value="60"/>
+ *                                             <minLength value="2"/>
+ *                                           </restriction>
+ *                                         </simpleType>
+ *                                       </element>
+ *                                       <element name="CPF" type="{http://www.portalfiscal.inf.br/bpe}TCpf" minOccurs="0"/>
+ *                                       <element name="tpDoc" type="{http://www.portalfiscal.inf.br/bpe}TDoc"/>
+ *                                       <element name="nDoc">
+ *                                         <simpleType>
+ *                                           <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                             <minLength value="2"/>
+ *                                             <maxLength value="20"/>
+ *                                           </restriction>
+ *                                         </simpleType>
+ *                                       </element>
+ *                                       <element name="dNasc" minOccurs="0">
+ *                                         <simpleType>
+ *                                           <restriction base="{http://www.portalfiscal.inf.br/bpe}TData">
+ *                                           </restriction>
+ *                                         </simpleType>
+ *                                       </element>
+ *                                       <element name="fone" minOccurs="0">
+ *                                         <simpleType>
+ *                                           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                             <whiteSpace value="preserve"/>
+ *                                             <pattern value="[0-9]{7,12}"/>
+ *                                           </restriction>
+ *                                         </simpleType>
+ *                                       </element>
+ *                                       <element name="email" type="{http://www.portalfiscal.inf.br/bpe}TEmail" minOccurs="0"/>
+ *                                     </sequence>
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                   <element name="infViagem" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="cPercurso">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <minLength value="1"/>
+ *                                   <maxLength value="20"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="xPercurso">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                   <maxLength value="100"/>
+ *                                   <minLength value="2"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="tpViagem">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <enumeration value="00"/>
+ *                                   <enumeration value="01"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="tpServ">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <enumeration value="1"/>
+ *                                   <enumeration value="2"/>
+ *                                   <enumeration value="3"/>
+ *                                   <enumeration value="4"/>
+ *                                   <enumeration value="5"/>
+ *                                   <enumeration value="6"/>
+ *                                   <enumeration value="7"/>
+ *                                   <enumeration value="8"/>
+ *                                   <enumeration value="9"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="tpAcomodacao">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <enumeration value="1"/>
+ *                                   <enumeration value="2"/>
+ *                                   <enumeration value="3"/>
+ *                                   <enumeration value="4"/>
+ *                                   <enumeration value="5"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="tpTrecho">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <enumeration value="1"/>
+ *                                   <enumeration value="2"/>
+ *                                   <enumeration value="3"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="dhViagem" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+ *                             <element name="dhConexao" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC" minOccurs="0"/>
+ *                             <element name="prefixo" minOccurs="0">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <minLength value="1"/>
+ *                                   <maxLength value="20"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="poltrona" minOccurs="0">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <minLength value="1"/>
+ *                                   <maxLength value="3"/>
+ *                                   <pattern value="0|[1-9]{1}[0-9]{0,2}"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="plataforma" minOccurs="0">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                   <maxLength value="10"/>
+ *                                   <minLength value="2"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="infTravessia" minOccurs="0">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <sequence>
+ *                                       <element name="tpVeiculo">
+ *                                         <simpleType>
+ *                                           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                             <whiteSpace value="preserve"/>
+ *                                             <enumeration value="01"/>
+ *                                             <enumeration value="02"/>
+ *                                             <enumeration value="03"/>
+ *                                             <enumeration value="04"/>
+ *                                             <enumeration value="05"/>
+ *                                             <enumeration value="06"/>
+ *                                             <enumeration value="07"/>
+ *                                             <enumeration value="08"/>
+ *                                             <enumeration value="09"/>
+ *                                             <enumeration value="10"/>
+ *                                             <enumeration value="11"/>
+ *                                             <enumeration value="12"/>
+ *                                             <enumeration value="13"/>
+ *                                             <enumeration value="14"/>
+ *                                             <enumeration value="15"/>
+ *                                             <enumeration value="16"/>
+ *                                             <enumeration value="17"/>
+ *                                             <enumeration value="18"/>
+ *                                             <enumeration value="19"/>
+ *                                             <enumeration value="20"/>
+ *                                             <enumeration value="21"/>
+ *                                             <enumeration value="22"/>
+ *                                             <enumeration value="23"/>
+ *                                             <enumeration value="24"/>
+ *                                             <enumeration value="25"/>
+ *                                             <enumeration value="26"/>
+ *                                             <enumeration value="27"/>
+ *                                             <enumeration value="28"/>
+ *                                             <enumeration value="29"/>
+ *                                             <enumeration value="99"/>
+ *                                           </restriction>
+ *                                         </simpleType>
+ *                                       </element>
+ *                                       <element name="sitVeiculo">
+ *                                         <simpleType>
+ *                                           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                             <whiteSpace value="preserve"/>
+ *                                             <enumeration value="1"/>
+ *                                             <enumeration value="2"/>
+ *                                             <enumeration value="3"/>
+ *                                           </restriction>
+ *                                         </simpleType>
+ *                                       </element>
+ *                                     </sequence>
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                   <element name="infValorBPe">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="vBP" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                             <element name="vDesconto" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                             <element name="vPgto" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                             <element name="vTroco" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                             <element name="tpDesconto" minOccurs="0">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <enumeration value="01"/>
+ *                                   <enumeration value="02"/>
+ *                                   <enumeration value="03"/>
+ *                                   <enumeration value="04"/>
+ *                                   <enumeration value="05"/>
+ *                                   <enumeration value="06"/>
+ *                                   <enumeration value="07"/>
+ *                                   <enumeration value="08"/>
+ *                                   <enumeration value="09"/>
+ *                                   <enumeration value="10"/>
+ *                                   <enumeration value="99"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="xDesconto" minOccurs="0">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                   <maxLength value="100"/>
+ *                                   <minLength value="2"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="Comp" maxOccurs="unbounded">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <sequence>
+ *                                       <element name="tpComp">
+ *                                         <simpleType>
+ *                                           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                             <whiteSpace value="preserve"/>
+ *                                             <enumeration value="01"/>
+ *                                             <enumeration value="02"/>
+ *                                             <enumeration value="03"/>
+ *                                             <enumeration value="04"/>
+ *                                             <enumeration value="05"/>
+ *                                             <enumeration value="06"/>
+ *                                             <enumeration value="99"/>
+ *                                           </restriction>
+ *                                         </simpleType>
+ *                                       </element>
+ *                                       <element name="vComp" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                                     </sequence>
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                   <element name="imp">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="ICMS" type="{http://www.portalfiscal.inf.br/bpe}TImp"/>
+ *                             <element name="vTotTrib" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302" minOccurs="0"/>
+ *                             <element name="infAdFisco" minOccurs="0">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                   <maxLength value="2000"/>
+ *                                   <minLength value="1"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="ICMSUFFim" minOccurs="0">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <sequence>
+ *                                       <element name="vBCUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                                       <element name="pFCPUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+ *                                       <element name="pICMSUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+ *                                       <element name="pICMSInter" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+ *                                       <element name="pICMSInterPart" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+ *                                       <element name="vFCPUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                                       <element name="vICMSUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                                       <element name="vICMSUFIni" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                                     </sequence>
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                   <element name="pag" maxOccurs="10">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="tPag">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                   <whiteSpace value="preserve"/>
+ *                                   <enumeration value="01"/>
+ *                                   <enumeration value="02"/>
+ *                                   <enumeration value="03"/>
+ *                                   <enumeration value="04"/>
+ *                                   <enumeration value="05"/>
+ *                                   <enumeration value="99"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="vPag" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                             <element name="card" minOccurs="0">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <sequence>
+ *                                       <element name="tpIntegra">
+ *                                         <simpleType>
+ *                                           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                             <whiteSpace value="preserve"/>
+ *                                             <enumeration value="1"/>
+ *                                             <enumeration value="2"/>
+ *                                           </restriction>
+ *                                         </simpleType>
+ *                                       </element>
+ *                                       <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpj" minOccurs="0"/>
+ *                                       <element name="tBand" minOccurs="0">
+ *                                         <simpleType>
+ *                                           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                             <whiteSpace value="preserve"/>
+ *                                             <enumeration value="01"/>
+ *                                             <enumeration value="02"/>
+ *                                             <enumeration value="03"/>
+ *                                             <enumeration value="04"/>
+ *                                             <enumeration value="05"/>
+ *                                             <enumeration value="99"/>
+ *                                           </restriction>
+ *                                         </simpleType>
+ *                                       </element>
+ *                                       <element name="cAut" minOccurs="0">
+ *                                         <simpleType>
+ *                                           <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                             <minLength value="1"/>
+ *                                             <maxLength value="20"/>
+ *                                           </restriction>
+ *                                         </simpleType>
+ *                                       </element>
+ *                                     </sequence>
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                   <element name="autXML" maxOccurs="10" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <choice>
+ *                               <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpj"/>
+ *                               <element name="CPF" type="{http://www.portalfiscal.inf.br/bpe}TCpf"/>
+ *                             </choice>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                   <element name="infAdic" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="infAdFisco" minOccurs="0">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                   <maxLength value="2000"/>
+ *                                   <minLength value="1"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                             <element name="infCpl" minOccurs="0">
+ *                               <simpleType>
+ *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                                   <minLength value="1"/>
+ *                                   <maxLength value="5000"/>
+ *                                 </restriction>
+ *                               </simpleType>
+ *                             </element>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *                 <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/bpe}TVerBPe" />
+ *                 <attribute name="Id" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="BPe[0-9]{44}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="infBPeSupl">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="qrCodBPe">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <minLength value="50"/>
+ *                         <maxLength value="1000"/>
+ *                         <pattern value="((HTTPS?|https?)://.*\?chBPe=[0-9]{44}&tpAmb=[1-2](&sign=[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1})?)"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="boardPassBPe" minOccurs="0">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *                         <minLength value="50"/>
+ *                         <maxLength value="1000"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ + +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TBPe", propOrder = { + "infBPe", + "infBPeSupl" +// "signature" +}) +@XmlRootElement(name = "BPe") +public class TBPe { + + @XmlElement(required = true) + protected TBPe.InfBPe infBPe; + @XmlElement(required = true) + protected TBPe.InfBPeSupl infBPeSupl; +// @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) +// protected SignatureType signature; + + /** + * Obtém o valor da propriedade infBPe. + * + * @return + * possible object is + * {@link TBPe.InfBPe } + * + */ + public TBPe.InfBPe getInfBPe() { + return infBPe; + } + + /** + * Define o valor da propriedade infBPe. + * + * @param value + * allowed object is + * {@link TBPe.InfBPe } + * + */ + public void setInfBPe(TBPe.InfBPe value) { + this.infBPe = value; + } + + /** + * Obtém o valor da propriedade infBPeSupl. + * + * @return + * possible object is + * {@link TBPe.InfBPeSupl } + * + */ + public TBPe.InfBPeSupl getInfBPeSupl() { + return infBPeSupl; + } + + /** + * Define o valor da propriedade infBPeSupl. + * + * @param value + * allowed object is + * {@link TBPe.InfBPeSupl } + * + */ + public void setInfBPeSupl(TBPe.InfBPeSupl value) { + this.infBPeSupl = 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; +// } + + + /** + *

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="ide">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="cUF" type="{http://www.portalfiscal.inf.br/bpe}TCodUfIBGE"/>
+     *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/bpe}TAmb"/>
+     *                   <element name="mod" type="{http://www.portalfiscal.inf.br/bpe}TModBPe"/>
+     *                   <element name="serie">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TSerie">
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="nBP" type="{http://www.portalfiscal.inf.br/bpe}TNF"/>
+     *                   <element name="cBP">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <pattern value="[0-9]{8}"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="cDV">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <pattern value="[0-9]{1}"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="modal">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TModal">
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="dhEmi" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+     *                   <element name="tpEmis">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <enumeration value="1"/>
+     *                         <enumeration value="2"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="verProc">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                         <minLength value="1"/>
+     *                         <maxLength value="20"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="tpBPe">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TTipoBPe">
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="indPres" type="{http://www.portalfiscal.inf.br/bpe}TIndPres"/>
+     *                   <element name="UFIni" type="{http://www.portalfiscal.inf.br/bpe}TUf_sem_EX"/>
+     *                   <element name="cMunIni" type="{http://www.portalfiscal.inf.br/bpe}TCodMunIBGE"/>
+     *                   <element name="UFFim" type="{http://www.portalfiscal.inf.br/bpe}TUf"/>
+     *                   <element name="cMunFim" type="{http://www.portalfiscal.inf.br/bpe}TCodMunIBGE"/>
+     *                   <sequence minOccurs="0">
+     *                     <element name="dhCont" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+     *                     <element name="xJust">
+     *                       <simpleType>
+     *                         <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                           <minLength value="15"/>
+     *                           <maxLength value="256"/>
+     *                         </restriction>
+     *                       </simpleType>
+     *                     </element>
+     *                   </sequence>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *         <element name="emit">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpj"/>
+     *                   <element name="IE">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TIe">
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="IEST" minOccurs="0">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TIe">
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="xNome">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                         <maxLength value="60"/>
+     *                         <minLength value="2"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="xFant" minOccurs="0">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                         <maxLength value="60"/>
+     *                         <minLength value="1"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <sequence minOccurs="0">
+     *                     <element name="IM">
+     *                       <simpleType>
+     *                         <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                           <minLength value="1"/>
+     *                           <maxLength value="15"/>
+     *                         </restriction>
+     *                       </simpleType>
+     *                     </element>
+     *                     <element name="CNAE">
+     *                       <simpleType>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                           <whiteSpace value="preserve"/>
+     *                           <pattern value="[0-9]{7}"/>
+     *                         </restriction>
+     *                       </simpleType>
+     *                     </element>
+     *                   </sequence>
+     *                   <element name="CRT">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <enumeration value="1"/>
+     *                         <enumeration value="2"/>
+     *                         <enumeration value="3"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="enderEmit" type="{http://www.portalfiscal.inf.br/bpe}TEndeEmi"/>
+     *                   <element name="TAR" minOccurs="0">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <minLength value="1"/>
+     *                         <maxLength value="20"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *         <element name="comp" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="xNome">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                         <maxLength value="60"/>
+     *                         <minLength value="2"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <choice>
+     *                     <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpjOpc"/>
+     *                     <element name="CPF" type="{http://www.portalfiscal.inf.br/bpe}TCpf"/>
+     *                     <element name="idEstrangeiro">
+     *                       <simpleType>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                           <whiteSpace value="preserve"/>
+     *                           <pattern value="([!-ÿ]{0}|[!-ÿ]{5,20})?"/>
+     *                         </restriction>
+     *                       </simpleType>
+     *                     </element>
+     *                   </choice>
+     *                   <element name="IE" minOccurs="0">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TIeDest">
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="enderComp" type="{http://www.portalfiscal.inf.br/bpe}TEndereco"/>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *         <element name="agencia" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="xNome">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                         <maxLength value="60"/>
+     *                         <minLength value="2"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpjOpc"/>
+     *                   <element name="enderAgencia" type="{http://www.portalfiscal.inf.br/bpe}TEndereco"/>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *         <element name="infBPeSub" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="chBPe" type="{http://www.portalfiscal.inf.br/bpe}TChDFe"/>
+     *                   <element name="tpSub" type="{http://www.portalfiscal.inf.br/bpe}TTipoSubstituicao"/>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *         <element name="infPassagem">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="cLocOrig">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <minLength value="1"/>
+     *                         <maxLength value="7"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="xLocOrig">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                         <maxLength value="60"/>
+     *                         <minLength value="2"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="cLocDest">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <minLength value="1"/>
+     *                         <maxLength value="7"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="xLocDest">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                         <maxLength value="60"/>
+     *                         <minLength value="2"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="dhEmb" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+     *                   <element name="infPassageiro" minOccurs="0">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <sequence>
+     *                             <element name="xNome">
+     *                               <simpleType>
+     *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                                   <maxLength value="60"/>
+     *                                   <minLength value="2"/>
+     *                                 </restriction>
+     *                               </simpleType>
+     *                             </element>
+     *                             <element name="CPF" type="{http://www.portalfiscal.inf.br/bpe}TCpf" minOccurs="0"/>
+     *                             <element name="tpDoc" type="{http://www.portalfiscal.inf.br/bpe}TDoc"/>
+     *                             <element name="nDoc">
+     *                               <simpleType>
+     *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                                   <minLength value="2"/>
+     *                                   <maxLength value="20"/>
+     *                                 </restriction>
+     *                               </simpleType>
+     *                             </element>
+     *                             <element name="dNasc" minOccurs="0">
+     *                               <simpleType>
+     *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TData">
+     *                                 </restriction>
+     *                               </simpleType>
+     *                             </element>
+     *                             <element name="fone" minOccurs="0">
+     *                               <simpleType>
+     *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                                   <whiteSpace value="preserve"/>
+     *                                   <pattern value="[0-9]{7,12}"/>
+     *                                 </restriction>
+     *                               </simpleType>
+     *                             </element>
+     *                             <element name="email" type="{http://www.portalfiscal.inf.br/bpe}TEmail" minOccurs="0"/>
+     *                           </sequence>
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *         <element name="infViagem" maxOccurs="unbounded">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="cPercurso">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <minLength value="1"/>
+     *                         <maxLength value="20"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="xPercurso">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                         <maxLength value="100"/>
+     *                         <minLength value="2"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="tpViagem">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <enumeration value="00"/>
+     *                         <enumeration value="01"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="tpServ">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <enumeration value="1"/>
+     *                         <enumeration value="2"/>
+     *                         <enumeration value="3"/>
+     *                         <enumeration value="4"/>
+     *                         <enumeration value="5"/>
+     *                         <enumeration value="6"/>
+     *                         <enumeration value="7"/>
+     *                         <enumeration value="8"/>
+     *                         <enumeration value="9"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="tpAcomodacao">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <enumeration value="1"/>
+     *                         <enumeration value="2"/>
+     *                         <enumeration value="3"/>
+     *                         <enumeration value="4"/>
+     *                         <enumeration value="5"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="tpTrecho">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <enumeration value="1"/>
+     *                         <enumeration value="2"/>
+     *                         <enumeration value="3"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="dhViagem" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+     *                   <element name="dhConexao" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC" minOccurs="0"/>
+     *                   <element name="prefixo" minOccurs="0">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <minLength value="1"/>
+     *                         <maxLength value="20"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="poltrona" minOccurs="0">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <minLength value="1"/>
+     *                         <maxLength value="3"/>
+     *                         <pattern value="0|[1-9]{1}[0-9]{0,2}"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="plataforma" minOccurs="0">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                         <maxLength value="10"/>
+     *                         <minLength value="2"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="infTravessia" minOccurs="0">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <sequence>
+     *                             <element name="tpVeiculo">
+     *                               <simpleType>
+     *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                                   <whiteSpace value="preserve"/>
+     *                                   <enumeration value="01"/>
+     *                                   <enumeration value="02"/>
+     *                                   <enumeration value="03"/>
+     *                                   <enumeration value="04"/>
+     *                                   <enumeration value="05"/>
+     *                                   <enumeration value="06"/>
+     *                                   <enumeration value="07"/>
+     *                                   <enumeration value="08"/>
+     *                                   <enumeration value="09"/>
+     *                                   <enumeration value="10"/>
+     *                                   <enumeration value="11"/>
+     *                                   <enumeration value="12"/>
+     *                                   <enumeration value="13"/>
+     *                                   <enumeration value="14"/>
+     *                                   <enumeration value="15"/>
+     *                                   <enumeration value="16"/>
+     *                                   <enumeration value="17"/>
+     *                                   <enumeration value="18"/>
+     *                                   <enumeration value="19"/>
+     *                                   <enumeration value="20"/>
+     *                                   <enumeration value="21"/>
+     *                                   <enumeration value="22"/>
+     *                                   <enumeration value="23"/>
+     *                                   <enumeration value="24"/>
+     *                                   <enumeration value="25"/>
+     *                                   <enumeration value="26"/>
+     *                                   <enumeration value="27"/>
+     *                                   <enumeration value="28"/>
+     *                                   <enumeration value="29"/>
+     *                                   <enumeration value="99"/>
+     *                                 </restriction>
+     *                               </simpleType>
+     *                             </element>
+     *                             <element name="sitVeiculo">
+     *                               <simpleType>
+     *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                                   <whiteSpace value="preserve"/>
+     *                                   <enumeration value="1"/>
+     *                                   <enumeration value="2"/>
+     *                                   <enumeration value="3"/>
+     *                                 </restriction>
+     *                               </simpleType>
+     *                             </element>
+     *                           </sequence>
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *         <element name="infValorBPe">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="vBP" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *                   <element name="vDesconto" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *                   <element name="vPgto" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *                   <element name="vTroco" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *                   <element name="tpDesconto" minOccurs="0">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <enumeration value="01"/>
+     *                         <enumeration value="02"/>
+     *                         <enumeration value="03"/>
+     *                         <enumeration value="04"/>
+     *                         <enumeration value="05"/>
+     *                         <enumeration value="06"/>
+     *                         <enumeration value="07"/>
+     *                         <enumeration value="08"/>
+     *                         <enumeration value="09"/>
+     *                         <enumeration value="10"/>
+     *                         <enumeration value="99"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="xDesconto" minOccurs="0">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                         <maxLength value="100"/>
+     *                         <minLength value="2"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="Comp" maxOccurs="unbounded">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <sequence>
+     *                             <element name="tpComp">
+     *                               <simpleType>
+     *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                                   <whiteSpace value="preserve"/>
+     *                                   <enumeration value="01"/>
+     *                                   <enumeration value="02"/>
+     *                                   <enumeration value="03"/>
+     *                                   <enumeration value="04"/>
+     *                                   <enumeration value="05"/>
+     *                                   <enumeration value="06"/>
+     *                                   <enumeration value="99"/>
+     *                                 </restriction>
+     *                               </simpleType>
+     *                             </element>
+     *                             <element name="vComp" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *                           </sequence>
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *         <element name="imp">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="ICMS" type="{http://www.portalfiscal.inf.br/bpe}TImp"/>
+     *                   <element name="vTotTrib" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302" minOccurs="0"/>
+     *                   <element name="infAdFisco" minOccurs="0">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                         <maxLength value="2000"/>
+     *                         <minLength value="1"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="ICMSUFFim" minOccurs="0">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <sequence>
+     *                             <element name="vBCUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *                             <element name="pFCPUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+     *                             <element name="pICMSUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+     *                             <element name="pICMSInter" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+     *                             <element name="pICMSInterPart" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+     *                             <element name="vFCPUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *                             <element name="vICMSUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *                             <element name="vICMSUFIni" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *                           </sequence>
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *         <element name="pag" maxOccurs="10">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="tPag">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                         <whiteSpace value="preserve"/>
+     *                         <enumeration value="01"/>
+     *                         <enumeration value="02"/>
+     *                         <enumeration value="03"/>
+     *                         <enumeration value="04"/>
+     *                         <enumeration value="05"/>
+     *                         <enumeration value="99"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="vPag" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *                   <element name="card" minOccurs="0">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <sequence>
+     *                             <element name="tpIntegra">
+     *                               <simpleType>
+     *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                                   <whiteSpace value="preserve"/>
+     *                                   <enumeration value="1"/>
+     *                                   <enumeration value="2"/>
+     *                                 </restriction>
+     *                               </simpleType>
+     *                             </element>
+     *                             <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpj" minOccurs="0"/>
+     *                             <element name="tBand" minOccurs="0">
+     *                               <simpleType>
+     *                                 <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                                   <whiteSpace value="preserve"/>
+     *                                   <enumeration value="01"/>
+     *                                   <enumeration value="02"/>
+     *                                   <enumeration value="03"/>
+     *                                   <enumeration value="04"/>
+     *                                   <enumeration value="05"/>
+     *                                   <enumeration value="99"/>
+     *                                 </restriction>
+     *                               </simpleType>
+     *                             </element>
+     *                             <element name="cAut" minOccurs="0">
+     *                               <simpleType>
+     *                                 <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                                   <minLength value="1"/>
+     *                                   <maxLength value="20"/>
+     *                                 </restriction>
+     *                               </simpleType>
+     *                             </element>
+     *                           </sequence>
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *         <element name="autXML" maxOccurs="10" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <choice>
+     *                     <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpj"/>
+     *                     <element name="CPF" type="{http://www.portalfiscal.inf.br/bpe}TCpf"/>
+     *                   </choice>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *         <element name="infAdic" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="infAdFisco" minOccurs="0">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                         <maxLength value="2000"/>
+     *                         <minLength value="1"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                   <element name="infCpl" minOccurs="0">
+     *                     <simpleType>
+     *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *                         <minLength value="1"/>
+     *                         <maxLength value="5000"/>
+     *                       </restriction>
+     *                     </simpleType>
+     *                   </element>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/bpe}TVerBPe" />
+     *       <attribute name="Id" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="BPe[0-9]{44}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "ide", + "emit", + "comp", + "agencia", + "infBPeSub", + "infPassagem", + "infViagem", + "infValorBPe", + "imp", + "pag", + "autXML", + "infAdic" + }) + public static class InfBPe { + + @XmlElement(required = true) + protected TBPe.InfBPe.Ide ide; + @XmlElement(required = true) + protected TBPe.InfBPe.Emit emit; + protected TBPe.InfBPe.Comp comp; + protected TBPe.InfBPe.Agencia agencia; + protected TBPe.InfBPe.InfBPeSub infBPeSub; + @XmlElement(required = true) + protected TBPe.InfBPe.InfPassagem infPassagem; + @XmlElement(required = true) + protected List infViagem; + @XmlElement(required = true) + protected TBPe.InfBPe.InfValorBPe infValorBPe; + @XmlElement(required = true) + protected TBPe.InfBPe.Imp imp; + @XmlElement(required = true) + protected List pag; + protected List autXML; + protected TBPe.InfBPe.InfAdic infAdic; + @XmlAttribute(name = "versao", required = true) + protected String versao; + @XmlAttribute(name = "Id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Obtém o valor da propriedade ide. + * + * @return + * possible object is + * {@link TBPe.InfBPe.Ide } + * + */ + public TBPe.InfBPe.Ide getIde() { + return ide; + } + + /** + * Define o valor da propriedade ide. + * + * @param value + * allowed object is + * {@link TBPe.InfBPe.Ide } + * + */ + public void setIde(TBPe.InfBPe.Ide value) { + this.ide = value; + } + + /** + * Obtém o valor da propriedade emit. + * + * @return + * possible object is + * {@link TBPe.InfBPe.Emit } + * + */ + public TBPe.InfBPe.Emit getEmit() { + return emit; + } + + /** + * Define o valor da propriedade emit. + * + * @param value + * allowed object is + * {@link TBPe.InfBPe.Emit } + * + */ + public void setEmit(TBPe.InfBPe.Emit value) { + this.emit = value; + } + + /** + * Obtém o valor da propriedade comp. + * + * @return + * possible object is + * {@link TBPe.InfBPe.Comp } + * + */ + public TBPe.InfBPe.Comp getComp() { + return comp; + } + + /** + * Define o valor da propriedade comp. + * + * @param value + * allowed object is + * {@link TBPe.InfBPe.Comp } + * + */ + public void setComp(TBPe.InfBPe.Comp value) { + this.comp = value; + } + + /** + * Obtém o valor da propriedade agencia. + * + * @return + * possible object is + * {@link TBPe.InfBPe.Agencia } + * + */ + public TBPe.InfBPe.Agencia getAgencia() { + return agencia; + } + + /** + * Define o valor da propriedade agencia. + * + * @param value + * allowed object is + * {@link TBPe.InfBPe.Agencia } + * + */ + public void setAgencia(TBPe.InfBPe.Agencia value) { + this.agencia = value; + } + + /** + * Obtém o valor da propriedade infBPeSub. + * + * @return + * possible object is + * {@link TBPe.InfBPe.InfBPeSub } + * + */ + public TBPe.InfBPe.InfBPeSub getInfBPeSub() { + return infBPeSub; + } + + /** + * Define o valor da propriedade infBPeSub. + * + * @param value + * allowed object is + * {@link TBPe.InfBPe.InfBPeSub } + * + */ + public void setInfBPeSub(TBPe.InfBPe.InfBPeSub value) { + this.infBPeSub = value; + } + + /** + * Obtém o valor da propriedade infPassagem. + * + * @return + * possible object is + * {@link TBPe.InfBPe.InfPassagem } + * + */ + public TBPe.InfBPe.InfPassagem getInfPassagem() { + return infPassagem; + } + + /** + * Define o valor da propriedade infPassagem. + * + * @param value + * allowed object is + * {@link TBPe.InfBPe.InfPassagem } + * + */ + public void setInfPassagem(TBPe.InfBPe.InfPassagem value) { + this.infPassagem = value; + } + + /** + * Gets the value of the infViagem property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the infViagem property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getInfViagem().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TBPe.InfBPe.InfViagem } + * + * + */ + public List getInfViagem() { + if (infViagem == null) { + infViagem = new ArrayList(); + } + return this.infViagem; + } + + /** + * Obtém o valor da propriedade infValorBPe. + * + * @return + * possible object is + * {@link TBPe.InfBPe.InfValorBPe } + * + */ + public TBPe.InfBPe.InfValorBPe getInfValorBPe() { + return infValorBPe; + } + + /** + * Define o valor da propriedade infValorBPe. + * + * @param value + * allowed object is + * {@link TBPe.InfBPe.InfValorBPe } + * + */ + public void setInfValorBPe(TBPe.InfBPe.InfValorBPe value) { + this.infValorBPe = value; + } + + /** + * Obtém o valor da propriedade imp. + * + * @return + * possible object is + * {@link TBPe.InfBPe.Imp } + * + */ + public TBPe.InfBPe.Imp getImp() { + return imp; + } + + /** + * Define o valor da propriedade imp. + * + * @param value + * allowed object is + * {@link TBPe.InfBPe.Imp } + * + */ + public void setImp(TBPe.InfBPe.Imp value) { + this.imp = value; + } + + /** + * Gets the value of the pag property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pag property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getPag().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TBPe.InfBPe.Pag } + * + * + */ + public List getPag() { + if (pag == null) { + pag = new ArrayList(); + } + return this.pag; + } + + /** + * Gets the value of the autXML property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the autXML property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getAutXML().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TBPe.InfBPe.AutXML } + * + * + */ + public List getAutXML() { + if (autXML == null) { + autXML = new ArrayList(); + } + return this.autXML; + } + + /** + * Obtém o valor da propriedade infAdic. + * + * @return + * possible object is + * {@link TBPe.InfBPe.InfAdic } + * + */ + public TBPe.InfBPe.InfAdic getInfAdic() { + return infAdic; + } + + /** + * Define o valor da propriedade infAdic. + * + * @param value + * allowed object is + * {@link TBPe.InfBPe.InfAdic } + * + */ + public void setInfAdic(TBPe.InfBPe.InfAdic value) { + this.infAdic = 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; + } + + /** + * 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; + } + + + /** + *

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="xNome">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *               <maxLength value="60"/>
+         *               <minLength value="2"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpjOpc"/>
+         *         <element name="enderAgencia" type="{http://www.portalfiscal.inf.br/bpe}TEndereco"/>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "xNome", + "cnpj", + "enderAgencia" + }) + public static class Agencia { + + @XmlElement(required = true) + protected String xNome; + @XmlElement(name = "CNPJ", required = true) + protected String cnpj; + @XmlElement(required = true) + protected TEndereco enderAgencia; + + /** + * Obtém o valor da propriedade xNome. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXNome() { + return xNome; + } + + /** + * Define o valor da propriedade xNome. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXNome(String value) { + this.xNome = value; + } + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade enderAgencia. + * + * @return + * possible object is + * {@link TEndereco } + * + */ + public TEndereco getEnderAgencia() { + return enderAgencia; + } + + /** + * Define o valor da propriedade enderAgencia. + * + * @param value + * allowed object is + * {@link TEndereco } + * + */ + public void setEnderAgencia(TEndereco value) { + this.enderAgencia = 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>
+         *         <choice>
+         *           <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpj"/>
+         *           <element name="CPF" type="{http://www.portalfiscal.inf.br/bpe}TCpf"/>
+         *         </choice>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cnpj", + "cpf" + }) + public static class AutXML { + + @XmlElement(name = "CNPJ") + protected String cnpj; + @XmlElement(name = "CPF") + protected String cpf; + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade cpf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPF() { + return cpf; + } + + /** + * Define o valor da propriedade cpf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPF(String value) { + this.cpf = 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="xNome">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *               <maxLength value="60"/>
+         *               <minLength value="2"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <choice>
+         *           <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpjOpc"/>
+         *           <element name="CPF" type="{http://www.portalfiscal.inf.br/bpe}TCpf"/>
+         *           <element name="idEstrangeiro">
+         *             <simpleType>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                 <whiteSpace value="preserve"/>
+         *                 <pattern value="([!-ÿ]{0}|[!-ÿ]{5,20})?"/>
+         *               </restriction>
+         *             </simpleType>
+         *           </element>
+         *         </choice>
+         *         <element name="IE" minOccurs="0">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TIeDest">
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="enderComp" type="{http://www.portalfiscal.inf.br/bpe}TEndereco"/>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "xNome", + "cnpj", + "cpf", + "idEstrangeiro", + "ie", + "enderComp" + }) + public static class Comp { + + @XmlElement(required = true) + protected String xNome; + @XmlElement(name = "CNPJ") + protected String cnpj; + @XmlElement(name = "CPF") + protected String cpf; + protected String idEstrangeiro; + @XmlElement(name = "IE") + protected String ie; + @XmlElement(required = true) + protected TEndereco enderComp; + + /** + * Obtém o valor da propriedade xNome. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXNome() { + return xNome; + } + + /** + * Define o valor da propriedade xNome. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXNome(String value) { + this.xNome = value; + } + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade cpf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPF() { + return cpf; + } + + /** + * Define o valor da propriedade cpf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPF(String value) { + this.cpf = value; + } + + /** + * Obtém o valor da propriedade idEstrangeiro. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdEstrangeiro() { + return idEstrangeiro; + } + + /** + * Define o valor da propriedade idEstrangeiro. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdEstrangeiro(String value) { + this.idEstrangeiro = value; + } + + /** + * Obtém o valor da propriedade ie. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIE() { + return ie; + } + + /** + * Define o valor da propriedade ie. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIE(String value) { + this.ie = value; + } + + /** + * Obtém o valor da propriedade enderComp. + * + * @return + * possible object is + * {@link TEndereco } + * + */ + public TEndereco getEnderComp() { + return enderComp; + } + + /** + * Define o valor da propriedade enderComp. + * + * @param value + * allowed object is + * {@link TEndereco } + * + */ + public void setEnderComp(TEndereco value) { + this.enderComp = 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="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpj"/>
+         *         <element name="IE">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TIe">
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="IEST" minOccurs="0">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TIe">
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="xNome">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *               <maxLength value="60"/>
+         *               <minLength value="2"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="xFant" minOccurs="0">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *               <maxLength value="60"/>
+         *               <minLength value="1"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <sequence minOccurs="0">
+         *           <element name="IM">
+         *             <simpleType>
+         *               <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *                 <minLength value="1"/>
+         *                 <maxLength value="15"/>
+         *               </restriction>
+         *             </simpleType>
+         *           </element>
+         *           <element name="CNAE">
+         *             <simpleType>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                 <whiteSpace value="preserve"/>
+         *                 <pattern value="[0-9]{7}"/>
+         *               </restriction>
+         *             </simpleType>
+         *           </element>
+         *         </sequence>
+         *         <element name="CRT">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <enumeration value="1"/>
+         *               <enumeration value="2"/>
+         *               <enumeration value="3"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="enderEmit" type="{http://www.portalfiscal.inf.br/bpe}TEndeEmi"/>
+         *         <element name="TAR" minOccurs="0">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <minLength value="1"/>
+         *               <maxLength value="20"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cnpj", + "ie", + "iest", + "xNome", + "xFant", + "im", + "cnae", + "crt", + "enderEmit", + "tar" + }) + public static class Emit { + + @XmlElement(name = "CNPJ", required = true) + protected String cnpj; + @XmlElement(name = "IE", required = true) + protected String ie; + @XmlElement(name = "IEST") + protected String iest; + @XmlElement(required = true) + protected String xNome; + protected String xFant; + @XmlElement(name = "IM") + protected String im; + @XmlElement(name = "CNAE") + protected String cnae; + @XmlElement(name = "CRT", required = true) + protected String crt; + @XmlElement(required = true) + protected TEndeEmi enderEmit; + @XmlElement(name = "TAR") + protected String tar; + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade ie. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIE() { + return ie; + } + + /** + * Define o valor da propriedade ie. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIE(String value) { + this.ie = value; + } + + /** + * Obtém o valor da propriedade iest. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIEST() { + return iest; + } + + /** + * Define o valor da propriedade iest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIEST(String value) { + this.iest = value; + } + + /** + * Obtém o valor da propriedade xNome. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXNome() { + return xNome; + } + + /** + * Define o valor da propriedade xNome. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXNome(String value) { + this.xNome = value; + } + + /** + * Obtém o valor da propriedade xFant. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXFant() { + return xFant; + } + + /** + * Define o valor da propriedade xFant. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXFant(String value) { + this.xFant = value; + } + + /** + * Obtém o valor da propriedade im. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIM() { + return im; + } + + /** + * Define o valor da propriedade im. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIM(String value) { + this.im = value; + } + + /** + * Obtém o valor da propriedade cnae. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNAE() { + return cnae; + } + + /** + * Define o valor da propriedade cnae. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNAE(String value) { + this.cnae = value; + } + + /** + * Obtém o valor da propriedade crt. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCRT() { + return crt; + } + + /** + * Define o valor da propriedade crt. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCRT(String value) { + this.crt = value; + } + + /** + * Obtém o valor da propriedade enderEmit. + * + * @return + * possible object is + * {@link TEndeEmi } + * + */ + public TEndeEmi getEnderEmit() { + return enderEmit; + } + + /** + * Define o valor da propriedade enderEmit. + * + * @param value + * allowed object is + * {@link TEndeEmi } + * + */ + public void setEnderEmit(TEndeEmi value) { + this.enderEmit = value; + } + + /** + * Obtém o valor da propriedade tar. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTAR() { + return tar; + } + + /** + * Define o valor da propriedade tar. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTAR(String value) { + this.tar = 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="cUF" type="{http://www.portalfiscal.inf.br/bpe}TCodUfIBGE"/>
+         *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/bpe}TAmb"/>
+         *         <element name="mod" type="{http://www.portalfiscal.inf.br/bpe}TModBPe"/>
+         *         <element name="serie">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TSerie">
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="nBP" type="{http://www.portalfiscal.inf.br/bpe}TNF"/>
+         *         <element name="cBP">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <pattern value="[0-9]{8}"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="cDV">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <pattern value="[0-9]{1}"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="modal">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TModal">
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="dhEmi" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+         *         <element name="tpEmis">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <enumeration value="1"/>
+         *               <enumeration value="2"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="verProc">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *               <minLength value="1"/>
+         *               <maxLength value="20"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="tpBPe">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TTipoBPe">
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="indPres" type="{http://www.portalfiscal.inf.br/bpe}TIndPres"/>
+         *         <element name="UFIni" type="{http://www.portalfiscal.inf.br/bpe}TUf_sem_EX"/>
+         *         <element name="cMunIni" type="{http://www.portalfiscal.inf.br/bpe}TCodMunIBGE"/>
+         *         <element name="UFFim" type="{http://www.portalfiscal.inf.br/bpe}TUf"/>
+         *         <element name="cMunFim" type="{http://www.portalfiscal.inf.br/bpe}TCodMunIBGE"/>
+         *         <sequence minOccurs="0">
+         *           <element name="dhCont" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+         *           <element name="xJust">
+         *             <simpleType>
+         *               <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *                 <minLength value="15"/>
+         *                 <maxLength value="256"/>
+         *               </restriction>
+         *             </simpleType>
+         *           </element>
+         *         </sequence>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cuf", + "tpAmb", + "mod", + "serie", + "nbp", + "cbp", + "cdv", + "modal", + "dhEmi", + "tpEmis", + "verProc", + "tpBPe", + "indPres", + "ufIni", + "cMunIni", + "ufFim", + "cMunFim", + "dhCont", + "xJust" + }) + public static class Ide { + + @XmlElement(name = "cUF", required = true) + protected String cuf; + @XmlElement(required = true) + protected String tpAmb; + @XmlElement(required = true) + protected String mod; + @XmlElement(required = true) + protected String serie; + @XmlElement(name = "nBP", required = true) + protected String nbp; + @XmlElement(name = "cBP", required = true) + protected String cbp; + @XmlElement(name = "cDV", required = true) + protected String cdv; + @XmlElement(required = true) + protected String modal; + @XmlElement(required = true) + protected String dhEmi; + @XmlElement(required = true) + protected String tpEmis; + @XmlElement(required = true) + protected String verProc; + @XmlElement(required = true) + protected String tpBPe; + @XmlElement(required = true) + protected String indPres; + @XmlElement(name = "UFIni", required = true) + @XmlSchemaType(name = "string") + protected TUfSemEX ufIni; + @XmlElement(required = true) + protected String cMunIni; + @XmlElement(name = "UFFim", required = true) + @XmlSchemaType(name = "string") + protected TUf ufFim; + @XmlElement(required = true) + protected String cMunFim; + protected String dhCont; + protected String xJust; + + /** + * Obtém o valor da propriedade cuf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCUF() { + return cuf; + } + + /** + * Define o valor da propriedade cuf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCUF(String value) { + this.cuf = value; + } + + /** + * 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 mod. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMod() { + return mod; + } + + /** + * Define o valor da propriedade mod. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMod(String value) { + this.mod = value; + } + + /** + * Obtém o valor da propriedade serie. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSerie() { + return serie; + } + + /** + * Define o valor da propriedade serie. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSerie(String value) { + this.serie = value; + } + + /** + * Obtém o valor da propriedade nbp. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNBP() { + return nbp; + } + + /** + * Define o valor da propriedade nbp. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNBP(String value) { + this.nbp = value; + } + + /** + * Obtém o valor da propriedade cbp. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCBP() { + return cbp; + } + + /** + * Define o valor da propriedade cbp. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCBP(String value) { + this.cbp = value; + } + + /** + * Obtém o valor da propriedade cdv. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCDV() { + return cdv; + } + + /** + * Define o valor da propriedade cdv. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCDV(String value) { + this.cdv = value; + } + + /** + * Obtém o valor da propriedade modal. + * + * @return + * possible object is + * {@link String } + * + */ + public String getModal() { + return modal; + } + + /** + * Define o valor da propriedade modal. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setModal(String value) { + this.modal = value; + } + + /** + * Obtém o valor da propriedade dhEmi. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhEmi() { + return dhEmi; + } + + /** + * Define o valor da propriedade dhEmi. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhEmi(String value) { + this.dhEmi = value; + } + + /** + * Obtém o valor da propriedade tpEmis. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpEmis() { + return tpEmis; + } + + /** + * Define o valor da propriedade tpEmis. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpEmis(String value) { + this.tpEmis = value; + } + + /** + * Obtém o valor da propriedade verProc. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVerProc() { + return verProc; + } + + /** + * Define o valor da propriedade verProc. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVerProc(String value) { + this.verProc = value; + } + + /** + * Obtém o valor da propriedade tpBPe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpBPe() { + return tpBPe; + } + + /** + * Define o valor da propriedade tpBPe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpBPe(String value) { + this.tpBPe = value; + } + + /** + * Obtém o valor da propriedade indPres. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndPres() { + return indPres; + } + + /** + * Define o valor da propriedade indPres. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndPres(String value) { + this.indPres = value; + } + + /** + * Obtém o valor da propriedade ufIni. + * + * @return + * possible object is + * {@link TUfSemEX } + * + */ + public TUfSemEX getUFIni() { + return ufIni; + } + + /** + * Define o valor da propriedade ufIni. + * + * @param value + * allowed object is + * {@link TUfSemEX } + * + */ + public void setUFIni(TUfSemEX value) { + this.ufIni = value; + } + + /** + * Obtém o valor da propriedade cMunIni. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCMunIni() { + return cMunIni; + } + + /** + * Define o valor da propriedade cMunIni. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCMunIni(String value) { + this.cMunIni = value; + } + + /** + * Obtém o valor da propriedade ufFim. + * + * @return + * possible object is + * {@link TUf } + * + */ + public TUf getUFFim() { + return ufFim; + } + + /** + * Define o valor da propriedade ufFim. + * + * @param value + * allowed object is + * {@link TUf } + * + */ + public void setUFFim(TUf value) { + this.ufFim = value; + } + + /** + * Obtém o valor da propriedade cMunFim. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCMunFim() { + return cMunFim; + } + + /** + * Define o valor da propriedade cMunFim. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCMunFim(String value) { + this.cMunFim = value; + } + + /** + * Obtém o valor da propriedade dhCont. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhCont() { + return dhCont; + } + + /** + * Define o valor da propriedade dhCont. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhCont(String value) { + this.dhCont = value; + } + + /** + * Obtém o valor da propriedade xJust. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXJust() { + return xJust; + } + + /** + * Define o valor da propriedade xJust. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXJust(String value) { + this.xJust = 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="ICMS" type="{http://www.portalfiscal.inf.br/bpe}TImp"/>
+         *         <element name="vTotTrib" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302" minOccurs="0"/>
+         *         <element name="infAdFisco" minOccurs="0">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *               <maxLength value="2000"/>
+         *               <minLength value="1"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="ICMSUFFim" minOccurs="0">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence>
+         *                   <element name="vBCUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+         *                   <element name="pFCPUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+         *                   <element name="pICMSUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+         *                   <element name="pICMSInter" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+         *                   <element name="pICMSInterPart" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+         *                   <element name="vFCPUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+         *                   <element name="vICMSUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+         *                   <element name="vICMSUFIni" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "icms", + "vTotTrib", + "infAdFisco", + "icmsufFim" + }) + public static class Imp { + + @XmlElement(name = "ICMS", required = true) + protected TImp icms; + protected String vTotTrib; + protected String infAdFisco; + @XmlElement(name = "ICMSUFFim") + protected TBPe.InfBPe.Imp.ICMSUFFim icmsufFim; + + /** + * Obtém o valor da propriedade icms. + * + * @return + * possible object is + * {@link TImp } + * + */ + public TImp getICMS() { + return icms; + } + + /** + * Define o valor da propriedade icms. + * + * @param value + * allowed object is + * {@link TImp } + * + */ + public void setICMS(TImp value) { + this.icms = value; + } + + /** + * Obtém o valor da propriedade vTotTrib. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVTotTrib() { + return vTotTrib; + } + + /** + * Define o valor da propriedade vTotTrib. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVTotTrib(String value) { + this.vTotTrib = value; + } + + /** + * Obtém o valor da propriedade infAdFisco. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInfAdFisco() { + return infAdFisco; + } + + /** + * Define o valor da propriedade infAdFisco. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInfAdFisco(String value) { + this.infAdFisco = value; + } + + /** + * Obtém o valor da propriedade icmsufFim. + * + * @return + * possible object is + * {@link TBPe.InfBPe.Imp.ICMSUFFim } + * + */ + public TBPe.InfBPe.Imp.ICMSUFFim getICMSUFFim() { + return icmsufFim; + } + + /** + * Define o valor da propriedade icmsufFim. + * + * @param value + * allowed object is + * {@link TBPe.InfBPe.Imp.ICMSUFFim } + * + */ + public void setICMSUFFim(TBPe.InfBPe.Imp.ICMSUFFim value) { + this.icmsufFim = 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="vBCUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+             *         <element name="pFCPUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+             *         <element name="pICMSUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+             *         <element name="pICMSInter" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+             *         <element name="pICMSInterPart" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+             *         <element name="vFCPUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+             *         <element name="vICMSUFFim" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+             *         <element name="vICMSUFIni" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "vbcufFim", + "pfcpufFim", + "picmsufFim", + "picmsInter", + "picmsInterPart", + "vfcpufFim", + "vicmsufFim", + "vicmsufIni" + }) + public static class ICMSUFFim { + + @XmlElement(name = "vBCUFFim", required = true) + protected String vbcufFim; + @XmlElement(name = "pFCPUFFim", required = true) + protected String pfcpufFim; + @XmlElement(name = "pICMSUFFim", required = true) + protected String picmsufFim; + @XmlElement(name = "pICMSInter", required = true) + protected String picmsInter; + @XmlElement(name = "pICMSInterPart", required = true) + protected String picmsInterPart; + @XmlElement(name = "vFCPUFFim", required = true) + protected String vfcpufFim; + @XmlElement(name = "vICMSUFFim", required = true) + protected String vicmsufFim; + @XmlElement(name = "vICMSUFIni", required = true) + protected String vicmsufIni; + + /** + * Obtém o valor da propriedade vbcufFim. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVBCUFFim() { + return vbcufFim; + } + + /** + * Define o valor da propriedade vbcufFim. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVBCUFFim(String value) { + this.vbcufFim = value; + } + + /** + * Obtém o valor da propriedade pfcpufFim. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPFCPUFFim() { + return pfcpufFim; + } + + /** + * Define o valor da propriedade pfcpufFim. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPFCPUFFim(String value) { + this.pfcpufFim = value; + } + + /** + * Obtém o valor da propriedade picmsufFim. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPICMSUFFim() { + return picmsufFim; + } + + /** + * Define o valor da propriedade picmsufFim. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPICMSUFFim(String value) { + this.picmsufFim = value; + } + + /** + * Obtém o valor da propriedade picmsInter. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPICMSInter() { + return picmsInter; + } + + /** + * Define o valor da propriedade picmsInter. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPICMSInter(String value) { + this.picmsInter = value; + } + + /** + * Obtém o valor da propriedade picmsInterPart. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPICMSInterPart() { + return picmsInterPart; + } + + /** + * Define o valor da propriedade picmsInterPart. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPICMSInterPart(String value) { + this.picmsInterPart = value; + } + + /** + * Obtém o valor da propriedade vfcpufFim. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVFCPUFFim() { + return vfcpufFim; + } + + /** + * Define o valor da propriedade vfcpufFim. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVFCPUFFim(String value) { + this.vfcpufFim = value; + } + + /** + * Obtém o valor da propriedade vicmsufFim. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVICMSUFFim() { + return vicmsufFim; + } + + /** + * Define o valor da propriedade vicmsufFim. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVICMSUFFim(String value) { + this.vicmsufFim = value; + } + + /** + * Obtém o valor da propriedade vicmsufIni. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVICMSUFIni() { + return vicmsufIni; + } + + /** + * Define o valor da propriedade vicmsufIni. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVICMSUFIni(String value) { + this.vicmsufIni = 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="infAdFisco" minOccurs="0">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *               <maxLength value="2000"/>
+         *               <minLength value="1"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="infCpl" minOccurs="0">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *               <minLength value="1"/>
+         *               <maxLength value="5000"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "infAdFisco", + "infCpl" + }) + public static class InfAdic { + + protected String infAdFisco; + protected String infCpl; + + /** + * Obtém o valor da propriedade infAdFisco. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInfAdFisco() { + return infAdFisco; + } + + /** + * Define o valor da propriedade infAdFisco. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInfAdFisco(String value) { + this.infAdFisco = value; + } + + /** + * Obtém o valor da propriedade infCpl. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInfCpl() { + return infCpl; + } + + /** + * Define o valor da propriedade infCpl. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInfCpl(String value) { + this.infCpl = 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="chBPe" type="{http://www.portalfiscal.inf.br/bpe}TChDFe"/>
+         *         <element name="tpSub" type="{http://www.portalfiscal.inf.br/bpe}TTipoSubstituicao"/>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "chBPe", + "tpSub" + }) + public static class InfBPeSub { + + @XmlElement(required = true) + protected String chBPe; + @XmlElement(required = true) + protected String tpSub; + + /** + * Obtém o valor da propriedade chBPe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChBPe() { + return chBPe; + } + + /** + * Define o valor da propriedade chBPe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChBPe(String value) { + this.chBPe = value; + } + + /** + * Obtém o valor da propriedade tpSub. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpSub() { + return tpSub; + } + + /** + * Define o valor da propriedade tpSub. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpSub(String value) { + this.tpSub = 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="cLocOrig">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <minLength value="1"/>
+         *               <maxLength value="7"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="xLocOrig">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *               <maxLength value="60"/>
+         *               <minLength value="2"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="cLocDest">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <minLength value="1"/>
+         *               <maxLength value="7"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="xLocDest">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *               <maxLength value="60"/>
+         *               <minLength value="2"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="dhEmb" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+         *         <element name="infPassageiro" minOccurs="0">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence>
+         *                   <element name="xNome">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *                         <maxLength value="60"/>
+         *                         <minLength value="2"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="CPF" type="{http://www.portalfiscal.inf.br/bpe}TCpf" minOccurs="0"/>
+         *                   <element name="tpDoc" type="{http://www.portalfiscal.inf.br/bpe}TDoc"/>
+         *                   <element name="nDoc">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *                         <minLength value="2"/>
+         *                         <maxLength value="20"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="dNasc" minOccurs="0">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TData">
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="fone" minOccurs="0">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <whiteSpace value="preserve"/>
+         *                         <pattern value="[0-9]{7,12}"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="email" type="{http://www.portalfiscal.inf.br/bpe}TEmail" minOccurs="0"/>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cLocOrig", + "xLocOrig", + "cLocDest", + "xLocDest", + "dhEmb", + "dhValidade", + "infPassageiro" + }) + public static class InfPassagem { + + @XmlElement(required = true) + protected String cLocOrig; + @XmlElement(required = true) + protected String xLocOrig; + @XmlElement(required = true) + protected String cLocDest; + @XmlElement(required = true) + protected String xLocDest; + @XmlElement(required = true) + protected String dhEmb; + protected String dhValidade; + protected TBPe.InfBPe.InfPassagem.InfPassageiro infPassageiro; + + /** + * Obtém o valor da propriedade cLocOrig. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCLocOrig() { + return cLocOrig; + } + + /** + * Define o valor da propriedade cLocOrig. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCLocOrig(String value) { + this.cLocOrig = value; + } + + /** + * Obtém o valor da propriedade xLocOrig. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXLocOrig() { + return xLocOrig; + } + + /** + * Define o valor da propriedade xLocOrig. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXLocOrig(String value) { + this.xLocOrig = value; + } + + /** + * Obtém o valor da propriedade cLocDest. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCLocDest() { + return cLocDest; + } + + /** + * Define o valor da propriedade cLocDest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCLocDest(String value) { + this.cLocDest = value; + } + + /** + * Obtém o valor da propriedade xLocDest. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXLocDest() { + return xLocDest; + } + + /** + * Define o valor da propriedade xLocDest. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXLocDest(String value) { + this.xLocDest = value; + } + + /** + * Obtém o valor da propriedade dhEmb. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhEmb() { + return dhEmb; + } + + /** + * Define o valor da propriedade dhEmb. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhEmb(String value) { + this.dhEmb = value; + } + + /** + * Obtém o valor da propriedade dhValidade. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhValidade() { + return dhValidade; + } + + /** + * Define o valor da propriedade dhValidade. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhValidade(String value) { + this.dhValidade = value; + } + + /** + * Obtém o valor da propriedade infPassageiro. + * + * @return + * possible object is + * {@link TBPe.InfBPe.InfPassagem.InfPassageiro } + * + */ + public TBPe.InfBPe.InfPassagem.InfPassageiro getInfPassageiro() { + return infPassageiro; + } + + /** + * Define o valor da propriedade infPassageiro. + * + * @param value + * allowed object is + * {@link TBPe.InfBPe.InfPassagem.InfPassageiro } + * + */ + public void setInfPassageiro(TBPe.InfBPe.InfPassagem.InfPassageiro value) { + this.infPassageiro = 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="xNome">
+             *           <simpleType>
+             *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+             *               <maxLength value="60"/>
+             *               <minLength value="2"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="CPF" type="{http://www.portalfiscal.inf.br/bpe}TCpf" minOccurs="0"/>
+             *         <element name="tpDoc" type="{http://www.portalfiscal.inf.br/bpe}TDoc"/>
+             *         <element name="nDoc">
+             *           <simpleType>
+             *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+             *               <minLength value="2"/>
+             *               <maxLength value="20"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="dNasc" minOccurs="0">
+             *           <simpleType>
+             *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TData">
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="fone" minOccurs="0">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <whiteSpace value="preserve"/>
+             *               <pattern value="[0-9]{7,12}"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="email" type="{http://www.portalfiscal.inf.br/bpe}TEmail" minOccurs="0"/>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "xNome", + "cpf", + "tpDoc", + "nDoc", + "dNasc", + "fone", + "email" + }) + public static class InfPassageiro { + + @XmlElement(required = true) + protected String xNome; + @XmlElement(name = "CPF") + protected String cpf; + @XmlElement(required = true) + protected String tpDoc; + @XmlElement(required = true) + protected String nDoc; + protected String dNasc; + protected String fone; + protected String email; + + /** + * Obtém o valor da propriedade xNome. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXNome() { + return xNome; + } + + /** + * Define o valor da propriedade xNome. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXNome(String value) { + this.xNome = value; + } + + /** + * Obtém o valor da propriedade cpf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPF() { + return cpf; + } + + /** + * Define o valor da propriedade cpf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPF(String value) { + this.cpf = value; + } + + /** + * Obtém o valor da propriedade tpDoc. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpDoc() { + return tpDoc; + } + + /** + * Define o valor da propriedade tpDoc. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpDoc(String value) { + this.tpDoc = value; + } + + /** + * Obtém o valor da propriedade nDoc. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNDoc() { + return nDoc; + } + + /** + * Define o valor da propriedade nDoc. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNDoc(String value) { + this.nDoc = value; + } + + /** + * Obtém o valor da propriedade dNasc. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDNasc() { + return dNasc; + } + + /** + * Define o valor da propriedade dNasc. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDNasc(String value) { + this.dNasc = value; + } + + /** + * Obtém o valor da propriedade fone. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFone() { + return fone; + } + + /** + * Define o valor da propriedade fone. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFone(String value) { + this.fone = value; + } + + /** + * Obtém o valor da propriedade email. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEmail() { + return email; + } + + /** + * Define o valor da propriedade email. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEmail(String value) { + this.email = 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="vBP" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+         *         <element name="vDesconto" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+         *         <element name="vPgto" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+         *         <element name="vTroco" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+         *         <element name="tpDesconto" minOccurs="0">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <enumeration value="01"/>
+         *               <enumeration value="02"/>
+         *               <enumeration value="03"/>
+         *               <enumeration value="04"/>
+         *               <enumeration value="05"/>
+         *               <enumeration value="06"/>
+         *               <enumeration value="07"/>
+         *               <enumeration value="08"/>
+         *               <enumeration value="09"/>
+         *               <enumeration value="10"/>
+         *               <enumeration value="99"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="xDesconto" minOccurs="0">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *               <maxLength value="100"/>
+         *               <minLength value="2"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="Comp" maxOccurs="unbounded">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence>
+         *                   <element name="tpComp">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <whiteSpace value="preserve"/>
+         *                         <enumeration value="01"/>
+         *                         <enumeration value="02"/>
+         *                         <enumeration value="03"/>
+         *                         <enumeration value="04"/>
+         *                         <enumeration value="05"/>
+         *                         <enumeration value="06"/>
+         *                         <enumeration value="99"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="vComp" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "vbp", + "vDesconto", + "vPgto", + "vTroco", + "tpDesconto", + "xDesconto", + "comp" + }) + public static class InfValorBPe { + + @XmlElement(name = "vBP", required = true) + protected String vbp; + @XmlElement(required = true) + protected String vDesconto; + @XmlElement(required = true) + protected String vPgto; + @XmlElement(required = true) + protected String vTroco; + protected String tpDesconto; + protected String xDesconto; + @XmlElement(name = "Comp", required = true) + protected List comp; + + /** + * Obtém o valor da propriedade vbp. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVBP() { + return vbp; + } + + /** + * Define o valor da propriedade vbp. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVBP(String value) { + this.vbp = value; + } + + /** + * Obtém o valor da propriedade vDesconto. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVDesconto() { + return vDesconto; + } + + /** + * Define o valor da propriedade vDesconto. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVDesconto(String value) { + this.vDesconto = value; + } + + /** + * Obtém o valor da propriedade vPgto. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVPgto() { + return vPgto; + } + + /** + * Define o valor da propriedade vPgto. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVPgto(String value) { + this.vPgto = value; + } + + /** + * Obtém o valor da propriedade vTroco. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVTroco() { + return vTroco; + } + + /** + * Define o valor da propriedade vTroco. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVTroco(String value) { + this.vTroco = value; + } + + /** + * Obtém o valor da propriedade tpDesconto. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpDesconto() { + return tpDesconto; + } + + /** + * Define o valor da propriedade tpDesconto. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpDesconto(String value) { + this.tpDesconto = value; + } + + /** + * Obtém o valor da propriedade xDesconto. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXDesconto() { + return xDesconto; + } + + /** + * Define o valor da propriedade xDesconto. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXDesconto(String value) { + this.xDesconto = value; + } + + /** + * Gets the value of the comp property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the comp property. + * + *

+ * For example, to add a new item, do as follows: + *

+             *    getComp().add(newItem);
+             * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TBPe.InfBPe.InfValorBPe.Comp } + * + * + */ + public List getComp() { + if (comp == null) { + comp = new ArrayList(); + } + return this.comp; + } + + + /** + *

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="tpComp">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <whiteSpace value="preserve"/>
+             *               <enumeration value="01"/>
+             *               <enumeration value="02"/>
+             *               <enumeration value="03"/>
+             *               <enumeration value="04"/>
+             *               <enumeration value="05"/>
+             *               <enumeration value="06"/>
+             *               <enumeration value="99"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="vComp" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpComp", + "vComp" + }) + public static class Comp { + + @XmlElement(required = true) + protected String tpComp; + @XmlElement(required = true) + protected String vComp; + + /** + * Obtém o valor da propriedade tpComp. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpComp() { + return tpComp; + } + + /** + * Define o valor da propriedade tpComp. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpComp(String value) { + this.tpComp = value; + } + + /** + * Obtém o valor da propriedade vComp. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVComp() { + return vComp; + } + + /** + * Define o valor da propriedade vComp. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVComp(String value) { + this.vComp = 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="cPercurso">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <minLength value="1"/>
+         *               <maxLength value="20"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="xPercurso">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *               <maxLength value="100"/>
+         *               <minLength value="2"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="tpViagem">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <enumeration value="00"/>
+         *               <enumeration value="01"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="tpServ">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <enumeration value="1"/>
+         *               <enumeration value="2"/>
+         *               <enumeration value="3"/>
+         *               <enumeration value="4"/>
+         *               <enumeration value="5"/>
+         *               <enumeration value="6"/>
+         *               <enumeration value="7"/>
+         *               <enumeration value="8"/>
+         *               <enumeration value="9"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="tpAcomodacao">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <enumeration value="1"/>
+         *               <enumeration value="2"/>
+         *               <enumeration value="3"/>
+         *               <enumeration value="4"/>
+         *               <enumeration value="5"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="tpTrecho">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <enumeration value="1"/>
+         *               <enumeration value="2"/>
+         *               <enumeration value="3"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="dhViagem" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+         *         <element name="dhConexao" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC" minOccurs="0"/>
+         *         <element name="prefixo" minOccurs="0">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <minLength value="1"/>
+         *               <maxLength value="20"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="poltrona" minOccurs="0">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <minLength value="1"/>
+         *               <maxLength value="3"/>
+         *               <pattern value="0|[1-9]{1}[0-9]{0,2}"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="plataforma" minOccurs="0">
+         *           <simpleType>
+         *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *               <maxLength value="10"/>
+         *               <minLength value="2"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="infTravessia" minOccurs="0">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence>
+         *                   <element name="tpVeiculo">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <whiteSpace value="preserve"/>
+         *                         <enumeration value="01"/>
+         *                         <enumeration value="02"/>
+         *                         <enumeration value="03"/>
+         *                         <enumeration value="04"/>
+         *                         <enumeration value="05"/>
+         *                         <enumeration value="06"/>
+         *                         <enumeration value="07"/>
+         *                         <enumeration value="08"/>
+         *                         <enumeration value="09"/>
+         *                         <enumeration value="10"/>
+         *                         <enumeration value="11"/>
+         *                         <enumeration value="12"/>
+         *                         <enumeration value="13"/>
+         *                         <enumeration value="14"/>
+         *                         <enumeration value="15"/>
+         *                         <enumeration value="16"/>
+         *                         <enumeration value="17"/>
+         *                         <enumeration value="18"/>
+         *                         <enumeration value="19"/>
+         *                         <enumeration value="20"/>
+         *                         <enumeration value="21"/>
+         *                         <enumeration value="22"/>
+         *                         <enumeration value="23"/>
+         *                         <enumeration value="24"/>
+         *                         <enumeration value="25"/>
+         *                         <enumeration value="26"/>
+         *                         <enumeration value="27"/>
+         *                         <enumeration value="28"/>
+         *                         <enumeration value="29"/>
+         *                         <enumeration value="99"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="sitVeiculo">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <whiteSpace value="preserve"/>
+         *                         <enumeration value="1"/>
+         *                         <enumeration value="2"/>
+         *                         <enumeration value="3"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cPercurso", + "xPercurso", + "tpViagem", + "tpServ", + "tpAcomodacao", + "tpTrecho", + "dhViagem", + "dhConexao", + "prefixo", + "poltrona", + "plataforma", + "infTravessia" + }) + public static class InfViagem { + + @XmlElement(required = true) + protected String cPercurso; + @XmlElement(required = true) + protected String xPercurso; + @XmlElement(required = true) + protected String tpViagem; + @XmlElement(required = true) + protected String tpServ; + @XmlElement(required = true) + protected String tpAcomodacao; + @XmlElement(required = true) + protected String tpTrecho; + @XmlElement(required = true) + protected String dhViagem; + protected String dhConexao; + protected String prefixo; + protected String poltrona; + protected String plataforma; + protected TBPe.InfBPe.InfViagem.InfTravessia infTravessia; + + /** + * Obtém o valor da propriedade cPercurso. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPercurso() { + return cPercurso; + } + + /** + * Define o valor da propriedade cPercurso. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPercurso(String value) { + this.cPercurso = value; + } + + /** + * Obtém o valor da propriedade xPercurso. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXPercurso() { + return xPercurso; + } + + /** + * Define o valor da propriedade xPercurso. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXPercurso(String value) { + this.xPercurso = value; + } + + /** + * Obtém o valor da propriedade tpViagem. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpViagem() { + return tpViagem; + } + + /** + * Define o valor da propriedade tpViagem. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpViagem(String value) { + this.tpViagem = value; + } + + /** + * Obtém o valor da propriedade tpServ. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpServ() { + return tpServ; + } + + /** + * Define o valor da propriedade tpServ. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpServ(String value) { + this.tpServ = value; + } + + /** + * Obtém o valor da propriedade tpAcomodacao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpAcomodacao() { + return tpAcomodacao; + } + + /** + * Define o valor da propriedade tpAcomodacao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpAcomodacao(String value) { + this.tpAcomodacao = value; + } + + /** + * Obtém o valor da propriedade tpTrecho. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpTrecho() { + return tpTrecho; + } + + /** + * Define o valor da propriedade tpTrecho. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpTrecho(String value) { + this.tpTrecho = value; + } + + /** + * Obtém o valor da propriedade dhViagem. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhViagem() { + return dhViagem; + } + + /** + * Define o valor da propriedade dhViagem. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhViagem(String value) { + this.dhViagem = value; + } + + /** + * Obtém o valor da propriedade dhConexao. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhConexao() { + return dhConexao; + } + + /** + * Define o valor da propriedade dhConexao. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhConexao(String value) { + this.dhConexao = value; + } + + /** + * Obtém o valor da propriedade prefixo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrefixo() { + return prefixo; + } + + /** + * Define o valor da propriedade prefixo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrefixo(String value) { + this.prefixo = value; + } + + /** + * Obtém o valor da propriedade poltrona. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPoltrona() { + return poltrona; + } + + /** + * Define o valor da propriedade poltrona. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPoltrona(String value) { + this.poltrona = value; + } + + /** + * Obtém o valor da propriedade plataforma. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPlataforma() { + return plataforma; + } + + /** + * Define o valor da propriedade plataforma. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPlataforma(String value) { + this.plataforma = value; + } + + /** + * Obtém o valor da propriedade infTravessia. + * + * @return + * possible object is + * {@link TBPe.InfBPe.InfViagem.InfTravessia } + * + */ + public TBPe.InfBPe.InfViagem.InfTravessia getInfTravessia() { + return infTravessia; + } + + /** + * Define o valor da propriedade infTravessia. + * + * @param value + * allowed object is + * {@link TBPe.InfBPe.InfViagem.InfTravessia } + * + */ + public void setInfTravessia(TBPe.InfBPe.InfViagem.InfTravessia value) { + this.infTravessia = 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="tpVeiculo">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <whiteSpace value="preserve"/>
+             *               <enumeration value="01"/>
+             *               <enumeration value="02"/>
+             *               <enumeration value="03"/>
+             *               <enumeration value="04"/>
+             *               <enumeration value="05"/>
+             *               <enumeration value="06"/>
+             *               <enumeration value="07"/>
+             *               <enumeration value="08"/>
+             *               <enumeration value="09"/>
+             *               <enumeration value="10"/>
+             *               <enumeration value="11"/>
+             *               <enumeration value="12"/>
+             *               <enumeration value="13"/>
+             *               <enumeration value="14"/>
+             *               <enumeration value="15"/>
+             *               <enumeration value="16"/>
+             *               <enumeration value="17"/>
+             *               <enumeration value="18"/>
+             *               <enumeration value="19"/>
+             *               <enumeration value="20"/>
+             *               <enumeration value="21"/>
+             *               <enumeration value="22"/>
+             *               <enumeration value="23"/>
+             *               <enumeration value="24"/>
+             *               <enumeration value="25"/>
+             *               <enumeration value="26"/>
+             *               <enumeration value="27"/>
+             *               <enumeration value="28"/>
+             *               <enumeration value="29"/>
+             *               <enumeration value="99"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="sitVeiculo">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <whiteSpace value="preserve"/>
+             *               <enumeration value="1"/>
+             *               <enumeration value="2"/>
+             *               <enumeration value="3"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpVeiculo", + "sitVeiculo" + }) + public static class InfTravessia { + + @XmlElement(required = true) + protected String tpVeiculo; + @XmlElement(required = true) + protected String sitVeiculo; + + /** + * Obtém o valor da propriedade tpVeiculo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpVeiculo() { + return tpVeiculo; + } + + /** + * Define o valor da propriedade tpVeiculo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpVeiculo(String value) { + this.tpVeiculo = value; + } + + /** + * Obtém o valor da propriedade sitVeiculo. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSitVeiculo() { + return sitVeiculo; + } + + /** + * Define o valor da propriedade sitVeiculo. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSitVeiculo(String value) { + this.sitVeiculo = 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="tPag">
+         *           <simpleType>
+         *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *               <whiteSpace value="preserve"/>
+         *               <enumeration value="01"/>
+         *               <enumeration value="02"/>
+         *               <enumeration value="03"/>
+         *               <enumeration value="04"/>
+         *               <enumeration value="05"/>
+         *               <enumeration value="99"/>
+         *             </restriction>
+         *           </simpleType>
+         *         </element>
+         *         <element name="vPag" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+         *         <element name="card" minOccurs="0">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence>
+         *                   <element name="tpIntegra">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <whiteSpace value="preserve"/>
+         *                         <enumeration value="1"/>
+         *                         <enumeration value="2"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpj" minOccurs="0"/>
+         *                   <element name="tBand" minOccurs="0">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *                         <whiteSpace value="preserve"/>
+         *                         <enumeration value="01"/>
+         *                         <enumeration value="02"/>
+         *                         <enumeration value="03"/>
+         *                         <enumeration value="04"/>
+         *                         <enumeration value="05"/>
+         *                         <enumeration value="99"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                   <element name="cAut" minOccurs="0">
+         *                     <simpleType>
+         *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+         *                         <minLength value="1"/>
+         *                         <maxLength value="20"/>
+         *                       </restriction>
+         *                     </simpleType>
+         *                   </element>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tPag", + "vPag", + "card", + "xPag" + }) + public static class Pag { + + @XmlElement(required = true) + protected String tPag; + @XmlElement(required = true) + protected String vPag; + protected String xPag; + protected TBPe.InfBPe.Pag.Card card; + + /** + * Obtém o valor da propriedade tPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTPag() { + return tPag; + } + + /** + * Define o valor da propriedade tPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTPag(String value) { + this.tPag = value; + } + + /** + * Obtém o valor da propriedade vPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVPag() { + return vPag; + } + + /** + * Define o valor da propriedade vPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVPag(String value) { + this.vPag = value; + } + + /** + * Obtém o valor da propriedade xPag. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXPag() { + return xPag; + } + + /** + * Define o valor da propriedade xPag. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXPag(String value) { + this.xPag = value; + } + + /** + * Obtém o valor da propriedade card. + * + * @return + * possible object is + * {@link TBPe.InfBPe.Pag.Card } + * + */ + public TBPe.InfBPe.Pag.Card getCard() { + return card; + } + + /** + * Define o valor da propriedade card. + * + * @param value + * allowed object is + * {@link TBPe.InfBPe.Pag.Card } + * + */ + public void setCard(TBPe.InfBPe.Pag.Card value) { + this.card = 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="tpIntegra">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <whiteSpace value="preserve"/>
+             *               <enumeration value="1"/>
+             *               <enumeration value="2"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpj" minOccurs="0"/>
+             *         <element name="tBand" minOccurs="0">
+             *           <simpleType>
+             *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+             *               <whiteSpace value="preserve"/>
+             *               <enumeration value="01"/>
+             *               <enumeration value="02"/>
+             *               <enumeration value="03"/>
+             *               <enumeration value="04"/>
+             *               <enumeration value="05"/>
+             *               <enumeration value="99"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *         <element name="cAut" minOccurs="0">
+             *           <simpleType>
+             *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+             *               <minLength value="1"/>
+             *               <maxLength value="20"/>
+             *             </restriction>
+             *           </simpleType>
+             *         </element>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpIntegra", + "cnpj", + "tBand", + "cAut", + "xBand", + "nsuTrans", + "nsuHost", + "nParcelas" + }) + public static class Card { + + @XmlElement(required = true) + protected String tpIntegra; + @XmlElement(name = "CNPJ") + protected String cnpj; + protected String tBand; + protected String cAut; + protected String xBand; + protected String nsuTrans; + protected String nsuHost; + protected String nParcelas; + + /** + * Obtém o valor da propriedade tpIntegra. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTpIntegra() { + return tpIntegra; + } + + /** + * Define o valor da propriedade tpIntegra. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTpIntegra(String value) { + this.tpIntegra = value; + } + + /** + * Obtém o valor da propriedade cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade tBand. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTBand() { + return tBand; + } + + /** + * Define o valor da propriedade tBand. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTBand(String value) { + this.tBand = value; + } + + /** + * Obtém o valor da propriedade xBand. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXBand() { + return xBand; + } + + /** + * Define o valor da propriedade xBand. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXBand(String value) { + this.xBand = value; + } + + /** + * Obtém o valor da propriedade nsuTrans. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNsuTrans() { + return nsuTrans; + } + + /** + * Define o valor da propriedade nsuTrans. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNsuTrans(String value) { + this.xBand = value; + } + + /** + * Obtém o valor da propriedade nsuHost. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNsuHost() { + return nsuHost; + } + + /** + * Define o valor da propriedade nsuHost. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNsuHost(String value) { + this.nsuHost = value; + } + + /** + * Obtém o valor da propriedade nParcelas. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNParcelas() { + return nParcelas; + } + + /** + * Define o valor da propriedade nParcelas. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNParcelas(String value) { + this.nParcelas = value; + } + + /** + * Obtém o valor da propriedade cAut. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCAut() { + return cAut; + } + + /** + * Define o valor da propriedade cAut. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCAut(String value) { + this.cAut = 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="qrCodBPe">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <minLength value="50"/>
+     *               <maxLength value="1000"/>
+     *               <pattern value="((HTTPS?|https?)://.*\?chBPe=[0-9]{44}&tpAmb=[1-2](&sign=[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1})?)"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="boardPassBPe" minOccurs="0">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+     *               <minLength value="50"/>
+     *               <maxLength value="1000"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "qrCodBPe", + "boardPassBPe" + }) + public static class InfBPeSupl { + + @XmlElement(required = true) + protected String qrCodBPe; + protected String boardPassBPe; + + /** + * Obtém o valor da propriedade qrCodBPe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getQrCodBPe() { + return qrCodBPe; + } + + /** + * Define o valor da propriedade qrCodBPe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setQrCodBPe(String value) { + this.qrCodBPe = value; + } + + /** + * Obtém o valor da propriedade boardPassBPe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBoardPassBPe() { + return boardPassBPe; + } + + /** + * Define o valor da propriedade boardPassBPe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBoardPassBPe(String value) { + this.boardPassBPe = value; + } + + } + +} diff --git a/src/br/inf/portalfiscal/bpe/TConsSitBPe.java b/src/br/inf/portalfiscal/bpe/TConsSitBPe.java new file mode 100644 index 000000000..c40369f06 --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/TConsSitBPe.java @@ -0,0 +1,155 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.10.24 às 07:38:45 PM BRST +// + + +package br.inf.portalfiscal.bpe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Tipo Pedido de Consulta da Situação Atual do Bilhete de Passagem Eletrônico + * + *

Classe Java de TConsSitBPe complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TConsSitBPe">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/bpe}TAmb"/>
+ *         <element name="xServ" type="{http://www.portalfiscal.inf.br/bpe}TServ"/>
+ *         <element name="chBPe" type="{http://www.portalfiscal.inf.br/bpe}TChDFe"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/bpe}TVerConsSitBPe" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TConsSitBPe", propOrder = { + "tpAmb", + "xServ", + "chBPe" +}) +public class TConsSitBPe { + + @XmlElement(required = true) + protected String tpAmb; + @XmlElement(required = true) + protected String xServ; + @XmlElement(required = true) + protected String chBPe; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * 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 xServ. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXServ() { + return xServ; + } + + /** + * Define o valor da propriedade xServ. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXServ(String value) { + this.xServ = value; + } + + /** + * Obtém o valor da propriedade chBPe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChBPe() { + return chBPe; + } + + /** + * Define o valor da propriedade chBPe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChBPe(String value) { + this.chBPe = 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; + } + +} diff --git a/src/br/inf/portalfiscal/bpe/TEndeEmi.java b/src/br/inf/portalfiscal/bpe/TEndeEmi.java new file mode 100644 index 000000000..fd0bfb296 --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/TEndeEmi.java @@ -0,0 +1,371 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package br.inf.portalfiscal.bpe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Tipo Dados do Endereço + * + *

Classe Java de TEndeEmi complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEndeEmi">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="xLgr">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *               <maxLength value="60"/>
+ *               <minLength value="2"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="nro">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *               <maxLength value="60"/>
+ *               <minLength value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="xCpl" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *               <maxLength value="60"/>
+ *               <minLength value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="xBairro">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *               <maxLength value="60"/>
+ *               <minLength value="2"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cMun" type="{http://www.portalfiscal.inf.br/bpe}TCodMunIBGE"/>
+ *         <element name="xMun">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *               <maxLength value="60"/>
+ *               <minLength value="2"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="CEP" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{8}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="UF" type="{http://www.portalfiscal.inf.br/bpe}TUf_sem_EX"/>
+ *         <element name="fone" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{7,12}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="email" type="{http://www.portalfiscal.inf.br/bpe}TEmail" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEndeEmi", propOrder = { + "xLgr", + "nro", + "xCpl", + "xBairro", + "cMun", + "xMun", + "cep", + "uf", + "fone", + "email" +}) +public class TEndeEmi { + + @XmlElement(required = true) + protected String xLgr; + @XmlElement(required = true) + protected String nro; + protected String xCpl; + @XmlElement(required = true) + protected String xBairro; + @XmlElement(required = true) + protected String cMun; + @XmlElement(required = true) + protected String xMun; + @XmlElement(name = "CEP") + protected String cep; + @XmlElement(name = "UF", required = true) + @XmlSchemaType(name = "string") + protected TUfSemEX uf; + protected String fone; + protected String email; + + /** + * Obtém o valor da propriedade xLgr. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXLgr() { + return xLgr; + } + + /** + * Define o valor da propriedade xLgr. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXLgr(String value) { + this.xLgr = value; + } + + /** + * Obtém o valor da propriedade nro. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNro() { + return nro; + } + + /** + * Define o valor da propriedade nro. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNro(String value) { + this.nro = value; + } + + /** + * Obtém o valor da propriedade xCpl. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXCpl() { + return xCpl; + } + + /** + * Define o valor da propriedade xCpl. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXCpl(String value) { + this.xCpl = value; + } + + /** + * Obtém o valor da propriedade xBairro. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXBairro() { + return xBairro; + } + + /** + * Define o valor da propriedade xBairro. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXBairro(String value) { + this.xBairro = value; + } + + /** + * Obtém o valor da propriedade cMun. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCMun() { + return cMun; + } + + /** + * Define o valor da propriedade cMun. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCMun(String value) { + this.cMun = value; + } + + /** + * Obtém o valor da propriedade xMun. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMun() { + return xMun; + } + + /** + * Define o valor da propriedade xMun. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMun(String value) { + this.xMun = value; + } + + /** + * Obtém o valor da propriedade cep. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCEP() { + return cep; + } + + /** + * Define o valor da propriedade cep. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCEP(String value) { + this.cep = value; + } + + /** + * Obtém o valor da propriedade uf. + * + * @return + * possible object is + * {@link TUfSemEX } + * + */ + public TUfSemEX getUF() { + return uf; + } + + /** + * Define o valor da propriedade uf. + * + * @param value + * allowed object is + * {@link TUfSemEX } + * + */ + public void setUF(TUfSemEX value) { + this.uf = value; + } + + /** + * Obtém o valor da propriedade fone. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFone() { + return fone; + } + + /** + * Define o valor da propriedade fone. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFone(String value) { + this.fone = value; + } + + /** + * Obtém o valor da propriedade email. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEmail() { + return email; + } + + /** + * Define o valor da propriedade email. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEmail(String value) { + this.email = value; + } + +} diff --git a/src/br/inf/portalfiscal/bpe/TEndereco.java b/src/br/inf/portalfiscal/bpe/TEndereco.java new file mode 100644 index 000000000..28d3cab61 --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/TEndereco.java @@ -0,0 +1,439 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package br.inf.portalfiscal.bpe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Tipo Dados do Endereço + * + *

Classe Java de TEndereco complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEndereco">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="xLgr">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *               <maxLength value="255"/>
+ *               <minLength value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="nro">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *               <maxLength value="60"/>
+ *               <minLength value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="xCpl" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *               <maxLength value="60"/>
+ *               <minLength value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="xBairro">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *               <maxLength value="60"/>
+ *               <minLength value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cMun" type="{http://www.portalfiscal.inf.br/bpe}TCodMunIBGE"/>
+ *         <element name="xMun">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *               <maxLength value="60"/>
+ *               <minLength value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="CEP" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{8}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="UF" type="{http://www.portalfiscal.inf.br/bpe}TUf"/>
+ *         <element name="cPais" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{1,4}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="xPais" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TString">
+ *               <maxLength value="60"/>
+ *               <minLength value="1"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="fone" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <whiteSpace value="preserve"/>
+ *               <pattern value="[0-9]{7,12}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="email" type="{http://www.portalfiscal.inf.br/bpe}TEmail" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEndereco", propOrder = { + "xLgr", + "nro", + "xCpl", + "xBairro", + "cMun", + "xMun", + "cep", + "uf", + "cPais", + "xPais", + "fone", + "email" +}) +public class TEndereco { + + @XmlElement(required = true) + protected String xLgr; + @XmlElement(required = true) + protected String nro; + protected String xCpl; + @XmlElement(required = true) + protected String xBairro; + @XmlElement(required = true) + protected String cMun; + @XmlElement(required = true) + protected String xMun; + @XmlElement(name = "CEP") + protected String cep; + @XmlElement(name = "UF", required = true) + @XmlSchemaType(name = "string") + protected TUf uf; + protected String cPais; + protected String xPais; + protected String fone; + protected String email; + + /** + * Obtém o valor da propriedade xLgr. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXLgr() { + return xLgr; + } + + /** + * Define o valor da propriedade xLgr. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXLgr(String value) { + this.xLgr = value; + } + + /** + * Obtém o valor da propriedade nro. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNro() { + return nro; + } + + /** + * Define o valor da propriedade nro. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNro(String value) { + this.nro = value; + } + + /** + * Obtém o valor da propriedade xCpl. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXCpl() { + return xCpl; + } + + /** + * Define o valor da propriedade xCpl. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXCpl(String value) { + this.xCpl = value; + } + + /** + * Obtém o valor da propriedade xBairro. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXBairro() { + return xBairro; + } + + /** + * Define o valor da propriedade xBairro. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXBairro(String value) { + this.xBairro = value; + } + + /** + * Obtém o valor da propriedade cMun. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCMun() { + return cMun; + } + + /** + * Define o valor da propriedade cMun. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCMun(String value) { + this.cMun = value; + } + + /** + * Obtém o valor da propriedade xMun. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXMun() { + return xMun; + } + + /** + * Define o valor da propriedade xMun. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXMun(String value) { + this.xMun = value; + } + + /** + * Obtém o valor da propriedade cep. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCEP() { + return cep; + } + + /** + * Define o valor da propriedade cep. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCEP(String value) { + this.cep = value; + } + + /** + * Obtém o valor da propriedade uf. + * + * @return + * possible object is + * {@link TUf } + * + */ + public TUf getUF() { + return uf; + } + + /** + * Define o valor da propriedade uf. + * + * @param value + * allowed object is + * {@link TUf } + * + */ + public void setUF(TUf value) { + this.uf = value; + } + + /** + * Obtém o valor da propriedade cPais. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCPais() { + return cPais; + } + + /** + * Define o valor da propriedade cPais. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCPais(String value) { + this.cPais = value; + } + + /** + * Obtém o valor da propriedade xPais. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXPais() { + return xPais; + } + + /** + * Define o valor da propriedade xPais. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXPais(String value) { + this.xPais = value; + } + + /** + * Obtém o valor da propriedade fone. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFone() { + return fone; + } + + /** + * Define o valor da propriedade fone. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFone(String value) { + this.fone = value; + } + + /** + * Obtém o valor da propriedade email. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEmail() { + return email; + } + + /** + * Define o valor da propriedade email. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEmail(String value) { + this.email = value; + } + +} diff --git a/src/br/inf/portalfiscal/bpe/TEnviBPe.java b/src/br/inf/portalfiscal/bpe/TEnviBPe.java new file mode 100644 index 000000000..d1cd42dae --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/TEnviBPe.java @@ -0,0 +1,127 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package br.inf.portalfiscal.bpe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Tipo Pedido de Concessão de Autorização de BP-e + * + *

Classe Java de TEnviBPe complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEnviBPe">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="idLote" type="{http://www.portalfiscal.inf.br/bpe}TIdLote"/>
+ *         <element name="BPe" type="{http://www.portalfiscal.inf.br/bpe}TBPe"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/bpe}TVerBPe" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEnviBPe", propOrder = { + "idLote", + "bPe" +}) +public class TEnviBPe { + + @XmlElement(required = true) + protected String idLote; + @XmlElement(name = "BPe", required = true) + protected TBPe bPe; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade idLote. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdLote() { + return idLote; + } + + /** + * Define o valor da propriedade idLote. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdLote(String value) { + this.idLote = value; + } + + /** + * Obtém o valor da propriedade bPe. + * + * @return + * possible object is + * {@link TBPe } + * + */ + public TBPe getBPe() { + return bPe; + } + + /** + * Define o valor da propriedade bPe. + * + * @param value + * allowed object is + * {@link TBPe } + * + */ + public void setBPe(TBPe value) { + this.bPe = 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; + } + +} diff --git a/src/br/inf/portalfiscal/bpe/TEvento.java b/src/br/inf/portalfiscal/bpe/TEvento.java new file mode 100644 index 000000000..92ad7b890 --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/TEvento.java @@ -0,0 +1,599 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.29 às 06:11:44 PM BRT +// + + +package br.inf.portalfiscal.bpe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + +import org.w3c.dom.Element; + + +/** + * Tipo Evento + * + *

Classe Java de TEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEvento">
+ *   <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="cOrgao" type="{http://www.portalfiscal.inf.br/bpe}TCOrgaoIBGE"/>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/bpe}TAmb"/>
+ *                   <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpj"/>
+ *                   <element name="chBPe" type="{http://www.portalfiscal.inf.br/bpe}TChDFe"/>
+ *                   <element name="dhEvento" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+ *                   <element name="tpEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]|0?[1-9]"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="detEvento">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <any processContents='skip'/>
+ *                           </sequence>
+ *                           <attribute name="versaoEvento" use="required">
+ *                             <simpleType>
+ *                               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                 <whiteSpace value="preserve"/>
+ *                                 <pattern value="1\.(0[0-9]|[1-9][0-9])"/>
+ *                               </restriction>
+ *                             </simpleType>
+ *                           </attribute>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *                 <attribute name="Id" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{52}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/bpe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEvento", propOrder = { + "infEvento", +// "signature" +}) +@XmlRootElement(name = "eventoBPe") +public class TEvento { + + @XmlElement(required = true) + protected TEvento.InfEvento infEvento; +// @XmlElement(name = "Signature" required = true) +// protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento } + * + */ + public void setInfEvento(TEvento.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="cOrgao" type="{http://www.portalfiscal.inf.br/bpe}TCOrgaoIBGE"/>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/bpe}TAmb"/>
+     *         <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpj"/>
+     *         <element name="chBPe" type="{http://www.portalfiscal.inf.br/bpe}TChDFe"/>
+     *         <element name="dhEvento" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+     *         <element name="tpEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]|0?[1-9]"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="detEvento">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <any processContents='skip'/>
+     *                 </sequence>
+     *                 <attribute name="versaoEvento" use="required">
+     *                   <simpleType>
+     *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                       <whiteSpace value="preserve"/>
+     *                       <pattern value="1\.(0[0-9]|[1-9][0-9])"/>
+     *                     </restriction>
+     *                   </simpleType>
+     *                 </attribute>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *       <attribute name="Id" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{52}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cOrgao", + "tpAmb", + "cnpj", + "chBPe", + "dhEvento", + "tpEvento", + "nSeqEvento", + "detEvento" + }) + public static class InfEvento { + + @XmlElement(required = true) + protected String cOrgao; + @XmlElement(required = true) + protected String tpAmb; + @XmlElement(name = "CNPJ", required = true) + protected String cnpj; + @XmlElement(required = true) + protected String chBPe; + @XmlElement(required = true) + protected String dhEvento; + @XmlElement(required = true) + protected String tpEvento; + @XmlElement(required = true) + protected String nSeqEvento; + @XmlElement(required = true) + protected TEvento.InfEvento.DetEvento detEvento; + @XmlAttribute(name = "Id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * 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 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 cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade chBPe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChBPe() { + return chBPe; + } + + /** + * Define o valor da propriedade chBPe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChBPe(String value) { + this.chBPe = value; + } + + /** + * Obtém o valor da propriedade dhEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhEvento() { + return dhEvento; + } + + /** + * Define o valor da propriedade dhEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhEvento(String value) { + this.dhEvento = 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 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 detEvento. + * + * @return + * possible object is + * {@link TEvento.InfEvento.DetEvento } + * + */ + public TEvento.InfEvento.DetEvento getDetEvento() { + return detEvento; + } + + /** + * Define o valor da propriedade detEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento.DetEvento } + * + */ + public void setDetEvento(TEvento.InfEvento.DetEvento value) { + this.detEvento = 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; + } + + + /** + *

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>
+         *         <any processContents='skip'/>
+         *       </sequence>
+         *       <attribute name="versaoEvento" use="required">
+         *         <simpleType>
+         *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *             <whiteSpace value="preserve"/>
+         *             <pattern value="1\.(0[0-9]|[1-9][0-9])"/>
+         *           </restriction>
+         *         </simpleType>
+         *       </attribute>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "any" + }) + public static class DetEvento { + + @XmlAnyElement + protected Element any; + @XmlAttribute(name = "versaoEvento", required = true) + protected String versaoEvento; + + + /** + * Obtém o valor da propriedade any. + * + * @return + * possible object is + * {@link Element } + * + */ + public Element getAny() { + return any; + } + + /** + * Define o valor da propriedade any. + * + * @param value + * allowed object is + * {@link Element } + * + */ + public void setAny(Element value) { + this.any = value; + } + + /** + * Obtém o valor da propriedade versaoEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersaoEvento() { + return versaoEvento; + } + + /** + * Define o valor da propriedade versaoEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersaoEvento(String value) { + this.versaoEvento = value; + } + + } + + } + +} diff --git a/src/br/inf/portalfiscal/bpe/TImp.java b/src/br/inf/portalfiscal/bpe/TImp.java new file mode 100644 index 000000000..93b8d683b --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/TImp.java @@ -0,0 +1,1193 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package br.inf.portalfiscal.bpe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Tipo Dados do Imposto BP-e + * + *

Classe Java de TImp complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TImp">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice>
+ *         <element name="ICMS00">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="CST">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="00"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="vBC" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                   <element name="pICMS" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+ *                   <element name="vICMS" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="ICMS20">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="CST">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="20"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="pRedBC" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302Opc"/>
+ *                   <element name="vBC" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                   <element name="pICMS" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+ *                   <element name="vICMS" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="ICMS45">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="CST">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="40"/>
+ *                         <enumeration value="41"/>
+ *                         <enumeration value="51"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="ICMS90">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="CST">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="90"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="pRedBC" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302Opc" minOccurs="0"/>
+ *                   <element name="vBC" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                   <element name="pICMS" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+ *                   <element name="vICMS" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                   <element name="vCred" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302" minOccurs="0"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="ICMSOutraUF">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="CST">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="90"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="pRedBCOutraUF" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302Opc" minOccurs="0"/>
+ *                   <element name="vBCOutraUF" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                   <element name="pICMSOutraUF" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+ *                   <element name="vICMSOutraUF" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="ICMSSN">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="CST">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="90"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="indSN">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <enumeration value="1"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TImp", propOrder = { + "icms00", + "icms20", + "icms45", + "icms90", + "icmsOutraUF", + "icmssn" +}) +public class TImp { + + @XmlElement(name = "ICMS00") + protected TImp.ICMS00 icms00; + @XmlElement(name = "ICMS20") + protected TImp.ICMS20 icms20; + @XmlElement(name = "ICMS45") + protected TImp.ICMS45 icms45; + @XmlElement(name = "ICMS90") + protected TImp.ICMS90 icms90; + @XmlElement(name = "ICMSOutraUF") + protected TImp.ICMSOutraUF icmsOutraUF; + @XmlElement(name = "ICMSSN") + protected TImp.ICMSSN icmssn; + + /** + * Obtém o valor da propriedade icms00. + * + * @return + * possible object is + * {@link TImp.ICMS00 } + * + */ + public TImp.ICMS00 getICMS00() { + return icms00; + } + + /** + * Define o valor da propriedade icms00. + * + * @param value + * allowed object is + * {@link TImp.ICMS00 } + * + */ + public void setICMS00(TImp.ICMS00 value) { + this.icms00 = value; + } + + /** + * Obtém o valor da propriedade icms20. + * + * @return + * possible object is + * {@link TImp.ICMS20 } + * + */ + public TImp.ICMS20 getICMS20() { + return icms20; + } + + /** + * Define o valor da propriedade icms20. + * + * @param value + * allowed object is + * {@link TImp.ICMS20 } + * + */ + public void setICMS20(TImp.ICMS20 value) { + this.icms20 = value; + } + + /** + * Obtém o valor da propriedade icms45. + * + * @return + * possible object is + * {@link TImp.ICMS45 } + * + */ + public TImp.ICMS45 getICMS45() { + return icms45; + } + + /** + * Define o valor da propriedade icms45. + * + * @param value + * allowed object is + * {@link TImp.ICMS45 } + * + */ + public void setICMS45(TImp.ICMS45 value) { + this.icms45 = value; + } + + /** + * Obtém o valor da propriedade icms90. + * + * @return + * possible object is + * {@link TImp.ICMS90 } + * + */ + public TImp.ICMS90 getICMS90() { + return icms90; + } + + /** + * Define o valor da propriedade icms90. + * + * @param value + * allowed object is + * {@link TImp.ICMS90 } + * + */ + public void setICMS90(TImp.ICMS90 value) { + this.icms90 = value; + } + + /** + * Obtém o valor da propriedade icmsOutraUF. + * + * @return + * possible object is + * {@link TImp.ICMSOutraUF } + * + */ + public TImp.ICMSOutraUF getICMSOutraUF() { + return icmsOutraUF; + } + + /** + * Define o valor da propriedade icmsOutraUF. + * + * @param value + * allowed object is + * {@link TImp.ICMSOutraUF } + * + */ + public void setICMSOutraUF(TImp.ICMSOutraUF value) { + this.icmsOutraUF = value; + } + + /** + * Obtém o valor da propriedade icmssn. + * + * @return + * possible object is + * {@link TImp.ICMSSN } + * + */ + public TImp.ICMSSN getICMSSN() { + return icmssn; + } + + /** + * Define o valor da propriedade icmssn. + * + * @param value + * allowed object is + * {@link TImp.ICMSSN } + * + */ + public void setICMSSN(TImp.ICMSSN value) { + this.icmssn = 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="CST">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="00"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="vBC" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *         <element name="pICMS" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+     *         <element name="vICMS" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cst", + "vbc", + "picms", + "vicms" + }) + public static class ICMS00 { + + @XmlElement(name = "CST", required = true) + protected String cst; + @XmlElement(name = "vBC", required = true) + protected String vbc; + @XmlElement(name = "pICMS", required = true) + protected String picms; + @XmlElement(name = "vICMS", required = true) + protected String vicms; + + /** + * Obtém o valor da propriedade cst. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCST() { + return cst; + } + + /** + * Define o valor da propriedade cst. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCST(String value) { + this.cst = value; + } + + /** + * Obtém o valor da propriedade vbc. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVBC() { + return vbc; + } + + /** + * Define o valor da propriedade vbc. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVBC(String value) { + this.vbc = value; + } + + /** + * Obtém o valor da propriedade picms. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPICMS() { + return picms; + } + + /** + * Define o valor da propriedade picms. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPICMS(String value) { + this.picms = value; + } + + /** + * Obtém o valor da propriedade vicms. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVICMS() { + return vicms; + } + + /** + * Define o valor da propriedade vicms. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVICMS(String value) { + this.vicms = 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="CST">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="20"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="pRedBC" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302Opc"/>
+     *         <element name="vBC" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *         <element name="pICMS" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+     *         <element name="vICMS" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cst", + "pRedBC", + "vbc", + "picms", + "vicms" + }) + public static class ICMS20 { + + @XmlElement(name = "CST", required = true) + protected String cst; + @XmlElement(required = true) + protected String pRedBC; + @XmlElement(name = "vBC", required = true) + protected String vbc; + @XmlElement(name = "pICMS", required = true) + protected String picms; + @XmlElement(name = "vICMS", required = true) + protected String vicms; + + /** + * Obtém o valor da propriedade cst. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCST() { + return cst; + } + + /** + * Define o valor da propriedade cst. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCST(String value) { + this.cst = value; + } + + /** + * Obtém o valor da propriedade pRedBC. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPRedBC() { + return pRedBC; + } + + /** + * Define o valor da propriedade pRedBC. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPRedBC(String value) { + this.pRedBC = value; + } + + /** + * Obtém o valor da propriedade vbc. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVBC() { + return vbc; + } + + /** + * Define o valor da propriedade vbc. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVBC(String value) { + this.vbc = value; + } + + /** + * Obtém o valor da propriedade picms. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPICMS() { + return picms; + } + + /** + * Define o valor da propriedade picms. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPICMS(String value) { + this.picms = value; + } + + /** + * Obtém o valor da propriedade vicms. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVICMS() { + return vicms; + } + + /** + * Define o valor da propriedade vicms. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVICMS(String value) { + this.vicms = 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="CST">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="40"/>
+     *               <enumeration value="41"/>
+     *               <enumeration value="51"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cst" + }) + public static class ICMS45 { + + @XmlElement(name = "CST", required = true) + protected String cst; + + /** + * Obtém o valor da propriedade cst. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCST() { + return cst; + } + + /** + * Define o valor da propriedade cst. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCST(String value) { + this.cst = 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="CST">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="90"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="pRedBC" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302Opc" minOccurs="0"/>
+     *         <element name="vBC" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *         <element name="pICMS" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+     *         <element name="vICMS" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *         <element name="vCred" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cst", + "pRedBC", + "vbc", + "picms", + "vicms", + "vCred" + }) + public static class ICMS90 { + + @XmlElement(name = "CST", required = true) + protected String cst; + protected String pRedBC; + @XmlElement(name = "vBC", required = true) + protected String vbc; + @XmlElement(name = "pICMS", required = true) + protected String picms; + @XmlElement(name = "vICMS", required = true) + protected String vicms; + protected String vCred; + + /** + * Obtém o valor da propriedade cst. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCST() { + return cst; + } + + /** + * Define o valor da propriedade cst. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCST(String value) { + this.cst = value; + } + + /** + * Obtém o valor da propriedade pRedBC. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPRedBC() { + return pRedBC; + } + + /** + * Define o valor da propriedade pRedBC. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPRedBC(String value) { + this.pRedBC = value; + } + + /** + * Obtém o valor da propriedade vbc. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVBC() { + return vbc; + } + + /** + * Define o valor da propriedade vbc. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVBC(String value) { + this.vbc = value; + } + + /** + * Obtém o valor da propriedade picms. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPICMS() { + return picms; + } + + /** + * Define o valor da propriedade picms. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPICMS(String value) { + this.picms = value; + } + + /** + * Obtém o valor da propriedade vicms. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVICMS() { + return vicms; + } + + /** + * Define o valor da propriedade vicms. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVICMS(String value) { + this.vicms = value; + } + + /** + * Obtém o valor da propriedade vCred. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCred() { + return vCred; + } + + /** + * Define o valor da propriedade vCred. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCred(String value) { + this.vCred = 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="CST">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="90"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="pRedBCOutraUF" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302Opc" minOccurs="0"/>
+     *         <element name="vBCOutraUF" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *         <element name="pICMSOutraUF" type="{http://www.portalfiscal.inf.br/bpe}TDec_0302"/>
+     *         <element name="vICMSOutraUF" type="{http://www.portalfiscal.inf.br/bpe}TDec_1302"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cst", + "pRedBCOutraUF", + "vbcOutraUF", + "picmsOutraUF", + "vicmsOutraUF" + }) + public static class ICMSOutraUF { + + @XmlElement(name = "CST", required = true) + protected String cst; + protected String pRedBCOutraUF; + @XmlElement(name = "vBCOutraUF", required = true) + protected String vbcOutraUF; + @XmlElement(name = "pICMSOutraUF", required = true) + protected String picmsOutraUF; + @XmlElement(name = "vICMSOutraUF", required = true) + protected String vicmsOutraUF; + + /** + * Obtém o valor da propriedade cst. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCST() { + return cst; + } + + /** + * Define o valor da propriedade cst. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCST(String value) { + this.cst = value; + } + + /** + * Obtém o valor da propriedade pRedBCOutraUF. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPRedBCOutraUF() { + return pRedBCOutraUF; + } + + /** + * Define o valor da propriedade pRedBCOutraUF. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPRedBCOutraUF(String value) { + this.pRedBCOutraUF = value; + } + + /** + * Obtém o valor da propriedade vbcOutraUF. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVBCOutraUF() { + return vbcOutraUF; + } + + /** + * Define o valor da propriedade vbcOutraUF. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVBCOutraUF(String value) { + this.vbcOutraUF = value; + } + + /** + * Obtém o valor da propriedade picmsOutraUF. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPICMSOutraUF() { + return picmsOutraUF; + } + + /** + * Define o valor da propriedade picmsOutraUF. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPICMSOutraUF(String value) { + this.picmsOutraUF = value; + } + + /** + * Obtém o valor da propriedade vicmsOutraUF. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVICMSOutraUF() { + return vicmsOutraUF; + } + + /** + * Define o valor da propriedade vicmsOutraUF. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVICMSOutraUF(String value) { + this.vicmsOutraUF = 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="CST">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="90"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="indSN">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <enumeration value="1"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cst", + "indSN" + }) + public static class ICMSSN { + + @XmlElement(name = "CST", required = true) + protected String cst; + @XmlElement(required = true) + protected String indSN; + + /** + * Obtém o valor da propriedade cst. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCST() { + return cst; + } + + /** + * Define o valor da propriedade cst. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCST(String value) { + this.cst = value; + } + + /** + * Obtém o valor da propriedade indSN. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndSN() { + return indSN; + } + + /** + * Define o valor da propriedade indSN. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndSN(String value) { + this.indSN = value; + } + + } + +} diff --git a/src/br/inf/portalfiscal/bpe/TProcEvento.java b/src/br/inf/portalfiscal/bpe/TProcEvento.java new file mode 100644 index 000000000..e4137c4ed --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/TProcEvento.java @@ -0,0 +1,154 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.29 às 06:11:44 PM BRT +// + + +package br.inf.portalfiscal.bpe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Tipo procEvento + * + *

Classe Java de TProcEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TProcEvento">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="eventoBPe" type="{http://www.portalfiscal.inf.br/bpe}TEvento"/>
+ *         <element name="retEventoBPe" type="{http://www.portalfiscal.inf.br/bpe}TRetEvento"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/bpe}TVerEvento" />
+ *       <attribute name="ipTransmissor" type="{http://www.portalfiscal.inf.br/bpe}TIPv4" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TProcEvento", propOrder = { + "eventoBPe", + "retEventoBPe" +}) +public class TProcEvento { + + @XmlElement(required = true) + protected TEvento eventoBPe; + @XmlElement(required = true) + protected TRetEvento retEventoBPe; + @XmlAttribute(name = "versao", required = true) + protected String versao; + @XmlAttribute(name = "ipTransmissor") + protected String ipTransmissor; + + /** + * Obtém o valor da propriedade eventoBPe. + * + * @return + * possible object is + * {@link TEvento } + * + */ + public TEvento getEventoBPe() { + return eventoBPe; + } + + /** + * Define o valor da propriedade eventoBPe. + * + * @param value + * allowed object is + * {@link TEvento } + * + */ + public void setEventoBPe(TEvento value) { + this.eventoBPe = value; + } + + /** + * Obtém o valor da propriedade retEventoBPe. + * + * @return + * possible object is + * {@link TRetEvento } + * + */ + public TRetEvento getRetEventoBPe() { + return retEventoBPe; + } + + /** + * Define o valor da propriedade retEventoBPe. + * + * @param value + * allowed object is + * {@link TRetEvento } + * + */ + public void setRetEventoBPe(TRetEvento value) { + this.retEventoBPe = 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; + } + + /** + * Obtém o valor da propriedade ipTransmissor. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIpTransmissor() { + return ipTransmissor; + } + + /** + * Define o valor da propriedade ipTransmissor. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIpTransmissor(String value) { + this.ipTransmissor = value; + } + +} diff --git a/src/br/inf/portalfiscal/bpe/TProtBPe.java b/src/br/inf/portalfiscal/bpe/TProtBPe.java new file mode 100644 index 000000000..5fc0bd3c5 --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/TProtBPe.java @@ -0,0 +1,436 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package br.inf.portalfiscal.bpe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + * Tipo Protocolo de status resultado do processamento do BP-e (Modelo 63) + * + *

Classe Java de TProtBPe complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TProtBPe">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="infProt">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/bpe}TAmb"/>
+ *                   <element name="verAplic" type="{http://www.portalfiscal.inf.br/bpe}TVerAplic"/>
+ *                   <element name="chBPe" type="{http://www.portalfiscal.inf.br/bpe}TChDFe"/>
+ *                   <element name="dhRecbto" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+ *                   <element name="nProt" type="{http://www.portalfiscal.inf.br/bpe}TProt" minOccurs="0"/>
+ *                   <element name="digVal" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType" minOccurs="0"/>
+ *                   <element name="cStat">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.portalfiscal.inf.br/bpe}TStat">
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="xMotivo" type="{http://www.portalfiscal.inf.br/bpe}TMotivo"/>
+ *                 </sequence>
+ *                 <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *               </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/bpe}TVerBPe" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TProtBPe", propOrder = { + "infProt", +// "signature" +}) +public class TProtBPe { + + @XmlElement(required = true) + protected TProtBPe.InfProt infProt; +// @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 infProt. + * + * @return + * possible object is + * {@link TProtBPe.InfProt } + * + */ + public TProtBPe.InfProt getInfProt() { + return infProt; + } + + /** + * Define o valor da propriedade infProt. + * + * @param value + * allowed object is + * {@link TProtBPe.InfProt } + * + */ + public void setInfProt(TProtBPe.InfProt value) { + this.infProt = 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/bpe}TAmb"/>
+     *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/bpe}TVerAplic"/>
+     *         <element name="chBPe" type="{http://www.portalfiscal.inf.br/bpe}TChDFe"/>
+     *         <element name="dhRecbto" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+     *         <element name="nProt" type="{http://www.portalfiscal.inf.br/bpe}TProt" minOccurs="0"/>
+     *         <element name="digVal" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType" minOccurs="0"/>
+     *         <element name="cStat">
+     *           <simpleType>
+     *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TStat">
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/bpe}TMotivo"/>
+     *       </sequence>
+     *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tpAmb", + "verAplic", + "chBPe", + "dhRecbto", + "nProt", + /*"digVal",*/ + "cStat", + "xMotivo" + }) + public static class InfProt { + + @XmlElement(required = true) + protected String tpAmb; + @XmlElement(required = true) + protected String verAplic; + @XmlElement(required = true) + protected String chBPe; + @XmlElement(required = true) + protected String dhRecbto; + protected String nProt; +// protected byte[] digVal; + @XmlElement(required = true) + protected String cStat; + @XmlElement(required = true) + protected String xMotivo; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + 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 chBPe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChBPe() { + return chBPe; + } + + /** + * Define o valor da propriedade chBPe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChBPe(String value) { + this.chBPe = value; + } + + /** + * Obtém o valor da propriedade dhRecbto. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhRecbto() { + return dhRecbto; + } + + /** + * Define o valor da propriedade dhRecbto. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhRecbto(String value) { + this.dhRecbto = 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 digVal. +// * +// * @return +// * possible object is +// * byte[] +// */ +// public byte[] getDigVal() { +// return digVal; +// } +// +// /** +// * Define o valor da propriedade digVal. +// * +// * @param value +// * allowed object is +// * byte[] +// */ +// public void setDigVal(byte[] value) { +// this.digVal = 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 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; + } + + } + +} diff --git a/src/br/inf/portalfiscal/bpe/TRetBPe.java b/src/br/inf/portalfiscal/bpe/TRetBPe.java new file mode 100644 index 000000000..47a2099d5 --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/TRetBPe.java @@ -0,0 +1,240 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package br.inf.portalfiscal.bpe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Tipo Retorno do Pedido de Autorização de BP-e (Modelo 63) + * + *

Classe Java de TRetBPe complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TRetBPe">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/bpe}TAmb"/>
+ *         <element name="cUF" type="{http://www.portalfiscal.inf.br/bpe}TCodUfIBGE"/>
+ *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/bpe}TVerAplic"/>
+ *         <element name="cStat" type="{http://www.portalfiscal.inf.br/bpe}TStat"/>
+ *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/bpe}TMotivo"/>
+ *         <element name="protBPe" type="{http://www.portalfiscal.inf.br/bpe}TProtBPe" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/bpe}TVerBPe" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlRootElement(name = "retBPe") +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "retBPe", propOrder = { + "tpAmb", + "cuf", + "verAplic", + "cStat", + "xMotivo", + "protBPe" +}) +public class TRetBPe { + + @XmlElement(required = true) + protected String tpAmb; + @XmlElement(name = "cUF", required = true) + protected String cuf; + @XmlElement(required = true) + protected String verAplic; + @XmlElement(required = true) + protected String cStat; + @XmlElement(required = true) + protected String xMotivo; + protected TProtBPe protBPe; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * 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 cuf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCUF() { + return cuf; + } + + /** + * Define o valor da propriedade cuf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCUF(String value) { + this.cuf = 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 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 protBPe. + * + * @return + * possible object is + * {@link TProtBPe } + * + */ + public TProtBPe getProtBPe() { + return protBPe; + } + + /** + * Define o valor da propriedade protBPe. + * + * @param value + * allowed object is + * {@link TProtBPe } + * + */ + public void setProtBPe(TProtBPe value) { + this.protBPe = 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; + } + +} diff --git a/src/br/inf/portalfiscal/bpe/TRetConsStatServ.java b/src/br/inf/portalfiscal/bpe/TRetConsStatServ.java new file mode 100644 index 000000000..e7ec791d0 --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/TRetConsStatServ.java @@ -0,0 +1,343 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.07 às 09:45:52 PM BRT +// + + +package br.inf.portalfiscal.bpe; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Tipo Resultado da Consulta do Status do Serviço BP-e + * + *

Classe Java de TRetConsStatServ complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TRetConsStatServ">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/bpe}TAmb"/>
+ *         <element name="verAplic">
+ *           <simpleType>
+ *             <restriction base="{http://www.portalfiscal.inf.br/bpe}TVerAplic">
+ *               <whiteSpace value="collapse"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="cStat" type="{http://www.portalfiscal.inf.br/bpe}TStat"/>
+ *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/bpe}TMotivo"/>
+ *         <element name="cUF" type="{http://www.portalfiscal.inf.br/bpe}TCodUfIBGE"/>
+ *         <element name="dhRecbto" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+ *         <element name="tMed" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+ *               <pattern value="[0-9]{1,4}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="dhRetorno" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC" minOccurs="0"/>
+ *         <element name="xObs" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <minLength value="1"/>
+ *               <maxLength value="255"/>
+ *               <whiteSpace value="collapse"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/bpe}TVerConsStat" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlRootElement(name = "retConsStatServBPe") +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "retConsStatServBPe", propOrder = { + "tpAmb", + "verAplic", + "cStat", + "xMotivo", + "cuf", + "dhRecbto", + "tMed", + "dhRetorno", + "xObs" +}) +public class TRetConsStatServ { + + @XmlElement(required = true) + protected String tpAmb; + @XmlElement(required = true) + protected String verAplic; + @XmlElement(required = true) + protected String cStat; + @XmlElement(required = true) + protected String xMotivo; + @XmlElement(name = "cUF", required = true) + protected String cuf; + @XmlElement(required = true) + protected String dhRecbto; + protected BigInteger tMed; + protected String dhRetorno; + protected String xObs; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * 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 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 cuf. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCUF() { + return cuf; + } + + /** + * Define o valor da propriedade cuf. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCUF(String value) { + this.cuf = value; + } + + /** + * Obtém o valor da propriedade dhRecbto. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhRecbto() { + return dhRecbto; + } + + /** + * Define o valor da propriedade dhRecbto. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhRecbto(String value) { + this.dhRecbto = value; + } + + /** + * Obtém o valor da propriedade tMed. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getTMed() { + return tMed; + } + + /** + * Define o valor da propriedade tMed. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setTMed(BigInteger value) { + this.tMed = value; + } + + /** + * Obtém o valor da propriedade dhRetorno. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhRetorno() { + return dhRetorno; + } + + /** + * Define o valor da propriedade dhRetorno. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhRetorno(String value) { + this.dhRetorno = value; + } + + /** + * Obtém o valor da propriedade xObs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXObs() { + return xObs; + } + + /** + * Define o valor da propriedade xObs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXObs(String value) { + this.xObs = 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; + } + +} diff --git a/src/br/inf/portalfiscal/bpe/TRetEvento.java b/src/br/inf/portalfiscal/bpe/TRetEvento.java new file mode 100644 index 000000000..818330091 --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/TRetEvento.java @@ -0,0 +1,571 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.29 às 06:11:44 PM BRT +// + + +package br.inf.portalfiscal.bpe; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.w3._2000._09.xmldsig_.SignatureType; + + +/** + * 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/bpe}TAmb"/>
+ *                   <element name="verAplic" type="{http://www.portalfiscal.inf.br/bpe}TVerAplic"/>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/bpe}TCOrgaoIBGE"/>
+ *                   <element name="cStat" type="{http://www.portalfiscal.inf.br/bpe}TStat"/>
+ *                   <element name="xMotivo" type="{http://www.portalfiscal.inf.br/bpe}TMotivo"/>
+ *                   <element name="chBPe" type="{http://www.portalfiscal.inf.br/bpe}TChDFe" 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/bpe}TString">
+ *                         <minLength value="4"/>
+ *                         <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="[1-9][0-9]|0?[1-9]"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="dhRegEvento" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC" minOccurs="0"/>
+ *                   <element name="nProt" type="{http://www.portalfiscal.inf.br/bpe}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">
+ *         <simpleType>
+ *           <restriction base="{http://www.portalfiscal.inf.br/bpe}TVerEvento">
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlRootElement(name = "retEventoBPe") +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "retEventoBPe", propOrder = { + "infEvento", +// "signature" +}) +public class TRetEvento { + + @XmlElement(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/bpe}TAmb"/>
+     *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/bpe}TVerAplic"/>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/bpe}TCOrgaoIBGE"/>
+     *         <element name="cStat" type="{http://www.portalfiscal.inf.br/bpe}TStat"/>
+     *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/bpe}TMotivo"/>
+     *         <element name="chBPe" type="{http://www.portalfiscal.inf.br/bpe}TChDFe" 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/bpe}TString">
+     *               <minLength value="4"/>
+     *               <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="[1-9][0-9]|0?[1-9]"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="dhRegEvento" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC" minOccurs="0"/>
+     *         <element name="nProt" type="{http://www.portalfiscal.inf.br/bpe}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", + "chBPe", + "tpEvento", + "xEvento", + "nSeqEvento", + "dhRegEvento", + "nProt" + }) + public static class InfEvento { + + @XmlElement(required = true) + protected String tpAmb; + @XmlElement(required = true) + protected String verAplic; + @XmlElement(required = true) + protected String cOrgao; + @XmlElement(required = true) + protected String cStat; + @XmlElement(required = true) + protected String xMotivo; + protected String chBPe; + protected String tpEvento; + protected String xEvento; + protected String nSeqEvento; + protected String dhRegEvento; + 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 chBPe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChBPe() { + return chBPe; + } + + /** + * Define o valor da propriedade chBPe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChBPe(String value) { + this.chBPe = 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 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; + } + + } + +} diff --git a/src/br/inf/portalfiscal/bpe/TUf.java b/src/br/inf/portalfiscal/bpe/TUf.java new file mode 100644 index 000000000..1c7379403 --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/TUf.java @@ -0,0 +1,98 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package br.inf.portalfiscal.bpe; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUf. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUf">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *     <enumeration value="EX"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUf") +@XmlEnum +public enum TUf { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO, + EX; + + public String value() { + return name(); + } + + public static TUf fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/br/inf/portalfiscal/bpe/TUfSemEX.java b/src/br/inf/portalfiscal/bpe/TUfSemEX.java new file mode 100644 index 000000000..9a070b4cd --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/TUfSemEX.java @@ -0,0 +1,96 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package br.inf.portalfiscal.bpe; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TUf_sem_EX. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + *

+ *

+ * <simpleType name="TUf_sem_EX">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <whiteSpace value="preserve"/>
+ *     <enumeration value="AC"/>
+ *     <enumeration value="AL"/>
+ *     <enumeration value="AM"/>
+ *     <enumeration value="AP"/>
+ *     <enumeration value="BA"/>
+ *     <enumeration value="CE"/>
+ *     <enumeration value="DF"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="GO"/>
+ *     <enumeration value="MA"/>
+ *     <enumeration value="MG"/>
+ *     <enumeration value="MS"/>
+ *     <enumeration value="MT"/>
+ *     <enumeration value="PA"/>
+ *     <enumeration value="PB"/>
+ *     <enumeration value="PE"/>
+ *     <enumeration value="PI"/>
+ *     <enumeration value="PR"/>
+ *     <enumeration value="RJ"/>
+ *     <enumeration value="RN"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RR"/>
+ *     <enumeration value="RS"/>
+ *     <enumeration value="SC"/>
+ *     <enumeration value="SE"/>
+ *     <enumeration value="SP"/>
+ *     <enumeration value="TO"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TUf_sem_EX") +@XmlEnum +public enum TUfSemEX { + + AC, + AL, + AM, + AP, + BA, + CE, + DF, + ES, + GO, + MA, + MG, + MS, + MT, + PA, + PB, + PE, + PI, + PR, + RJ, + RN, + RO, + RR, + RS, + SC, + SE, + SP, + TO; + + public String value() { + return name(); + } + + public static TUfSemEX fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/br/inf/portalfiscal/bpe/evento/TEvento.java b/src/br/inf/portalfiscal/bpe/evento/TEvento.java new file mode 100644 index 000000000..2bfa9fa06 --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/evento/TEvento.java @@ -0,0 +1,599 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.29 às 06:11:44 PM BRT +// + + +package br.inf.portalfiscal.bpe.evento; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + +import org.w3c.dom.Element; + + +/** + * Tipo Evento + * + *

Classe Java de TEvento complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TEvento">
+ *   <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="cOrgao" type="{http://www.portalfiscal.inf.br/bpe}TCOrgaoIBGE"/>
+ *                   <element name="tpAmb" type="{http://www.portalfiscal.inf.br/bpe}TAmb"/>
+ *                   <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpj"/>
+ *                   <element name="chBPe" type="{http://www.portalfiscal.inf.br/bpe}TChDFe"/>
+ *                   <element name="dhEvento" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+ *                   <element name="tpEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[0-9]{6}"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="nSeqEvento">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <whiteSpace value="preserve"/>
+ *                         <pattern value="[1-9][0-9]|0?[1-9]"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="detEvento">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <any processContents='skip'/>
+ *                           </sequence>
+ *                           <attribute name="versaoEvento" use="required">
+ *                             <simpleType>
+ *                               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                 <whiteSpace value="preserve"/>
+ *                                 <pattern value="1\.(0[0-9]|[1-9][0-9])"/>
+ *                               </restriction>
+ *                             </simpleType>
+ *                           </attribute>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *                 <attribute name="Id" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+ *                       <pattern value="ID[0-9]{52}"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/>
+ *       </sequence>
+ *       <attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/bpe}TVerEvento" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEvento", propOrder = { + "infEvento", +// "signature" +}) +@XmlRootElement(name = "eventoBPe") +public class TEvento { + + @XmlElement(required = true) + protected TEvento.InfEvento infEvento; +// @XmlElement(name = "Signature" required = true) +// protected SignatureType signature; + @XmlAttribute(name = "versao", required = true) + protected String versao; + + /** + * Obtém o valor da propriedade infEvento. + * + * @return + * possible object is + * {@link TEvento.InfEvento } + * + */ + public TEvento.InfEvento getInfEvento() { + return infEvento; + } + + /** + * Define o valor da propriedade infEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento } + * + */ + public void setInfEvento(TEvento.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="cOrgao" type="{http://www.portalfiscal.inf.br/bpe}TCOrgaoIBGE"/>
+     *         <element name="tpAmb" type="{http://www.portalfiscal.inf.br/bpe}TAmb"/>
+     *         <element name="CNPJ" type="{http://www.portalfiscal.inf.br/bpe}TCnpj"/>
+     *         <element name="chBPe" type="{http://www.portalfiscal.inf.br/bpe}TChDFe"/>
+     *         <element name="dhEvento" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC"/>
+     *         <element name="tpEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[0-9]{6}"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="nSeqEvento">
+     *           <simpleType>
+     *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *               <whiteSpace value="preserve"/>
+     *               <pattern value="[1-9][0-9]|0?[1-9]"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="detEvento">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <any processContents='skip'/>
+     *                 </sequence>
+     *                 <attribute name="versaoEvento" use="required">
+     *                   <simpleType>
+     *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                       <whiteSpace value="preserve"/>
+     *                       <pattern value="1\.(0[0-9]|[1-9][0-9])"/>
+     *                     </restriction>
+     *                   </simpleType>
+     *                 </attribute>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *       <attribute name="Id" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}ID">
+     *             <pattern value="ID[0-9]{52}"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "cOrgao", + "tpAmb", + "cnpj", + "chBPe", + "dhEvento", + "tpEvento", + "nSeqEvento", + "detEvento" + }) + public static class InfEvento { + + @XmlElement(required = true) + protected String cOrgao; + @XmlElement(required = true) + protected String tpAmb; + @XmlElement(name = "CNPJ", required = true) + protected String cnpj; + @XmlElement(required = true) + protected String chBPe; + @XmlElement(required = true) + protected String dhEvento; + @XmlElement(required = true) + protected String tpEvento; + @XmlElement(required = true) + protected String nSeqEvento; + @XmlElement(required = true) + protected TEvento.InfEvento.DetEvento detEvento; + @XmlAttribute(name = "Id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * 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 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 cnpj. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCNPJ() { + return cnpj; + } + + /** + * Define o valor da propriedade cnpj. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCNPJ(String value) { + this.cnpj = value; + } + + /** + * Obtém o valor da propriedade chBPe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChBPe() { + return chBPe; + } + + /** + * Define o valor da propriedade chBPe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChBPe(String value) { + this.chBPe = value; + } + + /** + * Obtém o valor da propriedade dhEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDhEvento() { + return dhEvento; + } + + /** + * Define o valor da propriedade dhEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDhEvento(String value) { + this.dhEvento = 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 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 detEvento. + * + * @return + * possible object is + * {@link TEvento.InfEvento.DetEvento } + * + */ + public TEvento.InfEvento.DetEvento getDetEvento() { + return detEvento; + } + + /** + * Define o valor da propriedade detEvento. + * + * @param value + * allowed object is + * {@link TEvento.InfEvento.DetEvento } + * + */ + public void setDetEvento(TEvento.InfEvento.DetEvento value) { + this.detEvento = 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; + } + + + /** + *

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>
+         *         <any processContents='skip'/>
+         *       </sequence>
+         *       <attribute name="versaoEvento" use="required">
+         *         <simpleType>
+         *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *             <whiteSpace value="preserve"/>
+         *             <pattern value="1\.(0[0-9]|[1-9][0-9])"/>
+         *           </restriction>
+         *         </simpleType>
+         *       </attribute>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "any" + }) + public static class DetEvento { + + @XmlAnyElement + protected Element any; + @XmlAttribute(name = "versaoEvento", required = true) + protected String versaoEvento; + + + /** + * Obtém o valor da propriedade any. + * + * @return + * possible object is + * {@link Element } + * + */ + public Element getAny() { + return any; + } + + /** + * Define o valor da propriedade any. + * + * @param value + * allowed object is + * {@link Element } + * + */ + public void setAny(Element value) { + this.any = value; + } + + /** + * Obtém o valor da propriedade versaoEvento. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersaoEvento() { + return versaoEvento; + } + + /** + * Define o valor da propriedade versaoEvento. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersaoEvento(String value) { + this.versaoEvento = value; + } + + } + + } + +} diff --git a/src/br/inf/portalfiscal/bpe/evento/TEventoMsg.java b/src/br/inf/portalfiscal/bpe/evento/TEventoMsg.java new file mode 100644 index 000000000..524557f4a --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/evento/TEventoMsg.java @@ -0,0 +1,47 @@ +package br.inf.portalfiscal.bpe.evento; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TEventoMsg", propOrder = { + "eventoBPe", + "xmlns" +}) +@XmlRootElement(name = "bpeDadosMsg") +public class TEventoMsg { + @XmlElement(required = true) + protected TEvento eventoBPe; + + @XmlAttribute(name = "xmlns", required = true) + protected String xmlns; + + public TEventoMsg() { + super(); + } + + public TEventoMsg(TEvento eventoBPe) { + super(); + this.eventoBPe = eventoBPe; + } + + public TEvento getEventoBPe() { + return eventoBPe; + } + + public void setEventoBPe(TEvento eventoBPe) { + this.eventoBPe = eventoBPe; + } + + public String getXmlns() { + return xmlns; + } + + public void setXmlns(String xmlns) { + this.xmlns = xmlns; + } +} diff --git a/src/br/inf/portalfiscal/bpe/evento/TRetEvento.java b/src/br/inf/portalfiscal/bpe/evento/TRetEvento.java new file mode 100644 index 000000000..9ec2eba1c --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/evento/TRetEvento.java @@ -0,0 +1,568 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.29 às 06:11:44 PM BRT +// + + +package br.inf.portalfiscal.bpe.evento; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlType; +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/bpe}TAmb"/>
+ *                   <element name="verAplic" type="{http://www.portalfiscal.inf.br/bpe}TVerAplic"/>
+ *                   <element name="cOrgao" type="{http://www.portalfiscal.inf.br/bpe}TCOrgaoIBGE"/>
+ *                   <element name="cStat" type="{http://www.portalfiscal.inf.br/bpe}TStat"/>
+ *                   <element name="xMotivo" type="{http://www.portalfiscal.inf.br/bpe}TMotivo"/>
+ *                   <element name="chBPe" type="{http://www.portalfiscal.inf.br/bpe}TChDFe" 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/bpe}TString">
+ *                         <minLength value="4"/>
+ *                         <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="[1-9][0-9]|0?[1-9]"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </element>
+ *                   <element name="dhRegEvento" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC" minOccurs="0"/>
+ *                   <element name="nProt" type="{http://www.portalfiscal.inf.br/bpe}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">
+ *         <simpleType>
+ *           <restriction base="{http://www.portalfiscal.inf.br/bpe}TVerEvento">
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TRetEvento", propOrder = { + "infEvento", +// "signature" +}) +public class TRetEvento { + + @XmlElement(name = "infEvento", 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/bpe}TAmb"/>
+     *         <element name="verAplic" type="{http://www.portalfiscal.inf.br/bpe}TVerAplic"/>
+     *         <element name="cOrgao" type="{http://www.portalfiscal.inf.br/bpe}TCOrgaoIBGE"/>
+     *         <element name="cStat" type="{http://www.portalfiscal.inf.br/bpe}TStat"/>
+     *         <element name="xMotivo" type="{http://www.portalfiscal.inf.br/bpe}TMotivo"/>
+     *         <element name="chBPe" type="{http://www.portalfiscal.inf.br/bpe}TChDFe" 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/bpe}TString">
+     *               <minLength value="4"/>
+     *               <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="[1-9][0-9]|0?[1-9]"/>
+     *             </restriction>
+     *           </simpleType>
+     *         </element>
+     *         <element name="dhRegEvento" type="{http://www.portalfiscal.inf.br/bpe}TDateTimeUTC" minOccurs="0"/>
+     *         <element name="nProt" type="{http://www.portalfiscal.inf.br/bpe}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 = "InfEvento", propOrder = { + "tpAmb", + "verAplic", + "cOrgao", + "cStat", + "xMotivo", + "chBPe", + "tpEvento", + "xEvento", + "nSeqEvento", + "dhRegEvento", + "nProt" + }) + public static class InfEvento { + + @XmlElement(name = "tpAmb", required = true) + protected String tpAmb; + @XmlElement(required = true) + protected String verAplic; + @XmlElement(required = true) + protected String cOrgao; + @XmlElement(name = "cStat", required = true) + protected String cStat; + @XmlElement(name = "xMotivo", required = true) + protected String xMotivo; + protected String chBPe; + protected String tpEvento; + protected String xEvento; + protected String nSeqEvento; + protected String dhRegEvento; + 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 chBPe. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChBPe() { + return chBPe; + } + + /** + * Define o valor da propriedade chBPe. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChBPe(String value) { + this.chBPe = 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 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; + } + + } + +} diff --git a/src/br/inf/portalfiscal/bpe/evento/package-info.java b/src/br/inf/portalfiscal/bpe/evento/package-info.java new file mode 100644 index 000000000..19e9483b8 --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/evento/package-info.java @@ -0,0 +1 @@ +package br.inf.portalfiscal.bpe.evento; diff --git a/src/br/inf/portalfiscal/bpe/package-info.java b/src/br/inf/portalfiscal/bpe/package-info.java new file mode 100644 index 000000000..15f9d0cc0 --- /dev/null +++ b/src/br/inf/portalfiscal/bpe/package-info.java @@ -0,0 +1,23 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.23 às 03:05:57 PM BRT +// +//@XmlSchema( +// namespace="", +// // If qualified namespace will be added to all elements +// elementFormDefault = XmlNsForm.QUALIFIED, +// // If qualifies namespace will be added to all attributes +// attributeFormDefault = XmlNsForm.UNQUALIFIED, +// xmlns = { +// @XmlNs(prefix = "bpe", namespaceURI = "http://www.portalfiscal.inf.br/bpe"), +//// @XmlNs(prefix = "xsi", namespaceURI = "http://www.portalfiscal.inf.br/bpe"), +// } +//) +@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.portalfiscal.inf.br/bpe", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package br.inf.portalfiscal.bpe; + +import javax.xml.bind.annotation.XmlNs; +import javax.xml.bind.annotation.XmlNsForm; +import javax.xml.bind.annotation.XmlSchema; diff --git a/src/com/rjconsultores/ventaboletos/dao/BpeDAO.java b/src/com/rjconsultores/ventaboletos/dao/BpeDAO.java index f781b22e4..1c864a313 100644 --- a/src/com/rjconsultores/ventaboletos/dao/BpeDAO.java +++ b/src/com/rjconsultores/ventaboletos/dao/BpeDAO.java @@ -13,4 +13,6 @@ public interface BpeDAO { public List buscarBpeRDI(Connection connection, Date inicio, Date fim, Integer empresaId, List estados, boolean isReceitaTerceiros); public ExportacaoBPEVo buscarRegistroExportacaoBpe(Connection connection, Date inicio, Date fim, Integer empresaId, String cveestado); + + public String buscarXmlBPE(Connection connection, String chBpe); } diff --git a/src/com/rjconsultores/ventaboletos/dao/hibernate/BpeHibernateDAO.java b/src/com/rjconsultores/ventaboletos/dao/hibernate/BpeHibernateDAO.java index c6f022acf..fb33ab2cc 100644 --- a/src/com/rjconsultores/ventaboletos/dao/hibernate/BpeHibernateDAO.java +++ b/src/com/rjconsultores/ventaboletos/dao/hibernate/BpeHibernateDAO.java @@ -51,17 +51,15 @@ public class BpeHibernateDAO extends HibernateDaoSupport implements BpeDAO { sql.append(" c.numfoliosistema as numfoliosistema, "); sql.append(" coalesce(c.preciopagado,0) + coalesce(c.importetaxaembarque,0) + coalesce(c.importeseguro,0) + coalesce(c.importepedagio,0) + coalesce(c.importeoutros,0) as valortotal, "); sql.append(" bpe.codstat as codstatus, "); - // sql.append(" coalesce(bpe.xmlcontingencia, bpe.xmlregular) as xml_bpe, "); - // sql.append(" DBMS_LOB.substr(coalesce(bpe.xmlcontingencia, bpe.xmlregular) , 3000) as xml_bpe, "); - sql.append(" DBMS_LOB.substr(coalesce(bpe.xmlcontingencia, bpe.xmlregular) , 4000) as xml_bpe, "); - sql.append(" DBMS_LOB.substr(coalesce(bpe.xmlcontingencia, bpe.xmlregular) , 4000, 4001) as xml_bpe_2, "); - sql.append(" DBMS_LOB.substr(coalesce(bpe.xmlcontingencia, bpe.xmlregular) , 4000, 8001) as xml_bpe_3, "); + sql.append(" DBMS_LOB.substr(bpe.xmlregular, 4000) as xml_bpe, "); + sql.append(" DBMS_LOB.substr(bpe.xmlregular, 4000, 4001) as xml_bpe_2, "); + sql.append(" DBMS_LOB.substr(bpe.xmlregular, 4000, 8001) as xml_bpe_3, "); sql.append(" bpe.tipoevento as tipoevento, "); sql.append(" bpe.desconto as v_desconto, "); sql.append(" bpe.chbpe, "); sql.append(" coalesce(chbpe_substituicao, ' ') as chbpe_sub, "); - sql.append(" bpe.dhrecbto, "); - sql.append(" to_char(c.feccreacion, 'yyyymmdd') as dh_emisao, "); + sql.append(" to_char(c.feccreacion, 'yyyymmdd') as dhrecbto, "); + sql.append(" to_char(c.fechorviaje, 'yyyymmdd') as dh_emisao, "); sql.append(" coalesce(bpe.tiposubstituicao, '0') as tp_bpe, "); sql.append(" bpe.retorno_id as retorno, "); sql.append(" bpe.nprot, "); @@ -82,8 +80,7 @@ public class BpeHibernateDAO extends HibernateDaoSupport implements BpeDAO { sql.append(" (case when s.aliasorigen_id is null then ei.porcredestadual else eis.porcredestadual end) as porc_red_estadual, "); sql.append(" (case when s.aliasorigen_id is null then ei.tributacaoimportacao else eis.tributacaoimportacao end) as tributacao_importacao, "); sql.append(" (case when s.aliasorigen_id is null then ei.codigocontabilestadual else eis.codigocontabilestadual end) as codigocontabil_estadual, "); - sql.append(" (case when s.aliasorigen_id is null then ei.codigocontabilmunicipal else eis.codigocontabilmunicipal end) as codigocontabil_municipal, "); - sql.append(" pag.pagamentos "); + sql.append(" (case when s.aliasorigen_id is null then ei.codigocontabilmunicipal else eis.codigocontabilmunicipal end) as codigocontabil_municipal "); sql.append(" from caja c "); sql.append(" join bpe bpe on c.transacao_id = bpe.boleto_id "); sql.append(" join estado e_bpe on e_bpe.codibge = bpe.uf "); @@ -105,13 +102,6 @@ public class BpeHibernateDAO extends HibernateDaoSupport implements BpeDAO { sql.append(" left join ciudad cds on cds.ciudad_id = pds.ciudad_id "); sql.append(" left join estado eds on eds.estado_id = cds.estado_id "); sql.append(" left join empresa_imposto eis on eis.empresa_id = c.empresacorrida_id and eis.estado_id = eos.estado_id "); - sql.append(" left join (select c.caja_id, "); - sql.append(" listagg (fp.descpago || '|' || cf.importe , ';') within group (order by cf.formapago_id) as pagamentos "); - sql.append(" from caja c "); - sql.append(" inner join caja_formapago cf on cf.caja_id = c.caja_id "); - sql.append(" inner join forma_pago fp on cf.formapago_id = fp.formapago_id "); - sql.append(" where c.activo = 1 and cf.activo = 1 "); - sql.append(" group by c.caja_id) pag on pag.caja_id = c.caja_id "); sql.append(" where c.activo = 1 and po.activo = 1 and co.activo = 1 and eo.activo = 1 and ei.activo = 1 "); sql.append(" and coalesce(case when s.aliasorigen_id is null then ei.activo else eis.activo end, 0) = 1 "); sql.append(" and bpe.tipoamb = 1 "); @@ -169,7 +159,6 @@ public class BpeHibernateDAO extends HibernateDaoSupport implements BpeDAO { registro.setPorcRedMunicipal(rs.getBigDecimal("porc_red_municipal")); registro.setPorcRedEstadual(rs.getBigDecimal("porc_red_estadual")); registro.setTributacaoImportacao(rs.getBigDecimal("tributacao_importacao")); - registro.setPagamentos(rs.getString("pagamentos")); registro.setCodstatus(rs.getString("codstatus")); registro.setTipoevento(rs.getString("tipoevento")); registro.setCodigoContabilEstadual(rs.getString("codigocontabil_estadual")); @@ -188,6 +177,12 @@ public class BpeHibernateDAO extends HibernateDaoSupport implements BpeDAO { String xmlBpe = StringUtils.join(array); registro.setXml(xmlBpe); + boolean isCancelamento = exportacaoBPEVo.isItemCancelado(registro); + if (isCancelamento) { + String xmlAnterior = buscarXmlBPE(connection, (StringUtils.isBlank(registro.getChbpeSub()) ? registro.getChbpe() : registro.getChbpeSub())); + registro.setXmlAnterior(xmlAnterior); + } + exportacaoBPEVo.gerarListas(registro); } @@ -201,6 +196,49 @@ public class BpeHibernateDAO extends HibernateDaoSupport implements BpeDAO { return exportacaoBPEVo; } + @Override + public String buscarXmlBPE(Connection connection, String chBpe) { + + String xmlBpe = null; + StringBuilder sql = new StringBuilder(); + sql.append(" select distinct "); + sql.append(" DBMS_LOB.substr(bpe.xmlregular, 4000) as xml_bpe, "); + sql.append(" DBMS_LOB.substr(bpe.xmlregular, 4000, 4001) as xml_bpe_2, "); + sql.append(" DBMS_LOB.substr(bpe.xmlregular, 4000, 8001) as xml_bpe_3 "); + sql.append(" from bpe bpe "); + sql.append(" where bpe.activo = 1 "); + sql.append(" and bpe.tipoamb = 1 "); + sql.append(" and bpe.codstat in ('100', '150') "); + sql.append(" and bpe.chbpe = ? "); + + try { + PreparedStatement ps = connection.prepareStatement(sql.toString()); + ps.setString(1, chBpe); + + ResultSet rs = ps.executeQuery(); + + while (rs.next()) { + + String xml_bpe = rs.getNString("xml_bpe"); + String xml_bpe_2 = rs.getNString("xml_bpe_2"); + String xml_bpe_3 = rs.getNString("xml_bpe_3"); + String[] array = new String[3]; + array[0] = xml_bpe; + array[1] = xml_bpe_2; + array[2] = xml_bpe_3; + xmlBpe = StringUtils.join(array); + + } + + rs.close(); + ps.close(); + + } catch (Exception e) { + log.error(e.getMessage(), e); + } + return xmlBpe; + } + @Override public List buscarBpeRDI(Connection connection, Date inicio, Date fim, Integer empresaId, List estados, boolean isReceitaTerceiros) { diff --git a/src/com/rjconsultores/ventaboletos/service/BpeService.java b/src/com/rjconsultores/ventaboletos/service/BpeService.java index 67b044f0f..90aa633ea 100644 --- a/src/com/rjconsultores/ventaboletos/service/BpeService.java +++ b/src/com/rjconsultores/ventaboletos/service/BpeService.java @@ -10,8 +10,10 @@ import com.rjconsultores.ventaboletos.utilerias.fiscal.vo.FiscalRdi; public interface BpeService { - List buscarBpeRDI(Date inicio, Date fim, Empresa empresa, List estados, boolean isReceitaTerceiros); + public List buscarBpeRDI(Date inicio, Date fim, Empresa empresa, List estados, boolean isReceitaTerceiros); public File buscarArquivoExportacaoBPE(Date inicio, Date fim, Empresa empresa, Estado estado, String nomeArquivo); + public String buscarXmlBPE(String chBpe); + } diff --git a/src/com/rjconsultores/ventaboletos/service/impl/BpeServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/BpeServiceImpl.java index 1f5ea8104..c32725f18 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/BpeServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/BpeServiceImpl.java @@ -21,7 +21,7 @@ import com.rjconsultores.ventaboletos.utilerias.exportacao.ExportacaoBpe; import com.rjconsultores.ventaboletos.utilerias.exportacao.bpe.ExportacaoBPEVo; import com.rjconsultores.ventaboletos.utilerias.fiscal.vo.FiscalRdi; -@Service("bpeServiceImpl") +@Service("bpeService") public class BpeServiceImpl implements BpeService { private static Logger log = Logger.getLogger(BpeServiceImpl.class); @@ -76,16 +76,27 @@ public class BpeServiceImpl implements BpeService { throw new RuntimeException(e); } } - -// return null; } - // private String infoTempo(final String descricao, final Long inicio) { - // final Long termino = Calendar.getInstance().getTimeInMillis(); - // final Long tempo = termino - inicio; - // - // return descricao + ": " + String.format("%dm %ds", TimeUnit.MILLISECONDS.toMinutes(tempo), TimeUnit.MILLISECONDS.toSeconds(tempo) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(tempo))); - // } + @Override + public String buscarXmlBPE(String chBpe) { + Connection connection = null; + try { + connection = getConnectionRead(); + return bpeDAO.buscarXmlBPE(connection, chBpe); + + } finally { + try { + if (connection != null && !connection.isClosed()) { + connection.close(); + } + } catch (SQLException e) { + log.error("error fechar conexão", e); + + throw new RuntimeException(e); + } + } + } private Connection getConnectionRead() { return DataSourceUtils.getConnection(dataSourceRead); diff --git a/src/com/rjconsultores/ventaboletos/utilerias/exportacao/ExportacaoBpe.java b/src/com/rjconsultores/ventaboletos/utilerias/exportacao/ExportacaoBpe.java index 5faefd974..072243718 100644 --- a/src/com/rjconsultores/ventaboletos/utilerias/exportacao/ExportacaoBpe.java +++ b/src/com/rjconsultores/ventaboletos/utilerias/exportacao/ExportacaoBpe.java @@ -53,15 +53,16 @@ public class ExportacaoBpe { adicionarRegistroBPETipoDPE(writer, tipoDPE); linhas++; } - for (ExportacaoBPETipoOBE tipoOBE : ee.getListaRegistroOBE()) { - adicionarRegistroBPETipoOBE(writer, tipoOBE); - linhas++; - } - for (ExportacaoBPETipoPRC tipoPRC : ee.getListaRegistroPRC()) { - adicionarRegistroBPETipoRPC(writer, tipoPRC); - linhas++; - } + // for (ExportacaoBPETipoOBE tipoOBE : ee.getListaRegistroOBE()) { + // adicionarRegistroBPETipoOBE(writer, tipoOBE); + // linhas++; + // } + + // for (ExportacaoBPETipoPRC tipoPRC : ee.getListaRegistroPRC()) { + // adicionarRegistroBPETipoRPC(writer, tipoPRC); + // linhas++; + // } } @@ -82,7 +83,7 @@ public class ExportacaoBpe { private void adicionarRegistroBPETipoCAB(final PrintWriter writer, final Date dataInicial, final Date dataFinal, final String nomeEmpresa, final String arquivo) { StringBuilder sb = new StringBuilder(); sb.append("CAB").append(SEPARADOR); - sb.append("116").append(SEPARADOR); + sb.append("131").append(SEPARADOR); sb.append("TotalBus").append(SEPARADOR); sb.append(new SimpleDateFormat("yyyyMMdd").format(new Date())).append(SEPARADOR); sb.append(formataCaracter(nomeEmpresa, false, 15)).append(SEPARADOR); @@ -103,7 +104,7 @@ public class ExportacaoBpe { String numero = tipoBPE.getNumero(); String dataEmissao = tipoBPE.getDataEmissao(); String situacaoDocumento = tipoBPE.getSituacaoDoc(); - String dataPrestacao = tipoBPE.getDataEmissao(); + String dataPrestacao = tipoBPE.getDataPrestacao(); String valorBruto = formataValor(tipoBPE.getValorBruto(), 15); String valorDesconto = formataValor(tipoBPE.getValorDesconto(), 15); String UFOrigem = tipoBPE.getUFOrigem(); @@ -113,8 +114,12 @@ public class ExportacaoBpe { String CSTCOFINS = tipoBPE.getCstCofins(); String receitaTributavelCOFINS = formataValor(tipoBPE.getReceitaTriCofins(), 15); String naturezaReceitaCOFINS = VAZIO; - String CSTPIS = "01"; - String receitaTributávelPIS = formataValor(tipoBPE.getReceitaTributávelPis(), 15); + + String CSTPIS = tipoBPE.getCstPis(); + + String receitaTributávelPIS = formataValor(tipoBPE.getReceitaTriCofins(), 15); + // String receitaTributávelPIS = formataValor(tipoBPE.getReceitaTributávelPis(), 15); + String naturezaReceitaPIS = VAZIO; String receitaCSL1 = VAZIO; String receitaCSL2 = VAZIO; @@ -123,11 +128,13 @@ public class ExportacaoBpe { String receitaIRPJ3 = VAZIO; String receitaIRPJ4 = VAZIO; String tipoBPe = tipoBPE.getTipoBPe(); - String chaveEletRef = tipoBPE.getChaveEletronicaReferencia(); - String codigoContabil = tipoBPE.getCodigoContabil(); + String chaveEletRef = VAZIO; + // String chaveEletRef = tipoBPE.getChaveEletronicaReferencia(); + String codigoContabil = VAZIO; String codigoPrevidenciaria = "00000060"; String codigoComplementar = VAZIO; - String observacao = tipoBPE.getTpDesconto(); + String observacao = VAZIO; + String codAjusteFiscal = VAZIO; StringBuilder sb = new StringBuilder(); sb.append(tipoRegistro).append(SEPARADOR); @@ -162,12 +169,13 @@ public class ExportacaoBpe { sb.append(codigoPrevidenciaria).append(SEPARADOR); sb.append(codigoComplementar).append(SEPARADOR); sb.append(observacao).append(SEPARADOR); + sb.append(codAjusteFiscal); writer.print(sb.toString() + UtiliteriasFiscal.QUEBRA_LINHA); } private void adicionarRegistroBPETipoDPE(final PrintWriter writer, ExportacaoBPETipoDPE tipoDPE) { - String tipoRegistro = "DPE"; + String tipoRegistro = "DBE"; String valor = formataValor(tipoDPE.getValor(), 15); String CFOP = tipoDPE.getCfop(); String CSTB = tipoDPE.getCstb(); @@ -188,7 +196,7 @@ public class ExportacaoBpe { sb.append(aliquotaICMS).append(SEPARADOR); sb.append(ICMS).append(SEPARADOR); sb.append(isentas).append(SEPARADOR); - sb.append(outras).append(SEPARADOR); + sb.append(outras); writer.print(sb.toString() + UtiliteriasFiscal.QUEBRA_LINHA); } @@ -201,7 +209,7 @@ public class ExportacaoBpe { StringBuilder sb = new StringBuilder(); sb.append(tipoRegistro).append(SEPARADOR); sb.append(codigo).append(SEPARADOR); - sb.append(valor).append(SEPARADOR); + sb.append(valor); writer.print(sb.toString() + UtiliteriasFiscal.QUEBRA_LINHA); } @@ -220,7 +228,7 @@ public class ExportacaoBpe { sb.append(municipio).append(SEPARADOR); sb.append(valor).append(SEPARADOR); sb.append(baseCalculoICMS).append(SEPARADOR); - sb.append(ICMS).append(SEPARADOR); + sb.append(ICMS); writer.print(sb.toString() + UtiliteriasFiscal.QUEBRA_LINHA); } diff --git a/src/com/rjconsultores/ventaboletos/utilerias/exportacao/bpe/ExportacaoBPEBase.java b/src/com/rjconsultores/ventaboletos/utilerias/exportacao/bpe/ExportacaoBPEBase.java index a1b8655ac..080def5cc 100644 --- a/src/com/rjconsultores/ventaboletos/utilerias/exportacao/bpe/ExportacaoBPEBase.java +++ b/src/com/rjconsultores/ventaboletos/utilerias/exportacao/bpe/ExportacaoBPEBase.java @@ -38,6 +38,7 @@ public class ExportacaoBPEBase { private String codigocontabilMunicipal; private Integer crt; private String xml; + private String xmlAnterior; private List listaRegistroBPE; private List listaRegistroDPE; @@ -339,4 +340,12 @@ public class ExportacaoBPEBase { this.listaRegistroPRC = listaRegistroPRC; } + public String getXmlAnterior() { + return xmlAnterior; + } + + public void setXmlAnterior(String xmlAnterior) { + this.xmlAnterior = xmlAnterior; + } + } diff --git a/src/com/rjconsultores/ventaboletos/utilerias/exportacao/bpe/ExportacaoBPETipoBPE.java b/src/com/rjconsultores/ventaboletos/utilerias/exportacao/bpe/ExportacaoBPETipoBPE.java index cf39a9e73..1249f8a2f 100644 --- a/src/com/rjconsultores/ventaboletos/utilerias/exportacao/bpe/ExportacaoBPETipoBPE.java +++ b/src/com/rjconsultores/ventaboletos/utilerias/exportacao/bpe/ExportacaoBPETipoBPE.java @@ -19,7 +19,7 @@ public class ExportacaoBPETipoBPE { private String municipioDestino; private String cstCofins; private BigDecimal receitaTriCofins; - private BigDecimal cstPis; + private String cstPis; private BigDecimal receitaTributávelPis; private String tipoBPe; private String chaveEletronicaReferencia; @@ -30,7 +30,7 @@ public class ExportacaoBPETipoBPE { public ExportacaoBPETipoBPE() { } - public ExportacaoBPETipoBPE(String estabelecimento, String chaveEletronica, String serie, String numero, String dataEmissao, String situacaoDoc, String dataPrestacao, BigDecimal valorBruto, BigDecimal valorDesconto, String uFOrigem, String municipioOrigem, String uFDestino, String municipioDestino, String cstCofins, BigDecimal receitaTriCofins, String tipoBPe, String chaveEletronicaReferencia, String codigoContabil, String indContribuicaoPrevidenciaria, String tpDesconto) { + public ExportacaoBPETipoBPE(String estabelecimento, String chaveEletronica, String serie, String numero, String dataEmissao, String situacaoDoc, String dataPrestacao, BigDecimal valorBruto, BigDecimal valorDesconto, String uFOrigem, String municipioOrigem, String uFDestino, String municipioDestino, String cstCofins, BigDecimal receitaTriCofins, String tipoBPe, String chaveEletronicaReferencia, String codigoContabil, String indContribuicaoPrevidenciaria, String tpDesconto, String cstPis) { super(); this.estabelecimento = estabelecimento; this.chaveEletronica = chaveEletronica; @@ -52,6 +52,7 @@ public class ExportacaoBPETipoBPE { this.codigoContabil = codigoContabil; this.indContribuicaoPrevidenciaria = indContribuicaoPrevidenciaria; this.tpDesconto = tpDesconto; + this.cstPis = cstPis; } public String getEstabelecimento() { @@ -174,11 +175,11 @@ public class ExportacaoBPETipoBPE { this.receitaTriCofins = receitaTriCofins; } - public BigDecimal getCstPis() { + public String getCstPis() { return cstPis; } - public void setCstPis(BigDecimal cstPis) { + public void setCstPis(String cstPis) { this.cstPis = cstPis; } diff --git a/src/com/rjconsultores/ventaboletos/utilerias/exportacao/bpe/ExportacaoBPEVo.java b/src/com/rjconsultores/ventaboletos/utilerias/exportacao/bpe/ExportacaoBPEVo.java index 5d67f3597..53e45b895 100644 --- a/src/com/rjconsultores/ventaboletos/utilerias/exportacao/bpe/ExportacaoBPEVo.java +++ b/src/com/rjconsultores/ventaboletos/utilerias/exportacao/bpe/ExportacaoBPEVo.java @@ -1,14 +1,26 @@ package com.rjconsultores.ventaboletos.utilerias.exportacao.bpe; +import java.io.StringReader; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; +import javax.xml.bind.JAXBContext; +import javax.xml.bind.JAXBException; +import javax.xml.bind.Unmarshaller; + +import org.apache.commons.lang.StringUtils; +import org.apache.log4j.Logger; + import com.rjconsultores.ventaboletos.utilerias.UtiliteriasFiscal; -import com.rjconsultores.ventaboletos.utilerias.exportacao.bpe.xml.BpeBuscaCamposXml; + +import br.inf.portalfiscal.bpe.TBPe; public class ExportacaoBPEVo { + private static Logger log = Logger.getLogger(ExportacaoBPEVo.class); + + static String VAZIO = ""; static final BigDecimal ZERO = BigDecimal.ZERO; public class StatusBpe { @@ -38,79 +50,127 @@ public class ExportacaoBPEVo { return listaRegistroBaseBPE; } + public boolean isItemCancelado(ExportacaoBPEBase registro) { + return (registro.getCodstatus() == null ? false : (registro.getCodstatus().equals(StatusBpe.EVENTOS))); + } + public void gerarListas(ExportacaoBPEBase registro) { - boolean isCancelamento = (registro.getCodstatus() == null ? false : (registro.getCodstatus().equals(StatusBpe.EVENTOS))); - String cstCofins = isCancelamento ? "" : "01"; - BigDecimal receitaTriCofins = isCancelamento ? null : registro.getValortotal(); + String indContribuicaoPrevidenciaria = "00000060"; boolean isInterEstadual = registro.getEstadoOrigem().equals(registro.getEstadoDestino()); String codigoContabil = isInterEstadual ? registro.getCodigoContabilEstadual() : registro.getCodigocontabilMunicipal(); - String indContribuicaoPrevidenciaria = "00000060"; - ExportacaoBPETipoBPE tipoBPE = new ExportacaoBPETipoBPE(registro.getCodEstabelecimento(), registro.getChbpe(), registro.getNumSerieBpe(), - registro.getNumBpe(), registro.getDhEmisao(), registro.getTpBpe(), registro.getDhrecbto(), registro.getValortotal(), - registro.getvDesconto(), registro.getEstadoOrigem(), registro.getMunicipioOrigem(), registro.getEstadoDestino(), registro.getMunicipioDestino(), - cstCofins, receitaTriCofins, registro.getRetorno(), registro.getChbpeSub(), codigoContabil, - indContribuicaoPrevidenciaria, registro.getRetorno()); + boolean isCancelamento = (registro.getCodstatus() == null ? false : (registro.getCodstatus().equals(StatusBpe.EVENTOS))); + String tpDoc = isCancelamento ? "1" : (StringUtils.isBlank(registro.getChbpeSub()) ? "0" : "2"); - registro.getListaRegistroBPE().add(tipoBPE); + TBPe tbpe = null; + String xml = isCancelamento ? registro.getXmlAnterior() : registro.getXml(); - String cfop = isInterEstadual ? "6357" : "5357"; - String cstb = isInterEstadual ? (registro.getRedBaseCalcEstadual() == null || registro.getRedBaseCalcEstadual().equals(ZERO)) ? "00" : "20" - : (registro.getRedBaseCalcMunicipal() == null || registro.getRedBaseCalcMunicipal().equals(ZERO)) ? "00" : "20"; + if (xml != null) + tbpe = convertXmlToBpe(xml); - String csosnb = null; - if (registro.getCrt().equals(CrtBpe.SIMPLES_NACIONAL)) { - csosnb = CrtBpe.SIMPLES_NACIONAL.toString(); - csosnb = UtiliteriasFiscal.formataNumerico(csosnb, 3); - } else if (registro.getCrt().equals(CrtBpe.SIMPLES_NACIONAL_EXCESSO_RECEITA_BRUTA)) { - csosnb = CrtBpe.SIMPLES_NACIONAL_EXCESSO_RECEITA_BRUTA.toString(); - csosnb = UtiliteriasFiscal.formataNumerico(csosnb, 3); - } + String municipioOrigem = StringUtils.substring((StringUtils.isNotBlank(xml) ? tbpe.getInfBPe().getIde().getCMunIni() : registro.getMunicipioOrigem()), 2); + String municipioDestino = StringUtils.substring((StringUtils.isNotBlank(xml) ? tbpe.getInfBPe().getIde().getCMunFim() : registro.getMunicipioDestino()), 2); - BpeBuscaCamposXml buscaCamposXml = BpeBuscaCamposXml.getInstance(registro.getXml()); + String estadoOrigem = StringUtils.substring((StringUtils.isNotBlank(xml) ? tbpe.getInfBPe().getIde().getUFIni().value() : registro.getEstadoOrigem()), 2); + String estadoDestino = StringUtils.substring((StringUtils.isNotBlank(xml) ? tbpe.getInfBPe().getIde().getUFFim().value() : registro.getEstadoDestino()), 2); - String vBC = buscaCamposXml.buscaCamposXml("vBC"); - String pICMS = buscaCamposXml.buscaCamposXml("pICMS"); - String vICMS = buscaCamposXml.buscaCamposXml("vICMS"); + if (isCancelamento) { - BigDecimal baseCalculoICMS = new BigDecimal(vBC == null ? "0.0" : vBC); - BigDecimal aliquotaICMS = new BigDecimal(pICMS == null ? "0.0" : pICMS); - BigDecimal icms = new BigDecimal(vICMS == null ? "0.0" : vICMS); + ExportacaoBPETipoBPE tipoBPE = new ExportacaoBPETipoBPE(registro.getCodEstabelecimento(), registro.getChbpe(), registro.getNumSerieBpe(), + registro.getNumBpe(), registro.getDhrecbto(), tpDoc, registro.getDhEmisao(), ZERO, ZERO, + estadoOrigem, municipioOrigem, estadoDestino, municipioDestino, + VAZIO, ZERO, VAZIO, registro.getChbpeSub(), codigoContabil, + indContribuicaoPrevidenciaria, registro.getRetorno(), VAZIO); + + registro.getListaRegistroBPE().add(tipoBPE); - BigDecimal isentas = ZERO; - if (registro.isIsenta()) { - isentas = ZERO; } else { - isentas = registro.getValortotal(); + String vBC = tbpe.getInfBPe().getImp().getICMS().getICMS00().getVBC(); + String pICMS = tbpe.getInfBPe().getImp().getICMS().getICMS00().getPICMS(); + String vICMS = tbpe.getInfBPe().getImp().getICMS().getICMS00().getVICMS(); + String vBP = tbpe.getInfBPe().getInfValorBPe().getVBP(); + + String cstCofins = "01"; + String cstPis = "01"; + BigDecimal receitaTriCofins = new BigDecimal(vBC == null ? "0.0" : vBC); + + BigDecimal valorBruto = new BigDecimal(vBP == null ? "0.0" : vBP); + + String tpBpe = (StringUtils.isBlank(registro.getChbpeSub()) ? "1" : "2"); + // String tpBpe = tbpe.getInfBPe().getIde().getTpBPe(); + + String chbpeSub = tbpe.getInfBPe().getInfBPeSub() == null ? "" : tbpe.getInfBPe().getInfBPeSub().getChBPe(); + + ExportacaoBPETipoBPE tipoBPE = new ExportacaoBPETipoBPE(registro.getCodEstabelecimento(), registro.getChbpe(), registro.getNumSerieBpe(), + registro.getNumBpe(), registro.getDhrecbto(), tpDoc, registro.getDhEmisao(), valorBruto, + registro.getvDesconto(), registro.getEstadoOrigem(), municipioOrigem, registro.getEstadoDestino(), municipioDestino, + cstCofins, receitaTriCofins, tpBpe, chbpeSub, codigoContabil, + indContribuicaoPrevidenciaria, registro.getRetorno(), cstPis); + + registro.getListaRegistroBPE().add(tipoBPE); + + String cfop = isInterEstadual ? "5357" : "6357"; + String cstb = isInterEstadual ? (registro.getRedBaseCalcEstadual() == null || registro.getRedBaseCalcEstadual().equals(ZERO)) ? "00" : "20" + : (registro.getRedBaseCalcMunicipal() == null || registro.getRedBaseCalcMunicipal().equals(ZERO)) ? "00" : "20"; + + String csosnb = ""; + if (registro.getCrt().equals(CrtBpe.SIMPLES_NACIONAL)) { + csosnb = CrtBpe.SIMPLES_NACIONAL.toString(); + csosnb = UtiliteriasFiscal.formataNumerico(csosnb, 3); + } else if (registro.getCrt().equals(CrtBpe.SIMPLES_NACIONAL_EXCESSO_RECEITA_BRUTA)) { + csosnb = CrtBpe.SIMPLES_NACIONAL_EXCESSO_RECEITA_BRUTA.toString(); + csosnb = UtiliteriasFiscal.formataNumerico(csosnb, 3); + } + + BigDecimal baseCalculoICMS = new BigDecimal(vBC == null ? "0.0" : vBC); + BigDecimal aliquotaICMS = new BigDecimal(pICMS == null ? "0.0" : pICMS); + BigDecimal icms = new BigDecimal(vICMS == null ? "0.0" : vICMS); + + BigDecimal isentas = registro.getValortotal().subtract(baseCalculoICMS); + + BigDecimal outras = ZERO; + + ExportacaoBPETipoDPE tipoDPE = new ExportacaoBPETipoDPE(registro.getValortotal(), cfop, cstb, csosnb, + baseCalculoICMS, aliquotaICMS, icms, isentas, outras); + registro.getListaRegistroDPE().add(tipoDPE); + + // BpeBuscaCamposXml buscaCamposXml = BpeBuscaCamposXml.getInstance(registro.getXml()); + // String[] atpComp = buscaCamposXml.buscaCamposXmlArray("tpComp"); + // String[] avComp = buscaCamposXml.buscaCamposXmlArray("vComp"); + // + // for (int i = 0; i < avComp.length; i++) { + // String tpComp = atpComp[i]; + // String vComp = avComp[i]; + // BigDecimal valor = new BigDecimal(vComp == null ? "0.0" : vComp); + // + // ExportacaoBPETipoOBE tipoOBE = new ExportacaoBPETipoOBE(tpComp, valor); + // registro.getListaRegistroOBE().add(tipoOBE); + // } + + // BigDecimal valorBP = new BigDecimal(vBP == null ? "0.0" : vBP); + + // ExportacaoBPETipoPRC tipoPRC = new ExportacaoBPETipoPRC(registro.getEstadoOrigem(), registro.getMunicipioOrigem(), valorBP, baseCalculoICMS, icms); + // registro.getListaRegistroPRC().add(tipoPRC); + } - BigDecimal outras = registro.getValortotal().subtract(baseCalculoICMS); - - ExportacaoBPETipoDPE tipoDPE = new ExportacaoBPETipoDPE(registro.getValortotal(), cfop, cstb, csosnb, - baseCalculoICMS, aliquotaICMS, icms, isentas, outras); - registro.getListaRegistroDPE().add(tipoDPE); - - String[] atpComp = buscaCamposXml.buscaCamposXmlArray("tpComp"); - String[] avComp = buscaCamposXml.buscaCamposXmlArray("vComp"); - - for (int i = 0; i < avComp.length; i++) { - String tpComp = atpComp[i]; - String vComp = avComp[i]; - BigDecimal valor = new BigDecimal(vComp == null ? "0.0" : vComp); - - ExportacaoBPETipoOBE tipoOBE = new ExportacaoBPETipoOBE(tpComp, valor); - registro.getListaRegistroOBE().add(tipoOBE); - } - - String vBP = buscaCamposXml.buscaCamposXml("vBP"); - BigDecimal valorBP = new BigDecimal(vBP == null ? "0.0" : vBP); - - ExportacaoBPETipoPRC tipoPRC = new ExportacaoBPETipoPRC(registro.getEstadoOrigem(), registro.getMunicipioOrigem(), valorBP, baseCalculoICMS, icms); - registro.getListaRegistroPRC().add(tipoPRC); - this.getListaRegistroBaseBPE().add(registro); } + private TBPe convertXmlToBpe(String xml) { + TBPe objeto = null; + if (xml != null) { + try { + JAXBContext jaxbContext = JAXBContext.newInstance(TBPe.class); + Unmarshaller unmarshaller = jaxbContext.createUnmarshaller(); + StringReader reader = new StringReader(xml); + objeto = (TBPe) unmarshaller.unmarshal(reader); + } catch (JAXBException e) { + log.info("Nao encontrou o xml bpe"); + } + } + return objeto; + } } diff --git a/src/org/w3/_2000/_09/xmldsig_/KeyInfoType.java b/src/org/w3/_2000/_09/xmldsig_/KeyInfoType.java new file mode 100644 index 000000000..ddb10a193 --- /dev/null +++ b/src/org/w3/_2000/_09/xmldsig_/KeyInfoType.java @@ -0,0 +1,104 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package org.w3._2000._09.xmldsig_; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de KeyInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="KeyInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Data" type="{http://www.w3.org/2000/09/xmldsig#}X509DataType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyInfoType", propOrder = { + "x509Data" +}) +public class KeyInfoType { + + @XmlElement(name = "X509Data", required = true) + protected X509DataType x509Data; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade x509Data. + * + * @return + * possible object is + * {@link X509DataType } + * + */ + public X509DataType getX509Data() { + return x509Data; + } + + /** + * Define o valor da propriedade x509Data. + * + * @param value + * allowed object is + * {@link X509DataType } + * + */ + public void setX509Data(X509DataType value) { + this.x509Data = 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; + } + +} diff --git a/src/org/w3/_2000/_09/xmldsig_/ObjectFactory.java b/src/org/w3/_2000/_09/xmldsig_/ObjectFactory.java new file mode 100644 index 000000000..621f0b825 --- /dev/null +++ b/src/org/w3/_2000/_09/xmldsig_/ObjectFactory.java @@ -0,0 +1,140 @@ +//// +//// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +//// Consulte http://java.sun.com/xml/jaxb +//// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +//// Gerado em: 2017.08.14 às 03:08:29 PM BRT +//// +// +// +//package org.w3._2000._09.xmldsig_; +// +//import javax.xml.bind.JAXBElement; +//import javax.xml.bind.annotation.XmlElementDecl; +//import javax.xml.bind.annotation.XmlRegistry; +//import javax.xml.namespace.QName; +// +// +///** +// * This object contains factory methods for each +// * Java content interface and Java element interface +// * generated in the org.w3._2000._09.xmldsig_ package. +// *

An ObjectFactory allows you to programatically +// * construct new instances of the Java representation +// * for XML content. The Java representation of XML +// * content can consist of schema derived interfaces +// * and classes representing the binding of schema +// * type definitions, element declarations and model +// * groups. Factory methods for each of these are +// * provided in this class. +// * +// */ +//@XmlRegistry +//public class ObjectFactory { +// +// private final static QName _Signature_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Signature"); +// +// /** +// * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.w3._2000._09.xmldsig_ +// * +// */ +// public ObjectFactory() { +// } +// +// /** +// * Create an instance of {@link ReferenceType } +// * +// */ +// public ReferenceType createReferenceType() { +// return new ReferenceType(); +// } +// +// /** +// * Create an instance of {@link SignedInfoType } +// * +// */ +// public SignedInfoType createSignedInfoType() { +// return new SignedInfoType(); +// } +// +// /** +// * Create an instance of {@link SignatureType } +// * +// */ +// public SignatureType createSignatureType() { +// return new SignatureType(); +// } +// +// /** +// * Create an instance of {@link X509DataType } +// * +// */ +// public X509DataType createX509DataType() { +// return new X509DataType(); +// } +// +// /** +// * Create an instance of {@link SignatureValueType } +// * +// */ +// public SignatureValueType createSignatureValueType() { +// return new SignatureValueType(); +// } +// +// /** +// * Create an instance of {@link TransformsType } +// * +// */ +// public TransformsType createTransformsType() { +// return new TransformsType(); +// } +// +// /** +// * Create an instance of {@link TransformType } +// * +// */ +// public TransformType createTransformType() { +// return new TransformType(); +// } +// +// /** +// * Create an instance of {@link KeyInfoType } +// * +// */ +// public KeyInfoType createKeyInfoType() { +// return new KeyInfoType(); +// } +// +// /** +// * Create an instance of {@link ReferenceType.DigestMethod } +// * +// */ +// public ReferenceType.DigestMethod createReferenceTypeDigestMethod() { +// return new ReferenceType.DigestMethod(); +// } +// +// /** +// * Create an instance of {@link SignedInfoType.CanonicalizationMethod } +// * +// */ +// public SignedInfoType.CanonicalizationMethod createSignedInfoTypeCanonicalizationMethod() { +// return new SignedInfoType.CanonicalizationMethod(); +// } +// +// /** +// * Create an instance of {@link SignedInfoType.SignatureMethod } +// * +// */ +// public SignedInfoType.SignatureMethod createSignedInfoTypeSignatureMethod() { +// return new SignedInfoType.SignatureMethod(); +// } +// +// /** +// * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} +// * +// */ +// @XmlElementDecl(namespace = "http://www.w3.org/2000/09/xmldsig#", name = "Signature") +// public JAXBElement createSignature(SignatureType value) { +// return new JAXBElement(_Signature_QNAME, SignatureType.class, null, value); +// } +// +//} diff --git a/src/org/w3/_2000/_09/xmldsig_/ReferenceType.java b/src/org/w3/_2000/_09/xmldsig_/ReferenceType.java new file mode 100644 index 000000000..89c8c9404 --- /dev/null +++ b/src/org/w3/_2000/_09/xmldsig_/ReferenceType.java @@ -0,0 +1,283 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package org.w3._2000._09.xmldsig_; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de ReferenceType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="ReferenceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transforms" type="{http://www.w3.org/2000/09/xmldsig#}TransformsType"/>
+ *         <element name="DigestMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="DigestValue" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="URI" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}anyURI">
+ *             <minLength value="2"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ReferenceType", propOrder = { + "transforms", + "digestMethod", + "digestValue" +}) +public class ReferenceType { + + @XmlElement(name = "Transforms", required = true) + protected TransformsType transforms; + @XmlElement(name = "DigestMethod", required = true) + protected ReferenceType.DigestMethod digestMethod; + @XmlElement(name = "DigestValue", required = true) + protected byte[] digestValue; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "URI", required = true) + protected String uri; + @XmlAttribute(name = "Type") + @XmlSchemaType(name = "anyURI") + protected String type; + + /** + * Obtém o valor da propriedade transforms. + * + * @return + * possible object is + * {@link TransformsType } + * + */ + public TransformsType getTransforms() { + return transforms; + } + + /** + * Define o valor da propriedade transforms. + * + * @param value + * allowed object is + * {@link TransformsType } + * + */ + public void setTransforms(TransformsType value) { + this.transforms = value; + } + + /** + * Obtém o valor da propriedade digestMethod. + * + * @return + * possible object is + * {@link ReferenceType.DigestMethod } + * + */ + public ReferenceType.DigestMethod getDigestMethod() { + return digestMethod; + } + + /** + * Define o valor da propriedade digestMethod. + * + * @param value + * allowed object is + * {@link ReferenceType.DigestMethod } + * + */ + public void setDigestMethod(ReferenceType.DigestMethod value) { + this.digestMethod = value; + } + + /** + * Obtém o valor da propriedade digestValue. + * + * @return + * possible object is + * byte[] + */ + public byte[] getDigestValue() { + return digestValue; + } + + /** + * Define o valor da propriedade digestValue. + * + * @param value + * allowed object is + * byte[] + */ + public void setDigestValue(byte[] value) { + this.digestValue = 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; + } + + /** + * Obtém o valor da propriedade uri. + * + * @return + * possible object is + * {@link String } + * + */ + public String getURI() { + return uri; + } + + /** + * Define o valor da propriedade uri. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setURI(String value) { + this.uri = value; + } + + /** + * Obtém o valor da propriedade type. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Define o valor da propriedade type. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = 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">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class DigestMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/org/w3/_2000/_09/xmldsig_/SignatureType.java b/src/org/w3/_2000/_09/xmldsig_/SignatureType.java new file mode 100644 index 000000000..93c004ef5 --- /dev/null +++ b/src/org/w3/_2000/_09/xmldsig_/SignatureType.java @@ -0,0 +1,160 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package org.w3._2000._09.xmldsig_; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SignedInfo" type="{http://www.w3.org/2000/09/xmldsig#}SignedInfoType"/>
+ *         <element name="SignatureValue" type="{http://www.w3.org/2000/09/xmldsig#}SignatureValueType"/>
+ *         <element name="KeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureType", propOrder = { + "signedInfo", + "signatureValue", + "keyInfo" +}) +public class SignatureType { + + @XmlElement(name = "SignedInfo", required = true) + protected SignedInfoType signedInfo; + @XmlElement(name = "SignatureValue", required = true) + protected SignatureValueType signatureValue; + @XmlElement(name = "KeyInfo", required = true) + protected KeyInfoType keyInfo; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade signedInfo. + * + * @return + * possible object is + * {@link SignedInfoType } + * + */ + public SignedInfoType getSignedInfo() { + return signedInfo; + } + + /** + * Define o valor da propriedade signedInfo. + * + * @param value + * allowed object is + * {@link SignedInfoType } + * + */ + public void setSignedInfo(SignedInfoType value) { + this.signedInfo = value; + } + + /** + * Obtém o valor da propriedade signatureValue. + * + * @return + * possible object is + * {@link SignatureValueType } + * + */ + public SignatureValueType getSignatureValue() { + return signatureValue; + } + + /** + * Define o valor da propriedade signatureValue. + * + * @param value + * allowed object is + * {@link SignatureValueType } + * + */ + public void setSignatureValue(SignatureValueType value) { + this.signatureValue = value; + } + + /** + * Obtém o valor da propriedade keyInfo. + * + * @return + * possible object is + * {@link KeyInfoType } + * + */ + public KeyInfoType getKeyInfo() { + return keyInfo; + } + + /** + * Define o valor da propriedade keyInfo. + * + * @param value + * allowed object is + * {@link KeyInfoType } + * + */ + public void setKeyInfo(KeyInfoType value) { + this.keyInfo = 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; + } + +} diff --git a/src/org/w3/_2000/_09/xmldsig_/SignatureValueType.java b/src/org/w3/_2000/_09/xmldsig_/SignatureValueType.java new file mode 100644 index 000000000..84fee1417 --- /dev/null +++ b/src/org/w3/_2000/_09/xmldsig_/SignatureValueType.java @@ -0,0 +1,99 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package org.w3._2000._09.xmldsig_; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignatureValueType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignatureValueType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary">
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignatureValueType", propOrder = { + "value" +}) +public class SignatureValueType { + + @XmlValue + protected byte[] value; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade value. + * + * @return + * possible object is + * byte[] + */ + public byte[] getValue() { + return value; + } + + /** + * Define o valor da propriedade value. + * + * @param value + * allowed object is + * byte[] + */ + public void setValue(byte[] value) { + this.value = 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; + } + +} diff --git a/src/org/w3/_2000/_09/xmldsig_/SignedInfoType.java b/src/org/w3/_2000/_09/xmldsig_/SignedInfoType.java new file mode 100644 index 000000000..9eaa43c5f --- /dev/null +++ b/src/org/w3/_2000/_09/xmldsig_/SignedInfoType.java @@ -0,0 +1,288 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package org.w3._2000._09.xmldsig_; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Classe Java de SignedInfoType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="SignedInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CanonicalizationMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="SignatureMethod">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="Reference" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/>
+ *       </sequence>
+ *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SignedInfoType", propOrder = { + "canonicalizationMethod", + "signatureMethod", + "reference" +}) +public class SignedInfoType { + + @XmlElement(name = "CanonicalizationMethod", required = true) + protected SignedInfoType.CanonicalizationMethod canonicalizationMethod; + @XmlElement(name = "SignatureMethod", required = true) + protected SignedInfoType.SignatureMethod signatureMethod; + @XmlElement(name = "Reference", required = true) + protected ReferenceType reference; + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Obtém o valor da propriedade canonicalizationMethod. + * + * @return + * possible object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public SignedInfoType.CanonicalizationMethod getCanonicalizationMethod() { + return canonicalizationMethod; + } + + /** + * Define o valor da propriedade canonicalizationMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.CanonicalizationMethod } + * + */ + public void setCanonicalizationMethod(SignedInfoType.CanonicalizationMethod value) { + this.canonicalizationMethod = value; + } + + /** + * Obtém o valor da propriedade signatureMethod. + * + * @return + * possible object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public SignedInfoType.SignatureMethod getSignatureMethod() { + return signatureMethod; + } + + /** + * Define o valor da propriedade signatureMethod. + * + * @param value + * allowed object is + * {@link SignedInfoType.SignatureMethod } + * + */ + public void setSignatureMethod(SignedInfoType.SignatureMethod value) { + this.signatureMethod = value; + } + + /** + * Obtém o valor da propriedade reference. + * + * @return + * possible object is + * {@link ReferenceType } + * + */ + public ReferenceType getReference() { + return reference; + } + + /** + * Define o valor da propriedade reference. + * + * @param value + * allowed object is + * {@link ReferenceType } + * + */ + public void setReference(ReferenceType value) { + this.reference = 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; + } + + + /** + *

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">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class CanonicalizationMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/TR/2001/REC-xml-c14n-20010315"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = 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">
+     *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class SignatureMethod { + + @XmlAttribute(name = "Algorithm", required = true) + @XmlSchemaType(name = "anyURI") + protected String algorithm; + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + if (algorithm == null) { + return "http://www.w3.org/2000/09/xmldsig#rsa-sha1"; + } else { + return algorithm; + } + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + + } + +} diff --git a/src/org/w3/_2000/_09/xmldsig_/TransformType.java b/src/org/w3/_2000/_09/xmldsig_/TransformType.java new file mode 100644 index 000000000..e8b94657a --- /dev/null +++ b/src/org/w3/_2000/_09/xmldsig_/TransformType.java @@ -0,0 +1,104 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package org.w3._2000._09.xmldsig_; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TransformType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="XPath" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *       <attribute name="Algorithm" use="required" type="{http://www.w3.org/2000/09/xmldsig#}TTransformURI" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformType", propOrder = { + "xPath" +}) +public class TransformType { + + @XmlElement(name = "XPath") + protected List xPath; + @XmlAttribute(name = "Algorithm", required = true) + protected String algorithm; + + /** + * Gets the value of the xPath property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the xPath property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getXPath().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getXPath() { + if (xPath == null) { + xPath = new ArrayList(); + } + return this.xPath; + } + + /** + * Obtém o valor da propriedade algorithm. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithm() { + return algorithm; + } + + /** + * Define o valor da propriedade algorithm. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } + +} diff --git a/src/org/w3/_2000/_09/xmldsig_/TransformsType.java b/src/org/w3/_2000/_09/xmldsig_/TransformsType.java new file mode 100644 index 000000000..fbbb883ba --- /dev/null +++ b/src/org/w3/_2000/_09/xmldsig_/TransformsType.java @@ -0,0 +1,76 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package org.w3._2000._09.xmldsig_; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de TransformsType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="TransformsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Transform" type="{http://www.w3.org/2000/09/xmldsig#}TransformType" maxOccurs="2" minOccurs="2"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TransformsType", propOrder = { + "transform" +}) +public class TransformsType { + + @XmlElement(name = "Transform", required = true) + protected List transform; + + /** + * Gets the value of the transform property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the transform property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTransform().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TransformType } + * + * + */ + public List getTransform() { + if (transform == null) { + transform = new ArrayList(); + } + return this.transform; + } + +} diff --git a/src/org/w3/_2000/_09/xmldsig_/X509DataType.java b/src/org/w3/_2000/_09/xmldsig_/X509DataType.java new file mode 100644 index 000000000..21ea66bcb --- /dev/null +++ b/src/org/w3/_2000/_09/xmldsig_/X509DataType.java @@ -0,0 +1,67 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + + +package org.w3._2000._09.xmldsig_; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Classe Java de X509DataType complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+ * <complexType name="X509DataType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="X509Certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "X509DataType", propOrder = { + "x509Certificate" +}) +public class X509DataType { + + @XmlElement(name = "X509Certificate", required = true) + protected byte[] x509Certificate; + + /** + * Obtém o valor da propriedade x509Certificate. + * + * @return + * possible object is + * byte[] + */ + public byte[] getX509Certificate() { + return x509Certificate; + } + + /** + * Define o valor da propriedade x509Certificate. + * + * @param value + * allowed object is + * byte[] + */ + public void setX509Certificate(byte[] value) { + this.x509Certificate = value; + } + +} diff --git a/src/org/w3/_2000/_09/xmldsig_/package-info.java b/src/org/w3/_2000/_09/xmldsig_/package-info.java new file mode 100644 index 000000000..fce93d84a --- /dev/null +++ b/src/org/w3/_2000/_09/xmldsig_/package-info.java @@ -0,0 +1,9 @@ +// +// Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 +// Consulte http://java.sun.com/xml/jaxb +// Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. +// Gerado em: 2017.08.14 às 03:08:29 PM BRT +// + +//@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.w3.org/2000/09/xmldsig#", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package org.w3._2000._09.xmldsig_;