zuora_api 1.7.25 → 1.7.26
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 +15 -3
- 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: 533f200e1fa984628ee3af06bca732c86561a873a0c1638402f2236d44174132
|
4
|
+
data.tar.gz: c7ce25a35cf21494fdfed0c502f238541b8368ecbb8f0e5b6a0835eee84724e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ef261d78eb9f7e75b8c1ea9414815b3f334ffa473235ac5043a6ecdb3c14739e03ff80d02647362d2a0a4a78230a25da17f822c934a233ba23da632e3eee5b8
|
7
|
+
data.tar.gz: 849c7030f480861a00a17cb35dab095a5216da83ae63e90ef8a8e10429ed65c03debe5b55fc928cc4d8a9b1561e8236379aa905e7dae6826ac9b1ce0e0d5bfbb
|
data/lib/zuora_api/login.rb
CHANGED
@@ -474,7 +474,13 @@ module ZuoraAPI
|
|
474
474
|
if !tries.zero? && z_session
|
475
475
|
tries -= 1
|
476
476
|
Rails.logger.debug("SOAP Call - Session Invalid")
|
477
|
-
|
477
|
+
|
478
|
+
begin
|
479
|
+
self.new_session(auth_type: :basic, zuora_track_id: zuora_track_id)
|
480
|
+
rescue *ZUORA_API_ERRORS => ex
|
481
|
+
return output_xml, input_xml, ex.response
|
482
|
+
end
|
483
|
+
|
478
484
|
retry
|
479
485
|
else
|
480
486
|
if errors.include?(ex.class)
|
@@ -568,7 +574,7 @@ module ZuoraAPI
|
|
568
574
|
raise ZuoraAPI::Exceptions::ZuoraAPIRequestLimit.new("The total number of concurrent requests has exceeded the limit allowed by the system. Please resubmit your request later.", response)
|
569
575
|
end
|
570
576
|
|
571
|
-
if body.fetch('message', '').downcase.include?('unexpected error')
|
577
|
+
if body.fetch('message', '').downcase.include?('unexpected error') && response.code != 500
|
572
578
|
raise ZuoraAPI::Exceptions::ZuoraUnexpectedError.new(body['message'], response)
|
573
579
|
end
|
574
580
|
|
@@ -898,7 +904,13 @@ module ZuoraAPI
|
|
898
904
|
if !tries.zero? && z_session
|
899
905
|
tries -= 1
|
900
906
|
Rails.logger.debug("Rest Call - Session Invalid #{session_type}")
|
901
|
-
|
907
|
+
|
908
|
+
begin
|
909
|
+
self.new_session(auth_type: session_type)
|
910
|
+
rescue *ZUORA_API_ERRORS => ex
|
911
|
+
return [output_json, ex.response]
|
912
|
+
end
|
913
|
+
|
902
914
|
retry
|
903
915
|
else
|
904
916
|
if errors.include?(ex.class)
|
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.26
|
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-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|