Documentation ¶
Index ¶
- type CteProc
- type NFe
- type NfeProc
- type NfeProcNfeProc
- type ProcEventoCTe
- type ProcEventoNFe
- type ProdutosNfe
- type Reg0000
- type Reg0100
- type Reg0150
- type Reg0190
- type Reg0200
- type Reg0220
- type RegC100
- type RegC170
- type RegC190
- type RegC400
- type RegC405
- type RegC420
- type RegC425
- type RegC460
- type RegC465
- type RegC470
- type RegC490
- type RegH005
- type RegH010
- type ResEvento
- type RetInutNfe
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CteProc ¶
type CteProc struct { bongo.DocumentBase `bson:",inline"` Cte struct { InfCte struct { Versao string `xml:"versao,attr"` Id string `xml:"Id,attr"` Ide struct { CUf string `xml:"cUF"` CCT string `xml:"cCT"` CFOP string `xml:"CFOP"` NatOp string `xml:"natOp"` Mod string `xml:"mod"` Serie string `xml:"serie"` NCT string `xml:"nCT"` DhEmi string `xml:"dhEmi"` TpImp string `xml:"tpImp"` TpEmis string `xml:"tpEmis"` CDV string `xml:"cDV"` TpAmb string `xml:"tpAmb"` TpCTe string `xml:"tpCTe"` ProcEmi string `xml:"procEmi"` VerProc string `xml:"verProc"` CMunEnv string `xml:"cMunEnv"` XMunEnv string `xml:"xMunEnv"` UFEnv string `xml:"UFEnv"` Modal string `xml:"modal"` TpServ string `xml:"tpServ"` CMunIni string `xml:"cMunIni"` XMunIni string `xml:"xMunIni"` UFIni string `xml:"UFIni"` CMunFim string `xml:"cMunFim"` XMunFim string `xml:"xMunFim"` UFFim string `xml:"UFFim"` Retira string `xml:"retira"` IndIEToma string `xml:"indIEToma"` Toma3 struct { Toma string `xml:"toma"` } `xml:"toma3"` } `xml:"ide"` Compl struct { XCaracAd string `xml:"xCaracAd"` XCaracSer string `xml:"xCaracSer"` XEmi string `xml:"xEmi"` Entrega struct { NoPeriodo struct { TpPer string `xml:"tpPer"` DIni string `xml:"dIni"` DFim string `xml:"dFim"` } `xml:"noPeriodo"` ComHora struct { TpHor string `xml:"tpHor"` HProg string `xml:"hProg"` } `xml:"comHora"` } `xml:"Entrega"` Xobs string `xml:"xObs"` ObsCont struct { XTexto string `xml:"xTexto"` } } `xml:"compl"` Emit struct { CNPJ string `xml:"CNPJ"` IE string `xml:"IE"` XNome string `xml:"xNome"` XFant string `xml:"xFant"` EnderEmit struct { XLgr string `xml:"xLgr"` Nro string `xml:"nro"` XBairro string `xml:"xBairro"` CMun string `xml:"cMun"` XMun string `xml:"xMun"` CEP string `xml:"CEP"` UF string `xml:"UF"` Fone string `xml:"fone"` } `xml:"enderEmit"` } `xml:"emit"` Rem struct { CNPJ string `xml:"CNPJ"` IE string `xml:"IE"` XNome string `xml:"xNome"` Fone string `xml:"fone"` EnderReme struct { XLgr string `xml:"xLgr"` Nro string `xml:"nro"` XBairro string `xml:"xBairro"` CMun string `xml:"cMun"` XMun string `xml:"xMun"` CEP string `xml:"CEP"` UF string `xml:"UF"` } `xml:"enderReme"` } `xml:"rem"` Dest struct { CNPJ string `xml:"CNPJ"` IE string `xml:"IE"` XNome string `xml:"xNome"` Fone string `xml:"fone"` EnderDest struct { XLgr string `xml:"xLgr"` Nro string `xml:"nro"` XBairro string `xml:"xBairro"` CMun string `xml:"cMun"` XMun string `xml:"xMun"` CEP string `xml:"CEP"` UF string `xml:"UF"` } `xml:"enderDest"` } `xml:"dest"` VPrest struct { VTPrest string `xml:"vTPrest"` VRec string `xml:"vRec"` Comp []struct { XNome string `xml:"vTPrest"` VComp string `xml:"vRec"` } `xml:"Comp"` } `xml:"vPrest"` } `xml:"infCte"` } `xml:"CTe"` }
type NFe ¶
type NFe struct { bongo.DocumentBase `bson:",inline"` InfNFe struct { Versao string `xml:"versao,attr"` Id string `xml:"Id,attr"` Ide struct { Cuf string `xml:"cUF"` Cnf string `xml:"cNF"` NatOp string `xml:"natOp"` IndPag string `xml:"indPag"` Mod string `xml:"mod"` Serie string `xml:"serie"` Nnf string `xml:"nNF"` DhEmit string `xml:"dhEmi"` DhSaiEnt string `xml:"dhSaiEnt"` TpNf string `xml:"tpNF"` IdDest string `xml:"idDest"` CmunFg string `xml:"cMunFG"` TpImp string `xml:"tpImp"` TpEmis string `xml:"tpEmis"` Cdv string `xml:"cDV"` TpAmb string `xml:"tpAmb"` FinNfe string `xml:"finNFe"` IndFinal string `xml:"indFinal"` IndPres string `xml:"indPres"` ProcEmi string `xml:"procEmi"` VerProc string `xml:"verProc"` } `xml:"ide"` Emit struct { Cnpj string `xml:"CNPJ"` Xnome string `xml:"xNome"` Xfant string `xml:"xFant"` EnderEmit struct { XLgr string `xml:"xLgr"` Nro string `xml:"nro"` Xbairro string `xml:"xBairro"` Cmun string `xml:"cMun"` Xmun string `xml:"xMun"` Uf string `xml:"UF"` Cep string `xml:"CEP"` Cpais string `xml:"cPais"` Xpais string `xml:"xPais"` Fone string `xml:"fone"` } `xml:"enderEmit"` Ie string `xml:"IE"` Crt string `xml:"CRT"` } `xml:"emit"` Dest struct { Cnpj string `xml:"CNPJ"` Xnome string `xml:"xNome"` Xfant string `xml:"xFant"` EnderDest struct { XLgr string `xml:"xLgr"` Nro string `xml:"nro"` Xbairro string `xml:"xBairro"` Cmun string `xml:"cMun"` Xmun string `xml:"xMun"` Uf string `xml:"UF"` Cep string `xml:"CEP"` Cpais string `xml:"cPais"` Xpais string `xml:"xPais"` Fone string `xml:"fone"` } `xml:"enderDest"` Ie string `xml:"IE"` Crt string `xml:"CRT"` } `xml:"dest"` Det []struct { NItem string `xml:"nItem,attr"` Prod struct { CProd string `xml:"cProd"` CEAN string `xml:"cEAN"` XProd string `xml:"xProd"` NCM string `xml:"NCM"` CFOP string `xml:"CFOP"` UCom string `xml:"uCom"` QCom string `xml:"qCom"` VUnCom string `xml:"vUnCom"` VProd string `xml:"vProd"` CEANTrib string `xml:"cEANTrib"` UTrib string `xml:"uTrib"` QTrib string `xml:"qTrib"` VUnTrib string `xml:"vUnTrib"` IndTot string `xml:"indTot"` } `xml:"prod"` Imposto struct { VtotTrib string `xml:"vTotTrib"` Icms struct { Icms00 struct { Orig string `xml:"orig"` Cst string `xml:"CST"` } `xml:"ICMS00"` Icms60 struct { Orig string `xml:"orig"` Cst string `xml:"CST"` } `xml:"ICMS60"` } `xml:"ICMS"` } `xml:"imposto"` } `xml:"det"` } `xml:"infNFe"` }
type NfeProc ¶
type NfeProc struct { bongo.DocumentBase `bson:",inline"` NFe struct { InfNFe struct { Versao string `xml:"versao,attr"` Id string `xml:"Id,attr"` Ide struct { Cuf string `xml:"cUF"` Cnf string `xml:"cNF"` NatOp string `xml:"natOp"` IndPag string `xml:"indPag"` Mod string `xml:"mod"` Serie string `xml:"serie"` Nnf string `xml:"nNF"` DhEmit string `xml:"dhEmi"` DhSaiEnt string `xml:"dhSaiEnt"` TpNf string `xml:"tpNF"` IdDest string `xml:"idDest"` CmunFg string `xml:"cMunFG"` TpImp string `xml:"tpImp"` TpEmis string `xml:"tpEmis"` Cdv string `xml:"cDV"` TpAmb string `xml:"tpAmb"` FinNfe string `xml:"finNFe"` IndFinal string `xml:"indFinal"` IndPres string `xml:"indPres"` ProcEmi string `xml:"procEmi"` VerProc string `xml:"verProc"` } `xml:"ide"` Emit struct { Cnpj string `xml:"CNPJ"` Xnome string `xml:"xNome"` Xfant string `xml:"xFant"` EnderEmit struct { XLgr string `xml:"xLgr"` Nro string `xml:"nro"` Xbairro string `xml:"xBairro"` Cmun string `xml:"cMun"` Xmun string `xml:"xMun"` Uf string `xml:"UF"` Cep string `xml:"CEP"` Cpais string `xml:"cPais"` Xpais string `xml:"xPais"` Fone string `xml:"fone"` } `xml:"enderEmit"` Ie string `xml:"IE"` Crt string `xml:"CRT"` } `xml:"emit"` Dest struct { Cnpj string `xml:"CNPJ"` Xnome string `xml:"xNome"` Xfant string `xml:"xFant"` EnderDest struct { XLgr string `xml:"xLgr"` Nro string `xml:"nro"` Xbairro string `xml:"xBairro"` Cmun string `xml:"cMun"` Xmun string `xml:"xMun"` Uf string `xml:"UF"` Cep string `xml:"CEP"` Cpais string `xml:"cPais"` Xpais string `xml:"xPais"` Fone string `xml:"fone"` } `xml:"enderDest"` Ie string `xml:"IE"` Crt string `xml:"CRT"` } `xml:"dest"` Det []struct { NItem string `xml:"nItem,attr"` Prod struct { CProd string `xml:"cProd"` CEAN string `xml:"cEAN"` XProd string `xml:"xProd"` NCM string `xml:"NCM"` CFOP string `xml:"CFOP"` UCom string `xml:"uCom"` QCom string `xml:"qCom"` VUnCom string `xml:"vUnCom"` VProd string `xml:"vProd"` CEANTrib string `xml:"cEANTrib"` UTrib string `xml:"uTrib"` QTrib string `xml:"qTrib"` VUnTrib string `xml:"vUnTrib"` IndTot string `xml:"indTot"` } `xml:"prod"` Imposto struct { VtotTrib string `xml:"vTotTrib"` Icms struct { Icms00 struct { Orig string `xml:"orig"` Cst string `xml:"CST"` } `xml:"ICMS00"` Icms60 struct { Orig string `xml:"orig"` Cst string `xml:"CST"` } `xml:"ICMS60"` } `xml:"ICMS"` } `xml:"imposto"` } `xml:"det"` } `xml:"infNFe"` } `xml:"NFe"` }
type NfeProcNfeProc ¶
type NfeProcNfeProc struct { bongo.DocumentBase `bson:",inline"` NfeProc NfeProc `xml:"nfeProc"` }
type ProcEventoCTe ¶
type ProcEventoCTe struct { bongo.DocumentBase `bson:",inline"` EventoCTe struct { InfEvento struct { COrgao string `xml:"cOrgao"` TpAmb string `xml:"tpAmb"` CNPJ string `xml:"CNPJ"` ChCTe string `xml:"chCTe"` DhEvento string `xml:"dhEvento"` TpEvento string `xml:"tpEvento"` NSeqEvento string `xml:"nSeqEvento"` DetEvento struct { EvCTeAutorizadoMDFe struct { DescEvento string `xml:"descEvento"` MDFe struct { ChMDFe string `xml:"chMDFe"` Modal string `xml:"modal"` DhEmi string `xml:"dhEmi"` NProt string `xml:"nProt"` DhRecbto string `xml:"dhRecbto"` } `xml:"MDFe"` Emit struct { CNPJ string `xml:"CNPJ"` IE string `xml:"IE"` XNome string `xml:"xNome"` } `xml:"emit"` } `xml:"evCTeAutorizadoMDFe"` } `xml:"detEvento"` } `xml:"infEvento"` } `xml:"eventoCTe"` }
type ProcEventoNFe ¶
type ProcEventoNFe struct { bongo.DocumentBase `bson:",inline"` Versao string `xml:"versao,attr"` Evento struct { InfEvento struct { Id string `xml:"Id,attr"` COrgao string `xml:"cOrgao"` TpAmb string `xml:"tpAmb"` CNPJ string `xml:"CNPJ"` ChNFe string `xml:"chNFe"` HhEvento string `xml:"dhEvento"` TpEvento string `xml:"tpEvento"` NSeqEvento string `xml:"nSeqEvento"` VerEvento string `xml:"verEvento"` DetEvento struct { Versao string `xml:"versao,attr"` DescEvento string `xml:"descEvento"` NProt string `xml:"nProt"` XJust string `xml:"xJust"` } `xml:"detEvento"` } `xml:"infEvento"` } `xml:"evento"` RetEvento struct { InfEvento struct { TpAmb string `xml:"tpAmb"` VerAplic string `xml:"verAplic"` COrgao string `xml:"cOrgao"` CStat string `xml:"cStat"` XMotivo string `xml:"xMotivo"` ChNFe string `xml:"chNFe"` TpEvento string `xml:"tpEvento"` XEvento string `xml:"xEvento"` NSeqEvento string `xml:"nSeqEvento"` DhRegEvento string `xml:"dhRegEvento"` NProt string `xml:"nProt"` } `xml:"infEvento"` } `xml:"retEvento"` }
type ProdutosNfe ¶
type ProdutosNfe struct { bongo.DocumentBase `bson:",inline"` ID bson.ObjectId `bson:"_id,omitempty" json:"id,omitempty"` Chave string `bson:"chave" json:"chave"` Sequencial string `bson:"sequencial" json:"sequencial"` Descricao string `bson:"descricao" json:"descricao"` Qtd string `bson:"qtd" json:"qtd"` Un string `bson:"un" json:"un"` VlTot string `bson:"vlTot" json:"vlTot"` Codigo string `bson:"codigo" json:"codigo"` Ncm string `bson:"ncm" json:"ncm"` Cest string `bson:"cest" json:"cest"` ExTipi string `bson:"exTipi" json:"exTipi"` Cfop string `bson:"cfop" json:"cfop"` OutrasDespesas string `bson:"outrasDespesas" json:"outrasDespesas"` VlDesc string `bson:"vlDesc" json:"vlDesc"` VlTotFrete string `bson:"vlTotFrete" json:"vlTotFrete"` VlSeguro string `bson:"vlSeguro" json:"vlSeguro"` IndComposicao string `bson:"indComposicao" json:"indComposicao"` EanComercial string `bson:"eanComercial" json:"eanComercial"` UnComercial string `bson:"unComercial" json:"unComercial"` QtdComercial string `bson:"qtdComercial" json:"qtdComercial"` EanTributavel string `bson:"eanTributavel" json:"eanTributavel"` UnTributavel string `bson:"unTributavel" json:"unTributavel"` QtdTributavel string `bson:"qtdTributavel" json:"qtdTributavel"` VlUnitComercial string `bson:"vlUnitComercial" json:"vlUnitComercial"` VlUnitTributavel string `bson:"vlUnitTributavel" json:"vlUnitTributavel"` NumPedido string `bson:"numPedido" json:"numPedido"` ItemPedido string `bson:"itemPedido" json:"itemPedido"` VlAproxTributo string `bson:"vlAproxTributo" json:"vlAproxTributo"` NumFci string `bson:"numFci" json:"numFci"` }
ProdutosNfe : Produtos da base auditoria estraido via scrapy pelo sistema NfeScrapy
type Reg0000 ¶
type Reg0000 struct { bongo.DocumentBase `bson:",inline"` Reg string CodVer string CodFin string DtIni string DtFin string Nome string Cnpj string Cpf string Uf string Ie string CodMun string Im string Suframa string IndPerfil string IndAtiv string }
Reg0000 : Abertura do Arquivo Digital e Identificação da entidade
type Reg0100 ¶
type Reg0100 struct { bongo.DocumentBase `bson:",inline"` Reg string Nome string Cpf string Crc string Cnpj string Cep string End string Num string Compl string Bairro string Fone string Fax string Email string CodMun string DtIni string DtFin string CnpjSped string }
Reg0100 : Dados do Contabilista
type Reg0150 ¶
type Reg0150 struct { bongo.DocumentBase `bson:",inline"` Reg string CodPart string Nome string CodPais string Cnpj string Cpf string Ie string CodMun string Suframa string Endereco string Num string Compl string Bairro string DtIni string DtFin string CnpjSped string }
Reg0150 : Tabela de Cadastro do Participante
type Reg0190 ¶
type Reg0190 struct { bongo.DocumentBase `bson:",inline"` Reg string Unid string Descr string DtIni string DtFin string CnpjSped string }
Reg0190 : Identificação das unidades de medida
type Reg0200 ¶
type Reg0200 struct { bongo.DocumentBase `bson:",inline"` Reg string CodItem string DescrItem string CodBarra string CodAntItem string UnidInv string TipoItem string CodNcm string ExIpi string CodGen string CodLst string AliqIcms string DtIni string DtFin string CnpjSped string }
Reg0200 : Tabela de Identificação do Item (Produtos e Serviços)
type Reg0220 ¶
type Reg0220 struct { bongo.DocumentBase `bson:",inline"` Reg string UnidConv string FatConv string UnidCod string CodItem string DtIni string DtFin string CnpjSped string }
Reg0220 : Fatores de Conversão de Unidades
type RegC100 ¶
type RegC100 struct { bongo.DocumentBase `bson:",inline"` Reg string IndOper string IndEmit string CodPart string CodMod string CodSit string Ser string NumDoc string ChvNfe string DtDoc string DtES string VlDoc string IndPgto string VlDesc string VlAbatNt string VlMerc string IndFrt string VlFrt string VlSeg string VlOutDa string VlBcIcms string VlIcms string VlBcIcmsSt string VlIcmsSt string VlIpi string VlPis string VlCofins string VlPisSt string VlCofinsSt string DtIni string DtFin string CnpjSped string }
RegC100 : Documento - Nota Fiscal Eletrônica (código 55) e Nota Fiscal Eletrônica para Consumidor Final (código 65)
type RegC170 ¶
type RegC170 struct { bongo.DocumentBase `bson:",inline"` Reg string NumItem string CodItem string DescrCompl string Qtd string Unid string VlItem string VlDesc string IndMov string CstIcms string Cfop string CodNat string VlBcIcms string AliqIcms string VlIcms string VlBcIcmsSt string AliqSt string VlIcmsSt string IndApur string CstIpi string CodEnq string VlBcIpi string AliqIpi string VlIpi string CstPis string VlBcPis string AliqPis01 string QuantBcPis string AliqPis02 string VlPis string CstCofins string VlBcCofins string AliqCofins01 string QuantBcCofins string AliqCofins02 string VlCofins string CodCta string EntradaSaida string NumDoc string ChvNfe string DtIni string DtFin string CnpjSped string }
RegC170 : Complemento de Documento - Itens do Documento (código 01, 1B, 04 e 55)
type RegC190 ¶
type RegC190 struct { bongo.DocumentBase `bson:",inline"` Reg string CstIcms string AliqIcms string VlOpr string VlBcIcms string VlIcms string VlBcIcmsSt string VlIcmsSt string VlRedBc string VlIpi string CodObs string DtIni string DtFin string CnpjSped string }
RegC190 : Registro Analítico do Documento (código 01, 1B, 04, 55 e 65)
type RegC400 ¶
type RegC400 struct { bongo.DocumentBase `bson:",inline"` Reg string CodMod string EcfMod string EcfFab string EcfCx string DtIni string DtFin string CnpjSped string }
RegC400 : Equipamento ECF (código 02, 2D e 60),
type RegC405 ¶
type RegC405 struct { bongo.DocumentBase `bson:",inline"` Reg string DtDoc string Cro string Crz string NumCooFin string GtFin string VlBrt string DtIni string DtFin string CnpjSped string }
RegC405 : Redução Z (código 02, 2D e 60)
type RegC420 ¶
type RegC420 struct { bongo.DocumentBase `bson:",inline"` Reg string CodTotPar string VlrAcumTot string NrTot string DescrNrTot string DtIni string DtFin string CnpjSped string }
RegC420 : Registro dos Totalizadores Parciais da Redução Z (código 02, 2D e 60)
type RegC425 ¶
type RegC425 struct { bongo.DocumentBase `bson:",inline"` Reg string CodItem string Qtd string Unid string VlItem string VlPis string VlCofins string DtVenda string DtIni string DtFin string CnpjSped string }
RegC425 : Resumo de itens do movimento diário (código 02 e 2D)
type RegC460 ¶
type RegC460 struct { bongo.DocumentBase `bson:",inline"` Reg string CodMod string CodSit string NumDoc string DtDoc string VlDoc string VlPis string VlCofins string CpfCnpj string NomAdq string DtIni string DtFin string CnpjSped string }
RegC460 : Documento Fiscal Emitido por ECF (código 02, 2D e 60)
type RegC465 ¶
type RegC465 struct { bongo.DocumentBase `bson:",inline"` Reg string ChvCfe string NumCcF string DtIni string DtFin string CnpjSped string }
RegC465 : Complemento do Cupom Fiscal Eletrônico Emitido por ECF - CF-e-ECF (código 60)
type RegC470 ¶
type RegC470 struct { bongo.DocumentBase `bson:",inline"` Reg string CodItem string Qtd string QtdCanc string Unid string VlItem string CstIcms string Cfop string AliqIcms string VlPis string VlCofins string DtIni string DtFin string CnpjSped string }
RegC470 : Itens do Documento Fiscal Emitido por ECF (código 02 e 2D)
type RegC490 ¶
type RegC490 struct { bongo.DocumentBase `bson:",inline"` Reg string CstIcms string Cfop string AliqIcms string VlOpr string VlBcIcms string VlIcms string CodObs string DtIni string DtFin string CnpjSped string }
RegC490 : Registro Analítico do movimento diário (código 02, 2D e 60)
type RegH005 ¶
type RegH005 struct { bongo.DocumentBase `bson:",inline"` Reg string DtInv string VlInv string MotInv string DtIni string DtFin string CnpjSped string }
RegH005 : Totais do Inventário
type RegH010 ¶
type RegH010 struct { bongo.DocumentBase `bson:",inline"` Reg string CodItem string Unid string Qtd string VlUnit string VlItem string IndProp string CodPart string TxtCompl string CodCta string VlItemIr string DtInv string DtIni string DtFin string CnpjSped string }
RegH010 : Inventário
type ResEvento ¶
type ResEvento struct { bongo.DocumentBase `bson:",inline"` COrgao string `xml:"cOrgao"` CNPJ string `xml:"CNPJ"` ChNFe string `xml:"chNFe"` DhEvento string `xml:"dhEvento"` TpEvento string `xml:"tpEvento"` NSeqEvento string `xml:"nSeqEvento"` XEvento string `xml:"xEvento"` DhRecbto string `xml:"dhRecbto"` NProt string `xml:"nProt"` }
type RetInutNfe ¶
type RetInutNfe struct { bongo.DocumentBase `bson:",inline"` Xmlns string `xml:"xmlns,attr"` Versao string `xml:"versao,attr"` InfInut struct { TpAmb string `xml:"tpAmb"` VerAplic string `xml:"verAplic"` CStat string `xml:"cStat"` XMotivo string `xml:"xMotivo"` CUF string `xml:"cUF"` Ano string `xml:"ano"` CNPJ string `xml:"CNPJ"` Mod string `xml:"mod"` Serie string `xml:"serie"` NNFIni string `xml:"nNFIni"` NNFFin string `xml:"nNFFin"` DhRecbto string `xml:"dhRecbto"` NProt string `xml:"nProt"` } `xml:"infInut"` }
Source Files ¶
- CteProc.go
- Nfe.go
- NfeProc.go
- ProcEventoCte.go
- ProcEventoNfe.go
- ProdutosNfe.go
- Reg0000.go
- Reg0100.go
- Reg0150.go
- Reg0190.go
- Reg0200.go
- Reg0220.go
- RegC100.go
- RegC170.go
- RegC190.go
- RegC400.go
- RegC405.go
- RegC420.go
- RegC425.go
- RegC460.go
- RegC465.go
- RegC470.go
- RegC490.go
- RegH005.go
- RegH010.go
- ResEvento.go
- RetInutNfe.go
- nfeProcNfeProc.go