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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/zuora_api/login.rb +6 -5
- 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: 1016b38e1a980f5f54b8959b76ab10c9d882170f
|
|
4
|
+
data.tar.gz: 92613b2dbff76bbb39a956aa824e3890cb2e4b76
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 259f2d3f241c2c85d8a04fa4531ce8b882d7870352ca212c30a11f3794b5c522229c0f6f878a358534709df56c86ac463c8a0946d684eed64339d517b43fa99d
|
|
7
|
+
data.tar.gz: e6c63aeb3e24140f83252105f4fe5e01eec79e4e5e0a49f25ac189965f0c4fd9e42d36c13890d82344ba8b937f661ef65c89b5798548a1541fef9e6af848826e
|
data/Gemfile.lock
CHANGED
data/lib/zuora_api/login.rb
CHANGED
|
@@ -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
|
|
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.4.
|
|
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-
|
|
11
|
+
date: 2018-04-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|