-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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`
- Loading branch information
1 parent
4446536
commit 60ee41e
Showing
14 changed files
with
9,263 additions
and
1 deletion.
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
91 changes: 91 additions & 0 deletions
91
cl_sii/data/ref/factura_electronica/schemas-xml/2019_12_12/AEC_v10.xsd
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 |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<!--Ultima modificación : 22 de Junio 2005--> | ||
<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"> | ||
<xs:include schemaLocation="Cesion_v10.xsd"/> | ||
<xs:include schemaLocation="DTECedido_v10.xsd"/> | ||
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsignature_v10.xsd"/> | ||
<xs:element name="AEC"> | ||
<xs:annotation> | ||
<xs:documentation>Archivo Electronico de Cesion</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="DocumentoAEC"> | ||
<xs:annotation> | ||
<xs:documentation>Documento de AEC</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="Caratula"> | ||
<xs:annotation> | ||
<xs:documentation>Informacion de AEC</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="RutCedente" type="SiiDte:RUTType"> | ||
<xs:annotation> | ||
<xs:documentation>RUT que Genera el Archivo de Transferencias</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="RutCesionario" type="SiiDte:RUTType"> | ||
<xs:annotation> | ||
<xs:documentation>RUT a Quien Va Dirigido el Archivo de Transferencias</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="NmbContacto" type="SiiDte:NombreType" minOccurs="0"> | ||
<xs:annotation> | ||
<xs:documentation>Persona de Contacto para aclarar dudas</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="FonoContacto" type="SiiDte:FonoType" minOccurs="0"> | ||
<xs:annotation> | ||
<xs:documentation>Telefono de Contacto</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="MailContacto" type="SiiDte:MailType" minOccurs="0"> | ||
<xs:annotation> | ||
<xs:documentation>Correo Electronico de Contacto</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="TmstFirmaEnvio" type="xs:dateTime"> | ||
<xs:annotation> | ||
<xs:documentation>Fecha y Hora de la Firma del Archivo de Transferencias</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
</xs:sequence> | ||
<xs:attribute name="version" type="xs:decimal" use="required" fixed="1.0"/> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="Cesiones"> | ||
<xs:annotation> | ||
<xs:documentation>Cesiones</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element ref="SiiDte:DTECedido"> | ||
<xs:annotation> | ||
<xs:documentation>Representacion XML y Grafica del DTE Cedido</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element ref="SiiDte:Cesion" maxOccurs="40"> | ||
<xs:annotation> | ||
<xs:documentation>Informacion Electronica de Recepcion y Aceptacion del DTE por Parte del Receptor</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:sequence> | ||
<xs:attribute name="ID" type="xs:ID" use="required"/> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element ref="ds:Signature"> | ||
<xs:annotation> | ||
<xs:documentation>Firma Digital sobre Transferencia</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
</xs:sequence> | ||
<xs:attribute name="version" type="xs:string" use="required" fixed="1.0"/> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:schema> |
230 changes: 230 additions & 0 deletions
230
cl_sii/data/ref/factura_electronica/schemas-xml/2019_12_12/Cesion_v10.xsd
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 |
---|---|---|
@@ -0,0 +1,230 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<!--Ultima Modificacion: 11 Diciembre 2008 --> | ||
<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"> | ||
<xs:include schemaLocation="SiiTypes_v10.xsd"/> | ||
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsignature_v10.xsd"/> | ||
<!-- | ||
Fecha ultima actualización : 10-03-05 16:00 | ||
--> | ||
<xs:element name="Cesion" type="SiiDte:CesionDefType"> | ||
<xs:annotation> | ||
<xs:documentation>Envio de Informacion de Transferencias Electronicas</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:complexType name="CesionDefType"> | ||
<xs:annotation> | ||
<xs:documentation>Documento Tributario Electronico</xs:documentation> | ||
</xs:annotation> | ||
<xs:sequence> | ||
<xs:element name="DocumentoCesion"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="SeqCesion"> | ||
<xs:annotation> | ||
<xs:documentation>Secuencia de Cesiones (1, 2, 3, ... )</xs:documentation> | ||
</xs:annotation> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:positiveInteger"> | ||
<xs:totalDigits value="3"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="IdDTE"> | ||
<xs:annotation> | ||
<xs:documentation>Identificacion del DTE Cedido</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="TipoDTE" type="SiiDte:DTEFacturasType"> | ||
<xs:annotation> | ||
<xs:documentation>Tipo de DTE</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="RUTEmisor" type="SiiDte:RUTType"> | ||
<xs:annotation> | ||
<xs:documentation>RUT Emisor del DTE</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="RUTReceptor" type="SiiDte:RUTType"> | ||
<xs:annotation> | ||
<xs:documentation>RUT Receptor del DTE</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="Folio" type="SiiDte:FolioType"> | ||
<xs:annotation> | ||
<xs:documentation>Folio del DTE</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="FchEmis" type="xs:date"> | ||
<xs:annotation> | ||
<xs:documentation>Fecha Emision Contable del DTE (AAAA-MM-DD)</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="MntTotal" type="SiiDte:MontoType"> | ||
<xs:annotation> | ||
<xs:documentation>Monto Total del DTE</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="Cedente"> | ||
<xs:annotation> | ||
<xs:documentation>Identificacion del Cedente</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="RUT" type="SiiDte:RUTType"> | ||
<xs:annotation> | ||
<xs:documentation>RUT del Cedente del DTE</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="RazonSocial"> | ||
<xs:annotation> | ||
<xs:documentation>Razon Social o Nombre del Cedente</xs:documentation> | ||
</xs:annotation> | ||
<xs:simpleType> | ||
<xs:restriction base="SiiDte:RznSocLargaType"> | ||
<xs:minLength value="1"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="Direccion"> | ||
<xs:annotation> | ||
<xs:documentation>Direccion del Cedente</xs:documentation> | ||
</xs:annotation> | ||
<xs:simpleType> | ||
<xs:restriction base="SiiDte:DireccType"> | ||
<xs:minLength value="5"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="eMail"> | ||
<xs:annotation> | ||
<xs:documentation>Correo Electronico del Cedente</xs:documentation> | ||
</xs:annotation> | ||
<xs:simpleType> | ||
<xs:restriction base="SiiDte:MailType"> | ||
<xs:minLength value="6"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="RUTAutorizado" maxOccurs="3"> | ||
<xs:annotation> | ||
<xs:documentation>Lista de Personas Autorizadas por el Cedente a Firmar la Transferencia</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="RUT" type="SiiDte:RUTType"> | ||
<xs:annotation> | ||
<xs:documentation>RUT de Persona Autorizada</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="Nombre" type="SiiDte:NombreType"> | ||
<xs:annotation> | ||
<xs:documentation>Nombre de Persona Autorizada</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="DeclaracionJurada" minOccurs="0"> | ||
<xs:annotation> | ||
<xs:documentation>Declaracion Jurada de Disponibilidad de Documentacion No Electronica</xs:documentation> | ||
</xs:annotation> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:string"> | ||
<xs:maxLength value="512"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="Cesionario"> | ||
<xs:annotation> | ||
<xs:documentation>Identificacion del Cesionario</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="RUT"> | ||
<xs:annotation> | ||
<xs:documentation>RUT del Cesionario</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="RazonSocial"> | ||
<xs:annotation> | ||
<xs:documentation>Razon Social o Nombre del Cesionario</xs:documentation> | ||
</xs:annotation> | ||
<xs:simpleType> | ||
<xs:restriction base="SiiDte:RznSocLargaType"> | ||
<xs:minLength value="1"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="Direccion"> | ||
<xs:annotation> | ||
<xs:documentation>Direccion del Cesionario</xs:documentation> | ||
</xs:annotation> | ||
<xs:simpleType> | ||
<xs:restriction base="SiiDte:DireccType"> | ||
<xs:minLength value="5"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="eMail"> | ||
<xs:annotation> | ||
<xs:documentation>Correo Electronico del Cesionario</xs:documentation> | ||
</xs:annotation> | ||
<xs:simpleType> | ||
<xs:restriction base="SiiDte:MailType"> | ||
<xs:minLength value="6"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="MontoCesion" type="SiiDte:MontoType"> | ||
<xs:annotation> | ||
<xs:documentation>Monto del Credito Cedido</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="UltimoVencimiento" type="xs:date"> | ||
<xs:annotation> | ||
<xs:documentation>Fecha de Ultimo Vencimiento</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="OtrasCondiciones" minOccurs="0"> | ||
<xs:annotation> | ||
<xs:documentation>Otras Condiciones de la Cesion</xs:documentation> | ||
</xs:annotation> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:string"> | ||
<xs:maxLength value="512"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:element> | ||
<xs:element name="eMailDeudor" type="SiiDte:MailType" minOccurs="0"> | ||
<xs:annotation> | ||
<xs:documentation>Correo Electronico del Deudor del DTE</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="TmstCesion" type="xs:dateTime"> | ||
<xs:annotation> | ||
<xs:documentation>TimeStamp de la Cesion del DTE</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
</xs:sequence> | ||
<xs:attribute name="ID" type="xs:ID" use="required"/> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element ref="ds:Signature" maxOccurs="3"> | ||
<xs:annotation> | ||
<xs:documentation>Firmas Digitales sobre Cesion</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
</xs:sequence> | ||
<xs:attribute name="version" type="xs:decimal" use="required" fixed="1.0"/> | ||
</xs:complexType> | ||
</xs:schema> |
Oops, something went wrong.