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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4806b451ff659e1af176ef392d2f87b54e2c30d
4
- data.tar.gz: 8743c12254499f03a513a19d1e071db251e92399
3
+ metadata.gz: fde9d48ecb8183a809d7e461374871cb29ac822f
4
+ data.tar.gz: 4f0493a78076b964141587055532e003757a013b
5
5
  SHA512:
6
- metadata.gz: 0a6ff5531ef2fb34f77b2ce4b08f55451652796c1512cd13497b4b1ada416f58c8951ebbe9d059b3ea588dae7ecca4c0679630135dc4ea8ada700b85982277c4
7
- data.tar.gz: 6ecb9fa1f3963a834588350363bc37d8d746920fb8e91538d49028fb3f925629a156c9bd2d3034b2d652ca8b8d874fda2791b3a371acfe80e8eb5832b317d6e5
6
+ metadata.gz: f383c511e9ea580b74589341f9d69ad4e6303b55a888ca63cc75566024ebc55eba6cd87df782f1bb99b079d9caf76e7edb424a3564e416135a34e2d20e986953
7
+ data.tar.gz: 4f998b30cf6cb7265676ed00bcf69782a5eb5222a2162a29a1ef335d671dbaa73a0f17217b7d975854888f5955d137f239acd8e6cf41d08c729c8dd396d50a8c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zuora_api (1.6.17)
4
+ zuora_api (1.6.18)
5
5
  httparty
6
6
  nokogiri
7
7
  railties (>= 4.1.0, < 5.2)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.6.17"
2
+ VERSION = "1.6.18"
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.6.17
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-22 00:00:00.000000000 Z
11
+ date: 2018-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler