• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wmixvideo / nfe / #7309

22 Sep 2025 01:04PM UTC coverage: 51.767%. First build
#7309

push

web-flow
Adaptação NT 2025.002 v1.20: ajustes IBSCBS/IS (#1080)

- **Criados** transformers `NFNotaInfoImpostoTributacaoIBSCBSTransformer` e `NFNotaInfoImpostoTributacaoISTransformer`, registrados em `DFRegistryMatcher`
- **Alteradas** inner classes do IBSCBS para `static`
- **Corrigido** posicionamento do campo `vIBS`: movido de `GIBSMun` para `NFNotaInfoItemImpostoIBSCBSTIBS`
- **Atualizado** `DFXMLValidador` para utilizar o diretório de schemas da versão 1.20
- **Incluídos** os `XSDs` faltantes da versão 1.20 (copiados da estrutura da versão anterior)
- **Corrigidos** getters da classe `NFNotaInfoItemImpostoIS` que estavam fazendo papel de setter
- **Corrigidos** validadores de 15_2 para 13_2
- **Padronizados** nomes dos getter/setter da propriedade uTrib da classe `NFNotaInfoItemImpostoIS`

Co-authored-by: Diego Fincatto <58352+fincatto@users.noreply.github.com>

4 of 27 new or added lines in 6 files covered. (14.81%)

14415 of 27846 relevant lines covered (51.77%)

0.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoItemImpostoIBSCBSTIBS.java
1
package com.fincatto.documentofiscal.nfe400.classes.nota;
2

3
import java.math.BigDecimal;
4

5
import org.simpleframework.xml.Element;
6

7
import com.fincatto.documentofiscal.DFBase;
8
import com.fincatto.documentofiscal.nfe400.classes.NFNotaInfoImpostoTributacaoIBSCBS;
9
import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador;
10

11
// UB15
12
public class NFNotaInfoItemImpostoIBSCBSTIBS extends DFBase {
×
13

14
  private static final long serialVersionUID = -366528394939416672L;
15

16
  @Element(required = true)
17
  private String vBC; // UB16
18

19
  @Element(required = true)
20
  private GIBSUF gIBSUF; // UB17
21

22
  @Element(required = true)
23
  private GIBSMun gIBSMun; // UB36
24
  
25
  @Element(required = true)
26
  private String vIBS; // UB54a
27

28
  @Element(required = true)
29
  private GCBS gCBS; // UB55
30

31
  @Element(required = false)
32
  private GTribRegular gTribRegular; // UB68
33

34
  @Element(required = false)
35
  private GCredPres gIBSCredPres; // UB73
36

37
  @Element(required = false)
38
  private GCredPres gCBSCredPres; // UB78
39

40
  @Element(required = false)
41
  private GTribCompraGov gTribCompraGov; // UB82a
42

43
  public String getVBC() {
44
    return vBC;
×
45
  }
46

47
  public void setVBC(BigDecimal vBC) {
NEW
48
    this.vBC = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vBC, "Base de cálculo do IBS e CBS");
×
49
  }
×
50

51
  public GIBSUF getGIBSUF() {
52
    return gIBSUF;
×
53
  }
54

55
  public void setGIBSUF(GIBSUF gIBSUF) {
56
    this.gIBSUF = gIBSUF;
×
57
  }
×
58

59
  public GIBSMun getGIBSMun() {
60
    return gIBSMun;
×
61
  }
62

63
  public void setGIBSMun(GIBSMun gIBSMun) {
64
    this.gIBSMun = gIBSMun;
×
65
  }
×
66

67
  public GCBS getGCBS() {
68
    return gCBS;
×
69
  }
70

71
  public void setGCBS(GCBS gCBS) {
72
    this.gCBS = gCBS;
×
73
  }
×
74

75
  public GTribRegular getGTribRegular() {
76
    return gTribRegular;
×
77
  }
78

79
  public void setGTribRegular(GTribRegular gTribRegular) {
80
    this.gTribRegular = gTribRegular;
×
81
  }
×
82

83
  public GCredPres getGIBSCredPres() {
84
    return gIBSCredPres;
×
85
  }
86

87
  public void setGIBSCredPres(GCredPres gIBSCredPres) {
88
    this.gIBSCredPres = gIBSCredPres;
×
89
  }
×
90

91
  public GCredPres getGCBSCredPres() {
92
    return gCBSCredPres;
×
93
  }
94

95
  public void setGCBSCredPres(GCredPres gCBSCredPres) {
96
    this.gCBSCredPres = gCBSCredPres;
×
97
  }
×
98

99
  public GTribCompraGov getGTribCompraGov() {
100
    return gTribCompraGov;
×
101
  }
102

103
  public void setGTribCompraGov(GTribCompraGov gTribCompraGov) {
104
    this.gTribCompraGov = gTribCompraGov;
×
105
  }
×
106

107
  public String getVIBS() {
NEW
108
    return this.vIBS;
×
109
  }
110

111
  public void setVIBS(BigDecimal vIBS) {
NEW
112
    this.vIBS = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vIBS, "Valor IBS");
×
NEW
113
  }
×
114

115
  // UB17
NEW
116
  public static class GIBSUF extends DFBase {
×
117

118
    private static final long serialVersionUID = 6093564886756420261L;
119

120
        @Element(required = true)
121
    private String pIBSUF; // UB18
122

123
    @Element(required = false)
124
    private GDif gDif; // UB21
125

126
    @Element(required = false)
127
    private GDevTrib gDevTrib; // UB24
128

129
    @Element(required = false)
130
    private GRed gRed; // UB26
131

132
    @Element(required = true)
133
    private String vIBSUF; // UB35
134

135
    public String getPIBSUF() {
136
      return pIBSUF;
×
137
    }
138

139
    public void setPIBSUF(BigDecimal pIBSUF) {
140
      this.pIBSUF = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pIBSUF, "Alíquota do IBS de competência das UF");
×
141
    }
×
142

143
    public GDif getGDif() {
144
      return gDif;
×
145
    }
146

147
    public void setGDif(GDif gDif) {
148
      this.gDif = gDif;
×
149
    }
×
150

151
    public GDevTrib getGDevTrib() {
152
      return gDevTrib;
×
153
    }
154

155
    public void setGDevTrib(GDevTrib gDevTrib) {
156
      this.gDevTrib = gDevTrib;
×
157
    }
×
158

159
    public GRed getGRed() {
160
      return gRed;
×
161
    }
162

163
    public void setGRed(GRed gRed) {
164
      this.gRed = gRed;
×
165
    }
×
166

167
    public String getVIBSUF() {
168
      return vIBSUF;
×
169
    }
170

171
    public void setVIBSUF(BigDecimal vIBSUF) {
172
      this.vIBSUF = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vIBSUF, "Valor do IBS de competência da UF");
×
173
    }
×
174

175
  }
176

177
  // UB36
NEW
178
  public static class GIBSMun extends DFBase {
×
179

180
    private static final long serialVersionUID = -366528394939456789L;
181

182
    @Element(required = true)
183
    private String pIBSMun; // UB37
184

185
    @Element(required = false)
186
    private GDif gDif; // UB40
187

188
    @Element(required = false)
189
    private GDevTrib gDevTrib; // UB43
190

191
    @Element(required = false)
192
    private GRed gRed; // UB45
193

194
    @Element(required = true)
195
    private String vIBSMun; // UB54
196

197
    public String getPIBSMun() {
198
      return pIBSMun;
×
199
    }
200

201
    public void setPIBSMun(BigDecimal pIBSMun) {
202
      this.pIBSMun = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pIBSMun, "Valor do IBS de competência do Município");
×
203
    }
×
204

205
    public GDif getGDif() {
206
      return gDif;
×
207
    }
208

209
    public void setGDif(GDif gDif) {
210
      this.gDif = gDif;
×
211
    }
×
212

213
    public GDevTrib getGDevTrib() {
214
      return gDevTrib;
×
215
    }
216

217
    public void setGDevTrib(GDevTrib gDevTrib) {
218
      this.gDevTrib = gDevTrib;
×
219
    }
×
220

221
    public GRed getGRed() {
222
      return gRed;
×
223
    }
224

225
    public void setGRed(GRed gRed) {
226
      this.gRed = gRed;
×
227
    }
×
228

229
    public String getVIBSMun() {
230
      return vIBSMun;
×
231
    }
232

233
    public void setVIBSMun(BigDecimal vIBSMun) {
234
      this.vIBSMun = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vIBSMun, "Alíquota do IBS de competência do Município");
×
235
    }
×
236

237
  }
238

239
  // UB55
NEW
240
  public static class GCBS extends DFBase {
×
241

242
    private static final long serialVersionUID = -366528394939456790L;
243

244
    @Element(required = true)
245
    private String pCBS; // UB56
246

247
    @Element(required = false)
248
    private GDif gDif; // UB59
249

250
    @Element(required = false)
251
    private GDevTrib gDevTrib; // UB62
252

253
    @Element(required = false)
254
    private GRed gRed; // UB64
255

256
    @Element(required = true)
257
    private String vCBS; // UB67
258

259
    public String getPCBS() {
260
      return pCBS;
×
261
    }
262

263
    public void setPCBS(BigDecimal pCBS) {
264
      this.pCBS = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pCBS, "Alíquota da CBS");
×
265
    }
×
266

267
    public GDif getGDif() {
268
      return gDif;
×
269
    }
270

271
    public void setGDif(GDif gDif) {
272
      this.gDif = gDif;
×
273
    }
×
274

275
    public GDevTrib getGDevTrib() {
276
      return gDevTrib;
×
277
    }
278

279
    public void setGDevTrib(GDevTrib gDevTrib) {
280
      this.gDevTrib = gDevTrib;
×
281
    }
×
282

283
    public GRed getGRed() {
284
      return gRed;
×
285
    }
286

287
    public void setGRed(GRed gRed) {
288
      this.gRed = gRed;
×
289
    }
×
290

291
    public String getVCBS() {
292
      return vCBS;
×
293
    }
294

295
    public void setVCBS(BigDecimal vCBS) {
296
      this.vCBS = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vCBS, "Valor da CBS");
×
297
    }
×
298
  }
299

300
  // UB68
NEW
301
  public static class GTribRegular extends DFBase {
×
302

303
    private static final long serialVersionUID = -366528394939456791L;
304

305
    @Element(name = "CSTReg", required = true)
306
    private NFNotaInfoImpostoTributacaoIBSCBS cstReg; // UB69
307

308
    @Element(required = true)
309
    private String cClassTribReg; // UB70
310

311
    @Element(required = true)
312
    private String pAliqEfetRegIBSUF; // UB71
313

314
    @Element(required = true)
315
    private String vTribRegIBSUF; // UB72
316

317
    @Element(required = true)
318
    private String pAliqEfetRegIBSMun; // UB72a
319

320
    @Element(required = true)
321
    private String vTribRegIBSMun; // UB72b
322

323
    @Element(required = true)
324
    private String pAliqEfetRegCBS; // UB72c
325

326
    @Element(required = true)
327
    private String vTribRegCBS; // UB72d
328

329
    public NFNotaInfoImpostoTributacaoIBSCBS getCstReg() {
330
      return cstReg;
×
331
    }
332

333
    public void setCstReg(NFNotaInfoImpostoTributacaoIBSCBS cstReg) {
334
      this.cstReg = cstReg;
×
335
    }
×
336

337
    public String getCClassTribReg() {
338
      return cClassTribReg;
×
339
    }
340

341
    public void setCClassTribReg(String cClassTribReg) {
342
      this.cClassTribReg = cClassTribReg;
×
343
    }
×
344

345
    public String getPAliqEfetRegIBSUF() {
346
      return pAliqEfetRegIBSUF;
×
347
    }
348

349
    public void setPAliqEfetRegIBSUF(BigDecimal pAliqEfetRegIBSUF) {
350
      this.pAliqEfetRegIBSUF = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pAliqEfetRegIBSUF, "Valor da alíquota do IBS da UF");
×
351
    }
×
352

353
    public String getVTribRegIBSUF() {
354
      return vTribRegIBSUF;
×
355
    }
356

357
    public void setVTribRegIBSUF(BigDecimal vTribRegIBSUF) {
358
      this.vTribRegIBSUF = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vTribRegIBSUF, "Valor do Tributo do IBS da UF");
×
359
    }
×
360

361
    public String getPAliqEfetRegIBSMun() {
362
      return pAliqEfetRegIBSMun;
×
363
    }
364

365
    public void setPAliqEfetRegIBSMun(BigDecimal pAliqEfetRegIBSMun) {
366
      this.pAliqEfetRegIBSMun = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pAliqEfetRegIBSMun, "Valor da alíquota do IBS do Município");
×
367
    }
×
368

369
    public String getVTribRegIBSMun() {
370
      return vTribRegIBSMun;
×
371
    }
372

373
    public void setVTribRegIBSMun(BigDecimal vTribRegIBSMun) {
374
      this.vTribRegIBSMun = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vTribRegIBSMun, "Valor do Tributo do IBS do Município");
×
375
    }
×
376

377
    public String getPAliqEfetRegCBS() {
378
      return pAliqEfetRegCBS;
×
379
    }
380

381
    public void setPAliqEfetRegCBS(BigDecimal pAliqEfetRegCBS) {
382
      this.pAliqEfetRegCBS = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pAliqEfetRegCBS, "Valor da alíquota da CBS");
×
383
    }
×
384

385
    public String getVTribRegCBS() {
386
      return vTribRegCBS;
×
387
    }
388

389
    public void setVTribRegCBS(BigDecimal vTribRegCBS) {
390
      this.vTribRegCBS = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vTribRegCBS, "Valor do Tributo da CBS");
×
391
    }
×
392

393
  }
394

395
  // UB73 // UB78
NEW
396
  public static class GCredPres extends DFBase {
×
397

398
    private static final long serialVersionUID = -366528394939456792L;
399

400
    @Element(required = true)
401
    private String cCredPres; // UB74 // UB79
402

403
    @Element(required = true)
404
    private String pCredPres; // UB75 // UB80
405

406
    /** VCredPres e VCredPresCondSus sao mutuamente exclusivos **/
407
    @Element(required = false)
408
    private String vCredPres; // UB76 // UB81
409

410
    @Element(required = false)
411
    private String vCredPresCondSus; // UB77 // UB82
412

413
    public String getcCredPres() {
414
      return cCredPres;
×
415
    }
416

417
    public void setcCredPres(String cCredPres) {
418
      this.cCredPres = cCredPres;
×
419
    }
×
420

421
    public String getPCredPres() {
422
      return pCredPres;
×
423
    }
424

425
    public void setPCredPres(BigDecimal pCredPres) {
426
      this.pCredPres = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pCredPres, "Percentual do Crédito Presumido");
×
427
    }
×
428

429
    public String getVCredPres() {
430
      return vCredPres;
×
431
    }
432

433
    public void setVCredPres(BigDecimal vCredPres) {
434
      this.vCredPres = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vCredPres, "Valor do Crédito Presumido");
×
435
    }
×
436

437
    public String getVCredPresCondSus() {
438
      return vCredPresCondSus;
×
439
    }
440

441
    public void setVCredPresCondSus(BigDecimal vCredPresCondSus) {
442
      this.vCredPresCondSus = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vCredPresCondSus, "Valor do Crédito Presumido em condição suspensiva");
×
443
    }
×
444

445
  }
446

447
  // UB82a
NEW
448
  public static class GTribCompraGov extends DFBase {
×
449

450
    private static final long serialVersionUID = -366528394939456794L;
451

452
    @Element(required = true)
453
    private String pAliqIBSUF; // UB82b
454

455
    @Element(required = true)
456
    private String vTribIBSUF; // UB82c
457

458
    @Element(required = true)
459
    private String pAliqIBSMun; // UB82d
460

461
    @Element(required = true)
462
    private String vTribIBSMun; // UB82e
463

464
    @Element(required = true)
465
    private String pAliqCBS; // UB82f
466

467
    @Element(required = true)
468
    private String vTribCBS; // UB82g
469

470
        public String getPAliqIBSUF() {
471
                return pAliqIBSUF;
×
472
        }
473

474
        public void setPAliqIBSUF(BigDecimal pAliqIBSUF) {
475
                this.pAliqIBSUF = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pAliqIBSUF, "Alíquota do IBS de competência do Estado");
×
476
        }
×
477

478
        public String getVTribIBSUF() {
479
                return vTribIBSUF;
×
480
        }
481

482
        public void setVTribIBSUF(BigDecimal vTribIBSUF) {
483
                this.vTribIBSUF = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vTribIBSUF, "Valor do Tributo do IBS da UF calculado");
×
484
        }
×
485

486
        public String getPAliqIBSMun() {
487
                return pAliqIBSMun;
×
488
        }
489

490
        public void setPAliqIBSMun(BigDecimal pAliqIBSMun) {
491
                this.pAliqIBSMun = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pAliqIBSMun, "Alíquota do IBS de competência do Município");
×
492
        }
×
493

494
        public String getVTribIBSMun() {
495
                return vTribIBSMun;
×
496
        }
497

498
        public void setVTribIBSMun(BigDecimal vTribIBSMun) {
499
                this.vTribIBSMun = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vTribIBSMun, "Valor do Tributo do IBS do Município calculado");
×
500
        }
×
501

502
        public String getPAliqCBS() {
503
                return pAliqCBS;
×
504
        }
505

506
        public void setPAliqCBS(BigDecimal pAliqCBS) {
507
                this.pAliqCBS = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pAliqCBS, "Alíquota da CBS ");
×
508
        }
×
509

510
        public String getVTribCBS() {
511
                return vTribCBS;
×
512
        }
513

514
        public void setVTribCBS(BigDecimal vTribCBS) {
515
                this.vTribCBS = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vTribCBS, "Valor do Tributo da CBS calculado");
×
516
        }
×
517
    
518
  }
519

520
  //UB21 // UB40
NEW
521
  public static class GDif extends DFBase {
×
522

523
    private static final long serialVersionUID = -366528394939455687L;
524

525
    @Element(required = true)
526
    private String pDif; // UB22 // UB41
527

528
    @Element(required = true)
529
    private String vDif; // UB23 // UB42
530

531
    public String getPDif() {
532
      return pDif;
×
533
    }
534

535
    public void setPDif(BigDecimal pDif) {
536
      this.pDif = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pDif, "Percentual do diferimento");
×
537
    }
×
538

539
    public String getVDif() {
540
      return vDif;
×
541
    }
542

543
    public void setVDif(BigDecimal vDif) {
544
      this.vDif = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vDif, "Valor do Diferimento");
×
545
    }
×
546

547
  }
548

549
  // UB24 // UB43
NEW
550
  public static class GDevTrib extends DFBase {
×
551

552
    private static final long serialVersionUID = -366525684939456789L;
553

554
    @Element(required = true)
555
    private String vDevTrib; // UB25 // UB44
556

557
    public String getVDevTrib() {
558
      return vDevTrib;
×
559
    }
560

561
    public void setVDevTrib(BigDecimal vDevTrib) {
562
      this.vDevTrib = DFBigDecimalValidador.tamanho13Com2CasasDecimais(vDevTrib, "Valor do tributo devolvido");
×
563
    }
×
564

565
  }
566

567
  // UB26 // UB45
NEW
568
  public static class GRed extends DFBase {
×
569

570
    private static final long serialVersionUID = -366528394939258789L;
571

572
    @Element(required = true)
573
    private String pRedAliq; // UB27 // UB46
574

575
    @Element(required = true)
576
    private String pAliqEfet; // UB28 // UB47
577

578
    public String getPRedAliq() {
579
      return pRedAliq;
×
580
    }
581

582
    public void setPRedAliq(BigDecimal pRedAliq) {
583
      this.pRedAliq = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pRedAliq, "Percentual da redução de alíquota do cClassTrib");
×
584
    }
×
585

586
    public String getPAliqEfet() {
587
      return pAliqEfet;
×
588
    }
589

590
    public void setPAliqEfet(BigDecimal pAliqEfet) {
591
      this.pAliqEfet = DFBigDecimalValidador.tamanho7ComAte4CasasDecimais(pAliqEfet, "Alíquota Efetiva do IBS de competência das UF que será aplicada a Base de Cálculo");
×
592
    }
×
593

594
  }
595
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc