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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92d757e8e21ba1cfdcf1a9062e8133c929ae54830edae2b581c6a90d76d46938
4
- data.tar.gz: 9b24657a2055e829d745008d1f0dfe2e983ac44e53497710ce062ff68e4c4355
3
+ metadata.gz: f761dedf71c4555d3da6cb7b05b9fac342095386eeb340b4257ae9a2da9385df
4
+ data.tar.gz: 394069a8ffcb6b4c605829bc635c3202de7f81593e805a67d17e072760267abf
5
5
  SHA512:
6
- metadata.gz: 73bff9e8ed288e288ad86955e0960a832d59f7e15fe9e40e240ab317ba249ee892df2266cd857fb8046b464e1cb6dc1b6b840b9f570c96ec06f3d3b877ced883
7
- data.tar.gz: 59d78716661773967a92304af0d7d932837e044284742b5d2a2bd438715a58008ab7a4a8e8991fb821c61a86d78004d2e216d9242b6ca8c3d50e1fddd0190448
6
+ metadata.gz: 4dcc099a888c3ba712273cb5c9df156c66c70da31b3c36c90c8a18bf89697ae9d716594748d53b11ffa2686f456de89f73aa406a1c789e801f55b01ffc55766d
7
+ data.tar.gz: 04aa1c6fe3e12b15967c735e30a1ec7d97e4420c207adf4feea743aca238d04d683ccee67e220fdd39eca121bd75ddc7130305f4abe6caccaaf4446a9f7765da
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.7.34"
2
+ VERSION = "1.7.35"
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.7.34
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: 2019-12-30 00:00:00.000000000 Z
11
+ date: 2020-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler