zuora_api 1.3.99998 → 1.3.99999
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zuora_api/login.rb +13 -2
- 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: ed2b0077169532a250a0324b07a15bfbb1fbb682
|
4
|
+
data.tar.gz: 88de2efbd9ac8161c67039ea624a1881ad0acf93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c1be1e2ef1da29ecd31f3084e1cc477be1a61d197d86d982ffe6fb7ecedf252a6cb05a9f4fe2565c401c6832fdf3a914968373c0cbba451da4f1463b7e36595
|
7
|
+
data.tar.gz: 0f54362b668bac87f9e4e9df4b8248ebc94cd5a59533e96b40fd1e452bcea68cf4577f46d6a2f7a4394bc36268710f362c144354b0514eccbb4b2a28a77ae9d0
|
data/lib/zuora_api/login.rb
CHANGED
@@ -340,7 +340,18 @@ module ZuoraAPI
|
|
340
340
|
|
341
341
|
#Zuora REST Query Errors
|
342
342
|
if body["faultcode"].present?
|
343
|
-
|
343
|
+
case body["faultcode"]
|
344
|
+
when "fns:MALFORMED_QUERY"
|
345
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{body["faultcode"]}::#{body["faultstring"]}")
|
346
|
+
when "fns:REQUEST_EXCEEDED_LIMIT"
|
347
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIRequestLimit.new("#{body["faultcode"]}::#{body["faultstring"]}")
|
348
|
+
when "fns:LOCK_COMPETITION"
|
349
|
+
raise ZuoraAPI::Exceptions::ZuoraAPILockCompetition.new("#{body["faultcode"]}::#{body["faultstring"]}")
|
350
|
+
when "INVALID_SESSION"
|
351
|
+
raise ZuoraAPI::Exceptions::ZuoraAPISessionError.new("#{body["faultcode"]}::#{body["faultstring"]}")
|
352
|
+
else
|
353
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{body["faultcode"]}::#{body["faultstring"]}")
|
354
|
+
end
|
344
355
|
end
|
345
356
|
end
|
346
357
|
|
@@ -349,7 +360,7 @@ module ZuoraAPI
|
|
349
360
|
all_errors = body.select {|obj| !obj['Success']}.map {|obj| obj['Errors']}
|
350
361
|
all_success = body.select {|obj| obj['Success']}
|
351
362
|
if all_errors.size > 0
|
352
|
-
raise ZuoraAPI::Exceptions::ZuoraAPIError.new("
|
363
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{all_errors.flatten.group_by {|error| error['Message']}.keys.join(',')}", nil, nil, all_errors, all_success )
|
353
364
|
end
|
354
365
|
end
|
355
366
|
|
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.99999
|
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-
|
11
|
+
date: 2017-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|