@deuriib/dgii-ecf 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MANIFEST.json +122 -0
- package/dist/README.md +44 -0
- package/dist/anecf.xsd +134 -0
- package/dist/arecf.xsd +69 -0
- package/dist/e-cf-32.xsd +1707 -0
- package/dist/e-cf-33.xsd +1724 -0
- package/dist/e-cf-34.xsd +1668 -0
- package/dist/e-cf-41.xsd +1543 -0
- package/dist/e-cf-43.xsd +1345 -0
- package/dist/e-cf-44.xsd +1618 -0
- package/dist/e-cf-45.xsd +1682 -0
- package/dist/e-cf-46.xsd +1642 -0
- package/dist/e-cf-47.xsd +1463 -0
- package/dist/index.cjs +422 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +180 -5
- package/dist/index.d.ts +180 -5
- package/dist/index.js +407 -43
- package/dist/index.js.map +1 -1
- package/dist/semilla.xsd +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0",
|
|
3
|
+
"retrieved": "2026-11-02",
|
|
4
|
+
"source_base": "https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Documentacin%20sobre%20eCF/Documentaci%C3%B3n%20T%C3%A9cnica%20(XSD)/",
|
|
5
|
+
"schemas": [
|
|
6
|
+
{
|
|
7
|
+
"file": "e-cf-32.xsd",
|
|
8
|
+
"name": "e-CF 32",
|
|
9
|
+
"source_url": "https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Documentacin%20sobre%20eCF/Documentaci%C3%B3n%20T%C3%A9cnica%20(XSD)/e-CF%2032%20v.1.0.xsd",
|
|
10
|
+
"sha256": "151676df03c61335b4ac1eca97f99395488d57ea92793b49353602871e651f3c",
|
|
11
|
+
"bytes": 122998,
|
|
12
|
+
"status": "compiles"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"file": "e-cf-33.xsd",
|
|
16
|
+
"name": "e-CF 33",
|
|
17
|
+
"source_url": "https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Documentacin%20sobre%20eCF/Documentaci%C3%B3n%20T%C3%A9cnica%20(XSD)/e-CF%2033%20v.1.0.xsd",
|
|
18
|
+
"sha256": "087cd71beba11c19cf548e22b96363cb4aa210dc6f5c3c8a62122a42c88d2866",
|
|
19
|
+
"bytes": 124484,
|
|
20
|
+
"status": "compiles"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"file": "e-cf-34.xsd",
|
|
24
|
+
"name": "e-CF 34",
|
|
25
|
+
"source_url": "https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Documentacin%20sobre%20eCF/Documentaci%C3%B3n%20T%C3%A9cnica%20(XSD)/e-CF%2034%20v.1.0.xsd",
|
|
26
|
+
"sha256": "6c62ebabdea9a6f6d62ae85d9e1c2eb788f44f3f0b61945fe116700c4eaac2da",
|
|
27
|
+
"bytes": 122024,
|
|
28
|
+
"status": "compiles"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"file": "e-cf-41.xsd",
|
|
32
|
+
"name": "e-CF 41",
|
|
33
|
+
"source_url": "https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Documentacin%20sobre%20eCF/Documentaci%C3%B3n%20T%C3%A9cnica%20(XSD)/e-CF%2041%20v.1.0.xsd",
|
|
34
|
+
"sha256": "eae1993c637375bc1cbe80932411d87f5680cd54e77e4d1b2752d72a6c8b2ab3",
|
|
35
|
+
"bytes": 111171,
|
|
36
|
+
"status": "compiles"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"file": "e-cf-43.xsd",
|
|
40
|
+
"name": "e-CF 43",
|
|
41
|
+
"source_url": "https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Documentacin%20sobre%20eCF/Documentaci%C3%B3n%20T%C3%A9cnica%20(XSD)/e-CF%2043%20v.1.0.xsd",
|
|
42
|
+
"sha256": "776f030980c2c50cf0221e9263c55f367c8631727adff00ab45e2c7c1abafc52",
|
|
43
|
+
"bytes": 96111,
|
|
44
|
+
"status": "compiles"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"file": "e-cf-44.xsd",
|
|
48
|
+
"name": "e-CF 44",
|
|
49
|
+
"source_url": "https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Documentacin%20sobre%20eCF/Documentaci%C3%B3n%20T%C3%A9cnica%20(XSD)/e-CF%2044%20v.1.0.xsd",
|
|
50
|
+
"sha256": "19834f37a9f0e2db40f00c80d07c2bf92f9019f23474480f32cef1ba06af4e67",
|
|
51
|
+
"bytes": 114302,
|
|
52
|
+
"status": "compiles"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"file": "e-cf-45.xsd",
|
|
56
|
+
"name": "e-CF 45",
|
|
57
|
+
"source_url": "https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Documentacin%20sobre%20eCF/Documentaci%C3%B3n%20T%C3%A9cnica%20(XSD)/e-CF%2045%20v.1.0.xsd",
|
|
58
|
+
"sha256": "030492cc8ef7d1a09a89b16b241f8e5c4920dfd09c0b629b1db8e68406ecd6ca",
|
|
59
|
+
"bytes": 121785,
|
|
60
|
+
"status": "compiles"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"file": "e-cf-46.xsd",
|
|
64
|
+
"name": "e-CF 46",
|
|
65
|
+
"source_url": "https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Documentacin%20sobre%20eCF/Documentaci%C3%B3n%20T%C3%A9cnica%20(XSD)/e-CF%2046%20v.1.0.xsd",
|
|
66
|
+
"sha256": "e7f8613ade25c7efb88e84d34d7c0ad330d1b22238ad9ef90c80aed01911d67b",
|
|
67
|
+
"bytes": 115951,
|
|
68
|
+
"status": "compiles"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"file": "e-cf-47.xsd",
|
|
72
|
+
"name": "e-CF 47",
|
|
73
|
+
"source_url": "https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Documentacin%20sobre%20eCF/Documentaci%C3%B3n%20T%C3%A9cnica%20(XSD)/e-CF%2047%20v.1.0.xsd",
|
|
74
|
+
"sha256": "14daf18f52f63dd80e439a18fb60a102d74e71243ee90ee253367f61ce8e1994",
|
|
75
|
+
"bytes": 101382,
|
|
76
|
+
"status": "compiles"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"file": "anecf.xsd",
|
|
80
|
+
"name": "ANECF",
|
|
81
|
+
"source_url": "https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Documentacin%20sobre%20eCF/Documentaci%C3%B3n%20T%C3%A9cnica%20(XSD)/ANECF%20v.1.0.xsd",
|
|
82
|
+
"sha256": "af2e6a16c2900dfa55264d6ebec58ccbbbb25c1eb9821ee18ccc44fc142d0e78",
|
|
83
|
+
"bytes": 5160,
|
|
84
|
+
"status": "compiles"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"file": "arecf.xsd",
|
|
88
|
+
"name": "ARECF",
|
|
89
|
+
"source_url": "https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Documentacin%20sobre%20eCF/Documentaci%C3%B3n%20T%C3%A9cnica%20(XSD)/ARECF%20v1.0.xsd",
|
|
90
|
+
"sha256": "c6d186167159110959eb3f54706ecc7462ad9128fc2c3e03440c8352b1c66f10",
|
|
91
|
+
"bytes": 2871,
|
|
92
|
+
"status": "compiles"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"file": "semilla.xsd",
|
|
96
|
+
"name": "Semilla",
|
|
97
|
+
"source_url": "https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Documentacin%20sobre%20eCF/Documentaci%C3%B3n%20T%C3%A9cnica%20(XSD)/Semilla%20v.1.0.xsd",
|
|
98
|
+
"sha256": "bebef2033c930a30c8cef45b513db00403423125a7f3f48e100a73e3e355f67e",
|
|
99
|
+
"bytes": 487,
|
|
100
|
+
"status": "compiles"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"excluded": [
|
|
104
|
+
{
|
|
105
|
+
"name": "e-CF 31",
|
|
106
|
+
"reason": "The published schema references `IndicadorServicioTodoIncluidoType`, which does not resolve; lxml refuses to compile it.",
|
|
107
|
+
"source_url": "https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Documentacin%20sobre%20eCF/Documentaci%C3%B3n%20T%C3%A9cnica%20(XSD)/e-CF%2031%20v.1.0.xsd"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "RFCE 32",
|
|
111
|
+
"reason": "The published schema contains an invalid pattern facet: `[$0-9]` and the `\\-` escape are not valid XML Schema regex.",
|
|
112
|
+
"source_url": "https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Documentacin%20sobre%20eCF/Documentaci%C3%B3n%20T%C3%A9cnica%20(XSD)/RFCE%2032%20v.1.0.xsd"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "ACECF",
|
|
116
|
+
"reason": "The published schema contains an invalid pattern facet: the `\\-` escape is not valid XML Schema regex.",
|
|
117
|
+
"source_url": "https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Documentacin%20sobre%20eCF/Documentaci%C3%B3n%20T%C3%A9cnica%20(XSD)/ACECF%20v.1.0.xsd"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"mirror": "examples/fixtures/schemas",
|
|
121
|
+
"mirror_note": "Identical copies for examples and tests. The package copy is what ships; this mirror is the reference used by the repository fixtures."
|
|
122
|
+
}
|
package/dist/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# DGII XML Schemas
|
|
2
|
+
|
|
3
|
+
Official XML Schemas published by the DGII, mirrored here so examples and tests
|
|
4
|
+
can validate documents without a network round-trip.
|
|
5
|
+
|
|
6
|
+
- **Source:** <https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscalesElectronicosE-CF/Paginas/documentacionSobreE-CF.aspx>
|
|
7
|
+
→ _Documentación Técnica (XSD)_
|
|
8
|
+
- **Retrieved:** 2026-11-02
|
|
9
|
+
- **Version:** 1.0 for every document type
|
|
10
|
+
- **Integrity:** every file is listed with its `sha256` in `MANIFEST.json`.
|
|
11
|
+
|
|
12
|
+
## Which schemas compile
|
|
13
|
+
|
|
14
|
+
These twelve compile and are used by `validate_document`:
|
|
15
|
+
|
|
16
|
+
`e-cf-32`, `e-cf-33`, `e-cf-34`, `e-cf-41`, `e-cf-43`, `e-cf-44`, `e-cf-45`,
|
|
17
|
+
`e-cf-46`, `e-cf-47`, `anecf`, `arecf`, `semilla`.
|
|
18
|
+
|
|
19
|
+
## Which do not
|
|
20
|
+
|
|
21
|
+
Three published schemas are **invalid as published** and are kept under
|
|
22
|
+
`upstream-invalid/` for traceability only. They are not bundled in the package
|
|
23
|
+
and `validate_document` reports them as unavailable rather than passing
|
|
24
|
+
silently.
|
|
25
|
+
|
|
26
|
+
| Schema | Why it does not compile |
|
|
27
|
+
| ------------------- | ----------------------------------------------------------------------------------- |
|
|
28
|
+
| `e-CF 31 v.1.0.xsd` | References `IndicadorServicioTodoIncluidoType`, which does not resolve. |
|
|
29
|
+
| `RFCE 32 v.1.0.xsd` | Invalid pattern facet: `[$0-9]` and the `\-` escape are not valid XML Schema regex. |
|
|
30
|
+
| `ACECF v.1.0.xsd` | Invalid pattern facet: the `\-` escape is not valid XML Schema regex. |
|
|
31
|
+
|
|
32
|
+
Do not "fix" these files in place — patching an official schema silently would
|
|
33
|
+
make the validator disagree with what DGII publishes. If a patch is ever
|
|
34
|
+
adopted, it must be recorded in `MANIFEST.json` with the original and the
|
|
35
|
+
reason.
|
|
36
|
+
|
|
37
|
+
## Notes
|
|
38
|
+
|
|
39
|
+
- The package ships its own copy at `packages/python/src/py_dgii_ecf/schemas/`;
|
|
40
|
+
this mirror exists for examples and tests. Both are byte-identical.
|
|
41
|
+
- `examples/fixtures/invoice-32.xml` validates against `e-cf-32.xsd` **once
|
|
42
|
+
signed**. The schema ends with an `xs:any` for the signature, so the unsigned
|
|
43
|
+
fixture is structurally incomplete by design — the test signs it first and
|
|
44
|
+
asserts the signed document validates.
|
package/dist/anecf.xsd
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
3
|
+
<xs:element name="ANECF">
|
|
4
|
+
<xs:complexType>
|
|
5
|
+
<xs:sequence>
|
|
6
|
+
<xs:element name="Encabezado" maxOccurs="1">
|
|
7
|
+
<xs:complexType>
|
|
8
|
+
<xs:sequence>
|
|
9
|
+
<xs:element name="Version" type="versionType" maxOccurs="1"/>
|
|
10
|
+
<xs:element name="RncEmisor" type="RNCValidation" maxOccurs="1"/>
|
|
11
|
+
<xs:element name="CantidadeNCFAnulados" type="Num10Validation" maxOccurs="1"/>
|
|
12
|
+
<xs:element name="FechaHoraAnulacioneNCF" type="DateAndTimeValidation" maxOccurs="1"/>
|
|
13
|
+
</xs:sequence>
|
|
14
|
+
</xs:complexType>
|
|
15
|
+
</xs:element>
|
|
16
|
+
<xs:element name="DetalleAnulacion" maxOccurs="1">
|
|
17
|
+
<xs:complexType>
|
|
18
|
+
<xs:sequence>
|
|
19
|
+
<xs:element name="Anulacion" minOccurs="1" maxOccurs="10">
|
|
20
|
+
<xs:complexType>
|
|
21
|
+
<xs:sequence>
|
|
22
|
+
<xs:element name="NoLinea" type="Num2Validation" minOccurs="1" maxOccurs="10"/>
|
|
23
|
+
<xs:element name="TipoeCF" type="CFType" maxOccurs="1"/>
|
|
24
|
+
<xs:element name="TablaRangoSecuenciasAnuladaseNCF" maxOccurs="1">
|
|
25
|
+
<xs:complexType>
|
|
26
|
+
<xs:sequence>
|
|
27
|
+
<xs:element name="Secuencias" minOccurs="1" maxOccurs="10000">
|
|
28
|
+
<xs:complexType>
|
|
29
|
+
<xs:sequence>
|
|
30
|
+
<xs:element name="SecuenciaeNCFDesde" type="AlfaNum13Validation" maxOccurs="1"/>
|
|
31
|
+
<xs:element name="SecuenciaeNCFHasta" type="AlfaNum13Validation" maxOccurs="1"/>
|
|
32
|
+
</xs:sequence>
|
|
33
|
+
</xs:complexType>
|
|
34
|
+
</xs:element>
|
|
35
|
+
</xs:sequence>
|
|
36
|
+
</xs:complexType>
|
|
37
|
+
</xs:element>
|
|
38
|
+
<xs:element name="CantidadeNCFAnulados" type="Num10Validation" maxOccurs="1"/>
|
|
39
|
+
</xs:sequence>
|
|
40
|
+
</xs:complexType>
|
|
41
|
+
</xs:element>
|
|
42
|
+
|
|
43
|
+
</xs:sequence>
|
|
44
|
+
</xs:complexType>
|
|
45
|
+
</xs:element>
|
|
46
|
+
<xs:any minOccurs="1" maxOccurs="1" processContents="skip" />
|
|
47
|
+
</xs:sequence>
|
|
48
|
+
</xs:complexType>
|
|
49
|
+
</xs:element>
|
|
50
|
+
|
|
51
|
+
<!-- Definiciones de Tipos de datos -->
|
|
52
|
+
<xs:simpleType name="versionType">
|
|
53
|
+
<xs:restriction base="xs:string">
|
|
54
|
+
<xs:enumeration value="1.0"/>
|
|
55
|
+
</xs:restriction>
|
|
56
|
+
</xs:simpleType>
|
|
57
|
+
|
|
58
|
+
<xs:simpleType name="CFType">
|
|
59
|
+
<xs:restriction base="xs:integer" >
|
|
60
|
+
<xs:enumeration value="31"/>
|
|
61
|
+
<xs:enumeration value="32"/>
|
|
62
|
+
<xs:enumeration value="33"/>
|
|
63
|
+
<xs:enumeration value="34"/>
|
|
64
|
+
<xs:enumeration value="41"/>
|
|
65
|
+
<xs:enumeration value="43"/>
|
|
66
|
+
<xs:enumeration value="44"/>
|
|
67
|
+
<xs:enumeration value="45"/>
|
|
68
|
+
<xs:enumeration value="46"/>
|
|
69
|
+
<xs:enumeration value="47"/>
|
|
70
|
+
</xs:restriction>
|
|
71
|
+
</xs:simpleType>
|
|
72
|
+
|
|
73
|
+
<xs:simpleType name="SerieType">
|
|
74
|
+
<xs:restriction base="xs:string" >
|
|
75
|
+
<xs:enumeration value="B"/>
|
|
76
|
+
<xs:enumeration value="C"/>
|
|
77
|
+
<xs:enumeration value="D"/>
|
|
78
|
+
<xs:enumeration value="F"/>
|
|
79
|
+
<xs:enumeration value="G"/>
|
|
80
|
+
<xs:enumeration value="H"/>
|
|
81
|
+
<xs:enumeration value="I"/>
|
|
82
|
+
<xs:enumeration value="J"/>
|
|
83
|
+
<xs:enumeration value="K"/>
|
|
84
|
+
<xs:enumeration value="L"/>
|
|
85
|
+
<xs:enumeration value="M"/>
|
|
86
|
+
<xs:enumeration value="N"/>
|
|
87
|
+
<xs:enumeration value="O"/>
|
|
88
|
+
<xs:enumeration value="P"/>
|
|
89
|
+
<xs:enumeration value="Q"/>
|
|
90
|
+
<xs:enumeration value="P"/>
|
|
91
|
+
<xs:enumeration value="R"/>
|
|
92
|
+
<xs:enumeration value="S"/>
|
|
93
|
+
<xs:enumeration value="T"/>
|
|
94
|
+
<xs:enumeration value="U"/>
|
|
95
|
+
<xs:enumeration value="V"/>
|
|
96
|
+
<xs:enumeration value="W"/>
|
|
97
|
+
<xs:enumeration value="X"/>
|
|
98
|
+
<xs:enumeration value="Y"/>
|
|
99
|
+
<xs:enumeration value="Z"/>
|
|
100
|
+
</xs:restriction>
|
|
101
|
+
</xs:simpleType>
|
|
102
|
+
|
|
103
|
+
<xs:simpleType name="RNCValidation">
|
|
104
|
+
<xs:restriction base="xs:integer" >
|
|
105
|
+
<xs:pattern value="(\d{11,11})|(\d{9,9})"></xs:pattern>
|
|
106
|
+
</xs:restriction>
|
|
107
|
+
</xs:simpleType>
|
|
108
|
+
|
|
109
|
+
<xs:simpleType name="AlfaNum13Validation">
|
|
110
|
+
<xs:restriction base="xs:string" >
|
|
111
|
+
<xs:minLength value="13"/>
|
|
112
|
+
<xs:maxLength value="13"/>
|
|
113
|
+
</xs:restriction>
|
|
114
|
+
</xs:simpleType>
|
|
115
|
+
|
|
116
|
+
<xs:simpleType name="Num10Validation">
|
|
117
|
+
<xs:restriction base="xs:integer" >
|
|
118
|
+
<xs:pattern value="(\d{1,10})"></xs:pattern>
|
|
119
|
+
</xs:restriction>
|
|
120
|
+
</xs:simpleType>
|
|
121
|
+
|
|
122
|
+
<xs:simpleType name="Num2Validation">
|
|
123
|
+
<xs:restriction base="xs:integer" >
|
|
124
|
+
<xs:pattern value="\d{1,2}"></xs:pattern>
|
|
125
|
+
</xs:restriction>
|
|
126
|
+
</xs:simpleType>
|
|
127
|
+
|
|
128
|
+
<xs:simpleType name="DateAndTimeValidation">
|
|
129
|
+
<xs:restriction base="xs:string">
|
|
130
|
+
<xs:pattern value="(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])"></xs:pattern>
|
|
131
|
+
</xs:restriction>
|
|
132
|
+
</xs:simpleType>
|
|
133
|
+
|
|
134
|
+
</xs:schema>
|
package/dist/arecf.xsd
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
3
|
+
<xs:element name="ARECF">
|
|
4
|
+
<xs:complexType>
|
|
5
|
+
<xs:sequence>
|
|
6
|
+
<xs:element name="DetalleAcusedeRecibo">
|
|
7
|
+
<xs:complexType>
|
|
8
|
+
<xs:sequence>
|
|
9
|
+
<xs:element name="Version" type="VersionType" minOccurs = "1" maxOccurs ="1" />
|
|
10
|
+
<xs:element name="RNCEmisor" type="RNCType" minOccurs = "1" maxOccurs ="1"/>
|
|
11
|
+
<xs:element name="RNCComprador" type="RNCType" minOccurs = "1" maxOccurs ="1"/>
|
|
12
|
+
<xs:element name="eNCF" type="eNCFType" minOccurs="1" maxOccurs="1"/>
|
|
13
|
+
<xs:element name="Estado" type="EstadoType" minOccurs="1" maxOccurs="1"/>
|
|
14
|
+
<xs:element name="CodigoMotivoNoRecibido" type="CodigoMotivoNoRecibidoType" minOccurs="0"/>
|
|
15
|
+
<xs:element name="FechaHoraAcuseRecibo" type="DateAndTimeType" minOccurs="1" maxOccurs="1"/>
|
|
16
|
+
</xs:sequence>
|
|
17
|
+
</xs:complexType>
|
|
18
|
+
</xs:element>
|
|
19
|
+
<xs:any minOccurs="0" processContents="skip" />
|
|
20
|
+
</xs:sequence>
|
|
21
|
+
</xs:complexType>
|
|
22
|
+
</xs:element>
|
|
23
|
+
|
|
24
|
+
<!-- Definiciones de Tipos de datos -->
|
|
25
|
+
<xs:simpleType name="VersionType">
|
|
26
|
+
<xs:restriction base="xs:decimal">
|
|
27
|
+
<xs:enumeration value="1.0"/>
|
|
28
|
+
<xs:totalDigits value='2'/>
|
|
29
|
+
<xs:fractionDigits value="1" />
|
|
30
|
+
</xs:restriction>
|
|
31
|
+
</xs:simpleType>
|
|
32
|
+
|
|
33
|
+
<xs:simpleType name="RNCType">
|
|
34
|
+
<xs:restriction base="xs:integer" >
|
|
35
|
+
<xs:pattern value='[0-9]{11}|[0-9]{9}'/>
|
|
36
|
+
</xs:restriction>
|
|
37
|
+
</xs:simpleType>
|
|
38
|
+
|
|
39
|
+
<xs:simpleType name="eNCFType">
|
|
40
|
+
<xs:restriction base="xs:string" >
|
|
41
|
+
<xs:pattern value="([a-z0-9A-Z]{13,13})|([a-z0-9A-Z]{11,11})|([a-z0-9A-Z]{9,9})*"/>
|
|
42
|
+
<xs:minLength value="9" />
|
|
43
|
+
<xs:maxLength value="13" />
|
|
44
|
+
</xs:restriction>
|
|
45
|
+
</xs:simpleType>
|
|
46
|
+
|
|
47
|
+
<xs:simpleType name="EstadoType">
|
|
48
|
+
<xs:restriction base="xs:integer" >
|
|
49
|
+
<xs:enumeration value="0"/> <!-- e-CF Recibido -->
|
|
50
|
+
<xs:enumeration value="1"/> <!-- e-CF No Recibido -->
|
|
51
|
+
</xs:restriction>
|
|
52
|
+
</xs:simpleType>
|
|
53
|
+
|
|
54
|
+
<xs:simpleType name="CodigoMotivoNoRecibidoType">
|
|
55
|
+
<xs:restriction base="xs:integer" >
|
|
56
|
+
<xs:enumeration value="1"/> <!-- Error de Especificación -->
|
|
57
|
+
<xs:enumeration value="2"/> <!-- Error de Firma Digital -->
|
|
58
|
+
<xs:enumeration value="3"/> <!-- Envío Duplicado -->
|
|
59
|
+
<xs:enumeration value="4"/> <!-- RNC Comprador no Corresponde -->
|
|
60
|
+
</xs:restriction>
|
|
61
|
+
</xs:simpleType>
|
|
62
|
+
|
|
63
|
+
<xs:simpleType name="DateAndTimeType">
|
|
64
|
+
<xs:restriction base="xs:string">
|
|
65
|
+
<xs:pattern value="(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])"/>
|
|
66
|
+
</xs:restriction>
|
|
67
|
+
</xs:simpleType>
|
|
68
|
+
|
|
69
|
+
</xs:schema>
|