-
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.
code/rtc: add XML schemas of "cesión"
Official XML schemas of AEC (Archivo Electrónico de Cesión) Includes a README file by @glarrain All the files have been preserved as they were; schemas are in their original text encoding (ISO-8859-1) and have not been modified in the slightest way. Sources (2021-03-25): https://www.sii.cl/factura_electronica/schema_cesion_201912.zip
- Loading branch information
1 parent
d92d7e4
commit c89dec5
Showing
12 changed files
with
6,978 additions
and
0 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
Binary file not shown.
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,25 @@ | ||
# SII "Registro de Transferencia de Crédito (RTC)" / Resource | ||
|
||
This directory contains the file `schema_cesion_201912.zip`, plus this text file. | ||
|
||
|
||
## Contents | ||
|
||
|
||
### Archivo Electrónico de Cesión | ||
|
||
"Schema XML de Archivo Electrónico de Cesión", | ||
[2019-12-12](2019-12-12-schema_cesion.zip) | ||
|
||
- Fuente: [SII](https://www.sii.cl) | ||
/ [Servicios online](https://www.sii.cl/servicios_online/index.html) | ||
/ [Factura electrónica](https://www.sii.cl/servicios_online/1039-.html) | ||
/ [Sistema de facturación de mercado](https://www.sii.cl/servicios_online/1039-1184.html) | ||
/ [Registro electrónico de cesión de créditos](https://palena.sii.cl/rtc/RTC/RTCMenu.html) | ||
/ [Formatos de archivos electrónicos](https://www.sii.cl/factura_electronica/form_ele.htm) | ||
as | ||
"[Formato XML del Archivo Electrónico de Cesión](https://www.sii.cl/factura_electronica/schema_cesion_201912.zip)" | ||
- Nombre original: `schema_cesion_201912.zip` | ||
- MD5: `33639f61ef3aa0ec785557b1c8778cea` | ||
- SHA256: `7e719c20e75474f41f00fcd26cb9521a422f78ed3747c88c3f31d5d18ac40706` | ||
- Fecha y hora descarga: 2021-03-25 21:50 -03:00 |
91 changes: 91 additions & 0 deletions
91
src/code/rtc/2019-12-12-schema_cesion/schema_cesion/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
src/code/rtc/2019-12-12-schema_cesion/schema_cesion/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.