zuora_api 1.9.02 → 1.9.07

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 920e55fd117bee280019ee427eaa7ab863c2815845589dd635410d0748d0758d
4
- data.tar.gz: f491d59d805dcdccfa3c4ede48ca0bf45ed4e14d3325a6ab4d7da90a3c682eb2
3
+ metadata.gz: eac21d6215f0ab25d7ec77243bdf3a0a1e144cffe89fc36cb2f054be7d429b6d
4
+ data.tar.gz: b1664b343cbf0045ecd156325dc4dbd2975dbe85f2972aa03a797c5cccc88cd1
5
5
  SHA512:
6
- metadata.gz: 94956aa752fef26412f20338aa0172a2a66dfb96f0c61f5a18c9953ab3ee63353e6e6ca220e4dc08a23b21f2b6bb53f00cb2e6f47a2e6325f3e1d7c2bb594d97
7
- data.tar.gz: 7d7d858162755f632cce0daf4bdd605c96af943477e55b5f17f2bda5d5b6e2cfb80c3a5325d86572f5d9e93ee3384ce1ecd2ba16e86da7dbcd32c1a450128333
6
+ metadata.gz: 4d10222b8220ce484cf7a75c36a04697b2defcf88a130c10e3dd22e8c6f040fc1794d0af243b5c9a56fb163e331aadd5a14e7679fc98f88924d0c3bad55981d6
7
+ data.tar.gz: fe07226773ef63aa5435592fd5c81c40dde1e7dc64b1551b4e692b0cd1215b373620864e36b0d21c8439dd5c41916f165c0e6fde5ea67ccbf246c5a945b65eec
@@ -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': '107.0', 'Sandbox': '107.0', 'Production': '107.0', 'Performance': '107.0', 'Services': '96.0', 'Unknown': '96.0', 'Staging': '107.0'}.freeze
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://reporting-sbx.zan.0001.sbx.auw2.zuora.com/api/rest/v1/",
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
- headers_blob: ex.response.request.options[:headers].map{|k,v| [k.to_s, k.to_s.downcase.strip == "authorization" ? "VALUE FILTERED" : v]}.to_h.to_s,
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
- headers_blob: ex.response.headers.to_s,
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
- headers_blob: ex.request.options[:headers].map{|k,v| [k.to_s, k.to_s.downcase.strip == "authorization" ? "VALUE FILTERED" : v]}.to_h.to_s
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 = 'FATAL_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?
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.9.02"
2
+ VERSION = "1.9.07"
3
3
  end
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.02
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-04-19 00:00:00.000000000 Z
11
+ date: 2021-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler