MX-Banxico 1.0.2
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.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.rspec +3 -0
- data/.travis.yml +12 -0
- data/.yardopts +9 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +36 -0
- data/Guardfile +26 -0
- data/LICENSE.txt +22 -0
- data/MX-Banxico.gemspec +29 -0
- data/README.md +140 -0
- data/REFERENCIAS.md +6 -0
- data/Rakefile +26 -0
- data/lib/MX/Banxico.rb +12 -0
- data/lib/MX/Banxico/historico.rb +4 -0
- data/lib/MX/Banxico/historico/tipo_de_cambio.rb +296 -0
- data/lib/MX/Banxico/series.rb +346 -0
- data/lib/MX/Banxico/tipo_de_cambio.rb +159 -0
- data/lib/MX/Banxico/version.rb +14 -0
- data/lib/MX/Banxico/web_services.rb +4 -0
- data/lib/MX/Banxico/web_services/tipo_de_cambio.rb +83 -0
- data/lib/MX/Banxico/web_services/web_service.rb +99 -0
- data/spec/MX/Banxico/historico/tipo_de_cambio_spec.rb +525 -0
- data/spec/MX/Banxico/series_spec.rb +475 -0
- data/spec/MX/Banxico/tipo_de_cambio_spec.rb +688 -0
- data/spec/MX/Banxico/web_services/tipo_de_cambio_spec.rb +152 -0
- data/spec/MX/Banxico/web_services/web_service_spec.rb +108 -0
- data/spec/fixtures/MX/Banxico/historico/respuestas_correctas/tipo_de_cambio.xml +2228 -0
- data/spec/fixtures/MX/Banxico/historico/respuestas_incorrectas/mal_formado.xml +1 -0
- data/spec/fixtures/MX/Banxico/historico/respuestas_incorrectas/serie_sin_valores.xml +28 -0
- data/spec/fixtures/MX/Banxico/historico/respuestas_incorrectas/sin_series.xml +26 -0
- data/spec/fixtures/MX/Banxico/historico/tipo_de_cambio/dolar_fix/respuesta_correcta.xml +393 -0
- data/spec/fixtures/MX/Banxico/historico/tipo_de_cambio/dolar_fix/serie_sin_valores.xml +28 -0
- data/spec/fixtures/MX/Banxico/historico/tipo_de_cambio/dolar_fix/sin_serie.xml +26 -0
- data/spec/fixtures/MX/Banxico/web_services/respuestas_correctas/reservas_internacionales_banxico.xml +41 -0
- data/spec/fixtures/MX/Banxico/web_services/respuestas_correctas/tasas_de_interes_banxico.xml +50 -0
- data/spec/fixtures/MX/Banxico/web_services/respuestas_correctas/tipos_de_cambio_banxico.xml +56 -0
- data/spec/fixtures/MX/Banxico/web_services/respuestas_correctas/udis_banxico.xml +41 -0
- data/spec/fixtures/MX/Banxico/web_services/tipo_de_cambio/dolar_fix/error_fecha_tipo_de_cambio.xml +41 -0
- data/spec/fixtures/MX/Banxico/web_services/tipo_de_cambio/dolar_fix/error_nodo_obs.xml +40 -0
- data/spec/fixtures/MX/Banxico/web_services/tipo_de_cambio/dolar_fix/error_valor_tipo_de_cambio.xml +41 -0
- data/spec/fixtures/MX/Banxico/web_services/tipo_de_cambio/dolar_fix/respuesta_correcta.xml +41 -0
- data/spec/spec_helper.rb +31 -0
- metadata +152 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<CompactData
|
3
|
+
xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message"
|
4
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
5
|
+
xsi:schemaLocation="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact BANXICO_DGIE_SIE_Compact.xsd http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact SDMXCompactData.xsd"
|
6
|
+
xmlns:bm="http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact"
|
7
|
+
xmlns:compact="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact">
|
8
|
+
<Header>
|
9
|
+
<ID>DATOS_HIST_BANXICO</ID>
|
10
|
+
<Test>false</Test>
|
11
|
+
<Truncated>false</Truncated>
|
12
|
+
<Name xml:lang="sp">Datos históricos de Banco de México</Name>
|
13
|
+
<Prepared>2016-05-12 05:34:19</Prepared>
|
14
|
+
<Sender id="BANXICO">
|
15
|
+
<Name xml:lang="sp">Banco de México</Name>
|
16
|
+
<Contact>
|
17
|
+
<Name xml:lang="sp">Dirección General de Investigación Económica</Name>
|
18
|
+
</Contact>
|
19
|
+
</Sender>
|
20
|
+
<DataSetAction>Update</DataSetAction>
|
21
|
+
<Extracted>2016-05-12 05:34:19</Extracted>
|
22
|
+
</Header>
|
23
|
+
<bm:DataSet>
|
24
|
+
<bm:SiblingGroup BANXICO_FREQ="Dia" TIME_FORMAT="P1D"/>
|
25
|
+
<bm:Series TITULO="Tipo de cambio Pesos por dólar E.U.A. Tipo de cambio para solventar obligaciones denominadas en moneda extranjera Fecha de determinación (FIX)" IDSERIE="SF43718" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="TipoCambio" BANXICO_UNIT_TYPE="PesoxDoll">
|
26
|
+
</bm:Series>
|
27
|
+
</bm:DataSet>
|
28
|
+
</CompactData>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<CompactData
|
3
|
+
xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message"
|
4
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
5
|
+
xsi:schemaLocation="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact BANXICO_DGIE_SIE_Compact.xsd http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact SDMXCompactData.xsd"
|
6
|
+
xmlns:bm="http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact"
|
7
|
+
xmlns:compact="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact">
|
8
|
+
<Header>
|
9
|
+
<ID>DATOS_HIST_BANXICO</ID>
|
10
|
+
<Test>false</Test>
|
11
|
+
<Truncated>false</Truncated>
|
12
|
+
<Name xml:lang="sp">Datos históricos de Banco de México</Name>
|
13
|
+
<Prepared>2016-05-12 05:34:19</Prepared>
|
14
|
+
<Sender id="BANXICO">
|
15
|
+
<Name xml:lang="sp">Banco de México</Name>
|
16
|
+
<Contact>
|
17
|
+
<Name xml:lang="sp">Dirección General de Investigación Económica</Name>
|
18
|
+
</Contact>
|
19
|
+
</Sender>
|
20
|
+
<DataSetAction>Update</DataSetAction>
|
21
|
+
<Extracted>2016-05-12 05:34:19</Extracted>
|
22
|
+
</Header>
|
23
|
+
<bm:DataSet>
|
24
|
+
<bm:SiblingGroup BANXICO_FREQ="Dia" TIME_FORMAT="P1D"/>
|
25
|
+
</bm:DataSet>
|
26
|
+
</CompactData>
|
data/spec/fixtures/MX/Banxico/web_services/respuestas_correctas/reservas_internacionales_banxico.xml
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<soapenv:Header>
|
4
|
+
<X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace xmlns:X-OPNET-Transaction-Trace="http://opnet.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xsi:type="soapenc:string">pid=3864,requestid=a97c49dd-6972-4f58-9e63-459aaddb69c6</X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace>
|
5
|
+
</soapenv:Header>
|
6
|
+
<soapenv:Body>
|
7
|
+
<ns1:reservasInternacionalesBanxicoResponse xmlns:ns1="http://ws.dgie.banxico.org.mx" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
8
|
+
<result xsi:type="xsd:string"><?xml version="1.0" encoding="ISO-8859-1"?>
|
9
|
+
<CompactData xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message"
|
10
|
+
xmlns:bm="http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact"
|
11
|
+
xmlns:compact="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact"
|
12
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message SDMXMessage.xsd
|
13
|
+
http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact BANXICO_DGIE_SIE_Compact.xsd
|
14
|
+
http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact SDMXCompactData.xsd" >
|
15
|
+
<Header>
|
16
|
+
<ID>RESERVAS</ID>
|
17
|
+
<Test>false</Test>
|
18
|
+
<Truncated>false</Truncated>
|
19
|
+
<Name xml:lang="sp">Reservas internacionales</Name>
|
20
|
+
<Prepared>2016-05-11 12:23:25.543</Prepared>
|
21
|
+
<Sender id="BANXICO">
|
22
|
+
<Name xml:lang="sp">Banco de México</Name>
|
23
|
+
<Contact>
|
24
|
+
<Name xml:lang="sp">Subgerencia de Desarrollo de Sistemas</Name>
|
25
|
+
<Telephone>(01 55)52372678</Telephone>
|
26
|
+
</Contact>
|
27
|
+
</Sender>
|
28
|
+
<DataSetAction>Update</DataSetAction>
|
29
|
+
<Extracted>2016-05-11 12:23:25.543</Extracted>
|
30
|
+
</Header>
|
31
|
+
<bm:DataSet>
|
32
|
+
<bm:SiblingGroup BANXICO_FREQ="Dia" TIME_FORMAT="P1D"/>
|
33
|
+
<bm:Series TITULO="Reserva Internacional" IDSERIE="SF43707" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="Saldos" BANXICO_UNIT_TYPE="MllD">
|
34
|
+
<bm:Obs TIME_PERIOD="2016-05-06" OBS_VALUE="177731.3"/>
|
35
|
+
</bm:Series>
|
36
|
+
</bm:DataSet>
|
37
|
+
</CompactData>
|
38
|
+
</result>
|
39
|
+
</ns1:reservasInternacionalesBanxicoResponse>
|
40
|
+
</soapenv:Body>
|
41
|
+
</soapenv:Envelope>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<soapenv:Header>
|
4
|
+
<X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace xmlns:X-OPNET-Transaction-Trace="http://opnet.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xsi:type="soapenc:string">pid=3864,requestid=e452fcfb-b5d3-4e2b-adf0-d24506ffbb4b</X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace>
|
5
|
+
</soapenv:Header>
|
6
|
+
<soapenv:Body>
|
7
|
+
<ns1:tasasDeInteresBanxicoResponse xmlns:ns1="http://ws.dgie.banxico.org.mx" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
8
|
+
<result xsi:type="xsd:string"><?xml version="1.0" encoding="ISO-8859-1"?>
|
9
|
+
<CompactData xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message"
|
10
|
+
xmlns:bm="http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact"
|
11
|
+
xmlns:compact="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact"
|
12
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message SDMXMessage.xsd
|
13
|
+
http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact BANXICO_DGIE_SIE_Compact.xsd
|
14
|
+
http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact SDMXCompactData.xsd" >
|
15
|
+
<Header>
|
16
|
+
<ID>TASAS</ID>
|
17
|
+
<Test>false</Test>
|
18
|
+
<Truncated>false</Truncated>
|
19
|
+
<Name xml:lang="sp">Tasas de interés</Name>
|
20
|
+
<Prepared>2016-05-11 12:25:07.742</Prepared>
|
21
|
+
<Sender id="BANXICO">
|
22
|
+
<Name xml:lang="sp">Banco de México</Name>
|
23
|
+
<Contact>
|
24
|
+
<Name xml:lang="sp">Subgerencia de Desarrollo de Sistemas</Name>
|
25
|
+
<Telephone>(01 55)52372678</Telephone>
|
26
|
+
</Contact>
|
27
|
+
</Sender>
|
28
|
+
<DataSetAction>Update</DataSetAction>
|
29
|
+
<Extracted>2016-05-11 12:25:07.742</Extracted>
|
30
|
+
</Header>
|
31
|
+
<bm:DataSet>
|
32
|
+
<bm:SiblingGroup BANXICO_FREQ="Dia" TIME_FORMAT="P1D"/>
|
33
|
+
<bm:Series TITULO="Tasa objetivo" IDSERIE="SF61745" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="Por" BANXICO_UNIT_TYPE="SinUni">
|
34
|
+
<bm:Obs TIME_PERIOD="2016-05-10" OBS_VALUE="3.75"/>
|
35
|
+
</bm:Series>
|
36
|
+
<bm:Series TITULO="Tasas de Interés Interbancarias TIIE a 28 días - Fecha determinación" IDSERIE="SF60648" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="SinCifra" BANXICO_UNIT_TYPE="SinUni">
|
37
|
+
<bm:Obs TIME_PERIOD="2016-05-10" OBS_VALUE="4.0599"/>
|
38
|
+
</bm:Series>
|
39
|
+
<bm:Series TITULO="Valores gubernamentales, Resultados de la subasta semanal Cetes a 28 días - Tasa de rendimiento - Fecha subasta" IDSERIE="SF60633" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="SinCifra" BANXICO_UNIT_TYPE="SinUni">
|
40
|
+
<bm:Obs TIME_PERIOD="2016-05-10" OBS_VALUE="3.77"/>
|
41
|
+
</bm:Series>
|
42
|
+
<bm:Series TITULO="Tasas de Interés Interbancarias TIIE a 91 días - Fecha determinación" IDSERIE="SF60649" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="SinCifra" BANXICO_UNIT_TYPE="SinUni">
|
43
|
+
<bm:Obs TIME_PERIOD="2016-05-10" OBS_VALUE="4.1141"/>
|
44
|
+
</bm:Series>
|
45
|
+
</bm:DataSet>
|
46
|
+
</CompactData>
|
47
|
+
</result>
|
48
|
+
</ns1:tasasDeInteresBanxicoResponse>
|
49
|
+
</soapenv:Body>
|
50
|
+
</soapenv:Envelope>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<soapenv:Header>
|
4
|
+
<X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace xmlns:X-OPNET-Transaction-Trace="http://opnet.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xsi:type="soapenc:string">pid=3864,requestid=cef30cf5-bb76-4c85-8c5a-62a81a751632</X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace>
|
5
|
+
</soapenv:Header>
|
6
|
+
<soapenv:Body>
|
7
|
+
<ns1:tiposDeCambioBanxicoResponse xmlns:ns1="http://ws.dgie.banxico.org.mx" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
8
|
+
<result xsi:type="xsd:string"><?xml version="1.0" encoding="ISO-8859-1"?>
|
9
|
+
<CompactData xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message"
|
10
|
+
xmlns:bm="http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact"
|
11
|
+
xmlns:compact="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact"
|
12
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message SDMXMessage.xsd
|
13
|
+
http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact BANXICO_DGIE_SIE_Compact.xsd
|
14
|
+
http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact SDMXCompactData.xsd" >
|
15
|
+
<Header>
|
16
|
+
<ID>TIPOSDECAMBIO</ID>
|
17
|
+
<Test>false</Test>
|
18
|
+
<Truncated>false</Truncated>
|
19
|
+
<Name xml:lang="sp">Tipos de Cambio</Name>
|
20
|
+
<Prepared>2016-05-11 11:17:01.199</Prepared>
|
21
|
+
<Sender id="BANXICO">
|
22
|
+
<Name xml:lang="sp">Banco de México</Name>
|
23
|
+
<Contact>
|
24
|
+
<Name xml:lang="sp">Subgerencia de Desarrollo de Sistemas</Name>
|
25
|
+
<Telephone>(01 55)52372678</Telephone>
|
26
|
+
</Contact>
|
27
|
+
</Sender>
|
28
|
+
<DataSetAction>Update</DataSetAction>
|
29
|
+
<Extracted>2016-05-11 11:17:01.199</Extracted>
|
30
|
+
</Header>
|
31
|
+
<bm:DataSet>
|
32
|
+
<bm:SiblingGroup BANXICO_FREQ="Dia" TIME_FORMAT="P1D"/>
|
33
|
+
<bm:Series TITULO="Tipo de cambio pesos por dólar E.U.A. Tipo de cambio para solventar obligaciones denominadas en moneda extranjera Fecha de liquidación" IDSERIE="SF60653" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="TipoCambio" BANXICO_UNIT_TYPE="PesoxDoll">
|
34
|
+
<bm:Obs TIME_PERIOD="2016-05-11" OBS_VALUE="18.1033"/>
|
35
|
+
</bm:Series>
|
36
|
+
<bm:Series TITULO="Tipo de cambio Pesos por dólar E.U.A. Tipo de cambio para solventar obligaciones denominadas en moneda extranjera Fecha de determinación (FIX)" IDSERIE="SF43718" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="TipoCambio" BANXICO_UNIT_TYPE="PesoxDoll">
|
37
|
+
<bm:Obs TIME_PERIOD="2016-05-10" OBS_VALUE="18.0205"/>
|
38
|
+
</bm:Series>
|
39
|
+
<bm:Series TITULO="Cotización de las divisas que conforman la canasta del DEG Respecto al peso mexicano Euro" IDSERIE="SF46410" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="TipoCambio" BANXICO_UNIT_TYPE="Peso">
|
40
|
+
<bm:Obs TIME_PERIOD="2016-05-10" OBS_VALUE="20.476694"/>
|
41
|
+
</bm:Series>
|
42
|
+
<bm:Series TITULO="Cotización de la divisa Respecto al peso mexicano Dólar Canadiense" IDSERIE="SF60632" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="TipoCambio" BANXICO_UNIT_TYPE="Peso">
|
43
|
+
<bm:Obs TIME_PERIOD="2016-05-10" OBS_VALUE="13.9024"/>
|
44
|
+
</bm:Series>
|
45
|
+
<bm:Series TITULO="Cotización de las divisas que conforman la canasta del DEG Respecto al peso mexicano Yen japonés" IDSERIE="SF46406" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="TipoCambio" BANXICO_UNIT_TYPE="Peso">
|
46
|
+
<bm:Obs TIME_PERIOD="2016-05-10" OBS_VALUE="0.165068"/>
|
47
|
+
</bm:Series>
|
48
|
+
<bm:Series TITULO="Cotización de las divisas que conforman la canasta del DEG Respecto al peso mexicano Libra esterlina" IDSERIE="SF46407" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="TipoCambio" BANXICO_UNIT_TYPE="Peso">
|
49
|
+
<bm:Obs TIME_PERIOD="2016-05-10" OBS_VALUE="25.990967"/>
|
50
|
+
</bm:Series>
|
51
|
+
</bm:DataSet>
|
52
|
+
</CompactData>
|
53
|
+
</result>
|
54
|
+
</ns1:tiposDeCambioBanxicoResponse>
|
55
|
+
</soapenv:Body>
|
56
|
+
</soapenv:Envelope>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<soapenv:Header>
|
4
|
+
<X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace xmlns:X-OPNET-Transaction-Trace="http://opnet.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xsi:type="soapenc:string">pid=3864,requestid=b2d764bb-696f-4038-85b7-e963305d0852</X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace>
|
5
|
+
</soapenv:Header>
|
6
|
+
<soapenv:Body>
|
7
|
+
<ns1:udisBanxicoResponse xmlns:ns1="http://ws.dgie.banxico.org.mx" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
8
|
+
<result xsi:type="xsd:string"><?xml version="1.0" encoding="ISO-8859-1"?>
|
9
|
+
<CompactData xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message"
|
10
|
+
xmlns:bm="http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact"
|
11
|
+
xmlns:compact="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact"
|
12
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message SDMXMessage.xsd
|
13
|
+
http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact BANXICO_DGIE_SIE_Compact.xsd
|
14
|
+
http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact SDMXCompactData.xsd" >
|
15
|
+
<Header>
|
16
|
+
<ID>UDIS</ID>
|
17
|
+
<Test>false</Test>
|
18
|
+
<Truncated>false</Truncated>
|
19
|
+
<Name xml:lang="sp">UDIS</Name>
|
20
|
+
<Prepared>2016-05-11 12:21:48.385</Prepared>
|
21
|
+
<Sender id="BANXICO">
|
22
|
+
<Name xml:lang="sp">Banco de México</Name>
|
23
|
+
<Contact>
|
24
|
+
<Name xml:lang="sp">Subgerencia de Desarrollo de Sistemas</Name>
|
25
|
+
<Telephone>(01 55)52372678</Telephone>
|
26
|
+
</Contact>
|
27
|
+
</Sender>
|
28
|
+
<DataSetAction>Update</DataSetAction>
|
29
|
+
<Extracted>2016-05-11 12:21:48.385</Extracted>
|
30
|
+
</Header>
|
31
|
+
<bm:DataSet>
|
32
|
+
<bm:SiblingGroup BANXICO_FREQ="Dia" TIME_FORMAT="P1D"/>
|
33
|
+
<bm:Series TITULO="Valor de UDIS" IDSERIE="SP68257" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="TipoCambio" BANXICO_UNIT_TYPE="Udi">
|
34
|
+
<bm:Obs TIME_PERIOD="2016-05-11" OBS_VALUE="5.436735"/>
|
35
|
+
</bm:Series>
|
36
|
+
</bm:DataSet>
|
37
|
+
</CompactData>
|
38
|
+
</result>
|
39
|
+
</ns1:udisBanxicoResponse>
|
40
|
+
</soapenv:Body>
|
41
|
+
</soapenv:Envelope>
|
data/spec/fixtures/MX/Banxico/web_services/tipo_de_cambio/dolar_fix/error_fecha_tipo_de_cambio.xml
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<soapenv:Header>
|
4
|
+
<X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace xmlns:X-OPNET-Transaction-Trace="http://opnet.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xsi:type="soapenc:string">pid=3864,requestid=cef30cf5-bb76-4c85-8c5a-62a81a751632</X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace>
|
5
|
+
</soapenv:Header>
|
6
|
+
<soapenv:Body>
|
7
|
+
<ns1:tiposDeCambioBanxicoResponse xmlns:ns1="http://ws.dgie.banxico.org.mx" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
8
|
+
<result xsi:type="xsd:string"><?xml version="1.0" encoding="ISO-8859-1"?>
|
9
|
+
<CompactData xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message"
|
10
|
+
xmlns:bm="http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact"
|
11
|
+
xmlns:compact="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact"
|
12
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message SDMXMessage.xsd
|
13
|
+
http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact BANXICO_DGIE_SIE_Compact.xsd
|
14
|
+
http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact SDMXCompactData.xsd" >
|
15
|
+
<Header>
|
16
|
+
<ID>TIPOSDECAMBIO</ID>
|
17
|
+
<Test>false</Test>
|
18
|
+
<Truncated>false</Truncated>
|
19
|
+
<Name xml:lang="sp">Tipos de Cambio</Name>
|
20
|
+
<Prepared>2016-05-11 11:17:01.199</Prepared>
|
21
|
+
<Sender id="BANXICO">
|
22
|
+
<Name xml:lang="sp">Banco de México</Name>
|
23
|
+
<Contact>
|
24
|
+
<Name xml:lang="sp">Subgerencia de Desarrollo de Sistemas</Name>
|
25
|
+
<Telephone>(01 55)52372678</Telephone>
|
26
|
+
</Contact>
|
27
|
+
</Sender>
|
28
|
+
<DataSetAction>Update</DataSetAction>
|
29
|
+
<Extracted>2016-05-11 11:17:01.199</Extracted>
|
30
|
+
</Header>
|
31
|
+
<bm:DataSet>
|
32
|
+
<bm:SiblingGroup BANXICO_FREQ="Dia" TIME_FORMAT="P1D"/>
|
33
|
+
<bm:Series TITULO="Tipo de cambio Pesos por dólar E.U.A. Tipo de cambio para solventar obligaciones denominadas en moneda extranjera Fecha de determinación (FIX)" IDSERIE="SF43718" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="TipoCambio" BANXICO_UNIT_TYPE="PesoxDoll">
|
34
|
+
<bm:Obs TIME_PERIOD="Ataca maraca!" OBS_VALUE="18.0205"/>
|
35
|
+
</bm:Series>
|
36
|
+
</bm:DataSet>
|
37
|
+
</CompactData>
|
38
|
+
</result>
|
39
|
+
</ns1:tiposDeCambioBanxicoResponse>
|
40
|
+
</soapenv:Body>
|
41
|
+
</soapenv:Envelope>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<soapenv:Header>
|
4
|
+
<X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace xmlns:X-OPNET-Transaction-Trace="http://opnet.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xsi:type="soapenc:string">pid=3864,requestid=cef30cf5-bb76-4c85-8c5a-62a81a751632</X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace>
|
5
|
+
</soapenv:Header>
|
6
|
+
<soapenv:Body>
|
7
|
+
<ns1:tiposDeCambioBanxicoResponse xmlns:ns1="http://ws.dgie.banxico.org.mx" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
8
|
+
<result xsi:type="xsd:string"><?xml version="1.0" encoding="ISO-8859-1"?>
|
9
|
+
<CompactData xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message"
|
10
|
+
xmlns:bm="http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact"
|
11
|
+
xmlns:compact="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact"
|
12
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message SDMXMessage.xsd
|
13
|
+
http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact BANXICO_DGIE_SIE_Compact.xsd
|
14
|
+
http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact SDMXCompactData.xsd" >
|
15
|
+
<Header>
|
16
|
+
<ID>TIPOSDECAMBIO</ID>
|
17
|
+
<Test>false</Test>
|
18
|
+
<Truncated>false</Truncated>
|
19
|
+
<Name xml:lang="sp">Tipos de Cambio</Name>
|
20
|
+
<Prepared>2016-05-11 11:17:01.199</Prepared>
|
21
|
+
<Sender id="BANXICO">
|
22
|
+
<Name xml:lang="sp">Banco de México</Name>
|
23
|
+
<Contact>
|
24
|
+
<Name xml:lang="sp">Subgerencia de Desarrollo de Sistemas</Name>
|
25
|
+
<Telephone>(01 55)52372678</Telephone>
|
26
|
+
</Contact>
|
27
|
+
</Sender>
|
28
|
+
<DataSetAction>Update</DataSetAction>
|
29
|
+
<Extracted>2016-05-11 11:17:01.199</Extracted>
|
30
|
+
</Header>
|
31
|
+
<bm:DataSet>
|
32
|
+
<bm:SiblingGroup BANXICO_FREQ="Dia" TIME_FORMAT="P1D"/>
|
33
|
+
<bm:Series TITULO="Tipo de cambio Pesos por dólar E.U.A. Tipo de cambio para solventar obligaciones denominadas en moneda extranjera Fecha de determinación (FIX)" IDSERIE="SF43718" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="TipoCambio" BANXICO_UNIT_TYPE="PesoxDoll">
|
34
|
+
</bm:Series>
|
35
|
+
</bm:DataSet>
|
36
|
+
</CompactData>
|
37
|
+
</result>
|
38
|
+
</ns1:tiposDeCambioBanxicoResponse>
|
39
|
+
</soapenv:Body>
|
40
|
+
</soapenv:Envelope>
|
data/spec/fixtures/MX/Banxico/web_services/tipo_de_cambio/dolar_fix/error_valor_tipo_de_cambio.xml
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<soapenv:Header>
|
4
|
+
<X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace xmlns:X-OPNET-Transaction-Trace="http://opnet.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xsi:type="soapenc:string">pid=3864,requestid=cef30cf5-bb76-4c85-8c5a-62a81a751632</X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace>
|
5
|
+
</soapenv:Header>
|
6
|
+
<soapenv:Body>
|
7
|
+
<ns1:tiposDeCambioBanxicoResponse xmlns:ns1="http://ws.dgie.banxico.org.mx" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
8
|
+
<result xsi:type="xsd:string"><?xml version="1.0" encoding="ISO-8859-1"?>
|
9
|
+
<CompactData xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message"
|
10
|
+
xmlns:bm="http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact"
|
11
|
+
xmlns:compact="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact"
|
12
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message SDMXMessage.xsd
|
13
|
+
http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact BANXICO_DGIE_SIE_Compact.xsd
|
14
|
+
http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact SDMXCompactData.xsd" >
|
15
|
+
<Header>
|
16
|
+
<ID>TIPOSDECAMBIO</ID>
|
17
|
+
<Test>false</Test>
|
18
|
+
<Truncated>false</Truncated>
|
19
|
+
<Name xml:lang="sp">Tipos de Cambio</Name>
|
20
|
+
<Prepared>2016-05-11 11:17:01.199</Prepared>
|
21
|
+
<Sender id="BANXICO">
|
22
|
+
<Name xml:lang="sp">Banco de México</Name>
|
23
|
+
<Contact>
|
24
|
+
<Name xml:lang="sp">Subgerencia de Desarrollo de Sistemas</Name>
|
25
|
+
<Telephone>(01 55)52372678</Telephone>
|
26
|
+
</Contact>
|
27
|
+
</Sender>
|
28
|
+
<DataSetAction>Update</DataSetAction>
|
29
|
+
<Extracted>2016-05-11 11:17:01.199</Extracted>
|
30
|
+
</Header>
|
31
|
+
<bm:DataSet>
|
32
|
+
<bm:SiblingGroup BANXICO_FREQ="Dia" TIME_FORMAT="P1D"/>
|
33
|
+
<bm:Series TITULO="Tipo de cambio Pesos por dólar E.U.A. Tipo de cambio para solventar obligaciones denominadas en moneda extranjera Fecha de determinación (FIX)" IDSERIE="SF43718" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="TipoCambio" BANXICO_UNIT_TYPE="PesoxDoll">
|
34
|
+
<bm:Obs TIME_PERIOD="2016-05-10" OBS_VALUE="No hay taco!"/>
|
35
|
+
</bm:Series>
|
36
|
+
</bm:DataSet>
|
37
|
+
</CompactData>
|
38
|
+
</result>
|
39
|
+
</ns1:tiposDeCambioBanxicoResponse>
|
40
|
+
</soapenv:Body>
|
41
|
+
</soapenv:Envelope>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<soapenv:Header>
|
4
|
+
<X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace xmlns:X-OPNET-Transaction-Trace="http://opnet.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xsi:type="soapenc:string">pid=3864,requestid=cef30cf5-bb76-4c85-8c5a-62a81a751632</X-OPNET-Transaction-Trace:X-OPNET-Transaction-Trace>
|
5
|
+
</soapenv:Header>
|
6
|
+
<soapenv:Body>
|
7
|
+
<ns1:tiposDeCambioBanxicoResponse xmlns:ns1="http://ws.dgie.banxico.org.mx" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
|
8
|
+
<result xsi:type="xsd:string"><?xml version="1.0" encoding="ISO-8859-1"?>
|
9
|
+
<CompactData xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message"
|
10
|
+
xmlns:bm="http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact"
|
11
|
+
xmlns:compact="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact"
|
12
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message SDMXMessage.xsd
|
13
|
+
http://www.banxico.org.mx/structure/key_families/dgie/sie/series/compact BANXICO_DGIE_SIE_Compact.xsd
|
14
|
+
http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact SDMXCompactData.xsd" >
|
15
|
+
<Header>
|
16
|
+
<ID>TIPOSDECAMBIO</ID>
|
17
|
+
<Test>false</Test>
|
18
|
+
<Truncated>false</Truncated>
|
19
|
+
<Name xml:lang="sp">Tipos de Cambio</Name>
|
20
|
+
<Prepared>2016-05-11 11:17:01.199</Prepared>
|
21
|
+
<Sender id="BANXICO">
|
22
|
+
<Name xml:lang="sp">Banco de México</Name>
|
23
|
+
<Contact>
|
24
|
+
<Name xml:lang="sp">Subgerencia de Desarrollo de Sistemas</Name>
|
25
|
+
<Telephone>(01 55)52372678</Telephone>
|
26
|
+
</Contact>
|
27
|
+
</Sender>
|
28
|
+
<DataSetAction>Update</DataSetAction>
|
29
|
+
<Extracted>2016-05-11 11:17:01.199</Extracted>
|
30
|
+
</Header>
|
31
|
+
<bm:DataSet>
|
32
|
+
<bm:SiblingGroup BANXICO_FREQ="Dia" TIME_FORMAT="P1D"/>
|
33
|
+
<bm:Series TITULO="Tipo de cambio Pesos por dólar E.U.A. Tipo de cambio para solventar obligaciones denominadas en moneda extranjera Fecha de determinación (FIX)" IDSERIE="SF43718" BANXICO_FREQ="Dia" BANXICO_FIGURE_TYPE="TipoCambio" BANXICO_UNIT_TYPE="PesoxDoll">
|
34
|
+
<bm:Obs TIME_PERIOD="2016-05-10" OBS_VALUE="18.0205"/>
|
35
|
+
</bm:Series>
|
36
|
+
</bm:DataSet>
|
37
|
+
</CompactData>
|
38
|
+
</result>
|
39
|
+
</ns1:tiposDeCambioBanxicoResponse>
|
40
|
+
</soapenv:Body>
|
41
|
+
</soapenv:Envelope>
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require "codeclimate-test-reporter"
|
2
|
+
CodeClimate::TestReporter.start
|
3
|
+
|
4
|
+
require 'simplecov'
|
5
|
+
SimpleCov.start
|
6
|
+
|
7
|
+
require 'coveralls'
|
8
|
+
Coveralls.wear!
|
9
|
+
|
10
|
+
require 'pry'
|
11
|
+
require 'MX/Banxico'
|
12
|
+
|
13
|
+
|
14
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new [
|
15
|
+
Coveralls::SimpleCov::Formatter,
|
16
|
+
SimpleCov::Formatter::HTMLFormatter,
|
17
|
+
CodeClimate::TestReporter::Formatter
|
18
|
+
]
|
19
|
+
|
20
|
+
|
21
|
+
RSpec.configure do |config|
|
22
|
+
config.expect_with :rspec do |expectations|
|
23
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
24
|
+
end
|
25
|
+
config.mock_with :rspec do |mocks|
|
26
|
+
mocks.verify_partial_doubles = true
|
27
|
+
end
|
28
|
+
|
29
|
+
config.filter_run :focus
|
30
|
+
config.run_all_when_everything_filtered = true
|
31
|
+
end
|