ipiranga-inovai-project-lib 0.8__py3-none-any.whl → 1.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/models/Endereco.py +101 -0
- inovai/models/NFe.py +474 -0
- inovai/models/NFeBoleto.py +218 -0
- inovai/models/NFeCartao.py +62 -0
- inovai/models/NFeDetalhePagamento.py +67 -0
- inovai/models/NFeDocImportacao.py +117 -0
- inovai/models/NFeDocImportacaoAdicao.py +66 -0
- inovai/models/NFeDocRef.py +82 -0
- inovai/models/NFeDuplicata.py +58 -0
- inovai/models/NFeEnvioXML.py +66 -0
- inovai/models/NFeEnvolvido.py +108 -0
- inovai/models/NFeExportacao.py +58 -0
- inovai/models/NFeFatura.py +62 -0
- inovai/models/NFeImposto.py +232 -0
- inovai/models/NFeImpostoRetido.py +114 -0
- inovai/models/NFeIntermediadorTransacao.py +54 -0
- inovai/models/NFeItem.py +252 -0
- inovai/models/NFeItemDadosCombustivel.py +79 -0
- inovai/models/NFeItemExportacao.py +94 -0
- inovai/models/NFeItemOrigemCombustivel.py +57 -0
- inovai/models/NFeObservacao.py +58 -0
- inovai/models/NFeObservacaoItem.py +58 -0
- inovai/models/NFeOrigem.py +58 -0
- inovai/models/NFePagamento.py +55 -0
- inovai/models/NFeProcReferenciado.py +58 -0
- inovai/models/NFeTransporte.py +78 -0
- inovai/models/NFeVeiculo.py +62 -0
- inovai/models/NFeVolume.py +74 -0
- inovai/models/__init__.py +0 -0
- {ipiranga_inovai_project_lib-0.8.dist-info → ipiranga_inovai_project_lib-1.0.dist-info}/METADATA +1 -1
- ipiranga_inovai_project_lib-1.0.dist-info/RECORD +37 -0
- ipiranga_inovai_project_lib-0.8.dist-info/RECORD +0 -8
- {ipiranga_inovai_project_lib-0.8.dist-info → ipiranga_inovai_project_lib-1.0.dist-info}/LICENSE +0 -0
- {ipiranga_inovai_project_lib-0.8.dist-info → ipiranga_inovai_project_lib-1.0.dist-info}/WHEEL +0 -0
- {ipiranga_inovai_project_lib-0.8.dist-info → ipiranga_inovai_project_lib-1.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
class NFeBoleto:
|
|
2
|
+
agenciaDepositaria: str
|
|
3
|
+
bairro: str
|
|
4
|
+
cep: str
|
|
5
|
+
cnpj: str
|
|
6
|
+
codDepNumDoc: str
|
|
7
|
+
codDepNumDocParc: str
|
|
8
|
+
codigoEmpresa: str
|
|
9
|
+
codigoEmpresaReduzido: str
|
|
10
|
+
codigoLocalCobranca: str
|
|
11
|
+
conteudoCampoAceite: str
|
|
12
|
+
controleAtualizRegTX: str
|
|
13
|
+
data: str
|
|
14
|
+
dataVencimento: str
|
|
15
|
+
enderecoCobr: str
|
|
16
|
+
especieNotaFiscal: str
|
|
17
|
+
linhaDigitavelBoleto: str
|
|
18
|
+
linhaFormatadaBoleto: str
|
|
19
|
+
localPagamento: str
|
|
20
|
+
mensagem1: str
|
|
21
|
+
mensagem2: str
|
|
22
|
+
mensagem3: str
|
|
23
|
+
mensagem4: str
|
|
24
|
+
mensagem5: str
|
|
25
|
+
mensagem6: str
|
|
26
|
+
mensagem7: str
|
|
27
|
+
mensagem8: str
|
|
28
|
+
msg: str
|
|
29
|
+
municipio: str
|
|
30
|
+
nomeCliente: str
|
|
31
|
+
nomeLocalCobranca: str
|
|
32
|
+
numeroBoleto: str
|
|
33
|
+
parametroMascara: str
|
|
34
|
+
quantidadeURV: float
|
|
35
|
+
tipoMoeda: str
|
|
36
|
+
uf: str
|
|
37
|
+
usoBancario: str
|
|
38
|
+
valorAbatimentoTitulo: float
|
|
39
|
+
valorCobranca: float
|
|
40
|
+
valorDocumento: float
|
|
41
|
+
valorMoraMulta: float
|
|
42
|
+
valorOutrasDeducoes: float
|
|
43
|
+
valorOutrosAcrescimos: float
|
|
44
|
+
valorURV: float
|
|
45
|
+
|
|
46
|
+
def __init__(self, **json):
|
|
47
|
+
if json:
|
|
48
|
+
for key, typeProp in self.__class__.__dict__['__annotations__'].items():
|
|
49
|
+
# str, float, bool, int
|
|
50
|
+
class_name = str(typeProp).split("'")[1].split(".")[-1]
|
|
51
|
+
|
|
52
|
+
if key in json:
|
|
53
|
+
if isinstance(typeProp, list):
|
|
54
|
+
cls = globals()[class_name]
|
|
55
|
+
items = []
|
|
56
|
+
for item_data in json[key]:
|
|
57
|
+
item = cls(**item_data)
|
|
58
|
+
items.append(item)
|
|
59
|
+
setattr(self, key, items)
|
|
60
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
61
|
+
cls = globals()[class_name]
|
|
62
|
+
instance = cls(**json[key])
|
|
63
|
+
setattr(self, key, instance)
|
|
64
|
+
else:
|
|
65
|
+
setattr(self, key, str(json[key]))
|
|
66
|
+
else:
|
|
67
|
+
if isinstance(typeProp, list):
|
|
68
|
+
# cls = globals()[class_name]
|
|
69
|
+
items = []
|
|
70
|
+
setattr(self, key, items)
|
|
71
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
72
|
+
cls = globals()[class_name]
|
|
73
|
+
instance = cls()
|
|
74
|
+
setattr(self, key, instance)
|
|
75
|
+
else:
|
|
76
|
+
setattr(self, key, '')
|
|
77
|
+
else:
|
|
78
|
+
for key, typeProp in self.__class__.__dict__['__annotations__'].items():
|
|
79
|
+
class_name = str(typeProp).split("'")[1].split(".")[-1]
|
|
80
|
+
if isinstance(typeProp, list):
|
|
81
|
+
# cls = globals()[class_name]
|
|
82
|
+
items = []
|
|
83
|
+
setattr(self, key, items)
|
|
84
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
85
|
+
cls = globals()[class_name]
|
|
86
|
+
instance = cls()
|
|
87
|
+
setattr(self, key, instance)
|
|
88
|
+
else:
|
|
89
|
+
setattr(self, key, '')
|
|
90
|
+
|
|
91
|
+
def get_agenciaDepositaria(self):
|
|
92
|
+
return self.agenciaDepositaria
|
|
93
|
+
|
|
94
|
+
def get_bairro(self):
|
|
95
|
+
return self.bairro
|
|
96
|
+
|
|
97
|
+
def get_cep(self):
|
|
98
|
+
return self.cep
|
|
99
|
+
|
|
100
|
+
def get_cnpj(self):
|
|
101
|
+
return self.cnpj
|
|
102
|
+
|
|
103
|
+
def get_codDepNumDoc(self):
|
|
104
|
+
return self.codDepNumDoc
|
|
105
|
+
|
|
106
|
+
def get_codDepNumDocParc(self):
|
|
107
|
+
return self.codDepNumDocParc
|
|
108
|
+
|
|
109
|
+
def get_codigoEmpresa(self):
|
|
110
|
+
return self.codigoEmpresa
|
|
111
|
+
|
|
112
|
+
def get_codigoEmpresaReduzido(self):
|
|
113
|
+
return self.codigoEmpresaReduzido
|
|
114
|
+
|
|
115
|
+
def get_codigoLocalCobranca(self):
|
|
116
|
+
return self.codigoLocalCobranca
|
|
117
|
+
|
|
118
|
+
def get_conteudoCampoAceite(self):
|
|
119
|
+
return self.conteudoCampoAceite
|
|
120
|
+
|
|
121
|
+
def get_controleAtualizRegTX(self):
|
|
122
|
+
return self.controleAtualizRegTX
|
|
123
|
+
|
|
124
|
+
def get_data(self):
|
|
125
|
+
return self.data
|
|
126
|
+
|
|
127
|
+
def get_dataVencimento(self):
|
|
128
|
+
return self.dataVencimento
|
|
129
|
+
|
|
130
|
+
def get_enderecoCobr(self):
|
|
131
|
+
return self.enderecoCobr
|
|
132
|
+
|
|
133
|
+
def get_especieNotaFiscal(self):
|
|
134
|
+
return self.especieNotaFiscal
|
|
135
|
+
|
|
136
|
+
def get_linhaDigitavelBoleto(self):
|
|
137
|
+
return self.linhaDigitavelBoleto
|
|
138
|
+
|
|
139
|
+
def get_linhaFormatadaBoleto(self):
|
|
140
|
+
return self.linhaFormatadaBoleto
|
|
141
|
+
|
|
142
|
+
def get_localPagamento(self):
|
|
143
|
+
return self.localPagamento
|
|
144
|
+
|
|
145
|
+
def get_mensagem1(self):
|
|
146
|
+
return self.mensagem1
|
|
147
|
+
|
|
148
|
+
def get_mensagem2(self):
|
|
149
|
+
return self.mensagem2
|
|
150
|
+
|
|
151
|
+
def get_mensagem3(self):
|
|
152
|
+
return self.mensagem3
|
|
153
|
+
|
|
154
|
+
def get_mensagem4(self):
|
|
155
|
+
return self.mensagem4
|
|
156
|
+
|
|
157
|
+
def get_mensagem5(self):
|
|
158
|
+
return self.mensagem5
|
|
159
|
+
|
|
160
|
+
def get_mensagem6(self):
|
|
161
|
+
return self.mensagem6
|
|
162
|
+
|
|
163
|
+
def get_mensagem7(self):
|
|
164
|
+
return self.mensagem7
|
|
165
|
+
|
|
166
|
+
def get_mensagem8(self):
|
|
167
|
+
return self.mensagem8
|
|
168
|
+
|
|
169
|
+
def get_msg(self):
|
|
170
|
+
return self.msg
|
|
171
|
+
|
|
172
|
+
def get_municipio(self):
|
|
173
|
+
return self.municipio
|
|
174
|
+
|
|
175
|
+
def get_nomeCliente(self):
|
|
176
|
+
return self.nomeCliente
|
|
177
|
+
|
|
178
|
+
def get_nomeLocalCobranca(self):
|
|
179
|
+
return self.nomeLocalCobranca
|
|
180
|
+
|
|
181
|
+
def get_numeroBoleto(self):
|
|
182
|
+
return self.numeroBoleto
|
|
183
|
+
|
|
184
|
+
def get_parametroMascara(self):
|
|
185
|
+
return self.parametroMascara
|
|
186
|
+
|
|
187
|
+
def get_quantidadeURV(self):
|
|
188
|
+
return self.quantidadeURV
|
|
189
|
+
|
|
190
|
+
def get_tipoMoeda(self):
|
|
191
|
+
return self.tipoMoeda
|
|
192
|
+
|
|
193
|
+
def get_uf(self):
|
|
194
|
+
return self.uf
|
|
195
|
+
|
|
196
|
+
def get_usoBancario(self):
|
|
197
|
+
return self.usoBancario
|
|
198
|
+
|
|
199
|
+
def get_valorAbatimentoTitulo(self):
|
|
200
|
+
return self.valorAbatimentoTitulo
|
|
201
|
+
|
|
202
|
+
def get_valorCobranca(self):
|
|
203
|
+
return self.valorCobranca
|
|
204
|
+
|
|
205
|
+
def get_valorDocumento(self):
|
|
206
|
+
return self.valorDocumento
|
|
207
|
+
|
|
208
|
+
def get_valorMoraMulta(self):
|
|
209
|
+
return self.valorMoraMulta
|
|
210
|
+
|
|
211
|
+
def get_valorOutrasDeducoes(self):
|
|
212
|
+
return self.valorOutrasDeducoes
|
|
213
|
+
|
|
214
|
+
def get_valorOutrosAcrescimos(self):
|
|
215
|
+
return self.valorOutrosAcrescimos
|
|
216
|
+
|
|
217
|
+
def get_valorURV(self):
|
|
218
|
+
return self.valorURV
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
class NFeCartao:
|
|
2
|
+
cnpjOperadora: str
|
|
3
|
+
numeroAutorizacaoTransacao: str
|
|
4
|
+
operadoraCartao: str
|
|
5
|
+
tipoIntegracaoPag: 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_cnpjOperadora(self):
|
|
53
|
+
return self.cnpjOperadora
|
|
54
|
+
|
|
55
|
+
def get_numeroAutorizacaoTransacao(self):
|
|
56
|
+
return self.numeroAutorizacaoTransacao
|
|
57
|
+
|
|
58
|
+
def get_operadoraCartao(self):
|
|
59
|
+
return self.operadoraCartao
|
|
60
|
+
|
|
61
|
+
def get_tipoIntegracaoPag(self):
|
|
62
|
+
return self.tipoIntegracaoPag
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
from domain.models.NFeCartao import NFeCartao
|
|
2
|
+
class NFeDetalhePagamento:
|
|
3
|
+
descricaoMeioPagamento: str
|
|
4
|
+
formaPagamento: str
|
|
5
|
+
pagamentoCartao: NFeCartao
|
|
6
|
+
tipoFormaPagamento: int
|
|
7
|
+
valorPagamento: float
|
|
8
|
+
|
|
9
|
+
def __init__(self, **json):
|
|
10
|
+
if json:
|
|
11
|
+
for key, typeProp in self.__class__.__dict__['__annotations__'].items():
|
|
12
|
+
# str, float, bool, int
|
|
13
|
+
class_name = str(typeProp).split("'")[1].split(".")[-1]
|
|
14
|
+
|
|
15
|
+
if key in json:
|
|
16
|
+
if isinstance(typeProp, list):
|
|
17
|
+
cls = globals()[class_name]
|
|
18
|
+
items = []
|
|
19
|
+
for item_data in json[key]:
|
|
20
|
+
item = cls(**item_data)
|
|
21
|
+
items.append(item)
|
|
22
|
+
setattr(self, key, items)
|
|
23
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
24
|
+
cls = globals()[class_name]
|
|
25
|
+
instance = cls(**json[key])
|
|
26
|
+
setattr(self, key, instance)
|
|
27
|
+
else:
|
|
28
|
+
setattr(self, key, str(json[key]))
|
|
29
|
+
else:
|
|
30
|
+
if isinstance(typeProp, list):
|
|
31
|
+
# cls = globals()[class_name]
|
|
32
|
+
items = []
|
|
33
|
+
setattr(self, key, items)
|
|
34
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
35
|
+
cls = globals()[class_name]
|
|
36
|
+
instance = cls()
|
|
37
|
+
setattr(self, key, instance)
|
|
38
|
+
else:
|
|
39
|
+
setattr(self, key, '')
|
|
40
|
+
else:
|
|
41
|
+
for key, typeProp in self.__class__.__dict__['__annotations__'].items():
|
|
42
|
+
class_name = str(typeProp).split("'")[1].split(".")[-1]
|
|
43
|
+
if isinstance(typeProp, list):
|
|
44
|
+
# cls = globals()[class_name]
|
|
45
|
+
items = []
|
|
46
|
+
setattr(self, key, items)
|
|
47
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
48
|
+
cls = globals()[class_name]
|
|
49
|
+
instance = cls()
|
|
50
|
+
setattr(self, key, instance)
|
|
51
|
+
else:
|
|
52
|
+
setattr(self, key, '')
|
|
53
|
+
|
|
54
|
+
def get_descricaoMeioPagamento(self):
|
|
55
|
+
return self.descricaoMeioPagamento
|
|
56
|
+
|
|
57
|
+
def get_formaPagamento(self):
|
|
58
|
+
return self.formaPagamento
|
|
59
|
+
|
|
60
|
+
def get_pagamentoCartao(self):
|
|
61
|
+
return self.pagamentoCartao
|
|
62
|
+
|
|
63
|
+
def get_tipoFormaPagamento(self):
|
|
64
|
+
return self.tipoFormaPagamento
|
|
65
|
+
|
|
66
|
+
def get_valorPagamento(self):
|
|
67
|
+
return self.valorPagamento
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
from domain.models.NFeDocImportacaoAdicao import NFeDocImportacaoAdicao
|
|
2
|
+
from domain.models.NFeEnvolvido import NFeEnvolvido
|
|
3
|
+
from domain.models.NFeOrigem import NFeOrigem
|
|
4
|
+
class NFeDocImportacao:
|
|
5
|
+
adicoes: [NFeDocImportacaoAdicao]
|
|
6
|
+
codigoExportador: str
|
|
7
|
+
dataRegistro: str
|
|
8
|
+
desembaracoData: str
|
|
9
|
+
desembaracoLocal: str
|
|
10
|
+
desembaracoUF: str
|
|
11
|
+
intermediario: NFeEnvolvido
|
|
12
|
+
numero: str
|
|
13
|
+
origem: NFeOrigem
|
|
14
|
+
quantidadeUnidadeComercializacao: int
|
|
15
|
+
quantidadeUnidadeMedida: int
|
|
16
|
+
tipoDocumentoImportacao: int
|
|
17
|
+
tipoIntermediario: int
|
|
18
|
+
valorDespesasAcrescidas: float
|
|
19
|
+
valorDespesasAduaneiras: float
|
|
20
|
+
valorMarinhaMercante: float
|
|
21
|
+
viaTransporte: int
|
|
22
|
+
|
|
23
|
+
def __init__(self, **json):
|
|
24
|
+
if json:
|
|
25
|
+
for key, typeProp in self.__class__.__dict__['__annotations__'].items():
|
|
26
|
+
# str, float, bool, int
|
|
27
|
+
class_name = str(typeProp).split("'")[1].split(".")[-1]
|
|
28
|
+
|
|
29
|
+
if key in json:
|
|
30
|
+
if isinstance(typeProp, list):
|
|
31
|
+
cls = globals()[class_name]
|
|
32
|
+
items = []
|
|
33
|
+
for item_data in json[key]:
|
|
34
|
+
item = cls(**item_data)
|
|
35
|
+
items.append(item)
|
|
36
|
+
setattr(self, key, items)
|
|
37
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
38
|
+
cls = globals()[class_name]
|
|
39
|
+
instance = cls(**json[key])
|
|
40
|
+
setattr(self, key, instance)
|
|
41
|
+
else:
|
|
42
|
+
setattr(self, key, str(json[key]))
|
|
43
|
+
else:
|
|
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
|
+
else:
|
|
55
|
+
for key, typeProp in self.__class__.__dict__['__annotations__'].items():
|
|
56
|
+
class_name = str(typeProp).split("'")[1].split(".")[-1]
|
|
57
|
+
if isinstance(typeProp, list):
|
|
58
|
+
# cls = globals()[class_name]
|
|
59
|
+
items = []
|
|
60
|
+
setattr(self, key, items)
|
|
61
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
62
|
+
cls = globals()[class_name]
|
|
63
|
+
instance = cls()
|
|
64
|
+
setattr(self, key, instance)
|
|
65
|
+
else:
|
|
66
|
+
setattr(self, key, '')
|
|
67
|
+
|
|
68
|
+
def get_adicoes(self):
|
|
69
|
+
return self.adicoes
|
|
70
|
+
|
|
71
|
+
def get_codigoExportador(self):
|
|
72
|
+
return self.codigoExportador
|
|
73
|
+
|
|
74
|
+
def get_dataRegistro(self):
|
|
75
|
+
return self.dataRegistro
|
|
76
|
+
|
|
77
|
+
def get_desembaracoData(self):
|
|
78
|
+
return self.desembaracoData
|
|
79
|
+
|
|
80
|
+
def get_desembaracoLocal(self):
|
|
81
|
+
return self.desembaracoLocal
|
|
82
|
+
|
|
83
|
+
def get_desembaracoUF(self):
|
|
84
|
+
return self.desembaracoUF
|
|
85
|
+
|
|
86
|
+
def get_intermediario(self):
|
|
87
|
+
return self.intermediario
|
|
88
|
+
|
|
89
|
+
def get_numero(self):
|
|
90
|
+
return self.numero
|
|
91
|
+
|
|
92
|
+
def get_origem(self):
|
|
93
|
+
return self.origem
|
|
94
|
+
|
|
95
|
+
def get_quantidadeUnidadeComercializacao(self):
|
|
96
|
+
return self.quantidadeUnidadeComercializacao
|
|
97
|
+
|
|
98
|
+
def get_quantidadeUnidadeMedida(self):
|
|
99
|
+
return self.quantidadeUnidadeMedida
|
|
100
|
+
|
|
101
|
+
def get_tipoDocumentoImportacao(self):
|
|
102
|
+
return self.tipoDocumentoImportacao
|
|
103
|
+
|
|
104
|
+
def get_tipoIntermediario(self):
|
|
105
|
+
return self.tipoIntermediario
|
|
106
|
+
|
|
107
|
+
def get_valorDespesasAcrescidas(self):
|
|
108
|
+
return self.valorDespesasAcrescidas
|
|
109
|
+
|
|
110
|
+
def get_valorDespesasAduaneiras(self):
|
|
111
|
+
return self.valorDespesasAduaneiras
|
|
112
|
+
|
|
113
|
+
def get_valorMarinhaMercante(self):
|
|
114
|
+
return self.valorMarinhaMercante
|
|
115
|
+
|
|
116
|
+
def get_viaTransporte(self):
|
|
117
|
+
return self.viaTransporte
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
class NFeDocImportacaoAdicao:
|
|
2
|
+
codigoFabricante: str
|
|
3
|
+
numero: int
|
|
4
|
+
numeroDrawback: str
|
|
5
|
+
sequencial: int
|
|
6
|
+
valorDesconto: float
|
|
7
|
+
|
|
8
|
+
def __init__(self, **json):
|
|
9
|
+
if json:
|
|
10
|
+
for key, typeProp in self.__class__.__dict__['__annotations__'].items():
|
|
11
|
+
# str, float, bool, int
|
|
12
|
+
class_name = str(typeProp).split("'")[1].split(".")[-1]
|
|
13
|
+
|
|
14
|
+
if key in json:
|
|
15
|
+
if isinstance(typeProp, list):
|
|
16
|
+
cls = globals()[class_name]
|
|
17
|
+
items = []
|
|
18
|
+
for item_data in json[key]:
|
|
19
|
+
item = cls(**item_data)
|
|
20
|
+
items.append(item)
|
|
21
|
+
setattr(self, key, items)
|
|
22
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
23
|
+
cls = globals()[class_name]
|
|
24
|
+
instance = cls(**json[key])
|
|
25
|
+
setattr(self, key, instance)
|
|
26
|
+
else:
|
|
27
|
+
setattr(self, key, str(json[key]))
|
|
28
|
+
else:
|
|
29
|
+
if isinstance(typeProp, list):
|
|
30
|
+
# cls = globals()[class_name]
|
|
31
|
+
items = []
|
|
32
|
+
setattr(self, key, items)
|
|
33
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
34
|
+
cls = globals()[class_name]
|
|
35
|
+
instance = cls()
|
|
36
|
+
setattr(self, key, instance)
|
|
37
|
+
else:
|
|
38
|
+
setattr(self, key, '')
|
|
39
|
+
else:
|
|
40
|
+
for key, typeProp in self.__class__.__dict__['__annotations__'].items():
|
|
41
|
+
class_name = str(typeProp).split("'")[1].split(".")[-1]
|
|
42
|
+
if isinstance(typeProp, list):
|
|
43
|
+
# cls = globals()[class_name]
|
|
44
|
+
items = []
|
|
45
|
+
setattr(self, key, items)
|
|
46
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
47
|
+
cls = globals()[class_name]
|
|
48
|
+
instance = cls()
|
|
49
|
+
setattr(self, key, instance)
|
|
50
|
+
else:
|
|
51
|
+
setattr(self, key, '')
|
|
52
|
+
|
|
53
|
+
def get_codigoFabricante(self):
|
|
54
|
+
return self.codigoFabricante
|
|
55
|
+
|
|
56
|
+
def get_numero(self):
|
|
57
|
+
return self.numero
|
|
58
|
+
|
|
59
|
+
def get_numeroDrawback(self):
|
|
60
|
+
return self.numeroDrawback
|
|
61
|
+
|
|
62
|
+
def get_sequencial(self):
|
|
63
|
+
return self.sequencial
|
|
64
|
+
|
|
65
|
+
def get_valorDesconto(self):
|
|
66
|
+
return self.valorDesconto
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
class NFeDocRef:
|
|
2
|
+
anoMes: str
|
|
3
|
+
chaveAcesso: str
|
|
4
|
+
dataFiscal: str
|
|
5
|
+
emitenteCPFCNPJ: str
|
|
6
|
+
emitenteIE: str
|
|
7
|
+
numero: int
|
|
8
|
+
serie: int
|
|
9
|
+
tipo: str
|
|
10
|
+
ufCodIBGE: str
|
|
11
|
+
|
|
12
|
+
def __init__(self, **json):
|
|
13
|
+
if json:
|
|
14
|
+
for key, typeProp in self.__class__.__dict__['__annotations__'].items():
|
|
15
|
+
# str, float, bool, int
|
|
16
|
+
class_name = str(typeProp).split("'")[1].split(".")[-1]
|
|
17
|
+
|
|
18
|
+
if key in json:
|
|
19
|
+
if isinstance(typeProp, list):
|
|
20
|
+
cls = globals()[class_name]
|
|
21
|
+
items = []
|
|
22
|
+
for item_data in json[key]:
|
|
23
|
+
item = cls(**item_data)
|
|
24
|
+
items.append(item)
|
|
25
|
+
setattr(self, key, items)
|
|
26
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
27
|
+
cls = globals()[class_name]
|
|
28
|
+
instance = cls(**json[key])
|
|
29
|
+
setattr(self, key, instance)
|
|
30
|
+
else:
|
|
31
|
+
setattr(self, key, str(json[key]))
|
|
32
|
+
else:
|
|
33
|
+
if isinstance(typeProp, list):
|
|
34
|
+
# cls = globals()[class_name]
|
|
35
|
+
items = []
|
|
36
|
+
setattr(self, key, items)
|
|
37
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
38
|
+
cls = globals()[class_name]
|
|
39
|
+
instance = cls()
|
|
40
|
+
setattr(self, key, instance)
|
|
41
|
+
else:
|
|
42
|
+
setattr(self, key, '')
|
|
43
|
+
else:
|
|
44
|
+
for key, typeProp in self.__class__.__dict__['__annotations__'].items():
|
|
45
|
+
class_name = str(typeProp).split("'")[1].split(".")[-1]
|
|
46
|
+
if isinstance(typeProp, list):
|
|
47
|
+
# cls = globals()[class_name]
|
|
48
|
+
items = []
|
|
49
|
+
setattr(self, key, items)
|
|
50
|
+
elif class_name not in ('str', 'int', 'float', 'bool'):
|
|
51
|
+
cls = globals()[class_name]
|
|
52
|
+
instance = cls()
|
|
53
|
+
setattr(self, key, instance)
|
|
54
|
+
else:
|
|
55
|
+
setattr(self, key, '')
|
|
56
|
+
|
|
57
|
+
def get_anoMes(self):
|
|
58
|
+
return self.anoMes
|
|
59
|
+
|
|
60
|
+
def get_chaveAcesso(self):
|
|
61
|
+
return self.chaveAcesso
|
|
62
|
+
|
|
63
|
+
def get_dataFiscal(self):
|
|
64
|
+
return self.dataFiscal
|
|
65
|
+
|
|
66
|
+
def get_emitenteCPFCNPJ(self):
|
|
67
|
+
return self.emitenteCPFCNPJ
|
|
68
|
+
|
|
69
|
+
def get_emitenteIE(self):
|
|
70
|
+
return self.emitenteIE
|
|
71
|
+
|
|
72
|
+
def get_numero(self):
|
|
73
|
+
return self.numero
|
|
74
|
+
|
|
75
|
+
def get_serie(self):
|
|
76
|
+
return self.serie
|
|
77
|
+
|
|
78
|
+
def get_tipo(self):
|
|
79
|
+
return self.tipo
|
|
80
|
+
|
|
81
|
+
def get_ufCodIBGE(self):
|
|
82
|
+
return self.ufCodIBGE
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
class NFeDuplicata:
|
|
2
|
+
dtVencimento: str
|
|
3
|
+
numero: str
|
|
4
|
+
valor: float
|
|
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_dtVencimento(self):
|
|
52
|
+
return self.dtVencimento
|
|
53
|
+
|
|
54
|
+
def get_numero(self):
|
|
55
|
+
return self.numero
|
|
56
|
+
|
|
57
|
+
def get_valor(self):
|
|
58
|
+
return self.valor
|