zuora_api 1.9.01 → 1.9.06
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zuora_api/login.rb +8 -6
- 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: d6e64337c34783cccc2728c5a083e3f41c8601f48f27b8d836ebf8bfc2c6fe16
|
4
|
+
data.tar.gz: cb402b07025dec307d1e025455275723f76bcc8ff3b77068f5d59a326bac0860
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 674922fea272843b6430b56230f9db90ab57a3d368990ec15998f5c3c7dabc55c2fbd6b14834ccf1c8ee87d1e39ef96bb8687a63c82283c81a02a4d513bc3a1f
|
7
|
+
data.tar.gz: ea2596a105636403530c22aacaf9a0365f223d3cc48ab1264a70aa18720f3391e5f7070cb5c97a4cf8c16b7f812a3be80da30a2cebf531fd6d586d1d1b85091d
|
data/lib/zuora_api/login.rb
CHANGED
@@ -138,13 +138,14 @@ module ZuoraAPI
|
|
138
138
|
def reporting_url(path)
|
139
139
|
map = {"US" => {"Sandbox" => "https://zconnectsandbox.zuora.com/api/rest/v1/",
|
140
140
|
"Production" => "https://zconnect.zuora.com/api/rest/v1/",
|
141
|
-
"Test" => "https://
|
141
|
+
"Test" => "https://zconnect-services0001.test.zuora.com/api/rest/v1/",
|
142
142
|
"Staging" => "https://reporting-stg11.zan.svc.auw2.zuora.com/api/rest/v1/",
|
143
143
|
"Performance" => "https://zconnectpt1.zuora.com/api/rest/v1/",
|
144
144
|
"Services" => "https://reporting-svc08.svc.auw2.zuora.com/api/rest/v1/"},
|
145
145
|
"EU" => {"Sandbox" => "https://zconnect.sandbox.eu.zuora.com/api/rest/v1/",
|
146
146
|
"Production" => "https://zconnect.eu.zuora.com/api/rest/v1/",
|
147
|
-
"Services"=> "https://reporting-sbx0000.sbx.aec1.zuora.com/api/rest/v1/"
|
147
|
+
"Services"=> "https://reporting-sbx0000.sbx.aec1.zuora.com/api/rest/v1/",
|
148
|
+
"Test" => "https://zconnect-services0002.test.eu.zuora.com/api/rest/v1/"},
|
148
149
|
"NA" => {"Sandbox" => "https://zconnect.sandbox.na.zuora.com/api/rest/v1/",
|
149
150
|
"Production" => "https://zconnect.na.zuora.com/api/rest/v1/",
|
150
151
|
"Services"=> ""}
|
@@ -561,12 +562,12 @@ module ZuoraAPI
|
|
561
562
|
request: {
|
562
563
|
method: ex.response.request.http_method.to_s.split("Net::HTTP::").last.upcase,
|
563
564
|
params: ex.response.request.raw_body.to_s,
|
564
|
-
|
565
|
+
headers: ex.response.request.options[:headers].map{|k,v| [k.to_s, k.to_s.downcase.strip == "authorization" ? "VALUE FILTERED" : v]}.to_h,
|
565
566
|
},
|
566
567
|
response: {
|
567
568
|
status: ex.response.code,
|
568
569
|
params: ex.response.body.to_s,
|
569
|
-
|
570
|
+
headers: ex.response.headers,
|
570
571
|
},
|
571
572
|
zuora_trace_id: ex.response.headers["zuora-request-id"],
|
572
573
|
zuora_track_id: ex.response.request.options[:headers]["Zuora-Track-Id"],
|
@@ -577,7 +578,7 @@ module ZuoraAPI
|
|
577
578
|
request: {
|
578
579
|
method: ex.request.http_method.to_s.split("Net::HTTP::").last.upcase,
|
579
580
|
params: ex.request.options[:body],
|
580
|
-
|
581
|
+
headers: ex.request.options[:headers].map{|k,v| [k.to_s, k.to_s.downcase.strip == "authorization" ? "VALUE FILTERED" : v]}.to_h
|
581
582
|
}
|
582
583
|
})
|
583
584
|
args.merge!({
|
@@ -643,10 +644,11 @@ module ZuoraAPI
|
|
643
644
|
result = body.xpath('//ns2:Status', 'ns2' => 'http://object.api.zuora.com/').text
|
644
645
|
if result == 'Failed'
|
645
646
|
message = body.xpath('//ns2:StatusReason', 'ns2' => 'http://object.api.zuora.com/').text
|
646
|
-
error = '
|
647
|
+
error = 'UNEXPECTED_ERROR'
|
647
648
|
if message.present?
|
648
649
|
identifier, new_message = message.scan(/^([\w\d]{16})\: (.*)/).first
|
649
650
|
error, message = ['UNEXPECTED_ERROR', new_message] if new_message.present?
|
651
|
+
error, message = ['TRANSACTION_FAILED', new_message.concat(" Please see KC for the Max Timeout Specification https://community.zuora.com/t5/Release-Notifications/Upcoming-Change-for-AQuA-and-Data-Source-Export-January-2021/ba-p/35024")] if new_message.include?("The query exceeded maximum processing time")
|
650
652
|
else
|
651
653
|
message = 'Export failed due to unknown reason. Consult api logs.'
|
652
654
|
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.9.
|
4
|
+
version: 1.9.06
|
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: 2021-
|
11
|
+
date: 2021-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|