zuora_api 1.6.21 → 1.6.22

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
  SHA1:
3
- metadata.gz: fcc7dc36e49132b3c42a3c42d68673011c858955
4
- data.tar.gz: 64c770c204e53aa8c5b9a0ef65ec02dcca0daa27
3
+ metadata.gz: fc92c82d0114c76b73e15fbb32471bdd750f1e26
4
+ data.tar.gz: 7a54d2498716694f0c3e9d17569efa7f494599c8
5
5
  SHA512:
6
- metadata.gz: 8cb8539d713b55da67c8714e18318944b55de1fa610d03c54ec53c5ba271fdf80590f2869ae2c0ce87701a85e6ec02cf4ebe113b36f21df8be1146f2e14e74a9
7
- data.tar.gz: c24463af0aa66d1595588c3172abdc71c8eecd3cb5daa655283325ed3cf882bfad99816f537ec904143121eb5b086318cff7e8efe07cc88fb4104b46ba941e77
6
+ metadata.gz: 6d6547109b579ab68bd2c902c06eead7491c3940956c03a0ef8cb14af42a4c393d6d53d58325616ed9a5a8df453e6064dfd1b16ee89699855076f878ab37c8c1
7
+ data.tar.gz: 1fa703dcbce2c2ca5c699e6ee0a3ba113e1d4618839960d4c619e5a0b27bb7d9eb2e147f9c733dd398a1bbfc9222518695be38db27cd32630a65bf54e5d00722
@@ -9,4 +9,25 @@ All notable changes to this project will be documented in this file.
9
9
  - Example
10
10
 
11
11
  ### Removed
12
- - Example
12
+ - Example
13
+
14
+ ## [1.6.22] - 2019-01-03
15
+
16
+ ### Changed
17
+ - get_identity method - supports ZSession auth now
18
+ - updated rspecs accordingly
19
+
20
+ ## [1.6.18] - 2018-12-06
21
+ ### Added
22
+ - zconnect_provider attribute accessor for identifying ZConnect cookies
23
+ - Methods for Hallway integration:
24
+ - get_identity
25
+ - get_full_nav
26
+ - set_nav
27
+ - refresh_nav
28
+ - get_oauth_client
29
+
30
+ ### Changed
31
+ - The way environment and region are set
32
+
33
+
@@ -33,9 +33,9 @@ module ZuoraAPI
33
33
  zsession = cookies["ZSession"]
34
34
  zconnect_accesstoken = get_zconnect_accesstoken(cookies)
35
35
  begin
36
- if false && !zsession.blank?
37
- # Does not currently exist / function properly
38
- # use the zsession API when/if it exists
36
+ if !zsession.blank?
37
+ response = HTTParty.get("https://#{self.hostname}/apps/v1/identity", :headers => {'Cookie' => "ZSession=#{zsession}", 'Content-Type' => 'application/json'})
38
+ output_json = JSON.parse(response.body)
39
39
  elsif !zconnect_accesstoken.blank?
40
40
  code = zconnect_accesstoken.split("#!").last
41
41
  encrypted_token, tenant_id = Base64.decode64(code).split(":")
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.6.21"
2
+ VERSION = "1.6.22"
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.6.21
4
+ version: 1.6.22
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: 2019-01-03 00:00:00.000000000 Z
11
+ date: 2019-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler