zuora_connect 2.0.42 → 2.0.43

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: 7a9e773f6114368213a5c0d414998c8cdd9b02a8e666b6f2895952e99960dbd0
4
- data.tar.gz: d400a44cb72fdce90550a4406aabc5a60890f1b5326a8f5aa9dbfa478c9578e3
3
+ metadata.gz: 0d7b7218499fa8533e794b3929845edd913de3901c950152b4a065d6d889db37
4
+ data.tar.gz: 4d3c76f3a405aa0bf2466fbd39bd4f26bbe9915bd228ab91cdfe0722e12d67cf
5
5
  SHA512:
6
- metadata.gz: c9139ea5852684e0ecbd7e5aa4e60f2cd1995fbf3977f06839c5ee68746c3d1f64d0f35625e0f202d1284d9723c44a5c0a3d69a67b0a885cf057e78f5eefa758
7
- data.tar.gz: 1f6864370b8d59caf0691c929349aaac0317a7c2332a9842a15442d0ab141d441d24d984abd44afd0e39cfe9c560b3a246150aceced9969f45db7cbfa3dab110
6
+ metadata.gz: 92454d6132affaca52a18fdc1e1f38065480157d77742fe60d55a5495c95b4124a2c8a14af57af0292245a1a7442d7fed790de60f234cc9f0410f32dad81caac
7
+ data.tar.gz: d3ca7211d02d46cb86d96d09b08dfcb6ca349d44f6a20924c7065d0e571330e688e9da697f17e3eb8c7674c3e5f7e33a1a58e758d959524907fc4e00bd307292
@@ -565,7 +565,7 @@ module ZuoraConnect
565
565
 
566
566
  def fetch_org_details(debug: false)
567
567
  details_count ||= 0
568
- self.new_session if !defined?(self.target_login)
568
+ self.refresh if !defined?(self.target_login)
569
569
 
570
570
  response = HTTParty.get("#{ZuoraConnect.configuration.url}/api/#{self.api_version}/tenants/search?hostname=#{self.target_login.client.hostname}&node_id=#{self.zuora_entity_ids.first}")
571
571
 
@@ -573,7 +573,7 @@ module ZuoraConnect
573
573
  parsed_json = JSON.parse(response.body)
574
574
 
575
575
  #Set Org
576
- if self.id >= 25000000 && parsed_json['organization'].blank?
576
+ if self.id >= 25000000 && parsed_json['organization'].present?
577
577
  self.zuora_logins = self.zuora_logins.merge({'organization' => [parsed_json['organization']]})
578
578
  end
579
579
  if defined?(ZuoraConnect::AppInstance::CONNECT_APPLICATION_ID)
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "2.0.42"
2
+ VERSION = "2.0.43"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.42
4
+ version: 2.0.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-28 00:00:00.000000000 Z
11
+ date: 2020-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment