fdis 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fdis/facturacion.rb +4 -5
- data/lib/fdis/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 520a75ea98b3981ce2ad784b6f16c4aa3e71717518a6cf10d8e4ef566066a9d5
|
4
|
+
data.tar.gz: a960ff084bf1772a6551a43feb53df6a532de1ec5366dedd1dfeb8f358e973f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59651fa191b4ff31782182e63957b042318a86fb7b4a3544336bef385c6d92554f49dce21cee6c277c02748ec3de726e3066dd13f66bd3a5d422e965185bd693
|
7
|
+
data.tar.gz: aadfb046bd81828b4aca783a9f34687b12ba4eeebcefb58a101a32c15d76f024ecef8b6cedd7f4f5593d46d37049cad2655d1d1406dc313050b07d3dab03a4cf
|
data/lib/fdis/facturacion.rb
CHANGED
@@ -213,8 +213,7 @@ module Fdis
|
|
213
213
|
when Net::HTTPSuccess, Net::HTTPRedirection
|
214
214
|
if response['success'] == true
|
215
215
|
decoded_xml = Nokogiri::XML(Base64.decode64(response['base64XmlFile']))
|
216
|
-
|
217
|
-
timbre = decoded_xml.at_xpath("//tfd:TimbreFiscalDigital")
|
216
|
+
timbre = decoded_xml.at_xpath("//cfdi:Complemento").children[0]
|
218
217
|
response = {
|
219
218
|
status: 200,
|
220
219
|
message_error: '',
|
@@ -787,7 +786,8 @@ module Fdis
|
|
787
786
|
puts "---- Fdis: Respuesta"
|
788
787
|
puts "-- Codigo: #{json_response.code} --"
|
789
788
|
puts "-- Mensaje: #{json_response.message} --"
|
790
|
-
puts "-- Body:
|
789
|
+
puts "-- Body: "
|
790
|
+
p json_response.body
|
791
791
|
|
792
792
|
response = JSON.parse(json_response.body)
|
793
793
|
|
@@ -795,8 +795,7 @@ module Fdis
|
|
795
795
|
when Net::HTTPSuccess, Net::HTTPRedirection
|
796
796
|
if response['success'] == true
|
797
797
|
decoded_xml = Nokogiri::XML(Base64.decode64(response['base64XmlFile']))
|
798
|
-
|
799
|
-
timbre = decoded_xml.at_xpath("//tfd:TimbreFiscalDigital")
|
798
|
+
timbre = decoded_xml.at_xpath("//cfdi:Complemento").children[0]
|
800
799
|
response = {
|
801
800
|
status: 200,
|
802
801
|
message_error: '',
|
data/lib/fdis/version.rb
CHANGED