ipiranga-inovai-project-lib 2.8__py3-none-any.whl → 3.0__py3-none-any.whl
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.
- inovai/entities.py +11 -10
- {ipiranga_inovai_project_lib-2.8.dist-info → ipiranga_inovai_project_lib-3.0.dist-info}/METADATA +1 -1
- {ipiranga_inovai_project_lib-2.8.dist-info → ipiranga_inovai_project_lib-3.0.dist-info}/RECORD +6 -6
- {ipiranga_inovai_project_lib-2.8.dist-info → ipiranga_inovai_project_lib-3.0.dist-info}/LICENSE +0 -0
- {ipiranga_inovai_project_lib-2.8.dist-info → ipiranga_inovai_project_lib-3.0.dist-info}/WHEEL +0 -0
- {ipiranga_inovai_project_lib-2.8.dist-info → ipiranga_inovai_project_lib-3.0.dist-info}/top_level.txt +0 -0
inovai/entities.py
CHANGED
|
@@ -2,7 +2,7 @@ from datetime import datetime
|
|
|
2
2
|
from sqlalchemy import Column, String, Date, DateTime, ForeignKey, Integer, Text, Numeric, Boolean, JSON
|
|
3
3
|
from sqlalchemy.ext.declarative import declarative_base
|
|
4
4
|
from sqlalchemy.orm import relationship
|
|
5
|
-
from sqlalchemy.util import deprecated
|
|
5
|
+
# from sqlalchemy.util import deprecated
|
|
6
6
|
|
|
7
7
|
Base = declarative_base()
|
|
8
8
|
DATETIME_NOW = 'NOW()'
|
|
@@ -33,7 +33,7 @@ class ObiIntegration(Base):
|
|
|
33
33
|
|
|
34
34
|
def to_dict(self):
|
|
35
35
|
return {
|
|
36
|
-
"
|
|
36
|
+
"no_seq_integr_obi": self.id,
|
|
37
37
|
"aq_json": self.json_content,
|
|
38
38
|
"cd_unico_integr_obi": self.integration_origin_code,
|
|
39
39
|
"cd_filial": self.branch_code,
|
|
@@ -75,11 +75,12 @@ class IntegrationObiBatch(Base):
|
|
|
75
75
|
__tablename__ = 'lote_integracao_obi'
|
|
76
76
|
__table_args__ = {'schema': 'fiscal'}
|
|
77
77
|
|
|
78
|
-
integration_batch_id = Column('
|
|
78
|
+
integration_batch_id = Column('cd_seq_lote', String(36), ForeignKey(INTEGRATION_BATCH_KEY),
|
|
79
79
|
primary_key=True, nullable=False)
|
|
80
|
-
integration_obi_id = Column('
|
|
81
|
-
'.
|
|
80
|
+
integration_obi_id = Column('no_seq_integr_obi', Integer, ForeignKey('fiscal.integracao_obi'
|
|
81
|
+
'.no_seq_integr_obi'),
|
|
82
82
|
primary_key=True, nullable=False)
|
|
83
|
+
param_type = Column('cd_tipo_param_obi', Integer, primary_key=True, nullable=False)
|
|
83
84
|
created_at = Column('dt_incl', DateTime, nullable=False)
|
|
84
85
|
|
|
85
86
|
integration_obi = relationship('ObiIntegration', back_populates='integration_obi_batch')
|
|
@@ -95,7 +96,7 @@ class KitIntegrationObiStatus(Base):
|
|
|
95
96
|
__tablename__ = 'kit_integracao_obi_status'
|
|
96
97
|
__table_args__ = {'schema': 'fiscal'}
|
|
97
98
|
|
|
98
|
-
integration_obi_id = Column('cd_seq_integr_obi', Integer, ForeignKey('fiscal.integracao_obi.
|
|
99
|
+
integration_obi_id = Column('cd_seq_integr_obi', Integer, ForeignKey('fiscal.integracao_obi.no_seq_integr_obi'),
|
|
99
100
|
primary_key=True, nullable=False)
|
|
100
101
|
kit_id = Column('no_seq_kit', Integer, ForeignKey(OBI_KIT_KEY),
|
|
101
102
|
primary_key=True, nullable=False)
|
|
@@ -115,7 +116,7 @@ class KitIntegrationObiStatus(Base):
|
|
|
115
116
|
return f'integration_obi_id: {self.integration_obi_id}, kit_id: {self.kit_id}, integration_status: {self.integration_status}'
|
|
116
117
|
|
|
117
118
|
|
|
118
|
-
@deprecated('Tabela "documento_integracao" foi substituida pela tabela "integracao_obi"')
|
|
119
|
+
# @deprecated('Tabela "documento_integracao" foi substituida pela tabela "integracao_obi"')
|
|
119
120
|
class IntegrationDocument(Base):
|
|
120
121
|
__tablename__ = 'documento_integracao'
|
|
121
122
|
__table_args__ = {'schema': 'fiscal'}
|
|
@@ -222,7 +223,7 @@ class Batch(Base):
|
|
|
222
223
|
self.created_at = self.start_integration_date
|
|
223
224
|
|
|
224
225
|
|
|
225
|
-
@deprecated('Tabela "lote_integracao" foi substituida pela tabela "lote"')
|
|
226
|
+
# @deprecated('Tabela "lote_integracao" foi substituida pela tabela "lote"')
|
|
226
227
|
class IntegrationBatch(Base):
|
|
227
228
|
__tablename__ = 'lote_integracao'
|
|
228
229
|
__table_args__ = {'schema': 'fiscal'}
|
|
@@ -340,7 +341,7 @@ class IntegrationProcessing(Base):
|
|
|
340
341
|
self.created_at = datetime.now()
|
|
341
342
|
|
|
342
343
|
|
|
343
|
-
@deprecated('Tabela "lote_documento_integracao" foi substituida pela tabela "lote_integracao_obi"')
|
|
344
|
+
# @deprecated('Tabela "lote_documento_integracao" foi substituida pela tabela "lote_integracao_obi"')
|
|
344
345
|
class IntegrationDocumentBatch(Base):
|
|
345
346
|
__tablename__ = 'lote_documento_integracao'
|
|
346
347
|
__table_args__ = {'schema': 'fiscal'}
|
|
@@ -388,7 +389,7 @@ class ObiAuthentication(Base):
|
|
|
388
389
|
self.created_at = datetime.now()
|
|
389
390
|
|
|
390
391
|
|
|
391
|
-
@deprecated('Tabela "kit_documento_integracao_status" foi substituida pela tabela "kit_integracao_obi_status"')
|
|
392
|
+
# @deprecated('Tabela "kit_documento_integracao_status" foi substituida pela tabela "kit_integracao_obi_status"')
|
|
392
393
|
class KitIntegrationDocumentStatus(Base):
|
|
393
394
|
__tablename__ = 'kit_documento_integracao_status'
|
|
394
395
|
__table_args__ = {'schema': 'fiscal'}
|
{ipiranga_inovai_project_lib-2.8.dist-info → ipiranga_inovai_project_lib-3.0.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ipiranga-inovai-project-lib
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0
|
|
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
|
{ipiranga_inovai_project_lib-2.8.dist-info → ipiranga_inovai_project_lib-3.0.dist-info}/RECORD
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
inovai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
inovai/dtos.py,sha256=qaWZB7n5SHcC58RP351IQ1HLjv7fx3VAdILj-GugVWs,1587
|
|
3
|
-
inovai/entities.py,sha256=
|
|
3
|
+
inovai/entities.py,sha256=p3_IewiNue4oRmXn5uD_EoiuJbS4FDShCM7zE8s05Do,20103
|
|
4
4
|
inovai/enums.py,sha256=aROt6aXbFGWeaA6E-gWDkPJk6c_lNEiC56FDfQOar38,2267
|
|
5
5
|
inovai/models/Endereco.py,sha256=Vft20vMwYwTXtEuh5NH7O5FxXVahnLmgaXMDOVdBxY4,3519
|
|
6
6
|
inovai/models/NFe.py,sha256=3PiMvK6AODaagZU7KEpnjYfulz8PvcQYGChIa-QCvg0,13023
|
|
@@ -34,8 +34,8 @@ inovai/models/NFeVolume.py,sha256=_cayb-rrz1mSxQ3wFFnB4KCi524jtAsdTTcS4WQTBOc,19
|
|
|
34
34
|
inovai/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
35
|
inovai/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
36
|
inovai/utils/util.py,sha256=tEFFoYhtyZk2pxor2vb23NWr3otPzPXTiTIf-VrGik4,366
|
|
37
|
-
ipiranga_inovai_project_lib-
|
|
38
|
-
ipiranga_inovai_project_lib-
|
|
39
|
-
ipiranga_inovai_project_lib-
|
|
40
|
-
ipiranga_inovai_project_lib-
|
|
41
|
-
ipiranga_inovai_project_lib-
|
|
37
|
+
ipiranga_inovai_project_lib-3.0.dist-info/LICENSE,sha256=UJ3ql8eZec9Y1kER7QSHAuvdgFPuL47asePHYmdzG_o,198
|
|
38
|
+
ipiranga_inovai_project_lib-3.0.dist-info/METADATA,sha256=nlvm7WgAZSacmYrWDUcCaoTmPVHOjVgdYx4ZB4x25h4,518
|
|
39
|
+
ipiranga_inovai_project_lib-3.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
40
|
+
ipiranga_inovai_project_lib-3.0.dist-info/top_level.txt,sha256=BD-APH5oIEb_KDXwrfnZiu9QDsD9ttTEkYc32r9thqg,7
|
|
41
|
+
ipiranga_inovai_project_lib-3.0.dist-info/RECORD,,
|
{ipiranga_inovai_project_lib-2.8.dist-info → ipiranga_inovai_project_lib-3.0.dist-info}/LICENSE
RENAMED
|
File without changes
|
{ipiranga_inovai_project_lib-2.8.dist-info → ipiranga_inovai_project_lib-3.0.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|