zuora_api 1.7.28 → 1.7.29
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/exceptions.rb +8 -1
- data/lib/zuora_api/login.rb +3 -1
- 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: 4d7865f2085983426da2477013b92ad68d3c6f0073710955bbf8fb93b66c6dbf
|
4
|
+
data.tar.gz: e10fd1744d91325f54f902fec206eec1743a86865c3b6c125ada4f45f6ccf4cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6adc5d3e684f7eee2def99c00440a47a97407212edc65440316a0806f45125b30f882ec85fb0f780fe40b9252936e4658d793c514e05ffa96947e3547071858a
|
7
|
+
data.tar.gz: 0f9acfd55d0af9b3f095597b224ff9ec9415fe3e9d4b46d3f35e7b093c6789c9a32d6cb4d2f75d4a801971c777ef41461221d302db3d56f25cba12cb42187a58
|
data/lib/zuora_api/exceptions.rb
CHANGED
@@ -43,7 +43,14 @@ module ZuoraAPI
|
|
43
43
|
|
44
44
|
def initialize(message = nil,response=nil, errors = [], successes = [], *args)
|
45
45
|
@code = response.present? && response.class.to_s == "HTTParty::Response" ? response.code : nil
|
46
|
-
|
46
|
+
|
47
|
+
case message
|
48
|
+
when /Payment status should be Processed. Invalid payment is P-\d*./
|
49
|
+
@message = "Payment status should be Processed."
|
50
|
+
else
|
51
|
+
@message = message
|
52
|
+
end
|
53
|
+
|
47
54
|
@response = response
|
48
55
|
@default_message = "Error communicating with Zuora."
|
49
56
|
@errors = errors
|
data/lib/zuora_api/login.rb
CHANGED
@@ -729,8 +729,10 @@ module ZuoraAPI
|
|
729
729
|
when /.*UNKNOWN_ERROR/
|
730
730
|
if /payment\/refund|Credit Balance Adjustment|Payment Gateway/.match(message).nil?
|
731
731
|
raise ZuoraAPI::Exceptions::ZuoraAPIUnkownError.new("#{error}::#{message}", response, errors, success)
|
732
|
+
else
|
733
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(message, response, errors, success)
|
732
734
|
end
|
733
|
-
when
|
735
|
+
when /INVALID_ID/, /MAX_RECORDS_EXCEEDED/, /INVALID_FIELD/, /MALFORMED_QUERY/, /NO_PERMISSION/, /PDF_QUERY_ERROR/, /MISSING_REQUIRED_VALUE/
|
734
736
|
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(message, response, errors, success)
|
735
737
|
when /.*soapenv:Server.*/
|
736
738
|
raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new("#{error}::#{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.29
|
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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|