zuora_api 1.10.1 → 1.10.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3b3400576f3df87efec934f2e76fc13b6e427c20cb36dff8e4c81dc95abfc1d
4
- data.tar.gz: 9250a4ef4c4b1dc7de382e2325533536e646d3f36ada93afeb59a0aa90a87166
3
+ metadata.gz: 66b84e1cda1385ecc12a0ec3ff0f902daabf3cfdbfcf4bbf68fff9f8eb3e74ff
4
+ data.tar.gz: d9154fd74d42c1a78aca57a17d4c66f9541e660c25b48bfe48037704b619470f
5
5
  SHA512:
6
- metadata.gz: a1ad5caf8f7689f9522e5b880cf742d9bd3a20f52b662dfb59f091c17c986ae972b66f97adc2752a16aee77fcd019934e338276ae61ba802918e65543df1ccbf
7
- data.tar.gz: 2ec1e093f0bfb3d7815434addb8372e5cf6ddee2b06957add664c86b411e2c026e8e018ad0c7a9508c12a660d4bf1373f8099e10ca191a462c338d9a6ac99a58
6
+ metadata.gz: 9e793260c8d4184ee53dc84b96a548a9c00bcb81490da9446ee2bebcfa4532b24da3aa64582b23d05624ffc435ea950e873c01cdbc724cfb796664441ac8e436
7
+ data.tar.gz: 7b5a781bc33e34f691740ec7498ac4814191e088fed03ec7df2569f5cd8353933e275ef5e2cd93261d7ca266d030a8d0505a55a72a4b3c354565d2ad9af8493d
@@ -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': '108.0', 'Sandbox': '108.0', 'Production': '108.0', 'Performance': '108.0', 'Services': '96.0', 'Unknown': '96.0', 'Staging': '108.0'}.freeze
10
+ MIN_Endpoints = {'Test': '115.0', 'Sandbox': '115.0', 'Production': '115.0', 'Performance': '115.0', 'Services': '96.0', 'Unknown': '96.0', 'Staging': '115.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
 
@@ -1055,11 +1055,11 @@ module ZuoraAPI
1055
1055
 
1056
1056
  def describe_call(object = nil, log_errors = true)
1057
1057
  tries ||= 2
1058
-
1059
1058
  base = self.url.include?(".com") ? self.url.split(".com")[0].concat(".com") : self.url.split(".eu")[0].concat(".eu")
1060
- url = object ? "#{base}/apps/api/describe/#{object}" : "#{base}/apps/api/describe/"
1061
- headers = { "Content-Type" => "text/xml; charset=utf-8" }.merge(self.entity_header)
1059
+ version = self.url.scan(/(\d+\.\d)$/).dig(0,0).to_f
1060
+ url = object ? "#{base}/apps/api/#{version}/describe/#{object}" : "#{base}/apps/api/#{version}/describe/"
1062
1061
 
1062
+ headers = { "Content-Type" => "text/xml; charset=utf-8" }.merge(self.entity_header)
1063
1063
  response = HTTParty.get(url, headers: {"Authorization" => self.get_session(prefix: true, auth_type: :basic), "User-Agent" => USER_AGENT}.merge(headers), :timeout => 130)
1064
1064
 
1065
1065
  raise ZuoraAPI::Exceptions::ZuoraAPISessionError.new(self.current_error.present? ? self.current_error : 'Describe call 401', response) if response.code == 401
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.10.1"
2
+ VERSION = "1.10.5"
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.10.1
4
+ version: 1.10.5
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: 2021-12-06 00:00:00.000000000 Z
11
+ date: 2022-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler