zuora_api 1.11.10 → 1.11.12

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: 16dc8c2867846411498433b6b4815b2db8f2f3981a07595558b14b06e0e15b60
4
- data.tar.gz: 173b5b0bedf1220f2fb2b708d3faecc5ab22421dd479711dec5b73976d3ab24b
3
+ metadata.gz: 4d10d7a72283ca1b8fce1b36bcf62656de9d9b15edeb9305a6b3fc4a827ec61c
4
+ data.tar.gz: ac79f5151438008c1d220908cc0187eb53a3a77e9d155e541ad97e1aa5f27bf2
5
5
  SHA512:
6
- metadata.gz: b24ff60f7601ef8105b3b3cfd454f8af242dd410d2fdd61eac04b8f8127a29ac286762a60eeb07cd609b38693486a7df24e04d381041203f08ab669b4fd591f0
7
- data.tar.gz: 90b4d1d49c9276e4f3a1cc9efaf8168575a8f16a66f88722bbbdab03719044a78a2f02887c9cfef7f20c9d31a1c1e4fab9817356d8a0b401532d42234a56e6d8
6
+ metadata.gz: cb41fa459bced236d864132350b7db88d65fea7e8a7f626e6dd84670b05eae18a9b185c278d3db7e2f11a3689eaaffc500575f22dcc2d54c37ae1db55a2f0903
7
+ data.tar.gz: ca9aa7c5e6057fe0cae2083cf082d6ac0ffd75f184b352cf6d8544cd818542a0580ed4267c874582ade92e2594aac1307b2c9775b3e9bae3fdb0d8117c92fb15
@@ -146,13 +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
- "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"=> ""}
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"=> ""}
156
159
  }
157
160
  return map[self.region][self.environment].insert(-1, path)
158
161
  end
@@ -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,8 +279,10 @@ 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'
284
+ when /(?<=\.|\/|-|^)(preprod|preprod)(?=\.|\/|-|$)/
285
+ self.environment = 'preprod'
279
286
  else
280
287
  self.environment = 'Unknown'
281
288
  end
@@ -287,9 +294,10 @@ module ZuoraAPI
287
294
  def update_zconnect_provider
288
295
  update_region if self.region.blank?
289
296
  update_environment if self.environment.blank?
290
- 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"},
291
298
  "NA" => {"Sandbox" => "ZConnectSbxNA", "Services" => "ZConnectSvcNA", "Production" => "ZConnectProdNA", "Performance" => "ZConnectPT1NA"},
292
299
  "EU" => {"Sandbox" => "ZConnectSbxEU", "Services" => "ZConnectSvcEU", "Production" => "ZConnectProdEU", "Performance" => "ZConnectPT1EU", "Test" => "ZConnectTest"},
300
+ "JP" => {"Sandbox" => "ZConnectSbxAP", "Services" => "ZConnectSvcAP", "Production" => "ZConnectProdAP", "Performance" => "ZConnectPT1AP", "Test" => "ZConnectTest"},
293
301
  "Unknown" => {"Unknown" => "Unknown"}}
294
302
  self.zconnect_provider = mappings[self.region][self.environment]
295
303
  end
@@ -307,7 +315,7 @@ module ZuoraAPI
307
315
  def rest_endpoint(url="", domain=true, prefix='/v1/')
308
316
  update_environment
309
317
  endpoint = url
310
- url_postfix = {"US" => ".", "EU" => ".eu.", "NA" => ".na."}[self.region]
318
+ url_postfix = {"US" => ".", "EU" => ".eu.", "NA" => ".na.", "JP" => ".ap."}[self.region]
311
319
 
312
320
  case self.environment
313
321
  when 'Test'
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.11.10"
2
+ VERSION = "1.11.12"
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.11.10
4
+ version: 1.11.12
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-14 00:00:00.000000000 Z
11
+ date: 2024-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler