zuora_api 1.3.99995 → 1.3.99996

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: c538913a62963729bc2d79f3efdfce281dfbd5cb
4
- data.tar.gz: 17b6600c2f268a8ee17651025896a48f57477ed5
3
+ metadata.gz: 7299b303142d685cde62c0fc727a99e83b7b4fbd
4
+ data.tar.gz: 35c2a6d5870567fe60e6e0454c987b34aa20ecf4
5
5
  SHA512:
6
- metadata.gz: b1b49f1452f16c18453600239ab25d75ee9d8669342f30e559f9bf53881fd60202ceb93137d70e5b18aa2679093f41723a21a41f92524611ea9a728db1f3b6a2
7
- data.tar.gz: 236ee1d8ef9c20eac9796a4d9a0e908252208378e5b8d6996d605aac7c31d8369b2dfd7e983cd9993a6b45bb42b085f945d86aed006504b7d389d80ca59c6397
6
+ metadata.gz: a5dc79bbdb75f6adb5cad23eb60202abc141baa88b5f261970a2fc1fd1d1c0d44228d62658b1e1f95d7dfbecf2c6df9c7c4383ce15eb06e5d66fea51c1fe2de8
7
+ data.tar.gz: ac5b82a3c1f39528abecbd57329815fdf7c324eb96ed25dad5c7d708108d4f1d04365a836ca6d8ef90d37ca712f26cdfcee713401babc73f84c939bf772a4b8d
@@ -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
- return 'Export Creation Unsuccessful : ' + output_xml.xpath('//ns1:Message', 'ns1' =>'http://api.zuora.com/').text if result == "Failed"
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'}
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.3.99995"
2
+ VERSION = "1.3.99996"
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.99995
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-25 00:00:00.000000000 Z
11
+ date: 2017-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler