zuora_api 1.6.253 → 1.6.254
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 +2 -1
- data/lib/zuora_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6128f5dcd59c8e19f685147b06d6868a4dc8c1f1
|
|
4
|
+
data.tar.gz: 40d87abab8c18aacadbfacdff0881ecc067a01e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 26edd6cdeaf34cb552b9b158f86f3108cc6396ff949e8e0246dcfea79f22b5bf6f1ff1a1e2d7d1f109ef2a34e624e03268fb5b6494c693f9ede2afe54c496083
|
|
7
|
+
data.tar.gz: eb82465f57e28ea368c03ff47be3d82fd5211375b7253f06890241ff05d4638151b1e3ac817477b83f0252a66ab28ca9552230516e78b9e4c9980a615dfbc262
|
data/lib/zuora_api/login.rb
CHANGED
|
@@ -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
|
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.6.
|
|
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-
|
|
11
|
+
date: 2019-02-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|