zuora_api 1.7.05 → 1.7.06
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 +8 -8
- 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: f857a810633aad60e80293f6400b9fa8fab38bff15537589e4ffe0ef2aca808d
|
4
|
+
data.tar.gz: d4512de5de2f7eb888dc32ca7d283fee4f366ad7a96c8dc619bd8ebd83b8f55d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d2a72796a2b442627768876ac6954b10aff3be6ea61b11375f4bd2d305b970c5887d26dbf0962b8876bb7575cfcf9a3c49e56d0a8ae0d6fe71ed4078fe04bd6
|
7
|
+
data.tar.gz: c957560ae8e70276ff8c9fd6d2e9777af145d837bbb93ee1114f36ec7946ab59033820113b93872c4b42855be40c86e04a979255f839908facc9fb4ea4faa350
|
data/lib/zuora_api/login.rb
CHANGED
@@ -504,6 +504,14 @@ module ZuoraAPI
|
|
504
504
|
end
|
505
505
|
|
506
506
|
def raise_errors(type: :SOAP, body: nil, response: nil)
|
507
|
+
if [502,503].include?(response.code)
|
508
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIConnectionTimeout.new("Received #{response.code} from downstream host", response)
|
509
|
+
end
|
510
|
+
|
511
|
+
if response.code == 504
|
512
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIReadTimeout.new("Received 504 from downstream host", response)
|
513
|
+
end
|
514
|
+
|
507
515
|
case type
|
508
516
|
when :SOAP
|
509
517
|
error = body.xpath('//fns:FaultCode', 'fns' =>'http://fault.api.zuora.com/').text
|
@@ -585,14 +593,6 @@ module ZuoraAPI
|
|
585
593
|
raise ZuoraAPI::Exceptions::ZuoraAPIAuthenticationTypeError.new("Authentication type is not supported by this Login", response)
|
586
594
|
end
|
587
595
|
|
588
|
-
if response.code ==502
|
589
|
-
raise ZuoraAPI::Exceptions::ZuoraAPIConnectionTimeout.new("Received 502 from downstream host", response)
|
590
|
-
end
|
591
|
-
|
592
|
-
if response.code ==504
|
593
|
-
raise ZuoraAPI::Exceptions::ZuoraAPIReadTimeout.new("Received 504 from downstream host", response)
|
594
|
-
end
|
595
|
-
|
596
596
|
if body['errorMessage']
|
597
597
|
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(body['errorMessage'], response)
|
598
598
|
end
|
data/lib/zuora_api/version.rb
CHANGED