zuora_api 1.12.5 → 1.12.6
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 +4 -9
- 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: 19b10b38c84978bd1a152b389ccf6aa474497c62f43a6ebe6fac4b448a059b74
|
4
|
+
data.tar.gz: e613cd08566392bc61a5ebda38369154560690e9892ac0f0752ecd2492dc72f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abbb97a9414ad98ff37a46a51e442c0b06a5fbc3a181ebddf0653925635a5385b521e37ff09c75cba36dc3bacaba4f38b81800470ca37904397d5fe55965ec6f
|
7
|
+
data.tar.gz: 0d16261092ebdb9acbf2804388a564f4afae5a7cd2ae64672e15ffe537fa97f90db3e266cbfa42c21c92687b704bf22ab182abd624552a86a66eca1eb3ba13af
|
data/lib/zuora_api/login.rb
CHANGED
@@ -51,8 +51,6 @@ module ZuoraAPI
|
|
51
51
|
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
52
|
raise "URL is nil or empty, but URL is required" if url.nil? || url.empty?
|
53
53
|
# 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
54
|
self.hostname = /(?<=https:\/\/|http:\/\/)(.*?)(?=\/|$)/.match(url)[0] if !/(?<=https:\/\/|http:\/\/)(.*?)(?=\/|$)/.match(url).nil?
|
57
55
|
self.update_environment
|
58
56
|
min_endpoint = MIN_Endpoints[self.environment.to_sym]
|
@@ -155,9 +153,10 @@ module ZuoraAPI
|
|
155
153
|
"NA" => {"Sandbox" => "https://zconnect.sandbox.na.zuora.com/api/rest/v1/",
|
156
154
|
"Production" => "https://zconnect.na.zuora.com/api/rest/v1/",
|
157
155
|
"Services"=> ""},
|
158
|
-
"JP" => {
|
159
|
-
|
160
|
-
|
156
|
+
"JP" => {
|
157
|
+
"Production" => "https://zconnect-prod05.ap.zuora.com/api/rest/v1/",
|
158
|
+
"Test" => "https://zconnect-services0003.test.ap.zuora.com/api/rest/v1/"
|
159
|
+
}
|
161
160
|
}
|
162
161
|
return map[self.region][self.environment].insert(-1, path)
|
163
162
|
end
|
@@ -284,8 +283,6 @@ module ZuoraAPI
|
|
284
283
|
|
285
284
|
def update_environment
|
286
285
|
if !self.hostname.blank?
|
287
|
-
Rails.logger.error("Zuora Host - #{self.hostname} - #{caller.to_s}")
|
288
|
-
|
289
286
|
case self.hostname
|
290
287
|
when /(?<=\.|\/|-|^)(apisandbox|sandbox)(?=\.|\/|-|$)/
|
291
288
|
self.environment = 'Sandbox'
|
@@ -392,8 +389,6 @@ module ZuoraAPI
|
|
392
389
|
end
|
393
390
|
|
394
391
|
def new_session(auth_type: :basic, debug: false, zuora_track_id: nil)
|
395
|
-
Rails.logger.error("Login host - #{self.hostname} - #{self.inspect}")
|
396
|
-
|
397
392
|
retries ||= 2
|
398
393
|
yield
|
399
394
|
|
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.12.
|
4
|
+
version: 1.12.6
|
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-
|
11
|
+
date: 2025-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|