zuora_api 1.3.999991 → 1.3.999992
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 +4 -3
- 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: e16db7660f468c8131a614af479710e16bcf0b75
|
|
4
|
+
data.tar.gz: aaf9738044021f91b076d495ae3a07f8d3626763
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d7f1814714cbeccb40b5feaf1efafd62e99df28fcb38f5c4e5e7a17a79b8e3d0fbb5f156ca0e6d09c317e749b4be599cf324a840d3aea93317a53f5bc9c2cc9c
|
|
7
|
+
data.tar.gz: 38dadd75f068a6db1b60bbc52632d66d499800bcd210ace30da7ab29a6968904beac5471078075fd8f7aac00c42ec9e5e33ef06ccba38a3609ad739a859f3178
|
data/lib/zuora_api/login.rb
CHANGED
|
@@ -356,9 +356,10 @@ module ZuoraAPI
|
|
|
356
356
|
end
|
|
357
357
|
|
|
358
358
|
#Zuora REST Actions error (Create, Update, Delete)
|
|
359
|
-
if body.class == Array
|
|
360
|
-
all_errors = body.select {|obj| !obj['Success']}.map {|obj| obj['Errors']}
|
|
361
|
-
all_success = body.select {|obj| obj['Success']}
|
|
359
|
+
if body.class == Array
|
|
360
|
+
all_errors = body.select {|obj| !obj['Success'] || !obj['success'] }.map {|obj| obj['Errors'] || obj['errors'] }.compact
|
|
361
|
+
all_success = body.select {|obj| obj['Success'] || obj['success']}.compact
|
|
362
|
+
|
|
362
363
|
if all_errors.size > 0
|
|
363
364
|
raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{all_errors.flatten.group_by {|error| error['Message']}.keys.uniq.join(' ')}", nil, nil, all_errors, all_success )
|
|
364
365
|
end
|
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.999992
|
|
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-
|
|
11
|
+
date: 2017-11-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|