zuora_api 1.7.7e → 1.7.7f

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1dd5edfe590ad2f7aa070eb4bae913605e0035e16ad02c92ff8a1110714fb70
4
- data.tar.gz: 7b1824d0b0046df3e1ae8ab179a04f19df7803595a44cfb2caffa7bbcb620fcb
3
+ metadata.gz: 804cba875550e86bca336f5ca155978460b16957f9269f3d677f0e823027d87c
4
+ data.tar.gz: 62f53c8d42f6dfbf8de530d5bf9a90f941eb8369c82fde27afff841445ca8c23
5
5
  SHA512:
6
- metadata.gz: ad30e83ace37d5c8a75709cc7ecbf36d30a7aae527f93993e48322914c412b30dd717cb5a48601aff64e1dd51a55907e934488a136256e86942c6e41f61d4540
7
- data.tar.gz: '094a9f289fe688ee21c371e7215910b3590c5230144579e82f5db1bfff2559de385381064b0a0cab069757f1d9dae78a9ce018584dc2091297fa54a84708edd7'
6
+ metadata.gz: 9cc2ccd120c5bc4ca6af6b1048239d49c6b4a714c604d996ec08e83a25a2769e357b49c70c43f3c8c6bfdf631dcb7de7ff249b137e197746c5cdda4f6ef7d188
7
+ data.tar.gz: 42761bc535e218762be87e37d32b5a0fcd43ecd7230a9b88b83d0749b0764b675355398aee3ecf10ac7bcdcdf0e2bf9e01bb602e59d65d63c8028840462274e1
@@ -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
- messages_array = messages_array.push(body.dig("error", 'message')).compact if body.dig('error').class == Hash
724
- codes_array = codes_array.push(body.dig("error", 'code')).compact if body.dig('error').class == Hash
725
- puts "messages_array #{messages_array}"
726
- puts "codes_array #{codes_array}"
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)
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.7.7e"
2
+ VERSION = "1.7.7f"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.7e
4
+ version: 1.7.7f
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zuora Strategic Solutions Group