ipiranga-inovai-project-lib 0.3__py3-none-any.whl → 0.5__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 +10 -3
- inovai/enums.py +4 -1
- {ipiranga_inovai_project_lib-0.3.dist-info → ipiranga_inovai_project_lib-0.5.dist-info}/METADATA +1 -1
- ipiranga_inovai_project_lib-0.5.dist-info/RECORD +8 -0
- ipiranga_inovai_project_lib-0.3.dist-info/RECORD +0 -8
- {ipiranga_inovai_project_lib-0.3.dist-info → ipiranga_inovai_project_lib-0.5.dist-info}/LICENSE +0 -0
- {ipiranga_inovai_project_lib-0.3.dist-info → ipiranga_inovai_project_lib-0.5.dist-info}/WHEEL +0 -0
- {ipiranga_inovai_project_lib-0.3.dist-info → ipiranga_inovai_project_lib-0.5.dist-info}/top_level.txt +0 -0
inovai/entities.py
CHANGED
|
@@ -27,6 +27,7 @@ class IntegrationDocument(Base):
|
|
|
27
27
|
updated_at = Column('dt_incl', DateTime, nullable=False, server_default='NOW()')
|
|
28
28
|
request_id = Column('id_req_doc_fisc', String(40), nullable=True)
|
|
29
29
|
origin = Column('nm_sist_orig', String(50), nullable=True)
|
|
30
|
+
responsible_movement = Column('id_cnpj_mov', String(), nullable=True)
|
|
30
31
|
|
|
31
32
|
integration_batch = relationship('IntegrationDocumentBatch', back_populates='integration_document')
|
|
32
33
|
kit_integration_document_status = relationship("KitIntegrationDocumentStatus", back_populates="integration_document")
|
|
@@ -48,7 +49,9 @@ class IntegrationDocument(Base):
|
|
|
48
49
|
"dt_fisc": self.fiscal_date.strftime("%Y-%m-%d") if self.fiscal_date is not None else None,
|
|
49
50
|
"dt_hora_criacao": self.created_at.strftime("%Y-%m-%d %H:%M:%S") if self.created_at is not None else None,
|
|
50
51
|
"dt_incl": self.updated_at.strftime("%Y-%m-%d %H:%M:%S") if self.updated_at is not None else None,
|
|
51
|
-
"request_id": self.request_id
|
|
52
|
+
"request_id": self.request_id,
|
|
53
|
+
"nm_sist_orig": self.origin,
|
|
54
|
+
"id_cnpj_mov": self.responsible_movement
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
def __str__(self):
|
|
@@ -92,16 +95,18 @@ class IntegrationBatch(Base):
|
|
|
92
95
|
start_integration_date = Column('dt_hora_ini_lote_integr', DateTime)
|
|
93
96
|
end_integration_date = Column('dt_hora_fim_lote_integr', DateTime)
|
|
94
97
|
created_at = Column('dt_incl', DateTime, nullable=False)
|
|
98
|
+
status = Column('ds_status_integr', String(), nullable=False)
|
|
95
99
|
|
|
96
100
|
batch_files = relationship('BatchFileIntegration', back_populates='integration_batch')
|
|
97
101
|
integration_processing = relationship('IntegrationProcessing', back_populates='integration_batch')
|
|
98
102
|
|
|
99
|
-
def __init__(self, integration_batch_id, employer_number, first_date_document, last_date_document):
|
|
103
|
+
def __init__(self, integration_batch_id, employer_number, first_date_document, last_date_document, status):
|
|
100
104
|
super().__init__()
|
|
101
105
|
self.integration_batch_id = integration_batch_id
|
|
102
106
|
self.employer_number = employer_number
|
|
103
107
|
self.first_date_document = first_date_document
|
|
104
108
|
self.last_date_document = last_date_document
|
|
109
|
+
self.status = status
|
|
105
110
|
self.start_integration_date = datetime.now()
|
|
106
111
|
self.created_at = self.start_integration_date
|
|
107
112
|
|
|
@@ -152,14 +157,16 @@ class ParamProcessingKit(Base):
|
|
|
152
157
|
kit_id = Column('cd_kit', Integer, ForeignKey('fiscal.kit_obi.no_seq_kit'), nullable=False)
|
|
153
158
|
process_code = Column('cd_proc_obi', String(30))
|
|
154
159
|
status = Column('id_status_param', Boolean, nullable=False)
|
|
160
|
+
document_type = Column('cd_tipo_doc_integr', String(4))
|
|
155
161
|
created_at = Column('dt_incl', DateTime, nullable=False, server_default='NOW()')
|
|
156
162
|
|
|
157
|
-
def __init__(self, param_processing_kit_id, kit_id, process_code, status):
|
|
163
|
+
def __init__(self, param_processing_kit_id, kit_id, process_code, status, document_type):
|
|
158
164
|
super().__init__()
|
|
159
165
|
self.param_processing_kit_id = param_processing_kit_id
|
|
160
166
|
self.kit_id = kit_id
|
|
161
167
|
self.process_code = process_code
|
|
162
168
|
self.status = status
|
|
169
|
+
self.document_type = document_type
|
|
163
170
|
self.created_at = datetime.now()
|
|
164
171
|
|
|
165
172
|
|
inovai/enums.py
CHANGED
|
@@ -4,10 +4,13 @@ from enum import Enum
|
|
|
4
4
|
class DocumentStatus(Enum):
|
|
5
5
|
INTEGRATED = 'INTEGRADO'
|
|
6
6
|
PENDING_INTEGRATION = 'PENDENTE_INTEGRACAO'
|
|
7
|
-
ERROR_INTEGRATION = 'ERRO_INTEGRACAO'
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
class DocumentMovementType(Enum):
|
|
11
10
|
INPUT = 'E',
|
|
12
11
|
OUTPUT = 'S'
|
|
13
12
|
|
|
13
|
+
|
|
14
|
+
class ResponsibleMovement(Enum):
|
|
15
|
+
ISSUER = 'EMITENTE'
|
|
16
|
+
RECIPIENT = 'DESTINATARIO'
|
{ipiranga_inovai_project_lib-0.3.dist-info → ipiranga_inovai_project_lib-0.5.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ipiranga-inovai-project-lib
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.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
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
inovai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
inovai/entities.py,sha256=TWaxvS8La6mNRZPsthoW1UVVmiWYDhOVjwWn7MmC3JA,12872
|
|
3
|
+
inovai/enums.py,sha256=5NxAF59BwbXCi-pt6vHlBuoyykViXaCTIphFci__hYE,305
|
|
4
|
+
ipiranga_inovai_project_lib-0.5.dist-info/LICENSE,sha256=UJ3ql8eZec9Y1kER7QSHAuvdgFPuL47asePHYmdzG_o,198
|
|
5
|
+
ipiranga_inovai_project_lib-0.5.dist-info/METADATA,sha256=yBnZAL03b5_SzWVw6lfQ370-lk6r6H9UgmN8Zqz6Pos,518
|
|
6
|
+
ipiranga_inovai_project_lib-0.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
7
|
+
ipiranga_inovai_project_lib-0.5.dist-info/top_level.txt,sha256=BD-APH5oIEb_KDXwrfnZiu9QDsD9ttTEkYc32r9thqg,7
|
|
8
|
+
ipiranga_inovai_project_lib-0.5.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
inovai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
inovai/entities.py,sha256=ChWCRM15CExb-wziAsmfocunzmVCPKG5eMc0OA-KPp0,12475
|
|
3
|
-
inovai/enums.py,sha256=-xb7hHphwM8CjFZRrHBS4YCTu39pAaFGbooMBxmXtfs,255
|
|
4
|
-
ipiranga_inovai_project_lib-0.3.dist-info/LICENSE,sha256=UJ3ql8eZec9Y1kER7QSHAuvdgFPuL47asePHYmdzG_o,198
|
|
5
|
-
ipiranga_inovai_project_lib-0.3.dist-info/METADATA,sha256=qTPDodo0wuPQnWNRrb8wnJHljaS3PQKIkf01--22y5E,518
|
|
6
|
-
ipiranga_inovai_project_lib-0.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
7
|
-
ipiranga_inovai_project_lib-0.3.dist-info/top_level.txt,sha256=BD-APH5oIEb_KDXwrfnZiu9QDsD9ttTEkYc32r9thqg,7
|
|
8
|
-
ipiranga_inovai_project_lib-0.3.dist-info/RECORD,,
|
{ipiranga_inovai_project_lib-0.3.dist-info → ipiranga_inovai_project_lib-0.5.dist-info}/LICENSE
RENAMED
|
File without changes
|
{ipiranga_inovai_project_lib-0.3.dist-info → ipiranga_inovai_project_lib-0.5.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|