ipiranga-inovai-project-lib 4.6__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 +31 -6
- {ipiranga_inovai_project_lib-4.6.dist-info → ipiranga_inovai_project_lib-4.8.dist-info}/METADATA +1 -1
- {ipiranga_inovai_project_lib-4.6.dist-info → ipiranga_inovai_project_lib-4.8.dist-info}/RECORD +6 -6
- {ipiranga_inovai_project_lib-4.6.dist-info → ipiranga_inovai_project_lib-4.8.dist-info}/LICENSE +0 -0
- {ipiranga_inovai_project_lib-4.6.dist-info → ipiranga_inovai_project_lib-4.8.dist-info}/WHEEL +0 -0
- {ipiranga_inovai_project_lib-4.6.dist-info → ipiranga_inovai_project_lib-4.8.dist-info}/top_level.txt +0 -0
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
|
|
@@ -66,8 +66,8 @@ class ParamTypeObiKit(Base):
|
|
|
66
66
|
|
|
67
67
|
def __init__(self, type_id=None, name=None, description=None):
|
|
68
68
|
super().__init__()
|
|
69
|
-
self.
|
|
70
|
-
self.
|
|
69
|
+
self.type_id = type_id
|
|
70
|
+
self.name = name
|
|
71
71
|
self.description = description
|
|
72
72
|
self.created_at = datetime.now()
|
|
73
73
|
|
|
@@ -76,20 +76,21 @@ class IntegrationObiBatch(Base):
|
|
|
76
76
|
__tablename__ = 'lote_integracao_obi'
|
|
77
77
|
__table_args__ = {'schema': 'fiscal'}
|
|
78
78
|
|
|
79
|
-
integration_batch_id = Column('
|
|
79
|
+
integration_batch_id = Column('no_seq_lote', String(36), ForeignKey(INTEGRATION_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
|
-
|
|
84
|
+
param_type_id = Column('cd_tipo_param_obi', Integer, primary_key=True, nullable=False)
|
|
85
85
|
created_at = Column('dt_incl', DateTime, nullable=False)
|
|
86
86
|
|
|
87
87
|
integration_obi = relationship('ObiIntegration', back_populates='integration_obi_batch')
|
|
88
88
|
|
|
89
|
-
def __init__(self, integration_batch_id, integration_obi_id):
|
|
89
|
+
def __init__(self, integration_batch_id, integration_obi_id, param_type_id):
|
|
90
90
|
super().__init__()
|
|
91
91
|
self.integration_obi_id = integration_obi_id
|
|
92
92
|
self.integration_batch_id = integration_batch_id
|
|
93
|
+
self.param_type_id = param_type_id
|
|
93
94
|
self.created_at = datetime.now()
|
|
94
95
|
|
|
95
96
|
|
|
@@ -431,3 +432,27 @@ class KitIntegrationDocumentStatus(Base):
|
|
|
431
432
|
|
|
432
433
|
def __str__(self):
|
|
433
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
|
+
|
{ipiranga_inovai_project_lib-4.6.dist-info → ipiranga_inovai_project_lib-4.8.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ipiranga-inovai-project-lib
|
|
3
|
-
Version: 4.
|
|
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
|
{ipiranga_inovai_project_lib-4.6.dist-info → ipiranga_inovai_project_lib-4.8.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=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.
|
|
39
|
-
ipiranga_inovai_project_lib-4.
|
|
40
|
-
ipiranga_inovai_project_lib-4.
|
|
41
|
-
ipiranga_inovai_project_lib-4.
|
|
42
|
-
ipiranga_inovai_project_lib-4.
|
|
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,,
|
{ipiranga_inovai_project_lib-4.6.dist-info → ipiranga_inovai_project_lib-4.8.dist-info}/LICENSE
RENAMED
|
File without changes
|
{ipiranga_inovai_project_lib-4.6.dist-info → ipiranga_inovai_project_lib-4.8.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|