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

wmixvideo / nfe / #6582

17 Jul 2025 09:30PM UTC coverage: 51.231% (+24.2%) from 26.996%
#6582

push

web-flow
Adequação do mapeamento de infLocalCarrega e infLocalDescarrega ao xs:choice do schema MDF-e (#1054)

* Adequação do mapeamento de infLocalCarrega e infLocalDescarrega ao xs:choice do schema MDF-e

* Adequação do mapeamento de infLocalCarrega e infLocalDescarrega ao xs:choice do schema MDF-e

14006 of 27339 relevant lines covered (51.23%)

0.51 hits per line

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

76.92
/src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoFormaPagamento.java
1
package com.fincatto.documentofiscal.nfe400.classes.nota;
2

3
import com.fincatto.documentofiscal.DFBase;
4
import com.fincatto.documentofiscal.DFUnidadeFederativa;
5
import com.fincatto.documentofiscal.nfe400.classes.NFIndicadorFormaPagamento;
6
import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador;
7
import com.fincatto.documentofiscal.validadores.DFStringValidador;
8
import org.simpleframework.xml.Element;
9

10
import java.math.BigDecimal;
11
import java.time.LocalDate;
12

13
public class NFNotaInfoFormaPagamento extends DFBase {
1✔
14

15
    private static final long serialVersionUID = 8908558834476720280L;
16

17
    @Element(name = "indPag", required = false)
18
    private NFIndicadorFormaPagamento indicadorFormaPagamento;
19

20
    @Element(name = "tPag")
21
    private NFMeioPagamento meioPagamento;
22

23
    @Element(name = "xPag", required = false)
24
    private String descricaoMeioPagamento;
25

26
    @Element(name = "vPag")
27
    private String valorPagamento;
28

29
    @Element(name = "dPag", required = false)
30
    private LocalDate dataPagamento;
31

32
    @Element(name = "CNPJPag", required = false)
33
    private String cnpjTransacionalPagamento;
34

35
    @Element(name = "UFPag", required = false)
36
    private String ufTransacionalPagamento;
37

38
    @Element(name = "card", required = false)
39
    private NFNotaInfoCartao cartao;
40

41
    public NFNotaInfoFormaPagamento setCartao(final NFNotaInfoCartao cartao) {
42
        this.cartao = cartao;
1✔
43
        return this;
1✔
44
    }
45

46
    public NFNotaInfoCartao getCartao() {
47
        return this.cartao;
×
48
    }
49

50
    public NFNotaInfoFormaPagamento setIndicadorFormaPagamento(final NFIndicadorFormaPagamento indicadorFormaPagamento) {
51
        this.indicadorFormaPagamento = indicadorFormaPagamento;
1✔
52
        return this;
1✔
53
    }
54

55
    public NFNotaInfoFormaPagamento setMeioPagamento(final NFMeioPagamento meioPagamento) {
56
        this.meioPagamento = meioPagamento;
1✔
57
        return this;
1✔
58
    }
59

60
    public NFNotaInfoFormaPagamento setValorPagamento(final BigDecimal valorPagamento) {
61
        this.valorPagamento = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorPagamento, "Valor Pagamento");
1✔
62
        return this;
1✔
63
    }
64

65
    public NFNotaInfoFormaPagamento setDataPagamento(final LocalDate dataPagamento) {
66
        this.dataPagamento = dataPagamento;
1✔
67
        return this;
1✔
68
    }
69

70
    public NFNotaInfoFormaPagamento setCnpjTransacionalPagamento(final String cnpjTransacionalPagamento) {
71
        this.cnpjTransacionalPagamento = cnpjTransacionalPagamento;
1✔
72
        return this;
1✔
73
    }
74

75
    public NFNotaInfoFormaPagamento setUfTransacionalPagamento(final DFUnidadeFederativa ufTransacionalPagamento) {
76
        this.ufTransacionalPagamento = ufTransacionalPagamento.getCodigo();
1✔
77
        return this;
1✔
78
    }
79

80
    public NFIndicadorFormaPagamento getIndicadorFormaPagamento() {
81
        return this.indicadorFormaPagamento;
×
82
    }
83

84
    public NFMeioPagamento getMeioPagamento() {
85
        return this.meioPagamento;
1✔
86
    }
87

88
    public String getValorPagamento() {
89
        return this.valorPagamento;
×
90
    }
91

92
    public String getDescricaoMeioPagamento() {
93
        return descricaoMeioPagamento;
1✔
94
    }
95

96
    public NFNotaInfoFormaPagamento setDescricaoMeioPagamento(String descricaoMeioPagamento) {
97
        DFStringValidador.tamanho2ate60(descricaoMeioPagamento, "Descricao Meio Pagamento");
1✔
98
        this.descricaoMeioPagamento = descricaoMeioPagamento;
1✔
99
        return this;
1✔
100
    }
101

102
    public LocalDate getDataPagamento() {
103
        return dataPagamento;
×
104
    }
105

106
    public String getCnpjTransacionalPagamento() {
107
        return cnpjTransacionalPagamento;
×
108
    }
109

110
    public String getUfTransacionalPagamento() {
111
        return ufTransacionalPagamento;
×
112
    }
113
}
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

© 2025 Coveralls, Inc