zuora_api 1.4.10 → 1.4.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1016b38e1a980f5f54b8959b76ab10c9d882170f
4
- data.tar.gz: 92613b2dbff76bbb39a956aa824e3890cb2e4b76
3
+ metadata.gz: bdfec52e22872643c4bebaf0180674c09e5a2f60
4
+ data.tar.gz: d090db16a0cb99fa37052909bb08bfb87a76c8e1
5
5
  SHA512:
6
- metadata.gz: 259f2d3f241c2c85d8a04fa4531ce8b882d7870352ca212c30a11f3794b5c522229c0f6f878a358534709df56c86ac463c8a0946d684eed64339d517b43fa99d
7
- data.tar.gz: e6c63aeb3e24140f83252105f4fe5e01eec79e4e5e0a49f25ac189965f0c4fd9e42d36c13890d82344ba8b937f661ef65c89b5798548a1541fef9e6af848826e
6
+ metadata.gz: c7cab09f0e5afc76f8edaf57a6a759d38f1b4731238cfb67e0b2f33f6876192a508f59f08907de3a6b60d7dec1bb3783d2e808bd7f9d44310c9cd592fed14fcf
7
+ data.tar.gz: 2f8b5b10781c75f7a628e8cfe2499d937abfa921220bebe68fe23d4f76367188fe356ac5967c9ca46b9a4ca239ae5d226ce246736a095eed3969f0a1867f35eb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zuora_api (1.4.10)
4
+ zuora_api (1.4.11)
5
5
  httparty
6
6
  nokogiri
7
7
  railties (>= 4.1.0, < 5.1)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.4.10"
2
+ VERSION = "1.4.11"
3
3
  end
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.10
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-15 00:00:00.000000000 Z
11
+ date: 2018-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler