zuora_api 1.7.34 → 1.7.35
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 +4 -4
- data/lib/zuora_api/login.rb +5 -0
- data/lib/zuora_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f761dedf71c4555d3da6cb7b05b9fac342095386eeb340b4257ae9a2da9385df
|
|
4
|
+
data.tar.gz: 394069a8ffcb6b4c605829bc635c3202de7f81593e805a67d17e072760267abf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4dcc099a888c3ba712273cb5c9df156c66c70da31b3c36c90c8a18bf89697ae9d716594748d53b11ffa2686f456de89f73aa406a1c789e801f55b01ffc55766d
|
|
7
|
+
data.tar.gz: 04aa1c6fe3e12b15967c735e30a1ec7d97e4420c207adf4feea743aca238d04d683ccee67e220fdd39eca121bd75ddc7130305f4abe6caccaaf4446a9f7765da
|
data/lib/zuora_api/login.rb
CHANGED
|
@@ -83,6 +83,8 @@ module ZuoraAPI
|
|
|
83
83
|
rescue => ex
|
|
84
84
|
raise ZuoraAPI::Exceptions::ZuoraAPIError.new("Invalid ZConnect Cookie")
|
|
85
85
|
end
|
|
86
|
+
Rails.logger.info("Using ZConnect cookie in get_identity method")
|
|
87
|
+
|
|
86
88
|
response = HTTParty.post("https://#{self.hostname}/apps/zconnectsession/identity", :body => body, :headers => { 'Content-Type' => 'application/json' })
|
|
87
89
|
output_json = JSON.parse(response.body)
|
|
88
90
|
else
|
|
@@ -107,6 +109,7 @@ module ZuoraAPI
|
|
|
107
109
|
response = HTTParty.get("https://#{self.hostname}/apps/v1/navigation", :headers => {'Cookie' => "ZSession=#{zsession}", 'Content-Type' => 'application/json'})
|
|
108
110
|
output_json = JSON.parse(response.body)
|
|
109
111
|
elsif zconnect_accesstoken.present?
|
|
112
|
+
Rails.logger.info("Using ZConnect cookie in get_full_nav method")
|
|
110
113
|
response = HTTParty.get("https://#{self.hostname}/apps/zconnectsession/navigation", :headers => {'Cookie' => "#{self.zconnect_provider}=#{zconnect_accesstoken}",'Content-Type' => 'application/json'})
|
|
111
114
|
output_json = JSON.parse(response.body)
|
|
112
115
|
else
|
|
@@ -131,6 +134,7 @@ module ZuoraAPI
|
|
|
131
134
|
response = HTTParty.put("https://#{self.hostname}/apps/v1/preference/navigation", :body => state.to_json, :headers => {'Cookie' => "ZSession=#{zsession}", 'Content-Type' => 'application/json'})
|
|
132
135
|
output_json = JSON.parse(response.body)
|
|
133
136
|
elsif !zconnect_accesstoken.blank?
|
|
137
|
+
Rails.logger.info("Using ZConnect cookie in set_nav method")
|
|
134
138
|
response = HTTParty.post("https://#{self.hostname}/apps/zconnectsession/navigationstate", :body => state.to_json, :headers => {'Cookie' => "#{self.zconnect_provider}=#{zconnect_accesstoken}", 'Content-Type' => 'application/json'})
|
|
135
139
|
output_json = JSON.parse(response.body)
|
|
136
140
|
else
|
|
@@ -155,6 +159,7 @@ module ZuoraAPI
|
|
|
155
159
|
response = HTTParty.post("https://#{self.hostname}/apps/v1/navigation/fetch", :headers => {'Cookie' => "ZSession=#{zsession}", 'Content-Type' => 'application/json'})
|
|
156
160
|
output_json = JSON.parse(response.body)
|
|
157
161
|
elsif !zconnect_accesstoken.blank?
|
|
162
|
+
Rails.logger.info("Using ZConnect cookie in refresh_nav method")
|
|
158
163
|
response = HTTParty.post("https://#{self.hostname}/apps/zconnectsession/refresh-navbarcache", :headers => {'Cookie' => "#{self.zconnect_provider}=#{zconnect_accesstoken}", 'Content-Type' => 'application/json'})
|
|
159
164
|
output_json = JSON.parse(response.body)
|
|
160
165
|
else
|
data/lib/zuora_api/version.rb
CHANGED
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.7.
|
|
4
|
+
version: 1.7.35
|
|
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:
|
|
11
|
+
date: 2020-01-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|