Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into F1_Ajuste
Browse files Browse the repository at this point in the history
Conflicts:
	tests/test_switching.py
  • Loading branch information
tinogis committed Aug 30, 2016
2 parents 6dc2030 + 2d9be92 commit ac53458
Show file tree
Hide file tree
Showing 75 changed files with 12,828 additions and 433 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
source = ./switching
22 changes: 13 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
sudo: false
language: python
python:
- "2.6"
- "2.7"
install:
- "pip install ."
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install unittest2; fi
- "pip install coveralls"
script:
- python setup.py test
notifications:
webhooks:
urls:
- $GITTER_WEBHOOK
on_success: always
on_failure: always
on_start: true
- coverage run setup.py test
after_success:
- coveralls
- coverage report
deploy:
provider: pypi
user: gisce
password:
secure: mxWzYVAFP/JgavnLxT3jvHno6+8ItIDaXJ3IWts+uqxNEVxZ1bcv2NR/sj/CbHiCz+52nRIpcfHCOx4hv4RtS3WGWz+SS/DOLSPgUGFrlpI2wMOWKHQYQMlES6wHqfVx01+HZCIqHED0ArB76QkPItKjPpe9bxtZ8/tiXXrfFkW77sRGInqqHK8A7exT+E5Y+ZgZME3BdJzljyIx1qEQZLWv299j95rvFD2rheo3m/I7r6dAdYTAbjkkCf7IgcfOzHuIVENbYNgrPMEOnPHISj2BwCKHoPHJGG3C9R73njEKV9frJXNv6pCd8Ib5trejoGM/5bcIvToQgsoURYWI8qi/FRTDAkC/TOk2VtnMAGuq70wHK8SfM5SPLm6nR8fJsEOFsa2EYdf5ocyosgquFUgcPSmy1A0NnWYz6j1JChhrhRzXZ6oS9lLaYcw7qBdUdIjA5HMfNaRJd75SzlgUOI2MrApRQgvgV90cA5y8bnQ47Xgn+aomR5TA3dhgVl8XewOI340iJ/MdUYDh0nQm6j0lUD77upI+PHcLajP0htkWWIa2tMo61zWvDkXhahRgCywULAqnxNmtEfv9m0YkUEzV077LdR+G7s9vFoIwwfFH/fsPdAMek8j/QLLY4MC9PEGFXbnQVWTkdwT5PbQUgPC81oIsX9Ov48bL2r/qK2o=
on:
tags: true
repo: gisce/switching
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ Library to manage XML data for electrical sector in Spain
.. image:: https://travis-ci.org/gisce/switching.svg?branch=master
:target: https://travis-ci.org/gisce/switching

.. image:: https://coveralls.io/repos/github/gisce/switching/badge.svg?branch=master
:target: https://coveralls.io/github/gisce/switching?branch=master


Chat with us
------------

Expand Down
2 changes: 1 addition & 1 deletion switching/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""
import os

__version__ = '2.6.23'
__version__ = '2.7.1'

_ROOT = os.path.abspath(os.path.dirname(__file__))

Expand Down
8 changes: 5 additions & 3 deletions switching/data/RechazoReclamacion.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
Version X.X OCSUM 2014.04.03 Reclamaciones, Incidencias o Peticiones
Creación xsd
Version 0.0 CNMC 2015.06.10 Reclamaciones o Peticiones.
Version 0.1 CNMC 2016.01.11 - Revisión R1
-Se incluye la fecha del rechazo (una única fecha independientemente del número de motivos de rechazos) en el nodo "MensajeRechazoReclamacion.
-->
<xs:element name="MensajeRechazoReclamacion">
<xs:complexType>
<xs:sequence>
<xs:element name="CabeceraReclamacion" type="Cabecera"/>
<xs:element name="Rechazos" type="DatosRechazoReclamacion"/>
<xs:element name="CabeceraReclamacion" type="Cabecera"/>
<xs:element name="Fecha" type="xs:date"/>
<xs:element name="Rechazos" type="DatosRechazoReclamacion"/>
</xs:sequence>
<xs:attribute name="AgenteSolicitante" type="Agente" use="required"/>
</xs:complexType>
Expand Down
2 changes: 2 additions & 0 deletions switching/data/TipoMensajeCA3.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<xs:include schemaLocation="TiposComplejos.xsd"/>
<xs:include schemaLocation="TiposSencillos.xsd"/>
<!-- Version 0.0 OCSUM 2011.01.31
Versión 0.2 CNMC 2016.04.01 Se incluye el campo "TipoAutoconsumo" en el nodo "ContratoActivacionPasoMRAMLConCambiosCA3"
-->
<xs:complexType name="ActivacionPasoMRAMLConCambiosCA3">
<xs:sequence>
Expand All @@ -21,6 +22,7 @@
<xs:complexType name="ContratoActivacionPasoMRAMLConCambiosCA3">
<xs:sequence>
<xs:element name="IdContrato" type="IdContrato"/>
<xs:element name="TipoAutoconsumo" type="TipoAutoconsumo" minOccurs="0"/>
<xs:element name="TipoContrato" type="TipoContrato"/>
<xs:element name="CondicionesContractuales" type="CondicionesContractualesC"/>
</xs:sequence>
Expand Down
2 changes: 2 additions & 0 deletions switching/data/TipoMensajeCC1.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<xs:include schemaLocation="TiposSencillos.xsd"/>
<!--
Version 0.0 OCSUM 2011.01.31
Versión 0.2 CNMC 2016.04.01 se incluye un nuevo campo "TipoAutoconsumo" en el nodo "ContratoActivacionCambiodeComercializadoraSinCambiosCC1"
-->
<xs:complexType name="ActivacionCambiodeComercializadoraSinCambiosCC1">
<xs:sequence>
Expand All @@ -22,6 +23,7 @@
<xs:complexType name="ContratoActivacionCambiodeComercializadoraSinCambiosCC1">
<xs:sequence>
<xs:element name="IdContrato" type="IdContrato"/>
<xs:element name="TipoAutoconsumo" type="TipoAutoconsumo" minOccurs="0"/>
<xs:element name="TipoContratoATR" type="TipoContrato"/>
<xs:element name="CondicionesContractuales" type="CondicionesContractualesC"/>
</xs:sequence>
Expand Down
2 changes: 2 additions & 0 deletions switching/data/TipoMensajeCC2.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<xs:include schemaLocation="TiposSencillos.xsd"/>
<!--
Version 0.0 OCSUM 2011.01.31
Version 0.2 CNMC 2016.04.01 se incluye el campo "TipoAutconsomo"
-->
<xs:complexType name="ActivacionCambiodeComercializadoraConCambiosCC2">
<xs:sequence>
Expand All @@ -23,6 +24,7 @@
<xs:complexType name="ContratoActivacionCambiodeComercializadoraConCambiosCC2">
<xs:sequence>
<xs:element name="IdContrato" type="IdContrato"/>
<xs:element name="TipoAutoconsumo" type="TipoAutoconsumo" minOccurs="0"/>
<xs:element name="TipoContratoATR" type="TipoContrato"/>
<xs:element name="CondicionesContractuales" type="CondicionesContractualesC"/>
</xs:sequence>
Expand Down
2 changes: 2 additions & 0 deletions switching/data/TipoMensajeCM1.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<xs:include schemaLocation="TiposComplejos.xsd"/>
<xs:include schemaLocation="TiposSencillos.xsd"/>
<!-- Version 0.0 OCSUM 2011.01.31
Versión 0.2 CNMC 2016.04.01 Se incluye el campo "TipoAutoconsumo" en "ContratoActivacionModificacionDeATRCM"
-->
<xs:complexType name="ActivacionModificacionDeATRCM1">
<xs:sequence>
Expand All @@ -21,6 +22,7 @@
<xs:complexType name="ContratoActivacionModificacionDeATRCM">
<xs:sequence>
<xs:element name="IdContrato" type="IdContrato"/>
<xs:element name="TipoAutoconsumo" type="TipoAutoconsumo" minOccurs="0"/>
<xs:element name="TipoContratoATR" type="TipoContrato"/>
<xs:element name="CondicionesContractuales" type="CondicionesContractualesC"/>
</xs:sequence>
Expand Down
43 changes: 4 additions & 39 deletions switching/data/TipoMensajeR.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@
Creación xsd
version X.X OCSUM 2014.10.16 Se corrige el campo Cliente, FechaLectura, CodigoDH y LecturaAportada para que sean opcionales y el campo TipoReclamante para que sea obligatorio tal y como se define en el excel explicativo.
Version 0.0 CNMC 2015.06.10 Se elimina el campo Proceso y se sustituye el tipo Comentario por un x4000
Version 0.1 CNMC 2016.01.11 - Revisión Proceso R1 Se modifica el carácter de "VariablesDetalleReclamacion" y de "VariableDetalleReclamacion" y "Comentarios" a opcional
-->
<xs:complexType name="SolicitudReclamacion">
<xs:sequence>
<xs:element name="DatosSolicitud" type="DatosPasoSolicitud"/>
<xs:element name="VariablesDetalleReclamacion" type="VariablesDetalleReclamacion"/>
<xs:element name="VariablesDetalleReclamacion" type="VariablesDetalleReclamacion" minOccurs="0"/>
<xs:element name="Cliente" type="ClienteConDireccionYCorreoE" minOccurs="0"/>
<xs:element name="TipoReclamante" type="TipoReclamante"/>
<xs:element name="Reclamante" type="DatosReclamante" minOccurs="0"/>
<xs:element name="Comentarios" type="X4000"/>
<xs:element name="Comentarios" type="X4000" minOccurs="0"/>
<xs:element name="RegistrosDocumento" type="RegistrosDocs" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
Expand All @@ -29,43 +30,7 @@ version X.X OCSUM 2014.10.16 Se corrige el campo Cliente, FechaLectura, CodigoDH
</xs:complexType>
<xs:complexType name="VariablesDetalleReclamacion">
<xs:sequence>
<xs:element name="VariableDetalleReclamacion" type="VariableDetalleReclamacion" maxOccurs="10"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="VariableDetalleReclamacion">
<xs:sequence>
<xs:element name="NumExpedienteAcometida" type="X20" minOccurs="0"/>
<xs:element name="FechaIncidente" type="xs:date" minOccurs="0"/>
<xs:element name="NumFacturaATR" type="X26" minOccurs="0"/>
<xs:element name="TipoConceptoFacturado" type="TipoConceptoFacturado" minOccurs="0"/>
<xs:element name="FechaLectura" type="xs:date" minOccurs="0"/>
<xs:element name="CodigoDH" type="TipoDH" minOccurs="0"/>
<xs:element name="LecturasAportadas" type="LecturasAportadas" minOccurs="0"/>
<xs:element name="CodigoIncidencia" type="TipoIncidencia" minOccurs="0"/>
<xs:element name="CodigoSolicitud" type="CodigoDeSolicitud" minOccurs="0"/>
<xs:element name="ParametroContratacion" type="ParametroContratacion" minOccurs="0"/>
<xs:element name="ConceptoDisconformidad" type="X120" minOccurs="0"/>
<xs:element name="TipoDeAtencionIncorrecta" type="TipoAtencionIncorrecta" minOccurs="0"/>
<xs:element name="IBAN" type="X34" minOccurs="0"/>
<xs:element name="Contacto" type="ContactoConCorreoE" minOccurs="0"/>
<xs:element name="CodigoSolicitudReclamacion" type="CodigoDeSolicitud" minOccurs="0"/>
<xs:element name="FechaDesde" type="xs:date" minOccurs="0"/>
<xs:element name="FechaHasta" type="xs:date" minOccurs="0"/>
<xs:element name="ImporteReclamado" type="DecimalS10V4" minOccurs="0"/>
<xs:element name="UbicacionIncidencia" type="X45" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LecturasAportadas">
<xs:sequence>
<xs:element name="LecturaAportada" maxOccurs="20">
<xs:complexType>
<xs:sequence>
<xs:element name="Integrador" type="MagnitudMedida" minOccurs="1"/>
<xs:element name="CodigoPeriodoDH" type="TipoCodigoPeriodoDH" minOccurs="1"/>
<xs:element name="LecturaPropuesta" type="DecimalS10V2" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="VariableDetalleReclamacion" type="VariableDetalleReclamacion" minOccurs="0" maxOccurs="10"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
58 changes: 51 additions & 7 deletions switching/data/TiposComplejos.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,18 @@ Reclamaciones o Peticiones
Se modifica el comentario de los campos EnvioInformacionReclamacion/CierreReclamacion para pasarlo a un X4000 -paso 04/05 de reclamaciones-

Modificaciones para PVPC: Se incluye el elemento opcional TipodeTelegestion en el tipo complejo "CondicionesContractualesC", hace referencia a los movimientos de Activación (M1, C1, C2, A3).


Version 0.1 CNMC 2015.12.23 - Revisión R1
-En el tipo complejo "VariableAportacionInformacion", se modifica el carácter del campo variable a opcional y tipo variable y se modifica el carácter del campo valor a tipo opcional
-Se modifica el tipo complejo "VariableAportacionInformacion" alterando el nombre de los campos que contiene
-Se incluye la definición del elemento "VariableDetalleReclamacion" del tipo "VariableDetalleReclamacion" (previamente eliminado del TipoMensajeR.xsd
-Se modifica el tipo complejo "DatoRechazoReclamacion" para modificar el campo de comentarios y eliminar la fecha de cada motivo de rechazo.
Version X.X GISCE 2014.08.07
S'afegeix un altre cop CuentaBancaria amb un choice amb IBAN
Version X.X GISCE 2015.05.22
Afegim tag inventat Iberdrola TipodeTelegestión opcional
Version 0.2 CNMC 2016.04.01
Se incluye un nuevo campo "TipoAutoconsumo" en el tipo complejo "ContratoConModificacion" y en el tipo complejo "contrato"

</xs:documentation>
</xs:annotation>
<xs:complexType name="IdContrato">
Expand Down Expand Up @@ -362,6 +368,7 @@ Modificaciones para PVPC: Se incluye el elemento opcional TipodeTelegestion en e
<xs:element name="FechaFinalizacion" type="xs:date"/>
<xs:element name="Duracion" type="Decimal2"/>
</xs:choice>
<xs:element name="TipoAutoconsumo" type="TipoAutoconsumo" minOccurs="0"/>
<xs:element name="TipoContratoATR" type="TipoContrato"/>
<xs:element name="CondicionesContractuales" type="CondicionesContractuales"/>
<xs:element name="ConsumoAnualEstimado" type="Decimal13" minOccurs="0"/>
Expand All @@ -380,6 +387,7 @@ Modificaciones para PVPC: Se incluye el elemento opcional TipodeTelegestion en e
<xs:element name="FechaFinalizacion" type="xs:date"/>
<xs:element name="Duracion" type="Decimal2"/>
</xs:choice>
<xs:element name="TipoAutoconsumo" type="TipoAutoconsumo" minOccurs="0"/>
<xs:element name="TipoContratoATR" type="TipoContrato"/>
<xs:element name="CondicionesContractuales" type="CondicionesContractuales"/>
<xs:element name="ConsumoAnualEstimado" type="Decimal13" minOccurs="0"/>
Expand Down Expand Up @@ -863,8 +871,8 @@ Modificaciones para PVPC: Se incluye el elemento opcional TipodeTelegestion en e
<xs:sequence>
<xs:element name="Secuencial" type="DecimalS9V2"/>
<xs:element name="CodigoMotivo" type="CodigoMotivoRechazo"/>
<xs:element name="Texto" type="X120" minOccurs="0"/>
<xs:element name="Fecha" type="xs:date"/>
<xs:element name="Comentarios" type="X4000" minOccurs="0"/>

</xs:sequence>
</xs:complexType>
<xs:complexType name="EnvioInformacionReclamacion">
Expand All @@ -887,11 +895,47 @@ Modificaciones para PVPC: Se incluye el elemento opcional TipodeTelegestion en e
</xs:sequence>
</xs:complexType>
<xs:complexType name="VariableAportacionInformacion">
<xs:sequence>
<xs:element name="Variable" type="X20"/>
<xs:element name="Valor" type="X45"/>
<xs:sequence>
<xs:element name="TipoInformacion" type="TipoInformacionAdicional"/>
<xs:element name="DescPeticionInformacion" type="X255" minOccurs="0"/>
<xs:element name="Variable" type="Variable" minOccurs="0"/>
<xs:element name="Valor" type="X45" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="VariableDetalleReclamacion">
<xs:sequence>
<xs:element name="NumExpedienteAcometida" type="X20" minOccurs="0"/>
<xs:element name="FechaIncidente" type="xs:date" minOccurs="0"/>
<xs:element name="NumFacturaATR" type="X26" minOccurs="0"/>
<xs:element name="TipoConceptoFacturado" type="TipoConceptoFacturado" minOccurs="0"/>
<xs:element name="FechaLectura" type="xs:date" minOccurs="0"/>
<xs:element name="CodigoDH" type="TipoDH" minOccurs="0"/>
<xs:element name="LecturasAportadas" type="LecturasAportadas" minOccurs="0"/>
<xs:element name="CodigoIncidencia" type="TipoIncidencia" minOccurs="0"/>
<xs:element name="CodigoSolicitud" type="CodigoDeSolicitud" minOccurs="0"/>
<xs:element name="ParametroContratacion" type="ParametroContratacion" minOccurs="0"/>
<xs:element name="ConceptoDisconformidad" type="X120" minOccurs="0"/>
<xs:element name="TipoDeAtencionIncorrecta" type="TipoAtencionIncorrecta" minOccurs="0"/>
<xs:element name="IBAN" type="X34" minOccurs="0"/>
<xs:element name="Contacto" type="ContactoConCorreoE" minOccurs="0"/>
<xs:element name="CodigoSolicitudReclamacion" type="CodigoDeSolicitud" minOccurs="0"/>
<xs:element name="FechaDesde" type="xs:date" minOccurs="0"/>
<xs:element name="FechaHasta" type="xs:date" minOccurs="0"/>
<xs:element name="ImporteReclamado" type="DecimalS10V4" minOccurs="0"/>
<xs:element name="UbicacionIncidencia" type="X45" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LecturasAportadas">
<xs:sequence>
<xs:element name="LecturaAportada" maxOccurs="20">
<xs:complexType>
<xs:sequence>
<xs:element name="Integrador" type="MagnitudMedida" minOccurs="1"/>
<xs:element name="CodigoPeriodoDH" type="TipoCodigoPeriodoDH" minOccurs="1"/>
<xs:element name="LecturaPropuesta" type="DecimalS10V2" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="CierreReclamacion">
Expand Down
Loading

0 comments on commit ac53458

Please sign in to comment.