zuora_api 1.7.7e → 1.7.7f
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 +5 -5
- 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: 804cba875550e86bca336f5ca155978460b16957f9269f3d677f0e823027d87c
|
4
|
+
data.tar.gz: 62f53c8d42f6dfbf8de530d5bf9a90f941eb8369c82fde27afff841445ca8c23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cc2ccd120c5bc4ca6af6b1048239d49c6b4a714c604d996ec08e83a25a2769e357b49c70c43f3c8c6bfdf631dcb7de7ff249b137e197746c5cdda4f6ef7d188
|
7
|
+
data.tar.gz: 42761bc535e218762be87e37d32b5a0fcd43ecd7230a9b88b83d0749b0764b675355398aee3ecf10ac7bcdcdf0e2bf9e01bb602e59d65d63c8028840462274e1
|
data/lib/zuora_api/login.rb
CHANGED
@@ -711,7 +711,7 @@ module ZuoraAPI
|
|
711
711
|
if body.class == Hash && (!body["success"] || !body["Success"] || response.code != 200)
|
712
712
|
reason_keys = %w(reasons errors)
|
713
713
|
message_keys = %w(message title)
|
714
|
-
messages_array, codes_array = []
|
714
|
+
messages_array, codes_array = [[],[]]
|
715
715
|
reason_keys.each do |rsn_key|
|
716
716
|
message_keys.each do |msg_key|
|
717
717
|
messages_array = body.fetch(rsn_key, []).map {|error| error[msg_key]}.compact
|
@@ -720,10 +720,10 @@ module ZuoraAPI
|
|
720
720
|
codes_array = body.fetch(rsn_key, []).map {|error| error['code']}.compact
|
721
721
|
break if messages_array.present? && codes_array.present?
|
722
722
|
end
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
723
|
+
if body.dig('error').class == Hash
|
724
|
+
messages_array = messages_array.push(body.dig("error", 'message')).compact
|
725
|
+
codes_array = codes_array.push(body.dig("error", 'code')).compact
|
726
|
+
end
|
727
727
|
|
728
728
|
if body['message'] == 'request exceeded limit'
|
729
729
|
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)
|
data/lib/zuora_api/version.rb
CHANGED