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 +4 -4
- data/lib/zuora_api/login.rb +7 -11
- data/lib/zuora_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc698b7879f6d2b500690637798ef08aef067bd2259c1e1ddcc6719bd0154222
|
4
|
+
data.tar.gz: 04ebd2bb735a87e97e79f74cb070abf3e2d7cd9c8ade00c862b54a8bbe1d2fd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3068328865ad695aecd9cf7397f261118c5653abe3b9a2e9630ced9054a1b93af86a51d88de56a470dda713ad61725e453eb025101ddeccdcc1154e8adc7d26d
|
7
|
+
data.tar.gz: 88d93f4d624d6ad51aadeabc6156914b6f3ad3ecd4407e5f1c08c500dda9fb221f3186c50bf957e59e78c9f0fcfd30e1540400f69557a347a6bb9a86595b8f19
|
data/lib/zuora_api/login.rb
CHANGED
@@ -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(
|
710
|
+
raise ZuoraAPI::Exceptions::ZuoraAPISessionError.new(message, response, errors, success)
|
717
711
|
when /.*REQUEST_EXCEEDED_LIMIT/
|
718
|
-
raise ZuoraAPI::Exceptions::ZuoraAPIRequestLimit.new(
|
712
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIRequestLimit.new(message, response, errors, success)
|
719
713
|
when /.*LOCK_COMPETITION/
|
720
|
-
raise ZuoraAPI::Exceptions::ZuoraAPILockCompetition.new(
|
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(
|
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(
|
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
|
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.7.
|
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
|
+
date: 2019-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|