zuora_api 1.12.1 → 1.12.2

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: af70e60b33a8218244160f20471304ba6079c5b516414a4a5f7a47bf9c9f7466
4
- data.tar.gz: 5e4986ecf49fbb0e0b77f56844e26c93f63714eeac75ee2c00ffe2733c557fa9
3
+ metadata.gz: 5163d6aff2701a59e1178b7182c2333d2bacf2c371f6ef6589389ac743365c2c
4
+ data.tar.gz: 9d0cbbfd19126352c0465dcdf8c2d88c711c6bbfc0926ae70ce3242cd778512f
5
5
  SHA512:
6
- metadata.gz: cf78434128fc10062f309563ff05f672008f65efa9cc02677024bab1b379eade787a16addfa6372318fd20d5230cb113d2da3608f48bd09652511c609bc28d8d
7
- data.tar.gz: 0e7a55c6feec168ebbf2007eda632a4a8b2d0066b3be5b8790f10d83bbe6d04e2da23dcb6a85eb120b92e32c4870605838579c5aa3d61a7af720c1d9009af14a
6
+ metadata.gz: fda0780f355916db3cb0b6ccd971ac39924eb85079251091ae6d2fe24be260516cf4932aa7ef211b5c14fd70b1315aa2d526fec868983dc0fb8c4a1e54255c62
7
+ data.tar.gz: 75dcc2bd753a710686f1b44b2ba0bb8a6dfb3984ed986430768081fbc9735701dd46a8f82483cdd81a22c36a26f16c64520082625e9d8e430329bb17b103a0a8
@@ -5,9 +5,9 @@ require 'zuora_api/exceptions'
5
5
 
6
6
  module ZuoraAPI
7
7
  class Login
8
- ENVIRONMENTS = [TEST = 'Test', SANDBOX = 'Sandbox', PRODUCTION = 'Production', PREFORMANCE = 'Preformance', SERVICES = 'Services', UNKNOWN = 'Unknown', STAGING = 'Staging', PREPROD='Preprod' ]
8
+ ENVIRONMENTS = [TEST = 'Test', SANDBOX = 'Sandbox', PRODUCTION = 'Production', PREFORMANCE = 'Preformance', SERVICES = 'Services', UNKNOWN = 'Unknown', STAGING = 'Staging', PREPROD='Preprod', QAD5='QAD5', QAD6='QAD6', QAD6='QAD7', QAD6='QAD8', QAD6='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'}.freeze
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
11
11
  XML_SAVE_OPTIONS = Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION
12
12
  USER_AGENT = "Zuora#{ENV['Z_APPLICATION_NAME']&.capitalize}/#{ENV['Z_APPLICATION_VERSION']&.delete('v')}"
13
13
 
@@ -207,7 +207,7 @@ module ZuoraAPI
207
207
  end
208
208
 
209
209
  def self.environments
210
- %w(Sandbox Production Services Performance Staging Test Preprod)
210
+ %w(Sandbox Production Services Performance Staging Test Preprod QAD5 QAD6 QAD7 QAD8 QAD9)
211
211
  end
212
212
 
213
213
  def self.regions
@@ -221,7 +221,13 @@ module ZuoraAPI
221
221
  "Services" => "https://services347.zuora.com/apps/services/a/",
222
222
  "Staging" => "https://staging2.zuora.com/apps/services/a/",
223
223
  "Test" => "https://test.zuora.com/apps/services/a/",
224
- "Preprod" => "https://preprod.zuora.com/apps/services/a/"},
224
+ "Preprod" => "https://preprod.zuora.com/apps/services/a/",
225
+ "QAD5" => "https://app-5.qad.na.zuora.com/apps/services/a/",
226
+ "QAD6" => "https://app-6.qad.na.zuora.com/apps/services/a/",
227
+ "QAD7" => "https://app-7.qad.na.zuora.com/apps/services/a/",
228
+ "QAD8" => "https://app-8.qad.na.zuora.com/apps/services/a/",
229
+ "QAD9" => "https://app-9.qad.na.zuora.com/apps/services/a/",
230
+ },
225
231
  "EU" => {"Sandbox" => "https://sandbox.eu.zuora.com/apps/services/a/",
226
232
  "Production" => "https://eu.zuora.com/apps/services/a/",
227
233
  "Performance" => "https://pt1.eu.zuora.com/apps/services/a/",
@@ -232,7 +238,13 @@ module ZuoraAPI
232
238
  "Performance" => "https://pt1.na.zuora.com/apps/services/a/",
233
239
  "Services" => "https://services347.na.zuora.com/apps/services/a/",
234
240
  "Test" => "https://test.zuora.com/apps/services/a/",
235
- "Preprod" => "https://preprod.zuora.com/apps/services/a/"},
241
+ "Preprod" => "https://preprod.zuora.com/apps/services/a/",
242
+ "QAD5" => "https://app-5.qad.na.zuora.com/apps/services/a/",
243
+ "QAD6" => "https://app-6.qad.na.zuora.com/apps/services/a/",
244
+ "QAD7" => "https://app-7.qad.na.zuora.com/apps/services/a/",
245
+ "QAD8" => "https://app-8.qad.na.zuora.com/apps/services/a/",
246
+ "QAD9" => "https://app-9.qad.na.zuora.com/apps/services/a/",
247
+ },
236
248
  "JP" => {"Sandbox" => "https://sandbox.ap.zuora.com/apps/services/a/",
237
249
  "Production" => "https://ap.zuora.com/apps/services/a/",
238
250
  "Test" => "https://test.ap.zuora.com/apps/services/a/"}
@@ -273,6 +285,16 @@ module ZuoraAPI
273
285
  case self.hostname
274
286
  when /(?<=\.|\/|-|^)(apisandbox|sandbox)(?=\.|\/|-|$)/
275
287
  self.environment = 'Sandbox'
288
+ when /(?<=\.|\/|-|^)(app-5\.qad)(?=\.|\/|-|$)/
289
+ self.environment = 'QAD5'
290
+ when /(?<=\.|\/|-|^)(app-6\.qad)(?=\.|\/|-|$)/
291
+ self.environment = 'QAD6'
292
+ when /(?<=\.|\/|-|^)(app-7\.qad)(?=\.|\/|-|$)/
293
+ self.environment = 'QAD7'
294
+ when /(?<=\.|\/|-|^)(app-8\.qad)(?=\.|\/|-|$)/
295
+ self.environment = 'QAD8'
296
+ when /(?<=\.|\/|-|^)(app-9\.qad)(?=\.|\/|-|$)/
297
+ self.environment = 'QAD9'
276
298
  when /(?<=\.|\/|^)(service[\d]*|services[\d]*|ep-edge)(?=\.|\/|$)/
277
299
  self.environment = 'Services'
278
300
  when /(?<=\.|\/|-|^)(pt[\d]*)(?=\.|\/|-|$)/
@@ -296,8 +318,8 @@ module ZuoraAPI
296
318
  def update_zconnect_provider
297
319
  update_region if self.region.blank?
298
320
  update_environment if self.environment.blank?
299
- mappings = {"US" => {"Sandbox" => "ZConnectSbx", "Services" => "ZConnectSvcUS", "Production" => "ZConnectProd", "Performance" => "ZConnectPT1", "Preprod" => "ZConnectPreprod", "Test" => "ZConnectTest", "Staging" => "ZConnectQA", "KubeSTG" => "ZConnectDev", "KubeDEV" => "ZConnectDev", "KubePROD" => "ZConnectDev"},
300
- "NA" => {"Sandbox" => "ZConnectSbxNA", "Services" => "ZConnectSvcNA", "Production" => "ZConnectProdNA", "Performance" => "ZConnectPT1NA"},
321
+ mappings = {"US" => {"Sandbox" => "ZConnectSbx", "Services" => "ZConnectSvcUS", "Production" => "ZConnectProd", "Performance" => "ZConnectPT1", "Preprod" => "ZConnectPreprod", "Test" => "ZConnectTest", "Staging" => "ZConnectQA", "QAD5" => "ZConnectQA", "QAD6" => "ZConnectQA", "QAD7" => "ZConnectQA", "QAD8" => "ZConnectQA", "QAD9" => "ZConnectQA", "KubeSTG" => "ZConnectDev", "KubeDEV" => "ZConnectDev", "KubePROD" => "ZConnectDev"},
322
+ "NA" => {"Sandbox" => "ZConnectSbxNA", "Services" => "ZConnectSvcNA", "Production" => "ZConnectProdNA", "Performance" => "ZConnectPT1NA", "QAD5" => "ZConnectQA", "QAD6" => "ZConnectQA", "QAD7" => "ZConnectQA", "QAD8" => "ZConnectQA", "QAD9" => "ZConnectQA"},
301
323
  "EU" => {"Sandbox" => "ZConnectSbxEU", "Services" => "ZConnectSvcEU", "Production" => "ZConnectProdEU", "Performance" => "ZConnectPT1EU", "Test" => "ZConnectTest"},
302
324
  "JP" => {"Sandbox" => "ZConnectSbxAP", "Services" => "ZConnectSvcAP", "Production" => "ZConnectProdAP", "Performance" => "ZConnectPT1AP", "Test" => "ZConnectTest"},
303
325
  "Unknown" => {"Unknown" => "Unknown"}}
@@ -337,6 +359,16 @@ module ZuoraAPI
337
359
  endpoint = "https://rest-staging2.zuora.com"
338
360
  when 'Preprod'
339
361
  endpoint = "https://rest.preprod.zuora.com"
362
+ when 'QAD5'
363
+ endpoint = "https://rest-5.qad.na.zuora.com"
364
+ when 'QAD6'
365
+ endpoint = "https://rest-6.qad.na.zuora.com"
366
+ when 'QAD7'
367
+ endpoint = "https://rest-7.qad.na.zuora.com"
368
+ when 'QAD8'
369
+ endpoint = "https://rest-8.qad.na.zuora.com"
370
+ when 'QAD9'
371
+ endpoint = "https://rest-9.qad.na.zuora.com"
340
372
  when 'Unknown'
341
373
  raise "Environment unknown, returning passed in parameter unaltered"
342
374
  end
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.12.1"
2
+ VERSION = "1.12.2"
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.1
4
+ version: 1.12.2
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-10-28 00:00:00.000000000 Z
11
+ date: 2024-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler