cosmemilton-acbr-node 0.0.0-stage → 0.1.0

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 (51) hide show
  1. package/LICENSE +502 -0
  2. package/NOTICE +8 -0
  3. package/README.md +105 -2
  4. package/acbr.config.json +16 -0
  5. package/acbr.lock.json +3475 -0
  6. package/dist/cli.js +1652 -0
  7. package/dist/cli.js.map +7 -0
  8. package/dist/index.cjs +3349 -0
  9. package/dist/index.cjs.map +7 -0
  10. package/dist/index.js +3100 -0
  11. package/dist/index.js.map +7 -0
  12. package/dist/runtime.cjs +350 -0
  13. package/dist/runtime.cjs.map +7 -0
  14. package/dist/runtime.js +312 -0
  15. package/dist/runtime.js.map +7 -0
  16. package/dist/types/generated/acbr/index.d.ts +14 -0
  17. package/dist/types/generated/acbr/models.d.ts +3007 -0
  18. package/dist/types/src/cli.d.ts +20 -0
  19. package/dist/types/src/config.d.ts +30 -0
  20. package/dist/types/src/generator.d.ts +93 -0
  21. package/dist/types/src/index.d.ts +16 -0
  22. package/dist/types/src/native-build.d.ts +25 -0
  23. package/dist/types/src/offline-check.d.ts +10 -0
  24. package/dist/types/src/offline-fixture.d.ts +104 -0
  25. package/dist/types/src/runtime.d.ts +26 -0
  26. package/dist/types/src/source.d.ts +31 -0
  27. package/dist/types/src/types.d.ts +103 -0
  28. package/docs/API.md +32 -0
  29. package/docs/ARQUITETURA.md +15 -0
  30. package/docs/CI.md +54 -0
  31. package/docs/CLI.md +32 -0
  32. package/docs/DEPENDENCIAS-NATIVAS.md +93 -0
  33. package/docs/VALIDACAO.md +65 -0
  34. package/docs/licenses/fpc/COPYING.FPC +25 -0
  35. package/docs/licenses/fpc/COPYING.GPL.txt +340 -0
  36. package/docs/licenses/fpc/COPYING.LGPL.txt +504 -0
  37. package/docs/licenses/fpc/ORIGIN.json +21 -0
  38. package/docs/licenses/lazarus/COPYING.LGPL.txt +481 -0
  39. package/docs/licenses/lazarus/COPYING.modifiedLGPL.txt +26 -0
  40. package/docs/licenses/lazarus/COPYING.txt +46 -0
  41. package/docs/licenses/lazarus/ORIGIN.json +1 -0
  42. package/native/NativeErrors.pas +14 -0
  43. package/native/NativeMotor.pas +220 -0
  44. package/native/NativeParent.pas +61 -0
  45. package/native/NativeProtocol.pas +64 -0
  46. package/native/NativeTLS.pas +70 -0
  47. package/native/acbr-worker.lpr +26 -0
  48. package/native/generated/AcbrModels.pas +4287 -0
  49. package/package.json +72 -4
  50. package/scripts/build-native-deps.mjs +237 -0
  51. package/tools/extract-model.lpr +119 -0
package/dist/index.cjs ADDED
@@ -0,0 +1,3349 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.ts
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
+ ACBR_CONTRACT: () => ACBR_CONTRACT,
34
+ CONTRACT_HASH: () => CONTRACT_HASH,
35
+ ErroAcbrNode: () => ErroAcbrNode,
36
+ PROTOCOL_VERSION: () => PROTOCOL_VERSION,
37
+ SOURCE_REVISION: () => SOURCE_REVISION,
38
+ TACBrProcessoEmissao: () => TACBrProcessoEmissao,
39
+ TACBrTipoAmbiente: () => TACBrTipoAmbiente,
40
+ TACBrTipoEmissao: () => TACBrTipoEmissao,
41
+ TACBrTipoImpressao: () => TACBrTipoImpressao,
42
+ TAdiCollection: () => TAdiCollection,
43
+ TAdiCollectionItem: () => TAdiCollectionItem,
44
+ TArmaCollection: () => TArmaCollection,
45
+ TArmaCollectionItem: () => TArmaCollectionItem,
46
+ TAvulsa: () => TAvulsa,
47
+ TCIDE: () => TCIDE,
48
+ TCOFINS: () => TCOFINS,
49
+ TCOFINSST: () => TCOFINSST,
50
+ TCSOSNIcms: () => TCSOSNIcms,
51
+ TCSTCofins: () => TCSTCofins,
52
+ TCSTIBSCBS: () => TCSTIBSCBS,
53
+ TCSTIcms: () => TCSTIcms,
54
+ TCSTPis: () => TCSTPis,
55
+ TCobr: () => TCobr,
56
+ TComb: () => TComb,
57
+ TCompra: () => TCompra,
58
+ TCredPresIBSZFM: () => TCredPresIBSZFM,
59
+ TCredPresumidoCollection: () => TCredPresumidoCollection,
60
+ TCredPresumidoCollectionItem: () => TCredPresumidoCollectionItem,
61
+ TDFErefCollection: () => TDFErefCollection,
62
+ TDFErefCollectionItem: () => TDFErefCollectionItem,
63
+ TDFeReferenciado: () => TDFeReferenciado,
64
+ TDICollection: () => TDICollection,
65
+ TDICollectionItem: () => TDICollectionItem,
66
+ TDeducCollection: () => TDeducCollection,
67
+ TDeducCollectionItem: () => TDeducCollectionItem,
68
+ TDest: () => TDest,
69
+ TDetCollection: () => TDetCollection,
70
+ TDetCollectionItem: () => TDetCollectionItem,
71
+ TDupCollection: () => TDupCollection,
72
+ TDupCollectionItem: () => TDupCollectionItem,
73
+ TEmit: () => TEmit,
74
+ TEnderDest: () => TEnderDest,
75
+ TEntrega: () => TEntrega,
76
+ TExporta: () => TExporta,
77
+ TFat: () => TFat,
78
+ TForDiaCollection: () => TForDiaCollection,
79
+ TForDiaCollectionItem: () => TForDiaCollectionItem,
80
+ TIBSCBS: () => TIBSCBS,
81
+ TIBSCBSTot: () => TIBSCBSTot,
82
+ TICMS: () => TICMS,
83
+ TICMSComb: () => TICMSComb,
84
+ TICMSCons: () => TICMSCons,
85
+ TICMSInter: () => TICMSInter,
86
+ TICMSTot: () => TICMSTot,
87
+ TICMSUFDest: () => TICMSUFDest,
88
+ TII: () => TII,
89
+ TIPI: () => TIPI,
90
+ TISSQN: () => TISSQN,
91
+ TISSQNtot: () => TISSQNtot,
92
+ TISTot: () => TISTot,
93
+ TIde: () => TIde,
94
+ TImposto: () => TImposto,
95
+ TIndSomaCOFINSST: () => TIndSomaCOFINSST,
96
+ TIndSomaPISST: () => TIndSomaPISST,
97
+ TIndicadorEx: () => TIndicadorEx,
98
+ TInfAdic: () => TInfAdic,
99
+ TLacresCollection: () => TLacresCollection,
100
+ TLacresCollectionItem: () => TLacresCollectionItem,
101
+ TMedCollection: () => TMedCollection,
102
+ TMedCollectionItem: () => TMedCollectionItem,
103
+ TNFe: () => TNFe,
104
+ TNFrefCollection: () => TNFrefCollection,
105
+ TNFrefCollectionItem: () => TNFrefCollectionItem,
106
+ TNVECollection: () => TNVECollection,
107
+ TNVECollectionItem: () => TNVECollectionItem,
108
+ TOrigemMercadoria: () => TOrigemMercadoria,
109
+ TPIS: () => TPIS,
110
+ TPISST: () => TPISST,
111
+ TProcDFe: () => TProcDFe,
112
+ TProd: () => TProd,
113
+ TRastroCollection: () => TRastroCollection,
114
+ TRastroCollectionItem: () => TRastroCollectionItem,
115
+ TReboqueCollection: () => TReboqueCollection,
116
+ TReboqueCollectionItem: () => TReboqueCollectionItem,
117
+ TRefECF: () => TRefECF,
118
+ TRefNF: () => TRefNF,
119
+ TRefNFP: () => TRefNFP,
120
+ TRegTribISSQN: () => TRegTribISSQN,
121
+ TRetirada: () => TRetirada,
122
+ TSignature: () => TSignature,
123
+ TTipoNFe: () => TTipoNFe,
124
+ TTotal: () => TTotal,
125
+ TTpCredPresIBSZFM: () => TTpCredPresIBSZFM,
126
+ TTransp: () => TTransp,
127
+ TTransporta: () => TTransporta,
128
+ TVolCollection: () => TVolCollection,
129
+ TVolCollectionItem: () => TVolCollectionItem,
130
+ Tagropecuario: () => Tagropecuario,
131
+ TautXMLCollection: () => TautXMLCollection,
132
+ TautXMLCollectionItem: () => TautXMLCollectionItem,
133
+ TcCredPres: () => TcCredPres,
134
+ Tcana: () => Tcana,
135
+ TdefensivoCollection: () => TdefensivoCollection,
136
+ TdefensivoCollectionItem: () => TdefensivoCollectionItem,
137
+ TdetExportCollection: () => TdetExportCollection,
138
+ TdetExportCollectionItem: () => TdetExportCollectionItem,
139
+ Tencerrante: () => Tencerrante,
140
+ TenderEmit: () => TenderEmit,
141
+ TgALCZFMCBS: () => TgALCZFMCBS,
142
+ TgAjusteCompet: () => TgAjusteCompet,
143
+ TgCBS: () => TgCBS,
144
+ TgCBSMonoAdRem: () => TgCBSMonoAdRem,
145
+ TgCBSMonoAdValorem: () => TgCBSMonoAdValorem,
146
+ TgCBSValores: () => TgCBSValores,
147
+ TgCompraGov: () => TgCompraGov,
148
+ TgCredPresOper: () => TgCredPresOper,
149
+ TgDevTrib: () => TgDevTrib,
150
+ TgDif: () => TgDif,
151
+ TgEstornoCred: () => TgEstornoCred,
152
+ TgIBS: () => TgIBS,
153
+ TgIBSCBS: () => TgIBSCBS,
154
+ TgIBSCBSCredPres: () => TgIBSCBSCredPres,
155
+ TgIBSCBSMono: () => TgIBSCBSMono,
156
+ TgIBSMonoAdRem: () => TgIBSMonoAdRem,
157
+ TgIBSMonoAdValorem: () => TgIBSMonoAdValorem,
158
+ TgIBSMunTot: () => TgIBSMunTot,
159
+ TgIBSMunValores: () => TgIBSMunValores,
160
+ TgIBSUFTot: () => TgIBSUFTot,
161
+ TgIBSUFValores: () => TgIBSUFValores,
162
+ TgIS: () => TgIS,
163
+ TgMono: () => TgMono,
164
+ TgMonoPadraoCBSAliq: () => TgMonoPadraoCBSAliq,
165
+ TgMonoPadraoCBSQtde: () => TgMonoPadraoCBSQtde,
166
+ TgMonoPadraoIBSAliq: () => TgMonoPadraoIBSAliq,
167
+ TgMonoPadraoIBSQtde: () => TgMonoPadraoIBSQtde,
168
+ TgMonoRetCBS: () => TgMonoRetCBS,
169
+ TgMonoRetIBS: () => TgMonoRetIBS,
170
+ TgMonoRetenCBSAliq: () => TgMonoRetenCBSAliq,
171
+ TgMonoRetenCBSQtde: () => TgMonoRetenCBSQtde,
172
+ TgMonoRetenIBSAliq: () => TgMonoRetenIBSAliq,
173
+ TgMonoRetenIBSQtde: () => TgMonoRetenIBSQtde,
174
+ TgPagAntecipado: () => TgPagAntecipado,
175
+ TgRed: () => TgRed,
176
+ TgTransfCred: () => TgTransfCred,
177
+ TgTribCompraGov: () => TgTribCompraGov,
178
+ TgTribRegular: () => TgTribRegular,
179
+ TgpBioDiferencaCBS: () => TgpBioDiferencaCBS,
180
+ TgpBioDiferencaIBS: () => TgpBioDiferencaIBS,
181
+ TguiaTransito: () => TguiaTransito,
182
+ TindIEDest: () => TindIEDest,
183
+ TindImport: () => TindImport,
184
+ TindIncentivo: () => TindIncentivo,
185
+ TindIntermed: () => TindIntermed,
186
+ TinfIntermed: () => TinfIntermed,
187
+ TinfNFe: () => TinfNFe,
188
+ TinfNFeSupl: () => TinfNFeSupl,
189
+ TinfPAA: () => TinfPAA,
190
+ TinfRespTec: () => TinfRespTec,
191
+ TmotRedAdRem: () => TmotRedAdRem,
192
+ TobsContCollection: () => TobsContCollection,
193
+ TobsContCollectionItem: () => TobsContCollectionItem,
194
+ TobsFiscoCollection: () => TobsFiscoCollection,
195
+ TobsFiscoCollectionItem: () => TobsFiscoCollectionItem,
196
+ TobsItem: () => TobsItem,
197
+ TorigCombCollection: () => TorigCombCollection,
198
+ TorigCombCollectionItem: () => TorigCombCollectionItem,
199
+ TpagCollection: () => TpagCollection,
200
+ TpagCollectionItem: () => TpagCollectionItem,
201
+ TpcnBandeiraCartao: () => TpcnBandeiraCartao,
202
+ TpcnCRT: () => TpcnCRT,
203
+ TpcnCondicaoVeiculo: () => TpcnCondicaoVeiculo,
204
+ TpcnConsumidorFinal: () => TpcnConsumidorFinal,
205
+ TpcnCstIpi: () => TpcnCstIpi,
206
+ TpcnDestinoOperacao: () => TpcnDestinoOperacao,
207
+ TpcnDeterminacaoBaseIcms: () => TpcnDeterminacaoBaseIcms,
208
+ TpcnDeterminacaoBaseIcmsST: () => TpcnDeterminacaoBaseIcmsST,
209
+ TpcnECFModRef: () => TpcnECFModRef,
210
+ TpcnFinalidadeNFe: () => TpcnFinalidadeNFe,
211
+ TpcnFormaPagamento: () => TpcnFormaPagamento,
212
+ TpcnISSQNcSitTrib: () => TpcnISSQNcSitTrib,
213
+ TpcnIndEscala: () => TpcnIndEscala,
214
+ TpcnIndicadorPagamento: () => TpcnIndicadorPagamento,
215
+ TpcnIndicadorProcesso: () => TpcnIndicadorProcesso,
216
+ TpcnIndicadorTotal: () => TpcnIndicadorTotal,
217
+ TpcnModalidadeFrete: () => TpcnModalidadeFrete,
218
+ TpcnMotivoDesoneracaoICMS: () => TpcnMotivoDesoneracaoICMS,
219
+ TpcnPresencaComprador: () => TpcnPresencaComprador,
220
+ TpcnTipoArma: () => TpcnTipoArma,
221
+ TpcnTipoIntermedio: () => TpcnTipoIntermedio,
222
+ TpcnTipoOperacao: () => TpcnTipoOperacao,
223
+ TpcnTipoViaTransp: () => TpcnTipoViaTransp,
224
+ TpcnindISS: () => TpcnindISS,
225
+ TpcnindISSRet: () => TpcnindISSRet,
226
+ TprocRefCollection: () => TprocRefCollection,
227
+ TprocRefCollectionItem: () => TprocRefCollectionItem,
228
+ TrefDFePagAntCollection: () => TrefDFePagAntCollection,
229
+ TrefDFePagAntCollectionItem: () => TrefDFePagAntCollectionItem,
230
+ TretTransp: () => TretTransp,
231
+ TretTrib: () => TretTrib,
232
+ TtpALCZFMCBS: () => TtpALCZFMCBS,
233
+ TtpAto: () => TtpAto,
234
+ TtpEnteGov: () => TtpEnteGov,
235
+ TtpGuia: () => TtpGuia,
236
+ TtpIntegra: () => TtpIntegra,
237
+ TtpNFCredito: () => TtpNFCredito,
238
+ TtpNFDebito: () => TtpNFDebito,
239
+ TtpOperGov: () => TtpOperGov,
240
+ TveicProd: () => TveicProd,
241
+ TveicTransp: () => TveicTransp,
242
+ criarEmissor: () => criarEmissor2,
243
+ validateModel: () => validateModel,
244
+ validateTNFe: () => validateTNFe
245
+ });
246
+ module.exports = __toCommonJS(index_exports);
247
+
248
+ // src/runtime.ts
249
+ var import_node_child_process = require("node:child_process");
250
+ var import_promises = require("node:fs/promises");
251
+ var import_node_path = __toESM(require("node:path"), 1);
252
+ var import_node_module = require("node:module");
253
+ var import_node_crypto = require("node:crypto");
254
+ var import_node_util = require("node:util");
255
+
256
+ // src/types.ts
257
+ var PROTOCOL_VERSION = 1;
258
+ var ErroAcbrNode = class extends Error {
259
+ constructor(codigo, mensagem, resultadoDesconhecido = false, xmlBase64) {
260
+ super(mensagem);
261
+ this.codigo = codigo;
262
+ this.resultadoDesconhecido = resultadoDesconhecido;
263
+ this.xmlBase64 = xmlBase64;
264
+ }
265
+ name = "ErroAcbrNode";
266
+ };
267
+
268
+ // src/runtime.ts
269
+ var import_meta = {};
270
+ var STATES = /* @__PURE__ */ new Set(["DENEGADO", "XML_GERADO", "VALIDADO", "ASSINADO", "AUTORIZADO", "REJEITADO", "PENDENTE", "INDETERMINADO", "CONSULTADO", "CANCELADO", "EVENTO_REGISTRADO", "INUTILIZADO", "ERRO"]);
271
+ var UFS = new Set("AC AL AP AM BA CE DF ES GO MA MT MS MG PA PB PR PE PI RJ RN RS RO RR SC SP SE TO".split(" "));
272
+ var MAX_BYTES = 8 * 1024 * 1024;
273
+ var plain = (v) => v !== null && typeof v === "object" && !Array.isArray(v);
274
+ var validContract = (v) => plain(v) && Number.isInteger(v.sourceRevision) && Number(v.sourceRevision) > 0 && typeof v.contractHash === "string" && /^[a-f0-9]{64}$/.test(v.contractHash);
275
+ var fail = (code, message, req, unknown = false) => new ErroAcbrNode(code, message, unknown, req?.comando === "transmitir" ? req.xmlBase64 : void 0);
276
+ function confined(root, relative) {
277
+ const file = import_node_path.default.resolve(root, relative), part = import_node_path.default.relative(root, file);
278
+ if (!relative || import_node_path.default.isAbsolute(relative) || part === ".." || part.startsWith(".." + import_node_path.default.sep)) throw fail("RUNTIME_INVALIDO", "Caminho inv\xE1lido no runtime.");
279
+ return file;
280
+ }
281
+ async function resolveRuntime(directory, contract) {
282
+ if (!validContract(contract)) throw fail("CONTRATO_INVALIDO", "Contrato gerado inv\xE1lido.");
283
+ let root = directory;
284
+ if (!root) {
285
+ if (!["linux", "win32"].includes(process.platform) || process.arch !== "x64") throw fail("PLATAFORMA_NAO_SUPORTADA", "Esta vers\xE3o exige Linux ou Windows x64.");
286
+ try {
287
+ const require2 = (0, import_node_module.createRequire)(typeof __filename !== "undefined" ? __filename : import_meta.url);
288
+ root = import_node_path.default.join(import_node_path.default.dirname(require2.resolve("cosmemilton-acbr-node-" + process.platform + "-x64/package.json")), "runtime");
289
+ } catch {
290
+ throw fail("RUNTIME_AUSENTE", "Instale o pacote de runtime da plataforma ou informe runtimeDirectory.");
291
+ }
292
+ }
293
+ root = import_node_path.default.resolve(root);
294
+ let m;
295
+ try {
296
+ m = JSON.parse(await (0, import_promises.readFile)(import_node_path.default.join(root, "manifest.json"), "utf8"));
297
+ } catch {
298
+ throw fail("RUNTIME_AUSENTE", "Manifesto do runtime n\xE3o encontrado.");
299
+ }
300
+ if (!validContract(m) || m.formatVersion !== 1 || !plain(m.files) || typeof m.executable !== "string" || m.platform !== process.platform || m.arch !== process.arch) throw fail("RUNTIME_INVALIDO", "Manifesto ou plataforma do runtime inv\xE1lidos.");
301
+ if (m.sourceRevision !== contract.sourceRevision || m.contractHash !== contract.contractHash) throw fail("CONTRATO_DIVERGENTE", "Cliente e motor foram gerados de contratos diferentes; regenere e recompile.");
302
+ for (const [name, hash] of Object.entries(m.files)) {
303
+ if (typeof hash !== "string" || !/^[a-f0-9]{64}$/.test(hash)) throw fail("RUNTIME_INVALIDO", "Hash inv\xE1lido no runtime.");
304
+ const file = confined(root, name);
305
+ let data;
306
+ try {
307
+ if (!(await (0, import_promises.stat)(file)).isFile()) throw Error();
308
+ data = await (0, import_promises.readFile)(file);
309
+ } catch {
310
+ throw fail("RUNTIME_INCOMPLETO", "Arquivo do runtime ausente.");
311
+ }
312
+ if ((0, import_node_crypto.createHash)("sha256").update(data).digest("hex") !== hash) throw fail("RUNTIME_ALTERADO", "O runtime n\xE3o corresponde ao manifesto distribu\xEDdo.");
313
+ }
314
+ if (!m.files[m.executable]) throw fail("RUNTIME_INVALIDO", "O execut\xE1vel n\xE3o consta no invent\xE1rio.");
315
+ return { directory: root, executable: confined(root, m.executable) };
316
+ }
317
+ function criarEmissor(options) {
318
+ if (!/^\d{14}$/.test(options.cnpj) || !UFS.has(options.uf) || ![55, 65].includes(options.modelo) || ![1, 2].includes(options.ambiente)) throw fail("CONFIGURACAO_INVALIDA", "Informe CNPJ, UF, modelo e ambiente v\xE1lidos.");
319
+ if (!validContract(options.contrato)) throw fail("CONTRATO_INVALIDO", "Contrato gerado inv\xE1lido.");
320
+ const cert = options.certificado;
321
+ if (cert && (typeof cert.senha !== "string" || !!cert.pfx === !!cert.arquivo || cert.pfx && !(cert.pfx instanceof Uint8Array))) throw fail("CERTIFICADO_INVALIDO", "Informe A1 em pfx ou arquivo e sua senha.");
322
+ if (options.csc && (!/^\d{1,6}$/.test(options.csc.id) || typeof options.csc.valor !== "string" || !options.csc.valor || options.csc.valor.length > 256)) throw fail("CSC_INVALIDO", "CSC inv\xE1lido.");
323
+ const cfg = { cnpj: options.cnpj, uf: options.uf, modelo: options.modelo, ambiente: options.ambiente, csc: options.csc ? { ...options.csc } : void 0 };
324
+ const certificate = cert ? { ...cert, pfx: cert.pfx ? Buffer.from(cert.pfx) : void 0 } : void 0;
325
+ const contract = { ...options.contrato };
326
+ const timeout = options.timeoutMs ?? 12e4, capacity = options.limiteFila ?? 32, bytesLimit = options.limiteBytes ?? MAX_BYTES;
327
+ if (!Number.isInteger(timeout) || timeout < 1 || timeout > 12e4 || !Number.isInteger(capacity) || capacity < 0 || capacity > 1e3 || !Number.isInteger(bytesLimit) || bytesLimit < 256 || bytesLimit > MAX_BYTES) throw fail("CONFIGURACAO_INVALIDA", "Limites de execu\xE7\xE3o inv\xE1lidos.");
328
+ const launch = options.criaProcesso ?? ((exe, args, config) => (0, import_node_child_process.spawn)(exe, args, { ...config, stdio: ["pipe", "pipe", "pipe"] }));
329
+ let runtimePromise, closed = false, current;
330
+ const queue = [];
331
+ async function execute(item) {
332
+ if (closed || item.signal?.aborted) throw fail("OPERACAO_CANCELADA", "Opera\xE7\xE3o cancelada antes da execu\xE7\xE3o.");
333
+ const runtime = await (runtimePromise ??= resolveRuntime(options.runtimeDirectory, contract));
334
+ if (closed || item.signal?.aborted) throw fail("OPERACAO_CANCELADA", "Opera\xE7\xE3o cancelada antes da execu\xE7\xE3o.");
335
+ await new Promise((done) => {
336
+ let stopError;
337
+ let child, finished = false, started = false, sending = false, total = 0, rest = Buffer.alloc(0), result;
338
+ let finishCurrent;
339
+ const doneCurrent = new Promise((r) => {
340
+ finishCurrent = r;
341
+ });
342
+ const uncertain = () => ["transmitir", "cancelar", "cartaCorrecao", "inutilizar"].includes(item.req.comando) && started || sending;
343
+ const finish = (error) => {
344
+ if (finished) return;
345
+ finished = true;
346
+ clearTimeout(timer);
347
+ item.signal?.removeEventListener("abort", abort);
348
+ item.bytes.fill(0);
349
+ if (current?.done === doneCurrent) current = void 0;
350
+ finishCurrent();
351
+ error ? item.reject(error) : item.resolve(result);
352
+ done();
353
+ };
354
+ const stop = (code, message) => {
355
+ if (finished || stopError) return;
356
+ stopError = fail(code, message, item.req, uncertain());
357
+ if (child?.pid) child.kill("SIGKILL");
358
+ else finish(stopError);
359
+ };
360
+ const abort = () => stop("OPERACAO_CANCELADA", "Opera\xE7\xE3o cancelada; confira a situa\xE7\xE3o fiscal quando o envio foi iniciado.");
361
+ const timer = setTimeout(() => stop("TIMEOUT_MOTOR", "O motor excedeu o prazo; consulte a situa\xE7\xE3o antes de transmitir novamente."), timeout);
362
+ current = { stop: () => stop("EMISSOR_FECHADO", "Emissor encerrado."), done: doneCurrent };
363
+ const env = {};
364
+ for (const key of ["PATH", "Path", "SystemRoot", "WINDIR", "TEMP", "TMP", "HOME", "LANG", "LC_ALL"]) if (process.env[key] !== void 0) env[key] = process.env[key];
365
+ if (process.platform === "linux") env.LD_LIBRARY_PATH = import_node_path.default.join(runtime.directory, "lib");
366
+ if (process.platform === "win32") {
367
+ const inheritedPath = env.Path ?? env.PATH ?? "";
368
+ delete env.Path;
369
+ env.PATH = import_node_path.default.join(runtime.directory, "lib") + ";" + runtime.directory + ";" + inheritedPath;
370
+ }
371
+ const modules = import_node_path.default.join(runtime.directory, "ossl-modules");
372
+ env.OPENSSL_MODULES = modules;
373
+ env.OPENSSL_CONF = import_node_path.default.join(runtime.directory, "openssl.cnf");
374
+ try {
375
+ child = launch(runtime.executable, ["--parent-pid", String(process.pid)], { cwd: runtime.directory, env, windowsHide: true, shell: false, stdio: ["pipe", "pipe", "pipe"] });
376
+ started = typeof child.pid === "number";
377
+ } catch {
378
+ finish(fail("FALHA_INICIAR_MOTOR", "N\xE3o foi poss\xEDvel iniciar o motor.", item.req));
379
+ return;
380
+ }
381
+ item.signal?.addEventListener("abort", abort, { once: true });
382
+ child.on("spawn", () => {
383
+ started = true;
384
+ });
385
+ child.on("error", () => finish(fail("FALHA_INICIAR_MOTOR", "N\xE3o foi poss\xEDvel iniciar o motor.", item.req, uncertain())));
386
+ child.stdin.on("error", () => stop("FALHA_PIPE", "N\xE3o foi poss\xEDvel comunicar com o motor."));
387
+ child.stderr.on("data", () => {
388
+ });
389
+ child.stdout.on("data", (chunk) => {
390
+ if (finished || stopError) return;
391
+ total += chunk.length;
392
+ if (total > bytesLimit) {
393
+ stop("RESPOSTA_EXCESSIVA", "Resposta do motor excede o limite.");
394
+ return;
395
+ }
396
+ rest = Buffer.concat([rest, chunk]);
397
+ let end;
398
+ while ((end = rest.indexOf(10)) >= 0) {
399
+ const line = rest.subarray(0, end);
400
+ rest = rest.subarray(end + 1);
401
+ if (!line.length) continue;
402
+ try {
403
+ const frame = JSON.parse(new import_node_util.TextDecoder("utf-8", { fatal: true }).decode(line));
404
+ if (!plain(frame) || frame.id !== item.req.id) throw Error();
405
+ if (frame.tipo === "envioIniciado") {
406
+ sending = true;
407
+ continue;
408
+ }
409
+ if (result || frame.versao !== 1 || frame.sourceRevision !== contract.sourceRevision || frame.contractHash !== contract.contractHash || typeof frame.sucesso !== "boolean" || !STATES.has(String(frame.estado))) throw Error();
410
+ if (frame.xmlBase64 !== void 0 && (typeof frame.xmlBase64 !== "string" || !frame.xmlBase64.length || Buffer.from(frame.xmlBase64, "base64").toString("base64") !== frame.xmlBase64)) throw Error();
411
+ if (frame.cStat !== void 0 && (!Number.isInteger(frame.cStat) || Number(frame.cStat) < 1 || Number(frame.cStat) > 9999)) throw Error();
412
+ result = frame;
413
+ } catch {
414
+ stop("RESPOSTA_INVALIDA", "O motor retornou uma resposta inv\xE1lida.");
415
+ return;
416
+ }
417
+ }
418
+ });
419
+ child.on("close", (code) => {
420
+ if (finished) return;
421
+ if (stopError) {
422
+ finish(stopError);
423
+ return;
424
+ }
425
+ if (code !== 0 || rest.length || !result) {
426
+ finish(fail("FALHA_MOTOR", "O motor encerrou sem resposta fiscal v\xE1lida.", item.req, uncertain()));
427
+ return;
428
+ }
429
+ finish();
430
+ });
431
+ child.stdin.end(item.bytes);
432
+ if (item.signal?.aborted) abort();
433
+ });
434
+ }
435
+ let busy = false;
436
+ async function next() {
437
+ if (busy) return;
438
+ const item = queue.shift();
439
+ if (!item) return;
440
+ busy = true;
441
+ item.signal?.removeEventListener("abort", item.abort);
442
+ try {
443
+ await execute(item);
444
+ } catch (e) {
445
+ item.bytes.fill(0);
446
+ item.reject(e);
447
+ } finally {
448
+ busy = false;
449
+ void next();
450
+ }
451
+ }
452
+ async function request(command, data, operation = {}) {
453
+ if (closed) throw fail("EMISSOR_FECHADO", "Emissor encerrado.");
454
+ if (operation.signal?.aborted) throw fail("OPERACAO_CANCELADA", "Opera\xE7\xE3o cancelada antes da execu\xE7\xE3o.");
455
+ if (["assinar", "transmitir", "consultar", "cancelar", "cartaCorrecao", "inutilizar"].includes(command) && !certificate) throw fail("CERTIFICADO_AUSENTE", "A opera\xE7\xE3o exige um certificado A1.");
456
+ if (command === "gerarXml") options.validaDocumento?.(data.documento);
457
+ const config = { ...cfg };
458
+ if (certificate) {
459
+ let pfx;
460
+ try {
461
+ pfx = certificate.pfx ?? await (0, import_promises.readFile)(certificate.arquivo);
462
+ } catch {
463
+ throw fail("CERTIFICADO_AUSENTE", "N\xE3o foi poss\xEDvel ler o A1 configurado.");
464
+ }
465
+ if (pfx.length > 2 * 1024 * 1024) throw fail("CERTIFICADO_EXCESSIVO", "Certificado excede o limite.");
466
+ config.certificado = { pfxBase64: pfx.toString("base64"), senha: certificate.senha };
467
+ }
468
+ let bytes, req;
469
+ try {
470
+ bytes = Buffer.from(JSON.stringify({ versao: 1, id: (0, import_node_crypto.randomUUID)(), ...contract, comando: command, config, ...data }) + "\n", "utf8");
471
+ if (bytes.length > bytesLimit) throw Error();
472
+ req = JSON.parse(bytes.toString("utf8"));
473
+ } catch {
474
+ throw fail("REQUISICAO_INVALIDA", "Dados da opera\xE7\xE3o inv\xE1lidos ou acima do limite.");
475
+ }
476
+ return new Promise((resolve, reject) => {
477
+ if (closed) {
478
+ bytes.fill(0);
479
+ reject(fail("EMISSOR_FECHADO", "Emissor encerrado."));
480
+ return;
481
+ }
482
+ if (busy && queue.length >= capacity) {
483
+ bytes.fill(0);
484
+ reject(fail("FILA_CHEIA", "A fila fiscal est\xE1 cheia."));
485
+ return;
486
+ }
487
+ const item = { req, bytes, signal: operation.signal, resolve, reject };
488
+ item.abort = () => {
489
+ const i = queue.indexOf(item);
490
+ if (i >= 0) {
491
+ queue.splice(i, 1);
492
+ bytes.fill(0);
493
+ operation.signal?.removeEventListener("abort", item.abort);
494
+ reject(fail("OPERACAO_CANCELADA", "Opera\xE7\xE3o cancelada antes da execu\xE7\xE3o."));
495
+ }
496
+ };
497
+ operation.signal?.addEventListener("abort", item.abort, { once: true });
498
+ queue.push(item);
499
+ if (operation.signal?.aborted) item.abort();
500
+ void next();
501
+ });
502
+ }
503
+ const xmlData = (xml) => {
504
+ if (typeof xml !== "string" || !xml.trim() || Buffer.byteLength(xml, "utf8") > 2 * 1024 * 1024) throw fail("XML_INVALIDO", "XML vazio ou acima do limite.");
505
+ return { xmlBase64: Buffer.from(xml, "utf8").toString("base64") };
506
+ };
507
+ const checkKey = (key) => {
508
+ if (!/^\d{44}$/.test(key)) throw fail("CHAVE_INVALIDA", "Chave fiscal inv\xE1lida.");
509
+ };
510
+ const reason = (value) => {
511
+ if (typeof value !== "string" || value.length < 15 || value.length > 255) throw fail("JUSTIFICATIVA_INVALIDA", "Justificativa deve ter de 15 a 255 caracteres.");
512
+ };
513
+ return {
514
+ gerarXml: (documento, op) => request("gerarXml", { documento }, op),
515
+ validar: (xml, op) => request("validar", xmlData(xml), op),
516
+ assinar: (xml, op) => request("assinar", xmlData(xml), op),
517
+ transmitir: (xml, op) => request("transmitir", xmlData(xml), op),
518
+ consultar: (consulta, op) => {
519
+ checkKey(consulta.chave);
520
+ if (consulta.recibo && !/^\d{15}$/.test(consulta.recibo)) throw fail("RECIBO_INVALIDO", "Recibo inv\xE1lido.");
521
+ return request("consultar", consulta, op);
522
+ },
523
+ cancelar: (data, op) => {
524
+ checkKey(data.chave);
525
+ reason(data.justificativa);
526
+ if (!/^\d{15}$/.test(data.protocolo)) throw fail("PROTOCOLO_INVALIDO", "Protocolo inv\xE1lido.");
527
+ return request("cancelar", data, op);
528
+ },
529
+ cartaCorrecao: (data, op) => {
530
+ if (cfg.modelo !== 55) throw fail("OPERACAO_NAO_SUPORTADA", "Carta de corre\xE7\xE3o exige NF-e modelo 55.");
531
+ checkKey(data.chave);
532
+ if (typeof data.correcao !== "string" || data.correcao.length < 15 || data.correcao.length > 1e3 || !Number.isInteger(data.sequenciaEvento ?? 1) || (data.sequenciaEvento ?? 1) < 1 || (data.sequenciaEvento ?? 1) > 20) throw fail("CORRECAO_INVALIDA", "Dados da carta de corre\xE7\xE3o inv\xE1lidos.");
533
+ return request("cartaCorrecao", { ...data, sequenciaEvento: data.sequenciaEvento ?? 1 }, op);
534
+ },
535
+ inutilizar: (data, op) => {
536
+ reason(data.justificativa);
537
+ if (!Number.isInteger(data.ano) || data.ano < 0 || data.ano > 99 || !Number.isInteger(data.serie) || data.serie < 0 || data.serie > 999 || !Number.isInteger(data.numeroInicial) || data.numeroInicial < 1 || !Number.isInteger(data.numeroFinal) || data.numeroFinal < data.numeroInicial || data.numeroFinal > 999999999) throw fail("INUTILIZACAO_INVALIDA", "Faixa de inutiliza\xE7\xE3o inv\xE1lida.");
538
+ return request("inutilizar", { inutilizacao: { ano: data.ano, serie: data.serie, numeroInicial: data.numeroInicial, numeroFinal: data.numeroFinal }, justificativa: data.justificativa }, op);
539
+ },
540
+ async fechar() {
541
+ if (closed) return;
542
+ closed = true;
543
+ for (const item of queue.splice(0)) {
544
+ item.signal?.removeEventListener("abort", item.abort);
545
+ item.bytes.fill(0);
546
+ item.reject(fail("EMISSOR_FECHADO", "Emissor encerrado."));
547
+ }
548
+ const running = current;
549
+ running?.stop();
550
+ if (running) await running.done;
551
+ certificate?.pfx?.fill(0);
552
+ }
553
+ };
554
+ }
555
+
556
+ // generated/acbr/models.ts
557
+ var ACBR_CONTRACT = { "sourceRevision": 48590, "contractHash": "e5a497cefe8e0e350a30da5cc04e88b35c38a98535893d52f878890260d1346d" };
558
+ var SOURCE_REVISION = ACBR_CONTRACT.sourceRevision;
559
+ var CONTRACT_HASH = ACBR_CONTRACT.contractHash;
560
+ var TACBrProcessoEmissao = Object.freeze({ "peAplicativoContribuinte": "peAplicativoContribuinte", "peAvulsaFisco": "peAvulsaFisco", "peAvulsaContribuinte": "peAvulsaContribuinte", "peContribuinteAplicativoFisco": "peContribuinteAplicativoFisco", "peProvedorAssinaturaAutorizacao": "peProvedorAssinaturaAutorizacao" });
561
+ var TACBrTipoAmbiente = Object.freeze({ "taProducao": "taProducao", "taHomologacao": "taHomologacao" });
562
+ var TACBrTipoEmissao = Object.freeze({ "teNormal": "teNormal", "teContingencia": "teContingencia", "teSCAN": "teSCAN", "teDPEC": "teDPEC", "teFSDA": "teFSDA", "teSVCAN": "teSVCAN", "teSVCRS": "teSVCRS", "teSVCSP": "teSVCSP", "teOffLine": "teOffLine" });
563
+ var TACBrTipoImpressao = Object.freeze({ "tiSemGeracao": "tiSemGeracao", "tiRetrato": "tiRetrato", "tiPaisagem": "tiPaisagem", "tiSimplificado": "tiSimplificado", "tiNFCe": "tiNFCe", "tiMsgEletronica": "tiMsgEletronica", "tiSimplificadoTipo2": "tiSimplificadoTipo2" });
564
+ var TAdiCollection = class extends Array {
565
+ New(input = {}) {
566
+ const item = new TAdiCollectionItem(input);
567
+ this.push(item);
568
+ return item;
569
+ }
570
+ };
571
+ var TAdiCollectionItem = class {
572
+ "cFabricante";
573
+ "nAdicao";
574
+ "nDraw";
575
+ "nSeqAdi";
576
+ "vDescDI";
577
+ constructor(input = {}) {
578
+ validateModel("TAdiCollectionItem", input);
579
+ if (input["cFabricante"] !== void 0) this["cFabricante"] = input["cFabricante"];
580
+ if (input["nAdicao"] !== void 0) this["nAdicao"] = input["nAdicao"];
581
+ if (input["nDraw"] !== void 0) this["nDraw"] = input["nDraw"];
582
+ if (input["nSeqAdi"] !== void 0) this["nSeqAdi"] = input["nSeqAdi"];
583
+ if (input["vDescDI"] !== void 0) this["vDescDI"] = input["vDescDI"];
584
+ }
585
+ };
586
+ var Tagropecuario = class {
587
+ "defensivo" = new TdefensivoCollection();
588
+ "guiaTransito" = new TguiaTransito();
589
+ constructor(input = {}) {
590
+ validateModel("Tagropecuario", input);
591
+ if (input["defensivo"] !== void 0) this["defensivo"] = Object.assign(new TdefensivoCollection(), input["defensivo"].map((v) => new TdefensivoCollectionItem(v)));
592
+ if (input["guiaTransito"] !== void 0) this["guiaTransito"] = new TguiaTransito(input["guiaTransito"]);
593
+ }
594
+ };
595
+ var TArmaCollection = class extends Array {
596
+ New(input = {}) {
597
+ const item = new TArmaCollectionItem(input);
598
+ this.push(item);
599
+ return item;
600
+ }
601
+ };
602
+ var TArmaCollectionItem = class {
603
+ "descr";
604
+ "nCano";
605
+ "nSerie";
606
+ /** Pascal streaming default: taUsoPermitido. Omission preserves the native constructor. */
607
+ "tpArma";
608
+ constructor(input = {}) {
609
+ validateModel("TArmaCollectionItem", input);
610
+ if (input["descr"] !== void 0) this["descr"] = input["descr"];
611
+ if (input["nCano"] !== void 0) this["nCano"] = input["nCano"];
612
+ if (input["nSerie"] !== void 0) this["nSerie"] = input["nSerie"];
613
+ if (input["tpArma"] !== void 0) this["tpArma"] = input["tpArma"];
614
+ }
615
+ };
616
+ var TautXMLCollection = class extends Array {
617
+ New(input = {}) {
618
+ const item = new TautXMLCollectionItem(input);
619
+ this.push(item);
620
+ return item;
621
+ }
622
+ };
623
+ var TautXMLCollectionItem = class {
624
+ "CNPJCPF";
625
+ constructor(input = {}) {
626
+ validateModel("TautXMLCollectionItem", input);
627
+ if (input["CNPJCPF"] !== void 0) this["CNPJCPF"] = input["CNPJCPF"];
628
+ }
629
+ };
630
+ var TAvulsa = class {
631
+ "CNPJ";
632
+ "dEmi";
633
+ "dPag";
634
+ "fone";
635
+ "matr";
636
+ "nDAR";
637
+ "repEmi";
638
+ "UF";
639
+ "vDAR";
640
+ "xAgente";
641
+ "xOrgao";
642
+ constructor(input = {}) {
643
+ validateModel("TAvulsa", input);
644
+ if (input["CNPJ"] !== void 0) this["CNPJ"] = input["CNPJ"];
645
+ if (input["dEmi"] !== void 0) this["dEmi"] = input["dEmi"];
646
+ if (input["dPag"] !== void 0) this["dPag"] = input["dPag"];
647
+ if (input["fone"] !== void 0) this["fone"] = input["fone"];
648
+ if (input["matr"] !== void 0) this["matr"] = input["matr"];
649
+ if (input["nDAR"] !== void 0) this["nDAR"] = input["nDAR"];
650
+ if (input["repEmi"] !== void 0) this["repEmi"] = input["repEmi"];
651
+ if (input["UF"] !== void 0) this["UF"] = input["UF"];
652
+ if (input["vDAR"] !== void 0) this["vDAR"] = input["vDAR"];
653
+ if (input["xAgente"] !== void 0) this["xAgente"] = input["xAgente"];
654
+ if (input["xOrgao"] !== void 0) this["xOrgao"] = input["xOrgao"];
655
+ }
656
+ };
657
+ var Tcana = class {
658
+ "deduc" = new TDeducCollection();
659
+ "fordia" = new TForDiaCollection();
660
+ "qTotAnt";
661
+ "qTotGer";
662
+ "qTotMes";
663
+ "ref";
664
+ "safra";
665
+ "vFor";
666
+ "vLiqFor";
667
+ "vTotDed";
668
+ constructor(input = {}) {
669
+ validateModel("Tcana", input);
670
+ if (input["deduc"] !== void 0) this["deduc"] = Object.assign(new TDeducCollection(), input["deduc"].map((v) => new TDeducCollectionItem(v)));
671
+ if (input["fordia"] !== void 0) this["fordia"] = Object.assign(new TForDiaCollection(), input["fordia"].map((v) => new TForDiaCollectionItem(v)));
672
+ if (input["qTotAnt"] !== void 0) this["qTotAnt"] = input["qTotAnt"];
673
+ if (input["qTotGer"] !== void 0) this["qTotGer"] = input["qTotGer"];
674
+ if (input["qTotMes"] !== void 0) this["qTotMes"] = input["qTotMes"];
675
+ if (input["ref"] !== void 0) this["ref"] = input["ref"];
676
+ if (input["safra"] !== void 0) this["safra"] = input["safra"];
677
+ if (input["vFor"] !== void 0) this["vFor"] = input["vFor"];
678
+ if (input["vLiqFor"] !== void 0) this["vLiqFor"] = input["vLiqFor"];
679
+ if (input["vTotDed"] !== void 0) this["vTotDed"] = input["vTotDed"];
680
+ }
681
+ };
682
+ var TcCredPres = Object.freeze({ "cpNenhum": "cpNenhum", "cp01": "cp01", "cp02": "cp02", "cp03": "cp03", "cp04": "cp04", "cp05": "cp05", "cp06": "cp06", "cp07": "cp07", "cp08": "cp08", "cp09": "cp09", "cp10": "cp10", "cp11": "cp11", "cp12": "cp12", "cp13": "cp13" });
683
+ var TCIDE = class {
684
+ "qBCProd";
685
+ "vAliqProd";
686
+ "vCIDE";
687
+ constructor(input = {}) {
688
+ validateModel("TCIDE", input);
689
+ if (input["qBCProd"] !== void 0) this["qBCProd"] = input["qBCProd"];
690
+ if (input["vAliqProd"] !== void 0) this["vAliqProd"] = input["vAliqProd"];
691
+ if (input["vCIDE"] !== void 0) this["vCIDE"] = input["vCIDE"];
692
+ }
693
+ };
694
+ var TCobr = class {
695
+ "Dup" = new TDupCollection();
696
+ "Fat" = new TFat();
697
+ constructor(input = {}) {
698
+ validateModel("TCobr", input);
699
+ if (input["Dup"] !== void 0) this["Dup"] = Object.assign(new TDupCollection(), input["Dup"].map((v) => new TDupCollectionItem(v)));
700
+ if (input["Fat"] !== void 0) this["Fat"] = new TFat(input["Fat"]);
701
+ }
702
+ };
703
+ var TCOFINS = class {
704
+ /** Pascal streaming default: cof01. Omission preserves the native constructor. */
705
+ "CST";
706
+ "pCOFINS";
707
+ "qBCProd";
708
+ "vAliqProd";
709
+ "vBC";
710
+ "vBCProd";
711
+ "vCOFINS";
712
+ constructor(input = {}) {
713
+ validateModel("TCOFINS", input);
714
+ if (input["CST"] !== void 0) this["CST"] = input["CST"];
715
+ if (input["pCOFINS"] !== void 0) this["pCOFINS"] = input["pCOFINS"];
716
+ if (input["qBCProd"] !== void 0) this["qBCProd"] = input["qBCProd"];
717
+ if (input["vAliqProd"] !== void 0) this["vAliqProd"] = input["vAliqProd"];
718
+ if (input["vBC"] !== void 0) this["vBC"] = input["vBC"];
719
+ if (input["vBCProd"] !== void 0) this["vBCProd"] = input["vBCProd"];
720
+ if (input["vCOFINS"] !== void 0) this["vCOFINS"] = input["vCOFINS"];
721
+ }
722
+ };
723
+ var TCOFINSST = class {
724
+ "indSomaCOFINSST";
725
+ "pCOFINS";
726
+ "qBCProd";
727
+ "vAliqProd";
728
+ "vBC";
729
+ "vCOFINS";
730
+ constructor(input = {}) {
731
+ validateModel("TCOFINSST", input);
732
+ if (input["indSomaCOFINSST"] !== void 0) this["indSomaCOFINSST"] = input["indSomaCOFINSST"];
733
+ if (input["pCOFINS"] !== void 0) this["pCOFINS"] = input["pCOFINS"];
734
+ if (input["qBCProd"] !== void 0) this["qBCProd"] = input["qBCProd"];
735
+ if (input["vAliqProd"] !== void 0) this["vAliqProd"] = input["vAliqProd"];
736
+ if (input["vBC"] !== void 0) this["vBC"] = input["vBC"];
737
+ if (input["vCOFINS"] !== void 0) this["vCOFINS"] = input["vCOFINS"];
738
+ }
739
+ };
740
+ var TComb = class {
741
+ "CIDE" = new TCIDE();
742
+ "CODIF";
743
+ "cProdANP";
744
+ "descANP";
745
+ "encerrante" = new Tencerrante();
746
+ "ICMS" = new TICMSComb();
747
+ "ICMSCons" = new TICMSCons();
748
+ "ICMSInter" = new TICMSInter();
749
+ "origComb" = new TorigCombCollection();
750
+ "pBio";
751
+ "pGLP";
752
+ "pGNi";
753
+ "pGNn";
754
+ "pMixGN";
755
+ "qTemp";
756
+ "UFcons";
757
+ "vPart";
758
+ constructor(input = {}) {
759
+ validateModel("TComb", input);
760
+ if (input["CIDE"] !== void 0) this["CIDE"] = new TCIDE(input["CIDE"]);
761
+ if (input["CODIF"] !== void 0) this["CODIF"] = input["CODIF"];
762
+ if (input["cProdANP"] !== void 0) this["cProdANP"] = input["cProdANP"];
763
+ if (input["descANP"] !== void 0) this["descANP"] = input["descANP"];
764
+ if (input["encerrante"] !== void 0) this["encerrante"] = new Tencerrante(input["encerrante"]);
765
+ if (input["ICMS"] !== void 0) this["ICMS"] = new TICMSComb(input["ICMS"]);
766
+ if (input["ICMSCons"] !== void 0) this["ICMSCons"] = new TICMSCons(input["ICMSCons"]);
767
+ if (input["ICMSInter"] !== void 0) this["ICMSInter"] = new TICMSInter(input["ICMSInter"]);
768
+ if (input["origComb"] !== void 0) this["origComb"] = Object.assign(new TorigCombCollection(), input["origComb"].map((v) => new TorigCombCollectionItem(v)));
769
+ if (input["pBio"] !== void 0) this["pBio"] = input["pBio"];
770
+ if (input["pGLP"] !== void 0) this["pGLP"] = input["pGLP"];
771
+ if (input["pGNi"] !== void 0) this["pGNi"] = input["pGNi"];
772
+ if (input["pGNn"] !== void 0) this["pGNn"] = input["pGNn"];
773
+ if (input["pMixGN"] !== void 0) this["pMixGN"] = input["pMixGN"];
774
+ if (input["qTemp"] !== void 0) this["qTemp"] = input["qTemp"];
775
+ if (input["UFcons"] !== void 0) this["UFcons"] = input["UFcons"];
776
+ if (input["vPart"] !== void 0) this["vPart"] = input["vPart"];
777
+ }
778
+ };
779
+ var TCompra = class {
780
+ "xCont";
781
+ "xNEmp";
782
+ "xPed";
783
+ constructor(input = {}) {
784
+ validateModel("TCompra", input);
785
+ if (input["xCont"] !== void 0) this["xCont"] = input["xCont"];
786
+ if (input["xNEmp"] !== void 0) this["xNEmp"] = input["xNEmp"];
787
+ if (input["xPed"] !== void 0) this["xPed"] = input["xPed"];
788
+ }
789
+ };
790
+ var TCredPresIBSZFM = class {
791
+ "competApur";
792
+ "tpCredPresIBSZFM";
793
+ "vCredPresIBSZFM";
794
+ constructor(input = {}) {
795
+ validateModel("TCredPresIBSZFM", input);
796
+ if (input["competApur"] !== void 0) this["competApur"] = input["competApur"];
797
+ if (input["tpCredPresIBSZFM"] !== void 0) this["tpCredPresIBSZFM"] = input["tpCredPresIBSZFM"];
798
+ if (input["vCredPresIBSZFM"] !== void 0) this["vCredPresIBSZFM"] = input["vCredPresIBSZFM"];
799
+ }
800
+ };
801
+ var TCredPresumidoCollection = class extends Array {
802
+ New(input = {}) {
803
+ const item = new TCredPresumidoCollectionItem(input);
804
+ this.push(item);
805
+ return item;
806
+ }
807
+ };
808
+ var TCredPresumidoCollectionItem = class {
809
+ "cCredPresumido";
810
+ "pCredPresumido";
811
+ "vCredPresumido";
812
+ constructor(input = {}) {
813
+ validateModel("TCredPresumidoCollectionItem", input);
814
+ if (input["cCredPresumido"] !== void 0) this["cCredPresumido"] = input["cCredPresumido"];
815
+ if (input["pCredPresumido"] !== void 0) this["pCredPresumido"] = input["pCredPresumido"];
816
+ if (input["vCredPresumido"] !== void 0) this["vCredPresumido"] = input["vCredPresumido"];
817
+ }
818
+ };
819
+ var TCSOSNIcms = Object.freeze({ "csosnVazio": "csosnVazio", "csosn101": "csosn101", "csosn102": "csosn102", "csosn103": "csosn103", "csosn201": "csosn201", "csosn202": "csosn202", "csosn203": "csosn203", "csosn300": "csosn300", "csosn400": "csosn400", "csosn500": "csosn500", "csosn900": "csosn900" });
820
+ var TCSTCofins = Object.freeze({ "cof01": "cof01", "cof02": "cof02", "cof03": "cof03", "cof04": "cof04", "cof05": "cof05", "cof06": "cof06", "cof07": "cof07", "cof08": "cof08", "cof09": "cof09", "cof49": "cof49", "cof50": "cof50", "cof51": "cof51", "cof52": "cof52", "cof53": "cof53", "cof54": "cof54", "cof55": "cof55", "cof56": "cof56", "cof60": "cof60", "cof61": "cof61", "cof62": "cof62", "cof63": "cof63", "cof64": "cof64", "cof65": "cof65", "cof66": "cof66", "cof67": "cof67", "cof70": "cof70", "cof71": "cof71", "cof72": "cof72", "cof73": "cof73", "cof74": "cof74", "cof75": "cof75", "cof98": "cof98", "cof99": "cof99" });
821
+ var TCSTIBSCBS = Object.freeze({ "cstNenhum": "cstNenhum", "cst000": "cst000", "cst010": "cst010", "cst011": "cst011", "cst200": "cst200", "cst220": "cst220", "cst221": "cst221", "cst222": "cst222", "cst400": "cst400", "cst410": "cst410", "cst510": "cst510", "cst515": "cst515", "cst550": "cst550", "cst620": "cst620", "cst800": "cst800", "cst810": "cst810", "cst811": "cst811", "cst820": "cst820", "cst830": "cst830" });
822
+ var TCSTIcms = Object.freeze({ "cstVazio": "cstVazio", "cst00": "cst00", "cst10": "cst10", "cst20": "cst20", "cst30": "cst30", "cst40": "cst40", "cst41": "cst41", "cst45": "cst45", "cst50": "cst50", "cst51": "cst51", "cst60": "cst60", "cst70": "cst70", "cst80": "cst80", "cst81": "cst81", "cst90": "cst90", "cstICMSOutraUF": "cstICMSOutraUF", "cstICMSSN": "cstICMSSN", "cstPart10": "cstPart10", "cstPart90": "cstPart90", "cstRep41": "cstRep41", "cstRep60": "cstRep60", "cst02": "cst02", "cst15": "cst15", "cst53": "cst53", "cst61": "cst61", "cst01": "cst01", "cst12": "cst12", "cst13": "cst13", "cst14": "cst14", "cst21": "cst21", "cst72": "cst72", "cst73": "cst73", "cst74": "cst74", "cstPart20": "cstPart20" });
823
+ var TCSTPis = Object.freeze({ "pis01": "pis01", "pis02": "pis02", "pis03": "pis03", "pis04": "pis04", "pis05": "pis05", "pis06": "pis06", "pis07": "pis07", "pis08": "pis08", "pis09": "pis09", "pis49": "pis49", "pis50": "pis50", "pis51": "pis51", "pis52": "pis52", "pis53": "pis53", "pis54": "pis54", "pis55": "pis55", "pis56": "pis56", "pis60": "pis60", "pis61": "pis61", "pis62": "pis62", "pis63": "pis63", "pis64": "pis64", "pis65": "pis65", "pis66": "pis66", "pis67": "pis67", "pis70": "pis70", "pis71": "pis71", "pis72": "pis72", "pis73": "pis73", "pis74": "pis74", "pis75": "pis75", "pis98": "pis98", "pis99": "pis99" });
824
+ var TDeducCollection = class extends Array {
825
+ New(input = {}) {
826
+ const item = new TDeducCollectionItem(input);
827
+ this.push(item);
828
+ return item;
829
+ }
830
+ };
831
+ var TDeducCollectionItem = class {
832
+ "vDed";
833
+ "xDed";
834
+ constructor(input = {}) {
835
+ validateModel("TDeducCollectionItem", input);
836
+ if (input["vDed"] !== void 0) this["vDed"] = input["vDed"];
837
+ if (input["xDed"] !== void 0) this["xDed"] = input["xDed"];
838
+ }
839
+ };
840
+ var TdefensivoCollection = class extends Array {
841
+ New(input = {}) {
842
+ const item = new TdefensivoCollectionItem(input);
843
+ this.push(item);
844
+ return item;
845
+ }
846
+ };
847
+ var TdefensivoCollectionItem = class {
848
+ "CPFRespTec";
849
+ "nReceituario";
850
+ constructor(input = {}) {
851
+ validateModel("TdefensivoCollectionItem", input);
852
+ if (input["CPFRespTec"] !== void 0) this["CPFRespTec"] = input["CPFRespTec"];
853
+ if (input["nReceituario"] !== void 0) this["nReceituario"] = input["nReceituario"];
854
+ }
855
+ };
856
+ var TDest = class {
857
+ "CNPJCPF";
858
+ "Email";
859
+ "EnderDest" = new TEnderDest();
860
+ "idEstrangeiro";
861
+ "IE";
862
+ "IM";
863
+ "indIEDest";
864
+ "ISUF";
865
+ "xNome";
866
+ constructor(input = {}) {
867
+ validateModel("TDest", input);
868
+ if (input["CNPJCPF"] !== void 0) this["CNPJCPF"] = input["CNPJCPF"];
869
+ if (input["Email"] !== void 0) this["Email"] = input["Email"];
870
+ if (input["EnderDest"] !== void 0) this["EnderDest"] = new TEnderDest(input["EnderDest"]);
871
+ if (input["idEstrangeiro"] !== void 0) this["idEstrangeiro"] = input["idEstrangeiro"];
872
+ if (input["IE"] !== void 0) this["IE"] = input["IE"];
873
+ if (input["IM"] !== void 0) this["IM"] = input["IM"];
874
+ if (input["indIEDest"] !== void 0) this["indIEDest"] = input["indIEDest"];
875
+ if (input["ISUF"] !== void 0) this["ISUF"] = input["ISUF"];
876
+ if (input["xNome"] !== void 0) this["xNome"] = input["xNome"];
877
+ }
878
+ };
879
+ var TDetCollection = class extends Array {
880
+ New(input = {}) {
881
+ const item = new TDetCollectionItem(input);
882
+ this.push(item);
883
+ return item;
884
+ }
885
+ };
886
+ var TDetCollectionItem = class {
887
+ "DFeReferenciado" = new TDFeReferenciado();
888
+ "Imposto" = new TImposto();
889
+ "infAdProd";
890
+ "obsCont" = new TobsItem();
891
+ "obsFisco" = new TobsItem();
892
+ "pDevol";
893
+ "Prod" = new TProd();
894
+ "vIPIDevol";
895
+ "vItem";
896
+ constructor(input = {}) {
897
+ validateModel("TDetCollectionItem", input);
898
+ if (input["DFeReferenciado"] !== void 0) this["DFeReferenciado"] = new TDFeReferenciado(input["DFeReferenciado"]);
899
+ if (input["Imposto"] !== void 0) this["Imposto"] = new TImposto(input["Imposto"]);
900
+ if (input["infAdProd"] !== void 0) this["infAdProd"] = input["infAdProd"];
901
+ if (input["obsCont"] !== void 0) this["obsCont"] = new TobsItem(input["obsCont"]);
902
+ if (input["obsFisco"] !== void 0) this["obsFisco"] = new TobsItem(input["obsFisco"]);
903
+ if (input["pDevol"] !== void 0) this["pDevol"] = input["pDevol"];
904
+ if (input["Prod"] !== void 0) this["Prod"] = new TProd(input["Prod"]);
905
+ if (input["vIPIDevol"] !== void 0) this["vIPIDevol"] = input["vIPIDevol"];
906
+ if (input["vItem"] !== void 0) this["vItem"] = input["vItem"];
907
+ }
908
+ };
909
+ var TdetExportCollection = class extends Array {
910
+ New(input = {}) {
911
+ const item = new TdetExportCollectionItem(input);
912
+ this.push(item);
913
+ return item;
914
+ }
915
+ };
916
+ var TdetExportCollectionItem = class {
917
+ "chNFe";
918
+ "nDraw";
919
+ "nRE";
920
+ "qExport";
921
+ constructor(input = {}) {
922
+ validateModel("TdetExportCollectionItem", input);
923
+ if (input["chNFe"] !== void 0) this["chNFe"] = input["chNFe"];
924
+ if (input["nDraw"] !== void 0) this["nDraw"] = input["nDraw"];
925
+ if (input["nRE"] !== void 0) this["nRE"] = input["nRE"];
926
+ if (input["qExport"] !== void 0) this["qExport"] = input["qExport"];
927
+ }
928
+ };
929
+ var TDFErefCollection = class extends Array {
930
+ New(input = {}) {
931
+ const item = new TDFErefCollectionItem(input);
932
+ this.push(item);
933
+ return item;
934
+ }
935
+ };
936
+ var TDFErefCollectionItem = class {
937
+ "refDFeChave";
938
+ constructor(input = {}) {
939
+ validateModel("TDFErefCollectionItem", input);
940
+ if (input["refDFeChave"] !== void 0) this["refDFeChave"] = input["refDFeChave"];
941
+ }
942
+ };
943
+ var TDFeReferenciado = class {
944
+ "chaveAcesso";
945
+ "nItem";
946
+ constructor(input = {}) {
947
+ validateModel("TDFeReferenciado", input);
948
+ if (input["chaveAcesso"] !== void 0) this["chaveAcesso"] = input["chaveAcesso"];
949
+ if (input["nItem"] !== void 0) this["nItem"] = input["nItem"];
950
+ }
951
+ };
952
+ var TDICollection = class extends Array {
953
+ New(input = {}) {
954
+ const item = new TDICollectionItem(input);
955
+ this.push(item);
956
+ return item;
957
+ }
958
+ };
959
+ var TDICollectionItem = class {
960
+ "adi" = new TAdiCollection();
961
+ "cExportador";
962
+ "CNPJ";
963
+ "dDesemb";
964
+ "dDi";
965
+ "nDi";
966
+ "tpIntermedio";
967
+ "tpViaTransp";
968
+ "UFDesemb";
969
+ "UFTerceiro";
970
+ "vAFRMM";
971
+ "xLocDesemb";
972
+ constructor(input = {}) {
973
+ validateModel("TDICollectionItem", input);
974
+ if (input["adi"] !== void 0) this["adi"] = Object.assign(new TAdiCollection(), input["adi"].map((v) => new TAdiCollectionItem(v)));
975
+ if (input["cExportador"] !== void 0) this["cExportador"] = input["cExportador"];
976
+ if (input["CNPJ"] !== void 0) this["CNPJ"] = input["CNPJ"];
977
+ if (input["dDesemb"] !== void 0) this["dDesemb"] = input["dDesemb"];
978
+ if (input["dDi"] !== void 0) this["dDi"] = input["dDi"];
979
+ if (input["nDi"] !== void 0) this["nDi"] = input["nDi"];
980
+ if (input["tpIntermedio"] !== void 0) this["tpIntermedio"] = input["tpIntermedio"];
981
+ if (input["tpViaTransp"] !== void 0) this["tpViaTransp"] = input["tpViaTransp"];
982
+ if (input["UFDesemb"] !== void 0) this["UFDesemb"] = input["UFDesemb"];
983
+ if (input["UFTerceiro"] !== void 0) this["UFTerceiro"] = input["UFTerceiro"];
984
+ if (input["vAFRMM"] !== void 0) this["vAFRMM"] = input["vAFRMM"];
985
+ if (input["xLocDesemb"] !== void 0) this["xLocDesemb"] = input["xLocDesemb"];
986
+ }
987
+ };
988
+ var TDupCollection = class extends Array {
989
+ New(input = {}) {
990
+ const item = new TDupCollectionItem(input);
991
+ this.push(item);
992
+ return item;
993
+ }
994
+ };
995
+ var TDupCollectionItem = class {
996
+ "dVenc";
997
+ "nDup";
998
+ "vDup";
999
+ constructor(input = {}) {
1000
+ validateModel("TDupCollectionItem", input);
1001
+ if (input["dVenc"] !== void 0) this["dVenc"] = input["dVenc"];
1002
+ if (input["nDup"] !== void 0) this["nDup"] = input["nDup"];
1003
+ if (input["vDup"] !== void 0) this["vDup"] = input["vDup"];
1004
+ }
1005
+ };
1006
+ var TEmit = class {
1007
+ "CNAE";
1008
+ "CNPJCPF";
1009
+ "CRT";
1010
+ "EnderEmit" = new TenderEmit();
1011
+ "IE";
1012
+ "IEST";
1013
+ "IM";
1014
+ "ISUFEmit";
1015
+ "xFant";
1016
+ "xNome";
1017
+ constructor(input = {}) {
1018
+ validateModel("TEmit", input);
1019
+ if (input["CNAE"] !== void 0) this["CNAE"] = input["CNAE"];
1020
+ if (input["CNPJCPF"] !== void 0) this["CNPJCPF"] = input["CNPJCPF"];
1021
+ if (input["CRT"] !== void 0) this["CRT"] = input["CRT"];
1022
+ if (input["EnderEmit"] !== void 0) this["EnderEmit"] = new TenderEmit(input["EnderEmit"]);
1023
+ if (input["IE"] !== void 0) this["IE"] = input["IE"];
1024
+ if (input["IEST"] !== void 0) this["IEST"] = input["IEST"];
1025
+ if (input["IM"] !== void 0) this["IM"] = input["IM"];
1026
+ if (input["ISUFEmit"] !== void 0) this["ISUFEmit"] = input["ISUFEmit"];
1027
+ if (input["xFant"] !== void 0) this["xFant"] = input["xFant"];
1028
+ if (input["xNome"] !== void 0) this["xNome"] = input["xNome"];
1029
+ }
1030
+ };
1031
+ var Tencerrante = class {
1032
+ "nBico";
1033
+ "nBomba";
1034
+ "nTanque";
1035
+ "vEncFin";
1036
+ "vEncIni";
1037
+ constructor(input = {}) {
1038
+ validateModel("Tencerrante", input);
1039
+ if (input["nBico"] !== void 0) this["nBico"] = input["nBico"];
1040
+ if (input["nBomba"] !== void 0) this["nBomba"] = input["nBomba"];
1041
+ if (input["nTanque"] !== void 0) this["nTanque"] = input["nTanque"];
1042
+ if (input["vEncFin"] !== void 0) this["vEncFin"] = input["vEncFin"];
1043
+ if (input["vEncIni"] !== void 0) this["vEncIni"] = input["vEncIni"];
1044
+ }
1045
+ };
1046
+ var TEnderDest = class {
1047
+ "CEP";
1048
+ "cMun";
1049
+ "cPais";
1050
+ "fone";
1051
+ "nro";
1052
+ "UF";
1053
+ "xBairro";
1054
+ "xCpl";
1055
+ "xLgr";
1056
+ "xMun";
1057
+ "xPais";
1058
+ constructor(input = {}) {
1059
+ validateModel("TEnderDest", input);
1060
+ if (input["CEP"] !== void 0) this["CEP"] = input["CEP"];
1061
+ if (input["cMun"] !== void 0) this["cMun"] = input["cMun"];
1062
+ if (input["cPais"] !== void 0) this["cPais"] = input["cPais"];
1063
+ if (input["fone"] !== void 0) this["fone"] = input["fone"];
1064
+ if (input["nro"] !== void 0) this["nro"] = input["nro"];
1065
+ if (input["UF"] !== void 0) this["UF"] = input["UF"];
1066
+ if (input["xBairro"] !== void 0) this["xBairro"] = input["xBairro"];
1067
+ if (input["xCpl"] !== void 0) this["xCpl"] = input["xCpl"];
1068
+ if (input["xLgr"] !== void 0) this["xLgr"] = input["xLgr"];
1069
+ if (input["xMun"] !== void 0) this["xMun"] = input["xMun"];
1070
+ if (input["xPais"] !== void 0) this["xPais"] = input["xPais"];
1071
+ }
1072
+ };
1073
+ var TenderEmit = class {
1074
+ "CEP";
1075
+ "cMun";
1076
+ "cPais";
1077
+ "fone";
1078
+ "nro";
1079
+ "UF";
1080
+ "xBairro";
1081
+ "xCpl";
1082
+ "xLgr";
1083
+ "xMun";
1084
+ "xPais";
1085
+ constructor(input = {}) {
1086
+ validateModel("TenderEmit", input);
1087
+ if (input["CEP"] !== void 0) this["CEP"] = input["CEP"];
1088
+ if (input["cMun"] !== void 0) this["cMun"] = input["cMun"];
1089
+ if (input["cPais"] !== void 0) this["cPais"] = input["cPais"];
1090
+ if (input["fone"] !== void 0) this["fone"] = input["fone"];
1091
+ if (input["nro"] !== void 0) this["nro"] = input["nro"];
1092
+ if (input["UF"] !== void 0) this["UF"] = input["UF"];
1093
+ if (input["xBairro"] !== void 0) this["xBairro"] = input["xBairro"];
1094
+ if (input["xCpl"] !== void 0) this["xCpl"] = input["xCpl"];
1095
+ if (input["xLgr"] !== void 0) this["xLgr"] = input["xLgr"];
1096
+ if (input["xMun"] !== void 0) this["xMun"] = input["xMun"];
1097
+ if (input["xPais"] !== void 0) this["xPais"] = input["xPais"];
1098
+ }
1099
+ };
1100
+ var TEntrega = class {
1101
+ "CEP";
1102
+ "cMun";
1103
+ "CNPJCPF";
1104
+ "cPais";
1105
+ "Email";
1106
+ "fone";
1107
+ "IE";
1108
+ "nro";
1109
+ "UF";
1110
+ "xBairro";
1111
+ "xCpl";
1112
+ "xLgr";
1113
+ "xMun";
1114
+ "xNome";
1115
+ "xPais";
1116
+ constructor(input = {}) {
1117
+ validateModel("TEntrega", input);
1118
+ if (input["CEP"] !== void 0) this["CEP"] = input["CEP"];
1119
+ if (input["cMun"] !== void 0) this["cMun"] = input["cMun"];
1120
+ if (input["CNPJCPF"] !== void 0) this["CNPJCPF"] = input["CNPJCPF"];
1121
+ if (input["cPais"] !== void 0) this["cPais"] = input["cPais"];
1122
+ if (input["Email"] !== void 0) this["Email"] = input["Email"];
1123
+ if (input["fone"] !== void 0) this["fone"] = input["fone"];
1124
+ if (input["IE"] !== void 0) this["IE"] = input["IE"];
1125
+ if (input["nro"] !== void 0) this["nro"] = input["nro"];
1126
+ if (input["UF"] !== void 0) this["UF"] = input["UF"];
1127
+ if (input["xBairro"] !== void 0) this["xBairro"] = input["xBairro"];
1128
+ if (input["xCpl"] !== void 0) this["xCpl"] = input["xCpl"];
1129
+ if (input["xLgr"] !== void 0) this["xLgr"] = input["xLgr"];
1130
+ if (input["xMun"] !== void 0) this["xMun"] = input["xMun"];
1131
+ if (input["xNome"] !== void 0) this["xNome"] = input["xNome"];
1132
+ if (input["xPais"] !== void 0) this["xPais"] = input["xPais"];
1133
+ }
1134
+ };
1135
+ var TExporta = class {
1136
+ "UFembarq";
1137
+ "UFSaidaPais";
1138
+ "xLocDespacho";
1139
+ "xLocEmbarq";
1140
+ "xLocExporta";
1141
+ constructor(input = {}) {
1142
+ validateModel("TExporta", input);
1143
+ if (input["UFembarq"] !== void 0) this["UFembarq"] = input["UFembarq"];
1144
+ if (input["UFSaidaPais"] !== void 0) this["UFSaidaPais"] = input["UFSaidaPais"];
1145
+ if (input["xLocDespacho"] !== void 0) this["xLocDespacho"] = input["xLocDespacho"];
1146
+ if (input["xLocEmbarq"] !== void 0) this["xLocEmbarq"] = input["xLocEmbarq"];
1147
+ if (input["xLocExporta"] !== void 0) this["xLocExporta"] = input["xLocExporta"];
1148
+ }
1149
+ };
1150
+ var TFat = class {
1151
+ "nFat";
1152
+ "vDesc";
1153
+ "vLiq";
1154
+ "vOrig";
1155
+ constructor(input = {}) {
1156
+ validateModel("TFat", input);
1157
+ if (input["nFat"] !== void 0) this["nFat"] = input["nFat"];
1158
+ if (input["vDesc"] !== void 0) this["vDesc"] = input["vDesc"];
1159
+ if (input["vLiq"] !== void 0) this["vLiq"] = input["vLiq"];
1160
+ if (input["vOrig"] !== void 0) this["vOrig"] = input["vOrig"];
1161
+ }
1162
+ };
1163
+ var TForDiaCollection = class extends Array {
1164
+ New(input = {}) {
1165
+ const item = new TForDiaCollectionItem(input);
1166
+ this.push(item);
1167
+ return item;
1168
+ }
1169
+ };
1170
+ var TForDiaCollectionItem = class {
1171
+ "dia";
1172
+ "qtde";
1173
+ constructor(input = {}) {
1174
+ validateModel("TForDiaCollectionItem", input);
1175
+ if (input["dia"] !== void 0) this["dia"] = input["dia"];
1176
+ if (input["qtde"] !== void 0) this["qtde"] = input["qtde"];
1177
+ }
1178
+ };
1179
+ var TgAjusteCompet = class {
1180
+ "competApur";
1181
+ "vCBS";
1182
+ "vIBS";
1183
+ constructor(input = {}) {
1184
+ validateModel("TgAjusteCompet", input);
1185
+ if (input["competApur"] !== void 0) this["competApur"] = input["competApur"];
1186
+ if (input["vCBS"] !== void 0) this["vCBS"] = input["vCBS"];
1187
+ if (input["vIBS"] !== void 0) this["vIBS"] = input["vIBS"];
1188
+ }
1189
+ };
1190
+ var TgALCZFMCBS = class {
1191
+ "nProcSuframa";
1192
+ "pAliqEfetRegCBS";
1193
+ "tpALCZFMCBS";
1194
+ "vTribRegCBS";
1195
+ constructor(input = {}) {
1196
+ validateModel("TgALCZFMCBS", input);
1197
+ if (input["nProcSuframa"] !== void 0) this["nProcSuframa"] = input["nProcSuframa"];
1198
+ if (input["pAliqEfetRegCBS"] !== void 0) this["pAliqEfetRegCBS"] = input["pAliqEfetRegCBS"];
1199
+ if (input["tpALCZFMCBS"] !== void 0) this["tpALCZFMCBS"] = input["tpALCZFMCBS"];
1200
+ if (input["vTribRegCBS"] !== void 0) this["vTribRegCBS"] = input["vTribRegCBS"];
1201
+ }
1202
+ };
1203
+ var TgCBS = class {
1204
+ "vCBS";
1205
+ "vCredPres";
1206
+ "vCredPresCondSus";
1207
+ "vDevTrib";
1208
+ "vDif";
1209
+ constructor(input = {}) {
1210
+ validateModel("TgCBS", input);
1211
+ if (input["vCBS"] !== void 0) this["vCBS"] = input["vCBS"];
1212
+ if (input["vCredPres"] !== void 0) this["vCredPres"] = input["vCredPres"];
1213
+ if (input["vCredPresCondSus"] !== void 0) this["vCredPresCondSus"] = input["vCredPresCondSus"];
1214
+ if (input["vDevTrib"] !== void 0) this["vDevTrib"] = input["vDevTrib"];
1215
+ if (input["vDif"] !== void 0) this["vDif"] = input["vDif"];
1216
+ }
1217
+ };
1218
+ var TgCBSMonoAdRem = class {
1219
+ "gMonoPadrao" = new TgMonoPadraoCBSQtde();
1220
+ "gMonoRet" = new TgMonoRetCBS();
1221
+ "gMonoReten" = new TgMonoRetenCBSQtde();
1222
+ "gpBioDiferenca" = new TgpBioDiferencaCBS();
1223
+ constructor(input = {}) {
1224
+ validateModel("TgCBSMonoAdRem", input);
1225
+ if (input["gMonoPadrao"] !== void 0) this["gMonoPadrao"] = new TgMonoPadraoCBSQtde(input["gMonoPadrao"]);
1226
+ if (input["gMonoRet"] !== void 0) this["gMonoRet"] = new TgMonoRetCBS(input["gMonoRet"]);
1227
+ if (input["gMonoReten"] !== void 0) this["gMonoReten"] = new TgMonoRetenCBSQtde(input["gMonoReten"]);
1228
+ if (input["gpBioDiferenca"] !== void 0) this["gpBioDiferenca"] = new TgpBioDiferencaCBS(input["gpBioDiferenca"]);
1229
+ }
1230
+ };
1231
+ var TgCBSMonoAdValorem = class {
1232
+ "gMonoPadrao" = new TgMonoPadraoCBSAliq();
1233
+ "gMonoRet" = new TgMonoRetCBS();
1234
+ "gMonoReten" = new TgMonoRetenCBSAliq();
1235
+ "gpBioDiferenca" = new TgpBioDiferencaCBS();
1236
+ constructor(input = {}) {
1237
+ validateModel("TgCBSMonoAdValorem", input);
1238
+ if (input["gMonoPadrao"] !== void 0) this["gMonoPadrao"] = new TgMonoPadraoCBSAliq(input["gMonoPadrao"]);
1239
+ if (input["gMonoRet"] !== void 0) this["gMonoRet"] = new TgMonoRetCBS(input["gMonoRet"]);
1240
+ if (input["gMonoReten"] !== void 0) this["gMonoReten"] = new TgMonoRetenCBSAliq(input["gMonoReten"]);
1241
+ if (input["gpBioDiferenca"] !== void 0) this["gpBioDiferenca"] = new TgpBioDiferencaCBS(input["gpBioDiferenca"]);
1242
+ }
1243
+ };
1244
+ var TgCBSValores = class {
1245
+ "gALCZFMCBS" = new TgALCZFMCBS();
1246
+ "gDevTrib" = new TgDevTrib();
1247
+ "gDif" = new TgDif();
1248
+ "gRed" = new TgRed();
1249
+ "pCBS";
1250
+ "vCBS";
1251
+ constructor(input = {}) {
1252
+ validateModel("TgCBSValores", input);
1253
+ if (input["gALCZFMCBS"] !== void 0) this["gALCZFMCBS"] = new TgALCZFMCBS(input["gALCZFMCBS"]);
1254
+ if (input["gDevTrib"] !== void 0) this["gDevTrib"] = new TgDevTrib(input["gDevTrib"]);
1255
+ if (input["gDif"] !== void 0) this["gDif"] = new TgDif(input["gDif"]);
1256
+ if (input["gRed"] !== void 0) this["gRed"] = new TgRed(input["gRed"]);
1257
+ if (input["pCBS"] !== void 0) this["pCBS"] = input["pCBS"];
1258
+ if (input["vCBS"] !== void 0) this["vCBS"] = input["vCBS"];
1259
+ }
1260
+ };
1261
+ var TgCompraGov = class {
1262
+ "pRedutor";
1263
+ "refDFeAnt" = new TDFErefCollection();
1264
+ "tpEnteGov";
1265
+ "tpOperGov";
1266
+ constructor(input = {}) {
1267
+ validateModel("TgCompraGov", input);
1268
+ if (input["pRedutor"] !== void 0) this["pRedutor"] = input["pRedutor"];
1269
+ if (input["refDFeAnt"] !== void 0) this["refDFeAnt"] = Object.assign(new TDFErefCollection(), input["refDFeAnt"].map((v) => new TDFErefCollectionItem(v)));
1270
+ if (input["tpEnteGov"] !== void 0) this["tpEnteGov"] = input["tpEnteGov"];
1271
+ if (input["tpOperGov"] !== void 0) this["tpOperGov"] = input["tpOperGov"];
1272
+ }
1273
+ };
1274
+ var TgCredPresOper = class {
1275
+ "cCredPres";
1276
+ "gCBSCredPres" = new TgIBSCBSCredPres();
1277
+ "gIBSCredPres" = new TgIBSCBSCredPres();
1278
+ "vBCCredPres";
1279
+ constructor(input = {}) {
1280
+ validateModel("TgCredPresOper", input);
1281
+ if (input["cCredPres"] !== void 0) this["cCredPres"] = input["cCredPres"];
1282
+ if (input["gCBSCredPres"] !== void 0) this["gCBSCredPres"] = new TgIBSCBSCredPres(input["gCBSCredPres"]);
1283
+ if (input["gIBSCredPres"] !== void 0) this["gIBSCredPres"] = new TgIBSCBSCredPres(input["gIBSCredPres"]);
1284
+ if (input["vBCCredPres"] !== void 0) this["vBCCredPres"] = input["vBCCredPres"];
1285
+ }
1286
+ };
1287
+ var TgDevTrib = class {
1288
+ "pDevTrib";
1289
+ "vDevTrib";
1290
+ constructor(input = {}) {
1291
+ validateModel("TgDevTrib", input);
1292
+ if (input["pDevTrib"] !== void 0) this["pDevTrib"] = input["pDevTrib"];
1293
+ if (input["vDevTrib"] !== void 0) this["vDevTrib"] = input["vDevTrib"];
1294
+ }
1295
+ };
1296
+ var TgDif = class {
1297
+ "pDif";
1298
+ "vDif";
1299
+ constructor(input = {}) {
1300
+ validateModel("TgDif", input);
1301
+ if (input["pDif"] !== void 0) this["pDif"] = input["pDif"];
1302
+ if (input["vDif"] !== void 0) this["vDif"] = input["vDif"];
1303
+ }
1304
+ };
1305
+ var TgEstornoCred = class {
1306
+ "vCBSEstCred";
1307
+ "vIBSEstCred";
1308
+ constructor(input = {}) {
1309
+ validateModel("TgEstornoCred", input);
1310
+ if (input["vCBSEstCred"] !== void 0) this["vCBSEstCred"] = input["vCBSEstCred"];
1311
+ if (input["vIBSEstCred"] !== void 0) this["vIBSEstCred"] = input["vIBSEstCred"];
1312
+ }
1313
+ };
1314
+ var TgIBS = class {
1315
+ "gIBSMunTot" = new TgIBSMunTot();
1316
+ "gIBSUFTot" = new TgIBSUFTot();
1317
+ "vCredPres";
1318
+ "vCredPresCondSus";
1319
+ "vIBS";
1320
+ constructor(input = {}) {
1321
+ validateModel("TgIBS", input);
1322
+ if (input["gIBSMunTot"] !== void 0) this["gIBSMunTot"] = new TgIBSMunTot(input["gIBSMunTot"]);
1323
+ if (input["gIBSUFTot"] !== void 0) this["gIBSUFTot"] = new TgIBSUFTot(input["gIBSUFTot"]);
1324
+ if (input["vCredPres"] !== void 0) this["vCredPres"] = input["vCredPres"];
1325
+ if (input["vCredPresCondSus"] !== void 0) this["vCredPresCondSus"] = input["vCredPresCondSus"];
1326
+ if (input["vIBS"] !== void 0) this["vIBS"] = input["vIBS"];
1327
+ }
1328
+ };
1329
+ var TgIBSCBS = class {
1330
+ "gCBS" = new TgCBSValores();
1331
+ "gIBSMun" = new TgIBSMunValores();
1332
+ "gIBSUF" = new TgIBSUFValores();
1333
+ "gTribCompraGov" = new TgTribCompraGov();
1334
+ "gTribRegular" = new TgTribRegular();
1335
+ "vBC";
1336
+ "vIBS";
1337
+ "vOperacIndiv";
1338
+ "vRedAjusteIndiv";
1339
+ "vRedSocialIndiv";
1340
+ "vTornaIndiv";
1341
+ constructor(input = {}) {
1342
+ validateModel("TgIBSCBS", input);
1343
+ if (input["gCBS"] !== void 0) this["gCBS"] = new TgCBSValores(input["gCBS"]);
1344
+ if (input["gIBSMun"] !== void 0) this["gIBSMun"] = new TgIBSMunValores(input["gIBSMun"]);
1345
+ if (input["gIBSUF"] !== void 0) this["gIBSUF"] = new TgIBSUFValores(input["gIBSUF"]);
1346
+ if (input["gTribCompraGov"] !== void 0) this["gTribCompraGov"] = new TgTribCompraGov(input["gTribCompraGov"]);
1347
+ if (input["gTribRegular"] !== void 0) this["gTribRegular"] = new TgTribRegular(input["gTribRegular"]);
1348
+ if (input["vBC"] !== void 0) this["vBC"] = input["vBC"];
1349
+ if (input["vIBS"] !== void 0) this["vIBS"] = input["vIBS"];
1350
+ if (input["vOperacIndiv"] !== void 0) this["vOperacIndiv"] = input["vOperacIndiv"];
1351
+ if (input["vRedAjusteIndiv"] !== void 0) this["vRedAjusteIndiv"] = input["vRedAjusteIndiv"];
1352
+ if (input["vRedSocialIndiv"] !== void 0) this["vRedSocialIndiv"] = input["vRedSocialIndiv"];
1353
+ if (input["vTornaIndiv"] !== void 0) this["vTornaIndiv"] = input["vTornaIndiv"];
1354
+ }
1355
+ };
1356
+ var TgIBSCBSCredPres = class {
1357
+ "pCredPres";
1358
+ "vCredPres";
1359
+ "vCredPresCondSus";
1360
+ constructor(input = {}) {
1361
+ validateModel("TgIBSCBSCredPres", input);
1362
+ if (input["pCredPres"] !== void 0) this["pCredPres"] = input["pCredPres"];
1363
+ if (input["vCredPres"] !== void 0) this["vCredPres"] = input["vCredPres"];
1364
+ if (input["vCredPresCondSus"] !== void 0) this["vCredPresCondSus"] = input["vCredPresCondSus"];
1365
+ }
1366
+ };
1367
+ var TgIBSCBSMono = class {
1368
+ "gCBSMonoAdRem" = new TgCBSMonoAdRem();
1369
+ "gCBSMonoAdValorem" = new TgCBSMonoAdValorem();
1370
+ "gIBSMonoAdRem" = new TgIBSMonoAdRem();
1371
+ "gIBSMonoAdValorem" = new TgIBSMonoAdValorem();
1372
+ "vTotCBSMonoItem";
1373
+ "vTotIBSMonoItem";
1374
+ constructor(input = {}) {
1375
+ validateModel("TgIBSCBSMono", input);
1376
+ if (input["gCBSMonoAdRem"] !== void 0) this["gCBSMonoAdRem"] = new TgCBSMonoAdRem(input["gCBSMonoAdRem"]);
1377
+ if (input["gCBSMonoAdValorem"] !== void 0) this["gCBSMonoAdValorem"] = new TgCBSMonoAdValorem(input["gCBSMonoAdValorem"]);
1378
+ if (input["gIBSMonoAdRem"] !== void 0) this["gIBSMonoAdRem"] = new TgIBSMonoAdRem(input["gIBSMonoAdRem"]);
1379
+ if (input["gIBSMonoAdValorem"] !== void 0) this["gIBSMonoAdValorem"] = new TgIBSMonoAdValorem(input["gIBSMonoAdValorem"]);
1380
+ if (input["vTotCBSMonoItem"] !== void 0) this["vTotCBSMonoItem"] = input["vTotCBSMonoItem"];
1381
+ if (input["vTotIBSMonoItem"] !== void 0) this["vTotIBSMonoItem"] = input["vTotIBSMonoItem"];
1382
+ }
1383
+ };
1384
+ var TgIBSMonoAdRem = class {
1385
+ "gMonoPadrao" = new TgMonoPadraoIBSQtde();
1386
+ "gMonoRet" = new TgMonoRetIBS();
1387
+ "gMonoReten" = new TgMonoRetenIBSQtde();
1388
+ "gpBioDiferenca" = new TgpBioDiferencaIBS();
1389
+ constructor(input = {}) {
1390
+ validateModel("TgIBSMonoAdRem", input);
1391
+ if (input["gMonoPadrao"] !== void 0) this["gMonoPadrao"] = new TgMonoPadraoIBSQtde(input["gMonoPadrao"]);
1392
+ if (input["gMonoRet"] !== void 0) this["gMonoRet"] = new TgMonoRetIBS(input["gMonoRet"]);
1393
+ if (input["gMonoReten"] !== void 0) this["gMonoReten"] = new TgMonoRetenIBSQtde(input["gMonoReten"]);
1394
+ if (input["gpBioDiferenca"] !== void 0) this["gpBioDiferenca"] = new TgpBioDiferencaIBS(input["gpBioDiferenca"]);
1395
+ }
1396
+ };
1397
+ var TgIBSMonoAdValorem = class {
1398
+ "gMonoPadrao" = new TgMonoPadraoIBSAliq();
1399
+ "gMonoRet" = new TgMonoRetIBS();
1400
+ "gMonoReten" = new TgMonoRetenIBSAliq();
1401
+ "gpBioDiferenca" = new TgpBioDiferencaIBS();
1402
+ constructor(input = {}) {
1403
+ validateModel("TgIBSMonoAdValorem", input);
1404
+ if (input["gMonoPadrao"] !== void 0) this["gMonoPadrao"] = new TgMonoPadraoIBSAliq(input["gMonoPadrao"]);
1405
+ if (input["gMonoRet"] !== void 0) this["gMonoRet"] = new TgMonoRetIBS(input["gMonoRet"]);
1406
+ if (input["gMonoReten"] !== void 0) this["gMonoReten"] = new TgMonoRetenIBSAliq(input["gMonoReten"]);
1407
+ if (input["gpBioDiferenca"] !== void 0) this["gpBioDiferenca"] = new TgpBioDiferencaIBS(input["gpBioDiferenca"]);
1408
+ }
1409
+ };
1410
+ var TgIBSMunTot = class {
1411
+ "vDevTrib";
1412
+ "vDif";
1413
+ "vIBSMun";
1414
+ constructor(input = {}) {
1415
+ validateModel("TgIBSMunTot", input);
1416
+ if (input["vDevTrib"] !== void 0) this["vDevTrib"] = input["vDevTrib"];
1417
+ if (input["vDif"] !== void 0) this["vDif"] = input["vDif"];
1418
+ if (input["vIBSMun"] !== void 0) this["vIBSMun"] = input["vIBSMun"];
1419
+ }
1420
+ };
1421
+ var TgIBSMunValores = class {
1422
+ "gDevTrib" = new TgDevTrib();
1423
+ "gDif" = new TgDif();
1424
+ "gRed" = new TgRed();
1425
+ "pIBSMun";
1426
+ "vIBSMun";
1427
+ constructor(input = {}) {
1428
+ validateModel("TgIBSMunValores", input);
1429
+ if (input["gDevTrib"] !== void 0) this["gDevTrib"] = new TgDevTrib(input["gDevTrib"]);
1430
+ if (input["gDif"] !== void 0) this["gDif"] = new TgDif(input["gDif"]);
1431
+ if (input["gRed"] !== void 0) this["gRed"] = new TgRed(input["gRed"]);
1432
+ if (input["pIBSMun"] !== void 0) this["pIBSMun"] = input["pIBSMun"];
1433
+ if (input["vIBSMun"] !== void 0) this["vIBSMun"] = input["vIBSMun"];
1434
+ }
1435
+ };
1436
+ var TgIBSUFTot = class {
1437
+ "vDevTrib";
1438
+ "vDif";
1439
+ "vIBSUF";
1440
+ constructor(input = {}) {
1441
+ validateModel("TgIBSUFTot", input);
1442
+ if (input["vDevTrib"] !== void 0) this["vDevTrib"] = input["vDevTrib"];
1443
+ if (input["vDif"] !== void 0) this["vDif"] = input["vDif"];
1444
+ if (input["vIBSUF"] !== void 0) this["vIBSUF"] = input["vIBSUF"];
1445
+ }
1446
+ };
1447
+ var TgIBSUFValores = class {
1448
+ "gDevTrib" = new TgDevTrib();
1449
+ "gDif" = new TgDif();
1450
+ "gRed" = new TgRed();
1451
+ "pIBSUF";
1452
+ "vIBSUF";
1453
+ constructor(input = {}) {
1454
+ validateModel("TgIBSUFValores", input);
1455
+ if (input["gDevTrib"] !== void 0) this["gDevTrib"] = new TgDevTrib(input["gDevTrib"]);
1456
+ if (input["gDif"] !== void 0) this["gDif"] = new TgDif(input["gDif"]);
1457
+ if (input["gRed"] !== void 0) this["gRed"] = new TgRed(input["gRed"]);
1458
+ if (input["pIBSUF"] !== void 0) this["pIBSUF"] = input["pIBSUF"];
1459
+ if (input["vIBSUF"] !== void 0) this["vIBSUF"] = input["vIBSUF"];
1460
+ }
1461
+ };
1462
+ var TgIS = class {
1463
+ "adRemIS";
1464
+ "cClassTribIS";
1465
+ "CSTIS";
1466
+ "pIS";
1467
+ "qTrib";
1468
+ "uTrib";
1469
+ "vBCIS";
1470
+ "vIS";
1471
+ constructor(input = {}) {
1472
+ validateModel("TgIS", input);
1473
+ if (input["adRemIS"] !== void 0) this["adRemIS"] = input["adRemIS"];
1474
+ if (input["cClassTribIS"] !== void 0) this["cClassTribIS"] = input["cClassTribIS"];
1475
+ if (input["CSTIS"] !== void 0) this["CSTIS"] = input["CSTIS"];
1476
+ if (input["pIS"] !== void 0) this["pIS"] = input["pIS"];
1477
+ if (input["qTrib"] !== void 0) this["qTrib"] = input["qTrib"];
1478
+ if (input["uTrib"] !== void 0) this["uTrib"] = input["uTrib"];
1479
+ if (input["vBCIS"] !== void 0) this["vBCIS"] = input["vBCIS"];
1480
+ if (input["vIS"] !== void 0) this["vIS"] = input["vIS"];
1481
+ }
1482
+ };
1483
+ var TgMono = class {
1484
+ "vCBSMono";
1485
+ "vCBSMonoRet";
1486
+ "vCBSMonoReten";
1487
+ "vIBSMono";
1488
+ "vIBSMonoRet";
1489
+ "vIBSMonoReten";
1490
+ constructor(input = {}) {
1491
+ validateModel("TgMono", input);
1492
+ if (input["vCBSMono"] !== void 0) this["vCBSMono"] = input["vCBSMono"];
1493
+ if (input["vCBSMonoRet"] !== void 0) this["vCBSMonoRet"] = input["vCBSMonoRet"];
1494
+ if (input["vCBSMonoReten"] !== void 0) this["vCBSMonoReten"] = input["vCBSMonoReten"];
1495
+ if (input["vIBSMono"] !== void 0) this["vIBSMono"] = input["vIBSMono"];
1496
+ if (input["vIBSMonoRet"] !== void 0) this["vIBSMonoRet"] = input["vIBSMonoRet"];
1497
+ if (input["vIBSMonoReten"] !== void 0) this["vIBSMonoReten"] = input["vIBSMonoReten"];
1498
+ }
1499
+ };
1500
+ var TgMonoPadraoCBSAliq = class {
1501
+ "pAliqMonoCBS";
1502
+ "vBCMono";
1503
+ "vCBSMono";
1504
+ constructor(input = {}) {
1505
+ validateModel("TgMonoPadraoCBSAliq", input);
1506
+ if (input["pAliqMonoCBS"] !== void 0) this["pAliqMonoCBS"] = input["pAliqMonoCBS"];
1507
+ if (input["vBCMono"] !== void 0) this["vBCMono"] = input["vBCMono"];
1508
+ if (input["vCBSMono"] !== void 0) this["vCBSMono"] = input["vCBSMono"];
1509
+ }
1510
+ };
1511
+ var TgMonoPadraoCBSQtde = class {
1512
+ "adRemCBS";
1513
+ "qBCMono";
1514
+ "vCBSMono";
1515
+ constructor(input = {}) {
1516
+ validateModel("TgMonoPadraoCBSQtde", input);
1517
+ if (input["adRemCBS"] !== void 0) this["adRemCBS"] = input["adRemCBS"];
1518
+ if (input["qBCMono"] !== void 0) this["qBCMono"] = input["qBCMono"];
1519
+ if (input["vCBSMono"] !== void 0) this["vCBSMono"] = input["vCBSMono"];
1520
+ }
1521
+ };
1522
+ var TgMonoPadraoIBSAliq = class {
1523
+ "pAliqMonoMun";
1524
+ "pAliqMonoUF";
1525
+ "vBCMono";
1526
+ "vIBSMono";
1527
+ "vIBSMonoMun";
1528
+ "vIBSMonoUF";
1529
+ constructor(input = {}) {
1530
+ validateModel("TgMonoPadraoIBSAliq", input);
1531
+ if (input["pAliqMonoMun"] !== void 0) this["pAliqMonoMun"] = input["pAliqMonoMun"];
1532
+ if (input["pAliqMonoUF"] !== void 0) this["pAliqMonoUF"] = input["pAliqMonoUF"];
1533
+ if (input["vBCMono"] !== void 0) this["vBCMono"] = input["vBCMono"];
1534
+ if (input["vIBSMono"] !== void 0) this["vIBSMono"] = input["vIBSMono"];
1535
+ if (input["vIBSMonoMun"] !== void 0) this["vIBSMonoMun"] = input["vIBSMonoMun"];
1536
+ if (input["vIBSMonoUF"] !== void 0) this["vIBSMonoUF"] = input["vIBSMonoUF"];
1537
+ }
1538
+ };
1539
+ var TgMonoPadraoIBSQtde = class {
1540
+ "adRemIBS";
1541
+ "qBCMono";
1542
+ "vIBSMono";
1543
+ constructor(input = {}) {
1544
+ validateModel("TgMonoPadraoIBSQtde", input);
1545
+ if (input["adRemIBS"] !== void 0) this["adRemIBS"] = input["adRemIBS"];
1546
+ if (input["qBCMono"] !== void 0) this["qBCMono"] = input["qBCMono"];
1547
+ if (input["vIBSMono"] !== void 0) this["vIBSMono"] = input["vIBSMono"];
1548
+ }
1549
+ };
1550
+ var TgMonoRetCBS = class {
1551
+ "vCBSMonoRet";
1552
+ constructor(input = {}) {
1553
+ validateModel("TgMonoRetCBS", input);
1554
+ if (input["vCBSMonoRet"] !== void 0) this["vCBSMonoRet"] = input["vCBSMonoRet"];
1555
+ }
1556
+ };
1557
+ var TgMonoRetenCBSAliq = class {
1558
+ "pAliqMonoReten";
1559
+ "vBCMonoReten";
1560
+ "vCBSMonoReten";
1561
+ constructor(input = {}) {
1562
+ validateModel("TgMonoRetenCBSAliq", input);
1563
+ if (input["pAliqMonoReten"] !== void 0) this["pAliqMonoReten"] = input["pAliqMonoReten"];
1564
+ if (input["vBCMonoReten"] !== void 0) this["vBCMonoReten"] = input["vBCMonoReten"];
1565
+ if (input["vCBSMonoReten"] !== void 0) this["vCBSMonoReten"] = input["vCBSMonoReten"];
1566
+ }
1567
+ };
1568
+ var TgMonoRetenCBSQtde = class {
1569
+ "adRemCBSReten";
1570
+ "qBCMonoReten";
1571
+ "vCBSMonoReten";
1572
+ constructor(input = {}) {
1573
+ validateModel("TgMonoRetenCBSQtde", input);
1574
+ if (input["adRemCBSReten"] !== void 0) this["adRemCBSReten"] = input["adRemCBSReten"];
1575
+ if (input["qBCMonoReten"] !== void 0) this["qBCMonoReten"] = input["qBCMonoReten"];
1576
+ if (input["vCBSMonoReten"] !== void 0) this["vCBSMonoReten"] = input["vCBSMonoReten"];
1577
+ }
1578
+ };
1579
+ var TgMonoRetenIBSAliq = class {
1580
+ "pAliqMonoReten";
1581
+ "vBCMonoReten";
1582
+ "vIBSMonoReten";
1583
+ constructor(input = {}) {
1584
+ validateModel("TgMonoRetenIBSAliq", input);
1585
+ if (input["pAliqMonoReten"] !== void 0) this["pAliqMonoReten"] = input["pAliqMonoReten"];
1586
+ if (input["vBCMonoReten"] !== void 0) this["vBCMonoReten"] = input["vBCMonoReten"];
1587
+ if (input["vIBSMonoReten"] !== void 0) this["vIBSMonoReten"] = input["vIBSMonoReten"];
1588
+ }
1589
+ };
1590
+ var TgMonoRetenIBSQtde = class {
1591
+ "adRemIBSReten";
1592
+ "qBCMonoReten";
1593
+ "vIBSMonoReten";
1594
+ constructor(input = {}) {
1595
+ validateModel("TgMonoRetenIBSQtde", input);
1596
+ if (input["adRemIBSReten"] !== void 0) this["adRemIBSReten"] = input["adRemIBSReten"];
1597
+ if (input["qBCMonoReten"] !== void 0) this["qBCMonoReten"] = input["qBCMonoReten"];
1598
+ if (input["vIBSMonoReten"] !== void 0) this["vIBSMonoReten"] = input["vIBSMonoReten"];
1599
+ }
1600
+ };
1601
+ var TgMonoRetIBS = class {
1602
+ "vIBSMonoRet";
1603
+ constructor(input = {}) {
1604
+ validateModel("TgMonoRetIBS", input);
1605
+ if (input["vIBSMonoRet"] !== void 0) this["vIBSMonoRet"] = input["vIBSMonoRet"];
1606
+ }
1607
+ };
1608
+ var TgPagAntecipado = class {
1609
+ "refNFe" = new TrefDFePagAntCollection();
1610
+ constructor(input = {}) {
1611
+ validateModel("TgPagAntecipado", input);
1612
+ if (input["refNFe"] !== void 0) this["refNFe"] = Object.assign(new TrefDFePagAntCollection(), input["refNFe"].map((v) => new TrefDFePagAntCollectionItem(v)));
1613
+ }
1614
+ };
1615
+ var TgpBioDiferencaCBS = class {
1616
+ "qBCBioComb";
1617
+ "vCBSDiferenca";
1618
+ constructor(input = {}) {
1619
+ validateModel("TgpBioDiferencaCBS", input);
1620
+ if (input["qBCBioComb"] !== void 0) this["qBCBioComb"] = input["qBCBioComb"];
1621
+ if (input["vCBSDiferenca"] !== void 0) this["vCBSDiferenca"] = input["vCBSDiferenca"];
1622
+ }
1623
+ };
1624
+ var TgpBioDiferencaIBS = class {
1625
+ "qBCBioComb";
1626
+ "vIBSDiferenca";
1627
+ constructor(input = {}) {
1628
+ validateModel("TgpBioDiferencaIBS", input);
1629
+ if (input["qBCBioComb"] !== void 0) this["qBCBioComb"] = input["qBCBioComb"];
1630
+ if (input["vIBSDiferenca"] !== void 0) this["vIBSDiferenca"] = input["vIBSDiferenca"];
1631
+ }
1632
+ };
1633
+ var TgRed = class {
1634
+ "pAliqEfet";
1635
+ "pRedAliq";
1636
+ constructor(input = {}) {
1637
+ validateModel("TgRed", input);
1638
+ if (input["pAliqEfet"] !== void 0) this["pAliqEfet"] = input["pAliqEfet"];
1639
+ if (input["pRedAliq"] !== void 0) this["pRedAliq"] = input["pRedAliq"];
1640
+ }
1641
+ };
1642
+ var TgTransfCred = class {
1643
+ "vCBS";
1644
+ "vIBS";
1645
+ constructor(input = {}) {
1646
+ validateModel("TgTransfCred", input);
1647
+ if (input["vCBS"] !== void 0) this["vCBS"] = input["vCBS"];
1648
+ if (input["vIBS"] !== void 0) this["vIBS"] = input["vIBS"];
1649
+ }
1650
+ };
1651
+ var TgTribCompraGov = class {
1652
+ "pAliqCBS";
1653
+ "pAliqIBSMun";
1654
+ "pAliqIBSUF";
1655
+ "vTribCBS";
1656
+ "vTribIBSMun";
1657
+ "vTribIBSUF";
1658
+ constructor(input = {}) {
1659
+ validateModel("TgTribCompraGov", input);
1660
+ if (input["pAliqCBS"] !== void 0) this["pAliqCBS"] = input["pAliqCBS"];
1661
+ if (input["pAliqIBSMun"] !== void 0) this["pAliqIBSMun"] = input["pAliqIBSMun"];
1662
+ if (input["pAliqIBSUF"] !== void 0) this["pAliqIBSUF"] = input["pAliqIBSUF"];
1663
+ if (input["vTribCBS"] !== void 0) this["vTribCBS"] = input["vTribCBS"];
1664
+ if (input["vTribIBSMun"] !== void 0) this["vTribIBSMun"] = input["vTribIBSMun"];
1665
+ if (input["vTribIBSUF"] !== void 0) this["vTribIBSUF"] = input["vTribIBSUF"];
1666
+ }
1667
+ };
1668
+ var TgTribRegular = class {
1669
+ "cClassTribReg";
1670
+ "CSTReg";
1671
+ "pAliqEfetRegCBS";
1672
+ "pAliqEfetRegIBSMun";
1673
+ "pAliqEfetRegIBSUF";
1674
+ "vTribRegCBS";
1675
+ "vTribRegIBSMun";
1676
+ "vTribRegIBSUF";
1677
+ constructor(input = {}) {
1678
+ validateModel("TgTribRegular", input);
1679
+ if (input["cClassTribReg"] !== void 0) this["cClassTribReg"] = input["cClassTribReg"];
1680
+ if (input["CSTReg"] !== void 0) this["CSTReg"] = input["CSTReg"];
1681
+ if (input["pAliqEfetRegCBS"] !== void 0) this["pAliqEfetRegCBS"] = input["pAliqEfetRegCBS"];
1682
+ if (input["pAliqEfetRegIBSMun"] !== void 0) this["pAliqEfetRegIBSMun"] = input["pAliqEfetRegIBSMun"];
1683
+ if (input["pAliqEfetRegIBSUF"] !== void 0) this["pAliqEfetRegIBSUF"] = input["pAliqEfetRegIBSUF"];
1684
+ if (input["vTribRegCBS"] !== void 0) this["vTribRegCBS"] = input["vTribRegCBS"];
1685
+ if (input["vTribRegIBSMun"] !== void 0) this["vTribRegIBSMun"] = input["vTribRegIBSMun"];
1686
+ if (input["vTribRegIBSUF"] !== void 0) this["vTribRegIBSUF"] = input["vTribRegIBSUF"];
1687
+ }
1688
+ };
1689
+ var TguiaTransito = class {
1690
+ "nGuia";
1691
+ "serieGuia";
1692
+ "tpGuia";
1693
+ "UFGuia";
1694
+ constructor(input = {}) {
1695
+ validateModel("TguiaTransito", input);
1696
+ if (input["nGuia"] !== void 0) this["nGuia"] = input["nGuia"];
1697
+ if (input["serieGuia"] !== void 0) this["serieGuia"] = input["serieGuia"];
1698
+ if (input["tpGuia"] !== void 0) this["tpGuia"] = input["tpGuia"];
1699
+ if (input["UFGuia"] !== void 0) this["UFGuia"] = input["UFGuia"];
1700
+ }
1701
+ };
1702
+ var TIBSCBS = class {
1703
+ "cClassTrib";
1704
+ "CST";
1705
+ "gAjusteCompet" = new TgAjusteCompet();
1706
+ "gCredPresIBSZFM" = new TCredPresIBSZFM();
1707
+ "gCredPresOper" = new TgCredPresOper();
1708
+ "gEstornoCred" = new TgEstornoCred();
1709
+ "gIBSCBS" = new TgIBSCBS();
1710
+ "gIBSCBSMono" = new TgIBSCBSMono();
1711
+ "gTransfCred" = new TgTransfCred();
1712
+ "indDoacao";
1713
+ constructor(input = {}) {
1714
+ validateModel("TIBSCBS", input);
1715
+ if (input["cClassTrib"] !== void 0) this["cClassTrib"] = input["cClassTrib"];
1716
+ if (input["CST"] !== void 0) this["CST"] = input["CST"];
1717
+ if (input["gAjusteCompet"] !== void 0) this["gAjusteCompet"] = new TgAjusteCompet(input["gAjusteCompet"]);
1718
+ if (input["gCredPresIBSZFM"] !== void 0) this["gCredPresIBSZFM"] = new TCredPresIBSZFM(input["gCredPresIBSZFM"]);
1719
+ if (input["gCredPresOper"] !== void 0) this["gCredPresOper"] = new TgCredPresOper(input["gCredPresOper"]);
1720
+ if (input["gEstornoCred"] !== void 0) this["gEstornoCred"] = new TgEstornoCred(input["gEstornoCred"]);
1721
+ if (input["gIBSCBS"] !== void 0) this["gIBSCBS"] = new TgIBSCBS(input["gIBSCBS"]);
1722
+ if (input["gIBSCBSMono"] !== void 0) this["gIBSCBSMono"] = new TgIBSCBSMono(input["gIBSCBSMono"]);
1723
+ if (input["gTransfCred"] !== void 0) this["gTransfCred"] = new TgTransfCred(input["gTransfCred"]);
1724
+ if (input["indDoacao"] !== void 0) this["indDoacao"] = input["indDoacao"];
1725
+ }
1726
+ };
1727
+ var TIBSCBSTot = class {
1728
+ "gCBS" = new TgCBS();
1729
+ "gEstornoCred" = new TgEstornoCred();
1730
+ "gIBS" = new TgIBS();
1731
+ "gMono" = new TgMono();
1732
+ "vBCIBSCBS";
1733
+ constructor(input = {}) {
1734
+ validateModel("TIBSCBSTot", input);
1735
+ if (input["gCBS"] !== void 0) this["gCBS"] = new TgCBS(input["gCBS"]);
1736
+ if (input["gEstornoCred"] !== void 0) this["gEstornoCred"] = new TgEstornoCred(input["gEstornoCred"]);
1737
+ if (input["gIBS"] !== void 0) this["gIBS"] = new TgIBS(input["gIBS"]);
1738
+ if (input["gMono"] !== void 0) this["gMono"] = new TgMono(input["gMono"]);
1739
+ if (input["vBCIBSCBS"] !== void 0) this["vBCIBSCBS"] = input["vBCIBSCBS"];
1740
+ }
1741
+ };
1742
+ var TICMS = class {
1743
+ "adRemICMS";
1744
+ "adRemICMSDif";
1745
+ "adRemICMSRet";
1746
+ "adRemICMSReten";
1747
+ "cBenefRBC";
1748
+ "CSOSN";
1749
+ /** Pascal streaming default: cst00. Omission preserves the native constructor. */
1750
+ "CST";
1751
+ /** Pascal streaming default: tieNenhum. Omission preserves the native constructor. */
1752
+ "indDeduzDeson";
1753
+ /** Pascal streaming default: dbiMargemValorAgregado. Omission preserves the native constructor. */
1754
+ "modBC";
1755
+ /** Pascal streaming default: dbisPrecoTabelado. Omission preserves the native constructor. */
1756
+ "modBCST";
1757
+ "motDesICMS";
1758
+ "motDesICMSST";
1759
+ "motRedAdRem";
1760
+ /** Pascal streaming default: oeNacional. Omission preserves the native constructor. */
1761
+ "orig";
1762
+ "pBCOp";
1763
+ "pCredSN";
1764
+ "pDif";
1765
+ "pFCP";
1766
+ "pFCPDif";
1767
+ "pFCPST";
1768
+ "pFCPSTRet";
1769
+ "pICMS";
1770
+ "pICMSEfet";
1771
+ "pICMSST";
1772
+ "pMVAST";
1773
+ "pRedAdRem";
1774
+ "pRedBC";
1775
+ "pRedBCEfet";
1776
+ "pRedBCST";
1777
+ "pST";
1778
+ "qBCMono";
1779
+ "qBCMonoDif";
1780
+ "qBCMonoRet";
1781
+ "qBCMonoReten";
1782
+ "UFST";
1783
+ "vBC";
1784
+ "vBCEfet";
1785
+ "vBCFCP";
1786
+ "vBCFCPST";
1787
+ "vBCFCPSTRet";
1788
+ "vBCST";
1789
+ "vBCSTDest";
1790
+ "vBCSTRet";
1791
+ "vCredICMSSN";
1792
+ "vFCP";
1793
+ "vFCPDif";
1794
+ "vFCPEfet";
1795
+ "vFCPST";
1796
+ "vFCPSTRet";
1797
+ "vICMS";
1798
+ "vICMSDeson";
1799
+ "vICMSDif";
1800
+ "vICMSEfet";
1801
+ "vICMSMono";
1802
+ "vICMSMonoDif";
1803
+ "vICMSMonoOp";
1804
+ "vICMSMonoRet";
1805
+ "vICMSMonoReten";
1806
+ "vICMSOp";
1807
+ "vICMSST";
1808
+ "vICMSSTDeson";
1809
+ "vICMSSTDest";
1810
+ "vICMSSTRet";
1811
+ "vICMSSubstituto";
1812
+ constructor(input = {}) {
1813
+ validateModel("TICMS", input);
1814
+ if (input["adRemICMS"] !== void 0) this["adRemICMS"] = input["adRemICMS"];
1815
+ if (input["adRemICMSDif"] !== void 0) this["adRemICMSDif"] = input["adRemICMSDif"];
1816
+ if (input["adRemICMSRet"] !== void 0) this["adRemICMSRet"] = input["adRemICMSRet"];
1817
+ if (input["adRemICMSReten"] !== void 0) this["adRemICMSReten"] = input["adRemICMSReten"];
1818
+ if (input["cBenefRBC"] !== void 0) this["cBenefRBC"] = input["cBenefRBC"];
1819
+ if (input["CSOSN"] !== void 0) this["CSOSN"] = input["CSOSN"];
1820
+ if (input["CST"] !== void 0) this["CST"] = input["CST"];
1821
+ if (input["indDeduzDeson"] !== void 0) this["indDeduzDeson"] = input["indDeduzDeson"];
1822
+ if (input["modBC"] !== void 0) this["modBC"] = input["modBC"];
1823
+ if (input["modBCST"] !== void 0) this["modBCST"] = input["modBCST"];
1824
+ if (input["motDesICMS"] !== void 0) this["motDesICMS"] = input["motDesICMS"];
1825
+ if (input["motDesICMSST"] !== void 0) this["motDesICMSST"] = input["motDesICMSST"];
1826
+ if (input["motRedAdRem"] !== void 0) this["motRedAdRem"] = input["motRedAdRem"];
1827
+ if (input["orig"] !== void 0) this["orig"] = input["orig"];
1828
+ if (input["pBCOp"] !== void 0) this["pBCOp"] = input["pBCOp"];
1829
+ if (input["pCredSN"] !== void 0) this["pCredSN"] = input["pCredSN"];
1830
+ if (input["pDif"] !== void 0) this["pDif"] = input["pDif"];
1831
+ if (input["pFCP"] !== void 0) this["pFCP"] = input["pFCP"];
1832
+ if (input["pFCPDif"] !== void 0) this["pFCPDif"] = input["pFCPDif"];
1833
+ if (input["pFCPST"] !== void 0) this["pFCPST"] = input["pFCPST"];
1834
+ if (input["pFCPSTRet"] !== void 0) this["pFCPSTRet"] = input["pFCPSTRet"];
1835
+ if (input["pICMS"] !== void 0) this["pICMS"] = input["pICMS"];
1836
+ if (input["pICMSEfet"] !== void 0) this["pICMSEfet"] = input["pICMSEfet"];
1837
+ if (input["pICMSST"] !== void 0) this["pICMSST"] = input["pICMSST"];
1838
+ if (input["pMVAST"] !== void 0) this["pMVAST"] = input["pMVAST"];
1839
+ if (input["pRedAdRem"] !== void 0) this["pRedAdRem"] = input["pRedAdRem"];
1840
+ if (input["pRedBC"] !== void 0) this["pRedBC"] = input["pRedBC"];
1841
+ if (input["pRedBCEfet"] !== void 0) this["pRedBCEfet"] = input["pRedBCEfet"];
1842
+ if (input["pRedBCST"] !== void 0) this["pRedBCST"] = input["pRedBCST"];
1843
+ if (input["pST"] !== void 0) this["pST"] = input["pST"];
1844
+ if (input["qBCMono"] !== void 0) this["qBCMono"] = input["qBCMono"];
1845
+ if (input["qBCMonoDif"] !== void 0) this["qBCMonoDif"] = input["qBCMonoDif"];
1846
+ if (input["qBCMonoRet"] !== void 0) this["qBCMonoRet"] = input["qBCMonoRet"];
1847
+ if (input["qBCMonoReten"] !== void 0) this["qBCMonoReten"] = input["qBCMonoReten"];
1848
+ if (input["UFST"] !== void 0) this["UFST"] = input["UFST"];
1849
+ if (input["vBC"] !== void 0) this["vBC"] = input["vBC"];
1850
+ if (input["vBCEfet"] !== void 0) this["vBCEfet"] = input["vBCEfet"];
1851
+ if (input["vBCFCP"] !== void 0) this["vBCFCP"] = input["vBCFCP"];
1852
+ if (input["vBCFCPST"] !== void 0) this["vBCFCPST"] = input["vBCFCPST"];
1853
+ if (input["vBCFCPSTRet"] !== void 0) this["vBCFCPSTRet"] = input["vBCFCPSTRet"];
1854
+ if (input["vBCST"] !== void 0) this["vBCST"] = input["vBCST"];
1855
+ if (input["vBCSTDest"] !== void 0) this["vBCSTDest"] = input["vBCSTDest"];
1856
+ if (input["vBCSTRet"] !== void 0) this["vBCSTRet"] = input["vBCSTRet"];
1857
+ if (input["vCredICMSSN"] !== void 0) this["vCredICMSSN"] = input["vCredICMSSN"];
1858
+ if (input["vFCP"] !== void 0) this["vFCP"] = input["vFCP"];
1859
+ if (input["vFCPDif"] !== void 0) this["vFCPDif"] = input["vFCPDif"];
1860
+ if (input["vFCPEfet"] !== void 0) this["vFCPEfet"] = input["vFCPEfet"];
1861
+ if (input["vFCPST"] !== void 0) this["vFCPST"] = input["vFCPST"];
1862
+ if (input["vFCPSTRet"] !== void 0) this["vFCPSTRet"] = input["vFCPSTRet"];
1863
+ if (input["vICMS"] !== void 0) this["vICMS"] = input["vICMS"];
1864
+ if (input["vICMSDeson"] !== void 0) this["vICMSDeson"] = input["vICMSDeson"];
1865
+ if (input["vICMSDif"] !== void 0) this["vICMSDif"] = input["vICMSDif"];
1866
+ if (input["vICMSEfet"] !== void 0) this["vICMSEfet"] = input["vICMSEfet"];
1867
+ if (input["vICMSMono"] !== void 0) this["vICMSMono"] = input["vICMSMono"];
1868
+ if (input["vICMSMonoDif"] !== void 0) this["vICMSMonoDif"] = input["vICMSMonoDif"];
1869
+ if (input["vICMSMonoOp"] !== void 0) this["vICMSMonoOp"] = input["vICMSMonoOp"];
1870
+ if (input["vICMSMonoRet"] !== void 0) this["vICMSMonoRet"] = input["vICMSMonoRet"];
1871
+ if (input["vICMSMonoReten"] !== void 0) this["vICMSMonoReten"] = input["vICMSMonoReten"];
1872
+ if (input["vICMSOp"] !== void 0) this["vICMSOp"] = input["vICMSOp"];
1873
+ if (input["vICMSST"] !== void 0) this["vICMSST"] = input["vICMSST"];
1874
+ if (input["vICMSSTDeson"] !== void 0) this["vICMSSTDeson"] = input["vICMSSTDeson"];
1875
+ if (input["vICMSSTDest"] !== void 0) this["vICMSSTDest"] = input["vICMSSTDest"];
1876
+ if (input["vICMSSTRet"] !== void 0) this["vICMSSTRet"] = input["vICMSSTRet"];
1877
+ if (input["vICMSSubstituto"] !== void 0) this["vICMSSubstituto"] = input["vICMSSubstituto"];
1878
+ }
1879
+ };
1880
+ var TICMSComb = class {
1881
+ "vBCICMS";
1882
+ "vBCICMSST";
1883
+ "vICMS";
1884
+ "vICMSST";
1885
+ constructor(input = {}) {
1886
+ validateModel("TICMSComb", input);
1887
+ if (input["vBCICMS"] !== void 0) this["vBCICMS"] = input["vBCICMS"];
1888
+ if (input["vBCICMSST"] !== void 0) this["vBCICMSST"] = input["vBCICMSST"];
1889
+ if (input["vICMS"] !== void 0) this["vICMS"] = input["vICMS"];
1890
+ if (input["vICMSST"] !== void 0) this["vICMSST"] = input["vICMSST"];
1891
+ }
1892
+ };
1893
+ var TICMSCons = class {
1894
+ "UFcons";
1895
+ "vBCICMSSTCons";
1896
+ "vICMSSTCons";
1897
+ constructor(input = {}) {
1898
+ validateModel("TICMSCons", input);
1899
+ if (input["UFcons"] !== void 0) this["UFcons"] = input["UFcons"];
1900
+ if (input["vBCICMSSTCons"] !== void 0) this["vBCICMSSTCons"] = input["vBCICMSSTCons"];
1901
+ if (input["vICMSSTCons"] !== void 0) this["vICMSSTCons"] = input["vICMSSTCons"];
1902
+ }
1903
+ };
1904
+ var TICMSInter = class {
1905
+ "vBCICMSSTDest";
1906
+ "vICMSSTDest";
1907
+ constructor(input = {}) {
1908
+ validateModel("TICMSInter", input);
1909
+ if (input["vBCICMSSTDest"] !== void 0) this["vBCICMSSTDest"] = input["vBCICMSSTDest"];
1910
+ if (input["vICMSSTDest"] !== void 0) this["vICMSSTDest"] = input["vICMSSTDest"];
1911
+ }
1912
+ };
1913
+ var TICMSTot = class {
1914
+ "qBCMono";
1915
+ "qBCMonoRet";
1916
+ "qBCMonoReten";
1917
+ "vBC";
1918
+ "vBCST";
1919
+ "vCOFINS";
1920
+ "vDesc";
1921
+ "vFCP";
1922
+ "vFCPST";
1923
+ "vFCPSTRet";
1924
+ "vFCPUFDest";
1925
+ "vFrete";
1926
+ "vICMS";
1927
+ "vICMSDeson";
1928
+ "vICMSMono";
1929
+ "vICMSMonoRet";
1930
+ "vICMSMonoReten";
1931
+ "vICMSUFDest";
1932
+ "vICMSUFRemet";
1933
+ "vII";
1934
+ "vIPI";
1935
+ "vIPIDevol";
1936
+ "vNF";
1937
+ "vOutro";
1938
+ "vPIS";
1939
+ "vProd";
1940
+ "vSeg";
1941
+ "vST";
1942
+ "vTotTrib";
1943
+ constructor(input = {}) {
1944
+ validateModel("TICMSTot", input);
1945
+ if (input["qBCMono"] !== void 0) this["qBCMono"] = input["qBCMono"];
1946
+ if (input["qBCMonoRet"] !== void 0) this["qBCMonoRet"] = input["qBCMonoRet"];
1947
+ if (input["qBCMonoReten"] !== void 0) this["qBCMonoReten"] = input["qBCMonoReten"];
1948
+ if (input["vBC"] !== void 0) this["vBC"] = input["vBC"];
1949
+ if (input["vBCST"] !== void 0) this["vBCST"] = input["vBCST"];
1950
+ if (input["vCOFINS"] !== void 0) this["vCOFINS"] = input["vCOFINS"];
1951
+ if (input["vDesc"] !== void 0) this["vDesc"] = input["vDesc"];
1952
+ if (input["vFCP"] !== void 0) this["vFCP"] = input["vFCP"];
1953
+ if (input["vFCPST"] !== void 0) this["vFCPST"] = input["vFCPST"];
1954
+ if (input["vFCPSTRet"] !== void 0) this["vFCPSTRet"] = input["vFCPSTRet"];
1955
+ if (input["vFCPUFDest"] !== void 0) this["vFCPUFDest"] = input["vFCPUFDest"];
1956
+ if (input["vFrete"] !== void 0) this["vFrete"] = input["vFrete"];
1957
+ if (input["vICMS"] !== void 0) this["vICMS"] = input["vICMS"];
1958
+ if (input["vICMSDeson"] !== void 0) this["vICMSDeson"] = input["vICMSDeson"];
1959
+ if (input["vICMSMono"] !== void 0) this["vICMSMono"] = input["vICMSMono"];
1960
+ if (input["vICMSMonoRet"] !== void 0) this["vICMSMonoRet"] = input["vICMSMonoRet"];
1961
+ if (input["vICMSMonoReten"] !== void 0) this["vICMSMonoReten"] = input["vICMSMonoReten"];
1962
+ if (input["vICMSUFDest"] !== void 0) this["vICMSUFDest"] = input["vICMSUFDest"];
1963
+ if (input["vICMSUFRemet"] !== void 0) this["vICMSUFRemet"] = input["vICMSUFRemet"];
1964
+ if (input["vII"] !== void 0) this["vII"] = input["vII"];
1965
+ if (input["vIPI"] !== void 0) this["vIPI"] = input["vIPI"];
1966
+ if (input["vIPIDevol"] !== void 0) this["vIPIDevol"] = input["vIPIDevol"];
1967
+ if (input["vNF"] !== void 0) this["vNF"] = input["vNF"];
1968
+ if (input["vOutro"] !== void 0) this["vOutro"] = input["vOutro"];
1969
+ if (input["vPIS"] !== void 0) this["vPIS"] = input["vPIS"];
1970
+ if (input["vProd"] !== void 0) this["vProd"] = input["vProd"];
1971
+ if (input["vSeg"] !== void 0) this["vSeg"] = input["vSeg"];
1972
+ if (input["vST"] !== void 0) this["vST"] = input["vST"];
1973
+ if (input["vTotTrib"] !== void 0) this["vTotTrib"] = input["vTotTrib"];
1974
+ }
1975
+ };
1976
+ var TICMSUFDest = class {
1977
+ "pFCPUFDest";
1978
+ "pICMSInter";
1979
+ "pICMSInterPart";
1980
+ "pICMSUFDest";
1981
+ "vBCFCPUFDest";
1982
+ "vBCUFDest";
1983
+ "vFCPUFDest";
1984
+ "vICMSUFDest";
1985
+ "vICMSUFRemet";
1986
+ constructor(input = {}) {
1987
+ validateModel("TICMSUFDest", input);
1988
+ if (input["pFCPUFDest"] !== void 0) this["pFCPUFDest"] = input["pFCPUFDest"];
1989
+ if (input["pICMSInter"] !== void 0) this["pICMSInter"] = input["pICMSInter"];
1990
+ if (input["pICMSInterPart"] !== void 0) this["pICMSInterPart"] = input["pICMSInterPart"];
1991
+ if (input["pICMSUFDest"] !== void 0) this["pICMSUFDest"] = input["pICMSUFDest"];
1992
+ if (input["vBCFCPUFDest"] !== void 0) this["vBCFCPUFDest"] = input["vBCFCPUFDest"];
1993
+ if (input["vBCUFDest"] !== void 0) this["vBCUFDest"] = input["vBCUFDest"];
1994
+ if (input["vFCPUFDest"] !== void 0) this["vFCPUFDest"] = input["vFCPUFDest"];
1995
+ if (input["vICMSUFDest"] !== void 0) this["vICMSUFDest"] = input["vICMSUFDest"];
1996
+ if (input["vICMSUFRemet"] !== void 0) this["vICMSUFRemet"] = input["vICMSUFRemet"];
1997
+ }
1998
+ };
1999
+ var TIde = class {
2000
+ "cDV";
2001
+ "cIndOp";
2002
+ "cMunFG";
2003
+ "cMunFGIBS";
2004
+ "cNF";
2005
+ "cUF";
2006
+ "dEmi";
2007
+ "dhCont";
2008
+ "dPrevEntrega";
2009
+ "dSaiEnt";
2010
+ /** Pascal streaming default: fnNormal. Omission preserves the native constructor. */
2011
+ "finNFe";
2012
+ "gCompraGov" = new TgCompraGov();
2013
+ "gPagAntecipado" = new TgPagAntecipado();
2014
+ "hSaiEnt";
2015
+ "idDest";
2016
+ "indFinal";
2017
+ "indIntermed";
2018
+ /** Pascal streaming default: ipPrazo. Omission preserves the native constructor. */
2019
+ "indPag";
2020
+ "indPres";
2021
+ "modelo";
2022
+ "natOp";
2023
+ "NFref" = new TNFrefCollection();
2024
+ "nNF";
2025
+ /** Pascal streaming default: peAplicativoContribuinte. Omission preserves the native constructor. */
2026
+ "procEmi";
2027
+ "serie";
2028
+ /** Pascal streaming default: taHomologacao. Omission preserves the native constructor. */
2029
+ "tpAmb";
2030
+ /** Pascal streaming default: teNormal. Omission preserves the native constructor. */
2031
+ "tpEmis";
2032
+ /** Pascal streaming default: tiPaisagem. Omission preserves the native constructor. */
2033
+ "tpImp";
2034
+ /** Pascal streaming default: tnSaida. Omission preserves the native constructor. */
2035
+ "tpNF";
2036
+ "tpNFCredito";
2037
+ "tpNFDebito";
2038
+ "verProc";
2039
+ "xJust";
2040
+ constructor(input = {}) {
2041
+ validateModel("TIde", input);
2042
+ if (input["cDV"] !== void 0) this["cDV"] = input["cDV"];
2043
+ if (input["cIndOp"] !== void 0) this["cIndOp"] = input["cIndOp"];
2044
+ if (input["cMunFG"] !== void 0) this["cMunFG"] = input["cMunFG"];
2045
+ if (input["cMunFGIBS"] !== void 0) this["cMunFGIBS"] = input["cMunFGIBS"];
2046
+ if (input["cNF"] !== void 0) this["cNF"] = input["cNF"];
2047
+ if (input["cUF"] !== void 0) this["cUF"] = input["cUF"];
2048
+ if (input["dEmi"] !== void 0) this["dEmi"] = input["dEmi"];
2049
+ if (input["dhCont"] !== void 0) this["dhCont"] = input["dhCont"];
2050
+ if (input["dPrevEntrega"] !== void 0) this["dPrevEntrega"] = input["dPrevEntrega"];
2051
+ if (input["dSaiEnt"] !== void 0) this["dSaiEnt"] = input["dSaiEnt"];
2052
+ if (input["finNFe"] !== void 0) this["finNFe"] = input["finNFe"];
2053
+ if (input["gCompraGov"] !== void 0) this["gCompraGov"] = new TgCompraGov(input["gCompraGov"]);
2054
+ if (input["gPagAntecipado"] !== void 0) this["gPagAntecipado"] = new TgPagAntecipado(input["gPagAntecipado"]);
2055
+ if (input["hSaiEnt"] !== void 0) this["hSaiEnt"] = input["hSaiEnt"];
2056
+ if (input["idDest"] !== void 0) this["idDest"] = input["idDest"];
2057
+ if (input["indFinal"] !== void 0) this["indFinal"] = input["indFinal"];
2058
+ if (input["indIntermed"] !== void 0) this["indIntermed"] = input["indIntermed"];
2059
+ if (input["indPag"] !== void 0) this["indPag"] = input["indPag"];
2060
+ if (input["indPres"] !== void 0) this["indPres"] = input["indPres"];
2061
+ if (input["modelo"] !== void 0) this["modelo"] = input["modelo"];
2062
+ if (input["natOp"] !== void 0) this["natOp"] = input["natOp"];
2063
+ if (input["NFref"] !== void 0) this["NFref"] = Object.assign(new TNFrefCollection(), input["NFref"].map((v) => new TNFrefCollectionItem(v)));
2064
+ if (input["nNF"] !== void 0) this["nNF"] = input["nNF"];
2065
+ if (input["procEmi"] !== void 0) this["procEmi"] = input["procEmi"];
2066
+ if (input["serie"] !== void 0) this["serie"] = input["serie"];
2067
+ if (input["tpAmb"] !== void 0) this["tpAmb"] = input["tpAmb"];
2068
+ if (input["tpEmis"] !== void 0) this["tpEmis"] = input["tpEmis"];
2069
+ if (input["tpImp"] !== void 0) this["tpImp"] = input["tpImp"];
2070
+ if (input["tpNF"] !== void 0) this["tpNF"] = input["tpNF"];
2071
+ if (input["tpNFCredito"] !== void 0) this["tpNFCredito"] = input["tpNFCredito"];
2072
+ if (input["tpNFDebito"] !== void 0) this["tpNFDebito"] = input["tpNFDebito"];
2073
+ if (input["verProc"] !== void 0) this["verProc"] = input["verProc"];
2074
+ if (input["xJust"] !== void 0) this["xJust"] = input["xJust"];
2075
+ }
2076
+ };
2077
+ var TII = class {
2078
+ "vBc";
2079
+ "vDespAdu";
2080
+ "vII";
2081
+ "vIOF";
2082
+ constructor(input = {}) {
2083
+ validateModel("TII", input);
2084
+ if (input["vBc"] !== void 0) this["vBc"] = input["vBc"];
2085
+ if (input["vDespAdu"] !== void 0) this["vDespAdu"] = input["vDespAdu"];
2086
+ if (input["vII"] !== void 0) this["vII"] = input["vII"];
2087
+ if (input["vIOF"] !== void 0) this["vIOF"] = input["vIOF"];
2088
+ }
2089
+ };
2090
+ var TImposto = class {
2091
+ "COFINS" = new TCOFINS();
2092
+ "COFINSST" = new TCOFINSST();
2093
+ "IBSCBS" = new TIBSCBS();
2094
+ "ICMS" = new TICMS();
2095
+ "ICMSUFDest" = new TICMSUFDest();
2096
+ "II" = new TII();
2097
+ "IPI" = new TIPI();
2098
+ "ISel" = new TgIS();
2099
+ "ISSQN" = new TISSQN();
2100
+ "PIS" = new TPIS();
2101
+ "PISST" = new TPISST();
2102
+ "vTotTrib";
2103
+ constructor(input = {}) {
2104
+ validateModel("TImposto", input);
2105
+ if (input["COFINS"] !== void 0) this["COFINS"] = new TCOFINS(input["COFINS"]);
2106
+ if (input["COFINSST"] !== void 0) this["COFINSST"] = new TCOFINSST(input["COFINSST"]);
2107
+ if (input["IBSCBS"] !== void 0) this["IBSCBS"] = new TIBSCBS(input["IBSCBS"]);
2108
+ if (input["ICMS"] !== void 0) this["ICMS"] = new TICMS(input["ICMS"]);
2109
+ if (input["ICMSUFDest"] !== void 0) this["ICMSUFDest"] = new TICMSUFDest(input["ICMSUFDest"]);
2110
+ if (input["II"] !== void 0) this["II"] = new TII(input["II"]);
2111
+ if (input["IPI"] !== void 0) this["IPI"] = new TIPI(input["IPI"]);
2112
+ if (input["ISel"] !== void 0) this["ISel"] = new TgIS(input["ISel"]);
2113
+ if (input["ISSQN"] !== void 0) this["ISSQN"] = new TISSQN(input["ISSQN"]);
2114
+ if (input["PIS"] !== void 0) this["PIS"] = new TPIS(input["PIS"]);
2115
+ if (input["PISST"] !== void 0) this["PISST"] = new TPISST(input["PISST"]);
2116
+ if (input["vTotTrib"] !== void 0) this["vTotTrib"] = input["vTotTrib"];
2117
+ }
2118
+ };
2119
+ var TIndicadorEx = Object.freeze({ "tieNenhum": "tieNenhum", "tieSim": "tieSim", "tieNao": "tieNao" });
2120
+ var TindIEDest = Object.freeze({ "inContribuinte": "inContribuinte", "inIsento": "inIsento", "inNaoContribuinte": "inNaoContribuinte" });
2121
+ var TindImport = Object.freeze({ "iiNacional": "iiNacional", "iiImportado": "iiImportado" });
2122
+ var TindIncentivo = Object.freeze({ "iiSim": "iiSim", "iiNao": "iiNao" });
2123
+ var TindIntermed = Object.freeze({ "iiSemOperacao": "iiSemOperacao", "iiOperacaoSemIntermediador": "iiOperacaoSemIntermediador", "iiOperacaoComIntermediador": "iiOperacaoComIntermediador" });
2124
+ var TIndSomaCOFINSST = Object.freeze({ "iscNenhum": "iscNenhum", "iscCOFINSSTNaoCompoe": "iscCOFINSSTNaoCompoe", "iscCOFINSSTCompoe": "iscCOFINSSTCompoe" });
2125
+ var TIndSomaPISST = Object.freeze({ "ispNenhum": "ispNenhum", "ispPISSTNaoCompoe": "ispPISSTNaoCompoe", "ispPISSTCompoe": "ispPISSTCompoe" });
2126
+ var TInfAdic = class {
2127
+ "infAdFisco";
2128
+ "infCpl";
2129
+ "obsCont" = new TobsContCollection();
2130
+ "obsFisco" = new TobsFiscoCollection();
2131
+ "procRef" = new TprocRefCollection();
2132
+ constructor(input = {}) {
2133
+ validateModel("TInfAdic", input);
2134
+ if (input["infAdFisco"] !== void 0) this["infAdFisco"] = input["infAdFisco"];
2135
+ if (input["infCpl"] !== void 0) this["infCpl"] = input["infCpl"];
2136
+ if (input["obsCont"] !== void 0) this["obsCont"] = Object.assign(new TobsContCollection(), input["obsCont"].map((v) => new TobsContCollectionItem(v)));
2137
+ if (input["obsFisco"] !== void 0) this["obsFisco"] = Object.assign(new TobsFiscoCollection(), input["obsFisco"].map((v) => new TobsFiscoCollectionItem(v)));
2138
+ if (input["procRef"] !== void 0) this["procRef"] = Object.assign(new TprocRefCollection(), input["procRef"].map((v) => new TprocRefCollectionItem(v)));
2139
+ }
2140
+ };
2141
+ var TinfIntermed = class {
2142
+ "CNPJ";
2143
+ "idCadIntTran";
2144
+ constructor(input = {}) {
2145
+ validateModel("TinfIntermed", input);
2146
+ if (input["CNPJ"] !== void 0) this["CNPJ"] = input["CNPJ"];
2147
+ if (input["idCadIntTran"] !== void 0) this["idCadIntTran"] = input["idCadIntTran"];
2148
+ }
2149
+ };
2150
+ var TinfNFe = class {
2151
+ "ID";
2152
+ "Versao";
2153
+ constructor(input = {}) {
2154
+ validateModel("TinfNFe", input);
2155
+ if (input["ID"] !== void 0) this["ID"] = input["ID"];
2156
+ if (input["Versao"] !== void 0) this["Versao"] = input["Versao"];
2157
+ }
2158
+ };
2159
+ var TinfNFeSupl = class {
2160
+ "qrCode";
2161
+ "urlChave";
2162
+ constructor(input = {}) {
2163
+ validateModel("TinfNFeSupl", input);
2164
+ if (input["qrCode"] !== void 0) this["qrCode"] = input["qrCode"];
2165
+ if (input["urlChave"] !== void 0) this["urlChave"] = input["urlChave"];
2166
+ }
2167
+ };
2168
+ var TinfPAA = class {
2169
+ "CNPJPAA";
2170
+ "Exponent";
2171
+ "Modulus";
2172
+ "SignatureValue";
2173
+ constructor(input = {}) {
2174
+ validateModel("TinfPAA", input);
2175
+ if (input["CNPJPAA"] !== void 0) this["CNPJPAA"] = input["CNPJPAA"];
2176
+ if (input["Exponent"] !== void 0) this["Exponent"] = input["Exponent"];
2177
+ if (input["Modulus"] !== void 0) this["Modulus"] = input["Modulus"];
2178
+ if (input["SignatureValue"] !== void 0) this["SignatureValue"] = input["SignatureValue"];
2179
+ }
2180
+ };
2181
+ var TinfRespTec = class {
2182
+ "CNPJ";
2183
+ "email";
2184
+ "fone";
2185
+ "hashCSRT";
2186
+ "idCSRT";
2187
+ "xContato";
2188
+ constructor(input = {}) {
2189
+ validateModel("TinfRespTec", input);
2190
+ if (input["CNPJ"] !== void 0) this["CNPJ"] = input["CNPJ"];
2191
+ if (input["email"] !== void 0) this["email"] = input["email"];
2192
+ if (input["fone"] !== void 0) this["fone"] = input["fone"];
2193
+ if (input["hashCSRT"] !== void 0) this["hashCSRT"] = input["hashCSRT"];
2194
+ if (input["idCSRT"] !== void 0) this["idCSRT"] = input["idCSRT"];
2195
+ if (input["xContato"] !== void 0) this["xContato"] = input["xContato"];
2196
+ }
2197
+ };
2198
+ var TIPI = class {
2199
+ "cEnq";
2200
+ "clEnq";
2201
+ "CNPJProd";
2202
+ "cSelo";
2203
+ /** Pascal streaming default: ipi00. Omission preserves the native constructor. */
2204
+ "CST";
2205
+ "pIPI";
2206
+ "qSelo";
2207
+ "qUnid";
2208
+ "vBC";
2209
+ "vIPI";
2210
+ "vUnid";
2211
+ constructor(input = {}) {
2212
+ validateModel("TIPI", input);
2213
+ if (input["cEnq"] !== void 0) this["cEnq"] = input["cEnq"];
2214
+ if (input["clEnq"] !== void 0) this["clEnq"] = input["clEnq"];
2215
+ if (input["CNPJProd"] !== void 0) this["CNPJProd"] = input["CNPJProd"];
2216
+ if (input["cSelo"] !== void 0) this["cSelo"] = input["cSelo"];
2217
+ if (input["CST"] !== void 0) this["CST"] = input["CST"];
2218
+ if (input["pIPI"] !== void 0) this["pIPI"] = input["pIPI"];
2219
+ if (input["qSelo"] !== void 0) this["qSelo"] = input["qSelo"];
2220
+ if (input["qUnid"] !== void 0) this["qUnid"] = input["qUnid"];
2221
+ if (input["vBC"] !== void 0) this["vBC"] = input["vBC"];
2222
+ if (input["vIPI"] !== void 0) this["vIPI"] = input["vIPI"];
2223
+ if (input["vUnid"] !== void 0) this["vUnid"] = input["vUnid"];
2224
+ }
2225
+ };
2226
+ var TISSQN = class {
2227
+ "cListServ";
2228
+ "cMun";
2229
+ "cMunFG";
2230
+ "cPais";
2231
+ "cServico";
2232
+ /** Pascal streaming default: ISSQNcSitTribVazio. Omission preserves the native constructor. */
2233
+ "cSitTrib";
2234
+ "indIncentivo";
2235
+ "indISS";
2236
+ "indISSRet";
2237
+ "nProcesso";
2238
+ "vAliq";
2239
+ "vBC";
2240
+ "vDeducao";
2241
+ "vDescCond";
2242
+ "vDescIncond";
2243
+ "vISSQN";
2244
+ "vISSRet";
2245
+ "vOutro";
2246
+ constructor(input = {}) {
2247
+ validateModel("TISSQN", input);
2248
+ if (input["cListServ"] !== void 0) this["cListServ"] = input["cListServ"];
2249
+ if (input["cMun"] !== void 0) this["cMun"] = input["cMun"];
2250
+ if (input["cMunFG"] !== void 0) this["cMunFG"] = input["cMunFG"];
2251
+ if (input["cPais"] !== void 0) this["cPais"] = input["cPais"];
2252
+ if (input["cServico"] !== void 0) this["cServico"] = input["cServico"];
2253
+ if (input["cSitTrib"] !== void 0) this["cSitTrib"] = input["cSitTrib"];
2254
+ if (input["indIncentivo"] !== void 0) this["indIncentivo"] = input["indIncentivo"];
2255
+ if (input["indISS"] !== void 0) this["indISS"] = input["indISS"];
2256
+ if (input["indISSRet"] !== void 0) this["indISSRet"] = input["indISSRet"];
2257
+ if (input["nProcesso"] !== void 0) this["nProcesso"] = input["nProcesso"];
2258
+ if (input["vAliq"] !== void 0) this["vAliq"] = input["vAliq"];
2259
+ if (input["vBC"] !== void 0) this["vBC"] = input["vBC"];
2260
+ if (input["vDeducao"] !== void 0) this["vDeducao"] = input["vDeducao"];
2261
+ if (input["vDescCond"] !== void 0) this["vDescCond"] = input["vDescCond"];
2262
+ if (input["vDescIncond"] !== void 0) this["vDescIncond"] = input["vDescIncond"];
2263
+ if (input["vISSQN"] !== void 0) this["vISSQN"] = input["vISSQN"];
2264
+ if (input["vISSRet"] !== void 0) this["vISSRet"] = input["vISSRet"];
2265
+ if (input["vOutro"] !== void 0) this["vOutro"] = input["vOutro"];
2266
+ }
2267
+ };
2268
+ var TISSQNtot = class {
2269
+ "cRegTrib";
2270
+ "dCompet";
2271
+ "vBC";
2272
+ "vCOFINS";
2273
+ "vDeducao";
2274
+ "vDescCond";
2275
+ "vDescIncond";
2276
+ "vISS";
2277
+ "vISSRet";
2278
+ "vOutro";
2279
+ "vPIS";
2280
+ "vServ";
2281
+ constructor(input = {}) {
2282
+ validateModel("TISSQNtot", input);
2283
+ if (input["cRegTrib"] !== void 0) this["cRegTrib"] = input["cRegTrib"];
2284
+ if (input["dCompet"] !== void 0) this["dCompet"] = input["dCompet"];
2285
+ if (input["vBC"] !== void 0) this["vBC"] = input["vBC"];
2286
+ if (input["vCOFINS"] !== void 0) this["vCOFINS"] = input["vCOFINS"];
2287
+ if (input["vDeducao"] !== void 0) this["vDeducao"] = input["vDeducao"];
2288
+ if (input["vDescCond"] !== void 0) this["vDescCond"] = input["vDescCond"];
2289
+ if (input["vDescIncond"] !== void 0) this["vDescIncond"] = input["vDescIncond"];
2290
+ if (input["vISS"] !== void 0) this["vISS"] = input["vISS"];
2291
+ if (input["vISSRet"] !== void 0) this["vISSRet"] = input["vISSRet"];
2292
+ if (input["vOutro"] !== void 0) this["vOutro"] = input["vOutro"];
2293
+ if (input["vPIS"] !== void 0) this["vPIS"] = input["vPIS"];
2294
+ if (input["vServ"] !== void 0) this["vServ"] = input["vServ"];
2295
+ }
2296
+ };
2297
+ var TISTot = class {
2298
+ "vIS";
2299
+ constructor(input = {}) {
2300
+ validateModel("TISTot", input);
2301
+ if (input["vIS"] !== void 0) this["vIS"] = input["vIS"];
2302
+ }
2303
+ };
2304
+ var TLacresCollection = class extends Array {
2305
+ New(input = {}) {
2306
+ const item = new TLacresCollectionItem(input);
2307
+ this.push(item);
2308
+ return item;
2309
+ }
2310
+ };
2311
+ var TLacresCollectionItem = class {
2312
+ "nLacre";
2313
+ constructor(input = {}) {
2314
+ validateModel("TLacresCollectionItem", input);
2315
+ if (input["nLacre"] !== void 0) this["nLacre"] = input["nLacre"];
2316
+ }
2317
+ };
2318
+ var TMedCollection = class extends Array {
2319
+ New(input = {}) {
2320
+ const item = new TMedCollectionItem(input);
2321
+ this.push(item);
2322
+ return item;
2323
+ }
2324
+ };
2325
+ var TMedCollectionItem = class {
2326
+ "cProdANVISA";
2327
+ "dFab";
2328
+ "dVal";
2329
+ "nLote";
2330
+ "qLote";
2331
+ "vPMC";
2332
+ "xMotivoIsencao";
2333
+ constructor(input = {}) {
2334
+ validateModel("TMedCollectionItem", input);
2335
+ if (input["cProdANVISA"] !== void 0) this["cProdANVISA"] = input["cProdANVISA"];
2336
+ if (input["dFab"] !== void 0) this["dFab"] = input["dFab"];
2337
+ if (input["dVal"] !== void 0) this["dVal"] = input["dVal"];
2338
+ if (input["nLote"] !== void 0) this["nLote"] = input["nLote"];
2339
+ if (input["qLote"] !== void 0) this["qLote"] = input["qLote"];
2340
+ if (input["vPMC"] !== void 0) this["vPMC"] = input["vPMC"];
2341
+ if (input["xMotivoIsencao"] !== void 0) this["xMotivoIsencao"] = input["xMotivoIsencao"];
2342
+ }
2343
+ };
2344
+ var TmotRedAdRem = Object.freeze({ "motTranspColetivo": "motTranspColetivo", "motOutros": "motOutros" });
2345
+ var TNFe = class {
2346
+ "agropecuario" = new Tagropecuario();
2347
+ "autXML" = new TautXMLCollection();
2348
+ "Avulsa" = new TAvulsa();
2349
+ "cana" = new Tcana();
2350
+ "Cobr" = new TCobr();
2351
+ "compra" = new TCompra();
2352
+ "Dest" = new TDest();
2353
+ "Det" = new TDetCollection();
2354
+ "Emit" = new TEmit();
2355
+ "Entrega" = new TEntrega();
2356
+ "exporta" = new TExporta();
2357
+ "Ide" = new TIde();
2358
+ "InfAdic" = new TInfAdic();
2359
+ "infIntermed" = new TinfIntermed();
2360
+ "infNFe" = new TinfNFe();
2361
+ "infNFeSupl";
2362
+ "infPAA" = new TinfPAA();
2363
+ "infRespTec" = new TinfRespTec();
2364
+ "pag" = new TpagCollection();
2365
+ "procNFe";
2366
+ "Retirada" = new TRetirada();
2367
+ "signature";
2368
+ "Total" = new TTotal();
2369
+ "Transp" = new TTransp();
2370
+ constructor(input = {}) {
2371
+ validateModel("TNFe", input);
2372
+ if (input["agropecuario"] !== void 0) this["agropecuario"] = new Tagropecuario(input["agropecuario"]);
2373
+ if (input["autXML"] !== void 0) this["autXML"] = Object.assign(new TautXMLCollection(), input["autXML"].map((v) => new TautXMLCollectionItem(v)));
2374
+ if (input["Avulsa"] !== void 0) this["Avulsa"] = new TAvulsa(input["Avulsa"]);
2375
+ if (input["cana"] !== void 0) this["cana"] = new Tcana(input["cana"]);
2376
+ if (input["Cobr"] !== void 0) this["Cobr"] = new TCobr(input["Cobr"]);
2377
+ if (input["compra"] !== void 0) this["compra"] = new TCompra(input["compra"]);
2378
+ if (input["Dest"] !== void 0) this["Dest"] = new TDest(input["Dest"]);
2379
+ if (input["Det"] !== void 0) this["Det"] = Object.assign(new TDetCollection(), input["Det"].map((v) => new TDetCollectionItem(v)));
2380
+ if (input["Emit"] !== void 0) this["Emit"] = new TEmit(input["Emit"]);
2381
+ if (input["Entrega"] !== void 0) this["Entrega"] = new TEntrega(input["Entrega"]);
2382
+ if (input["exporta"] !== void 0) this["exporta"] = new TExporta(input["exporta"]);
2383
+ if (input["Ide"] !== void 0) this["Ide"] = new TIde(input["Ide"]);
2384
+ if (input["InfAdic"] !== void 0) this["InfAdic"] = new TInfAdic(input["InfAdic"]);
2385
+ if (input["infIntermed"] !== void 0) this["infIntermed"] = new TinfIntermed(input["infIntermed"]);
2386
+ if (input["infNFe"] !== void 0) this["infNFe"] = new TinfNFe(input["infNFe"]);
2387
+ if (input["infPAA"] !== void 0) this["infPAA"] = new TinfPAA(input["infPAA"]);
2388
+ if (input["infRespTec"] !== void 0) this["infRespTec"] = new TinfRespTec(input["infRespTec"]);
2389
+ if (input["pag"] !== void 0) this["pag"] = Object.assign(new TpagCollection(), input["pag"].map((v) => new TpagCollectionItem(v)));
2390
+ if (input["Retirada"] !== void 0) this["Retirada"] = new TRetirada(input["Retirada"]);
2391
+ if (input["Total"] !== void 0) this["Total"] = new TTotal(input["Total"]);
2392
+ if (input["Transp"] !== void 0) this["Transp"] = new TTransp(input["Transp"]);
2393
+ }
2394
+ };
2395
+ var TNFrefCollection = class extends Array {
2396
+ New(input = {}) {
2397
+ const item = new TNFrefCollectionItem(input);
2398
+ this.push(item);
2399
+ return item;
2400
+ }
2401
+ };
2402
+ var TNFrefCollectionItem = class {
2403
+ "refCTe";
2404
+ "RefECF" = new TRefECF();
2405
+ "RefNF" = new TRefNF();
2406
+ "refNFe";
2407
+ "refNFeSig";
2408
+ "RefNFP" = new TRefNFP();
2409
+ constructor(input = {}) {
2410
+ validateModel("TNFrefCollectionItem", input);
2411
+ if (input["refCTe"] !== void 0) this["refCTe"] = input["refCTe"];
2412
+ if (input["RefECF"] !== void 0) this["RefECF"] = new TRefECF(input["RefECF"]);
2413
+ if (input["RefNF"] !== void 0) this["RefNF"] = new TRefNF(input["RefNF"]);
2414
+ if (input["refNFe"] !== void 0) this["refNFe"] = input["refNFe"];
2415
+ if (input["refNFeSig"] !== void 0) this["refNFeSig"] = input["refNFeSig"];
2416
+ if (input["RefNFP"] !== void 0) this["RefNFP"] = new TRefNFP(input["RefNFP"]);
2417
+ }
2418
+ };
2419
+ var TNVECollection = class extends Array {
2420
+ New(input = {}) {
2421
+ const item = new TNVECollectionItem(input);
2422
+ this.push(item);
2423
+ return item;
2424
+ }
2425
+ };
2426
+ var TNVECollectionItem = class {
2427
+ "NVE";
2428
+ constructor(input = {}) {
2429
+ validateModel("TNVECollectionItem", input);
2430
+ if (input["NVE"] !== void 0) this["NVE"] = input["NVE"];
2431
+ }
2432
+ };
2433
+ var TobsContCollection = class extends Array {
2434
+ New(input = {}) {
2435
+ const item = new TobsContCollectionItem(input);
2436
+ this.push(item);
2437
+ return item;
2438
+ }
2439
+ };
2440
+ var TobsContCollectionItem = class {
2441
+ "xCampo";
2442
+ "xTexto";
2443
+ constructor(input = {}) {
2444
+ validateModel("TobsContCollectionItem", input);
2445
+ if (input["xCampo"] !== void 0) this["xCampo"] = input["xCampo"];
2446
+ if (input["xTexto"] !== void 0) this["xTexto"] = input["xTexto"];
2447
+ }
2448
+ };
2449
+ var TobsFiscoCollection = class extends Array {
2450
+ New(input = {}) {
2451
+ const item = new TobsFiscoCollectionItem(input);
2452
+ this.push(item);
2453
+ return item;
2454
+ }
2455
+ };
2456
+ var TobsFiscoCollectionItem = class {
2457
+ "xCampo";
2458
+ "xTexto";
2459
+ constructor(input = {}) {
2460
+ validateModel("TobsFiscoCollectionItem", input);
2461
+ if (input["xCampo"] !== void 0) this["xCampo"] = input["xCampo"];
2462
+ if (input["xTexto"] !== void 0) this["xTexto"] = input["xTexto"];
2463
+ }
2464
+ };
2465
+ var TobsItem = class {
2466
+ "xCampo";
2467
+ "xTexto";
2468
+ constructor(input = {}) {
2469
+ validateModel("TobsItem", input);
2470
+ if (input["xCampo"] !== void 0) this["xCampo"] = input["xCampo"];
2471
+ if (input["xTexto"] !== void 0) this["xTexto"] = input["xTexto"];
2472
+ }
2473
+ };
2474
+ var TorigCombCollection = class extends Array {
2475
+ New(input = {}) {
2476
+ const item = new TorigCombCollectionItem(input);
2477
+ this.push(item);
2478
+ return item;
2479
+ }
2480
+ };
2481
+ var TorigCombCollectionItem = class {
2482
+ "cUFOrig";
2483
+ "indImport";
2484
+ "pOrig";
2485
+ constructor(input = {}) {
2486
+ validateModel("TorigCombCollectionItem", input);
2487
+ if (input["cUFOrig"] !== void 0) this["cUFOrig"] = input["cUFOrig"];
2488
+ if (input["indImport"] !== void 0) this["indImport"] = input["indImport"];
2489
+ if (input["pOrig"] !== void 0) this["pOrig"] = input["pOrig"];
2490
+ }
2491
+ };
2492
+ var TOrigemMercadoria = Object.freeze({ "oeNacional": "oeNacional", "oeEstrangeiraImportacaoDireta": "oeEstrangeiraImportacaoDireta", "oeEstrangeiraAdquiridaBrasil": "oeEstrangeiraAdquiridaBrasil", "oeNacionalConteudoImportacaoSuperior40": "oeNacionalConteudoImportacaoSuperior40", "oeNacionalProcessosBasicos": "oeNacionalProcessosBasicos", "oeNacionalConteudoImportacaoInferiorIgual40": "oeNacionalConteudoImportacaoInferiorIgual40", "oeEstrangeiraImportacaoDiretaSemSimilar": "oeEstrangeiraImportacaoDiretaSemSimilar", "oeEstrangeiraAdquiridaBrasilSemSimilar": "oeEstrangeiraAdquiridaBrasilSemSimilar", "oeNacionalConteudoImportacaoSuperior70": "oeNacionalConteudoImportacaoSuperior70", "oeReservadoParaUsoFuturo": "oeReservadoParaUsoFuturo", "oeVazio": "oeVazio" });
2493
+ var TpagCollection = class extends Array {
2494
+ New(input = {}) {
2495
+ const item = new TpagCollectionItem(input);
2496
+ this.push(item);
2497
+ return item;
2498
+ }
2499
+ };
2500
+ var TpagCollectionItem = class {
2501
+ "cAut";
2502
+ "CNPJ";
2503
+ "CNPJPag";
2504
+ "CNPJReceb";
2505
+ "dPag";
2506
+ "idTermPag";
2507
+ /** Pascal streaming default: ipNenhum. Omission preserves the native constructor. */
2508
+ "indPag";
2509
+ "tBand";
2510
+ "tPag";
2511
+ "tpIntegra";
2512
+ "UFPag";
2513
+ "vPag";
2514
+ "xPag";
2515
+ constructor(input = {}) {
2516
+ validateModel("TpagCollectionItem", input);
2517
+ if (input["cAut"] !== void 0) this["cAut"] = input["cAut"];
2518
+ if (input["CNPJ"] !== void 0) this["CNPJ"] = input["CNPJ"];
2519
+ if (input["CNPJPag"] !== void 0) this["CNPJPag"] = input["CNPJPag"];
2520
+ if (input["CNPJReceb"] !== void 0) this["CNPJReceb"] = input["CNPJReceb"];
2521
+ if (input["dPag"] !== void 0) this["dPag"] = input["dPag"];
2522
+ if (input["idTermPag"] !== void 0) this["idTermPag"] = input["idTermPag"];
2523
+ if (input["indPag"] !== void 0) this["indPag"] = input["indPag"];
2524
+ if (input["tBand"] !== void 0) this["tBand"] = input["tBand"];
2525
+ if (input["tPag"] !== void 0) this["tPag"] = input["tPag"];
2526
+ if (input["tpIntegra"] !== void 0) this["tpIntegra"] = input["tpIntegra"];
2527
+ if (input["UFPag"] !== void 0) this["UFPag"] = input["UFPag"];
2528
+ if (input["vPag"] !== void 0) this["vPag"] = input["vPag"];
2529
+ if (input["xPag"] !== void 0) this["xPag"] = input["xPag"];
2530
+ }
2531
+ };
2532
+ var TpcnBandeiraCartao = Object.freeze({ "bcVisa": "bcVisa", "bcMasterCard": "bcMasterCard", "bcAmericanExpress": "bcAmericanExpress", "bcSorocred": "bcSorocred", "bcDinersClub": "bcDinersClub", "bcElo": "bcElo", "bcHipercard": "bcHipercard", "bcAura": "bcAura", "bcCabal": "bcCabal", "bcAlelo": "bcAlelo", "bcBanesCard": "bcBanesCard", "bcCalCard": "bcCalCard", "bcCredz": "bcCredz", "bcDiscover": "bcDiscover", "bcGoodCard": "bcGoodCard", "bcGreenCard": "bcGreenCard", "bcHiper": "bcHiper", "bcJcB": "bcJcB", "bcMais": "bcMais", "bcMaxVan": "bcMaxVan", "bcPolicard": "bcPolicard", "bcRedeCompras": "bcRedeCompras", "bcSodexo": "bcSodexo", "bcValeCard": "bcValeCard", "bcVerocheque": "bcVerocheque", "bcVR": "bcVR", "bcTicket": "bcTicket", "bcOutros": "bcOutros" });
2533
+ var TpcnCondicaoVeiculo = Object.freeze({ "cvAcabado": "cvAcabado", "cvInacabado": "cvInacabado", "cvSemiAcabado": "cvSemiAcabado" });
2534
+ var TpcnConsumidorFinal = Object.freeze({ "cfNao": "cfNao", "cfConsumidorFinal": "cfConsumidorFinal" });
2535
+ var TpcnCRT = Object.freeze({ "crtSimplesNacional": "crtSimplesNacional", "crtSimplesExcessoReceita": "crtSimplesExcessoReceita", "crtRegimeNormal": "crtRegimeNormal", "crtMEI": "crtMEI" });
2536
+ var TpcnCstIpi = Object.freeze({ "ipi00": "ipi00", "ipi49": "ipi49", "ipi50": "ipi50", "ipi99": "ipi99", "ipi01": "ipi01", "ipi02": "ipi02", "ipi03": "ipi03", "ipi04": "ipi04", "ipi05": "ipi05", "ipi51": "ipi51", "ipi52": "ipi52", "ipi53": "ipi53", "ipi54": "ipi54", "ipi55": "ipi55" });
2537
+ var TpcnDestinoOperacao = Object.freeze({ "doInterna": "doInterna", "doInterestadual": "doInterestadual", "doExterior": "doExterior" });
2538
+ var TpcnDeterminacaoBaseIcms = Object.freeze({ "dbiMargemValorAgregado": "dbiMargemValorAgregado", "dbiPauta": "dbiPauta", "dbiPrecoTabelado": "dbiPrecoTabelado", "dbiValorOperacao": "dbiValorOperacao", "dbiNenhum": "dbiNenhum" });
2539
+ var TpcnDeterminacaoBaseIcmsST = Object.freeze({ "dbisPrecoTabelado": "dbisPrecoTabelado", "dbisListaNegativa": "dbisListaNegativa", "dbisListaPositiva": "dbisListaPositiva", "dbisListaNeutra": "dbisListaNeutra", "dbisMargemValorAgregado": "dbisMargemValorAgregado", "dbisPauta": "dbisPauta", "dbisValordaOperacao": "dbisValordaOperacao" });
2540
+ var TpcnECFModRef = Object.freeze({ "ECFModRefVazio": "ECFModRefVazio", "ECFModRef2B": "ECFModRef2B", "ECFModRef2C": "ECFModRef2C", "ECFModRef2D": "ECFModRef2D" });
2541
+ var TpcnFinalidadeNFe = Object.freeze({ "fnNormal": "fnNormal", "fnComplementar": "fnComplementar", "fnAjuste": "fnAjuste", "fnDevolucao": "fnDevolucao", "fnCredito": "fnCredito", "fnDebito": "fnDebito" });
2542
+ var TpcnFormaPagamento = Object.freeze({ "fpDinheiro": "fpDinheiro", "fpCheque": "fpCheque", "fpCartaoCredito": "fpCartaoCredito", "fpCartaoDebito": "fpCartaoDebito", "fpCreditoLoja": "fpCreditoLoja", "fpValeAlimentacao": "fpValeAlimentacao", "fpValeRefeicao": "fpValeRefeicao", "fpValePresente": "fpValePresente", "fpValeCombustivel": "fpValeCombustivel", "fpDuplicataMercantil": "fpDuplicataMercantil", "fpBoletoBancario": "fpBoletoBancario", "fpDepositoBancario": "fpDepositoBancario", "fpPagamentoInstantaneo": "fpPagamentoInstantaneo", "fpTransfBancario": "fpTransfBancario", "fpProgramaFidelidade": "fpProgramaFidelidade", "fpSemPagamento": "fpSemPagamento", "fpRegimeEspecial": "fpRegimeEspecial", "fpOutro": "fpOutro", "fpPagamentoInstantaneoEstatico": "fpPagamentoInstantaneoEstatico", "fpCreditoEmLojaPorDevolucao": "fpCreditoEmLojaPorDevolucao", "fpFalhaHardware": "fpFalhaHardware", "fpPagamentoPosterior": "fpPagamentoPosterior", "fpPagInstantaneoPIXAutomatico": "fpPagInstantaneoPIXAutomatico", "fpTEFBookTransfer": "fpTEFBookTransfer" });
2543
+ var TpcnIndEscala = Object.freeze({ "ieRelevante": "ieRelevante", "ieNaoRelevante": "ieNaoRelevante", "ieNenhum": "ieNenhum" });
2544
+ var TpcnIndicadorPagamento = Object.freeze({ "ipVista": "ipVista", "ipPrazo": "ipPrazo", "ipOutras": "ipOutras", "ipNenhum": "ipNenhum" });
2545
+ var TpcnIndicadorProcesso = Object.freeze({ "ipSEFAZ": "ipSEFAZ", "ipJusticaFederal": "ipJusticaFederal", "ipJusticaEstadual": "ipJusticaEstadual", "ipSecexRFB": "ipSecexRFB", "ipCONFAZ": "ipCONFAZ", "ipOutros": "ipOutros" });
2546
+ var TpcnIndicadorTotal = Object.freeze({ "itSomaTotalNFe": "itSomaTotalNFe", "itNaoSomaTotalNFe": "itNaoSomaTotalNFe" });
2547
+ var TpcnindISS = Object.freeze({ "iiExigivel": "iiExigivel", "iiNaoIncidencia": "iiNaoIncidencia", "iiIsencao": "iiIsencao", "iiExportacao": "iiExportacao", "iiImunidade": "iiImunidade", "iiExigSuspDecisaoJudicial": "iiExigSuspDecisaoJudicial", "iiExigSuspProcessoAdm": "iiExigSuspProcessoAdm" });
2548
+ var TpcnindISSRet = Object.freeze({ "iirSim": "iirSim", "iirNao": "iirNao" });
2549
+ var TpcnISSQNcSitTrib = Object.freeze({ "ISSQNcSitTribVazio": "ISSQNcSitTribVazio", "ISSQNcSitTribNORMAL": "ISSQNcSitTribNORMAL", "ISSQNcSitTribRETIDA": "ISSQNcSitTribRETIDA", "ISSQNcSitTribSUBSTITUTA": "ISSQNcSitTribSUBSTITUTA", "ISSQNcSitTribISENTA": "ISSQNcSitTribISENTA" });
2550
+ var TpcnModalidadeFrete = Object.freeze({ "mfContaEmitente": "mfContaEmitente", "mfContaDestinatario": "mfContaDestinatario", "mfContaTerceiros": "mfContaTerceiros", "mfProprioRemetente": "mfProprioRemetente", "mfProprioDestinatario": "mfProprioDestinatario", "mfSemFrete": "mfSemFrete" });
2551
+ var TpcnMotivoDesoneracaoICMS = Object.freeze({ "mdiTaxi": "mdiTaxi", "mdiDeficienteFisico": "mdiDeficienteFisico", "mdiProdutorAgropecuario": "mdiProdutorAgropecuario", "mdiFrotistaLocadora": "mdiFrotistaLocadora", "mdiDiplomaticoConsular": "mdiDiplomaticoConsular", "mdiAmazoniaLivreComercio": "mdiAmazoniaLivreComercio", "mdiSuframa": "mdiSuframa", "mdiVendaOrgaosPublicos": "mdiVendaOrgaosPublicos", "mdiOutros": "mdiOutros", "mdiDeficienteCondutor": "mdiDeficienteCondutor", "mdiDeficienteNaoCondutor": "mdiDeficienteNaoCondutor", "mdiOrgaoFomento": "mdiOrgaoFomento", "mdiOlimpiadaRio2016": "mdiOlimpiadaRio2016", "mdiSolicitadoFisco": "mdiSolicitadoFisco" });
2552
+ var TpcnPresencaComprador = Object.freeze({ "pcNao": "pcNao", "pcPresencial": "pcPresencial", "pcInternet": "pcInternet", "pcTeleatendimento": "pcTeleatendimento", "pcEntregaDomicilio": "pcEntregaDomicilio", "pcPresencialForaEstabelecimento": "pcPresencialForaEstabelecimento", "pcOutros": "pcOutros" });
2553
+ var TpcnTipoArma = Object.freeze({ "taUsoPermitido": "taUsoPermitido", "taUsoRestrito": "taUsoRestrito" });
2554
+ var TpcnTipoIntermedio = Object.freeze({ "tiContaPropria": "tiContaPropria", "tiContaOrdem": "tiContaOrdem", "tiEncomenda": "tiEncomenda" });
2555
+ var TpcnTipoOperacao = Object.freeze({ "toVendaConcessionaria": "toVendaConcessionaria", "toFaturamentoDireto": "toFaturamentoDireto", "toVendaDireta": "toVendaDireta", "toOutros": "toOutros" });
2556
+ var TpcnTipoViaTransp = Object.freeze({ "tvMaritima": "tvMaritima", "tvFluvial": "tvFluvial", "tvLacustre": "tvLacustre", "tvAerea": "tvAerea", "tvPostal": "tvPostal", "tvFerroviaria": "tvFerroviaria", "tvRodoviaria": "tvRodoviaria", "tvConduto": "tvConduto", "tvMeiosProprios": "tvMeiosProprios", "tvEntradaSaidaFicta": "tvEntradaSaidaFicta", "tvCourier": "tvCourier", "tvEmMaos": "tvEmMaos", "tvPorReboque": "tvPorReboque" });
2557
+ var TPIS = class {
2558
+ /** Pascal streaming default: pis01. Omission preserves the native constructor. */
2559
+ "CST";
2560
+ "pPIS";
2561
+ "qBCProd";
2562
+ "vAliqProd";
2563
+ "vBC";
2564
+ "vPIS";
2565
+ constructor(input = {}) {
2566
+ validateModel("TPIS", input);
2567
+ if (input["CST"] !== void 0) this["CST"] = input["CST"];
2568
+ if (input["pPIS"] !== void 0) this["pPIS"] = input["pPIS"];
2569
+ if (input["qBCProd"] !== void 0) this["qBCProd"] = input["qBCProd"];
2570
+ if (input["vAliqProd"] !== void 0) this["vAliqProd"] = input["vAliqProd"];
2571
+ if (input["vBC"] !== void 0) this["vBC"] = input["vBC"];
2572
+ if (input["vPIS"] !== void 0) this["vPIS"] = input["vPIS"];
2573
+ }
2574
+ };
2575
+ var TPISST = class {
2576
+ "indSomaPISST";
2577
+ "pPis";
2578
+ "qBCProd";
2579
+ "vAliqProd";
2580
+ "vBc";
2581
+ "vPIS";
2582
+ constructor(input = {}) {
2583
+ validateModel("TPISST", input);
2584
+ if (input["indSomaPISST"] !== void 0) this["indSomaPISST"] = input["indSomaPISST"];
2585
+ if (input["pPis"] !== void 0) this["pPis"] = input["pPis"];
2586
+ if (input["qBCProd"] !== void 0) this["qBCProd"] = input["qBCProd"];
2587
+ if (input["vAliqProd"] !== void 0) this["vAliqProd"] = input["vAliqProd"];
2588
+ if (input["vBc"] !== void 0) this["vBc"] = input["vBc"];
2589
+ if (input["vPIS"] !== void 0) this["vPIS"] = input["vPIS"];
2590
+ }
2591
+ };
2592
+ var TProcDFe = class {
2593
+ "chDFe";
2594
+ "cMsg";
2595
+ "cStat";
2596
+ "dhRecbto";
2597
+ "digVal";
2598
+ "Id";
2599
+ "nProt";
2600
+ "PathDFe";
2601
+ "PathRetConsReciDFe";
2602
+ "PathRetConsSitDFe";
2603
+ "tpAmb";
2604
+ "verAplic";
2605
+ "XML_DFe";
2606
+ "XML_prot";
2607
+ "xMotivo";
2608
+ "xMsg";
2609
+ constructor(input = {}) {
2610
+ validateModel("TProcDFe", input);
2611
+ if (input["chDFe"] !== void 0) this["chDFe"] = input["chDFe"];
2612
+ if (input["cMsg"] !== void 0) this["cMsg"] = input["cMsg"];
2613
+ if (input["cStat"] !== void 0) this["cStat"] = input["cStat"];
2614
+ if (input["dhRecbto"] !== void 0) this["dhRecbto"] = input["dhRecbto"];
2615
+ if (input["digVal"] !== void 0) this["digVal"] = input["digVal"];
2616
+ if (input["Id"] !== void 0) this["Id"] = input["Id"];
2617
+ if (input["nProt"] !== void 0) this["nProt"] = input["nProt"];
2618
+ if (input["PathDFe"] !== void 0) this["PathDFe"] = input["PathDFe"];
2619
+ if (input["PathRetConsReciDFe"] !== void 0) this["PathRetConsReciDFe"] = input["PathRetConsReciDFe"];
2620
+ if (input["PathRetConsSitDFe"] !== void 0) this["PathRetConsSitDFe"] = input["PathRetConsSitDFe"];
2621
+ if (input["tpAmb"] !== void 0) this["tpAmb"] = input["tpAmb"];
2622
+ if (input["verAplic"] !== void 0) this["verAplic"] = input["verAplic"];
2623
+ if (input["XML_DFe"] !== void 0) this["XML_DFe"] = input["XML_DFe"];
2624
+ if (input["XML_prot"] !== void 0) this["XML_prot"] = input["XML_prot"];
2625
+ if (input["xMotivo"] !== void 0) this["xMotivo"] = input["xMotivo"];
2626
+ if (input["xMsg"] !== void 0) this["xMsg"] = input["xMsg"];
2627
+ }
2628
+ };
2629
+ var TprocRefCollection = class extends Array {
2630
+ New(input = {}) {
2631
+ const item = new TprocRefCollectionItem(input);
2632
+ this.push(item);
2633
+ return item;
2634
+ }
2635
+ };
2636
+ var TprocRefCollectionItem = class {
2637
+ /** Pascal streaming default: ipSEFAZ. Omission preserves the native constructor. */
2638
+ "indProc";
2639
+ "nProc";
2640
+ "tpAto";
2641
+ constructor(input = {}) {
2642
+ validateModel("TprocRefCollectionItem", input);
2643
+ if (input["indProc"] !== void 0) this["indProc"] = input["indProc"];
2644
+ if (input["nProc"] !== void 0) this["nProc"] = input["nProc"];
2645
+ if (input["tpAto"] !== void 0) this["tpAto"] = input["tpAto"];
2646
+ }
2647
+ };
2648
+ var TProd = class {
2649
+ "arma" = new TArmaCollection();
2650
+ "cBarra";
2651
+ "cBarraTrib";
2652
+ "cBenef";
2653
+ "cEAN";
2654
+ "cEANTrib";
2655
+ "CEST";
2656
+ "CFOP";
2657
+ "CNPJFab";
2658
+ "comb" = new TComb();
2659
+ "cProd";
2660
+ "CredPresumido" = new TCredPresumidoCollection();
2661
+ "detExport" = new TdetExportCollection();
2662
+ "DI" = new TDICollection();
2663
+ "EXTIPI";
2664
+ /** Pascal streaming default: tieNenhum. Omission preserves the native constructor. */
2665
+ "indBemMovelUsado";
2666
+ /** Pascal streaming default: ieNenhum. Omission preserves the native constructor. */
2667
+ "indEscala";
2668
+ /** Pascal streaming default: itSomaTotalNFe. Omission preserves the native constructor. */
2669
+ "IndTot";
2670
+ "med" = new TMedCollection();
2671
+ "NCM";
2672
+ "nFCI";
2673
+ "nItem";
2674
+ "nItemPed";
2675
+ "nRECOPI";
2676
+ "NVE" = new TNVECollection();
2677
+ "qCom";
2678
+ "qTrib";
2679
+ "rastro" = new TRastroCollection();
2680
+ "tpCredPresIBSZFM";
2681
+ "uCom";
2682
+ "uTrib";
2683
+ "vDesc";
2684
+ "veicProd" = new TveicProd();
2685
+ "vFrete";
2686
+ "vOutro";
2687
+ "vProd";
2688
+ "vSeg";
2689
+ "vUnCom";
2690
+ "vUnTrib";
2691
+ "xPed";
2692
+ "xProd";
2693
+ constructor(input = {}) {
2694
+ validateModel("TProd", input);
2695
+ if (input["arma"] !== void 0) this["arma"] = Object.assign(new TArmaCollection(), input["arma"].map((v) => new TArmaCollectionItem(v)));
2696
+ if (input["cBarra"] !== void 0) this["cBarra"] = input["cBarra"];
2697
+ if (input["cBarraTrib"] !== void 0) this["cBarraTrib"] = input["cBarraTrib"];
2698
+ if (input["cBenef"] !== void 0) this["cBenef"] = input["cBenef"];
2699
+ if (input["cEAN"] !== void 0) this["cEAN"] = input["cEAN"];
2700
+ if (input["cEANTrib"] !== void 0) this["cEANTrib"] = input["cEANTrib"];
2701
+ if (input["CEST"] !== void 0) this["CEST"] = input["CEST"];
2702
+ if (input["CFOP"] !== void 0) this["CFOP"] = input["CFOP"];
2703
+ if (input["CNPJFab"] !== void 0) this["CNPJFab"] = input["CNPJFab"];
2704
+ if (input["comb"] !== void 0) this["comb"] = new TComb(input["comb"]);
2705
+ if (input["cProd"] !== void 0) this["cProd"] = input["cProd"];
2706
+ if (input["CredPresumido"] !== void 0) this["CredPresumido"] = Object.assign(new TCredPresumidoCollection(), input["CredPresumido"].map((v) => new TCredPresumidoCollectionItem(v)));
2707
+ if (input["detExport"] !== void 0) this["detExport"] = Object.assign(new TdetExportCollection(), input["detExport"].map((v) => new TdetExportCollectionItem(v)));
2708
+ if (input["DI"] !== void 0) this["DI"] = Object.assign(new TDICollection(), input["DI"].map((v) => new TDICollectionItem(v)));
2709
+ if (input["EXTIPI"] !== void 0) this["EXTIPI"] = input["EXTIPI"];
2710
+ if (input["indBemMovelUsado"] !== void 0) this["indBemMovelUsado"] = input["indBemMovelUsado"];
2711
+ if (input["indEscala"] !== void 0) this["indEscala"] = input["indEscala"];
2712
+ if (input["IndTot"] !== void 0) this["IndTot"] = input["IndTot"];
2713
+ if (input["med"] !== void 0) this["med"] = Object.assign(new TMedCollection(), input["med"].map((v) => new TMedCollectionItem(v)));
2714
+ if (input["NCM"] !== void 0) this["NCM"] = input["NCM"];
2715
+ if (input["nFCI"] !== void 0) this["nFCI"] = input["nFCI"];
2716
+ if (input["nItem"] !== void 0) this["nItem"] = input["nItem"];
2717
+ if (input["nItemPed"] !== void 0) this["nItemPed"] = input["nItemPed"];
2718
+ if (input["nRECOPI"] !== void 0) this["nRECOPI"] = input["nRECOPI"];
2719
+ if (input["NVE"] !== void 0) this["NVE"] = Object.assign(new TNVECollection(), input["NVE"].map((v) => new TNVECollectionItem(v)));
2720
+ if (input["qCom"] !== void 0) this["qCom"] = input["qCom"];
2721
+ if (input["qTrib"] !== void 0) this["qTrib"] = input["qTrib"];
2722
+ if (input["rastro"] !== void 0) this["rastro"] = Object.assign(new TRastroCollection(), input["rastro"].map((v) => new TRastroCollectionItem(v)));
2723
+ if (input["tpCredPresIBSZFM"] !== void 0) this["tpCredPresIBSZFM"] = input["tpCredPresIBSZFM"];
2724
+ if (input["uCom"] !== void 0) this["uCom"] = input["uCom"];
2725
+ if (input["uTrib"] !== void 0) this["uTrib"] = input["uTrib"];
2726
+ if (input["vDesc"] !== void 0) this["vDesc"] = input["vDesc"];
2727
+ if (input["veicProd"] !== void 0) this["veicProd"] = new TveicProd(input["veicProd"]);
2728
+ if (input["vFrete"] !== void 0) this["vFrete"] = input["vFrete"];
2729
+ if (input["vOutro"] !== void 0) this["vOutro"] = input["vOutro"];
2730
+ if (input["vProd"] !== void 0) this["vProd"] = input["vProd"];
2731
+ if (input["vSeg"] !== void 0) this["vSeg"] = input["vSeg"];
2732
+ if (input["vUnCom"] !== void 0) this["vUnCom"] = input["vUnCom"];
2733
+ if (input["vUnTrib"] !== void 0) this["vUnTrib"] = input["vUnTrib"];
2734
+ if (input["xPed"] !== void 0) this["xPed"] = input["xPed"];
2735
+ if (input["xProd"] !== void 0) this["xProd"] = input["xProd"];
2736
+ }
2737
+ };
2738
+ var TRastroCollection = class extends Array {
2739
+ New(input = {}) {
2740
+ const item = new TRastroCollectionItem(input);
2741
+ this.push(item);
2742
+ return item;
2743
+ }
2744
+ };
2745
+ var TRastroCollectionItem = class {
2746
+ "cAgreg";
2747
+ "dFab";
2748
+ "dVal";
2749
+ "nLote";
2750
+ "qLote";
2751
+ constructor(input = {}) {
2752
+ validateModel("TRastroCollectionItem", input);
2753
+ if (input["cAgreg"] !== void 0) this["cAgreg"] = input["cAgreg"];
2754
+ if (input["dFab"] !== void 0) this["dFab"] = input["dFab"];
2755
+ if (input["dVal"] !== void 0) this["dVal"] = input["dVal"];
2756
+ if (input["nLote"] !== void 0) this["nLote"] = input["nLote"];
2757
+ if (input["qLote"] !== void 0) this["qLote"] = input["qLote"];
2758
+ }
2759
+ };
2760
+ var TReboqueCollection = class extends Array {
2761
+ New(input = {}) {
2762
+ const item = new TReboqueCollectionItem(input);
2763
+ this.push(item);
2764
+ return item;
2765
+ }
2766
+ };
2767
+ var TReboqueCollectionItem = class {
2768
+ "placa";
2769
+ "RNTC";
2770
+ "UF";
2771
+ constructor(input = {}) {
2772
+ validateModel("TReboqueCollectionItem", input);
2773
+ if (input["placa"] !== void 0) this["placa"] = input["placa"];
2774
+ if (input["RNTC"] !== void 0) this["RNTC"] = input["RNTC"];
2775
+ if (input["UF"] !== void 0) this["UF"] = input["UF"];
2776
+ }
2777
+ };
2778
+ var TrefDFePagAntCollection = class extends Array {
2779
+ New(input = {}) {
2780
+ const item = new TrefDFePagAntCollectionItem(input);
2781
+ this.push(item);
2782
+ return item;
2783
+ }
2784
+ };
2785
+ var TrefDFePagAntCollectionItem = class {
2786
+ "refDFEChave";
2787
+ constructor(input = {}) {
2788
+ validateModel("TrefDFePagAntCollectionItem", input);
2789
+ if (input["refDFEChave"] !== void 0) this["refDFEChave"] = input["refDFEChave"];
2790
+ }
2791
+ };
2792
+ var TRefECF = class {
2793
+ /** Pascal streaming default: ECFModRefVazio. Omission preserves the native constructor. */
2794
+ "modelo";
2795
+ "nCOO";
2796
+ "nECF";
2797
+ constructor(input = {}) {
2798
+ validateModel("TRefECF", input);
2799
+ if (input["modelo"] !== void 0) this["modelo"] = input["modelo"];
2800
+ if (input["nCOO"] !== void 0) this["nCOO"] = input["nCOO"];
2801
+ if (input["nECF"] !== void 0) this["nECF"] = input["nECF"];
2802
+ }
2803
+ };
2804
+ var TRefNF = class {
2805
+ "AAMM";
2806
+ "CNPJ";
2807
+ "cUF";
2808
+ "modelo";
2809
+ "nNF";
2810
+ "serie";
2811
+ constructor(input = {}) {
2812
+ validateModel("TRefNF", input);
2813
+ if (input["AAMM"] !== void 0) this["AAMM"] = input["AAMM"];
2814
+ if (input["CNPJ"] !== void 0) this["CNPJ"] = input["CNPJ"];
2815
+ if (input["cUF"] !== void 0) this["cUF"] = input["cUF"];
2816
+ if (input["modelo"] !== void 0) this["modelo"] = input["modelo"];
2817
+ if (input["nNF"] !== void 0) this["nNF"] = input["nNF"];
2818
+ if (input["serie"] !== void 0) this["serie"] = input["serie"];
2819
+ }
2820
+ };
2821
+ var TRefNFP = class {
2822
+ "AAMM";
2823
+ "CNPJCPF";
2824
+ "cUF";
2825
+ "IE";
2826
+ "modelo";
2827
+ "nNF";
2828
+ "serie";
2829
+ constructor(input = {}) {
2830
+ validateModel("TRefNFP", input);
2831
+ if (input["AAMM"] !== void 0) this["AAMM"] = input["AAMM"];
2832
+ if (input["CNPJCPF"] !== void 0) this["CNPJCPF"] = input["CNPJCPF"];
2833
+ if (input["cUF"] !== void 0) this["cUF"] = input["cUF"];
2834
+ if (input["IE"] !== void 0) this["IE"] = input["IE"];
2835
+ if (input["modelo"] !== void 0) this["modelo"] = input["modelo"];
2836
+ if (input["nNF"] !== void 0) this["nNF"] = input["nNF"];
2837
+ if (input["serie"] !== void 0) this["serie"] = input["serie"];
2838
+ }
2839
+ };
2840
+ var TRegTribISSQN = Object.freeze({ "RTISSMicroempresaMunicipal": "RTISSMicroempresaMunicipal", "RTISSEstimativa": "RTISSEstimativa", "RTISSSociedadeProfissionais": "RTISSSociedadeProfissionais", "RTISSCooperativa": "RTISSCooperativa", "RTISSMEI": "RTISSMEI", "RTISSMEEPP": "RTISSMEEPP", "RTISSNenhum": "RTISSNenhum" });
2841
+ var TRetirada = class {
2842
+ "CEP";
2843
+ "cMun";
2844
+ "CNPJCPF";
2845
+ "cPais";
2846
+ "Email";
2847
+ "fone";
2848
+ "IE";
2849
+ "nro";
2850
+ "UF";
2851
+ "xBairro";
2852
+ "xCpl";
2853
+ "xLgr";
2854
+ "xMun";
2855
+ "xNome";
2856
+ "xPais";
2857
+ constructor(input = {}) {
2858
+ validateModel("TRetirada", input);
2859
+ if (input["CEP"] !== void 0) this["CEP"] = input["CEP"];
2860
+ if (input["cMun"] !== void 0) this["cMun"] = input["cMun"];
2861
+ if (input["CNPJCPF"] !== void 0) this["CNPJCPF"] = input["CNPJCPF"];
2862
+ if (input["cPais"] !== void 0) this["cPais"] = input["cPais"];
2863
+ if (input["Email"] !== void 0) this["Email"] = input["Email"];
2864
+ if (input["fone"] !== void 0) this["fone"] = input["fone"];
2865
+ if (input["IE"] !== void 0) this["IE"] = input["IE"];
2866
+ if (input["nro"] !== void 0) this["nro"] = input["nro"];
2867
+ if (input["UF"] !== void 0) this["UF"] = input["UF"];
2868
+ if (input["xBairro"] !== void 0) this["xBairro"] = input["xBairro"];
2869
+ if (input["xCpl"] !== void 0) this["xCpl"] = input["xCpl"];
2870
+ if (input["xLgr"] !== void 0) this["xLgr"] = input["xLgr"];
2871
+ if (input["xMun"] !== void 0) this["xMun"] = input["xMun"];
2872
+ if (input["xNome"] !== void 0) this["xNome"] = input["xNome"];
2873
+ if (input["xPais"] !== void 0) this["xPais"] = input["xPais"];
2874
+ }
2875
+ };
2876
+ var TretTransp = class {
2877
+ "CFOP";
2878
+ "cMunFG";
2879
+ "pICMSRet";
2880
+ "vBCRet";
2881
+ "vICMSRet";
2882
+ "vServ";
2883
+ constructor(input = {}) {
2884
+ validateModel("TretTransp", input);
2885
+ if (input["CFOP"] !== void 0) this["CFOP"] = input["CFOP"];
2886
+ if (input["cMunFG"] !== void 0) this["cMunFG"] = input["cMunFG"];
2887
+ if (input["pICMSRet"] !== void 0) this["pICMSRet"] = input["pICMSRet"];
2888
+ if (input["vBCRet"] !== void 0) this["vBCRet"] = input["vBCRet"];
2889
+ if (input["vICMSRet"] !== void 0) this["vICMSRet"] = input["vICMSRet"];
2890
+ if (input["vServ"] !== void 0) this["vServ"] = input["vServ"];
2891
+ }
2892
+ };
2893
+ var TretTrib = class {
2894
+ "vBCIRRF";
2895
+ "vBCRetPrev";
2896
+ "vIRRF";
2897
+ "vRetCOFINS";
2898
+ "vRetCSLL";
2899
+ "vRetPIS";
2900
+ "vRetPrev";
2901
+ constructor(input = {}) {
2902
+ validateModel("TretTrib", input);
2903
+ if (input["vBCIRRF"] !== void 0) this["vBCIRRF"] = input["vBCIRRF"];
2904
+ if (input["vBCRetPrev"] !== void 0) this["vBCRetPrev"] = input["vBCRetPrev"];
2905
+ if (input["vIRRF"] !== void 0) this["vIRRF"] = input["vIRRF"];
2906
+ if (input["vRetCOFINS"] !== void 0) this["vRetCOFINS"] = input["vRetCOFINS"];
2907
+ if (input["vRetCSLL"] !== void 0) this["vRetCSLL"] = input["vRetCSLL"];
2908
+ if (input["vRetPIS"] !== void 0) this["vRetPIS"] = input["vRetPIS"];
2909
+ if (input["vRetPrev"] !== void 0) this["vRetPrev"] = input["vRetPrev"];
2910
+ }
2911
+ };
2912
+ var TSignature = class {
2913
+ "DigestValue";
2914
+ "IdSignature";
2915
+ "IdSignatureValue";
2916
+ "SignatureValue";
2917
+ "URI";
2918
+ "X509Certificate";
2919
+ constructor(input = {}) {
2920
+ validateModel("TSignature", input);
2921
+ if (input["DigestValue"] !== void 0) this["DigestValue"] = input["DigestValue"];
2922
+ if (input["IdSignature"] !== void 0) this["IdSignature"] = input["IdSignature"];
2923
+ if (input["IdSignatureValue"] !== void 0) this["IdSignatureValue"] = input["IdSignatureValue"];
2924
+ if (input["SignatureValue"] !== void 0) this["SignatureValue"] = input["SignatureValue"];
2925
+ if (input["URI"] !== void 0) this["URI"] = input["URI"];
2926
+ if (input["X509Certificate"] !== void 0) this["X509Certificate"] = input["X509Certificate"];
2927
+ }
2928
+ };
2929
+ var TTipoNFe = Object.freeze({ "tnEntrada": "tnEntrada", "tnSaida": "tnSaida" });
2930
+ var TTotal = class {
2931
+ "IBSCBSTot" = new TIBSCBSTot();
2932
+ "ICMSTot" = new TICMSTot();
2933
+ "ISSQNtot" = new TISSQNtot();
2934
+ "ISTot" = new TISTot();
2935
+ "retTrib" = new TretTrib();
2936
+ "vNFTot";
2937
+ constructor(input = {}) {
2938
+ validateModel("TTotal", input);
2939
+ if (input["IBSCBSTot"] !== void 0) this["IBSCBSTot"] = new TIBSCBSTot(input["IBSCBSTot"]);
2940
+ if (input["ICMSTot"] !== void 0) this["ICMSTot"] = new TICMSTot(input["ICMSTot"]);
2941
+ if (input["ISSQNtot"] !== void 0) this["ISSQNtot"] = new TISSQNtot(input["ISSQNtot"]);
2942
+ if (input["ISTot"] !== void 0) this["ISTot"] = new TISTot(input["ISTot"]);
2943
+ if (input["retTrib"] !== void 0) this["retTrib"] = new TretTrib(input["retTrib"]);
2944
+ if (input["vNFTot"] !== void 0) this["vNFTot"] = input["vNFTot"];
2945
+ }
2946
+ };
2947
+ var TtpALCZFMCBS = Object.freeze({ "tpALCZFMCBSnOpInd": "tpALCZFMCBSnOpInd", "tpALCZFMCBSOpInd": "tpALCZFMCBSOpInd" });
2948
+ var TtpAto = Object.freeze({ "taNenhum": "taNenhum", "taTermoAcordo": "taTermoAcordo", "taRegimeEspecial": "taRegimeEspecial", "taAutorizacaoEspecifica": "taAutorizacaoEspecifica", "taAjusteSNIEF": "taAjusteSNIEF", "taConvenioICMS": "taConvenioICMS" });
2949
+ var TTpCredPresIBSZFM = Object.freeze({ "tcpNenhum": "tcpNenhum", "tcpSemCredito": "tcpSemCredito", "tcpBensConsumoFinal": "tcpBensConsumoFinal", "tcpBensCapital": "tcpBensCapital", "tcpBensIntermediarios": "tcpBensIntermediarios", "tcpBensInformaticaOutros": "tcpBensInformaticaOutros" });
2950
+ var TtpEnteGov = Object.freeze({ "tcgNenhum": "tcgNenhum", "tcgUniao": "tcgUniao", "tcgEstados": "tcgEstados", "tcgDistritoFederal": "tcgDistritoFederal", "tcgMunicipios": "tcgMunicipios", "tcgConsorcioPublico": "tcgConsorcioPublico", "tcgComiteGestorIBS": "tcgComiteGestorIBS" });
2951
+ var TtpGuia = Object.freeze({ "tpgNenhum": "tpgNenhum", "tpgGTA": "tpgGTA", "tpgTTA": "tpgTTA", "tpgDTA": "tpgDTA", "tpgATV": "tpgATV", "tpgPTV": "tpgPTV", "tpgGTV": "tpgGTV", "tpgGuiaFlorestal": "tpgGuiaFlorestal" });
2952
+ var TtpIntegra = Object.freeze({ "tiNaoInformado": "tiNaoInformado", "tiPagIntegrado": "tiPagIntegrado", "tiPagNaoIntegrado": "tiPagNaoIntegrado" });
2953
+ var TtpNFCredito = Object.freeze({ "tcNenhum": "tcNenhum", "tcMultaJuros": "tcMultaJuros", "tcApropriacaoCreditoPresumido": "tcApropriacaoCreditoPresumido", "tcRetorno": "tcRetorno", "tcReducaoValores": "tcReducaoValores", "tcTransferenciaCreditoSucessao": "tcTransferenciaCreditoSucessao", "tcRetornoRecusaParcial": "tcRetornoRecusaParcial" });
2954
+ var TtpNFDebito = Object.freeze({ "tdNenhum": "tdNenhum", "tdTransferenciaCreditoCooperativa": "tdTransferenciaCreditoCooperativa", "tdAnulacao": "tdAnulacao", "tdDebitosNaoProcessadas": "tdDebitosNaoProcessadas", "tdMultaJuros": "tdMultaJuros", "tdTransferenciaCreditoSucessao": "tdTransferenciaCreditoSucessao", "tdPagamentoAntecipado": "tdPagamentoAntecipado", "tdPerdaEmEstoque": "tdPerdaEmEstoque", "tdDesenquadramentodoSN": "tdDesenquadramentodoSN" });
2955
+ var TtpOperGov = Object.freeze({ "togNenhum": "togNenhum", "togFornecimento": "togFornecimento", "togRecebimentoPag": "togRecebimentoPag", "togFornecimentoPagRealizado": "togFornecimentoPagRealizado", "togRecebimentoPagFornecPosterior": "togRecebimentoPagFornecPosterior" });
2956
+ var TTransp = class {
2957
+ "balsa";
2958
+ "modFrete";
2959
+ "Reboque" = new TReboqueCollection();
2960
+ "retTransp" = new TretTransp();
2961
+ "Transporta" = new TTransporta();
2962
+ "vagao";
2963
+ "veicTransp" = new TveicTransp();
2964
+ "Vol" = new TVolCollection();
2965
+ constructor(input = {}) {
2966
+ validateModel("TTransp", input);
2967
+ if (input["balsa"] !== void 0) this["balsa"] = input["balsa"];
2968
+ if (input["modFrete"] !== void 0) this["modFrete"] = input["modFrete"];
2969
+ if (input["Reboque"] !== void 0) this["Reboque"] = Object.assign(new TReboqueCollection(), input["Reboque"].map((v) => new TReboqueCollectionItem(v)));
2970
+ if (input["retTransp"] !== void 0) this["retTransp"] = new TretTransp(input["retTransp"]);
2971
+ if (input["Transporta"] !== void 0) this["Transporta"] = new TTransporta(input["Transporta"]);
2972
+ if (input["vagao"] !== void 0) this["vagao"] = input["vagao"];
2973
+ if (input["veicTransp"] !== void 0) this["veicTransp"] = new TveicTransp(input["veicTransp"]);
2974
+ if (input["Vol"] !== void 0) this["Vol"] = Object.assign(new TVolCollection(), input["Vol"].map((v) => new TVolCollectionItem(v)));
2975
+ }
2976
+ };
2977
+ var TTransporta = class {
2978
+ "CNPJCPF";
2979
+ "IE";
2980
+ "UF";
2981
+ "xEnder";
2982
+ "xMun";
2983
+ "xNome";
2984
+ constructor(input = {}) {
2985
+ validateModel("TTransporta", input);
2986
+ if (input["CNPJCPF"] !== void 0) this["CNPJCPF"] = input["CNPJCPF"];
2987
+ if (input["IE"] !== void 0) this["IE"] = input["IE"];
2988
+ if (input["UF"] !== void 0) this["UF"] = input["UF"];
2989
+ if (input["xEnder"] !== void 0) this["xEnder"] = input["xEnder"];
2990
+ if (input["xMun"] !== void 0) this["xMun"] = input["xMun"];
2991
+ if (input["xNome"] !== void 0) this["xNome"] = input["xNome"];
2992
+ }
2993
+ };
2994
+ var TveicProd = class {
2995
+ "anoFab";
2996
+ "anoMod";
2997
+ "cCor";
2998
+ "cCorDENATRAN";
2999
+ "chassi";
3000
+ "Cilin";
3001
+ "cMod";
3002
+ "CMT";
3003
+ "CombDescricao";
3004
+ "condVeic";
3005
+ "dist";
3006
+ "espVeic";
3007
+ "lota";
3008
+ "nMotor";
3009
+ "nSerie";
3010
+ "pesoB";
3011
+ "pesoL";
3012
+ "pot";
3013
+ "tpComb";
3014
+ "tpOP";
3015
+ "tpPint";
3016
+ "tpRest";
3017
+ "tpVeic";
3018
+ "VIN";
3019
+ "xCor";
3020
+ constructor(input = {}) {
3021
+ validateModel("TveicProd", input);
3022
+ if (input["anoFab"] !== void 0) this["anoFab"] = input["anoFab"];
3023
+ if (input["anoMod"] !== void 0) this["anoMod"] = input["anoMod"];
3024
+ if (input["cCor"] !== void 0) this["cCor"] = input["cCor"];
3025
+ if (input["cCorDENATRAN"] !== void 0) this["cCorDENATRAN"] = input["cCorDENATRAN"];
3026
+ if (input["chassi"] !== void 0) this["chassi"] = input["chassi"];
3027
+ if (input["Cilin"] !== void 0) this["Cilin"] = input["Cilin"];
3028
+ if (input["cMod"] !== void 0) this["cMod"] = input["cMod"];
3029
+ if (input["CMT"] !== void 0) this["CMT"] = input["CMT"];
3030
+ if (input["condVeic"] !== void 0) this["condVeic"] = input["condVeic"];
3031
+ if (input["dist"] !== void 0) this["dist"] = input["dist"];
3032
+ if (input["espVeic"] !== void 0) this["espVeic"] = input["espVeic"];
3033
+ if (input["lota"] !== void 0) this["lota"] = input["lota"];
3034
+ if (input["nMotor"] !== void 0) this["nMotor"] = input["nMotor"];
3035
+ if (input["nSerie"] !== void 0) this["nSerie"] = input["nSerie"];
3036
+ if (input["pesoB"] !== void 0) this["pesoB"] = input["pesoB"];
3037
+ if (input["pesoL"] !== void 0) this["pesoL"] = input["pesoL"];
3038
+ if (input["pot"] !== void 0) this["pot"] = input["pot"];
3039
+ if (input["tpComb"] !== void 0) this["tpComb"] = input["tpComb"];
3040
+ if (input["tpOP"] !== void 0) this["tpOP"] = input["tpOP"];
3041
+ if (input["tpPint"] !== void 0) this["tpPint"] = input["tpPint"];
3042
+ if (input["tpRest"] !== void 0) this["tpRest"] = input["tpRest"];
3043
+ if (input["tpVeic"] !== void 0) this["tpVeic"] = input["tpVeic"];
3044
+ if (input["VIN"] !== void 0) this["VIN"] = input["VIN"];
3045
+ if (input["xCor"] !== void 0) this["xCor"] = input["xCor"];
3046
+ }
3047
+ };
3048
+ var TveicTransp = class {
3049
+ "placa";
3050
+ "RNTC";
3051
+ "UF";
3052
+ constructor(input = {}) {
3053
+ validateModel("TveicTransp", input);
3054
+ if (input["placa"] !== void 0) this["placa"] = input["placa"];
3055
+ if (input["RNTC"] !== void 0) this["RNTC"] = input["RNTC"];
3056
+ if (input["UF"] !== void 0) this["UF"] = input["UF"];
3057
+ }
3058
+ };
3059
+ var TVolCollection = class extends Array {
3060
+ New(input = {}) {
3061
+ const item = new TVolCollectionItem(input);
3062
+ this.push(item);
3063
+ return item;
3064
+ }
3065
+ };
3066
+ var TVolCollectionItem = class {
3067
+ "esp";
3068
+ "Lacres" = new TLacresCollection();
3069
+ "marca";
3070
+ "nVol";
3071
+ "pesoB";
3072
+ "pesoL";
3073
+ "qVol";
3074
+ constructor(input = {}) {
3075
+ validateModel("TVolCollectionItem", input);
3076
+ if (input["esp"] !== void 0) this["esp"] = input["esp"];
3077
+ if (input["Lacres"] !== void 0) this["Lacres"] = Object.assign(new TLacresCollection(), input["Lacres"].map((v) => new TLacresCollectionItem(v)));
3078
+ if (input["marca"] !== void 0) this["marca"] = input["marca"];
3079
+ if (input["nVol"] !== void 0) this["nVol"] = input["nVol"];
3080
+ if (input["pesoB"] !== void 0) this["pesoB"] = input["pesoB"];
3081
+ if (input["pesoL"] !== void 0) this["pesoL"] = input["pesoL"];
3082
+ if (input["qVol"] !== void 0) this["qVol"] = input["qVol"];
3083
+ }
3084
+ };
3085
+ var MODEL_SCHEMA = { "TACBrProcessoEmissao": { "name": "TACBrProcessoEmissao", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["peAplicativoContribuinte", "peAvulsaFisco", "peAvulsaContribuinte", "peContribuinteAplicativoFisco", "peProvedorAssinaturaAutorizacao"] }, "TACBrTipoAmbiente": { "name": "TACBrTipoAmbiente", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["taProducao", "taHomologacao"] }, "TACBrTipoEmissao": { "name": "TACBrTipoEmissao", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["teNormal", "teContingencia", "teSCAN", "teDPEC", "teFSDA", "teSVCAN", "teSVCRS", "teSVCSP", "teOffLine"] }, "TACBrTipoImpressao": { "name": "TACBrTipoImpressao", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["tiSemGeracao", "tiRetrato", "tiPaisagem", "tiSimplificado", "tiNFCe", "tiMsgEletronica", "tiSimplificadoTipo2"] }, "TAdiCollection": { "name": "TAdiCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TAdiCollectionItem", "factory": "New" }, "TAdiCollectionItem": { "name": "TAdiCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "cFabricante", "type": "string", "kind": "string", "readonly": false }, { "name": "nAdicao", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "nDraw", "type": "string", "kind": "string", "readonly": false }, { "name": "nSeqAdi", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "vDescDI", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "Tagropecuario": { "name": "Tagropecuario", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "defensivo", "type": "TdefensivoCollection", "kind": "list", "ref": "TdefensivoCollection", "readonly": false }, { "name": "guiaTransito", "type": "TguiaTransito", "kind": "object", "ref": "TguiaTransito", "readonly": false }] }, "TArmaCollection": { "name": "TArmaCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TArmaCollectionItem", "factory": "New" }, "TArmaCollectionItem": { "name": "TArmaCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "descr", "type": "string", "kind": "string", "readonly": false }, { "name": "nCano", "type": "string", "kind": "string", "readonly": false }, { "name": "nSerie", "type": "string", "kind": "string", "readonly": false }, { "name": "tpArma", "type": "TpcnTipoArma", "kind": "enum", "ref": "TpcnTipoArma", "readonly": false, "declaredDefault": "taUsoPermitido" }] }, "TautXMLCollection": { "name": "TautXMLCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TautXMLCollectionItem", "factory": "New" }, "TautXMLCollectionItem": { "name": "TautXMLCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CNPJCPF", "type": "string", "kind": "string", "readonly": false }] }, "TAvulsa": { "name": "TAvulsa", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CNPJ", "type": "string", "kind": "string", "readonly": false }, { "name": "dEmi", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "dPag", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "fone", "type": "string", "kind": "string", "readonly": false }, { "name": "matr", "type": "string", "kind": "string", "readonly": false }, { "name": "nDAR", "type": "string", "kind": "string", "readonly": false }, { "name": "repEmi", "type": "string", "kind": "string", "readonly": false }, { "name": "UF", "type": "string", "kind": "string", "readonly": false }, { "name": "vDAR", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "xAgente", "type": "string", "kind": "string", "readonly": false }, { "name": "xOrgao", "type": "string", "kind": "string", "readonly": false }] }, "Tcana": { "name": "Tcana", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "deduc", "type": "TDeducCollection", "kind": "list", "ref": "TDeducCollection", "readonly": false }, { "name": "fordia", "type": "TForDiaCollection", "kind": "list", "ref": "TForDiaCollection", "readonly": false }, { "name": "qTotAnt", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "qTotGer", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "qTotMes", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "ref", "type": "string", "kind": "string", "readonly": false }, { "name": "safra", "type": "string", "kind": "string", "readonly": false }, { "name": "vFor", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vLiqFor", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vTotDed", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TcCredPres": { "name": "TcCredPres", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["cpNenhum", "cp01", "cp02", "cp03", "cp04", "cp05", "cp06", "cp07", "cp08", "cp09", "cp10", "cp11", "cp12", "cp13"] }, "TCIDE": { "name": "TCIDE", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "qBCProd", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vAliqProd", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vCIDE", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TCobr": { "name": "TCobr", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "Dup", "type": "TDupCollection", "kind": "list", "ref": "TDupCollection", "readonly": false }, { "name": "Fat", "type": "TFat", "kind": "object", "ref": "TFat", "readonly": false }] }, "TCOFINS": { "name": "TCOFINS", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CST", "type": "TCstCofins", "kind": "enum", "ref": "TCSTCofins", "readonly": false, "declaredDefault": "cof01" }, { "name": "pCOFINS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "qBCProd", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vAliqProd", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBC", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBCProd", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vCOFINS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TCOFINSST": { "name": "TCOFINSST", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "indSomaCOFINSST", "type": "TIndSomaCOFINSST", "kind": "enum", "ref": "TIndSomaCOFINSST", "readonly": false }, { "name": "pCOFINS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "qBCProd", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vAliqProd", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBC", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vCOFINS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TComb": { "name": "TComb", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CIDE", "type": "TCIDE", "kind": "object", "ref": "TCIDE", "readonly": false }, { "name": "CODIF", "type": "string", "kind": "string", "readonly": false }, { "name": "cProdANP", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "descANP", "type": "string", "kind": "string", "readonly": false }, { "name": "encerrante", "type": "Tencerrante", "kind": "object", "ref": "Tencerrante", "readonly": false }, { "name": "ICMS", "type": "TICMSComb", "kind": "object", "ref": "TICMSComb", "readonly": false }, { "name": "ICMSCons", "type": "TICMSCons", "kind": "object", "ref": "TICMSCons", "readonly": false }, { "name": "ICMSInter", "type": "TICMSInter", "kind": "object", "ref": "TICMSInter", "readonly": false }, { "name": "origComb", "type": "TorigCombCollection", "kind": "list", "ref": "TorigCombCollection", "readonly": false }, { "name": "pBio", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pGLP", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pGNi", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pGNn", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pMixGN", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "qTemp", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "UFcons", "type": "string", "kind": "string", "readonly": false }, { "name": "vPart", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TCompra": { "name": "TCompra", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "xCont", "type": "string", "kind": "string", "readonly": false }, { "name": "xNEmp", "type": "string", "kind": "string", "readonly": false }, { "name": "xPed", "type": "string", "kind": "string", "readonly": false }] }, "TCredPresIBSZFM": { "name": "TCredPresIBSZFM", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "competApur", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "tpCredPresIBSZFM", "type": "TTpCredPresIBSZFM", "kind": "enum", "ref": "TTpCredPresIBSZFM", "readonly": false }, { "name": "vCredPresIBSZFM", "type": "Double", "kind": "decimal", "readonly": false }] }, "TCredPresumidoCollection": { "name": "TCredPresumidoCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TCredPresumidoCollectionItem", "factory": "New" }, "TCredPresumidoCollectionItem": { "name": "TCredPresumidoCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "cCredPresumido", "type": "string", "kind": "string", "readonly": false }, { "name": "pCredPresumido", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vCredPresumido", "type": "Double", "kind": "decimal", "readonly": false }] }, "TCSOSNIcms": { "name": "TCSOSNIcms", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["csosnVazio", "csosn101", "csosn102", "csosn103", "csosn201", "csosn202", "csosn203", "csosn300", "csosn400", "csosn500", "csosn900"] }, "TCSTCofins": { "name": "TCSTCofins", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["cof01", "cof02", "cof03", "cof04", "cof05", "cof06", "cof07", "cof08", "cof09", "cof49", "cof50", "cof51", "cof52", "cof53", "cof54", "cof55", "cof56", "cof60", "cof61", "cof62", "cof63", "cof64", "cof65", "cof66", "cof67", "cof70", "cof71", "cof72", "cof73", "cof74", "cof75", "cof98", "cof99"] }, "TCSTIBSCBS": { "name": "TCSTIBSCBS", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["cstNenhum", "cst000", "cst010", "cst011", "cst200", "cst220", "cst221", "cst222", "cst400", "cst410", "cst510", "cst515", "cst550", "cst620", "cst800", "cst810", "cst811", "cst820", "cst830"] }, "TCSTIcms": { "name": "TCSTIcms", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["cstVazio", "cst00", "cst10", "cst20", "cst30", "cst40", "cst41", "cst45", "cst50", "cst51", "cst60", "cst70", "cst80", "cst81", "cst90", "cstICMSOutraUF", "cstICMSSN", "cstPart10", "cstPart90", "cstRep41", "cstRep60", "cst02", "cst15", "cst53", "cst61", "cst01", "cst12", "cst13", "cst14", "cst21", "cst72", "cst73", "cst74", "cstPart20"] }, "TCSTPis": { "name": "TCSTPis", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["pis01", "pis02", "pis03", "pis04", "pis05", "pis06", "pis07", "pis08", "pis09", "pis49", "pis50", "pis51", "pis52", "pis53", "pis54", "pis55", "pis56", "pis60", "pis61", "pis62", "pis63", "pis64", "pis65", "pis66", "pis67", "pis70", "pis71", "pis72", "pis73", "pis74", "pis75", "pis98", "pis99"] }, "TDeducCollection": { "name": "TDeducCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TDeducCollectionItem", "factory": "New" }, "TDeducCollectionItem": { "name": "TDeducCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "vDed", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "xDed", "type": "string", "kind": "string", "readonly": false }] }, "TdefensivoCollection": { "name": "TdefensivoCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TdefensivoCollectionItem", "factory": "New" }, "TdefensivoCollectionItem": { "name": "TdefensivoCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CPFRespTec", "type": "string", "kind": "string", "readonly": false }, { "name": "nReceituario", "type": "string", "kind": "string", "readonly": false }] }, "TDest": { "name": "TDest", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CNPJCPF", "type": "string", "kind": "string", "readonly": false }, { "name": "Email", "type": "string", "kind": "string", "readonly": false }, { "name": "EnderDest", "type": "TEnderDest", "kind": "object", "ref": "TEnderDest", "readonly": false }, { "name": "idEstrangeiro", "type": "string", "kind": "string", "readonly": false }, { "name": "IE", "type": "string", "kind": "string", "readonly": false }, { "name": "IM", "type": "string", "kind": "string", "readonly": false }, { "name": "indIEDest", "type": "TindIEDest", "kind": "enum", "ref": "TindIEDest", "readonly": false }, { "name": "ISUF", "type": "string", "kind": "string", "readonly": false }, { "name": "xNome", "type": "string", "kind": "string", "readonly": false }] }, "TDetCollection": { "name": "TDetCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TDetCollectionItem", "factory": "New" }, "TDetCollectionItem": { "name": "TDetCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "DFeReferenciado", "type": "TDFeReferenciado", "kind": "object", "ref": "TDFeReferenciado", "readonly": false }, { "name": "Imposto", "type": "TImposto", "kind": "object", "ref": "TImposto", "readonly": false }, { "name": "infAdProd", "type": "string", "kind": "string", "readonly": false }, { "name": "obsCont", "type": "TobsItem", "kind": "object", "ref": "TobsItem", "readonly": false }, { "name": "obsFisco", "type": "TobsItem", "kind": "object", "ref": "TobsItem", "readonly": false }, { "name": "pDevol", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "Prod", "type": "TProd", "kind": "object", "ref": "TProd", "readonly": false }, { "name": "vIPIDevol", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vItem", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TdetExportCollection": { "name": "TdetExportCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TdetExportCollectionItem", "factory": "New" }, "TdetExportCollectionItem": { "name": "TdetExportCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "chNFe", "type": "string", "kind": "string", "readonly": false }, { "name": "nDraw", "type": "string", "kind": "string", "readonly": false }, { "name": "nRE", "type": "string", "kind": "string", "readonly": false }, { "name": "qExport", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TDFErefCollection": { "name": "TDFErefCollection", "unit": "ACBrDFe.RTC.Classes", "kind": "list", "item": "TDFErefCollectionItem", "factory": "New" }, "TDFErefCollectionItem": { "name": "TDFErefCollectionItem", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "refDFeChave", "type": "string", "kind": "string", "readonly": false }] }, "TDFeReferenciado": { "name": "TDFeReferenciado", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "chaveAcesso", "type": "string", "kind": "string", "readonly": false }, { "name": "nItem", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }] }, "TDICollection": { "name": "TDICollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TDICollectionItem", "factory": "New" }, "TDICollectionItem": { "name": "TDICollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "adi", "type": "TAdiCollection", "kind": "list", "ref": "TAdiCollection", "readonly": false }, { "name": "cExportador", "type": "string", "kind": "string", "readonly": false }, { "name": "CNPJ", "type": "string", "kind": "string", "readonly": false }, { "name": "dDesemb", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "dDi", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "nDi", "type": "string", "kind": "string", "readonly": false }, { "name": "tpIntermedio", "type": "TpcnTipoIntermedio", "kind": "enum", "ref": "TpcnTipoIntermedio", "readonly": false }, { "name": "tpViaTransp", "type": "TpcnTipoViaTransp", "kind": "enum", "ref": "TpcnTipoViaTransp", "readonly": false }, { "name": "UFDesemb", "type": "string", "kind": "string", "readonly": false }, { "name": "UFTerceiro", "type": "string", "kind": "string", "readonly": false }, { "name": "vAFRMM", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "xLocDesemb", "type": "string", "kind": "string", "readonly": false }] }, "TDupCollection": { "name": "TDupCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TDupCollectionItem", "factory": "New" }, "TDupCollectionItem": { "name": "TDupCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "dVenc", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "nDup", "type": "string", "kind": "string", "readonly": false }, { "name": "vDup", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TEmit": { "name": "TEmit", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CNAE", "type": "string", "kind": "string", "readonly": false }, { "name": "CNPJCPF", "type": "string", "kind": "string", "readonly": false }, { "name": "CRT", "type": "TpcnCRT", "kind": "enum", "ref": "TpcnCRT", "readonly": false }, { "name": "EnderEmit", "type": "TEnderEmit", "kind": "object", "ref": "TenderEmit", "readonly": false }, { "name": "IE", "type": "string", "kind": "string", "readonly": false }, { "name": "IEST", "type": "string", "kind": "string", "readonly": false }, { "name": "IM", "type": "string", "kind": "string", "readonly": false }, { "name": "ISUFEmit", "type": "string", "kind": "string", "readonly": false }, { "name": "xFant", "type": "string", "kind": "string", "readonly": false }, { "name": "xNome", "type": "string", "kind": "string", "readonly": false }] }, "Tencerrante": { "name": "Tencerrante", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "nBico", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "nBomba", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "nTanque", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "vEncFin", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vEncIni", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TEnderDest": { "name": "TEnderDest", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CEP", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "cMun", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "cPais", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "fone", "type": "string", "kind": "string", "readonly": false }, { "name": "nro", "type": "string", "kind": "string", "readonly": false }, { "name": "UF", "type": "string", "kind": "string", "readonly": false }, { "name": "xBairro", "type": "string", "kind": "string", "readonly": false }, { "name": "xCpl", "type": "string", "kind": "string", "readonly": false }, { "name": "xLgr", "type": "string", "kind": "string", "readonly": false }, { "name": "xMun", "type": "string", "kind": "string", "readonly": false }, { "name": "xPais", "type": "string", "kind": "string", "readonly": false }] }, "TenderEmit": { "name": "TenderEmit", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CEP", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "cMun", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "cPais", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "fone", "type": "string", "kind": "string", "readonly": false }, { "name": "nro", "type": "string", "kind": "string", "readonly": false }, { "name": "UF", "type": "string", "kind": "string", "readonly": false }, { "name": "xBairro", "type": "string", "kind": "string", "readonly": false }, { "name": "xCpl", "type": "string", "kind": "string", "readonly": false }, { "name": "xLgr", "type": "string", "kind": "string", "readonly": false }, { "name": "xMun", "type": "string", "kind": "string", "readonly": false }, { "name": "xPais", "type": "string", "kind": "string", "readonly": false }] }, "TEntrega": { "name": "TEntrega", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CEP", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "cMun", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "CNPJCPF", "type": "string", "kind": "string", "readonly": false }, { "name": "cPais", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "Email", "type": "string", "kind": "string", "readonly": false }, { "name": "fone", "type": "string", "kind": "string", "readonly": false }, { "name": "IE", "type": "string", "kind": "string", "readonly": false }, { "name": "nro", "type": "string", "kind": "string", "readonly": false }, { "name": "UF", "type": "string", "kind": "string", "readonly": false }, { "name": "xBairro", "type": "string", "kind": "string", "readonly": false }, { "name": "xCpl", "type": "string", "kind": "string", "readonly": false }, { "name": "xLgr", "type": "string", "kind": "string", "readonly": false }, { "name": "xMun", "type": "string", "kind": "string", "readonly": false }, { "name": "xNome", "type": "string", "kind": "string", "readonly": false }, { "name": "xPais", "type": "string", "kind": "string", "readonly": false }] }, "TExporta": { "name": "TExporta", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "UFembarq", "type": "string", "kind": "string", "readonly": false }, { "name": "UFSaidaPais", "type": "string", "kind": "string", "readonly": false }, { "name": "xLocDespacho", "type": "string", "kind": "string", "readonly": false }, { "name": "xLocEmbarq", "type": "string", "kind": "string", "readonly": false }, { "name": "xLocExporta", "type": "string", "kind": "string", "readonly": false }] }, "TFat": { "name": "TFat", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "nFat", "type": "string", "kind": "string", "readonly": false }, { "name": "vDesc", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vLiq", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vOrig", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TForDiaCollection": { "name": "TForDiaCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TForDiaCollectionItem", "factory": "New" }, "TForDiaCollectionItem": { "name": "TForDiaCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "dia", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "qtde", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TgAjusteCompet": { "name": "TgAjusteCompet", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "competApur", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "vCBS", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBS", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgALCZFMCBS": { "name": "TgALCZFMCBS", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "nProcSuframa", "type": "string", "kind": "string", "readonly": false }, { "name": "pAliqEfetRegCBS", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "tpALCZFMCBS", "type": "TtpALCZFMCBS", "kind": "enum", "ref": "TtpALCZFMCBS", "readonly": false }, { "name": "vTribRegCBS", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgCBS": { "name": "TgCBS", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "vCBS", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vCredPres", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vCredPresCondSus", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vDevTrib", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vDif", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgCBSMonoAdRem": { "name": "TgCBSMonoAdRem", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "gMonoPadrao", "type": "TgMonoPadraoCBSQtde", "kind": "object", "ref": "TgMonoPadraoCBSQtde", "readonly": false }, { "name": "gMonoRet", "type": "TgMonoRetCBS", "kind": "object", "ref": "TgMonoRetCBS", "readonly": false }, { "name": "gMonoReten", "type": "TgMonoRetenCBSQtde", "kind": "object", "ref": "TgMonoRetenCBSQtde", "readonly": false }, { "name": "gpBioDiferenca", "type": "TgpBioDiferencaCBS", "kind": "object", "ref": "TgpBioDiferencaCBS", "readonly": false }] }, "TgCBSMonoAdValorem": { "name": "TgCBSMonoAdValorem", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "gMonoPadrao", "type": "TgMonoPadraoCBSAliq", "kind": "object", "ref": "TgMonoPadraoCBSAliq", "readonly": false }, { "name": "gMonoRet", "type": "TgMonoRetCBS", "kind": "object", "ref": "TgMonoRetCBS", "readonly": false }, { "name": "gMonoReten", "type": "TgMonoRetenCBSAliq", "kind": "object", "ref": "TgMonoRetenCBSAliq", "readonly": false }, { "name": "gpBioDiferenca", "type": "TgpBioDiferencaCBS", "kind": "object", "ref": "TgpBioDiferencaCBS", "readonly": false }] }, "TgCBSValores": { "name": "TgCBSValores", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "gALCZFMCBS", "type": "TgALCZFMCBS", "kind": "object", "ref": "TgALCZFMCBS", "readonly": false }, { "name": "gDevTrib", "type": "TgDevTrib", "kind": "object", "ref": "TgDevTrib", "readonly": false }, { "name": "gDif", "type": "TgDif", "kind": "object", "ref": "TgDif", "readonly": false }, { "name": "gRed", "type": "TgRed", "kind": "object", "ref": "TgRed", "readonly": false }, { "name": "pCBS", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vCBS", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgCompraGov": { "name": "TgCompraGov", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "pRedutor", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "refDFeAnt", "type": "TDFerefCollection", "kind": "list", "ref": "TDFErefCollection", "readonly": false }, { "name": "tpEnteGov", "type": "TtpEnteGov", "kind": "enum", "ref": "TtpEnteGov", "readonly": false }, { "name": "tpOperGov", "type": "TtpOperGov", "kind": "enum", "ref": "TtpOperGov", "readonly": false }] }, "TgCredPresOper": { "name": "TgCredPresOper", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "cCredPres", "type": "TcCredPres", "kind": "enum", "ref": "TcCredPres", "readonly": false }, { "name": "gCBSCredPres", "type": "TgIBSCBSCredPres", "kind": "object", "ref": "TgIBSCBSCredPres", "readonly": false }, { "name": "gIBSCredPres", "type": "TgIBSCBSCredPres", "kind": "object", "ref": "TgIBSCBSCredPres", "readonly": false }, { "name": "vBCCredPres", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgDevTrib": { "name": "TgDevTrib", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "pDevTrib", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vDevTrib", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgDif": { "name": "TgDif", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "pDif", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vDif", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgEstornoCred": { "name": "TgEstornoCred", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "vCBSEstCred", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBSEstCred", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgIBS": { "name": "TgIBS", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "gIBSMunTot", "type": "TgIBSMunTot", "kind": "object", "ref": "TgIBSMunTot", "readonly": false }, { "name": "gIBSUFTot", "type": "TgIBSUFTot", "kind": "object", "ref": "TgIBSUFTot", "readonly": false }, { "name": "vCredPres", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vCredPresCondSus", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBS", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgIBSCBS": { "name": "TgIBSCBS", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "gCBS", "type": "TgCBSValores", "kind": "object", "ref": "TgCBSValores", "readonly": false }, { "name": "gIBSMun", "type": "TgIBSMunValores", "kind": "object", "ref": "TgIBSMunValores", "readonly": false }, { "name": "gIBSUF", "type": "TgIBSUFValores", "kind": "object", "ref": "TgIBSUFValores", "readonly": false }, { "name": "gTribCompraGov", "type": "TgTribCompraGov", "kind": "object", "ref": "TgTribCompraGov", "readonly": false }, { "name": "gTribRegular", "type": "TgTribRegular", "kind": "object", "ref": "TgTribRegular", "readonly": false }, { "name": "vBC", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBS", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vOperacIndiv", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vRedAjusteIndiv", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vRedSocialIndiv", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vTornaIndiv", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgIBSCBSCredPres": { "name": "TgIBSCBSCredPres", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "pCredPres", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vCredPres", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vCredPresCondSus", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgIBSCBSMono": { "name": "TgIBSCBSMono", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "gCBSMonoAdRem", "type": "TgCBSMonoAdRem", "kind": "object", "ref": "TgCBSMonoAdRem", "readonly": false }, { "name": "gCBSMonoAdValorem", "type": "TgCBSMonoAdValorem", "kind": "object", "ref": "TgCBSMonoAdValorem", "readonly": false }, { "name": "gIBSMonoAdRem", "type": "TgIBSMonoAdRem", "kind": "object", "ref": "TgIBSMonoAdRem", "readonly": false }, { "name": "gIBSMonoAdValorem", "type": "TgIBSMonoAdValorem", "kind": "object", "ref": "TgIBSMonoAdValorem", "readonly": false }, { "name": "vTotCBSMonoItem", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vTotIBSMonoItem", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgIBSMonoAdRem": { "name": "TgIBSMonoAdRem", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "gMonoPadrao", "type": "TgMonoPadraoIBSQtde", "kind": "object", "ref": "TgMonoPadraoIBSQtde", "readonly": false }, { "name": "gMonoRet", "type": "TgMonoRetIBS", "kind": "object", "ref": "TgMonoRetIBS", "readonly": false }, { "name": "gMonoReten", "type": "TgMonoRetenIBSQtde", "kind": "object", "ref": "TgMonoRetenIBSQtde", "readonly": false }, { "name": "gpBioDiferenca", "type": "TgpBioDiferencaIBS", "kind": "object", "ref": "TgpBioDiferencaIBS", "readonly": false }] }, "TgIBSMonoAdValorem": { "name": "TgIBSMonoAdValorem", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "gMonoPadrao", "type": "TgMonoPadraoIBSAliq", "kind": "object", "ref": "TgMonoPadraoIBSAliq", "readonly": false }, { "name": "gMonoRet", "type": "TgMonoRetIBS", "kind": "object", "ref": "TgMonoRetIBS", "readonly": false }, { "name": "gMonoReten", "type": "TgMonoRetenIBSAliq", "kind": "object", "ref": "TgMonoRetenIBSAliq", "readonly": false }, { "name": "gpBioDiferenca", "type": "TgpBioDiferencaIBS", "kind": "object", "ref": "TgpBioDiferencaIBS", "readonly": false }] }, "TgIBSMunTot": { "name": "TgIBSMunTot", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "vDevTrib", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vDif", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBSMun", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgIBSMunValores": { "name": "TgIBSMunValores", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "gDevTrib", "type": "TgDevTrib", "kind": "object", "ref": "TgDevTrib", "readonly": false }, { "name": "gDif", "type": "TgDif", "kind": "object", "ref": "TgDif", "readonly": false }, { "name": "gRed", "type": "TgRed", "kind": "object", "ref": "TgRed", "readonly": false }, { "name": "pIBSMun", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBSMun", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgIBSUFTot": { "name": "TgIBSUFTot", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "vDevTrib", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vDif", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBSUF", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgIBSUFValores": { "name": "TgIBSUFValores", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "gDevTrib", "type": "TgDevTrib", "kind": "object", "ref": "TgDevTrib", "readonly": false }, { "name": "gDif", "type": "TgDif", "kind": "object", "ref": "TgDif", "readonly": false }, { "name": "gRed", "type": "TgRed", "kind": "object", "ref": "TgRed", "readonly": false }, { "name": "pIBSUF", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBSUF", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgIS": { "name": "TgIS", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "adRemIS", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "cClassTribIS", "type": "string", "kind": "string", "readonly": false }, { "name": "CSTIS", "type": "string", "kind": "string", "readonly": false }, { "name": "pIS", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "qTrib", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "uTrib", "type": "string", "kind": "string", "readonly": false }, { "name": "vBCIS", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIS", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgMono": { "name": "TgMono", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "vCBSMono", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vCBSMonoRet", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vCBSMonoReten", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBSMono", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBSMonoRet", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBSMonoReten", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgMonoPadraoCBSAliq": { "name": "TgMonoPadraoCBSAliq", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "pAliqMonoCBS", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vBCMono", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vCBSMono", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgMonoPadraoCBSQtde": { "name": "TgMonoPadraoCBSQtde", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "adRemCBS", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "qBCMono", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vCBSMono", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgMonoPadraoIBSAliq": { "name": "TgMonoPadraoIBSAliq", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "pAliqMonoMun", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "pAliqMonoUF", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vBCMono", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBSMono", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBSMonoMun", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBSMonoUF", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgMonoPadraoIBSQtde": { "name": "TgMonoPadraoIBSQtde", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "adRemIBS", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "qBCMono", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBSMono", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgMonoRetCBS": { "name": "TgMonoRetCBS", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "vCBSMonoRet", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgMonoRetenCBSAliq": { "name": "TgMonoRetenCBSAliq", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "pAliqMonoReten", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vBCMonoReten", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vCBSMonoReten", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgMonoRetenCBSQtde": { "name": "TgMonoRetenCBSQtde", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "adRemCBSReten", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "qBCMonoReten", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vCBSMonoReten", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgMonoRetenIBSAliq": { "name": "TgMonoRetenIBSAliq", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "pAliqMonoReten", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vBCMonoReten", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBSMonoReten", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgMonoRetenIBSQtde": { "name": "TgMonoRetenIBSQtde", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "adRemIBSReten", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "qBCMonoReten", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBSMonoReten", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgMonoRetIBS": { "name": "TgMonoRetIBS", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "vIBSMonoRet", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgPagAntecipado": { "name": "TgPagAntecipado", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "refNFe", "type": "TrefDFePagAntCollection", "kind": "list", "ref": "TrefDFePagAntCollection", "readonly": false }] }, "TgpBioDiferencaCBS": { "name": "TgpBioDiferencaCBS", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "qBCBioComb", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vCBSDiferenca", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgpBioDiferencaIBS": { "name": "TgpBioDiferencaIBS", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "qBCBioComb", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBSDiferenca", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgRed": { "name": "TgRed", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "pAliqEfet", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "pRedAliq", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgTransfCred": { "name": "TgTransfCred", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "vCBS", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vIBS", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgTribCompraGov": { "name": "TgTribCompraGov", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "pAliqCBS", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "pAliqIBSMun", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "pAliqIBSUF", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vTribCBS", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vTribIBSMun", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vTribIBSUF", "type": "Double", "kind": "decimal", "readonly": false }] }, "TgTribRegular": { "name": "TgTribRegular", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "cClassTribReg", "type": "string", "kind": "string", "readonly": false }, { "name": "CSTReg", "type": "TCSTIBSCBS", "kind": "enum", "ref": "TCSTIBSCBS", "readonly": false }, { "name": "pAliqEfetRegCBS", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "pAliqEfetRegIBSMun", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "pAliqEfetRegIBSUF", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vTribRegCBS", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vTribRegIBSMun", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vTribRegIBSUF", "type": "Double", "kind": "decimal", "readonly": false }] }, "TguiaTransito": { "name": "TguiaTransito", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "nGuia", "type": "string", "kind": "string", "readonly": false }, { "name": "serieGuia", "type": "string", "kind": "string", "readonly": false }, { "name": "tpGuia", "type": "TtpGuia", "kind": "enum", "ref": "TtpGuia", "readonly": false }, { "name": "UFGuia", "type": "string", "kind": "string", "readonly": false }] }, "TIBSCBS": { "name": "TIBSCBS", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "cClassTrib", "type": "string", "kind": "string", "readonly": false }, { "name": "CST", "type": "TCSTIBSCBS", "kind": "enum", "ref": "TCSTIBSCBS", "readonly": false }, { "name": "gAjusteCompet", "type": "TgAjusteCompet", "kind": "object", "ref": "TgAjusteCompet", "readonly": false }, { "name": "gCredPresIBSZFM", "type": "TCredPresIBSZFM", "kind": "object", "ref": "TCredPresIBSZFM", "readonly": false }, { "name": "gCredPresOper", "type": "TgCredPresOper", "kind": "object", "ref": "TgCredPresOper", "readonly": false }, { "name": "gEstornoCred", "type": "TgEstornoCred", "kind": "object", "ref": "TgEstornoCred", "readonly": false }, { "name": "gIBSCBS", "type": "TgIBSCBS", "kind": "object", "ref": "TgIBSCBS", "readonly": false }, { "name": "gIBSCBSMono", "type": "TgIBSCBSMono", "kind": "object", "ref": "TgIBSCBSMono", "readonly": false }, { "name": "gTransfCred", "type": "TgTransfCred", "kind": "object", "ref": "TgTransfCred", "readonly": false }, { "name": "indDoacao", "type": "TIndicadorEx", "kind": "enum", "ref": "TIndicadorEx", "readonly": false }] }, "TIBSCBSTot": { "name": "TIBSCBSTot", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "gCBS", "type": "TgCBS", "kind": "object", "ref": "TgCBS", "readonly": false }, { "name": "gEstornoCred", "type": "TgEstornoCred", "kind": "object", "ref": "TgEstornoCred", "readonly": false }, { "name": "gIBS", "type": "TgIBS", "kind": "object", "ref": "TgIBS", "readonly": false }, { "name": "gMono", "type": "TgMono", "kind": "object", "ref": "TgMono", "readonly": false }, { "name": "vBCIBSCBS", "type": "Double", "kind": "decimal", "readonly": false }] }, "TICMS": { "name": "TICMS", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "adRemICMS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "adRemICMSDif", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "adRemICMSRet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "adRemICMSReten", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "cBenefRBC", "type": "string", "kind": "string", "readonly": false }, { "name": "CSOSN", "type": "TCSOSNIcms", "kind": "enum", "ref": "TCSOSNIcms", "readonly": false }, { "name": "CST", "type": "TCSTIcms", "kind": "enum", "ref": "TCSTIcms", "readonly": false, "declaredDefault": "cst00" }, { "name": "indDeduzDeson", "type": "TIndicadorEx", "kind": "enum", "ref": "TIndicadorEx", "readonly": false, "declaredDefault": "tieNenhum" }, { "name": "modBC", "type": "TpcnDeterminacaoBaseIcms", "kind": "enum", "ref": "TpcnDeterminacaoBaseIcms", "readonly": false, "declaredDefault": "dbiMargemValorAgregado" }, { "name": "modBCST", "type": "TpcnDeterminacaoBaseIcmsST", "kind": "enum", "ref": "TpcnDeterminacaoBaseIcmsST", "readonly": false, "declaredDefault": "dbisPrecoTabelado" }, { "name": "motDesICMS", "type": "TpcnMotivoDesoneracaoICMS", "kind": "enum", "ref": "TpcnMotivoDesoneracaoICMS", "readonly": false }, { "name": "motDesICMSST", "type": "TpcnMotivoDesoneracaoICMS", "kind": "enum", "ref": "TpcnMotivoDesoneracaoICMS", "readonly": false }, { "name": "motRedAdRem", "type": "TmotRedAdRem", "kind": "enum", "ref": "TmotRedAdRem", "readonly": false }, { "name": "orig", "type": "TOrigemMercadoria", "kind": "enum", "ref": "TOrigemMercadoria", "readonly": false, "declaredDefault": "oeNacional" }, { "name": "pBCOp", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pCredSN", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pDif", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pFCP", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pFCPDif", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pFCPST", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pFCPSTRet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pICMS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pICMSEfet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pICMSST", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pMVAST", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pRedAdRem", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pRedBC", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pRedBCEfet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pRedBCST", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pST", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "qBCMono", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "qBCMonoDif", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "qBCMonoRet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "qBCMonoReten", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "UFST", "type": "string", "kind": "string", "readonly": false }, { "name": "vBC", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBCEfet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBCFCP", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBCFCPST", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBCFCPSTRet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBCST", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBCSTDest", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBCSTRet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vCredICMSSN", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vFCP", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vFCPDif", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vFCPEfet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vFCPST", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vFCPSTRet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSDeson", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSDif", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSEfet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSMono", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSMonoDif", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSMonoOp", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSMonoRet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSMonoReten", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSOp", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSST", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSSTDeson", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSSTDest", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSSTRet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSSubstituto", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TICMSComb": { "name": "TICMSComb", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "vBCICMS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBCICMSST", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSST", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TICMSCons": { "name": "TICMSCons", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "UFcons", "type": "string", "kind": "string", "readonly": false }, { "name": "vBCICMSSTCons", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSSTCons", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TICMSInter": { "name": "TICMSInter", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "vBCICMSSTDest", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSSTDest", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TICMSTot": { "name": "TICMSTot", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "qBCMono", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "qBCMonoRet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "qBCMonoReten", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBC", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBCST", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vCOFINS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vDesc", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vFCP", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vFCPST", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vFCPSTRet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vFCPUFDest", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vFrete", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSDeson", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSMono", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSMonoRet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSMonoReten", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSUFDest", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSUFRemet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vII", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vIPI", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vIPIDevol", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vNF", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vOutro", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vPIS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vProd", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vSeg", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vST", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vTotTrib", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TICMSUFDest": { "name": "TICMSUFDest", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "pFCPUFDest", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pICMSInter", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pICMSInterPart", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pICMSUFDest", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBCFCPUFDest", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBCUFDest", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vFCPUFDest", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSUFDest", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSUFRemet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TIde": { "name": "TIde", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "cDV", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "cIndOp", "type": "string", "kind": "string", "readonly": false }, { "name": "cMunFG", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "cMunFGIBS", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "cNF", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "cUF", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "dEmi", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "dhCont", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "dPrevEntrega", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "dSaiEnt", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "finNFe", "type": "TpcnFinalidadeNFe", "kind": "enum", "ref": "TpcnFinalidadeNFe", "readonly": false, "declaredDefault": "fnNormal" }, { "name": "gCompraGov", "type": "TgCompraGov", "kind": "object", "ref": "TgCompraGov", "readonly": false }, { "name": "gPagAntecipado", "type": "TgPagAntecipado", "kind": "object", "ref": "TgPagAntecipado", "readonly": false }, { "name": "hSaiEnt", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "idDest", "type": "TpcnDestinoOperacao", "kind": "enum", "ref": "TpcnDestinoOperacao", "readonly": false }, { "name": "indFinal", "type": "TpcnConsumidorFinal", "kind": "enum", "ref": "TpcnConsumidorFinal", "readonly": false }, { "name": "indIntermed", "type": "TindIntermed", "kind": "enum", "ref": "TindIntermed", "readonly": false }, { "name": "indPag", "type": "TpcnIndicadorPagamento", "kind": "enum", "ref": "TpcnIndicadorPagamento", "readonly": false, "declaredDefault": "ipPrazo" }, { "name": "indPres", "type": "TpcnPresencaComprador", "kind": "enum", "ref": "TpcnPresencaComprador", "readonly": false }, { "name": "modelo", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "natOp", "type": "string", "kind": "string", "readonly": false }, { "name": "NFref", "type": "TNFrefCollection", "kind": "list", "ref": "TNFrefCollection", "readonly": false }, { "name": "nNF", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "procEmi", "type": "TACBrProcessoEmissao", "kind": "enum", "ref": "TACBrProcessoEmissao", "readonly": false, "declaredDefault": "peAplicativoContribuinte" }, { "name": "serie", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "tpAmb", "type": "TACBrTipoAmbiente", "kind": "enum", "ref": "TACBrTipoAmbiente", "readonly": false, "declaredDefault": "taHomologacao" }, { "name": "tpEmis", "type": "TACBrTipoEmissao", "kind": "enum", "ref": "TACBrTipoEmissao", "readonly": false, "declaredDefault": "teNormal" }, { "name": "tpImp", "type": "TACBrTipoImpressao", "kind": "enum", "ref": "TACBrTipoImpressao", "readonly": false, "declaredDefault": "tiPaisagem" }, { "name": "tpNF", "type": "TTipoNFe", "kind": "enum", "ref": "TTipoNFe", "readonly": false, "declaredDefault": "tnSaida" }, { "name": "tpNFCredito", "type": "TtpNFCredito", "kind": "enum", "ref": "TtpNFCredito", "readonly": false }, { "name": "tpNFDebito", "type": "TtpNFDebito", "kind": "enum", "ref": "TtpNFDebito", "readonly": false }, { "name": "verProc", "type": "string", "kind": "string", "readonly": false }, { "name": "xJust", "type": "string", "kind": "string", "readonly": false }] }, "TII": { "name": "TII", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "vBc", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vDespAdu", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vII", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vIOF", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TImposto": { "name": "TImposto", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "COFINS", "type": "TCOFINS", "kind": "object", "ref": "TCOFINS", "readonly": false }, { "name": "COFINSST", "type": "TCOFINSST", "kind": "object", "ref": "TCOFINSST", "readonly": false }, { "name": "IBSCBS", "type": "TIBSCBS", "kind": "object", "ref": "TIBSCBS", "readonly": false }, { "name": "ICMS", "type": "TICMS", "kind": "object", "ref": "TICMS", "readonly": false }, { "name": "ICMSUFDest", "type": "TICMSUFDest", "kind": "object", "ref": "TICMSUFDest", "readonly": false }, { "name": "II", "type": "TII", "kind": "object", "ref": "TII", "readonly": false }, { "name": "IPI", "type": "TIPI", "kind": "object", "ref": "TIPI", "readonly": false }, { "name": "ISel", "type": "TgIS", "kind": "object", "ref": "TgIS", "readonly": false }, { "name": "ISSQN", "type": "TISSQN", "kind": "object", "ref": "TISSQN", "readonly": false }, { "name": "PIS", "type": "TPIS", "kind": "object", "ref": "TPIS", "readonly": false }, { "name": "PISST", "type": "TPISST", "kind": "object", "ref": "TPISST", "readonly": false }, { "name": "vTotTrib", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TIndicadorEx": { "name": "TIndicadorEx", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["tieNenhum", "tieSim", "tieNao"] }, "TindIEDest": { "name": "TindIEDest", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["inContribuinte", "inIsento", "inNaoContribuinte"] }, "TindImport": { "name": "TindImport", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["iiNacional", "iiImportado"] }, "TindIncentivo": { "name": "TindIncentivo", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["iiSim", "iiNao"] }, "TindIntermed": { "name": "TindIntermed", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["iiSemOperacao", "iiOperacaoSemIntermediador", "iiOperacaoComIntermediador"] }, "TIndSomaCOFINSST": { "name": "TIndSomaCOFINSST", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["iscNenhum", "iscCOFINSSTNaoCompoe", "iscCOFINSSTCompoe"] }, "TIndSomaPISST": { "name": "TIndSomaPISST", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["ispNenhum", "ispPISSTNaoCompoe", "ispPISSTCompoe"] }, "TInfAdic": { "name": "TInfAdic", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "infAdFisco", "type": "string", "kind": "string", "readonly": false }, { "name": "infCpl", "type": "string", "kind": "string", "readonly": false }, { "name": "obsCont", "type": "TobsContCollection", "kind": "list", "ref": "TobsContCollection", "readonly": false }, { "name": "obsFisco", "type": "TobsFiscoCollection", "kind": "list", "ref": "TobsFiscoCollection", "readonly": false }, { "name": "procRef", "type": "TprocRefCollection", "kind": "list", "ref": "TprocRefCollection", "readonly": false }] }, "TinfIntermed": { "name": "TinfIntermed", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CNPJ", "type": "string", "kind": "string", "readonly": false }, { "name": "idCadIntTran", "type": "string", "kind": "string", "readonly": false }] }, "TinfNFe": { "name": "TinfNFe", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "ID", "type": "string", "kind": "string", "readonly": false }, { "name": "Versao", "type": "Double", "kind": "decimal", "readonly": false }] }, "TinfNFeSupl": { "name": "TinfNFeSupl", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "qrCode", "type": "string", "kind": "string", "readonly": false }, { "name": "urlChave", "type": "string", "kind": "string", "readonly": false }] }, "TinfPAA": { "name": "TinfPAA", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CNPJPAA", "type": "string", "kind": "string", "readonly": false }, { "name": "Exponent", "type": "string", "kind": "string", "readonly": false }, { "name": "Modulus", "type": "string", "kind": "string", "readonly": false }, { "name": "SignatureValue", "type": "string", "kind": "string", "readonly": false }] }, "TinfRespTec": { "name": "TinfRespTec", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CNPJ", "type": "string", "kind": "string", "readonly": false }, { "name": "email", "type": "string", "kind": "string", "readonly": false }, { "name": "fone", "type": "string", "kind": "string", "readonly": false }, { "name": "hashCSRT", "type": "string", "kind": "string", "readonly": false }, { "name": "idCSRT", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "xContato", "type": "string", "kind": "string", "readonly": false }] }, "TIPI": { "name": "TIPI", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "cEnq", "type": "string", "kind": "string", "readonly": false }, { "name": "clEnq", "type": "string", "kind": "string", "readonly": false }, { "name": "CNPJProd", "type": "string", "kind": "string", "readonly": false }, { "name": "cSelo", "type": "string", "kind": "string", "readonly": false }, { "name": "CST", "type": "TpcnCstIpi", "kind": "enum", "ref": "TpcnCstIpi", "readonly": false, "declaredDefault": "ipi00" }, { "name": "pIPI", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "qSelo", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "qUnid", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBC", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vIPI", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vUnid", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TISSQN": { "name": "TISSQN", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "cListServ", "type": "string", "kind": "string", "readonly": false }, { "name": "cMun", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "cMunFG", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "cPais", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "cServico", "type": "string", "kind": "string", "readonly": false }, { "name": "cSitTrib", "type": "TpcnISSQNcSitTrib", "kind": "enum", "ref": "TpcnISSQNcSitTrib", "readonly": false, "declaredDefault": "ISSQNcSitTribVazio" }, { "name": "indIncentivo", "type": "TindIncentivo", "kind": "enum", "ref": "TindIncentivo", "readonly": false }, { "name": "indISS", "type": "TpcnindISS", "kind": "enum", "ref": "TpcnindISS", "readonly": false }, { "name": "indISSRet", "type": "TpcnindISSRet", "kind": "enum", "ref": "TpcnindISSRet", "readonly": false }, { "name": "nProcesso", "type": "string", "kind": "string", "readonly": false }, { "name": "vAliq", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBC", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vDeducao", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vDescCond", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vDescIncond", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vISSQN", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vISSRet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vOutro", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TISSQNtot": { "name": "TISSQNtot", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "cRegTrib", "type": "TRegTribISSQN", "kind": "enum", "ref": "TRegTribISSQN", "readonly": false }, { "name": "dCompet", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "vBC", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vCOFINS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vDeducao", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vDescCond", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vDescIncond", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vISS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vISSRet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vOutro", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vPIS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vServ", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TISTot": { "name": "TISTot", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "vIS", "type": "Double", "kind": "decimal", "readonly": false }] }, "TLacresCollection": { "name": "TLacresCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TLacresCollectionItem", "factory": "New" }, "TLacresCollectionItem": { "name": "TLacresCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "nLacre", "type": "string", "kind": "string", "readonly": false }] }, "TMedCollection": { "name": "TMedCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TMedCollectionItem", "factory": "New" }, "TMedCollectionItem": { "name": "TMedCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "cProdANVISA", "type": "string", "kind": "string", "readonly": false }, { "name": "dFab", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "dVal", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "nLote", "type": "string", "kind": "string", "readonly": false }, { "name": "qLote", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vPMC", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "xMotivoIsencao", "type": "string", "kind": "string", "readonly": false }] }, "TmotRedAdRem": { "name": "TmotRedAdRem", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["motTranspColetivo", "motOutros"] }, "TNFe": { "name": "TNFe", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "agropecuario", "type": "Tagropecuario", "kind": "object", "ref": "Tagropecuario", "readonly": false }, { "name": "autXML", "type": "TautXMLCollection", "kind": "list", "ref": "TautXMLCollection", "readonly": false }, { "name": "Avulsa", "type": "TAvulsa", "kind": "object", "ref": "TAvulsa", "readonly": false }, { "name": "cana", "type": "Tcana", "kind": "object", "ref": "Tcana", "readonly": false }, { "name": "Cobr", "type": "TCobr", "kind": "object", "ref": "TCobr", "readonly": false }, { "name": "compra", "type": "Tcompra", "kind": "object", "ref": "TCompra", "readonly": false }, { "name": "Dest", "type": "TDest", "kind": "object", "ref": "TDest", "readonly": false }, { "name": "Det", "type": "TDetCollection", "kind": "list", "ref": "TDetCollection", "readonly": false }, { "name": "Emit", "type": "TEmit", "kind": "object", "ref": "TEmit", "readonly": false }, { "name": "Entrega", "type": "TEntrega", "kind": "object", "ref": "TEntrega", "readonly": false }, { "name": "exporta", "type": "Texporta", "kind": "object", "ref": "TExporta", "readonly": false }, { "name": "Ide", "type": "TIde", "kind": "object", "ref": "TIde", "readonly": false }, { "name": "InfAdic", "type": "TInfAdic", "kind": "object", "ref": "TInfAdic", "readonly": false }, { "name": "infIntermed", "type": "TinfIntermed", "kind": "object", "ref": "TinfIntermed", "readonly": false }, { "name": "infNFe", "type": "TinfNFe", "kind": "object", "ref": "TinfNFe", "readonly": false }, { "name": "infNFeSupl", "type": "TinfNFeSupl", "kind": "object", "ref": "TinfNFeSupl", "readonly": true }, { "name": "infPAA", "type": "TinfPAA", "kind": "object", "ref": "TinfPAA", "readonly": false }, { "name": "infRespTec", "type": "TinfRespTec", "kind": "object", "ref": "TinfRespTec", "readonly": false }, { "name": "pag", "type": "TpagCollection", "kind": "list", "ref": "TpagCollection", "readonly": false }, { "name": "procNFe", "type": "TProcDFe", "kind": "object", "ref": "TProcDFe", "readonly": true }, { "name": "Retirada", "type": "TRetirada", "kind": "object", "ref": "TRetirada", "readonly": false }, { "name": "signature", "type": "Tsignature", "kind": "object", "ref": "TSignature", "readonly": true }, { "name": "Total", "type": "TTotal", "kind": "object", "ref": "TTotal", "readonly": false }, { "name": "Transp", "type": "TTransp", "kind": "object", "ref": "TTransp", "readonly": false }] }, "TNFrefCollection": { "name": "TNFrefCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TNFrefCollectionItem", "factory": "New" }, "TNFrefCollectionItem": { "name": "TNFrefCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "refCTe", "type": "string", "kind": "string", "readonly": false }, { "name": "RefECF", "type": "TRefECF", "kind": "object", "ref": "TRefECF", "readonly": false }, { "name": "RefNF", "type": "TRefNF", "kind": "object", "ref": "TRefNF", "readonly": false }, { "name": "refNFe", "type": "string", "kind": "string", "readonly": false }, { "name": "refNFeSig", "type": "string", "kind": "string", "readonly": false }, { "name": "RefNFP", "type": "TRefNFP", "kind": "object", "ref": "TRefNFP", "readonly": false }] }, "TNVECollection": { "name": "TNVECollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TNVECollectionItem", "factory": "New" }, "TNVECollectionItem": { "name": "TNVECollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "NVE", "type": "string", "kind": "string", "readonly": false }] }, "TobsContCollection": { "name": "TobsContCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TobsContCollectionItem", "factory": "New" }, "TobsContCollectionItem": { "name": "TobsContCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "xCampo", "type": "string", "kind": "string", "readonly": false }, { "name": "xTexto", "type": "string", "kind": "string", "readonly": false }] }, "TobsFiscoCollection": { "name": "TobsFiscoCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TobsFiscoCollectionItem", "factory": "New" }, "TobsFiscoCollectionItem": { "name": "TobsFiscoCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "xCampo", "type": "string", "kind": "string", "readonly": false }, { "name": "xTexto", "type": "string", "kind": "string", "readonly": false }] }, "TobsItem": { "name": "TobsItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "xCampo", "type": "string", "kind": "string", "readonly": false }, { "name": "xTexto", "type": "string", "kind": "string", "readonly": false }] }, "TorigCombCollection": { "name": "TorigCombCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TorigCombCollectionItem", "factory": "New" }, "TorigCombCollectionItem": { "name": "TorigCombCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "cUFOrig", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "indImport", "type": "TindImport", "kind": "enum", "ref": "TindImport", "readonly": false }, { "name": "pOrig", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TOrigemMercadoria": { "name": "TOrigemMercadoria", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["oeNacional", "oeEstrangeiraImportacaoDireta", "oeEstrangeiraAdquiridaBrasil", "oeNacionalConteudoImportacaoSuperior40", "oeNacionalProcessosBasicos", "oeNacionalConteudoImportacaoInferiorIgual40", "oeEstrangeiraImportacaoDiretaSemSimilar", "oeEstrangeiraAdquiridaBrasilSemSimilar", "oeNacionalConteudoImportacaoSuperior70", "oeReservadoParaUsoFuturo", "oeVazio"] }, "TpagCollection": { "name": "TpagCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TpagCollectionItem", "factory": "New" }, "TpagCollectionItem": { "name": "TpagCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "cAut", "type": "string", "kind": "string", "readonly": false }, { "name": "CNPJ", "type": "string", "kind": "string", "readonly": false }, { "name": "CNPJPag", "type": "string", "kind": "string", "readonly": false }, { "name": "CNPJReceb", "type": "string", "kind": "string", "readonly": false }, { "name": "dPag", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "idTermPag", "type": "string", "kind": "string", "readonly": false }, { "name": "indPag", "type": "TpcnIndicadorPagamento", "kind": "enum", "ref": "TpcnIndicadorPagamento", "readonly": false, "declaredDefault": "ipNenhum" }, { "name": "tBand", "type": "TpcnBandeiraCartao", "kind": "enum", "ref": "TpcnBandeiraCartao", "readonly": false }, { "name": "tPag", "type": "TpcnFormaPagamento", "kind": "enum", "ref": "TpcnFormaPagamento", "readonly": false }, { "name": "tpIntegra", "type": "TtpIntegra", "kind": "enum", "ref": "TtpIntegra", "readonly": false }, { "name": "UFPag", "type": "string", "kind": "string", "readonly": false }, { "name": "vPag", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "xPag", "type": "string", "kind": "string", "readonly": false }] }, "TpcnBandeiraCartao": { "name": "TpcnBandeiraCartao", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["bcVisa", "bcMasterCard", "bcAmericanExpress", "bcSorocred", "bcDinersClub", "bcElo", "bcHipercard", "bcAura", "bcCabal", "bcAlelo", "bcBanesCard", "bcCalCard", "bcCredz", "bcDiscover", "bcGoodCard", "bcGreenCard", "bcHiper", "bcJcB", "bcMais", "bcMaxVan", "bcPolicard", "bcRedeCompras", "bcSodexo", "bcValeCard", "bcVerocheque", "bcVR", "bcTicket", "bcOutros"] }, "TpcnCondicaoVeiculo": { "name": "TpcnCondicaoVeiculo", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["cvAcabado", "cvInacabado", "cvSemiAcabado"] }, "TpcnConsumidorFinal": { "name": "TpcnConsumidorFinal", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["cfNao", "cfConsumidorFinal"] }, "TpcnCRT": { "name": "TpcnCRT", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["crtSimplesNacional", "crtSimplesExcessoReceita", "crtRegimeNormal", "crtMEI"] }, "TpcnCstIpi": { "name": "TpcnCstIpi", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["ipi00", "ipi49", "ipi50", "ipi99", "ipi01", "ipi02", "ipi03", "ipi04", "ipi05", "ipi51", "ipi52", "ipi53", "ipi54", "ipi55"] }, "TpcnDestinoOperacao": { "name": "TpcnDestinoOperacao", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["doInterna", "doInterestadual", "doExterior"] }, "TpcnDeterminacaoBaseIcms": { "name": "TpcnDeterminacaoBaseIcms", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["dbiMargemValorAgregado", "dbiPauta", "dbiPrecoTabelado", "dbiValorOperacao", "dbiNenhum"] }, "TpcnDeterminacaoBaseIcmsST": { "name": "TpcnDeterminacaoBaseIcmsST", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["dbisPrecoTabelado", "dbisListaNegativa", "dbisListaPositiva", "dbisListaNeutra", "dbisMargemValorAgregado", "dbisPauta", "dbisValordaOperacao"] }, "TpcnECFModRef": { "name": "TpcnECFModRef", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["ECFModRefVazio", "ECFModRef2B", "ECFModRef2C", "ECFModRef2D"] }, "TpcnFinalidadeNFe": { "name": "TpcnFinalidadeNFe", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["fnNormal", "fnComplementar", "fnAjuste", "fnDevolucao", "fnCredito", "fnDebito"] }, "TpcnFormaPagamento": { "name": "TpcnFormaPagamento", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["fpDinheiro", "fpCheque", "fpCartaoCredito", "fpCartaoDebito", "fpCreditoLoja", "fpValeAlimentacao", "fpValeRefeicao", "fpValePresente", "fpValeCombustivel", "fpDuplicataMercantil", "fpBoletoBancario", "fpDepositoBancario", "fpPagamentoInstantaneo", "fpTransfBancario", "fpProgramaFidelidade", "fpSemPagamento", "fpRegimeEspecial", "fpOutro", "fpPagamentoInstantaneoEstatico", "fpCreditoEmLojaPorDevolucao", "fpFalhaHardware", "fpPagamentoPosterior", "fpPagInstantaneoPIXAutomatico", "fpTEFBookTransfer"] }, "TpcnIndEscala": { "name": "TpcnIndEscala", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["ieRelevante", "ieNaoRelevante", "ieNenhum"] }, "TpcnIndicadorPagamento": { "name": "TpcnIndicadorPagamento", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["ipVista", "ipPrazo", "ipOutras", "ipNenhum"] }, "TpcnIndicadorProcesso": { "name": "TpcnIndicadorProcesso", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["ipSEFAZ", "ipJusticaFederal", "ipJusticaEstadual", "ipSecexRFB", "ipCONFAZ", "ipOutros"] }, "TpcnIndicadorTotal": { "name": "TpcnIndicadorTotal", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["itSomaTotalNFe", "itNaoSomaTotalNFe"] }, "TpcnindISS": { "name": "TpcnindISS", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["iiExigivel", "iiNaoIncidencia", "iiIsencao", "iiExportacao", "iiImunidade", "iiExigSuspDecisaoJudicial", "iiExigSuspProcessoAdm"] }, "TpcnindISSRet": { "name": "TpcnindISSRet", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["iirSim", "iirNao"] }, "TpcnISSQNcSitTrib": { "name": "TpcnISSQNcSitTrib", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["ISSQNcSitTribVazio", "ISSQNcSitTribNORMAL", "ISSQNcSitTribRETIDA", "ISSQNcSitTribSUBSTITUTA", "ISSQNcSitTribISENTA"] }, "TpcnModalidadeFrete": { "name": "TpcnModalidadeFrete", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["mfContaEmitente", "mfContaDestinatario", "mfContaTerceiros", "mfProprioRemetente", "mfProprioDestinatario", "mfSemFrete"] }, "TpcnMotivoDesoneracaoICMS": { "name": "TpcnMotivoDesoneracaoICMS", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["mdiTaxi", "mdiDeficienteFisico", "mdiProdutorAgropecuario", "mdiFrotistaLocadora", "mdiDiplomaticoConsular", "mdiAmazoniaLivreComercio", "mdiSuframa", "mdiVendaOrgaosPublicos", "mdiOutros", "mdiDeficienteCondutor", "mdiDeficienteNaoCondutor", "mdiOrgaoFomento", "mdiOlimpiadaRio2016", "mdiSolicitadoFisco"] }, "TpcnPresencaComprador": { "name": "TpcnPresencaComprador", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["pcNao", "pcPresencial", "pcInternet", "pcTeleatendimento", "pcEntregaDomicilio", "pcPresencialForaEstabelecimento", "pcOutros"] }, "TpcnTipoArma": { "name": "TpcnTipoArma", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["taUsoPermitido", "taUsoRestrito"] }, "TpcnTipoIntermedio": { "name": "TpcnTipoIntermedio", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["tiContaPropria", "tiContaOrdem", "tiEncomenda"] }, "TpcnTipoOperacao": { "name": "TpcnTipoOperacao", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["toVendaConcessionaria", "toFaturamentoDireto", "toVendaDireta", "toOutros"] }, "TpcnTipoViaTransp": { "name": "TpcnTipoViaTransp", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["tvMaritima", "tvFluvial", "tvLacustre", "tvAerea", "tvPostal", "tvFerroviaria", "tvRodoviaria", "tvConduto", "tvMeiosProprios", "tvEntradaSaidaFicta", "tvCourier", "tvEmMaos", "tvPorReboque"] }, "TPIS": { "name": "TPIS", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CST", "type": "TCstPis", "kind": "enum", "ref": "TCSTPis", "readonly": false, "declaredDefault": "pis01" }, { "name": "pPIS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "qBCProd", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vAliqProd", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBC", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vPIS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TPISST": { "name": "TPISST", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "indSomaPISST", "type": "TIndSomaPISST", "kind": "enum", "ref": "TIndSomaPISST", "readonly": false }, { "name": "pPis", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "qBCProd", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vAliqProd", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBc", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vPIS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TProcDFe": { "name": "TProcDFe", "unit": "ACBrDFeComum.Proc", "kind": "object", "properties": [{ "name": "chDFe", "type": "string", "kind": "string", "readonly": false }, { "name": "cMsg", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "cStat", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "dhRecbto", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "digVal", "type": "string", "kind": "string", "readonly": false }, { "name": "Id", "type": "string", "kind": "string", "readonly": false }, { "name": "nProt", "type": "string", "kind": "string", "readonly": false }, { "name": "PathDFe", "type": "string", "kind": "string", "readonly": false }, { "name": "PathRetConsReciDFe", "type": "string", "kind": "string", "readonly": false }, { "name": "PathRetConsSitDFe", "type": "string", "kind": "string", "readonly": false }, { "name": "tpAmb", "type": "TACBrTipoAmbiente", "kind": "enum", "ref": "TACBrTipoAmbiente", "readonly": false }, { "name": "verAplic", "type": "string", "kind": "string", "readonly": false }, { "name": "XML_DFe", "type": "string", "kind": "string", "readonly": false }, { "name": "XML_prot", "type": "string", "kind": "string", "readonly": false }, { "name": "xMotivo", "type": "string", "kind": "string", "readonly": false }, { "name": "xMsg", "type": "string", "kind": "string", "readonly": false }] }, "TprocRefCollection": { "name": "TprocRefCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TprocRefCollectionItem", "factory": "New" }, "TprocRefCollectionItem": { "name": "TprocRefCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "indProc", "type": "TpcnIndicadorProcesso", "kind": "enum", "ref": "TpcnIndicadorProcesso", "readonly": false, "declaredDefault": "ipSEFAZ" }, { "name": "nProc", "type": "string", "kind": "string", "readonly": false }, { "name": "tpAto", "type": "TtpAto", "kind": "enum", "ref": "TtpAto", "readonly": false }] }, "TProd": { "name": "TProd", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "arma", "type": "TarmaCollection", "kind": "list", "ref": "TArmaCollection", "readonly": false }, { "name": "cBarra", "type": "string", "kind": "string", "readonly": false }, { "name": "cBarraTrib", "type": "string", "kind": "string", "readonly": false }, { "name": "cBenef", "type": "string", "kind": "string", "readonly": false }, { "name": "cEAN", "type": "string", "kind": "string", "readonly": false }, { "name": "cEANTrib", "type": "string", "kind": "string", "readonly": false }, { "name": "CEST", "type": "string", "kind": "string", "readonly": false }, { "name": "CFOP", "type": "string", "kind": "string", "readonly": false }, { "name": "CNPJFab", "type": "string", "kind": "string", "readonly": false }, { "name": "comb", "type": "TComb", "kind": "object", "ref": "TComb", "readonly": false }, { "name": "cProd", "type": "string", "kind": "string", "readonly": false }, { "name": "CredPresumido", "type": "TCredPresumidoCollection", "kind": "list", "ref": "TCredPresumidoCollection", "readonly": false }, { "name": "detExport", "type": "TdetExportCollection", "kind": "list", "ref": "TdetExportCollection", "readonly": false }, { "name": "DI", "type": "TDICollection", "kind": "list", "ref": "TDICollection", "readonly": false }, { "name": "EXTIPI", "type": "string", "kind": "string", "readonly": false }, { "name": "indBemMovelUsado", "type": "TIndicadorEx", "kind": "enum", "ref": "TIndicadorEx", "readonly": false, "declaredDefault": "tieNenhum" }, { "name": "indEscala", "type": "TpcnIndEscala", "kind": "enum", "ref": "TpcnIndEscala", "readonly": false, "declaredDefault": "ieNenhum" }, { "name": "IndTot", "type": "TpcnIndicadorTotal", "kind": "enum", "ref": "TpcnIndicadorTotal", "readonly": false, "declaredDefault": "itSomaTotalNFe" }, { "name": "med", "type": "TMedCollection", "kind": "list", "ref": "TMedCollection", "readonly": false }, { "name": "NCM", "type": "string", "kind": "string", "readonly": false }, { "name": "nFCI", "type": "string", "kind": "string", "readonly": false }, { "name": "nItem", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "nItemPed", "type": "string", "kind": "string", "readonly": false }, { "name": "nRECOPI", "type": "string", "kind": "string", "readonly": false }, { "name": "NVE", "type": "TNVECollection", "kind": "list", "ref": "TNVECollection", "readonly": false }, { "name": "qCom", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "qTrib", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "rastro", "type": "TRastroCollection", "kind": "list", "ref": "TRastroCollection", "readonly": false }, { "name": "tpCredPresIBSZFM", "type": "TtpCredPresIBSZFM", "kind": "enum", "ref": "TTpCredPresIBSZFM", "readonly": false }, { "name": "uCom", "type": "string", "kind": "string", "readonly": false }, { "name": "uTrib", "type": "string", "kind": "string", "readonly": false }, { "name": "vDesc", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "veicProd", "type": "TveicProd", "kind": "object", "ref": "TveicProd", "readonly": false }, { "name": "vFrete", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vOutro", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vProd", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vSeg", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vUnCom", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "vUnTrib", "type": "Double", "kind": "decimal", "readonly": false }, { "name": "xPed", "type": "string", "kind": "string", "readonly": false }, { "name": "xProd", "type": "string", "kind": "string", "readonly": false }] }, "TRastroCollection": { "name": "TRastroCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TRastroCollectionItem", "factory": "New" }, "TRastroCollectionItem": { "name": "TRastroCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "cAgreg", "type": "string", "kind": "string", "readonly": false }, { "name": "dFab", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "dVal", "type": "TDateTime", "kind": "datetime", "readonly": false }, { "name": "nLote", "type": "string", "kind": "string", "readonly": false }, { "name": "qLote", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TReboqueCollection": { "name": "TReboqueCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TReboqueCollectionItem", "factory": "New" }, "TReboqueCollectionItem": { "name": "TReboqueCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "placa", "type": "string", "kind": "string", "readonly": false }, { "name": "RNTC", "type": "string", "kind": "string", "readonly": false }, { "name": "UF", "type": "string", "kind": "string", "readonly": false }] }, "TrefDFePagAntCollection": { "name": "TrefDFePagAntCollection", "unit": "ACBrDFe.RTC.Classes", "kind": "list", "item": "TrefDFePagAntCollectionItem", "factory": "New" }, "TrefDFePagAntCollectionItem": { "name": "TrefDFePagAntCollectionItem", "unit": "ACBrDFe.RTC.Classes", "kind": "object", "properties": [{ "name": "refDFEChave", "type": "string", "kind": "string", "readonly": false }] }, "TRefECF": { "name": "TRefECF", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "modelo", "type": "TpcnECFModRef", "kind": "enum", "ref": "TpcnECFModRef", "readonly": false, "declaredDefault": "ECFModRefVazio" }, { "name": "nCOO", "type": "string", "kind": "string", "readonly": false }, { "name": "nECF", "type": "string", "kind": "string", "readonly": false }] }, "TRefNF": { "name": "TRefNF", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "AAMM", "type": "string", "kind": "string", "readonly": false }, { "name": "CNPJ", "type": "string", "kind": "string", "readonly": false }, { "name": "cUF", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "modelo", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "nNF", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "serie", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }] }, "TRefNFP": { "name": "TRefNFP", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "AAMM", "type": "string", "kind": "string", "readonly": false }, { "name": "CNPJCPF", "type": "string", "kind": "string", "readonly": false }, { "name": "cUF", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "IE", "type": "string", "kind": "string", "readonly": false }, { "name": "modelo", "type": "string", "kind": "string", "readonly": false }, { "name": "nNF", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "serie", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }] }, "TRegTribISSQN": { "name": "TRegTribISSQN", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["RTISSMicroempresaMunicipal", "RTISSEstimativa", "RTISSSociedadeProfissionais", "RTISSCooperativa", "RTISSMEI", "RTISSMEEPP", "RTISSNenhum"] }, "TRetirada": { "name": "TRetirada", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CEP", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "cMun", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "CNPJCPF", "type": "string", "kind": "string", "readonly": false }, { "name": "cPais", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "Email", "type": "string", "kind": "string", "readonly": false }, { "name": "fone", "type": "string", "kind": "string", "readonly": false }, { "name": "IE", "type": "string", "kind": "string", "readonly": false }, { "name": "nro", "type": "string", "kind": "string", "readonly": false }, { "name": "UF", "type": "string", "kind": "string", "readonly": false }, { "name": "xBairro", "type": "string", "kind": "string", "readonly": false }, { "name": "xCpl", "type": "string", "kind": "string", "readonly": false }, { "name": "xLgr", "type": "string", "kind": "string", "readonly": false }, { "name": "xMun", "type": "string", "kind": "string", "readonly": false }, { "name": "xNome", "type": "string", "kind": "string", "readonly": false }, { "name": "xPais", "type": "string", "kind": "string", "readonly": false }] }, "TretTransp": { "name": "TretTransp", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CFOP", "type": "string", "kind": "string", "readonly": false }, { "name": "cMunFG", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "pICMSRet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBCRet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vICMSRet", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vServ", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TretTrib": { "name": "TretTrib", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "vBCIRRF", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vBCRetPrev", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vIRRF", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vRetCOFINS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vRetCSLL", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vRetPIS", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "vRetPrev", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }] }, "TSignature": { "name": "TSignature", "unit": "ACBrXmlBase", "kind": "object", "properties": [{ "name": "DigestValue", "type": "string", "kind": "string", "readonly": false }, { "name": "IdSignature", "type": "string", "kind": "string", "readonly": false }, { "name": "IdSignatureValue", "type": "string", "kind": "string", "readonly": false }, { "name": "SignatureValue", "type": "string", "kind": "string", "readonly": false }, { "name": "URI", "type": "string", "kind": "string", "readonly": false }, { "name": "X509Certificate", "type": "string", "kind": "string", "readonly": false }] }, "TTipoNFe": { "name": "TTipoNFe", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["tnEntrada", "tnSaida"] }, "TTotal": { "name": "TTotal", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "IBSCBSTot", "type": "TIBSCBSTot", "kind": "object", "ref": "TIBSCBSTot", "readonly": false }, { "name": "ICMSTot", "type": "TICMSTot", "kind": "object", "ref": "TICMSTot", "readonly": false }, { "name": "ISSQNtot", "type": "TISSQNtot", "kind": "object", "ref": "TISSQNtot", "readonly": false }, { "name": "ISTot", "type": "TISTot", "kind": "object", "ref": "TISTot", "readonly": false }, { "name": "retTrib", "type": "TretTrib", "kind": "object", "ref": "TretTrib", "readonly": false }, { "name": "vNFTot", "type": "Double", "kind": "decimal", "readonly": false }] }, "TtpALCZFMCBS": { "name": "TtpALCZFMCBS", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["tpALCZFMCBSnOpInd", "tpALCZFMCBSOpInd"] }, "TtpAto": { "name": "TtpAto", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["taNenhum", "taTermoAcordo", "taRegimeEspecial", "taAutorizacaoEspecifica", "taAjusteSNIEF", "taConvenioICMS"] }, "TTpCredPresIBSZFM": { "name": "TTpCredPresIBSZFM", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["tcpNenhum", "tcpSemCredito", "tcpBensConsumoFinal", "tcpBensCapital", "tcpBensIntermediarios", "tcpBensInformaticaOutros"] }, "TtpEnteGov": { "name": "TtpEnteGov", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["tcgNenhum", "tcgUniao", "tcgEstados", "tcgDistritoFederal", "tcgMunicipios", "tcgConsorcioPublico", "tcgComiteGestorIBS"] }, "TtpGuia": { "name": "TtpGuia", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["tpgNenhum", "tpgGTA", "tpgTTA", "tpgDTA", "tpgATV", "tpgPTV", "tpgGTV", "tpgGuiaFlorestal"] }, "TtpIntegra": { "name": "TtpIntegra", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["tiNaoInformado", "tiPagIntegrado", "tiPagNaoIntegrado"] }, "TtpNFCredito": { "name": "TtpNFCredito", "unit": "pcnConversaoNFe", "kind": "enum", "values": ["tcNenhum", "tcMultaJuros", "tcApropriacaoCreditoPresumido", "tcRetorno", "tcReducaoValores", "tcTransferenciaCreditoSucessao", "tcRetornoRecusaParcial"] }, "TtpNFDebito": { "name": "TtpNFDebito", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["tdNenhum", "tdTransferenciaCreditoCooperativa", "tdAnulacao", "tdDebitosNaoProcessadas", "tdMultaJuros", "tdTransferenciaCreditoSucessao", "tdPagamentoAntecipado", "tdPerdaEmEstoque", "tdDesenquadramentodoSN"] }, "TtpOperGov": { "name": "TtpOperGov", "unit": "ACBrDFe.Conversao", "kind": "enum", "values": ["togNenhum", "togFornecimento", "togRecebimentoPag", "togFornecimentoPagRealizado", "togRecebimentoPagFornecPosterior"] }, "TTransp": { "name": "TTransp", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "balsa", "type": "string", "kind": "string", "readonly": false }, { "name": "modFrete", "type": "TpcnModalidadeFrete", "kind": "enum", "ref": "TpcnModalidadeFrete", "readonly": false }, { "name": "Reboque", "type": "TReboqueCollection", "kind": "list", "ref": "TReboqueCollection", "readonly": false }, { "name": "retTransp", "type": "TretTransp", "kind": "object", "ref": "TretTransp", "readonly": false }, { "name": "Transporta", "type": "TTransporta", "kind": "object", "ref": "TTransporta", "readonly": false }, { "name": "vagao", "type": "string", "kind": "string", "readonly": false }, { "name": "veicTransp", "type": "TveicTransp", "kind": "object", "ref": "TveicTransp", "readonly": false }, { "name": "Vol", "type": "TVolCollection", "kind": "list", "ref": "TVolCollection", "readonly": false }] }, "TTransporta": { "name": "TTransporta", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "CNPJCPF", "type": "string", "kind": "string", "readonly": false }, { "name": "IE", "type": "string", "kind": "string", "readonly": false }, { "name": "UF", "type": "string", "kind": "string", "readonly": false }, { "name": "xEnder", "type": "string", "kind": "string", "readonly": false }, { "name": "xMun", "type": "string", "kind": "string", "readonly": false }, { "name": "xNome", "type": "string", "kind": "string", "readonly": false }] }, "TveicProd": { "name": "TveicProd", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "anoFab", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "anoMod", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "cCor", "type": "string", "kind": "string", "readonly": false }, { "name": "cCorDENATRAN", "type": "string", "kind": "string", "readonly": false }, { "name": "chassi", "type": "string", "kind": "string", "readonly": false }, { "name": "Cilin", "type": "string", "kind": "string", "readonly": false }, { "name": "cMod", "type": "string", "kind": "string", "readonly": false }, { "name": "CMT", "type": "string", "kind": "string", "readonly": false }, { "name": "CombDescricao", "type": "string", "kind": "string", "readonly": true }, { "name": "condVeic", "type": "TpcnCondicaoVeiculo", "kind": "enum", "ref": "TpcnCondicaoVeiculo", "readonly": false }, { "name": "dist", "type": "string", "kind": "string", "readonly": false }, { "name": "espVeic", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "lota", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "nMotor", "type": "string", "kind": "string", "readonly": false }, { "name": "nSerie", "type": "string", "kind": "string", "readonly": false }, { "name": "pesoB", "type": "string", "kind": "string", "readonly": false }, { "name": "pesoL", "type": "string", "kind": "string", "readonly": false }, { "name": "pot", "type": "string", "kind": "string", "readonly": false }, { "name": "tpComb", "type": "string", "kind": "string", "readonly": false }, { "name": "tpOP", "type": "TpcnTipoOperacao", "kind": "enum", "ref": "TpcnTipoOperacao", "readonly": false }, { "name": "tpPint", "type": "string", "kind": "string", "readonly": false }, { "name": "tpRest", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "tpVeic", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }, { "name": "VIN", "type": "string", "kind": "string", "readonly": false }, { "name": "xCor", "type": "string", "kind": "string", "readonly": false }] }, "TveicTransp": { "name": "TveicTransp", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "placa", "type": "string", "kind": "string", "readonly": false }, { "name": "RNTC", "type": "string", "kind": "string", "readonly": false }, { "name": "UF", "type": "string", "kind": "string", "readonly": false }] }, "TVolCollection": { "name": "TVolCollection", "unit": "ACBrNFe.Classes", "kind": "list", "item": "TVolCollectionItem", "factory": "New" }, "TVolCollectionItem": { "name": "TVolCollectionItem", "unit": "ACBrNFe.Classes", "kind": "object", "properties": [{ "name": "esp", "type": "string", "kind": "string", "readonly": false }, { "name": "Lacres", "type": "TLacresCollection", "kind": "list", "ref": "TLacresCollection", "readonly": false }, { "name": "marca", "type": "string", "kind": "string", "readonly": false }, { "name": "nVol", "type": "string", "kind": "string", "readonly": false }, { "name": "pesoB", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "pesoL", "type": "Currency", "kind": "decimal", "scale": 4, "readonly": false }, { "name": "qVol", "type": "Integer", "kind": "integer", "min": -2147483648, "max": 2147483647, "readonly": false }] } };
3086
+ function validateModel(model, value, at = model) {
3087
+ const schema = MODEL_SCHEMA[model];
3088
+ if (!schema) throw new TypeError("Modelo desconhecido: " + model);
3089
+ if (schema.kind === "enum") {
3090
+ if (typeof value !== "string" || !schema.values.includes(value)) throw new TypeError(at + ": enum inv\xE1lido");
3091
+ return;
3092
+ }
3093
+ if (schema.kind === "list") {
3094
+ if (!Array.isArray(value)) throw new TypeError(at + ": esperado array");
3095
+ value.forEach((item, index) => validateModel(schema.item, item, at + "[" + index + "]"));
3096
+ return;
3097
+ }
3098
+ if (value === null || typeof value !== "object" || Array.isArray(value)) throw new TypeError(at + ": esperado objeto");
3099
+ const fields = new Map(schema.properties.filter((p) => !p.readonly).map((p) => [p.name, p]));
3100
+ for (const [name, v] of Object.entries(value)) {
3101
+ if (v === void 0) continue;
3102
+ const p = fields.get(name);
3103
+ if (!p) throw new TypeError(at + "." + name + ": propriedade desconhecida ou somente leitura");
3104
+ if (v === void 0) continue;
3105
+ const field = at + "." + name;
3106
+ if (p.ref) {
3107
+ validateModel(p.ref, v, field);
3108
+ continue;
3109
+ }
3110
+ if (p.kind === "integer") {
3111
+ if (typeof v !== "number" || !Number.isSafeInteger(v) || v < p.min || v > p.max) throw new TypeError(field + ": inteiro fora do intervalo");
3112
+ } else if (p.kind === "boolean") {
3113
+ if (typeof v !== "boolean") throw new TypeError(field + ": esperado boolean");
3114
+ } else if (p.kind === "decimal") {
3115
+ if (typeof v !== "string" || v.length > 64 || !/^-?\d+(?:\.\d+)?$/.test(v) || p.scale !== void 0 && (v.split(".")[1]?.length ?? 0) > p.scale) throw new TypeError(field + ": esperado decimal em string" + (p.scale !== void 0 ? " de at\xE9 " + p.scale + " casas" : ""));
3116
+ } else if (p.kind === "datetime") {
3117
+ if (typeof v !== "string" || !/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?)?$/.test(v) || Number.isNaN(Date.parse(v + (v.length === 10 ? "T00:00:00Z" : "Z")))) throw new TypeError(field + ": esperado data/hora civil ISO (sem timezone)");
3118
+ const date = /* @__PURE__ */ new Date(v + (v.length === 10 ? "T00:00:00Z" : "Z"));
3119
+ if (date.toISOString().slice(0, 10) !== v.slice(0, 10)) throw new TypeError(field + ": data inv\xE1lida");
3120
+ } else if (typeof v !== "string") throw new TypeError(field + ": esperado string");
3121
+ }
3122
+ }
3123
+ function validateTNFe(value) {
3124
+ validateModel("TNFe", value);
3125
+ }
3126
+
3127
+ // src/index.ts
3128
+ function criarEmissor2(options) {
3129
+ const emissor = criarEmissor({ ...options, contrato: ACBR_CONTRACT, validaDocumento: validateTNFe });
3130
+ return { ...emissor, gerarXml(documento, operacao) {
3131
+ return emissor.gerarXml(documento, operacao);
3132
+ } };
3133
+ }
3134
+ // Annotate the CommonJS export names for ESM import in node:
3135
+ 0 && (module.exports = {
3136
+ ACBR_CONTRACT,
3137
+ CONTRACT_HASH,
3138
+ ErroAcbrNode,
3139
+ PROTOCOL_VERSION,
3140
+ SOURCE_REVISION,
3141
+ TACBrProcessoEmissao,
3142
+ TACBrTipoAmbiente,
3143
+ TACBrTipoEmissao,
3144
+ TACBrTipoImpressao,
3145
+ TAdiCollection,
3146
+ TAdiCollectionItem,
3147
+ TArmaCollection,
3148
+ TArmaCollectionItem,
3149
+ TAvulsa,
3150
+ TCIDE,
3151
+ TCOFINS,
3152
+ TCOFINSST,
3153
+ TCSOSNIcms,
3154
+ TCSTCofins,
3155
+ TCSTIBSCBS,
3156
+ TCSTIcms,
3157
+ TCSTPis,
3158
+ TCobr,
3159
+ TComb,
3160
+ TCompra,
3161
+ TCredPresIBSZFM,
3162
+ TCredPresumidoCollection,
3163
+ TCredPresumidoCollectionItem,
3164
+ TDFErefCollection,
3165
+ TDFErefCollectionItem,
3166
+ TDFeReferenciado,
3167
+ TDICollection,
3168
+ TDICollectionItem,
3169
+ TDeducCollection,
3170
+ TDeducCollectionItem,
3171
+ TDest,
3172
+ TDetCollection,
3173
+ TDetCollectionItem,
3174
+ TDupCollection,
3175
+ TDupCollectionItem,
3176
+ TEmit,
3177
+ TEnderDest,
3178
+ TEntrega,
3179
+ TExporta,
3180
+ TFat,
3181
+ TForDiaCollection,
3182
+ TForDiaCollectionItem,
3183
+ TIBSCBS,
3184
+ TIBSCBSTot,
3185
+ TICMS,
3186
+ TICMSComb,
3187
+ TICMSCons,
3188
+ TICMSInter,
3189
+ TICMSTot,
3190
+ TICMSUFDest,
3191
+ TII,
3192
+ TIPI,
3193
+ TISSQN,
3194
+ TISSQNtot,
3195
+ TISTot,
3196
+ TIde,
3197
+ TImposto,
3198
+ TIndSomaCOFINSST,
3199
+ TIndSomaPISST,
3200
+ TIndicadorEx,
3201
+ TInfAdic,
3202
+ TLacresCollection,
3203
+ TLacresCollectionItem,
3204
+ TMedCollection,
3205
+ TMedCollectionItem,
3206
+ TNFe,
3207
+ TNFrefCollection,
3208
+ TNFrefCollectionItem,
3209
+ TNVECollection,
3210
+ TNVECollectionItem,
3211
+ TOrigemMercadoria,
3212
+ TPIS,
3213
+ TPISST,
3214
+ TProcDFe,
3215
+ TProd,
3216
+ TRastroCollection,
3217
+ TRastroCollectionItem,
3218
+ TReboqueCollection,
3219
+ TReboqueCollectionItem,
3220
+ TRefECF,
3221
+ TRefNF,
3222
+ TRefNFP,
3223
+ TRegTribISSQN,
3224
+ TRetirada,
3225
+ TSignature,
3226
+ TTipoNFe,
3227
+ TTotal,
3228
+ TTpCredPresIBSZFM,
3229
+ TTransp,
3230
+ TTransporta,
3231
+ TVolCollection,
3232
+ TVolCollectionItem,
3233
+ Tagropecuario,
3234
+ TautXMLCollection,
3235
+ TautXMLCollectionItem,
3236
+ TcCredPres,
3237
+ Tcana,
3238
+ TdefensivoCollection,
3239
+ TdefensivoCollectionItem,
3240
+ TdetExportCollection,
3241
+ TdetExportCollectionItem,
3242
+ Tencerrante,
3243
+ TenderEmit,
3244
+ TgALCZFMCBS,
3245
+ TgAjusteCompet,
3246
+ TgCBS,
3247
+ TgCBSMonoAdRem,
3248
+ TgCBSMonoAdValorem,
3249
+ TgCBSValores,
3250
+ TgCompraGov,
3251
+ TgCredPresOper,
3252
+ TgDevTrib,
3253
+ TgDif,
3254
+ TgEstornoCred,
3255
+ TgIBS,
3256
+ TgIBSCBS,
3257
+ TgIBSCBSCredPres,
3258
+ TgIBSCBSMono,
3259
+ TgIBSMonoAdRem,
3260
+ TgIBSMonoAdValorem,
3261
+ TgIBSMunTot,
3262
+ TgIBSMunValores,
3263
+ TgIBSUFTot,
3264
+ TgIBSUFValores,
3265
+ TgIS,
3266
+ TgMono,
3267
+ TgMonoPadraoCBSAliq,
3268
+ TgMonoPadraoCBSQtde,
3269
+ TgMonoPadraoIBSAliq,
3270
+ TgMonoPadraoIBSQtde,
3271
+ TgMonoRetCBS,
3272
+ TgMonoRetIBS,
3273
+ TgMonoRetenCBSAliq,
3274
+ TgMonoRetenCBSQtde,
3275
+ TgMonoRetenIBSAliq,
3276
+ TgMonoRetenIBSQtde,
3277
+ TgPagAntecipado,
3278
+ TgRed,
3279
+ TgTransfCred,
3280
+ TgTribCompraGov,
3281
+ TgTribRegular,
3282
+ TgpBioDiferencaCBS,
3283
+ TgpBioDiferencaIBS,
3284
+ TguiaTransito,
3285
+ TindIEDest,
3286
+ TindImport,
3287
+ TindIncentivo,
3288
+ TindIntermed,
3289
+ TinfIntermed,
3290
+ TinfNFe,
3291
+ TinfNFeSupl,
3292
+ TinfPAA,
3293
+ TinfRespTec,
3294
+ TmotRedAdRem,
3295
+ TobsContCollection,
3296
+ TobsContCollectionItem,
3297
+ TobsFiscoCollection,
3298
+ TobsFiscoCollectionItem,
3299
+ TobsItem,
3300
+ TorigCombCollection,
3301
+ TorigCombCollectionItem,
3302
+ TpagCollection,
3303
+ TpagCollectionItem,
3304
+ TpcnBandeiraCartao,
3305
+ TpcnCRT,
3306
+ TpcnCondicaoVeiculo,
3307
+ TpcnConsumidorFinal,
3308
+ TpcnCstIpi,
3309
+ TpcnDestinoOperacao,
3310
+ TpcnDeterminacaoBaseIcms,
3311
+ TpcnDeterminacaoBaseIcmsST,
3312
+ TpcnECFModRef,
3313
+ TpcnFinalidadeNFe,
3314
+ TpcnFormaPagamento,
3315
+ TpcnISSQNcSitTrib,
3316
+ TpcnIndEscala,
3317
+ TpcnIndicadorPagamento,
3318
+ TpcnIndicadorProcesso,
3319
+ TpcnIndicadorTotal,
3320
+ TpcnModalidadeFrete,
3321
+ TpcnMotivoDesoneracaoICMS,
3322
+ TpcnPresencaComprador,
3323
+ TpcnTipoArma,
3324
+ TpcnTipoIntermedio,
3325
+ TpcnTipoOperacao,
3326
+ TpcnTipoViaTransp,
3327
+ TpcnindISS,
3328
+ TpcnindISSRet,
3329
+ TprocRefCollection,
3330
+ TprocRefCollectionItem,
3331
+ TrefDFePagAntCollection,
3332
+ TrefDFePagAntCollectionItem,
3333
+ TretTransp,
3334
+ TretTrib,
3335
+ TtpALCZFMCBS,
3336
+ TtpAto,
3337
+ TtpEnteGov,
3338
+ TtpGuia,
3339
+ TtpIntegra,
3340
+ TtpNFCredito,
3341
+ TtpNFDebito,
3342
+ TtpOperGov,
3343
+ TveicProd,
3344
+ TveicTransp,
3345
+ criarEmissor,
3346
+ validateModel,
3347
+ validateTNFe
3348
+ });
3349
+ //# sourceMappingURL=index.cjs.map