zuora_api 1.9.02 → 1.9.07
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 +8 -7
- 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: eac21d6215f0ab25d7ec77243bdf3a0a1e144cffe89fc36cb2f054be7d429b6d
|
4
|
+
data.tar.gz: b1664b343cbf0045ecd156325dc4dbd2975dbe85f2972aa03a797c5cccc88cd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d10222b8220ce484cf7a75c36a04697b2defcf88a130c10e3dd22e8c6f040fc1794d0af243b5c9a56fb163e331aadd5a14e7679fc98f88924d0c3bad55981d6
|
7
|
+
data.tar.gz: fe07226773ef63aa5435592fd5c81c40dde1e7dc64b1551b4e692b0cd1215b373620864e36b0d21c8439dd5c41916f165c0e6fde5ea67ccbf246c5a945b65eec
|
data/lib/zuora_api/login.rb
CHANGED
@@ -7,7 +7,7 @@ module ZuoraAPI
|
|
7
7
|
class Login
|
8
8
|
ENVIRONMENTS = [TEST = 'Test', SANDBOX = 'Sandbox', PRODUCTION = 'Production', PREFORMANCE = 'Preformance', SERVICES = 'Services', UNKNOWN = 'Unknown', STAGING = 'Staging' ]
|
9
9
|
REGIONS = [EU = 'EU', US = 'US', NA = 'NA' ]
|
10
|
-
MIN_Endpoints = {'Test': '
|
10
|
+
MIN_Endpoints = {'Test': '108.0', 'Sandbox': '108.0', 'Production': '108.0', 'Performance': '108.0', 'Services': '96.0', 'Unknown': '96.0', 'Staging': '108.0'}.freeze
|
11
11
|
XML_SAVE_OPTIONS = Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION
|
12
12
|
|
13
13
|
CONNECTION_EXCEPTIONS = [
|
@@ -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,7 +644,7 @@ 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?
|
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.07
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|