zuora_api 1.7.38 → 1.7.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zuora_api/login.rb +6 -2
- 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: 8c02a1af0d497a7bed38912ecc58db806d13652bbf9ac9ee064886fa1172b666
|
4
|
+
data.tar.gz: 9a7efe4d266d8f9698711c14cb7f3228339c787f90fce8b88acba79f82efa10e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4195b814d27376ad634671925a8924edc7036c042792f73129cc860e83130885ec974817dec2b791bc2b87f7aff238e0ce0b4846aca6ff81e14507c9c68650a3
|
7
|
+
data.tar.gz: 4e559c219016a52201ca4d639ae98218cbb9321460b2d26dc0a8275c5c26b0055124ff0e56cc23642f25be63ad0ac3875016377dd80d8c2d76e6a1884ea21ca1
|
data/lib/zuora_api/login.rb
CHANGED
@@ -689,7 +689,11 @@ module ZuoraAPI
|
|
689
689
|
raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new('Zuora API Internal Server Error', response)
|
690
690
|
end
|
691
691
|
elsif ![200,201].include?(response.code)
|
692
|
-
|
692
|
+
if 403 == response.code && response.body.include?("Forbidden")
|
693
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new(response.body, response)
|
694
|
+
else
|
695
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(response.body, response)
|
696
|
+
end
|
693
697
|
end
|
694
698
|
end
|
695
699
|
end
|
@@ -747,7 +751,7 @@ module ZuoraAPI
|
|
747
751
|
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(message, response, errors, success)
|
748
752
|
end
|
749
753
|
when /.*UNKNOWN_ERROR/
|
750
|
-
if /payment\/refund|Credit Balance Adjustment|Payment Gateway/.match(message).nil?
|
754
|
+
if /payment\/refund|Credit Balance Adjustment|Payment Gateway|ARSettlement permission/.match(message).nil?
|
751
755
|
raise ZuoraAPI::Exceptions::ZuoraAPIUnkownError.new(message, response, errors, success)
|
752
756
|
else
|
753
757
|
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(message, response, errors, success)
|
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.39
|
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: 2020-01-
|
11
|
+
date: 2020-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|