zuora_api 1.3.9999 → 1.3.99991

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04c2d98024dbb2a8780f809cff50aa60801cbad2
4
- data.tar.gz: 07cbfbc3165f18fd8a3f7bc3fbf9ef4d482b97ee
3
+ metadata.gz: 8b5595a9f6e92de49fb8b20d57c375d923702150
4
+ data.tar.gz: abb39e6790661069d0ec60eda3f747dcf7dffde2
5
5
  SHA512:
6
- metadata.gz: 877d93ac17fc7557db5b1e7918834be543d27c54ae29537c03eda61f0e3d2680ea4e622a0fd2c15c99ab530384a14ca7936f3dfd5b22ef83b6e3105c03654cc1
7
- data.tar.gz: a2241236f3561c563baf0a97b30d72bf21cdb12171d1d805fabee37f2c061105275c09a7cb1527cbb38b5e348c731b9449fd8118f9639907da75d955fe379aa8
6
+ metadata.gz: f6183a5e1e8c9cf31cc5984895ed3575936b20000b88532d8a832906f6f9b9243fed2a70e6852a91675b91bcd4fda2e0906413660b75db0458e132bae2ef0141
7
+ data.tar.gz: d9f22227bdc746ba4f5d4c2de00e90cde8ee4c5ce388ecfb41e03c5204144e43170806b733cc9fa3b605d86bc820d35e2a50270b99372ccb902ca1ecace59546
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zuora_api (1.3.9999)
4
+ zuora_api (1.3.99991)
5
5
  httparty
6
6
  nokogiri (~> 1.6.8)
7
7
  railties (>= 4.1.0, < 5.1)
@@ -88,7 +88,7 @@ module ZuoraAPI
88
88
  return self.wsdl_number > 68 ? '%Y-%m-%d' : '%Y-%m-%dT%H:%M:%S'
89
89
  end
90
90
 
91
- def new_session
91
+ def new_session(debug: false)
92
92
  tries ||= 2
93
93
  request = Nokogiri::XML::Builder.new do |xml|
94
94
  xml['SOAP-ENV'].Envelope('xmlns:SOAP-ENV' =>"http://schemas.xmlsoap.org/soap/envelope/", 'xmlns:api' => "http://api.zuora.com/" ) do
@@ -114,8 +114,16 @@ module ZuoraAPI
114
114
  end
115
115
  end
116
116
  end
117
+
118
+
119
+ input_xml = Nokogiri::XML(request.to_xml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION).strip)
120
+ input_xml.xpath('//ns1:session', 'ns1' =>'http://api.zuora.com/').children.remove
121
+ 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
122
+
117
123
  @response_query = HTTParty.post(self.url,:body => request.to_xml, :headers => {'Content-Type' => "text/xml; charset=utf-8"}, :timeout => 10)
118
124
  @output_xml = Nokogiri::XML(@response_query.body)
125
+ 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
126
+
119
127
 
120
128
  if !@response_query.success?
121
129
  self.current_session = nil
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.3.9999"
2
+ VERSION = "1.3.99991"
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.3.9999
4
+ version: 1.3.99991
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: 2017-10-10 00:00:00.000000000 Z
11
+ date: 2017-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler