ipiranga-inovai-project-lib 3.0__py3-none-any.whl → 3.1__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 CHANGED
@@ -200,27 +200,20 @@ class Batch(Base):
200
200
  batch_id = Column('no_seq_lote', Integer, primary_key=True, nullable=False)
201
201
  employer_number = Column('cd_cnpj_empr', String(14), ForeignKey(ObiOrganizationUnit.employer_number),
202
202
  nullable=False)
203
- first_date_document = Column('dt_ini_doc_integr', Date)
204
- last_date_document = Column('dt_fim_doc_integr', Date)
205
- error_reason = Column('ds_mot_erro', String)
206
203
  batch_code_obi = Column('cd_lote_obi', String)
207
- start_integration_date = Column('dt_hora_ini_lote_integr', DateTime)
208
- end_integration_date = Column('dt_hora_fim_lote_integr', DateTime)
209
204
  created_at = Column('dt_incl', DateTime, nullable=False)
210
- status = Column('ds_status_integr', String(), nullable=False)
211
-
212
- batch_files = relationship('BatchFileIntegration', back_populates='integration_batch')
213
- integration_processing = relationship('IntegrationProcessing', back_populates='integration_batch')
205
+ first_date = Column('dt_ini', Date)
206
+ last_date = Column('dt_fim', Date)
207
+ cod_safx = Column('ds_safx_taxone', String(), nullable=False)
214
208
 
215
- def __init__(self, integration_batch_id, employer_number, first_date_document, last_date_document, status):
209
+ def __init__(self, batch_id, employer_number, first_date, last_date, cod_safx):
216
210
  super().__init__()
217
- self.integration_batch_id = integration_batch_id
211
+ self.batch_id = batch_id
218
212
  self.employer_number = employer_number
219
- self.first_date_document = first_date_document
220
- self.last_date_document = last_date_document
221
- self.status = status
222
- self.start_integration_date = datetime.now()
223
- self.created_at = self.start_integration_date
213
+ self.first_date = first_date
214
+ self.last_date = last_date
215
+ self.cod_safx = cod_safx
216
+ self.created_at = datetime.now()
224
217
 
225
218
 
226
219
  # @deprecated('Tabela "lote_integracao" foi substituida pela tabela "lote"')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ipiranga-inovai-project-lib
3
- Version: 3.0
3
+ Version: 3.1
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
@@ -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=p3_IewiNue4oRmXn5uD_EoiuJbS4FDShCM7zE8s05Do,20103
3
+ inovai/entities.py,sha256=UfZakUh9mhKcZPePGb1ouoX-FP3Njn0J2eAkcEmA17E,19518
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-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,,
37
+ ipiranga_inovai_project_lib-3.1.dist-info/LICENSE,sha256=UJ3ql8eZec9Y1kER7QSHAuvdgFPuL47asePHYmdzG_o,198
38
+ ipiranga_inovai_project_lib-3.1.dist-info/METADATA,sha256=A8KRR9bI3U69AnonHVUaVWbb_n0dJ7lTjrVbHBrZgyM,518
39
+ ipiranga_inovai_project_lib-3.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
40
+ ipiranga_inovai_project_lib-3.1.dist-info/top_level.txt,sha256=BD-APH5oIEb_KDXwrfnZiu9QDsD9ttTEkYc32r9thqg,7
41
+ ipiranga_inovai_project_lib-3.1.dist-info/RECORD,,