zuora_api 1.7.26 → 1.7.27
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 +12 -10
- data/lib/zuora_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b578d04f56f38f4d7cf3568fa4a3c52cdfc97994e8d8475e781ec290146d7de
|
4
|
+
data.tar.gz: 41510775558fa3fc0864d046b31bdace572bd9e6739099a7e4d85286e51963bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 574b4af248f5690386373f208e4de9945b9eb2dbf972b7ac3d978373c6057e572bf0edc890305fabcfe8a33ae62bad4850c9bf9e5fab4d06fb3b2e0bfcf0178f
|
7
|
+
data.tar.gz: '085ae90ae8dcd8e775edc7976ac20cb43fda54c635f0cbe17345779cd4755a2dfb153c8be038360f9ed67140c5ed25f0a4ed6fbfe4a9d93f3111a24482c1ea5a'
|
data/lib/zuora_api/login.rb
CHANGED
@@ -733,19 +733,21 @@ module ZuoraAPI
|
|
733
733
|
raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{error}::#{message}", response, errors, success)
|
734
734
|
end
|
735
735
|
when /.*UNKNOWN_ERROR/
|
736
|
-
|
736
|
+
if /payment\/refund|Credit Balance Adjustment|Payment Gateway/.match(message).nil?
|
737
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIUnkownError.new("#{error}::#{message}", response, errors, success)
|
738
|
+
end
|
737
739
|
when /.*soapenv:Server.*/
|
738
|
-
raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new(
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new('Zuora API Internal Server Error', response, errors, success)
|
745
|
-
end
|
740
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new("#{error}::#{message}", response, errors, success)
|
741
|
+
end
|
742
|
+
|
743
|
+
if response.code == 500
|
744
|
+
if message.present?
|
745
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{error}::#{message}", response, errors, success)
|
746
746
|
else
|
747
|
-
raise ZuoraAPI::Exceptions::
|
747
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new('Zuora API Internal Server Error', response, errors, success)
|
748
748
|
end
|
749
|
+
else
|
750
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIError.new("#{error}::#{message}", response, errors, success) if error.present?
|
749
751
|
end
|
750
752
|
end
|
751
753
|
|
data/lib/zuora_api/version.rb
CHANGED