zuora_api 1.4.09 → 1.4.10

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: 795e782dca68d2153bb987dbdc2e42c4bf5864d6
4
- data.tar.gz: 280ca629bff273729c291f53f7ad453728ef2e8c
3
+ metadata.gz: 1016b38e1a980f5f54b8959b76ab10c9d882170f
4
+ data.tar.gz: 92613b2dbff76bbb39a956aa824e3890cb2e4b76
5
5
  SHA512:
6
- metadata.gz: daaad5659d3fac1554c0d12971134f2ebb1788eaeee366983e5838ba11c5ac85b6523acc7f9579577260d9bc4b1247e7efb45a305c623a44c2bd251a80194ab3
7
- data.tar.gz: 1a04d03bbf766657355fb32b80cae0e57988ea92cae36c9e3143175f5aac492e4da4b4db7a23fe98ce3a208c8284dc9d50749bd6e3ca66189388c74df441974f
6
+ metadata.gz: 259f2d3f241c2c85d8a04fa4531ce8b882d7870352ca212c30a11f3794b5c522229c0f6f878a358534709df56c86ac463c8a0946d684eed64339d517b43fa99d
7
+ data.tar.gz: e6c63aeb3e24140f83252105f4fe5e01eec79e4e5e0a49f25ac189965f0c4fd9e42d36c13890d82344ba8b937f661ef65c89b5798548a1541fef9e6af848826e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zuora_api (1.4.09)
4
+ zuora_api (1.4.10)
5
5
  httparty
6
6
  nokogiri
7
7
  railties (>= 4.1.0, < 5.1)
@@ -110,4 +110,4 @@ DEPENDENCIES
110
110
  zuora_api!
111
111
 
112
112
  BUNDLED WITH
113
- 1.16.0.pre.2
113
+ 1.16.1
@@ -308,22 +308,23 @@ module ZuoraAPI
308
308
  end
309
309
  end
310
310
 
311
+ #By default response if not passed in for SOAP as all SOAP is 200
311
312
  if error.present?
312
313
  if error.class == String
313
314
  if error == "INVALID_SESSION"
314
- raise ZuoraAPI::Exceptions::ZuoraAPISessionError.new("#{error}::#{message}", body, response.code)
315
+ raise ZuoraAPI::Exceptions::ZuoraAPISessionError.new("#{error}::#{message}", body, response.present? ? response.code : nil )
315
316
  end
316
317
  if error == "REQUEST_EXCEEDED_LIMIT"
317
- raise ZuoraAPI::Exceptions::ZuoraAPIRequestLimit.new("#{error}::#{message}", body, response.code)
318
+ raise ZuoraAPI::Exceptions::ZuoraAPIRequestLimit.new("#{error}::#{message}", body, response.present? ? response.code : nil)
318
319
  end
319
320
  if error == "LOCK_COMPETITION"
320
- raise ZuoraAPI::Exceptions::ZuoraAPILockCompetition.new("#{error}::#{message}", body, response.code)
321
+ raise ZuoraAPI::Exceptions::ZuoraAPILockCompetition.new("#{error}::#{message}", body, response.present? ? response.code : nil)
321
322
  end
322
323
  if error.present?
323
- raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{error}::#{message}", body, response.code)
324
+ raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{error}::#{message}", body, response.present? ? response.code : nil)
324
325
  end
325
326
  elsif error.class == Array
326
- raise ZuoraAPI::Exceptions::ZuoraAPIError.new(error.group_by {|v| v}.map {|k,v| "(#{v.size}x) - #{k}"}.join(', '), body, response.code, error, success)
327
+ raise ZuoraAPI::Exceptions::ZuoraAPIError.new(error.group_by {|v| v}.map {|k,v| "(#{v.size}x) - #{k}"}.join(', '), body, response.present? ? response.code : nil, error, success)
327
328
  end
328
329
  end
329
330
 
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.4.09"
2
+ VERSION = "1.4.10"
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.09
4
+ version: 1.4.10
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-13 00:00:00.000000000 Z
11
+ date: 2018-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler