Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #27 from tfiliano/master
Browse files Browse the repository at this point in the history
Implementações para NFe
  • Loading branch information
lealhugui authored May 15, 2020
2 parents c8f8b0b + a832f2b commit 17ca126
Show file tree
Hide file tree
Showing 58 changed files with 8,190 additions and 79 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ package-lock.json
yarn.lock

# npm deploy folder
lib
# lib

# python compiled
**/**/*.pyc
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ As releases do ```node-dfe``` seguem as liberações de versao/NT da SEFAZ, no f

## Estado Atual e Proximos Passos

Atualmente a biblioteca suporta eventos de emissao de DF-es modelo 65 (NFC-e) para todos os estados, nos modelos sincrono e assincrono. As proximas versoes Fix devem contemplar ajustes necessários para emissão de DF-e modelo 55 (NF-e) e também diferentes eventos para estes modelos (inutilização e cancelamento por exemplo).
Atualmente a biblioteca suporta eventos de emissao de DF-es modelo 55 e 65 (NF-e e NFC-e) para todos os estados, nos modelos sincrono e assincrono.
Rotinas como: Cancelamento, Carta de Correção e Inutilização, devem ser testadas em outras UF, foram feitos testes apenas em SP.
17 changes: 8 additions & 9 deletions autorizadores.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,23 +167,22 @@
"url_producao": "https://nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx",
"url_homologacao": "https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx"
},
"Inutilizacao": {
"inutilizacao": {
"url_producao": "https://nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx",
"url_homologacao": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx"
}
,"consultarProtocolo": {
},
"consultarProtocolo": {
"url_producao": "https://nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx",
"url_homologacao": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx"
}
,"consultarCadastro": {
},
"consultarCadastro": {
"url_producao": "https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx",
"url_homologacao": "https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"
}
,"recepcaoEvento": {
},
"recepcaoEvento": {
"url_producao": "https://nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx",
"url_homologacao": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx"
}

}
}
}
}
2 changes: 1 addition & 1 deletion autorizadoresNFe.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
"url_producao": "https://nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx",
"url_homologacao": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx"
},
"Inutilizacao": {
"inutilizacao": {
"url_producao": "https://nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx",
"url_homologacao": "https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx"
}
Expand Down
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

module.exports = require('./lib');
6 changes: 6 additions & 0 deletions lib/factory/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export { NFeProcessor } from './processor/nfeProcessor2';
export { RetornoProcessor } from './processor/retornoProcessor';
export { StatusServicoProcessor } from './processor/statusServicoProcessor';
export { EventoProcessor } from './processor/eventoProcessor';
export { InutilizaProcessor } from './processor/inutilizaProcessor';
export * from './interface';
16 changes: 16 additions & 0 deletions lib/factory/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
var nfeProcessor2_1 = require("./processor/nfeProcessor2");
exports.NFeProcessor = nfeProcessor2_1.NFeProcessor;
var retornoProcessor_1 = require("./processor/retornoProcessor");
exports.RetornoProcessor = retornoProcessor_1.RetornoProcessor;
var statusServicoProcessor_1 = require("./processor/statusServicoProcessor");
exports.StatusServicoProcessor = statusServicoProcessor_1.StatusServicoProcessor;
var eventoProcessor_1 = require("./processor/eventoProcessor");
exports.EventoProcessor = eventoProcessor_1.EventoProcessor;
var inutilizaProcessor_1 = require("./processor/inutilizaProcessor");
exports.InutilizaProcessor = inutilizaProcessor_1.InutilizaProcessor;
__export(require("./interface"));
43 changes: 43 additions & 0 deletions lib/factory/interface/evento/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
export interface Evento {
id: string;
tpAmbiente: string;
CNPJ: string;
cOrgao: string;
chNFe: string;
dhEvento: string;
tpEvento: string;
nSeqEvento: string;
versaoEvento: string;
detEvento: DetalheEvento;
}
export interface DetalheEvento {
versao: string;
descEvento: string;
xCorrecao: string;
xCondUso: string;
nProt: string;
xJust: string;
cOrgaoAutor: number;
tpAutor: string;
verAplic: string;
chNFeRef: string;
dhEmi: Date;
tpNF: string;
IE: string;
dest: EventoDestinatario;
vNF: number;
vICMS: number;
vST: number;
itemPedido: EventoItemPedido;
idPedidoCancelado: string;
}
export interface EventoItemPedido {
numItem: number;
qtdeItem: number;
}
export interface EventoDestinatario {
UF: string;
CNPJCPF: string;
idEstrangeiro: string;
IE: string;
}
2 changes: 2 additions & 0 deletions lib/factory/interface/evento/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
2 changes: 2 additions & 0 deletions lib/factory/interface/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './evento';
export * from './nfe';
6 changes: 6 additions & 0 deletions lib/factory/interface/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./nfe"));
8 changes: 8 additions & 0 deletions lib/factory/interface/inutilizacao/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export interface Inutilizar {
ano: number;
modelo: number;
serie: number;
numeroInicial: number;
numeroFinal: number;
xJustificativa: string;
}
2 changes: 2 additions & 0 deletions lib/factory/interface/inutilizacao/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
Loading

0 comments on commit 17ca126

Please sign in to comment.