80 lines
2.2 KiB
C#
80 lines
2.2 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace ImpressãoFaturamento.Models
|
|
{
|
|
public class DadosCadastrais
|
|
{
|
|
[JsonPropertyName("nome_cliente")]
|
|
public string NomeCliente { get; set; }
|
|
|
|
[JsonPropertyName("nome_unidade")]
|
|
public string NomeUnidade { get; set; }
|
|
|
|
[JsonPropertyName("mes_consumo")]
|
|
public string MesConsumo { get; set; }
|
|
|
|
[JsonPropertyName("bandeira_cativo")]
|
|
public string BandeiraCativo { get; set; }
|
|
|
|
[JsonPropertyName("icms")]
|
|
public string ICMS { get; set; }
|
|
|
|
[JsonPropertyName("pis_cofins")]
|
|
public string PIS_COFINS { get; set; }
|
|
|
|
[JsonPropertyName("fator_tributo")]
|
|
public string FatorTributo { get; set; }
|
|
|
|
[JsonPropertyName("desconto_tusd")]
|
|
public string DescontoTUSD { get; set; }
|
|
|
|
[JsonPropertyName("percentual_unidade")]
|
|
public decimal PercentualUnidade { get; set; }
|
|
|
|
[JsonPropertyName("custo_total_CCEE")]
|
|
public decimal CustoTotalCCEE { get; set; }
|
|
|
|
[JsonPropertyName("tipo_faturamento")]
|
|
public string TipoFaturamento { get; set; }
|
|
}
|
|
|
|
public class ItemFaturamento
|
|
{
|
|
[JsonPropertyName("nome")]
|
|
public string Nome { get; set; }
|
|
|
|
[JsonPropertyName("quantidade")]
|
|
public decimal? Quantidade { get; set; }
|
|
|
|
[JsonPropertyName("tarifa")]
|
|
public decimal? Tarifa { get; set; }
|
|
|
|
[JsonPropertyName("subtotal")]
|
|
public decimal? Subtotal { get; set; }
|
|
|
|
[JsonPropertyName("tipo_imposto")]
|
|
public string? TipoImposto { get; set; }
|
|
|
|
[JsonPropertyName("valor_final")]
|
|
public decimal ValorFinal { get; set; }
|
|
}
|
|
|
|
public class Faturamento
|
|
{
|
|
[JsonPropertyName("cativo")]
|
|
public List<ItemFaturamento> Cativo { get; set; }
|
|
|
|
[JsonPropertyName("livre")]
|
|
public List<ItemFaturamento> Livre { get; set; }
|
|
}
|
|
|
|
public class FaturamentoModel
|
|
{
|
|
[JsonPropertyName("dados_cadastrais")]
|
|
public DadosCadastrais DadosCadastrais { get; set; }
|
|
|
|
[JsonPropertyName("faturamento")]
|
|
public Faturamento Faturamento { get; set; }
|
|
}
|
|
}
|