zuora_api 1.3.99995 → 1.3.99996
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/lib/zuora_api/login.rb +6 -1
- 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: 7299b303142d685cde62c0fc727a99e83b7b4fbd
|
|
4
|
+
data.tar.gz: 35c2a6d5870567fe60e6e0454c987b34aa20ecf4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5dc79bbdb75f6adb5cad23eb60202abc141baa88b5f261970a2fc1fd1d1c0d44228d62658b1e1f95d7dfbecf2c6df9c7c4383ce15eb06e5d66fea51c1fe2de8
|
|
7
|
+
data.tar.gz: ac5b82a3c1f39528abecbd57329815fdf7c324eb96ed25dad5c7d708108d4f1d04365a836ca6d8ef90d37ca712f26cdfcee713401babc73f84c939bf772a4b8d
|
data/lib/zuora_api/login.rb
CHANGED
|
@@ -333,6 +333,11 @@ module ZuoraAPI
|
|
|
333
333
|
raise ZuoraAPI::Exceptions::ZuoraAPILockCompetition.new("#{messages_array.join(', ')}")
|
|
334
334
|
end
|
|
335
335
|
|
|
336
|
+
#All Errors catch
|
|
337
|
+
if codes_array.size > 0
|
|
338
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{messages_array.join(', ')}")
|
|
339
|
+
end
|
|
340
|
+
|
|
336
341
|
#Zuora REST Query Errors
|
|
337
342
|
if body["faultcode"].present?
|
|
338
343
|
raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{body["faultcode"]}::#{body["faultstring"]}")
|
|
@@ -694,7 +699,7 @@ module ZuoraAPI
|
|
|
694
699
|
response_query = HTTParty.post(self.url, body: confirmRequest.to_xml, headers: {'Content-Type' => "application/json; charset=utf-8"}, :timeout => 120)
|
|
695
700
|
output_xml = Nokogiri::XML(response_query.body)
|
|
696
701
|
result = output_xml.xpath('//ns2:Status', 'ns2' =>'http://object.api.zuora.com/').text
|
|
697
|
-
|
|
702
|
+
raise 'Export Creation Unsuccessful : ' + output_xml.xpath('//ns1:Message', 'ns1' =>'http://api.zuora.com/').text if result == "Failed"
|
|
698
703
|
end
|
|
699
704
|
file_id = output_xml.xpath('//ns2:FileId', 'ns2' =>'http://object.api.zuora.com/').text
|
|
700
705
|
Rails.logger.info('Export') {'=====> Export finished'}
|
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.3.
|
|
4
|
+
version: 1.3.99996
|
|
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-
|
|
11
|
+
date: 2017-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|