ipiranga-inovai-project-lib 4.8__py3-none-any.whl → 5.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 CHANGED
@@ -76,21 +76,20 @@ class IntegrationObiBatch(Base):
76
76
  __tablename__ = 'lote_integracao_obi'
77
77
  __table_args__ = {'schema': 'fiscal'}
78
78
 
79
- integration_batch_id = Column('no_seq_lote', String(36), ForeignKey(INTEGRATION_BATCH_KEY),
79
+ batch_id = Column('no_seq_lote', String(36), ForeignKey(BATCH_KEY),
80
80
  primary_key=True, nullable=False)
81
81
  integration_obi_id = Column('no_seq_integr_obi', Integer, ForeignKey('fiscal.integracao_obi'
82
82
  '.no_seq_integr_obi'),
83
83
  primary_key=True, nullable=False)
84
- param_type_id = Column('cd_tipo_param_obi', Integer, primary_key=True, nullable=False)
85
84
  created_at = Column('dt_incl', DateTime, nullable=False)
86
85
 
86
+ batch = relationship('Batch', back_populates='integration_obi_batch')
87
87
  integration_obi = relationship('ObiIntegration', back_populates='integration_obi_batch')
88
88
 
89
- def __init__(self, integration_batch_id, integration_obi_id, param_type_id):
89
+ def __init__(self, batch_id, integration_obi_id):
90
90
  super().__init__()
91
+ self.batch_id = batch_id
91
92
  self.integration_obi_id = integration_obi_id
92
- self.integration_batch_id = integration_batch_id
93
- self.param_type_id = param_type_id
94
93
  self.created_at = datetime.now()
95
94
 
96
95
 
@@ -209,6 +208,8 @@ class Batch(Base):
209
208
  status = Column('ds_safx_taxone', String(), nullable=False)
210
209
 
211
210
  batch_processing = relationship('BatchProcessing', back_populates='batch')
211
+ integration_obi_batch = relationship('IntegrationObiBatch', back_populates='batch')
212
+
212
213
 
213
214
  def __init__(self, batch_id, employer_number, first_date, last_date, status):
214
215
  super().__init__()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ipiranga-inovai-project-lib
3
- Version: 4.8
3
+ Version: 5.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
@@ -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=foV86iXcLOlqhbBTnjs8-mCPv7M1sPqDYZfjN5q_Bgc,21849
3
+ inovai/entities.py,sha256=7La79BKyCpKBcn6dZbXQp3HS-fnS7pLFPtt6hMMbQiE,21804
4
4
  inovai/enums.py,sha256=hj6KZRzV_LZIEnpycCl1yrP2aQdm75pm8WN8CM3TBfI,2367
5
5
  inovai/log.py,sha256=zQsNWzOdPMkEC6-LPfHtu7yvGAoDwADaQh0lR1hutWc,5202
6
6
  inovai/models/Endereco.py,sha256=Vft20vMwYwTXtEuh5NH7O5FxXVahnLmgaXMDOVdBxY4,3519
@@ -35,8 +35,8 @@ inovai/models/NFeVolume.py,sha256=_cayb-rrz1mSxQ3wFFnB4KCi524jtAsdTTcS4WQTBOc,19
35
35
  inovai/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  inovai/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
37
  inovai/utils/util.py,sha256=CsxaZmeKWG8A4w_1XzVm_F9hdWkDVgmHDYL2XF8v5dQ,906
38
- ipiranga_inovai_project_lib-4.8.dist-info/LICENSE,sha256=UJ3ql8eZec9Y1kER7QSHAuvdgFPuL47asePHYmdzG_o,198
39
- ipiranga_inovai_project_lib-4.8.dist-info/METADATA,sha256=cmu0OQMB90pPpDZrKXhcYZdYFbj8FekfhXueDWYgsbM,518
40
- ipiranga_inovai_project_lib-4.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
41
- ipiranga_inovai_project_lib-4.8.dist-info/top_level.txt,sha256=BD-APH5oIEb_KDXwrfnZiu9QDsD9ttTEkYc32r9thqg,7
42
- ipiranga_inovai_project_lib-4.8.dist-info/RECORD,,
38
+ ipiranga_inovai_project_lib-5.0.dist-info/LICENSE,sha256=UJ3ql8eZec9Y1kER7QSHAuvdgFPuL47asePHYmdzG_o,198
39
+ ipiranga_inovai_project_lib-5.0.dist-info/METADATA,sha256=BGwWFGy4L-9U6m7ukwD4-7hDgnZ7KuFuAuB7ebeG_gQ,518
40
+ ipiranga_inovai_project_lib-5.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
41
+ ipiranga_inovai_project_lib-5.0.dist-info/top_level.txt,sha256=BD-APH5oIEb_KDXwrfnZiu9QDsD9ttTEkYc32r9thqg,7
42
+ ipiranga_inovai_project_lib-5.0.dist-info/RECORD,,