zuora_api 1.11.0 → 1.11.1

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: 2c3e2e3e17ebf318b524af894ebb8d0fdd6c943724757e0ac7312b4038f315cf
4
- data.tar.gz: d4572546c89bf71cfd44816af541acd7ccd05f9f78cea673a8d752cf5f5749ab
3
+ metadata.gz: 6b989d5765f32254e3366c7a8ac1a10767dde25e017c5c65ed5e5bf632c0dd7b
4
+ data.tar.gz: 4a3eba3c15f5aa826ae5706ba1cb75bf52912d3a8f14fc6539ecdec24b1edb5e
5
5
  SHA512:
6
- metadata.gz: b92b7964475c93e2d17ee6a5b015bf8657f8f143b3c69f5e7285eb027a0db86c6b262cf07c442ba25add1ef66ce1d98bd659b33ee296376259d6eee5ec9c21d2
7
- data.tar.gz: 4fb7b0e5ba49c738e2f8f5c8804b14fbe65a5bde5263cf60324848bc25477b58015987bb0ee01723791d58562b778b3029f67c0f77ce5fd5f47514c48a4de32f
6
+ metadata.gz: 4d8bf8df713706127297a8e4cb44f2a864f5d45fd5e84b59941b70e8e0faf778af54a0e54fb956bbad6bcef4343fe03272c2eb706da2dd87522a1fa1e88aa915
7
+ data.tar.gz: 50acd6787f23d50acc8b258a8a0c2af5737f668331615703178b0bcbaa30d1c4e41627c7f53ad2ac56a4f64fc3a21cb119561077cb43651d71fd5f41ca0594be
@@ -7,7 +7,7 @@ module ZuoraAPI
7
7
  class Login
8
8
  ENVIRONMENTS = [TEST = 'Test', SANDBOX = 'Sandbox', PRODUCTION = 'Production', PREFORMANCE = 'Preformance', SERVICES = 'Services', UNKNOWN = 'Unknown', STAGING = 'Staging' ]
9
9
  REGIONS = [EU = 'EU', US = 'US', NA = 'NA' ]
10
- MIN_Endpoints = {'Test': '120.0', 'Sandbox': '120.0', 'Production': '120.0', 'Performance': '120.0', 'Services': '96.0', 'Unknown': '96.0', 'Staging': '121.0'}.freeze
10
+ MIN_Endpoints = {'Test': '126.0', 'Sandbox': '126.0', 'Production': '126.0', 'Performance': '126.0', 'Services': '96.0', 'Unknown': '96.0', 'Staging': '127.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
 
@@ -225,7 +225,8 @@ module ZuoraAPI
225
225
  "NA" => {"Sandbox" => "https://sandbox.na.zuora.com/apps/services/a/",
226
226
  "Production" => "https://na.zuora.com/apps/services/a/",
227
227
  "Performance" => "https://pt1.na.zuora.com/apps/services/a/",
228
- "Services" => "https://services347.na.zuora.com/apps/services/a/"}
228
+ "Services" => "https://services347.na.zuora.com/apps/services/a/",
229
+ "Test" => "https://test.zuora.com/apps/services/a/"}
229
230
  }
230
231
  end
231
232
 
@@ -695,6 +696,7 @@ module ZuoraAPI
695
696
  if body.dig('data', "errorCode") == "LINK_10000005"
696
697
  raise ZuoraAPI::Exceptions::ZuoraAPITemporaryError.new(body.dig('data', "errorMessage"), response)
697
698
  elsif (body.dig('data', "errorMessage").present? || body.dig('data', "queryStatus") == "failed")
699
+ raise ZuoraAPI::Exceptions::ZuoraAPIUnkownError.new("Data query failed for unknown reasons. No error message.", response) if body.dig('data', "errorMessage").blank?
698
700
  raise ZuoraAPI::Exceptions::ZuoraAPIError.new(body.dig('data', "errorMessage"), response)
699
701
  end
700
702
  when /^GET::404::\/query\/jobs\/([a-zA-Z0-9\-_]+)$/ #Get DQ job not found, capture of the id is present if needed in future error responses.
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.11.0"
2
+ VERSION = "1.11.1"
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.0
4
+ version: 1.11.1
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: 2022-05-19 00:00:00.000000000 Z
11
+ date: 2022-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler