zuora_api 1.7.64 → 1.7.65b
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/Gemfile.lock +1 -1
- data/lib/zuora_api/login.rb +8 -2
- data/lib/zuora_api/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c2cbbb29a43233ab20aa0c0c03ad09170070fa3d46b4fda9ef03cb4ff6d88c3a
|
|
4
|
+
data.tar.gz: c4b2c7f25f30ec251b1a2c310b87bb4c60e42a8f6d67362b208420b391fb8bf3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c3a02b7dd3ee4f89503d7058595bda561d3a1753ee76ba6d697d8bbd3d9a56268fd99b6e10f198c30efd74a6592f85bf5d6d2182cc0f9477320fe67e2dcf94f2
|
|
7
|
+
data.tar.gz: c269803e8561fc7d787dbe34198331e3a99a2724e945520b68376119af4d69f1da9ada4e4cb725a50f897a4ba479b1b56785adff658b327e716cb89c58c12165
|
data/Gemfile.lock
CHANGED
data/lib/zuora_api/login.rb
CHANGED
|
@@ -663,7 +663,7 @@ module ZuoraAPI
|
|
|
663
663
|
raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new("Internal Server Error. The Reporting API is down. Contact Support.")
|
|
664
664
|
end
|
|
665
665
|
case match_string
|
|
666
|
-
when /^GET::400::\/api\/rest\/v1\/reports\/([a-zA-Z0-9\-_]+)\/report-details$/ # Get report, capture of the id is present if needed in future error responses.
|
|
666
|
+
when /^GET::400::\/api\/rest\/v1\/reports\/(reportlabels\/)?([a-zA-Z0-9\-_]+)\/report-details$/ # Get report, capture of the id is present if needed in future error responses.
|
|
667
667
|
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(reporting_message, response) if reporting_message.present?
|
|
668
668
|
end
|
|
669
669
|
end
|
|
@@ -794,7 +794,13 @@ module ZuoraAPI
|
|
|
794
794
|
if body.class == Hash && body['message'].present?
|
|
795
795
|
raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new(body['message'], response)
|
|
796
796
|
else
|
|
797
|
-
|
|
797
|
+
response_content_types = response.headers.transform_keys(&:downcase).fetch('content-type', []).first || ''
|
|
798
|
+
|
|
799
|
+
if response_content_types.include?('application/xml') || response_content_types.include?('text/xml')
|
|
800
|
+
self.raise_errors(type: :SOAP, body: Nokogiri::XML(response.body), response: response)
|
|
801
|
+
else
|
|
802
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new(response.body, response)
|
|
803
|
+
end
|
|
798
804
|
end
|
|
799
805
|
elsif ![200,201].include?(response.code)
|
|
800
806
|
if body['message'].present?
|
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.7.
|
|
4
|
+
version: 1.7.65b
|
|
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: 2020-04-
|
|
11
|
+
date: 2020-04-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -182,9 +182,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
182
182
|
version: '0'
|
|
183
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
184
|
requirements:
|
|
185
|
-
- - "
|
|
185
|
+
- - ">"
|
|
186
186
|
- !ruby/object:Gem::Version
|
|
187
|
-
version:
|
|
187
|
+
version: 1.3.1
|
|
188
188
|
requirements: []
|
|
189
189
|
rubygems_version: 3.0.3
|
|
190
190
|
signing_key:
|