From cacbea7dca0c69ee63ff23b4cf5356c80d994b35 Mon Sep 17 00:00:00 2001 From: Dawlin Date: Thu, 28 Mar 2024 09:34:04 +0000 Subject: [PATCH] fix: add missing ACECF (#3) --- Directory.Build.props | 2 +- ECF_DGII.Models/ACECF/Acecf.cs | 138 +++++++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+), 1 deletion(-) create mode 100644 ECF_DGII.Models/ACECF/Acecf.cs diff --git a/Directory.Build.props b/Directory.Build.props index a016ccd..b8dfe31 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -3,7 +3,7 @@ $(MSBuildThisFileDirectory)artifacts - 1.2.1 + 1.2.2 SSD Smart Software Development SRL SSD Smart Software Development SRL © SSD Smart Software Development SRL diff --git a/ECF_DGII.Models/ACECF/Acecf.cs b/ECF_DGII.Models/ACECF/Acecf.cs new file mode 100644 index 0000000..c908e14 --- /dev/null +++ b/ECF_DGII.Models/ACECF/Acecf.cs @@ -0,0 +1,138 @@ +namespace ECF_DGII.Models.ACECF; + +[System.CodeDom.Compiler.GeneratedCodeAttribute("XmlSchemaClassGenerator", "2.1.1094.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute("versionType", Namespace = "")] +public enum VersionType +{ + + [System.Xml.Serialization.XmlEnumAttribute("1.0")] + Item10, +} + +[System.CodeDom.Compiler.GeneratedCodeAttribute("XmlSchemaClassGenerator", "2.1.1094.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute("EstadoRechazoType", Namespace = "")] +public enum EstadoRechazoType +{ + + [System.Xml.Serialization.XmlEnumAttribute("0")] + Item0, + + [System.Xml.Serialization.XmlEnumAttribute("1")] + Item1, + + [System.Xml.Serialization.XmlEnumAttribute("2")] + Item2, + + [System.Xml.Serialization.XmlEnumAttribute("3")] + Item3, + + [System.Xml.Serialization.XmlEnumAttribute("4")] + Item4, +} + +[System.CodeDom.Compiler.GeneratedCodeAttribute("XmlSchemaClassGenerator", "2.1.1094.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute("EstadoType", Namespace = "")] +public enum EstadoType +{ + + [System.Xml.Serialization.XmlEnumAttribute("1")] + Item1, + + [System.Xml.Serialization.XmlEnumAttribute("2")] + Item2, +} + +[System.CodeDom.Compiler.GeneratedCodeAttribute("XmlSchemaClassGenerator", "2.1.1094.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute("ACECF", Namespace = "", AnonymousType = true)] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlRootAttribute("ACECF", Namespace = "")] +public partial class Acecf +{ + + [System.ComponentModel.DataAnnotations.RequiredAttribute()] + [System.Xml.Serialization.XmlElementAttribute("DetalleAprobacionComercial", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] + public AcecfDetalleAprobacionComercial DetalleAprobacionComercial { get; set; } + + [System.Xml.Serialization.XmlAnyElementAttribute()] + public System.Xml.XmlElement Any { get; set; } +} + +[System.CodeDom.Compiler.GeneratedCodeAttribute("XmlSchemaClassGenerator", "2.1.1094.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute("AcecfDetalleAprobacionComercial", Namespace = "", AnonymousType = true)] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +public partial class AcecfDetalleAprobacionComercial +{ + + [System.ComponentModel.DataAnnotations.RequiredAttribute()] + [System.Xml.Serialization.XmlElementAttribute("Version", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] + public VersionType Version { get; set; } + + /// + /// Pattern: (\d{11,11})|(\d{9,9}). + /// + [System.ComponentModel.DataAnnotations.RegularExpressionAttribute("(\\d{11,11})|(\\d{9,9})")] + [System.ComponentModel.DataAnnotations.RequiredAttribute()] + [System.Xml.Serialization.XmlElementAttribute("RNCEmisor", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] + public string RncEmisor { get; set; } + + /// + /// Pattern: ([a-z0-9A-Z]{13,13})|([a-z0-9A-Z]{11,11})|([a-z0-9A-Z]{9,9}). + /// + [System.ComponentModel.DataAnnotations.RegularExpressionAttribute("([a-z0-9A-Z]{13,13})|([a-z0-9A-Z]{11,11})|([a-z0-9A-Z]{9,9})")] + [System.ComponentModel.DataAnnotations.RequiredAttribute()] + [System.Xml.Serialization.XmlElementAttribute("eNCF", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] + public string Encf { get; set; } + + /// + /// Pattern: (3[01]|[12][0-9]|0?[1-9])\-(1[012]|0?[1-9])\-((?:20|20)\d{2}). + /// + [System.ComponentModel.DataAnnotations.RegularExpressionAttribute("(3[01]|[12][0-9]|0?[1-9])\\-(1[012]|0?[1-9])\\-((?:20|20)\\d{2})")] + [System.ComponentModel.DataAnnotations.RequiredAttribute()] + [System.Xml.Serialization.XmlElementAttribute("FechaEmision", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] + public string FechaEmision { get; set; } + + /// + /// Total number of digits: 18. + /// Total number of digits in fraction: 2. + /// Pattern: [0-9]+(\.[0-9]{2}). + /// + [System.ComponentModel.DataAnnotations.RegularExpressionAttribute("[0-9]+(\\.[0-9]{2})")] + [System.ComponentModel.DataAnnotations.RequiredAttribute()] + [System.Xml.Serialization.XmlElementAttribute("MontoTotal", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] + public decimal MontoTotal { get; set; } + + /// + /// Pattern: (\d{11,11})|(\d{9,9}). + /// + [System.ComponentModel.DataAnnotations.RegularExpressionAttribute("(\\d{11,11})|(\\d{9,9})")] + [System.ComponentModel.DataAnnotations.RequiredAttribute()] + [System.Xml.Serialization.XmlElementAttribute("RNCComprador", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] + public string RncComprador { get; set; } + + [System.ComponentModel.DataAnnotations.RequiredAttribute()] + [System.Xml.Serialization.XmlElementAttribute("Estado", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] + public EstadoType Estado { get; set; } + + /// + /// Maximum length: 250. + /// + [System.ComponentModel.DataAnnotations.MaxLengthAttribute(250)] + [System.Xml.Serialization.XmlElementAttribute("DetalleMotivoRechazo", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] + public string DetalleMotivoRechazo { get; set; } + + /// + /// Pattern: (3[01]|[12][0-9]|0[1-9])-(1[0-2]|0[1-9])-[0-9]{4} (2[0-3]|[01]?[0-9]):([0-5]?[0-9]):([0-5]?[0-9]). + /// + [System.ComponentModel.DataAnnotations.RegularExpressionAttribute("(3[01]|[12][0-9]|0[1-9])-(1[0-2]|0[1-9])-[0-9]{4} (2[0-3]|[01]?[0-9]):([0-5]?[0-9" + + "]):([0-5]?[0-9])")] + [System.ComponentModel.DataAnnotations.RequiredAttribute()] + [System.Xml.Serialization.XmlElementAttribute("FechaHoraAprobacionComercial", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] + public string FechaHoraAprobacionComercial { get; set; } +}