Sitelet https://github.com/arsantosdev/DFe.NET/commit/88cdd4791bc5a447825f06cdddc552904afbc6ca
Skip to content

Commit 88cdd47

Browse files
committed
feito comp
1 parent 3c7eb62 commit 88cdd47

4 files changed

Lines changed: 40 additions & 0 deletions

File tree

‎MDFe.Classes/Informacoes/Comp.cs‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
3+
namespace MDFe.Classes.Informacoes
4+
{
5+
[Serializable]
6+
public class Comp
7+
{
8+
public tpComp tpComp { get; set; }
9+
10+
public decimal vComp { get; set; }
11+
12+
public string xComp { get; set; }
13+
}
14+
}

‎MDFe.Classes/Informacoes/infPag.cs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
using System;
2+
using System.Collections.Generic;
3+
using System.Xml.Serialization;
24

35
namespace MDFe.Classes.Informacoes
46
{
@@ -9,5 +11,8 @@ public class infPag
911
public string CPF { get; set; }
1012
public string CNPJ { get; set; }
1113
public string idEstrangeiro { get; set; }
14+
15+
[XmlElement("Comp")]
16+
public List<Comp> Comp { get; set; }
1217
}
1318
}

‎MDFe.Classes/Informacoes/tpComp.cs‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System.Xml.Serialization;
2+
3+
namespace MDFe.Classes.Informacoes
4+
{
5+
public enum tpComp
6+
{
7+
[XmlEnum("01")]
8+
ValePedagio = 01,
9+
10+
[XmlEnum("02")]
11+
ImpostosTaxasEContribuicoes = 02,
12+
13+
[XmlEnum("03")]
14+
DespesasBancariasEmiosDePagamentoOutras = 03,
15+
16+
[XmlEnum("04")]
17+
Outros = 99
18+
}
19+
}

‎MDFe.Classes/MDFe.Classes.csproj‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
<Compile Include="Flags\MDFeVersaoModal.cs" />
7474
<Compile Include="Flags\tpNav.cs" />
7575
<Compile Include="Flags\tpUnidTranspVazia.cs" />
76+
<Compile Include="Informacoes\Comp.cs" />
7677
<Compile Include="Informacoes\ConsultaNaoEncerrados\MDFeCosMDFeNaoEnc.cs" />
7778
<Compile Include="Informacoes\ConsultaProtocolo\MDFeConsSitMDFe.cs" />
7879
<Compile Include="Informacoes\Evento\CorpoEvento\MDFeEvCancMDFe.cs" />
@@ -136,6 +137,7 @@
136137
<Compile Include="Informacoes\RetRecepcao\MDFeConsReciMDFe.cs" />
137138
<Compile Include="Informacoes\StatusServico\MDFeConsStatServMDFe.cs" />
138139
<Compile Include="Informacoes\tpCarga.cs" />
140+
<Compile Include="Informacoes\tpComp.cs" />
139141
<Compile Include="Properties\AssemblyInfo.cs" />
140142
<Compile Include="Retorno\MDFeConsultaNaoEncerrado\MDFeRetConsMDFeNao.cs" />
141143
<Compile Include="Retorno\MDFeConsultaProtocolo\MDFeRetConsSitMDFe.cs" />

0 commit comments

Comments
 (0)