-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modelos con constructor por defecto y utilizando
get; init;
(🔔 Brea…
…king changes) Es dificil serializar los modelos a XML si estos no tienen un constructor por defecto. Por lo tanto, hemos decidido utilizar `get; init;` en vez de crear las propiedades utilizando un constructor.
- Loading branch information
Showing
19 changed files
with
144 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
namespace ECF_DGII.Models.Anulacion; | ||
|
||
public record RespuestaAnulacionRango( | ||
string? Rnc, | ||
string? Codigo, | ||
string? Nombre, | ||
string[]? Mensajes | ||
); | ||
public record RespuestaAnulacionRango | ||
{ | ||
public string? Rnc { get; init; } | ||
public string? Codigo { get; init; } | ||
public string? Nombre { get; init; } | ||
public string[]? Mensajes { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
namespace ECF_DGII.Models.ConsultaDirectorio; | ||
|
||
public record Directorio( | ||
string? Nombre, | ||
string? Rnc, | ||
string? UrlRecepcion, | ||
string? UrlAceptacion, | ||
string? UrlOpcional | ||
); | ||
public record Directorio | ||
{ | ||
public string? Nombre { get; init; } | ||
public string? Rnc { get; init; } | ||
public string? UrlRecepcion { get; init; } | ||
public string? UrlAceptacion { get; init; } | ||
public string? UrlOpcional { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
namespace ECF_DGII.Models.ConsultaDirectorio; | ||
|
||
public record DirectorioModel( | ||
string? Nombre, | ||
string? Rnc, | ||
string? UrlRecepcion, | ||
string? UrlAceptacion, | ||
string? UrlOpcional | ||
); | ||
public record DirectorioModel | ||
{ | ||
public string? Nombre { get; init; } | ||
public string? Rnc { get; init; } | ||
public string? UrlRecepcion { get; init; } | ||
public string? UrlAceptacion { get; init; } | ||
public string? UrlOpcional { get; init; } | ||
} |
27 changes: 14 additions & 13 deletions
27
ECF_DGII.Models/ConsultaEstado/RespuestaConsultaEstado.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
namespace ECF_DGII.Models.ConsultaEstado; | ||
|
||
public record RespuestaConsultaEstado( | ||
int Codigo, | ||
string? Estado, | ||
string? RncEmisor, | ||
string? NcfElectronico, | ||
double? MontoTotal, | ||
double? TotalITBIS, | ||
string? FechaEmision, | ||
string? FechaFirma, | ||
string? RncComprador, | ||
string? CodigoSeguridad, | ||
string? IdExtranjero | ||
); | ||
public record RespuestaConsultaEstado | ||
{ | ||
public int Codigo { get; init; } | ||
public string? Estado { get; init; } | ||
public string? RncEmisor { get; init; } | ||
public string? NcfElectronico { get; init; } | ||
public double? MontoTotal { get; init; } | ||
public double? TotalITBIS { get; init; } | ||
public string? FechaEmision { get; init; } | ||
public string? FechaFirma { get; init; } | ||
public string? RncComprador { get; init; } | ||
public string? CodigoSeguridad { get; init; } | ||
public string? IdExtranjero { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
namespace ECF_DGII.Models.ConsultaRFCE; | ||
|
||
public record Mensaje(string? Valor, int Codigo); | ||
public record Mensaje | ||
{ | ||
public string? Valor { get; init; } | ||
public int Codigo { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
namespace ECF_DGII.Models.ConsultaRFCE; | ||
|
||
public record RespuestaConsultaRFCE( | ||
string? Rnc, | ||
string Encf, | ||
bool SecuenciaUtilizada, | ||
string? Codigo, | ||
string? Estado, | ||
Mensaje[]? Mensajes | ||
); | ||
public record RespuestaConsultaRFCE | ||
{ | ||
public string? Rnc { get; init; } | ||
public string Encf { get; init; } | ||
public bool SecuenciaUtilizada { get; init; } | ||
public string? Codigo { get; init; } | ||
public string? Estado { get; init; } | ||
public Mensaje[]? Mensajes { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
namespace ECF_DGII.Models.ConsultaResultado; | ||
|
||
public record Mensaje(string? Valor, int Codigo); | ||
public record Mensaje | ||
{ | ||
public string? Valor { get; init; } | ||
public int Codigo { get; init; } | ||
} |
21 changes: 11 additions & 10 deletions
21
ECF_DGII.Models/ConsultaResultado/RespuestaConsultaRFCE.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
namespace ECF_DGII.Models.ConsultaResultado; | ||
|
||
public record RespuestaConsultaTrackId( | ||
string? TrackId, | ||
string? Codigo, | ||
string? Estado, | ||
string? Rnc, | ||
string? Encf, | ||
bool SecuenciaUtilizada, | ||
string? FechaRecepcion, | ||
Mensaje[]? Mensajes | ||
); | ||
public record RespuestaConsultaTrackId | ||
{ | ||
public string? TrackId { get; init; } | ||
public string? Codigo { get; init; } | ||
public string? Estado { get; init; } | ||
public string? Rnc { get; init; } | ||
public string? Encf { get; init; } | ||
public bool SecuenciaUtilizada { get; init; } | ||
public string? FechaRecepcion { get; init; } | ||
public Mensaje[]? Mensajes { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
namespace ECF_DGII.Models.ConsultaTrackId; | ||
|
||
public record TrackingDetalle( | ||
string? TrackId, | ||
string? Estado, | ||
string? FechaRecepcion | ||
); | ||
public record TrackingDetalle | ||
{ | ||
public string? TrackId { get; init; } | ||
public string? Estado { get; init; } | ||
public string? FechaRecepcion { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
namespace ECF_DGII.Models.EstatusServicios; | ||
|
||
public record RespuestaEstado(string? Estado); | ||
public record RespuestaEstado | ||
{ | ||
public string? Estado { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
namespace ECF_DGII.Models.EstatusServicios; | ||
|
||
public record RespuestaEstatusServicio(string? Servicio, string? Status, string? Ambiente); | ||
public record RespuestaEstatusServicio | ||
{ | ||
public string? Servicio { get; init; } | ||
public string? Status { get; init; } | ||
public string? Ambiente { get; init; } | ||
} | ||
|
5 changes: 4 additions & 1 deletion
5
ECF_DGII.Models/EstatusServicios/RespuestaVentanaDeMantenimiento.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
namespace ECF_DGII.Models.EstatusServicios; | ||
|
||
public record RespuestaVentanaDeMantenimiento(VentanaDeMantenimiento[] VentanaMantenimientos); | ||
public record RespuestaVentanaDeMantenimiento | ||
{ | ||
public VentanaDeMantenimiento[] VentanaMantenimientos { get; init; } | ||
Check warning on line 5 in ECF_DGII.Models/EstatusServicios/RespuestaVentanaDeMantenimiento.cs GitHub Actions / build_and_pack
Check warning on line 5 in ECF_DGII.Models/EstatusServicios/RespuestaVentanaDeMantenimiento.cs GitHub Actions / build_and_pack
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
namespace ECF_DGII.Models.EstatusServicios; | ||
|
||
public record VentanaDeMantenimiento( | ||
string? Ambiente, | ||
string? HoraInicio, | ||
string? HoraFin, | ||
string[]? Dias | ||
); | ||
public record VentanaDeMantenimiento | ||
{ | ||
public string? Ambiente { get; init; } | ||
public string? HoraInicio { get; init; } | ||
public string? HoraFin { get; init; } | ||
public string[]? Dias { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
namespace ECF_DGII.Models.Recepcion; | ||
|
||
public record RespuestaRecepcion(string? TrackId, string? Error, string? Mensaje); | ||
public record RespuestaRecepcion | ||
{ | ||
public string? TrackId { get; init;} | ||
public string? Error { get; init;} | ||
public string? Mensaje { get; init;} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
namespace ECF_DGII.Models.RecepcionFC; | ||
|
||
public record MensajeRespuesta(string? Codigo, string? Valor); | ||
public record MensajeRespuesta | ||
{ | ||
public string? Codigo { get; init; } | ||
public string? Valor { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
namespace ECF_DGII.Models.RecepcionFC; | ||
|
||
public record Respuesta( | ||
EstadoCF Codigo, | ||
string? Estado, | ||
MensajeRespuesta[]? Mensajes, | ||
string? Enfc, | ||
bool SecuenciaUtilizada | ||
); | ||
public record Respuesta | ||
{ | ||
public EstadoCF Codigo { get; init; } | ||
public string? Estado { get; init; } | ||
public MensajeRespuesta[]? Mensajes { get; init; } | ||
public string? Enfc { get; init; } | ||
public bool SecuenciaUtilizada { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters