zuora_api 1.6.17 → 1.6.18
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 +1 -1
- data/lib/zuora_api/login.rb +7 -0
- 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: fde9d48ecb8183a809d7e461374871cb29ac822f
|
4
|
+
data.tar.gz: 4f0493a78076b964141587055532e003757a013b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f383c511e9ea580b74589341f9d69ad4e6303b55a888ca63cc75566024ebc55eba6cd87df782f1bb99b079d9caf76e7edb424a3564e416135a34e2d20e986953
|
7
|
+
data.tar.gz: 4f998b30cf6cb7265676ed00bcf69782a5eb5222a2162a29a1ef335d671dbaa73a0f17217b7d975854888f5955d137f239acd8e6cf41d08c729c8dd396d50a8c
|
data/Gemfile.lock
CHANGED
data/lib/zuora_api/login.rb
CHANGED
@@ -586,6 +586,13 @@ module ZuoraAPI
|
|
586
586
|
all_errors = body.select {|obj| !obj['Success'] || !obj['success'] }.map {|obj| obj['Errors'] || obj['errors'] }.compact
|
587
587
|
all_success = body.select {|obj| obj['Success'] || obj['success']}.compact
|
588
588
|
|
589
|
+
if all_success.blank? && all_errors.present?
|
590
|
+
error_codes = all_errors.flatten.group_by {|error| error['Code']}.keys.uniq
|
591
|
+
if error_codes.size == 1 && error_codes[0] == "LOCK_COMPETITION"
|
592
|
+
raise ZuoraAPI::Exceptions::ZuoraAPILockCompetition.new("Retry Lock Competition", body, response.code)
|
593
|
+
end
|
594
|
+
end
|
595
|
+
|
589
596
|
if all_errors.size > 0
|
590
597
|
raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{all_errors.flatten.group_by {|error| error['Message']}.keys.uniq.join(' ')}", body, response.code, all_errors, all_success )
|
591
598
|
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.6.
|
4
|
+
version: 1.6.18
|
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-12-
|
11
|
+
date: 2018-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|