zuora_api 1.4.10 → 1.4.11
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/zuora_api/login.rb +4 -4
- data/lib/zuora_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bdfec52e22872643c4bebaf0180674c09e5a2f60
|
|
4
|
+
data.tar.gz: d090db16a0cb99fa37052909bb08bfb87a76c8e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7cab09f0e5afc76f8edaf57a6a759d38f1b4731238cfb67e0b2f33f6876192a508f59f08907de3a6b60d7dec1bb3783d2e808bd7f9d44310c9cd592fed14fcf
|
|
7
|
+
data.tar.gz: 2f8b5b10781c75f7a628e8cfe2499d937abfa921220bebe68fe23d4f76367188fe356ac5967c9ca46b9a4ca239ae5d226ce246736a095eed3969f0a1867f35eb
|
data/Gemfile.lock
CHANGED
data/lib/zuora_api/login.rb
CHANGED
|
@@ -119,7 +119,7 @@ module ZuoraAPI
|
|
|
119
119
|
input_xml.xpath('//ns1:session', 'ns1' =>'http://api.zuora.com/').children.remove
|
|
120
120
|
Rails.logger.debug('Connect') {"Request SOAP XML: #{input_xml.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION).strip}"} if debug
|
|
121
121
|
|
|
122
|
-
@response_query = HTTParty.post(self.url,:body => request.to_xml, :headers => {'Content-Type' => "text/xml; charset=utf-8"}, :timeout => 10)
|
|
122
|
+
@response_query = HTTParty.post(self.url,:body => request.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION).strip, :headers => {'Content-Type' => "text/xml; charset=utf-8"}, :timeout => 10)
|
|
123
123
|
@output_xml = Nokogiri::XML(@response_query.body)
|
|
124
124
|
Rails.logger.debug('Connect') {"Response SOAP XML: #{@output_xml.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION).strip}"} if debug
|
|
125
125
|
|
|
@@ -238,7 +238,7 @@ module ZuoraAPI
|
|
|
238
238
|
input_xml = Nokogiri::XML(xml.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION).strip)
|
|
239
239
|
input_xml.xpath('//ns1:session', 'ns1' =>'http://api.zuora.com/').children.remove
|
|
240
240
|
Rails.logger.debug('Connect') {"Request SOAP XML: #{input_xml.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION).strip}"} if debug
|
|
241
|
-
response = HTTParty.post(self.url,:body => xml.doc.to_xml, :headers => {'Content-Type' => "text/xml; charset=utf-8"}, :timeout => timeout)
|
|
241
|
+
response = HTTParty.post(self.url,:body => xml.doc.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION).strip, :headers => {'Content-Type' => "text/xml; charset=utf-8"}, :timeout => timeout)
|
|
242
242
|
output_xml = Nokogiri::XML(response.body)
|
|
243
243
|
Rails.logger.debug('Connect') {"Response SOAP XML: #{output_xml.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION).strip}"} if debug
|
|
244
244
|
|
|
@@ -720,7 +720,7 @@ module ZuoraAPI
|
|
|
720
720
|
end
|
|
721
721
|
end
|
|
722
722
|
end
|
|
723
|
-
response_query = HTTParty.post(self.url, body: request.to_xml, headers: {'Content-Type' => "application/json; charset=utf-8"}, :timeout => 120)
|
|
723
|
+
response_query = HTTParty.post(self.url, body: request.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION).strip, headers: {'Content-Type' => "application/json; charset=utf-8"}, :timeout => 120)
|
|
724
724
|
output_xml = Nokogiri::XML(response_query.body)
|
|
725
725
|
|
|
726
726
|
raise 'Export Creation Unsuccessful : ' + output_xml.xpath('//ns1:Message', 'ns1' =>'http://api.zuora.com/').text if output_xml.xpath('//ns1:Success', 'ns1' =>'http://api.zuora.com/').text != "true"
|
|
@@ -743,7 +743,7 @@ module ZuoraAPI
|
|
|
743
743
|
result = 'Waiting'
|
|
744
744
|
while result != "Completed"
|
|
745
745
|
sleep 3
|
|
746
|
-
response_query = HTTParty.post(self.url, body: confirmRequest.to_xml, headers: {'Content-Type' => "application/json; charset=utf-8"}, :timeout => 120)
|
|
746
|
+
response_query = HTTParty.post(self.url, body: confirmRequest.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION).strip, headers: {'Content-Type' => "application/json; charset=utf-8"}, :timeout => 120)
|
|
747
747
|
output_xml = Nokogiri::XML(response_query.body)
|
|
748
748
|
|
|
749
749
|
result = output_xml.xpath('//ns2:Status', 'ns2' =>'http://object.api.zuora.com/').text
|
data/lib/zuora_api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zuora_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zuora Strategic Solutions Group
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-04-
|
|
11
|
+
date: 2018-04-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|