ipiranga-inovai-project-lib 4.7__py3-none-any.whl → 4.8__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
@@ -1,4 +1,4 @@
1
- from datetime import datetime
1
+ from datetime import datetime, date
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
@@ -432,3 +432,27 @@ class KitIntegrationDocumentStatus(Base):
432
432
 
433
433
  def __str__(self):
434
434
  return f'document_id: {self.document_id}, kit_id: {self.kit_id}, integration_status: {self.integration_status}'
435
+
436
+
437
+ class NatureOperation(Base):
438
+ __tablename__ = 'natureza_operacao'
439
+ __table_args__ = {'schema': 'fiscal'}
440
+
441
+ cd_natop_taxone = Column('cd_natop_taxone', String(3), primary_key=True, nullable=False)
442
+ cd_natop_orig = Column('cd_natop_orig', Numeric(precision=8, scale=0), nullable=False)
443
+ description = Column('ds_natop', String(200), nullable=False)
444
+ origin = Column('nm_sist_orig', String(100), nullable=False)
445
+ created_at = Column('dt_incl', Date, nullable=False)
446
+
447
+ def __init__(self, cd_natop_taxone, cd_natop_orig, description, origin):
448
+ super().__init__()
449
+ self.cd_natop_taxone = cd_natop_taxone
450
+ self.cd_natop_orig = cd_natop_orig
451
+ self.description = description
452
+ self.origin = origin
453
+ self.created_at = date.today()
454
+
455
+ def __str__(self):
456
+ return (f'cd_natop_taxone: {self.cd_natop_taxone}, cd_natop_orig: {self.cd_natop_orig}, '
457
+ f'description: {self.description}, origin: {self.origin}')
458
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ipiranga-inovai-project-lib
3
- Version: 4.7
3
+ Version: 4.8
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=mRNDWfkyf7StzpM0-oyU7283c1XfswJcWFWf47qwjew,20833
3
+ inovai/entities.py,sha256=foV86iXcLOlqhbBTnjs8-mCPv7M1sPqDYZfjN5q_Bgc,21849
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.7.dist-info/LICENSE,sha256=UJ3ql8eZec9Y1kER7QSHAuvdgFPuL47asePHYmdzG_o,198
39
- ipiranga_inovai_project_lib-4.7.dist-info/METADATA,sha256=107C5FwXV5D6dOnZxIT_lwe_TyyNGJ1yqPG5vuLLer0,518
40
- ipiranga_inovai_project_lib-4.7.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
41
- ipiranga_inovai_project_lib-4.7.dist-info/top_level.txt,sha256=BD-APH5oIEb_KDXwrfnZiu9QDsD9ttTEkYc32r9thqg,7
42
- ipiranga_inovai_project_lib-4.7.dist-info/RECORD,,
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,,