zuora_api 1.6.253 → 1.6.254

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75aaa525b01f8cb9dc61575b5ffbce6c45aeff5a
4
- data.tar.gz: df7b4849281c83e10590c51088e0c3813ce305d2
3
+ metadata.gz: 6128f5dcd59c8e19f685147b06d6868a4dc8c1f1
4
+ data.tar.gz: 40d87abab8c18aacadbfacdff0881ecc067a01e3
5
5
  SHA512:
6
- metadata.gz: 91b63981c496283de20f9387aa616c36f3ea035f034480874bdc14f1c9a82ce3f15a66977cef94a5f08aa9019f121049bea979938133bae23ad700db264204f0
7
- data.tar.gz: 57ba1131cdbb7480a7769fe306e53641df7d6608091465e765ef3a8c7d7c528cc3db96d2bb5b46edf0498f641d2fbe0467e8938a2add8755b6cb0cef134917b0
6
+ metadata.gz: 26edd6cdeaf34cb552b9b158f86f3108cc6396ff949e8e0246dcfea79f22b5bf6f1ff1a1e2d7d1f109ef2a34e624e03268fb5b6494c693f9ede2afe54c496083
7
+ data.tar.gz: eb82465f57e28ea368c03ff47be3d82fd5211375b7253f06890241ff05d4638151b1e3ac817477b83f0252a66ab28ca9552230516e78b9e4c9980a615dfbc262
@@ -529,6 +529,7 @@ module ZuoraAPI
529
529
  end
530
530
 
531
531
  when :JSON
532
+ body = body.dig("results").present? ? body["results"] : body if body.class == Hash
532
533
  if body.class == Hash && (!body["success"] || !body["Success"] || response.code != 200)
533
534
  messages_array = (body["reasons"] || []).map {|error| error['message']}.compact
534
535
  codes_array = (body["reasons"] || []).map {|error| error['code']}.compact
@@ -599,7 +600,7 @@ module ZuoraAPI
599
600
  end
600
601
  end
601
602
 
602
- #Zuora REST Actions error (Create, Update, Delete)
603
+ #Zuora REST Actions error (Create, Update, Delete, Amend)
603
604
  if body.class == Array
604
605
  all_errors = body.select {|obj| !obj['Success'] || !obj['success'] }.map {|obj| obj['Errors'] || obj['errors'] }.compact
605
606
  all_success = body.select {|obj| obj['Success'] || obj['success']}.compact
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.6.253"
2
+ VERSION = "1.6.254"
3
3
  end
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.6.253
4
+ version: 1.6.254
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-02-15 00:00:00.000000000 Z
11
+ date: 2019-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler