ipiranga-inovai-project-lib 3.3__tar.gz → 3.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/PKG-INFO +1 -1
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/enums.py +2 -5
- ipiranga-inovai-project-lib-3.5/inovai/models/NFeItemExportacao.py +98 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/ipiranga_inovai_project_lib.egg-info/PKG-INFO +1 -1
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/setup.py +1 -1
- ipiranga-inovai-project-lib-3.3/inovai/models/NFeItemExportacao.py +0 -94
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/LICENSE +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/README.md +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/__init__.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/dtos.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/entities.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/Endereco.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFe.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeBoleto.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeCartao.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeDadosAtivos.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeDetalhePagamento.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeDocImportacao.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeDocImportacaoAdicao.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeDocRef.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeDuplicata.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeEnvioXML.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeEnvolvido.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeExportacao.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeFatura.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeImposto.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeImpostoRetido.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeIntermediadorTransacao.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeItem.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeItemDadosCombustivel.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeItemOrigemCombustivel.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeObservacao.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeObservacaoItem.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeOrigem.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFePagamento.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeProcReferenciado.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeTransporte.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeVeiculo.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeVolume.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/__init__.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/utils/__init__.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/utils/util.py +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/ipiranga_inovai_project_lib.egg-info/SOURCES.txt +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/ipiranga_inovai_project_lib.egg-info/dependency_links.txt +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/ipiranga_inovai_project_lib.egg-info/top_level.txt +0 -0
- {ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ipiranga-inovai-project-lib
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.5
|
|
4
4
|
Summary: Projeto criado para importação genérica de entidades
|
|
5
5
|
Home-page: https://gitlab.ipirangacloud.com/clayton.monteiro.ext/ipiranga-inovai-project-lib
|
|
6
6
|
Author: Clayton Sandes Monteiro
|
|
@@ -8,23 +8,20 @@ class DocumentStatus(Enum):
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class DataIntegrationStatus(Enum):
|
|
11
|
+
PENDING_INTEGRATION = 'PENDENTE_INTEGRACAO'
|
|
12
|
+
PROCESSING = 'PROCESSANDO'
|
|
11
13
|
SENT = 'ENVIADO'
|
|
12
14
|
INTEGRATED = 'INTEGRADO'
|
|
13
|
-
PENDING_INTEGRATION = 'PENDENTE_INTEGRACAO'
|
|
14
15
|
CONVERTER_ERROR = 'ERRO_CONVERSAO'
|
|
15
16
|
ERROR = "ERRO"
|
|
16
|
-
STARTING = 'INICIANDO'
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class BatchStatus(Enum):
|
|
20
20
|
CREATED = 'CRIADO'
|
|
21
21
|
SENT = 'ENVIADO'
|
|
22
22
|
INTEGRATED = 'INTEGRADO'
|
|
23
|
-
INTEGRATED_WITH_ERROR = 'INTEGRADO_COM_ERRO'
|
|
24
23
|
ERROR = 'ERRO'
|
|
25
24
|
SENT_ERROR = 'ERRO_ENVIO'
|
|
26
|
-
SENT_ERROR_OBI = 'OBI_INDISPONIVEL'
|
|
27
|
-
|
|
28
25
|
|
|
29
26
|
|
|
30
27
|
class DocumentMovementType(Enum):
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
class NFeItemExportacao:
|
|
2
|
+
codTipoConhecimentoTransp: str
|
|
3
|
+
dataAverbacao: str
|
|
4
|
+
dataDespacho: str
|
|
5
|
+
dataEmbarque: str
|
|
6
|
+
dataEmissaoNf: str
|
|
7
|
+
dataRegistro: str
|
|
8
|
+
expIndChave: str
|
|
9
|
+
expIndNumReg: str
|
|
10
|
+
expIndQtdEfet: float
|
|
11
|
+
numeroDeclaracao: str
|
|
12
|
+
numeroDrawback: str
|
|
13
|
+
numeroRegistro: str
|
|
14
|
+
paisDestino: str
|
|
15
|
+
|
|
16
|
+
def __init__(self, **json):
|
|
17
|
+
if json:
|
|
18
|
+
for key, typeProp in self.__class__.__dict__['__annotations__'].items():
|
|
19
|
+
# str, float, bool, int
|
|
20
|
+
class_name = str(typeProp).split("'")[1].split(".")[-1]
|
|
21
|
+
|
|
22
|
+
if key in json:
|
|
23
|
+
if isinstance(typeProp, list):
|
|
24
|
+
cls = globals()[class_name]
|
|
25
|
+
items = []
|
|
26
|
+
for item_data in json[key]:
|
|
27
|
+
item = cls(**item_data)
|
|
28
|
+
items.append(item)
|
|
29
|
+
setattr(self, key, items)
|
|
30
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
31
|
+
cls = globals()[class_name]
|
|
32
|
+
instance = cls(**json[key])
|
|
33
|
+
setattr(self, key, instance)
|
|
34
|
+
else:
|
|
35
|
+
setattr(self, key, str(json[key]))
|
|
36
|
+
else:
|
|
37
|
+
if isinstance(typeProp, list):
|
|
38
|
+
# cls = globals()[class_name]
|
|
39
|
+
items = []
|
|
40
|
+
setattr(self, key, items)
|
|
41
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
42
|
+
cls = globals()[class_name]
|
|
43
|
+
instance = cls()
|
|
44
|
+
setattr(self, key, instance)
|
|
45
|
+
else:
|
|
46
|
+
setattr(self, key, '')
|
|
47
|
+
else:
|
|
48
|
+
for key, typeProp in self.__class__.__dict__['__annotations__'].items():
|
|
49
|
+
class_name = str(typeProp).split("'")[1].split(".")[-1]
|
|
50
|
+
if isinstance(typeProp, list):
|
|
51
|
+
# cls = globals()[class_name]
|
|
52
|
+
items = []
|
|
53
|
+
setattr(self, key, items)
|
|
54
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
55
|
+
cls = globals()[class_name]
|
|
56
|
+
instance = cls()
|
|
57
|
+
setattr(self, key, instance)
|
|
58
|
+
else:
|
|
59
|
+
setattr(self, key, '')
|
|
60
|
+
|
|
61
|
+
def get_codTipoConhecimentoTransp(self):
|
|
62
|
+
return self.codTipoConhecimentoTransp
|
|
63
|
+
|
|
64
|
+
def get_dataAverbacao(self):
|
|
65
|
+
return self.dataAverbacao
|
|
66
|
+
|
|
67
|
+
def get_dataDespacho(self):
|
|
68
|
+
return self.dataDespacho
|
|
69
|
+
|
|
70
|
+
def get_dataEmbarque(self):
|
|
71
|
+
return self.dataEmbarque
|
|
72
|
+
|
|
73
|
+
def get_dataEmissaoNf(self):
|
|
74
|
+
return self.dataEmissaoNf
|
|
75
|
+
|
|
76
|
+
def get_dataRegistro(self):
|
|
77
|
+
return self.dataRegistro
|
|
78
|
+
|
|
79
|
+
def get_expIndChave(self):
|
|
80
|
+
return self.expIndChave
|
|
81
|
+
|
|
82
|
+
def get_expIndNumReg(self):
|
|
83
|
+
return self.expIndNumReg
|
|
84
|
+
|
|
85
|
+
def get_expIndQtdEfet(self):
|
|
86
|
+
return self.expIndQtdEfet
|
|
87
|
+
|
|
88
|
+
def get_numeroDeclaracao(self):
|
|
89
|
+
return self.numeroDeclaracao
|
|
90
|
+
|
|
91
|
+
def get_numeroDrawback(self):
|
|
92
|
+
return self.numeroDrawback
|
|
93
|
+
|
|
94
|
+
def get_numeroRegistro(self):
|
|
95
|
+
return self.numeroRegistro
|
|
96
|
+
|
|
97
|
+
def get_paisDestino(self):
|
|
98
|
+
return self.paisDestino
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ipiranga-inovai-project-lib
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.5
|
|
4
4
|
Summary: Projeto criado para importação genérica de entidades
|
|
5
5
|
Home-page: https://gitlab.ipirangacloud.com/clayton.monteiro.ext/ipiranga-inovai-project-lib
|
|
6
6
|
Author: Clayton Sandes Monteiro
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="ipiranga-inovai-project-lib",
|
|
5
|
-
version="3.
|
|
5
|
+
version="3.5",
|
|
6
6
|
packages=find_packages(),
|
|
7
7
|
description="Projeto criado para importação genérica de entidades",
|
|
8
8
|
long_description=open('README.md').read(),
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
class NFeItemExportacao:
|
|
2
|
-
codTipoConhecimentoTransp: str
|
|
3
|
-
dataAverbacao: str
|
|
4
|
-
dataDespacho: str
|
|
5
|
-
dataEmbarque: str
|
|
6
|
-
dataEmissaoNf: str
|
|
7
|
-
dataRegistro: str
|
|
8
|
-
expIndChave: str
|
|
9
|
-
expIndNumReg: str
|
|
10
|
-
expIndQtdEfet: float
|
|
11
|
-
numeroDeclaracao: str
|
|
12
|
-
numeroDrawback: str
|
|
13
|
-
numeroRegistro: str
|
|
14
|
-
|
|
15
|
-
def __init__(self, **json):
|
|
16
|
-
if json:
|
|
17
|
-
for key, typeProp in self.__class__.__dict__['__annotations__'].items():
|
|
18
|
-
# str, float, bool, int
|
|
19
|
-
class_name = str(typeProp).split("'")[1].split(".")[-1]
|
|
20
|
-
|
|
21
|
-
if key in json:
|
|
22
|
-
if isinstance(typeProp, list):
|
|
23
|
-
cls = globals()[class_name]
|
|
24
|
-
items = []
|
|
25
|
-
for item_data in json[key]:
|
|
26
|
-
item = cls(**item_data)
|
|
27
|
-
items.append(item)
|
|
28
|
-
setattr(self, key, items)
|
|
29
|
-
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
30
|
-
cls = globals()[class_name]
|
|
31
|
-
instance = cls(**json[key])
|
|
32
|
-
setattr(self, key, instance)
|
|
33
|
-
else:
|
|
34
|
-
setattr(self, key, str(json[key]))
|
|
35
|
-
else:
|
|
36
|
-
if isinstance(typeProp, list):
|
|
37
|
-
# cls = globals()[class_name]
|
|
38
|
-
items = []
|
|
39
|
-
setattr(self, key, items)
|
|
40
|
-
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
41
|
-
cls = globals()[class_name]
|
|
42
|
-
instance = cls()
|
|
43
|
-
setattr(self, key, instance)
|
|
44
|
-
else:
|
|
45
|
-
setattr(self, key, '')
|
|
46
|
-
else:
|
|
47
|
-
for key, typeProp in self.__class__.__dict__['__annotations__'].items():
|
|
48
|
-
class_name = str(typeProp).split("'")[1].split(".")[-1]
|
|
49
|
-
if isinstance(typeProp, list):
|
|
50
|
-
# cls = globals()[class_name]
|
|
51
|
-
items = []
|
|
52
|
-
setattr(self, key, items)
|
|
53
|
-
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
54
|
-
cls = globals()[class_name]
|
|
55
|
-
instance = cls()
|
|
56
|
-
setattr(self, key, instance)
|
|
57
|
-
else:
|
|
58
|
-
setattr(self, key, '')
|
|
59
|
-
|
|
60
|
-
def get_codTipoConhecimentoTransp(self):
|
|
61
|
-
return self.codTipoConhecimentoTransp
|
|
62
|
-
|
|
63
|
-
def get_dataAverbacao(self):
|
|
64
|
-
return self.dataAverbacao
|
|
65
|
-
|
|
66
|
-
def get_dataDespacho(self):
|
|
67
|
-
return self.dataDespacho
|
|
68
|
-
|
|
69
|
-
def get_dataEmbarque(self):
|
|
70
|
-
return self.dataEmbarque
|
|
71
|
-
|
|
72
|
-
def get_dataEmissaoNf(self):
|
|
73
|
-
return self.dataEmissaoNf
|
|
74
|
-
|
|
75
|
-
def get_dataRegistro(self):
|
|
76
|
-
return self.dataRegistro
|
|
77
|
-
|
|
78
|
-
def get_expIndChave(self):
|
|
79
|
-
return self.expIndChave
|
|
80
|
-
|
|
81
|
-
def get_expIndNumReg(self):
|
|
82
|
-
return self.expIndNumReg
|
|
83
|
-
|
|
84
|
-
def get_expIndQtdEfet(self):
|
|
85
|
-
return self.expIndQtdEfet
|
|
86
|
-
|
|
87
|
-
def get_numeroDeclaracao(self):
|
|
88
|
-
return self.numeroDeclaracao
|
|
89
|
-
|
|
90
|
-
def get_numeroDrawback(self):
|
|
91
|
-
return self.numeroDrawback
|
|
92
|
-
|
|
93
|
-
def get_numeroRegistro(self):
|
|
94
|
-
return self.numeroRegistro
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/Endereco.py
RENAMED
|
File without changes
|
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeBoleto.py
RENAMED
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeCartao.py
RENAMED
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeDadosAtivos.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeDocRef.py
RENAMED
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeDuplicata.py
RENAMED
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeEnvioXML.py
RENAMED
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeEnvolvido.py
RENAMED
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeExportacao.py
RENAMED
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeFatura.py
RENAMED
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeImposto.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeItem.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeObservacao.py
RENAMED
|
File without changes
|
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeOrigem.py
RENAMED
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFePagamento.py
RENAMED
|
File without changes
|
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeTransporte.py
RENAMED
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeVeiculo.py
RENAMED
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/NFeVolume.py
RENAMED
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/models/__init__.py
RENAMED
|
File without changes
|
{ipiranga-inovai-project-lib-3.3 → ipiranga-inovai-project-lib-3.5}/inovai/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|