Skip to content

Commit 6f9486a

Browse files
committed
data.ref: add a new version of the XML schemas for "factura electrónica"
Create a new version of the XML schemas for "factura electrónica" from the official XML schemas of AEC (Archivo Electrónico de Cesión). Last update timestamp is 2019-12-12. Source: [cl-sii-extraoficial/archivos-oficiales@c89dec5](https://github.com/cl-sii-extraoficial/archivos-oficiales/tree/c89dec54f664281721dcb77af327c4f6c58ec4ff/src/code/rtc/2019-12-12-schema_cesion) Changelog: - `SiiTypes_v10.xsd`: - Replaces CRLF line endings with LF. - `root`: A new simple type `Dec14_4-0Type` is added for non-negative decimals (admits 0) - `TipoTransCOMPRA`: The base type is changed and adds a restriction for the minimum and the maximum value (1 - 7) - `TipoTransVENTA`: Adds restriction for the minimum and maximum value (1 - 4) - `DTE_v10.xsd` - Replaces CRLF line endings with LF. - `IdDoc`: Adds the element `TipoFactEsp` - `Receptor.Extranjero`: Adds the element `TipoDocID` - `IndServicio`: Adds a new item to the enumeration - `MntExeOtrMnda`: Type changed to `Dec14_4-0Type` - `MntTotOtrMnda`: Type changed to `Dec14_4-0Type`
1 parent fe1efc5 commit 6f9486a

File tree

14 files changed

+9263
-1
lines changed

14 files changed

+9263
-1
lines changed
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<!--Ultima modificación : 22 de Junio 2005-->
3+
<xs:schema targetNamespace="http://www.sii.cl/SiiDte" xmlns:SiiDte="http://www.sii.cl/SiiDte" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="Cesion_v10.xsd"/>
5+
<xs:include schemaLocation="DTECedido_v10.xsd"/>
6+
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsignature_v10.xsd"/>
7+
<xs:element name="AEC">
8+
<xs:annotation>
9+
<xs:documentation>Archivo Electronico de Cesion</xs:documentation>
10+
</xs:annotation>
11+
<xs:complexType>
12+
<xs:sequence>
13+
<xs:element name="DocumentoAEC">
14+
<xs:annotation>
15+
<xs:documentation>Documento de AEC</xs:documentation>
16+
</xs:annotation>
17+
<xs:complexType>
18+
<xs:sequence>
19+
<xs:element name="Caratula">
20+
<xs:annotation>
21+
<xs:documentation>Informacion de AEC</xs:documentation>
22+
</xs:annotation>
23+
<xs:complexType>
24+
<xs:sequence>
25+
<xs:element name="RutCedente" type="SiiDte:RUTType">
26+
<xs:annotation>
27+
<xs:documentation>RUT que Genera el Archivo de Transferencias</xs:documentation>
28+
</xs:annotation>
29+
</xs:element>
30+
<xs:element name="RutCesionario" type="SiiDte:RUTType">
31+
<xs:annotation>
32+
<xs:documentation>RUT a Quien Va Dirigido el Archivo de Transferencias</xs:documentation>
33+
</xs:annotation>
34+
</xs:element>
35+
<xs:element name="NmbContacto" type="SiiDte:NombreType" minOccurs="0">
36+
<xs:annotation>
37+
<xs:documentation>Persona de Contacto para aclarar dudas</xs:documentation>
38+
</xs:annotation>
39+
</xs:element>
40+
<xs:element name="FonoContacto" type="SiiDte:FonoType" minOccurs="0">
41+
<xs:annotation>
42+
<xs:documentation>Telefono de Contacto</xs:documentation>
43+
</xs:annotation>
44+
</xs:element>
45+
<xs:element name="MailContacto" type="SiiDte:MailType" minOccurs="0">
46+
<xs:annotation>
47+
<xs:documentation>Correo Electronico de Contacto</xs:documentation>
48+
</xs:annotation>
49+
</xs:element>
50+
<xs:element name="TmstFirmaEnvio" type="xs:dateTime">
51+
<xs:annotation>
52+
<xs:documentation>Fecha y Hora de la Firma del Archivo de Transferencias</xs:documentation>
53+
</xs:annotation>
54+
</xs:element>
55+
</xs:sequence>
56+
<xs:attribute name="version" type="xs:decimal" use="required" fixed="1.0"/>
57+
</xs:complexType>
58+
</xs:element>
59+
<xs:element name="Cesiones">
60+
<xs:annotation>
61+
<xs:documentation>Cesiones</xs:documentation>
62+
</xs:annotation>
63+
<xs:complexType>
64+
<xs:sequence>
65+
<xs:element ref="SiiDte:DTECedido">
66+
<xs:annotation>
67+
<xs:documentation>Representacion XML y Grafica del DTE Cedido</xs:documentation>
68+
</xs:annotation>
69+
</xs:element>
70+
<xs:element ref="SiiDte:Cesion" maxOccurs="40">
71+
<xs:annotation>
72+
<xs:documentation>Informacion Electronica de Recepcion y Aceptacion del DTE por Parte del Receptor</xs:documentation>
73+
</xs:annotation>
74+
</xs:element>
75+
</xs:sequence>
76+
</xs:complexType>
77+
</xs:element>
78+
</xs:sequence>
79+
<xs:attribute name="ID" type="xs:ID" use="required"/>
80+
</xs:complexType>
81+
</xs:element>
82+
<xs:element ref="ds:Signature">
83+
<xs:annotation>
84+
<xs:documentation>Firma Digital sobre Transferencia</xs:documentation>
85+
</xs:annotation>
86+
</xs:element>
87+
</xs:sequence>
88+
<xs:attribute name="version" type="xs:string" use="required" fixed="1.0"/>
89+
</xs:complexType>
90+
</xs:element>
91+
</xs:schema>
Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<!--Ultima Modificacion: 11 Diciembre 2008 -->
3+
<xs:schema targetNamespace="http://www.sii.cl/SiiDte" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SiiDte="http://www.sii.cl/SiiDte" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="SiiTypes_v10.xsd"/>
5+
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsignature_v10.xsd"/>
6+
<!--
7+
Fecha ultima actualización : 10-03-05 16:00
8+
-->
9+
<xs:element name="Cesion" type="SiiDte:CesionDefType">
10+
<xs:annotation>
11+
<xs:documentation>Envio de Informacion de Transferencias Electronicas</xs:documentation>
12+
</xs:annotation>
13+
</xs:element>
14+
<xs:complexType name="CesionDefType">
15+
<xs:annotation>
16+
<xs:documentation>Documento Tributario Electronico</xs:documentation>
17+
</xs:annotation>
18+
<xs:sequence>
19+
<xs:element name="DocumentoCesion">
20+
<xs:complexType>
21+
<xs:sequence>
22+
<xs:element name="SeqCesion">
23+
<xs:annotation>
24+
<xs:documentation>Secuencia de Cesiones (1, 2, 3, ... )</xs:documentation>
25+
</xs:annotation>
26+
<xs:simpleType>
27+
<xs:restriction base="xs:positiveInteger">
28+
<xs:totalDigits value="3"/>
29+
</xs:restriction>
30+
</xs:simpleType>
31+
</xs:element>
32+
<xs:element name="IdDTE">
33+
<xs:annotation>
34+
<xs:documentation>Identificacion del DTE Cedido</xs:documentation>
35+
</xs:annotation>
36+
<xs:complexType>
37+
<xs:sequence>
38+
<xs:element name="TipoDTE" type="SiiDte:DTEFacturasType">
39+
<xs:annotation>
40+
<xs:documentation>Tipo de DTE</xs:documentation>
41+
</xs:annotation>
42+
</xs:element>
43+
<xs:element name="RUTEmisor" type="SiiDte:RUTType">
44+
<xs:annotation>
45+
<xs:documentation>RUT Emisor del DTE</xs:documentation>
46+
</xs:annotation>
47+
</xs:element>
48+
<xs:element name="RUTReceptor" type="SiiDte:RUTType">
49+
<xs:annotation>
50+
<xs:documentation>RUT Receptor del DTE</xs:documentation>
51+
</xs:annotation>
52+
</xs:element>
53+
<xs:element name="Folio" type="SiiDte:FolioType">
54+
<xs:annotation>
55+
<xs:documentation>Folio del DTE</xs:documentation>
56+
</xs:annotation>
57+
</xs:element>
58+
<xs:element name="FchEmis" type="xs:date">
59+
<xs:annotation>
60+
<xs:documentation>Fecha Emision Contable del DTE (AAAA-MM-DD)</xs:documentation>
61+
</xs:annotation>
62+
</xs:element>
63+
<xs:element name="MntTotal" type="SiiDte:MontoType">
64+
<xs:annotation>
65+
<xs:documentation>Monto Total del DTE</xs:documentation>
66+
</xs:annotation>
67+
</xs:element>
68+
</xs:sequence>
69+
</xs:complexType>
70+
</xs:element>
71+
<xs:element name="Cedente">
72+
<xs:annotation>
73+
<xs:documentation>Identificacion del Cedente</xs:documentation>
74+
</xs:annotation>
75+
<xs:complexType>
76+
<xs:sequence>
77+
<xs:element name="RUT" type="SiiDte:RUTType">
78+
<xs:annotation>
79+
<xs:documentation>RUT del Cedente del DTE</xs:documentation>
80+
</xs:annotation>
81+
</xs:element>
82+
<xs:element name="RazonSocial">
83+
<xs:annotation>
84+
<xs:documentation>Razon Social o Nombre del Cedente</xs:documentation>
85+
</xs:annotation>
86+
<xs:simpleType>
87+
<xs:restriction base="SiiDte:RznSocLargaType">
88+
<xs:minLength value="1"/>
89+
</xs:restriction>
90+
</xs:simpleType>
91+
</xs:element>
92+
<xs:element name="Direccion">
93+
<xs:annotation>
94+
<xs:documentation>Direccion del Cedente</xs:documentation>
95+
</xs:annotation>
96+
<xs:simpleType>
97+
<xs:restriction base="SiiDte:DireccType">
98+
<xs:minLength value="5"/>
99+
</xs:restriction>
100+
</xs:simpleType>
101+
</xs:element>
102+
<xs:element name="eMail">
103+
<xs:annotation>
104+
<xs:documentation>Correo Electronico del Cedente</xs:documentation>
105+
</xs:annotation>
106+
<xs:simpleType>
107+
<xs:restriction base="SiiDte:MailType">
108+
<xs:minLength value="6"/>
109+
</xs:restriction>
110+
</xs:simpleType>
111+
</xs:element>
112+
<xs:element name="RUTAutorizado" maxOccurs="3">
113+
<xs:annotation>
114+
<xs:documentation>Lista de Personas Autorizadas por el Cedente a Firmar la Transferencia</xs:documentation>
115+
</xs:annotation>
116+
<xs:complexType>
117+
<xs:sequence>
118+
<xs:element name="RUT" type="SiiDte:RUTType">
119+
<xs:annotation>
120+
<xs:documentation>RUT de Persona Autorizada</xs:documentation>
121+
</xs:annotation>
122+
</xs:element>
123+
<xs:element name="Nombre" type="SiiDte:NombreType">
124+
<xs:annotation>
125+
<xs:documentation>Nombre de Persona Autorizada</xs:documentation>
126+
</xs:annotation>
127+
</xs:element>
128+
</xs:sequence>
129+
</xs:complexType>
130+
</xs:element>
131+
<xs:element name="DeclaracionJurada" minOccurs="0">
132+
<xs:annotation>
133+
<xs:documentation>Declaracion Jurada de Disponibilidad de Documentacion No Electronica</xs:documentation>
134+
</xs:annotation>
135+
<xs:simpleType>
136+
<xs:restriction base="xs:string">
137+
<xs:maxLength value="512"/>
138+
</xs:restriction>
139+
</xs:simpleType>
140+
</xs:element>
141+
</xs:sequence>
142+
</xs:complexType>
143+
</xs:element>
144+
<xs:element name="Cesionario">
145+
<xs:annotation>
146+
<xs:documentation>Identificacion del Cesionario</xs:documentation>
147+
</xs:annotation>
148+
<xs:complexType>
149+
<xs:sequence>
150+
<xs:element name="RUT">
151+
<xs:annotation>
152+
<xs:documentation>RUT del Cesionario</xs:documentation>
153+
</xs:annotation>
154+
</xs:element>
155+
<xs:element name="RazonSocial">
156+
<xs:annotation>
157+
<xs:documentation>Razon Social o Nombre del Cesionario</xs:documentation>
158+
</xs:annotation>
159+
<xs:simpleType>
160+
<xs:restriction base="SiiDte:RznSocLargaType">
161+
<xs:minLength value="1"/>
162+
</xs:restriction>
163+
</xs:simpleType>
164+
</xs:element>
165+
<xs:element name="Direccion">
166+
<xs:annotation>
167+
<xs:documentation>Direccion del Cesionario</xs:documentation>
168+
</xs:annotation>
169+
<xs:simpleType>
170+
<xs:restriction base="SiiDte:DireccType">
171+
<xs:minLength value="5"/>
172+
</xs:restriction>
173+
</xs:simpleType>
174+
</xs:element>
175+
<xs:element name="eMail">
176+
<xs:annotation>
177+
<xs:documentation>Correo Electronico del Cesionario</xs:documentation>
178+
</xs:annotation>
179+
<xs:simpleType>
180+
<xs:restriction base="SiiDte:MailType">
181+
<xs:minLength value="6"/>
182+
</xs:restriction>
183+
</xs:simpleType>
184+
</xs:element>
185+
</xs:sequence>
186+
</xs:complexType>
187+
</xs:element>
188+
<xs:element name="MontoCesion" type="SiiDte:MontoType">
189+
<xs:annotation>
190+
<xs:documentation>Monto del Credito Cedido</xs:documentation>
191+
</xs:annotation>
192+
</xs:element>
193+
<xs:element name="UltimoVencimiento" type="xs:date">
194+
<xs:annotation>
195+
<xs:documentation>Fecha de Ultimo Vencimiento</xs:documentation>
196+
</xs:annotation>
197+
</xs:element>
198+
<xs:element name="OtrasCondiciones" minOccurs="0">
199+
<xs:annotation>
200+
<xs:documentation>Otras Condiciones de la Cesion</xs:documentation>
201+
</xs:annotation>
202+
<xs:simpleType>
203+
<xs:restriction base="xs:string">
204+
<xs:maxLength value="512"/>
205+
</xs:restriction>
206+
</xs:simpleType>
207+
</xs:element>
208+
<xs:element name="eMailDeudor" type="SiiDte:MailType" minOccurs="0">
209+
<xs:annotation>
210+
<xs:documentation>Correo Electronico del Deudor del DTE</xs:documentation>
211+
</xs:annotation>
212+
</xs:element>
213+
<xs:element name="TmstCesion" type="xs:dateTime">
214+
<xs:annotation>
215+
<xs:documentation>TimeStamp de la Cesion del DTE</xs:documentation>
216+
</xs:annotation>
217+
</xs:element>
218+
</xs:sequence>
219+
<xs:attribute name="ID" type="xs:ID" use="required"/>
220+
</xs:complexType>
221+
</xs:element>
222+
<xs:element ref="ds:Signature" maxOccurs="3">
223+
<xs:annotation>
224+
<xs:documentation>Firmas Digitales sobre Cesion</xs:documentation>
225+
</xs:annotation>
226+
</xs:element>
227+
</xs:sequence>
228+
<xs:attribute name="version" type="xs:decimal" use="required" fixed="1.0"/>
229+
</xs:complexType>
230+
</xs:schema>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<!--Ultima Modificacion: 09-01-2013 10:00 - se agrega ImagenAR -->
3+
<xs:schema targetNamespace="http://www.sii.cl/SiiDte" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SiiDte="http://www.sii.cl/SiiDte" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="DTE_v10.xsd"/>
5+
<xs:include schemaLocation="Recibos_v10.xsd"/>
6+
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsignature_v10.xsd"/>
7+
<xs:element name="DTECedido" type="SiiDte:DTECedidoDefType">
8+
<xs:annotation>
9+
<xs:documentation>DTE con Imagen y Recibos</xs:documentation>
10+
</xs:annotation>
11+
</xs:element>
12+
<xs:complexType name="DTECedidoDefType">
13+
<xs:sequence>
14+
<xs:element name="DocumentoDTECedido">
15+
<xs:complexType>
16+
<xs:sequence>
17+
<xs:element ref="SiiDte:DTE">
18+
<xs:annotation>
19+
<xs:documentation>Representacion XML del DTE Cedido</xs:documentation>
20+
</xs:annotation>
21+
</xs:element>
22+
<xs:element name="ImagenDTE" type="xs:base64Binary" minOccurs="0">
23+
<xs:annotation>
24+
<xs:documentation>Representacion PDF del DTE Cedido</xs:documentation>
25+
</xs:annotation>
26+
</xs:element>
27+
<xs:element ref="SiiDte:Recibo" minOccurs="0" maxOccurs="40">
28+
<xs:annotation>
29+
<xs:documentation>Informacion Electronica de Recepcion y Aceptacion del DTE por Parte del Receptor</xs:documentation>
30+
</xs:annotation>
31+
</xs:element>
32+
<xs:element name="ImagenAR" minOccurs="0">
33+
<xs:annotation>
34+
<xs:documentation>Representacion PDF del los Acuse de Recibo</xs:documentation>
35+
</xs:annotation>
36+
<xs:simpleType>
37+
<xs:restriction base="xs:base64Binary">
38+
<xs:maxLength value="4000000"/>
39+
</xs:restriction>
40+
</xs:simpleType>
41+
</xs:element>
42+
<xs:element name="TmstFirma" type="xs:dateTime">
43+
<xs:annotation>
44+
<xs:documentation>Fecha y Hora en que se Firmo Digitalmente el Documento Cedido AAAA-MM-DDTHH:MI:SS</xs:documentation>
45+
</xs:annotation>
46+
</xs:element>
47+
</xs:sequence>
48+
<xs:attribute name="ID" type="xs:ID" use="required"/>
49+
</xs:complexType>
50+
</xs:element>
51+
<xs:element ref="ds:Signature">
52+
<xs:annotation>
53+
<xs:documentation>Firma Digital sobre Documento</xs:documentation>
54+
</xs:annotation>
55+
</xs:element>
56+
</xs:sequence>
57+
<xs:attribute name="version" type="xs:string" use="required" fixed="1.0"/>
58+
</xs:complexType>
59+
</xs:schema>

0 commit comments

Comments
 (0)