zuora_api 1.7.30 → 1.7.31
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/Gemfile.lock +2 -2
- data/lib/zuora_api/exceptions.rb +2 -0
- data/lib/zuora_api/login.rb +3 -3
- data/lib/zuora_api/logins/oauth.rb +2 -2
- 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: 8f8c03b987d9c65956ade827116a216125ad9f90f2ff55d2a1f056bfe39333c0
|
|
4
|
+
data.tar.gz: c67adb9206b235ec4fee409127208d026264832d948a3871b8c132e0bbc90166
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f23b6d8c53ba1b77f89ab471aa1b58715e213f365a9ffe03b25aa64f3817dfd4b6fd854ab286dc7fe6a279a62fc87664bd41513ea130fcb793128e2daabd9a55
|
|
7
|
+
data.tar.gz: a844da8425af9f42fb02a3dbff726709f475d8f2971cf7bc6a5d30e457707ff9eff32115b67d56483abe04ae2ba3bec696d8cae3aa3754b67bc00a905745d74c
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
zuora_api (1.7.
|
|
4
|
+
zuora_api (1.7.31)
|
|
5
5
|
httparty
|
|
6
6
|
nokogiri
|
|
7
7
|
railties (>= 4.1.0, < 6)
|
|
@@ -39,7 +39,7 @@ GEM
|
|
|
39
39
|
docile (1.3.1)
|
|
40
40
|
erubi (1.9.0)
|
|
41
41
|
hashdiff (0.3.7)
|
|
42
|
-
httparty (0.17.
|
|
42
|
+
httparty (0.17.3)
|
|
43
43
|
mime-types (~> 3.0)
|
|
44
44
|
multi_xml (>= 0.5.2)
|
|
45
45
|
i18n (1.7.0)
|
data/lib/zuora_api/exceptions.rb
CHANGED
|
@@ -49,6 +49,8 @@ module ZuoraAPI
|
|
|
49
49
|
@message = "Payment status should be Processed."
|
|
50
50
|
when /Adjustment cannot be created for invoice(.*) with a zero balance./
|
|
51
51
|
@message = "Adjustment cannot be created for invoice with a zero balance."
|
|
52
|
+
when /The balance of all the invoice items and tax items is 0. No write-off is needed for the invoice .*./
|
|
53
|
+
@message = "The balance of all the invoice items and tax items is 0. No write-off is needed for the invoice."
|
|
52
54
|
else
|
|
53
55
|
@message = message
|
|
54
56
|
end
|
data/lib/zuora_api/login.rb
CHANGED
|
@@ -716,7 +716,7 @@ module ZuoraAPI
|
|
|
716
716
|
if message.include?("optimistic locking failed")
|
|
717
717
|
raise ZuoraAPI::Exceptions::ZuoraAPILockCompetition.new(message, response, errors, success)
|
|
718
718
|
else
|
|
719
|
-
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(
|
|
719
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(message, response, errors, success)
|
|
720
720
|
end
|
|
721
721
|
when /.*TEMPORARY_ERROR/
|
|
722
722
|
raise ZuoraAPI::Exceptions::ZuoraAPITemporaryError.new("#{error}::#{message}", response, errors, success)
|
|
@@ -728,11 +728,11 @@ module ZuoraAPI
|
|
|
728
728
|
end
|
|
729
729
|
when /.*UNKNOWN_ERROR/
|
|
730
730
|
if /payment\/refund|Credit Balance Adjustment|Payment Gateway/.match(message).nil?
|
|
731
|
-
raise ZuoraAPI::Exceptions::ZuoraAPIUnkownError.new(
|
|
731
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIUnkownError.new(message, response, errors, success)
|
|
732
732
|
else
|
|
733
733
|
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(message, response, errors, success)
|
|
734
734
|
end
|
|
735
|
-
when /INVALID_ID/, /MAX_RECORDS_EXCEEDED/, /INVALID_FIELD/, /MALFORMED_QUERY/, /NO_PERMISSION/, /PDF_QUERY_ERROR/, /MISSING_REQUIRED_VALUE/, /INVALID_TYPE/
|
|
735
|
+
when /INVALID_ID/, /MAX_RECORDS_EXCEEDED/, /INVALID_FIELD/, /MALFORMED_QUERY/, /NO_PERMISSION/, /PDF_QUERY_ERROR/, /MISSING_REQUIRED_VALUE/, /INVALID_TYPE/, /TRANSACTION_FAILED/
|
|
736
736
|
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(message, response, errors, success)
|
|
737
737
|
when /.*soapenv:Server.*/
|
|
738
738
|
raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new("#{error}::#{message}", response, errors, success)
|
|
@@ -89,7 +89,7 @@ module ZuoraAPI
|
|
|
89
89
|
|
|
90
90
|
return self.status
|
|
91
91
|
|
|
92
|
-
rescue ZuoraAPI::Exceptions::
|
|
92
|
+
rescue ZuoraAPI::Exceptions::ZuoraAPIInternalServerError => ex
|
|
93
93
|
raise ex if tries.zero?
|
|
94
94
|
|
|
95
95
|
tries -= 1
|
|
@@ -101,7 +101,7 @@ module ZuoraAPI
|
|
|
101
101
|
self.current_error = ex.message
|
|
102
102
|
case ex.message
|
|
103
103
|
when "Forbidden"
|
|
104
|
-
self.current_error = "The user associated to OAuth credential
|
|
104
|
+
self.current_error = "The user associated to OAuth credential set has been deactivated."
|
|
105
105
|
self.status = 'Deactivated'
|
|
106
106
|
else
|
|
107
107
|
self.current_error = "Invalid login, please check client ID and Client Secret or URL endpoint"
|
data/lib/zuora_api/version.rb
CHANGED