lib/afip_wsfe/client.rb in afip_wsfe-0.2.0 vs lib/afip_wsfe/client.rb in afip_wsfe-0.2.1
- old
+ new
@@ -14,10 +14,10 @@
wsdl: "#{AfipWsfe::URLS[AfipWsfe.environment][endpoint]}?wsdl",
convert_request_keys_to: :camelcase
).call(savon_method, message: params.merge(@auth))
response = result.body[:"#{savon_method}_response"][return_key]
- Hash.from_xml response if endpoint == :wsaa
+ response = Hash.from_xml response if endpoint == :wsaa
[result.success?, response]
end
end
end