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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 228a61ab44766ad48b8a5e58fe834c7c415ab61d19b79fd51c08df42a37a84b2
4
- data.tar.gz: 9537c0a5dd82836460ad43ebc6a9518b402713d7a9ec07d02a509b59610f5d45
3
+ metadata.gz: d6e64337c34783cccc2728c5a083e3f41c8601f48f27b8d836ebf8bfc2c6fe16
4
+ data.tar.gz: cb402b07025dec307d1e025455275723f76bcc8ff3b77068f5d59a326bac0860
5
5
  SHA512:
6
- metadata.gz: 9a821820dcb38840f77c213109eee1f46a35230cb38d5e19caa581ffc60c15b89d9402b391f123515c0612f586265860cc178cb73d326bf7ce5837cfe55460ac
7
- data.tar.gz: a278da65d3886313129c04907370bcac0c96a4bb861ecc9836bb7cc4631deb2cdf43e2ff6033819a7f3a14cb84df183c164f792595e7c2f88269528bfb783a3e
6
+ metadata.gz: 674922fea272843b6430b56230f9db90ab57a3d368990ec15998f5c3c7dabc55c2fbd6b14834ccf1c8ee87d1e39ef96bb8687a63c82283c81a02a4d513bc3a1f
7
+ data.tar.gz: ea2596a105636403530c22aacaf9a0365f223d3cc48ab1264a70aa18720f3391e5f7070cb5c97a4cf8c16b7f812a3be80da30a2cebf531fd6d586d1d1b85091d
@@ -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,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 = '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?
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
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.9.01"
2
+ VERSION = "1.9.06"
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.01
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-04-19 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler