ipiranga-inovai-project-lib 3.4__py3-none-any.whl → 3.5__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.
@@ -1,98 +1,98 @@
1
1
  class NFeItemExportacao:
2
- codTipoConhecimentoTransp: str
3
- dataAverbacao: str
4
- dataDespacho: str
5
- dataEmbarque: str
6
- dataEmissaoNf: str
7
- dataRegistro: str
8
- expIndChave: str
9
- expIndNumReg: str
10
- expIndQtdEfet: float
11
- numeroDeclaracao: str
12
- numeroDrawback: str
13
- numeroRegistro: str
14
- paisDestino: str
2
+ codTipoConhecimentoTransp: str
3
+ dataAverbacao: str
4
+ dataDespacho: str
5
+ dataEmbarque: str
6
+ dataEmissaoNf: str
7
+ dataRegistro: str
8
+ expIndChave: str
9
+ expIndNumReg: str
10
+ expIndQtdEfet: float
11
+ numeroDeclaracao: str
12
+ numeroDrawback: str
13
+ numeroRegistro: str
14
+ paisDestino: str
15
15
 
16
- def __init__(self, **json):
17
- if json:
18
- for key, typeProp in self.__class__.__dict__['__annotations__'].items():
19
- # str, float, bool, int
20
- class_name = str(typeProp).split("'")[1].split(".")[-1]
16
+ def __init__(self, **json):
17
+ if json:
18
+ for key, typeProp in self.__class__.__dict__['__annotations__'].items():
19
+ # str, float, bool, int
20
+ class_name = str(typeProp).split("'")[1].split(".")[-1]
21
21
 
22
- if key in json:
23
- if isinstance(typeProp, list):
24
- cls = globals()[class_name]
25
- items = []
26
- for item_data in json[key]:
27
- item = cls(**item_data)
28
- items.append(item)
29
- setattr(self, key, items)
30
- elif class_name not in ('str', 'int', 'float', 'bool'):
31
- cls = globals()[class_name]
32
- instance = cls(**json[key])
33
- setattr(self, key, instance)
34
- else:
35
- setattr(self, key, str(json[key]))
36
- else:
37
- if isinstance(typeProp, list):
38
- # cls = globals()[class_name]
39
- items = []
40
- setattr(self, key, items)
41
- elif class_name not in ('str', 'int', 'float', 'bool'):
42
- cls = globals()[class_name]
43
- instance = cls()
44
- setattr(self, key, instance)
45
- else:
46
- setattr(self, key, '')
47
- else:
48
- for key, typeProp in self.__class__.__dict__['__annotations__'].items():
49
- class_name = str(typeProp).split("'")[1].split(".")[-1]
50
- if isinstance(typeProp, list):
51
- # cls = globals()[class_name]
52
- items = []
53
- setattr(self, key, items)
54
- elif class_name not in ('str', 'int', 'float', 'bool'):
55
- cls = globals()[class_name]
56
- instance = cls()
57
- setattr(self, key, instance)
58
- else:
59
- setattr(self, key, '')
22
+ if key in json:
23
+ if isinstance(typeProp, list):
24
+ cls = globals()[class_name]
25
+ items = []
26
+ for item_data in json[key]:
27
+ item = cls(**item_data)
28
+ items.append(item)
29
+ setattr(self, key, items)
30
+ elif class_name not in ('str', 'int', 'float', 'bool'):
31
+ cls = globals()[class_name]
32
+ instance = cls(**json[key])
33
+ setattr(self, key, instance)
34
+ else:
35
+ setattr(self, key, str(json[key]))
36
+ else:
37
+ if isinstance(typeProp, list):
38
+ # cls = globals()[class_name]
39
+ items = []
40
+ setattr(self, key, items)
41
+ elif class_name not in ('str', 'int', 'float', 'bool'):
42
+ cls = globals()[class_name]
43
+ instance = cls()
44
+ setattr(self, key, instance)
45
+ else:
46
+ setattr(self, key, '')
47
+ else:
48
+ for key, typeProp in self.__class__.__dict__['__annotations__'].items():
49
+ class_name = str(typeProp).split("'")[1].split(".")[-1]
50
+ if isinstance(typeProp, list):
51
+ # cls = globals()[class_name]
52
+ items = []
53
+ setattr(self, key, items)
54
+ elif class_name not in ('str', 'int', 'float', 'bool'):
55
+ cls = globals()[class_name]
56
+ instance = cls()
57
+ setattr(self, key, instance)
58
+ else:
59
+ setattr(self, key, '')
60
60
 
61
- def get_codTipoConhecimentoTransp(self):
62
- return self.codTipoConhecimentoTransp
61
+ def get_codTipoConhecimentoTransp(self):
62
+ return self.codTipoConhecimentoTransp
63
63
 
64
- def get_dataAverbacao(self):
65
- return self.dataAverbacao
64
+ def get_dataAverbacao(self):
65
+ return self.dataAverbacao
66
66
 
67
- def get_dataDespacho(self):
68
- return self.dataDespacho
67
+ def get_dataDespacho(self):
68
+ return self.dataDespacho
69
69
 
70
- def get_dataEmbarque(self):
71
- return self.dataEmbarque
70
+ def get_dataEmbarque(self):
71
+ return self.dataEmbarque
72
72
 
73
- def get_dataEmissaoNf(self):
74
- return self.dataEmissaoNf
73
+ def get_dataEmissaoNf(self):
74
+ return self.dataEmissaoNf
75
75
 
76
- def get_dataRegistro(self):
77
- return self.dataRegistro
76
+ def get_dataRegistro(self):
77
+ return self.dataRegistro
78
78
 
79
- def get_expIndChave(self):
80
- return self.expIndChave
79
+ def get_expIndChave(self):
80
+ return self.expIndChave
81
81
 
82
- def get_expIndNumReg(self):
83
- return self.expIndNumReg
82
+ def get_expIndNumReg(self):
83
+ return self.expIndNumReg
84
84
 
85
- def get_expIndQtdEfet(self):
86
- return self.expIndQtdEfet
85
+ def get_expIndQtdEfet(self):
86
+ return self.expIndQtdEfet
87
87
 
88
- def get_numeroDeclaracao(self):
89
- return self.numeroDeclaracao
88
+ def get_numeroDeclaracao(self):
89
+ return self.numeroDeclaracao
90
90
 
91
- def get_numeroDrawback(self):
92
- return self.numeroDrawback
91
+ def get_numeroDrawback(self):
92
+ return self.numeroDrawback
93
93
 
94
- def get_numeroRegistro(self):
95
- return self.numeroRegistro
94
+ def get_numeroRegistro(self):
95
+ return self.numeroRegistro
96
96
 
97
97
  def get_paisDestino(self):
98
98
  return self.paisDestino
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ipiranga-inovai-project-lib
3
- Version: 3.4
3
+ Version: 3.5
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
@@ -21,7 +21,7 @@ inovai/models/NFeImpostoRetido.py,sha256=emr_dpFOZY4abLTvVEdw4hFFX5XkVsAnViGT2tb
21
21
  inovai/models/NFeIntermediadorTransacao.py,sha256=92BCto4uKg17v5EzhT9g1eNBKYYS-trZ7zmpKna2Jzo,1645
22
22
  inovai/models/NFeItem.py,sha256=o8WOd1FA100Ezq73qUvjLsx53kca3a3exIEC4Zq2qaw,7463
23
23
  inovai/models/NFeItemDadosCombustivel.py,sha256=2qenlgSiGhiWLsL_8YHUix1MfB7vbBWWQtJWGmvaLB8,2244
24
- inovai/models/NFeItemExportacao.py,sha256=Ir-zkDUxWeRSYpjnKUUz7Da5wpIlwpQQksg4zSbLlpk,2612
24
+ inovai/models/NFeItemExportacao.py,sha256=KhOeHaO7-tg9v_az9NMZ5EBY-rBgQmfCZwl7S4CgvQ0,3395
25
25
  inovai/models/NFeItemOrigemCombustivel.py,sha256=_FD3H6LMxY60T9DAwB-xGcS5xdtV-WnMtbvkOrkx_fA,1809
26
26
  inovai/models/NFeObservacao.py,sha256=tfXIBEybgNu8zEk9HeMr4CK2R4BhwhskkgK2liQ7cDU,1665
27
27
  inovai/models/NFeObservacaoItem.py,sha256=SCNKZRsCjV-Z71ObAdDReOVDe5zBk68dXta2qJzkKWk,1669
@@ -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.4.dist-info/LICENSE,sha256=UJ3ql8eZec9Y1kER7QSHAuvdgFPuL47asePHYmdzG_o,198
38
- ipiranga_inovai_project_lib-3.4.dist-info/METADATA,sha256=6b1dr_ot8xIIC6-jr8eDGe2btcqwkmwkiaJ4oTXDBMs,518
39
- ipiranga_inovai_project_lib-3.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
40
- ipiranga_inovai_project_lib-3.4.dist-info/top_level.txt,sha256=BD-APH5oIEb_KDXwrfnZiu9QDsD9ttTEkYc32r9thqg,7
41
- ipiranga_inovai_project_lib-3.4.dist-info/RECORD,,
37
+ ipiranga_inovai_project_lib-3.5.dist-info/LICENSE,sha256=UJ3ql8eZec9Y1kER7QSHAuvdgFPuL47asePHYmdzG_o,198
38
+ ipiranga_inovai_project_lib-3.5.dist-info/METADATA,sha256=r8dyI5a-8Z_FwH3NVzAXsg6TcFBxtnLgotRVU8l-ehU,518
39
+ ipiranga_inovai_project_lib-3.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
40
+ ipiranga_inovai_project_lib-3.5.dist-info/top_level.txt,sha256=BD-APH5oIEb_KDXwrfnZiu9QDsD9ttTEkYc32r9thqg,7
41
+ ipiranga_inovai_project_lib-3.5.dist-info/RECORD,,