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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b140c495be178f0ecac349daf8ce7a039626c3f
4
- data.tar.gz: cf3722ba84b540f4e46f4b659f9b630739b6f802
3
+ metadata.gz: e16db7660f468c8131a614af479710e16bcf0b75
4
+ data.tar.gz: aaf9738044021f91b076d495ae3a07f8d3626763
5
5
  SHA512:
6
- metadata.gz: f5d16412bda87ffc9f36c0c03528ecde4e02422d51070a0ec0da3b40f88060ffe1040eba8d4d70ffa11c654133904df53f2bf18554b37e099e40495c4ef66efb
7
- data.tar.gz: 0efada802f143d0807c4f5da0601c5344d5f5b2ce92dda8443ccff00f51df20523daea9301dad8add091d5a54949c5cd18e2d299635a30f107854d06008ed6a9
6
+ metadata.gz: d7f1814714cbeccb40b5feaf1efafd62e99df28fcb38f5c4e5e7a17a79b8e3d0fbb5f156ca0e6d09c317e749b4be599cf324a840d3aea93317a53f5bc9c2cc9c
7
+ data.tar.gz: 38dadd75f068a6db1b60bbc52632d66d499800bcd210ace30da7ab29a6968904beac5471078075fd8f7aac00c42ec9e5e33ef06ccba38a3609ad739a859f3178
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.3.999991"
2
+ VERSION = "1.3.999992"
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.999991
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-02 00:00:00.000000000 Z
11
+ date: 2017-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler