zuora_api 1.12.5 → 1.12.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6886834d4630fbee87c486296e50b5739f3b851b20b908a474ab333f17306c66
4
- data.tar.gz: 9a983123ce8cd9df54732f8dbab3215107ce907a5225584cde210712f37dadb4
3
+ metadata.gz: dbece0cb72b61cac206647c582aabb1766eab0138c98ba59522835f9b2bf065f
4
+ data.tar.gz: 6f16d820eec127209f99848ad18621755b107e96fe7cf3791f1c01206d88a709
5
5
  SHA512:
6
- metadata.gz: 68af7589ab085db9fb04eed622e8526613c5623f5ab782881c03a055d8daea68035ec5c53f30024e0470da64bd0e72dc2c2e3fd5d9a4f766a13fc7a94616da6d
7
- data.tar.gz: b1eafafd9f0f6298a7f1a04cb5627134540068a27067e5a4fdc508ea028155a219839218530364e23a93ada0caa8e7518e4a9465bc87cbab64e8b2b88f4e7a57
6
+ metadata.gz: d47bc844b02eb7d5d7da5b78fc4ec5d2b5fd6ebcca30383a355979454a285e63c7870e321f147e938f71cd7723f4c599523e09e4810033ce91a1759e76dd8564
7
+ data.tar.gz: 79e297510545ff655a55581a0e84f72740ba8d5e577cd5ff6d6eddaf202461fafbaefaf629207a8db87fa0c55d4a44c83f82316da869bd89e5750ebb5795865c
@@ -7,7 +7,22 @@ module ZuoraAPI
7
7
  class Login
8
8
  ENVIRONMENTS = [TEST = 'Test', SANDBOX = 'Sandbox', PRODUCTION = 'Production', PREFORMANCE = 'Preformance', SERVICES = 'Services', UNKNOWN = 'Unknown', STAGING = 'Staging', PREPROD='Preprod', QAD5='QAD5', QAD6='QAD6', QAD7='QAD7', QAD8='QAD8', QAD9='QAD9' ]
9
9
  REGIONS = [EU = 'EU', US = 'US', NA = 'NA', JP = 'JP' ]
10
- MIN_Endpoints = {'Test': '140.0', 'Sandbox': '140.0', 'Production': '140.0', 'Performance': '140.0', 'Services': '96.0', 'Unknown': '96.0', 'Staging': '140.0', 'Preprod': '140.0', 'QAD5': '140.0', 'QAD6': '140.0', 'QAD7': '140.0', 'QAD8': '140.0', 'QAD9': '140.0'}.freeze
10
+ WSDL_VERSION = ENV['ZUORA_WSDL_VERSION'] || '148.0'
11
+ MIN_Endpoints = {
12
+ 'Test': WSDL_VERSION,
13
+ 'Sandbox': WSDL_VERSION,
14
+ 'Production': WSDL_VERSION,
15
+ 'Performance': WSDL_VERSION,
16
+ 'Services': '96.0',
17
+ 'Unknown': '96.0',
18
+ 'Staging': WSDL_VERSION,
19
+ 'Preprod': WSDL_VERSION,
20
+ 'QAD5': WSDL_VERSION,
21
+ 'QAD6': WSDL_VERSION,
22
+ 'QAD7': WSDL_VERSION,
23
+ 'QAD8': WSDL_VERSION,
24
+ 'QAD9': WSDL_VERSION
25
+ }.freeze
11
26
  XML_SAVE_OPTIONS = Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION
12
27
  USER_AGENT = "Zuora#{ENV['Z_APPLICATION_NAME']&.capitalize}/#{ENV['Z_APPLICATION_VERSION']&.delete('v')}"
13
28
 
@@ -51,8 +66,6 @@ module ZuoraAPI
51
66
  def initialize(url: nil, entity_id: nil, entity_identifier: nil, session: nil, status: nil, bearer_token: nil, oauth_session_expires_at: nil, **keyword_args)
52
67
  raise "URL is nil or empty, but URL is required" if url.nil? || url.empty?
53
68
  # raise "URL is improper. URL must contain zuora.com, zuora.eu, or zuora.na" if /zuora.com|zuora.eu|zuora.na/ === url
54
- Rails.logger.error("Zuora URL: #{url}")
55
-
56
69
  self.hostname = /(?<=https:\/\/|http:\/\/)(.*?)(?=\/|$)/.match(url)[0] if !/(?<=https:\/\/|http:\/\/)(.*?)(?=\/|$)/.match(url).nil?
57
70
  self.update_environment
58
71
  min_endpoint = MIN_Endpoints[self.environment.to_sym]
@@ -155,9 +168,10 @@ module ZuoraAPI
155
168
  "NA" => {"Sandbox" => "https://zconnect.sandbox.na.zuora.com/api/rest/v1/",
156
169
  "Production" => "https://zconnect.na.zuora.com/api/rest/v1/",
157
170
  "Services"=> ""},
158
- "JP" => {"Sandbox" => "https://zconnect.sandbox.ap.zuora.com/api/rest/v1/",
159
- "Production" => "https://zconnect.ap.zuora.com/api/rest/v1/",
160
- "Services"=> ""}
171
+ "JP" => {
172
+ "Production" => "https://zconnect-prod05.ap.zuora.com/api/rest/v1/",
173
+ "Test" => "https://zconnect-services0003.test.ap.zuora.com/api/rest/v1/"
174
+ }
161
175
  }
162
176
  return map[self.region][self.environment].insert(-1, path)
163
177
  end
@@ -284,8 +298,6 @@ module ZuoraAPI
284
298
 
285
299
  def update_environment
286
300
  if !self.hostname.blank?
287
- Rails.logger.error("Zuora Host - #{self.hostname} - #{caller.to_s}")
288
-
289
301
  case self.hostname
290
302
  when /(?<=\.|\/|-|^)(apisandbox|sandbox)(?=\.|\/|-|$)/
291
303
  self.environment = 'Sandbox'
@@ -392,8 +404,6 @@ module ZuoraAPI
392
404
  end
393
405
 
394
406
  def new_session(auth_type: :basic, debug: false, zuora_track_id: nil)
395
- Rails.logger.error("Login host - #{self.hostname} - #{self.inspect}")
396
-
397
407
  retries ||= 2
398
408
  yield
399
409
 
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.12.5"
2
+ VERSION = "1.12.7"
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.12.5
4
+ version: 1.12.7
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: 2025-01-24 00:00:00.000000000 Z
11
+ date: 2025-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler