zuora_api 1.7.27 → 1.7.28

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
  SHA256:
3
- metadata.gz: 7b578d04f56f38f4d7cf3568fa4a3c52cdfc97994e8d8475e781ec290146d7de
4
- data.tar.gz: 41510775558fa3fc0864d046b31bdace572bd9e6739099a7e4d85286e51963bc
3
+ metadata.gz: bc698b7879f6d2b500690637798ef08aef067bd2259c1e1ddcc6719bd0154222
4
+ data.tar.gz: 04ebd2bb735a87e97e79f74cb070abf3e2d7cd9c8ade00c862b54a8bbe1d2fd7
5
5
  SHA512:
6
- metadata.gz: 574b4af248f5690386373f208e4de9945b9eb2dbf972b7ac3d978373c6057e572bf0edc890305fabcfe8a33ae62bad4850c9bf9e5fab4d06fb3b2e0bfcf0178f
7
- data.tar.gz: '085ae90ae8dcd8e775edc7976ac20cb43fda54c635f0cbe17345779cd4755a2dfb153c8be038360f9ed67140c5ed25f0a4ed6fbfe4a9d93f3111a24482c1ea5a'
6
+ metadata.gz: 3068328865ad695aecd9cf7397f261118c5653abe3b9a2e9630ced9054a1b93af86a51d88de56a470dda713ad61725e453eb025101ddeccdcc1154e8adc7d26d
7
+ data.tar.gz: 88d93f4d624d6ad51aadeabc6156914b6f3ad3ecd4407e5f1c08c500dda9fb221f3186c50bf957e59e78c9f0fcfd30e1540400f69557a347a6bb9a86595b8f19
@@ -545,14 +545,8 @@ module ZuoraAPI
545
545
  if error.class == String
546
546
  raise_errors_helper(error, message, response)
547
547
  elsif error.class == Array
548
-
549
- if error[0].include?("LOCK_COMPETITION") && error.count == 1
550
- raise ZuoraAPI::Exceptions::ZuoraAPILockCompetition.new(error.group_by {|v| v}.map {|k,v| "(#{v.size}x) - #{k == "::" ? 'UNKNOWN::No error provided' : k}"}.join(', '), response)
551
- end
552
-
553
548
  if error.uniq.size == 1
554
549
  err, msg = error[0].split('::')
555
- err = "(#{error.size}x) - #{err}"
556
550
  raise_errors_helper(err, msg, response, error, success)
557
551
  else
558
552
  raise ZuoraAPI::Exceptions::ZuoraAPIError.new(error.group_by {|v| v}.map {|k,v| "(#{v.size}x) - #{k == "::" ? 'UNKNOWN::No error provided' : k}"}.join(', '), response, error, success)
@@ -713,14 +707,14 @@ module ZuoraAPI
713
707
  def raise_errors_helper(error, message, response, errors = [], success = [])
714
708
  case error
715
709
  when /.*INVALID_SESSION/
716
- raise ZuoraAPI::Exceptions::ZuoraAPISessionError.new("#{error}::#{message}", response, errors, success)
710
+ raise ZuoraAPI::Exceptions::ZuoraAPISessionError.new(message, response, errors, success)
717
711
  when /.*REQUEST_EXCEEDED_LIMIT/
718
- raise ZuoraAPI::Exceptions::ZuoraAPIRequestLimit.new("#{error}::#{message}", response, errors, success)
712
+ raise ZuoraAPI::Exceptions::ZuoraAPIRequestLimit.new(message, response, errors, success)
719
713
  when /.*LOCK_COMPETITION/
720
- raise ZuoraAPI::Exceptions::ZuoraAPILockCompetition.new("#{error}::#{message}", response, errors, success)
714
+ raise ZuoraAPI::Exceptions::ZuoraAPILockCompetition.new(message, response, errors, success)
721
715
  when /.*BATCH_FAIL_ERROR/
722
716
  if message.include?("optimistic locking failed")
723
- raise ZuoraAPI::Exceptions::ZuoraAPILockCompetition.new("#{error}::#{message}", response, errors, success)
717
+ raise ZuoraAPI::Exceptions::ZuoraAPILockCompetition.new(message, response, errors, success)
724
718
  else
725
719
  raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{error}::#{message}", response, errors, success)
726
720
  end
@@ -730,12 +724,14 @@ module ZuoraAPI
730
724
  if message.include?("data integrity violation")
731
725
  raise ZuoraAPI::Exceptions::ZuoraDataIntegrity.new("Data Integrity Violation", response, errors), success
732
726
  else
733
- raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{error}::#{message}", response, errors, success)
727
+ raise ZuoraAPI::Exceptions::ZuoraAPIError.new(message, response, errors, success)
734
728
  end
735
729
  when /.*UNKNOWN_ERROR/
736
730
  if /payment\/refund|Credit Balance Adjustment|Payment Gateway/.match(message).nil?
737
731
  raise ZuoraAPI::Exceptions::ZuoraAPIUnkownError.new("#{error}::#{message}", response, errors, success)
738
732
  end
733
+ when /.*INVALID_ID/
734
+ raise ZuoraAPI::Exceptions::ZuoraAPIError.new(message, response, errors, success)
739
735
  when /.*soapenv:Server.*/
740
736
  raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new("#{error}::#{message}", response, errors, success)
741
737
  end
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.7.27"
2
+ VERSION = "1.7.28"
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.7.27
4
+ version: 1.7.28
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: 2019-12-11 00:00:00.000000000 Z
11
+ date: 2019-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler