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

wmixvideo / nfe / #6748

23 Jul 2025 01:34AM UTC coverage: 51.794% (+0.3%) from 51.469%
#6748

push

web-flow
Merge 853722eff into cb8c6ab74

122 of 122 new or added lines in 1 file covered. (100.0%)

83 existing lines in 5 files now uncovered.

14360 of 27725 relevant lines covered (51.79%)

0.52 hits per line

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

72.88
/src/main/java/com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoImpostoTributacaoIBSCBS.java
1
package com.fincatto.documentofiscal.nfe400.classes;
2

3
import static com.fincatto.documentofiscal.nfe400.classes.NFNotaInfoImpostoTributacaoIBSCBS.IND.*;
4

5
import java.util.Arrays;
6

7
/**
8
 * Enum que define os Codigos de Classificacao Tributaria do IBS e CBS
9
 * CST_cClassTribPublicacao_20250618.xlsx 
10
 * Aba CST
11
 * 
12
 * @author Edivaldo Merlo Stens
13
 * @author Marcos Lombardi de Andrade
14
 */
15
public enum NFNotaInfoImpostoTributacaoIBSCBS {
1✔
16

17
    CST_000("000", "Tributa\u00e7\u00e3o integral",
1✔
18
            UM, ZERO, ZERO, ZERO, ZERO, SIM, SIM, SIM, SIM, SIM, SIM, SIM, SIM, SIM),
19
    
20
    CST_010("010", "Tributa\u00e7\u00e3o com al\u00edquotas uniformes",
1✔
21
                    ZERO, ZERO, ZERO, ZERO, ZERO, NAO, NAO, NAO, NAO, NAO, NAO, NAO, NAO, NAO),
22
    
23
    CST_011("011", "Tributa\u00e7\u00e3o com al\u00edquotas uniformes reduzidas",
1✔
24
                    ZERO, ZERO, ZERO, ZERO, ZERO, NAO, NAO, NAO, NAO, NAO, NAO, NAO, NAO, NAO),
25
    
26
    CST_200("200", "Al\u00edquota reduzida",
1✔
27
                     UM, ZERO, UM, ZERO, ZERO, SIM, SIM, SIM, SIM, SIM, SIM, SIM, SIM, SIM),
28
    
29
    CST_210("210", "Redu\u00e7\u00e3o de al\u00edquota com redutor de base de c\u00e1lculo",
1✔
30
                     UM, ZERO, ZERO, ZERO, ZERO, NAO, NAO, NAO, NAO, NAO, NAO, NAO, NAO, SIM),
31
    
32
    CST_220("220", "Al\u00edquota fixa",
1✔
33
                     UM, ZERO, ZERO, ZERO, ZERO, NAO, NAO, NAO, NAO, NAO, NAO, NAO, NAO, NAO),
34
    
35
    CST_221("221", "Al\u00edquota fixa proporcional",
1✔
36
                     UM, ZERO, ZERO, ZERO, ZERO, NAO, NAO, NAO, NAO, NAO, NAO, NAO, NAO, NAO),
37
    
38
    CST_222("222", "Redu\u00e7\u00e3o de base de c\u00e1lculo",
1✔
39
                    ZERO, ZERO, ZERO, ZERO, ZERO, NAO, NAO, NAO, NAO, NAO, NAO, NAO, NAO, SIM),
40
    
41
    CST_400("400", "Isen\u00e7\u00e3o",
1✔
42
                    ZERO, ZERO, ZERO, ZERO, ZERO, NAO, NAO, NAO, NAO, NAO, NAO, SIM, NAO, SIM),
43
    
44
    CST_410("410", "Imunidade e n\u00e3o incid\u00eancia",
1✔
45
                    ZERO, ZERO, ZERO, ZERO, ZERO, SIM, SIM, SIM, SIM, SIM, SIM, SIM, SIM, SIM),
46
    
47
    CST_510("510", "Diferimento",
1✔
48
                     UM, ZERO, ZERO, UM, ZERO, SIM, SIM, NAO, NAO, NAO, NAO, SIM, NAO, SIM),
49
    
50
    CST_550("550", "Suspens\u00e3o",
1✔
51
                     UM, ZERO, ZERO, ZERO, ZERO, SIM, NAO, NAO, NAO, NAO, NAO, SIM, NAO, SIM),
52
    
53
    CST_620("620", "Tributa\u00e7\u00e3o monof\u00e1sica",
1✔
54
                    ZERO, UM, ZERO, ZERO, ZERO, SIM, SIM, NAO, NAO, NAO, NAO, NAO, NAO, NAO),
55
    
56
    CST_800("800", "Transfer\u00eancia de cr\u00e9dito",
1✔
57
                    ZERO, ZERO, ZERO, ZERO, UM, SIM, NAO, NAO, NAO, NAO, NAO, NAO, NAO, NAO),
58
    
59
    CST_810("810", "Ajustes",
1✔
60
                     null, null, null, null, null, NAO, NAO, NAO, NAO, NAO, NAO, NAO, NAO, NAO),
61
    
62
    CST_820("820", "Tributa\u00e7\u00e3o em declara\u00e7\u00e3o de regime espec\u00edfico",
1✔
63
                    ZERO, ZERO, ZERO, ZERO, ZERO, NAO, NAO, NAO, NAO, NAO, NAO, NAO, NAO, SIM),
64
    
65
    CST_830("830", "Exclus\u00e3o de base de c\u00e1lculo",
1✔
66
                     UM, ZERO, ZERO, ZERO, ZERO, NAO, NAO, NAO, NAO, NAO, NAO, SIM, NAO, NAO);
67

68
    private final String codigo;
69
    private final String descricao;
70
    private final Integer indGIBSCBS;
71
    private final Integer indGIBSCBSMono;
72
    private final Integer indGRed;
73
    private final Integer indGDif;
74
    private final Integer indGTransfCred;
75
    private final boolean indNFe;
76
    private final boolean indNFCe;
77
    private final boolean indCTe;
78
    private final boolean indCteOS;
79
    private final boolean indBPe;
80
    private final boolean indBPeTM;
81
    private final boolean indNF3e;
82
    private final boolean indNFCom;
83
    private final boolean indNFSe;
84

85
    private NFNotaInfoImpostoTributacaoIBSCBS(String codigo, String descricao, Integer indGIBSCBS, Integer indGIBSCBSMono, Integer indGRed, Integer indGDif, Integer indGTransfCred, boolean indNFe, boolean indNFCe, boolean indCTe, boolean indCteOS, boolean indBPe, boolean indBPeTM, boolean indNF3e, boolean indNFCom, boolean indNFSe) {
1✔
86
        this.codigo = codigo;
1✔
87
        this.descricao = descricao;
1✔
88
        this.indGIBSCBS = indGIBSCBS;
1✔
89
        this.indGIBSCBSMono = indGIBSCBSMono;
1✔
90
        this.indGRed = indGRed;
1✔
91
        this.indGDif = indGDif;
1✔
92
        this.indGTransfCred = indGTransfCred;
1✔
93
        this.indNFe = indNFe;
1✔
94
        this.indNFCe = indNFCe;
1✔
95
        this.indCTe = indCTe;
1✔
96
        this.indCteOS = indCteOS;
1✔
97
        this.indBPe = indBPe;
1✔
98
        this.indBPeTM = indBPeTM;
1✔
99
        this.indNF3e = indNF3e;
1✔
100
        this.indNFCom = indNFCom;
1✔
101
        this.indNFSe = indNFSe;
1✔
102
    }
1✔
103

104
        public String getCodigo() {
105
        return this.codigo;
1✔
106
    }
107

108
    public String getDescricao() {
109
        return this.descricao;
1✔
110
    }
111

112
    public Integer getIndGIBSCBS() {
UNCOV
113
        return indGIBSCBS;
×
114
    }
115

116
    public Integer getIndGIBSCBSMono() {
UNCOV
117
        return indGIBSCBSMono;
×
118
    }
119

120
    public Integer getIndGRed() {
UNCOV
121
        return indGRed;
×
122
    }
123

124
    public Integer getIndGDif() {
UNCOV
125
        return indGDif;
×
126
    }
127

128
    public Integer getIndGTransfCred() {
UNCOV
129
        return indGTransfCred;
×
130
    }
131

132
    public boolean isIndNFe() {
UNCOV
133
        return indNFe;
×
134
    }
135

136
    public boolean isIndNFCe() {
UNCOV
137
        return indNFCe;
×
138
    }
139

140
    public boolean isIndCTe() {
UNCOV
141
        return indCTe;
×
142
    }
143

144
    public boolean isIndCteOS() {
UNCOV
145
        return indCteOS;
×
146
    }
147

148
    public boolean isIndBPe() {
UNCOV
149
        return indBPe;
×
150
    }
151

152
    public boolean isIndBPeTM() {
UNCOV
153
        return indBPeTM;
×
154
    }
155

156
    public boolean isIndNF3e() {
UNCOV
157
        return indNF3e;
×
158
    }
159

160
    public boolean isIndNFCom() {
UNCOV
161
        return indNFCom;
×
162
    }
163

164
    public boolean isIndNFSe() {
UNCOV
165
        return indNFSe;
×
166
    }
167

168
    @Override
169
    public String toString() {
UNCOV
170
        return codigo + " - " + descricao;
×
171
    }
172
    
173
    /**
174
         * Retorna o enum correspondente ao codigo IBSCBS informado.
175
         *
176
         * @param codigoIBSCBS o codigo IBSCBS
177
         * @return o enum correspondente ou null se nao encontrado
178
         */
179
    public static NFNotaInfoImpostoTributacaoIBSCBS valueOfCodigo(final String codigoIBSCBS) {
180
            return Arrays.stream(NFNotaInfoImpostoTributacaoIBSCBS.values())
1✔
181
                            .filter(ibscbs -> ibscbs.getCodigo().equals(codigoIBSCBS))
1✔
182
                                    .findFirst().orElse(null);
1✔
183
    }
184
    
UNCOV
185
    static class IND {
×
186
            
187
        static final Integer UM = 1;
1✔
188
        static final Integer ZERO = 0;
1✔
189
        static final boolean SIM = true;
190
        static final boolean NAO = false;
191
        
192
    }
193
}
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