Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions PIX-Sicoob.sln
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,97 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F4E1E8D3-9690-48C0-BDAB-8E89C6486BA1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F4E1E8D3-9690-48C0-BDAB-8E89C6486BA1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F4E1E8D3-9690-48C0-BDAB-8E89C6486BA1}.Debug|x64.ActiveCfg = Debug|Any CPU
{F4E1E8D3-9690-48C0-BDAB-8E89C6486BA1}.Debug|x64.Build.0 = Debug|Any CPU
{F4E1E8D3-9690-48C0-BDAB-8E89C6486BA1}.Debug|x86.ActiveCfg = Debug|Any CPU
{F4E1E8D3-9690-48C0-BDAB-8E89C6486BA1}.Debug|x86.Build.0 = Debug|Any CPU
{F4E1E8D3-9690-48C0-BDAB-8E89C6486BA1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F4E1E8D3-9690-48C0-BDAB-8E89C6486BA1}.Release|Any CPU.Build.0 = Release|Any CPU
{F4E1E8D3-9690-48C0-BDAB-8E89C6486BA1}.Release|x64.ActiveCfg = Release|Any CPU
{F4E1E8D3-9690-48C0-BDAB-8E89C6486BA1}.Release|x64.Build.0 = Release|Any CPU
{F4E1E8D3-9690-48C0-BDAB-8E89C6486BA1}.Release|x86.ActiveCfg = Release|Any CPU
{F4E1E8D3-9690-48C0-BDAB-8E89C6486BA1}.Release|x86.Build.0 = Release|Any CPU
{31571823-D5E5-4F24-8A33-33006862268F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{31571823-D5E5-4F24-8A33-33006862268F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{31571823-D5E5-4F24-8A33-33006862268F}.Debug|x64.ActiveCfg = Debug|Any CPU
{31571823-D5E5-4F24-8A33-33006862268F}.Debug|x64.Build.0 = Debug|Any CPU
{31571823-D5E5-4F24-8A33-33006862268F}.Debug|x86.ActiveCfg = Debug|Any CPU
{31571823-D5E5-4F24-8A33-33006862268F}.Debug|x86.Build.0 = Debug|Any CPU
{31571823-D5E5-4F24-8A33-33006862268F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{31571823-D5E5-4F24-8A33-33006862268F}.Release|Any CPU.Build.0 = Release|Any CPU
{31571823-D5E5-4F24-8A33-33006862268F}.Release|x64.ActiveCfg = Release|Any CPU
{31571823-D5E5-4F24-8A33-33006862268F}.Release|x64.Build.0 = Release|Any CPU
{31571823-D5E5-4F24-8A33-33006862268F}.Release|x86.ActiveCfg = Release|Any CPU
{31571823-D5E5-4F24-8A33-33006862268F}.Release|x86.Build.0 = Release|Any CPU
{C796024A-477D-460A-B511-D6188415FFA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C796024A-477D-460A-B511-D6188415FFA2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C796024A-477D-460A-B511-D6188415FFA2}.Debug|x64.ActiveCfg = Debug|Any CPU
{C796024A-477D-460A-B511-D6188415FFA2}.Debug|x64.Build.0 = Debug|Any CPU
{C796024A-477D-460A-B511-D6188415FFA2}.Debug|x86.ActiveCfg = Debug|Any CPU
{C796024A-477D-460A-B511-D6188415FFA2}.Debug|x86.Build.0 = Debug|Any CPU
{C796024A-477D-460A-B511-D6188415FFA2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C796024A-477D-460A-B511-D6188415FFA2}.Release|Any CPU.Build.0 = Release|Any CPU
{C796024A-477D-460A-B511-D6188415FFA2}.Release|x64.ActiveCfg = Release|Any CPU
{C796024A-477D-460A-B511-D6188415FFA2}.Release|x64.Build.0 = Release|Any CPU
{C796024A-477D-460A-B511-D6188415FFA2}.Release|x86.ActiveCfg = Release|Any CPU
{C796024A-477D-460A-B511-D6188415FFA2}.Release|x86.Build.0 = Release|Any CPU
{0466318D-33CF-46ED-8466-3809F01A97C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0466318D-33CF-46ED-8466-3809F01A97C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0466318D-33CF-46ED-8466-3809F01A97C3}.Debug|x64.ActiveCfg = Debug|Any CPU
{0466318D-33CF-46ED-8466-3809F01A97C3}.Debug|x64.Build.0 = Debug|Any CPU
{0466318D-33CF-46ED-8466-3809F01A97C3}.Debug|x86.ActiveCfg = Debug|Any CPU
{0466318D-33CF-46ED-8466-3809F01A97C3}.Debug|x86.Build.0 = Debug|Any CPU
{0466318D-33CF-46ED-8466-3809F01A97C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0466318D-33CF-46ED-8466-3809F01A97C3}.Release|Any CPU.Build.0 = Release|Any CPU
{0466318D-33CF-46ED-8466-3809F01A97C3}.Release|x64.ActiveCfg = Release|Any CPU
{0466318D-33CF-46ED-8466-3809F01A97C3}.Release|x64.Build.0 = Release|Any CPU
{0466318D-33CF-46ED-8466-3809F01A97C3}.Release|x86.ActiveCfg = Release|Any CPU
{0466318D-33CF-46ED-8466-3809F01A97C3}.Release|x86.Build.0 = Release|Any CPU
{4C140134-CF64-4104-82CA-5A09AD0E2AF5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4C140134-CF64-4104-82CA-5A09AD0E2AF5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4C140134-CF64-4104-82CA-5A09AD0E2AF5}.Debug|x64.ActiveCfg = Debug|Any CPU
{4C140134-CF64-4104-82CA-5A09AD0E2AF5}.Debug|x64.Build.0 = Debug|Any CPU
{4C140134-CF64-4104-82CA-5A09AD0E2AF5}.Debug|x86.ActiveCfg = Debug|Any CPU
{4C140134-CF64-4104-82CA-5A09AD0E2AF5}.Debug|x86.Build.0 = Debug|Any CPU
{4C140134-CF64-4104-82CA-5A09AD0E2AF5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4C140134-CF64-4104-82CA-5A09AD0E2AF5}.Release|Any CPU.Build.0 = Release|Any CPU
{4C140134-CF64-4104-82CA-5A09AD0E2AF5}.Release|x64.ActiveCfg = Release|Any CPU
{4C140134-CF64-4104-82CA-5A09AD0E2AF5}.Release|x64.Build.0 = Release|Any CPU
{4C140134-CF64-4104-82CA-5A09AD0E2AF5}.Release|x86.ActiveCfg = Release|Any CPU
{4C140134-CF64-4104-82CA-5A09AD0E2AF5}.Release|x86.Build.0 = Release|Any CPU
{05DD23BA-333E-4024-95A7-A9A1A8719925}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{05DD23BA-333E-4024-95A7-A9A1A8719925}.Debug|Any CPU.Build.0 = Debug|Any CPU
{05DD23BA-333E-4024-95A7-A9A1A8719925}.Debug|x64.ActiveCfg = Debug|Any CPU
{05DD23BA-333E-4024-95A7-A9A1A8719925}.Debug|x64.Build.0 = Debug|Any CPU
{05DD23BA-333E-4024-95A7-A9A1A8719925}.Debug|x86.ActiveCfg = Debug|Any CPU
{05DD23BA-333E-4024-95A7-A9A1A8719925}.Debug|x86.Build.0 = Debug|Any CPU
{05DD23BA-333E-4024-95A7-A9A1A8719925}.Release|Any CPU.ActiveCfg = Release|Any CPU
{05DD23BA-333E-4024-95A7-A9A1A8719925}.Release|Any CPU.Build.0 = Release|Any CPU
{05DD23BA-333E-4024-95A7-A9A1A8719925}.Release|x64.ActiveCfg = Release|Any CPU
{05DD23BA-333E-4024-95A7-A9A1A8719925}.Release|x64.Build.0 = Release|Any CPU
{05DD23BA-333E-4024-95A7-A9A1A8719925}.Release|x86.ActiveCfg = Release|Any CPU
{05DD23BA-333E-4024-95A7-A9A1A8719925}.Release|x86.Build.0 = Release|Any CPU
{CB15FFEA-0F15-4928-AB43-19E61BADD1FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CB15FFEA-0F15-4928-AB43-19E61BADD1FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CB15FFEA-0F15-4928-AB43-19E61BADD1FE}.Debug|x64.ActiveCfg = Debug|Any CPU
{CB15FFEA-0F15-4928-AB43-19E61BADD1FE}.Debug|x64.Build.0 = Debug|Any CPU
{CB15FFEA-0F15-4928-AB43-19E61BADD1FE}.Debug|x86.ActiveCfg = Debug|Any CPU
{CB15FFEA-0F15-4928-AB43-19E61BADD1FE}.Debug|x86.Build.0 = Debug|Any CPU
{CB15FFEA-0F15-4928-AB43-19E61BADD1FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CB15FFEA-0F15-4928-AB43-19E61BADD1FE}.Release|Any CPU.Build.0 = Release|Any CPU
{CB15FFEA-0F15-4928-AB43-19E61BADD1FE}.Release|x64.ActiveCfg = Release|Any CPU
{CB15FFEA-0F15-4928-AB43-19E61BADD1FE}.Release|x64.Build.0 = Release|Any CPU
{CB15FFEA-0F15-4928-AB43-19E61BADD1FE}.Release|x86.ActiveCfg = Release|Any CPU
{CB15FFEA-0F15-4928-AB43-19E61BADD1FE}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
7 changes: 6 additions & 1 deletion Sicoob.Cobranca/Models/Shared/DadosPagador.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ public class DadosPagador
public string cidade { get; set; }
public string cep { get; set; }
public string uf { get; set; }
public string[] email { get; set; }
public string email { get; set; }
}

public class DadosPagadorRequest : DadosPagador
{
public long numeroCliente { get; set; }
}
15 changes: 15 additions & 0 deletions Sicoob.Cobranca/Models/v3/AlterarBoletoRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,22 @@ public class SeuNumero
public class Desconto
{
public int tipoDesconto { get; set; }

[JsonConverter(typeof(CustomDateTimeConverter))]
public DateTime dataPrimeiroDesconto { get; set; }

public decimal valorPrimeiroDesconto { get; set; }

[JsonConverter(typeof(CustomDateTimeConverter))]
[JsonProperty(NullValueHandling=NullValueHandling.Ignore)]
public DateTime? dataSegundoDesconto { get; set; }

public decimal? valorSegundoDesconto { get; set; }

[JsonConverter(typeof(CustomDateTimeConverter))]
[JsonProperty(NullValueHandling=NullValueHandling.Ignore)]
public DateTime? dataTerceiroDesconto { get; set; }

public decimal? valorTerceiroDesconto { get; set; }
}

Expand All @@ -62,13 +73,15 @@ public class Abatimento
public class Multa
{
public int tipoMulta { get; set; }
[JsonConverter(typeof(CustomDateTimeConverter))]
public DateTime dataMulta { get; set; }
public decimal valorMulta { get; set; }
}

public class JurosMora
{
public int tipoJurosMora { get; set; }
[JsonConverter(typeof(CustomDateTimeConverter))]
public DateTime dataJurosMora { get; set; }
public decimal valorJurosMora { get; set; }
}
Expand Down Expand Up @@ -103,11 +116,13 @@ public class Pix

public class ProrrogacaoVencimento
{
[JsonConverter(typeof(CustomDateTimeConverter))]
public DateTime dataVencimento { get; set; }
}

public class ProrrogacaoLimitePagamento
{
[JsonConverter(typeof(CustomDateTimeConverter))]
public DateTime dataLimitePagamento { get; set; }
}

Expand Down
9 changes: 9 additions & 0 deletions Sicoob.Cobranca/Models/v3/ConsultaFaixasNossoNumero.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Sicoob.Cobranca.Models.v3;

public class ConsultaFaixasNossoNumeroRequest
{
public int numeroCliente { get; set; }
public int codigoModalidade { get; set; }
public int quantidade { get; set; }
public int? numeroContratoCobranca { get; set; }
}
99 changes: 99 additions & 0 deletions Sicoob.Cobranca/Models/v3/ConsultaWebhookRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
namespace Sicoob.Cobranca.Models.v3;

using System;
using System.Diagnostics;
using Newtonsoft.Json;

public class ConsultaWebhookRequest
{
[JsonProperty(NullValueHandling=NullValueHandling.Ignore)]
public long? idWebhook { get; set; }
[JsonProperty(NullValueHandling=NullValueHandling.Ignore)]
public int? codigoTipoMovimento { get; set; }
}

public class ConsultaWebhookResponse
{
public DadosWebhook[]? resultado { get; set; }
}

public class ConsultaSolicitacoesWebhookRequest
{
[JsonConverter(typeof(CustomDateTimeConverter))]
public DateTime dataSolicitacao { get; set; }

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public int? pagina { get; set; }

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public int? codigoSolicitacaoSituacao { get; set; }

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string? codigoBarras { get; set; } = null;

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public int? nossoNumero { get; set; }
}

public class ConsultaSolicitacoesWebhookResponse
{
public SolicitacoesWebhookResponse? resultado { get; set; }
}

public class IncluirWebhooksResponse
{
public DadosWebhook? resultado { get; set; }
}

public class DadosWebhook
{
public long idWebhook { get; set; }
public string url { get; set; } = null;
public string email { get; set; }
public int codigoTipoMovimento { get; set; }
public string descricaoTipoMovimento { get; set; }
public int codigoPeriodoMovimento { get; set; }
public string descricaoPeriodoMovimento { get; set; }
public int codigoSituacao { get; set; }
public string descricaoSituacao { get; set; }
public DateTime dataHoraCadastro { get; set; }
public DateTime dataHoraUltimaAlteracao { get; set; }
public DateTime dataHoraInativacao { get; set; }
public string descricaoMotivoInativacao { get; set; }
}

public class SolicitacoesWebhookResponse
{
public int paginaAtual { get; set; }
public int totalPaginas { get; set; }
public int totalRegistros { get; set; }
public DadosSolicitacoesWebhookResponse[] webhookSolicitacoes { get; set; }
}

public class DadosSolicitacoesWebhookResponse
{
public int codigoWebhookSituacao { get; set; }
public string descricaoWebhookSituacao { get; set; }
public int codigoSolicitacaoSituacao { get; set; }
public string descricaoSolicitacaoSituacao { get; set; }
public int codigoTipoMovimento { get; set; }
public string descricaoTipoMovimento { get; set; }
public int codigoPeriodoMovimento { get; set; }
public string descricaoPeriodoMovimento { get; set; }
public string descricaoErroProcessamento { get; set; }
public DateTime dataHoraCadastro { get; set; }
public bool validacaoWebhook { get; set; }
public int nossoNumero { get; set; }
public string codigoBarras { get; set; }
public DadosSolicitacoesWebhookNotificacoesResponse[] webhookNotificacoes { get; set; }
}

public class DadosSolicitacoesWebhookNotificacoesResponse
{
public string url { get; set; }
public DateTime dataHoraInicio { get; set; }
public DateTime dataHoraFim { get; set; }
public int tempoComunicao { get; set; }
public int codigoStatusRequisicao { get; set; }
public string descricaoCodigoStatusRequisicao { get; set; }
}
6 changes: 3 additions & 3 deletions Sicoob.Cobranca/Models/v3/IncluirBoleto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ public class IncluirBoletoRequest
public int tipoDesconto { get; set; }
[JsonConverter(typeof(CustomDateTimeConverter))]
[JsonProperty(NullValueHandling=NullValueHandling.Ignore)]
public DateTime dataPrimeiroDesconto { get; set; }
public DateTime? dataPrimeiroDesconto { get; set; }
public decimal valorPrimeiroDesconto { get; set; }
[JsonConverter(typeof(CustomDateTimeConverter))]
[JsonProperty(NullValueHandling=NullValueHandling.Ignore)]
public DateTime dataSegundoDesconto { get; set; }
public DateTime? dataSegundoDesconto { get; set; }
public decimal valorSegundoDesconto { get; set; }
[JsonConverter(typeof(CustomDateTimeConverter))]
[JsonProperty(NullValueHandling=NullValueHandling.Ignore)]
public DateTime dataTerceiroDesconto { get; set; }
public DateTime? dataTerceiroDesconto { get; set; }
public decimal valorTerceiroDesconto { get; set; }
public int tipoMulta { get; set; }
[JsonConverter(typeof(CustomDateTimeConverter))]
Expand Down
17 changes: 17 additions & 0 deletions Sicoob.Cobranca/Models/v3/IncluirWebhook.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Newtonsoft.Json;

namespace Sicoob.Cobranca.Models.v3;

public class AlterarWebhookRequest
{
public string url { get; set; }
public string email { get; set; }
}

public class IncluirWebhookRequest : AlterarWebhookRequest
{
[JsonProperty(NullValueHandling=NullValueHandling.Ignore)]
public int codigoTipoMovimento { get; set; }
[JsonProperty(NullValueHandling=NullValueHandling.Ignore)]
public int codigoPeriodoMovimento { get; set; }
}
5 changes: 5 additions & 0 deletions Sicoob.Cobranca/Models/v3/MovimentacaoRequest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using Newtonsoft.Json;

namespace Sicoob.Cobranca.Models.v3;

Expand All @@ -9,6 +10,10 @@ public class MovimentacaoRequest
/// 1. Entrada 2. Prorrogação 3. A Vencer 4. Vencido 5. Liquidação 6. Baixa
/// </summary>
public int tipoMovimento { get; set; }

[JsonConverter(typeof(CustomDateTimeConverter))]
public DateTime dataInicial { get; set; }

[JsonConverter(typeof(CustomDateTimeConverter))]
public DateTime dataFinal { get; set; }
}
38 changes: 38 additions & 0 deletions Sicoob.Cobranca/Models/v3/WebhookCallback.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using System;

namespace Sicoob.Cobranca.Models.v3;

public class WebhookCallback
{
public int idWebhook { get; set; }
public int tipoMovimento { get; set; }
public WebhookDadosCallback dados { get; set; }
}

public class WebhookDadosCallback
{
public string numeroIdentificadorBaixa { get; set; }
public string codigoBarrasBoleto { get; set; }
public string codigoBarrasBaixa { get; set; }
public string nossoNumero { get; set; }
public string seuNumero { get; set; }
public string codigoBancoRecebedor { get; set; }
public int codigoAgenciaRecebedora { get; set; }
public int numeroCliente { get; set; }
public string cpfCnpjBeneficiario { get; set; }
public string codigoTipoPessoaPagador { get; set; }
public string cpfCnpjPagador { get; set; }
public string nomePagador { get; set; }
public string codigoTipoPessoaPortador { get; set; }
public string cpfCnpjPortador { get; set; }
public string nomePortador { get; set; }
public decimal valorBoleto { get; set; }
public decimal valorPagamento { get; set; }
public int codigoCanalPagamento { get; set; }
public DateTime dataEmissao { get; set; }
public DateTime dataVencimento { get; set; }
public DateTime? dataLimitePagamento { get; set; }
public DateTime dataHoraSituacaoBaixa { get; set; }
public bool baixaRealizadaEmContingencia { get; set; }
public bool cancelamentoBaixa { get; set; }
}
Loading