ipiranga-inovai-project-lib 0.9__py3-none-any.whl → 1.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.
Files changed (35) hide show
  1. inovai/models/Endereco.py +101 -0
  2. inovai/models/NFe.py +474 -0
  3. inovai/models/NFeBoleto.py +218 -0
  4. inovai/models/NFeCartao.py +62 -0
  5. inovai/models/NFeDetalhePagamento.py +67 -0
  6. inovai/models/NFeDocImportacao.py +117 -0
  7. inovai/models/NFeDocImportacaoAdicao.py +66 -0
  8. inovai/models/NFeDocRef.py +82 -0
  9. inovai/models/NFeDuplicata.py +58 -0
  10. inovai/models/NFeEnvioXML.py +66 -0
  11. inovai/models/NFeEnvolvido.py +108 -0
  12. inovai/models/NFeExportacao.py +58 -0
  13. inovai/models/NFeFatura.py +62 -0
  14. inovai/models/NFeImposto.py +232 -0
  15. inovai/models/NFeImpostoRetido.py +114 -0
  16. inovai/models/NFeIntermediadorTransacao.py +54 -0
  17. inovai/models/NFeItem.py +252 -0
  18. inovai/models/NFeItemDadosCombustivel.py +79 -0
  19. inovai/models/NFeItemExportacao.py +94 -0
  20. inovai/models/NFeItemOrigemCombustivel.py +57 -0
  21. inovai/models/NFeObservacao.py +58 -0
  22. inovai/models/NFeObservacaoItem.py +58 -0
  23. inovai/models/NFeOrigem.py +58 -0
  24. inovai/models/NFePagamento.py +55 -0
  25. inovai/models/NFeProcReferenciado.py +58 -0
  26. inovai/models/NFeTransporte.py +78 -0
  27. inovai/models/NFeVeiculo.py +62 -0
  28. inovai/models/NFeVolume.py +74 -0
  29. inovai/models/__init__.py +0 -0
  30. {ipiranga_inovai_project_lib-0.9.dist-info → ipiranga_inovai_project_lib-1.1.dist-info}/METADATA +1 -1
  31. ipiranga_inovai_project_lib-1.1.dist-info/RECORD +37 -0
  32. ipiranga_inovai_project_lib-0.9.dist-info/RECORD +0 -8
  33. {ipiranga_inovai_project_lib-0.9.dist-info → ipiranga_inovai_project_lib-1.1.dist-info}/LICENSE +0 -0
  34. {ipiranga_inovai_project_lib-0.9.dist-info → ipiranga_inovai_project_lib-1.1.dist-info}/WHEEL +0 -0
  35. {ipiranga_inovai_project_lib-0.9.dist-info → ipiranga_inovai_project_lib-1.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,58 @@
1
+ class NFeProcReferenciado:
2
+ identificadorProcesso: str
3
+ indicadorOrigemProcesso: str
4
+ tipoAtoConcessorio: str
5
+
6
+ def __init__(self, **json):
7
+ if json:
8
+ for key, typeProp in self.__class__.__dict__['__annotations__'].items():
9
+ # str, float, bool, int
10
+ class_name = str(typeProp).split("'")[1].split(".")[-1]
11
+
12
+ if key in json:
13
+ if isinstance(typeProp, list):
14
+ cls = globals()[class_name]
15
+ items = []
16
+ for item_data in json[key]:
17
+ item = cls(**item_data)
18
+ items.append(item)
19
+ setattr(self, key, items)
20
+ elif class_name not in ('str', 'int', 'float', 'bool'):
21
+ cls = globals()[class_name]
22
+ instance = cls(**json[key])
23
+ setattr(self, key, instance)
24
+ else:
25
+ setattr(self, key, str(json[key]))
26
+ else:
27
+ if isinstance(typeProp, list):
28
+ # cls = globals()[class_name]
29
+ items = []
30
+ setattr(self, key, items)
31
+ elif class_name not in ('str', 'int', 'float', 'bool'):
32
+ cls = globals()[class_name]
33
+ instance = cls()
34
+ setattr(self, key, instance)
35
+ else:
36
+ setattr(self, key, '')
37
+ else:
38
+ for key, typeProp in self.__class__.__dict__['__annotations__'].items():
39
+ class_name = str(typeProp).split("'")[1].split(".")[-1]
40
+ if isinstance(typeProp, list):
41
+ # cls = globals()[class_name]
42
+ items = []
43
+ setattr(self, key, items)
44
+ elif class_name not in ('str', 'int', 'float', 'bool'):
45
+ cls = globals()[class_name]
46
+ instance = cls()
47
+ setattr(self, key, instance)
48
+ else:
49
+ setattr(self, key, '')
50
+
51
+ def get_identificadorProcesso(self):
52
+ return self.identificadorProcesso
53
+
54
+ def get_indicadorOrigemProcesso(self):
55
+ return self.indicadorOrigemProcesso
56
+
57
+ def get_tipoAtoConcessorio(self):
58
+ return self.tipoAtoConcessorio
@@ -0,0 +1,78 @@
1
+ from inovai.models.NFeEnvolvido import NFeEnvolvido
2
+ from inovai.models.NFeImposto import NFeImposto
3
+ from inovai.models.NFeVeiculo import NFeVeiculo
4
+ from inovai.models.NFeVolume import NFeVolume
5
+ class NFeTransporte:
6
+ contratoTransporte: str
7
+ icmsRetido: NFeImposto
8
+ modal: int
9
+ transportador: NFeEnvolvido
10
+ valorServico: float
11
+ veiculos: [NFeVeiculo]
12
+ volumes: [NFeVolume]
13
+
14
+ def __init__(self, **json):
15
+ if json:
16
+ for key, typeProp in self.__class__.__dict__['__annotations__'].items():
17
+ # str, float, bool, int
18
+ class_name = str(typeProp).split("'")[1].split(".")[-1]
19
+
20
+ if key in json:
21
+ if isinstance(typeProp, list):
22
+ cls = globals()[class_name]
23
+ items = []
24
+ for item_data in json[key]:
25
+ item = cls(**item_data)
26
+ items.append(item)
27
+ setattr(self, key, items)
28
+ elif class_name not in ('str', 'int', 'float', 'bool'):
29
+ cls = globals()[class_name]
30
+ instance = cls(**json[key])
31
+ setattr(self, key, instance)
32
+ else:
33
+ setattr(self, key, str(json[key]))
34
+ else:
35
+ if isinstance(typeProp, list):
36
+ # cls = globals()[class_name]
37
+ items = []
38
+ setattr(self, key, items)
39
+ elif class_name not in ('str', 'int', 'float', 'bool'):
40
+ cls = globals()[class_name]
41
+ instance = cls()
42
+ setattr(self, key, instance)
43
+ else:
44
+ setattr(self, key, '')
45
+ else:
46
+ for key, typeProp in self.__class__.__dict__['__annotations__'].items():
47
+ class_name = str(typeProp).split("'")[1].split(".")[-1]
48
+ if isinstance(typeProp, list):
49
+ # cls = globals()[class_name]
50
+ items = []
51
+ setattr(self, key, items)
52
+ elif class_name not in ('str', 'int', 'float', 'bool'):
53
+ cls = globals()[class_name]
54
+ instance = cls()
55
+ setattr(self, key, instance)
56
+ else:
57
+ setattr(self, key, '')
58
+
59
+ def get_contratoTransporte(self):
60
+ return self.contratoTransporte
61
+
62
+ def get_icmsRetido(self):
63
+ return self.icmsRetido
64
+
65
+ def get_modal(self):
66
+ return self.modal
67
+
68
+ def get_transportador(self):
69
+ return self.transportador
70
+
71
+ def get_valorServico(self):
72
+ return self.valorServico
73
+
74
+ def get_veiculos(self):
75
+ return self.veiculos
76
+
77
+ def get_volumes(self):
78
+ return self.volumes
@@ -0,0 +1,62 @@
1
+ class NFeVeiculo:
2
+ identificacao: str
3
+ rntsc: str
4
+ tipo: str
5
+ uf: str
6
+
7
+ def __init__(self, **json):
8
+ if json:
9
+ for key, typeProp in self.__class__.__dict__['__annotations__'].items():
10
+ # str, float, bool, int
11
+ class_name = str(typeProp).split("'")[1].split(".")[-1]
12
+
13
+ if key in json:
14
+ if isinstance(typeProp, list):
15
+ cls = globals()[class_name]
16
+ items = []
17
+ for item_data in json[key]:
18
+ item = cls(**item_data)
19
+ items.append(item)
20
+ setattr(self, key, items)
21
+ elif class_name not in ('str', 'int', 'float', 'bool'):
22
+ cls = globals()[class_name]
23
+ instance = cls(**json[key])
24
+ setattr(self, key, instance)
25
+ else:
26
+ setattr(self, key, str(json[key]))
27
+ else:
28
+ if isinstance(typeProp, list):
29
+ # cls = globals()[class_name]
30
+ items = []
31
+ setattr(self, key, items)
32
+ elif class_name not in ('str', 'int', 'float', 'bool'):
33
+ cls = globals()[class_name]
34
+ instance = cls()
35
+ setattr(self, key, instance)
36
+ else:
37
+ setattr(self, key, '')
38
+ else:
39
+ for key, typeProp in self.__class__.__dict__['__annotations__'].items():
40
+ class_name = str(typeProp).split("'")[1].split(".")[-1]
41
+ if isinstance(typeProp, list):
42
+ # cls = globals()[class_name]
43
+ items = []
44
+ setattr(self, key, items)
45
+ elif class_name not in ('str', 'int', 'float', 'bool'):
46
+ cls = globals()[class_name]
47
+ instance = cls()
48
+ setattr(self, key, instance)
49
+ else:
50
+ setattr(self, key, '')
51
+
52
+ def get_identificacao(self):
53
+ return self.identificacao
54
+
55
+ def get_rntsc(self):
56
+ return self.rntsc
57
+
58
+ def get_tipo(self):
59
+ return self.tipo
60
+
61
+ def get_uf(self):
62
+ return self.uf
@@ -0,0 +1,74 @@
1
+ class NFeVolume:
2
+ especie: str
3
+ lacres: str
4
+ marca: str
5
+ numeracao: str
6
+ pesoBruto: float
7
+ pesoLiquido: float
8
+ quantidade: int
9
+
10
+ def __init__(self, **json):
11
+ if json:
12
+ for key, typeProp in self.__class__.__dict__['__annotations__'].items():
13
+ # str, float, bool, int
14
+ class_name = str(typeProp).split("'")[1].split(".")[-1]
15
+
16
+ if key in json:
17
+ if isinstance(typeProp, list):
18
+ cls = globals()[class_name]
19
+ items = []
20
+ for item_data in json[key]:
21
+ item = cls(**item_data)
22
+ items.append(item)
23
+ setattr(self, key, items)
24
+ elif class_name not in ('str', 'int', 'float', 'bool'):
25
+ cls = globals()[class_name]
26
+ instance = cls(**json[key])
27
+ setattr(self, key, instance)
28
+ else:
29
+ setattr(self, key, str(json[key]))
30
+ else:
31
+ if isinstance(typeProp, list):
32
+ # cls = globals()[class_name]
33
+ items = []
34
+ setattr(self, key, items)
35
+ elif class_name not in ('str', 'int', 'float', 'bool'):
36
+ cls = globals()[class_name]
37
+ instance = cls()
38
+ setattr(self, key, instance)
39
+ else:
40
+ setattr(self, key, '')
41
+ else:
42
+ for key, typeProp in self.__class__.__dict__['__annotations__'].items():
43
+ class_name = str(typeProp).split("'")[1].split(".")[-1]
44
+ if isinstance(typeProp, list):
45
+ # cls = globals()[class_name]
46
+ items = []
47
+ setattr(self, key, items)
48
+ elif class_name not in ('str', 'int', 'float', 'bool'):
49
+ cls = globals()[class_name]
50
+ instance = cls()
51
+ setattr(self, key, instance)
52
+ else:
53
+ setattr(self, key, '')
54
+
55
+ def get_especie(self):
56
+ return self.especie
57
+
58
+ def get_lacres(self):
59
+ return self.lacres
60
+
61
+ def get_marca(self):
62
+ return self.marca
63
+
64
+ def get_numeracao(self):
65
+ return self.numeracao
66
+
67
+ def get_pesoBruto(self):
68
+ return self.pesoBruto
69
+
70
+ def get_pesoLiquido(self):
71
+ return self.pesoLiquido
72
+
73
+ def get_quantidade(self):
74
+ return self.quantidade
File without changes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ipiranga-inovai-project-lib
3
- Version: 0.9
3
+ Version: 1.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
@@ -0,0 +1,37 @@
1
+ inovai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ inovai/entities.py,sha256=tsa9Fpm0kOmulP1mg2hLk6jeP4jrU5cnI01dT0QIAqY,12749
3
+ inovai/enums.py,sha256=1CBgOc-bef_aIq6lQLgDGXgp4hITYzVACZcyy8e2LA8,887
4
+ inovai/models/Endereco.py,sha256=Vft20vMwYwTXtEuh5NH7O5FxXVahnLmgaXMDOVdBxY4,3519
5
+ inovai/models/NFe.py,sha256=c6ms6Es6zKb2-0bwjQTyqT4SWjhdizAUSeo05j3NAyI,13172
6
+ inovai/models/NFeBoleto.py,sha256=tLWqsOlszA6UiJdxesJKQkgwNk_4DuI3NRBCYZh7RKc,5006
7
+ inovai/models/NFeCartao.py,sha256=3JTl_i9V6cu6gOkbWM1Mj10BALmHezlRVR-xGx6m5GI,1876
8
+ inovai/models/NFeDetalhePagamento.py,sha256=-yWGj8wz--kNMGxTY1llsduZj26S8k-El43xscG7Rmw,2021
9
+ inovai/models/NFeDocImportacao.py,sha256=ysfxiuSOKnPNY3emCLtTnKStQ-xei0iXHnrzT7keOEo,3291
10
+ inovai/models/NFeDocImportacaoAdicao.py,sha256=b9xBZur0jYE6yLssu2ZYK9KKFp9Yr3TOUiVFvrDH5Fw,1899
11
+ inovai/models/NFeDocRef.py,sha256=s166Qj6CdDhRCxG6Hb10UD_P09yixcAbZPGD13jb5D0,2111
12
+ inovai/models/NFeDuplicata.py,sha256=1tjGyA8QyhIdNEcx7qbAShbGDRjt3j2XuiwWW2bj7XQ,1693
13
+ inovai/models/NFeEnvioXML.py,sha256=3bB48g6gk6irrOEJ913nTp4GcjMyS2lJQxcAOpZ3Pvg,1826
14
+ inovai/models/NFeEnvolvido.py,sha256=1gi83owy5dkXVBYc94aKzWaKUZaEiGCL43s-ipkZHkA,3548
15
+ inovai/models/NFeExportacao.py,sha256=aMDA6s5_2E_ib5TdCUN2q_5WDCkdUV2HWRyvvvxE73c,1716
16
+ inovai/models/NFeFatura.py,sha256=GxEkiYj_sMjETk9euzlHw388sEnSgHTk6tYZiPug6s0,1801
17
+ inovai/models/NFeImposto.py,sha256=BGrdemue6OwNxlCDuDwHyW9NbmgFZWn3tA0x-URdFcQ,5870
18
+ inovai/models/NFeImpostoRetido.py,sha256=emr_dpFOZY4abLTvVEdw4hFFX5XkVsAnViGT2tboiic,3707
19
+ inovai/models/NFeIntermediadorTransacao.py,sha256=92BCto4uKg17v5EzhT9g1eNBKYYS-trZ7zmpKna2Jzo,1645
20
+ inovai/models/NFeItem.py,sha256=T1Va47mlKmBhwZ6MueNhaCDLelr7X0ykmHYgdNTBo68,5938
21
+ inovai/models/NFeItemDadosCombustivel.py,sha256=2qenlgSiGhiWLsL_8YHUix1MfB7vbBWWQtJWGmvaLB8,2244
22
+ inovai/models/NFeItemExportacao.py,sha256=Fc7oSc_OuXtsan-oaMvN79v88zJvjZzKQur_zRoS2T4,2526
23
+ inovai/models/NFeItemOrigemCombustivel.py,sha256=_FD3H6LMxY60T9DAwB-xGcS5xdtV-WnMtbvkOrkx_fA,1809
24
+ inovai/models/NFeObservacao.py,sha256=tfXIBEybgNu8zEk9HeMr4CK2R4BhwhskkgK2liQ7cDU,1665
25
+ inovai/models/NFeObservacaoItem.py,sha256=SCNKZRsCjV-Z71ObAdDReOVDe5zBk68dXta2qJzkKWk,1669
26
+ inovai/models/NFeOrigem.py,sha256=GpBvn_JPOxCPT2cR0XYoM_TeSrJLylTD6kmCbDvzrjI,1684
27
+ inovai/models/NFePagamento.py,sha256=3coQ2Bm1TlLsZzHXhhF5htuPDGlUQc5gmyZ6Yy7nttA,1746
28
+ inovai/models/NFeProcReferenciado.py,sha256=ze8K1Py33VuQy-bkIQ5E4WBDeaPYrAvZX9_m9_eGTtI,1815
29
+ inovai/models/NFeTransporte.py,sha256=3F4Z6O1Wfc2vQzC3u4GHK64WnGZNWxpLx6tDjOoMyb8,2251
30
+ inovai/models/NFeVeiculo.py,sha256=iwnD0uZjHU2l4J_QP7JW9EQpJZWDYCEIhRxpWrvxtns,1736
31
+ inovai/models/NFeVolume.py,sha256=_cayb-rrz1mSxQ3wFFnB4KCi524jtAsdTTcS4WQTBOc,1970
32
+ inovai/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
+ ipiranga_inovai_project_lib-1.1.dist-info/LICENSE,sha256=UJ3ql8eZec9Y1kER7QSHAuvdgFPuL47asePHYmdzG_o,198
34
+ ipiranga_inovai_project_lib-1.1.dist-info/METADATA,sha256=r8_oWFDydo_qPxhCuZ-OecXo_Cg67CvTwp6ygTSixM4,518
35
+ ipiranga_inovai_project_lib-1.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
36
+ ipiranga_inovai_project_lib-1.1.dist-info/top_level.txt,sha256=BD-APH5oIEb_KDXwrfnZiu9QDsD9ttTEkYc32r9thqg,7
37
+ ipiranga_inovai_project_lib-1.1.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- inovai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- inovai/entities.py,sha256=tsa9Fpm0kOmulP1mg2hLk6jeP4jrU5cnI01dT0QIAqY,12749
3
- inovai/enums.py,sha256=1CBgOc-bef_aIq6lQLgDGXgp4hITYzVACZcyy8e2LA8,887
4
- ipiranga_inovai_project_lib-0.9.dist-info/LICENSE,sha256=UJ3ql8eZec9Y1kER7QSHAuvdgFPuL47asePHYmdzG_o,198
5
- ipiranga_inovai_project_lib-0.9.dist-info/METADATA,sha256=TG50JfA_7wksTGfm1bdNkVZpCp5LSPHf-WqqNIMoBHk,518
6
- ipiranga_inovai_project_lib-0.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
7
- ipiranga_inovai_project_lib-0.9.dist-info/top_level.txt,sha256=BD-APH5oIEb_KDXwrfnZiu9QDsD9ttTEkYc32r9thqg,7
8
- ipiranga_inovai_project_lib-0.9.dist-info/RECORD,,