zuora_api 1.7.62 → 1.7.63
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 +22 -17
- data/lib/zuora_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88e37565531ff8c2754161d3f80ca9a85595ba7ae8edf3b8197f5725befc380d
|
|
4
|
+
data.tar.gz: f772100edddb68b366a278b5495be155e31ca02a5bfdbbad4bd9e4c61b892f11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e5e6696b9959dab076dae74897fe2740e097d4000362c090b4598be754fab34bcbd07b84d1c05bdd46f2f7d2549bf5ad34538ad42bfcbb8c26f0f959c7e43a08
|
|
7
|
+
data.tar.gz: fa8b457a3dd8628cf580d29bb2181da3213ca40a2f707693ac8e5647d458766dc01e1c8c1e98cac9b548e0883f6e00c9c9feafa5a04ee930a01208f28aa957f1
|
data/lib/zuora_api/login.rb
CHANGED
|
@@ -640,24 +640,29 @@ module ZuoraAPI
|
|
|
640
640
|
end
|
|
641
641
|
|
|
642
642
|
when :JSON
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
end
|
|
653
|
-
when /^GET::404::\/query\/jobs\/([a-zA-Z0-9\-_]*)$/ #Get DQ job not found
|
|
654
|
-
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(body.dig('message'), response) if body.dig('message').present?
|
|
655
|
-
when /^POST::400::\/query\/jobs$/ #Create DQ job
|
|
656
|
-
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(body.dig('message'), response) if body.dig('message').present?
|
|
643
|
+
case request.path.path
|
|
644
|
+
when /^\/query\/jobs.*/ #DataQuery Paths
|
|
645
|
+
return if body.class != Hash
|
|
646
|
+
case match_string
|
|
647
|
+
when /^GET::200::\/query\/jobs\/([a-zA-Z0-9\-_]+)$/ #Get DQ job, Capture of the id is present if needed in future error responses.
|
|
648
|
+
if body.dig('data', "errorCode") == "LINK_10000005"
|
|
649
|
+
raise ZuoraAPI::Exceptions::ZuoraAPITemporaryError.new(body.dig('data', "errorMessage"), response)
|
|
650
|
+
elsif (body.dig('data', "errorMessage").present? || body.dig('data', "queryStatus") == "failed")
|
|
651
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(body.dig('data', "errorMessage"), response)
|
|
657
652
|
end
|
|
658
|
-
when
|
|
659
|
-
|
|
660
|
-
|
|
653
|
+
when /^GET::404::\/query\/jobs\/([a-zA-Z0-9\-_]+)$/ #Get DQ job not found, capture of the id is present if needed in future error responses.
|
|
654
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(body.dig('message'), response) if body.dig('message').present?
|
|
655
|
+
when /^POST::400::\/query\/jobs$/ #Create DQ job
|
|
656
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(body.dig('message'), response) if body.dig('message').present?
|
|
657
|
+
end
|
|
658
|
+
when /^\/api\/rest\/v1\/reports.*/ #Reporting Paths
|
|
659
|
+
if body.dig('message') == "com.zuora.rest.RestUsageException: The user does not have permissions for this API."
|
|
660
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(body.dig('message'), response)
|
|
661
|
+
end
|
|
662
|
+
case match_string
|
|
663
|
+
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.
|
|
664
|
+
if response.parsed_response.dig("ZanResponse", "response", "message").present?
|
|
665
|
+
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(response.parsed_response.dig("ZanResponse", "response", "message"), response)
|
|
661
666
|
end
|
|
662
667
|
end
|
|
663
668
|
end
|
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.63
|
|
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-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|