zuora_api 1.11.10 → 1.11.11
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 -2
- 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: a15b43fd8561de7cfc9699d3f3923cd1758bc46f06ff918c2f7030d9d75fc4d5
|
|
4
|
+
data.tar.gz: ef25da53baff7762986b5844a8623792522984678e41886a291858f18213a989
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 708ae3b0d9b923379a88c2d8ee833a671c69bbc82094c17f4cefd2b643d1901c748ab7fd8267874b8b78b3a733a5d4f3a59370a8fec587aca5db8923ef412339
|
|
7
|
+
data.tar.gz: f7f637c972628952de61f9d95b27518e0e53b83ecad618a3f031a69d5a7a64bf13669ade60e7100bc1acbc4244c27c19d18ee1dcc9217af6ac3aae0a1f8f2619
|
data/lib/zuora_api/login.rb
CHANGED
|
@@ -152,6 +152,9 @@ module ZuoraAPI
|
|
|
152
152
|
"Test" => "https://zconnect-services0002.test.eu.zuora.com/api/rest/v1/"},
|
|
153
153
|
"NA" => {"Sandbox" => "https://zconnect.sandbox.na.zuora.com/api/rest/v1/",
|
|
154
154
|
"Production" => "https://zconnect.na.zuora.com/api/rest/v1/",
|
|
155
|
+
"Services"=> ""},
|
|
156
|
+
"JP" => {"Sandbox" => "https://zconnect.sandbox.ap.zuora.com/api/rest/v1/",
|
|
157
|
+
"Production" => "https://zconnect.ap.zuora.com/api/rest/v1/",
|
|
155
158
|
"Services"=> ""}
|
|
156
159
|
}
|
|
157
160
|
return map[self.region][self.environment].insert(-1, path)
|
|
@@ -252,6 +255,8 @@ module ZuoraAPI
|
|
|
252
255
|
self.region = "EU"
|
|
253
256
|
elsif /(?<=\.|\/|^)(na)(?=\.|\/|$)/ === self.hostname
|
|
254
257
|
self.region = "NA"
|
|
258
|
+
elsif /(?<=\.|\/|^)(ap)(?=\.|\/|$)/ === self.hostname
|
|
259
|
+
self.region = "JP"
|
|
255
260
|
else
|
|
256
261
|
self.region = "US"
|
|
257
262
|
end
|
|
@@ -274,7 +279,7 @@ module ZuoraAPI
|
|
|
274
279
|
self.environment = 'Staging'
|
|
275
280
|
when /(?<=\.|\/|^)(test)(?=\.|\/|$)/
|
|
276
281
|
self.environment = 'Test'
|
|
277
|
-
when /(?<=\.|\/|^)(www|api)(?=\.|\/|$)/, /(^|tls10\.|origin-www\.|zforsf\.|eu\.|na\.)(zuora\.com)/
|
|
282
|
+
when /(?<=\.|\/|^)(www|api)(?=\.|\/|$)/, /(^|tls10\.|origin-www\.|zforsf\.|eu\.|na\.|ap\.)(zuora\.com)/
|
|
278
283
|
self.environment = 'Production'
|
|
279
284
|
else
|
|
280
285
|
self.environment = 'Unknown'
|
|
@@ -290,6 +295,7 @@ module ZuoraAPI
|
|
|
290
295
|
mappings = {"US" => {"Sandbox" => "ZConnectSbx", "Services" => "ZConnectSvcUS", "Production" => "ZConnectProd", "Performance" => "ZConnectPT1", "Test" => "ZConnectTest", "Staging" => "ZConnectQA", "KubeSTG" => "ZConnectDev", "KubeDEV" => "ZConnectDev", "KubePROD" => "ZConnectDev"},
|
|
291
296
|
"NA" => {"Sandbox" => "ZConnectSbxNA", "Services" => "ZConnectSvcNA", "Production" => "ZConnectProdNA", "Performance" => "ZConnectPT1NA"},
|
|
292
297
|
"EU" => {"Sandbox" => "ZConnectSbxEU", "Services" => "ZConnectSvcEU", "Production" => "ZConnectProdEU", "Performance" => "ZConnectPT1EU", "Test" => "ZConnectTest"},
|
|
298
|
+
"JP" => {"Sandbox" => "ZConnectSbxAP", "Services" => "ZConnectSvcAP", "Production" => "ZConnectProdAP", "Performance" => "ZConnectPT1AP", "Test" => "ZConnectTest"},
|
|
293
299
|
"Unknown" => {"Unknown" => "Unknown"}}
|
|
294
300
|
self.zconnect_provider = mappings[self.region][self.environment]
|
|
295
301
|
end
|
|
@@ -307,7 +313,7 @@ module ZuoraAPI
|
|
|
307
313
|
def rest_endpoint(url="", domain=true, prefix='/v1/')
|
|
308
314
|
update_environment
|
|
309
315
|
endpoint = url
|
|
310
|
-
url_postfix = {"US" => ".", "EU" => ".eu.", "NA" => ".na."}[self.region]
|
|
316
|
+
url_postfix = {"US" => ".", "EU" => ".eu.", "NA" => ".na.", "JP" => ".ap."}[self.region]
|
|
311
317
|
|
|
312
318
|
case self.environment
|
|
313
319
|
when 'Test'
|
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.11.
|
|
4
|
+
version: 1.11.11
|
|
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: 2024-03-
|
|
11
|
+
date: 2024-03-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|