zuora_api 1.11.11 → 1.11.13
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 +13 -12
- 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: 89d00e79ae0644cf2fa9811f4fc2a8a9fd6b786ec752b134b3bdaba3c464a1ce
|
|
4
|
+
data.tar.gz: 8d2cbac79a75c33626832244a2ac57885a70916db8cf2f555c5a5c95eb54c170
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6fb5c67ccc7c8c7ea52232759842adb50da70da0e3fc08a318cde13d33cbd3707c40fa025a040afabf5e12f7ce241454c34a7beec64b942f38108dd2712b622b
|
|
7
|
+
data.tar.gz: f95141c625e08e48cff18014431c88e8d432212c4bcb8463dea94d93ce1b73a17a580695bfb4360d377bf307bd4c926c4afdc50f4d3aad03fc3349c7eabe2042
|
data/lib/zuora_api/login.rb
CHANGED
|
@@ -146,16 +146,16 @@ module ZuoraAPI
|
|
|
146
146
|
"Staging" => "https://reporting-stg11.zan.svc.auw2.zuora.com/api/rest/v1/",
|
|
147
147
|
"Performance" => "https://zconnectpt1.zuora.com/api/rest/v1/",
|
|
148
148
|
"Services" => "https://reporting-svc08.svc.auw2.zuora.com/api/rest/v1/"},
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
149
|
+
"EU" => {"Sandbox" => "https://zconnect.sandbox.eu.zuora.com/api/rest/v1/",
|
|
150
|
+
"Production" => "https://zconnect.eu.zuora.com/api/rest/v1/",
|
|
151
|
+
"Services"=> "https://reporting-sbx0000.sbx.aec1.zuora.com/api/rest/v1/",
|
|
152
|
+
"Test" => "https://zconnect-services0002.test.eu.zuora.com/api/rest/v1/"},
|
|
153
|
+
"NA" => {"Sandbox" => "https://zconnect.sandbox.na.zuora.com/api/rest/v1/",
|
|
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/",
|
|
158
|
+
"Services"=> ""}
|
|
159
159
|
}
|
|
160
160
|
return map[self.region][self.environment].insert(-1, path)
|
|
161
161
|
end
|
|
@@ -281,6 +281,8 @@ module ZuoraAPI
|
|
|
281
281
|
self.environment = 'Test'
|
|
282
282
|
when /(?<=\.|\/|^)(www|api)(?=\.|\/|$)/, /(^|tls10\.|origin-www\.|zforsf\.|eu\.|na\.|ap\.)(zuora\.com)/
|
|
283
283
|
self.environment = 'Production'
|
|
284
|
+
when /(?<=\.|\/|-|^)(preprod|preprod)(?=\.|\/|-|$)/
|
|
285
|
+
self.environment = 'preprod'
|
|
284
286
|
else
|
|
285
287
|
self.environment = 'Unknown'
|
|
286
288
|
end
|
|
@@ -292,7 +294,7 @@ module ZuoraAPI
|
|
|
292
294
|
def update_zconnect_provider
|
|
293
295
|
update_region if self.region.blank?
|
|
294
296
|
update_environment if self.environment.blank?
|
|
295
|
-
mappings = {"US" => {"Sandbox" => "ZConnectSbx", "Services" => "ZConnectSvcUS", "Production" => "ZConnectProd", "Performance" => "ZConnectPT1", "Test" => "ZConnectTest", "Staging" => "ZConnectQA", "KubeSTG" => "ZConnectDev", "KubeDEV" => "ZConnectDev", "KubePROD" => "ZConnectDev"},
|
|
297
|
+
mappings = {"US" => {"Sandbox" => "ZConnectSbx", "Services" => "ZConnectSvcUS", "Production" => "ZConnectProd", "Performance" => "ZConnectPT1", "PreProd" => "ZConnectPreProd", "Test" => "ZConnectTest", "Staging" => "ZConnectQA", "KubeSTG" => "ZConnectDev", "KubeDEV" => "ZConnectDev", "KubePROD" => "ZConnectDev"},
|
|
296
298
|
"NA" => {"Sandbox" => "ZConnectSbxNA", "Services" => "ZConnectSvcNA", "Production" => "ZConnectProdNA", "Performance" => "ZConnectPT1NA"},
|
|
297
299
|
"EU" => {"Sandbox" => "ZConnectSbxEU", "Services" => "ZConnectSvcEU", "Production" => "ZConnectProdEU", "Performance" => "ZConnectPT1EU", "Test" => "ZConnectTest"},
|
|
298
300
|
"JP" => {"Sandbox" => "ZConnectSbxAP", "Services" => "ZConnectSvcAP", "Production" => "ZConnectProdAP", "Performance" => "ZConnectPT1AP", "Test" => "ZConnectTest"},
|
|
@@ -1378,7 +1380,6 @@ module ZuoraAPI
|
|
|
1378
1380
|
status_code = response.code if response
|
|
1379
1381
|
case response
|
|
1380
1382
|
when Net::HTTPOK
|
|
1381
|
-
Rails.logger.warn("Headers: #{response.to_hash.to_s}")
|
|
1382
1383
|
if output_file_name.present?
|
|
1383
1384
|
file_ending ||= output_file_name.end_with?(".csv.zip") ? ".csv.zip" : File.extname(output_file_name)
|
|
1384
1385
|
filename ||= File.basename(output_file_name, file_ending)
|
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.13
|
|
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-
|
|
11
|
+
date: 2024-10-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|