zuora_api 1.3.95 → 1.3.96
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/Gemfile.lock +12 -12
- data/lib/zuora_api/login.rb +2 -2
- data/lib/zuora_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c68ef8aaf007ec579010cd6a5e63ea41220ed98
|
4
|
+
data.tar.gz: dbcea489a15bd9c00857081066a505a66d0c1b8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5be72c2c512cd41cf239a4be394c9b89c8997d953710f0ecc8373f91bd9d984fcabab109dbf671a8bbb5cf450693d3005317517e3d35309adcf43d1f2d4bb6f
|
7
|
+
data.tar.gz: 910911b61fdf5b555217ca6a9f04fc985fbc3cf6a5c621dbd1607b46f0f1c7ea0f76b6d676e22761a71e8f0da2acef8fdcc7bdf465c6fb68a399a31026a08467
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
zuora_api (1.3.
|
4
|
+
zuora_api (1.3.96)
|
5
5
|
httparty
|
6
6
|
nokogiri (~> 1.6.8)
|
7
7
|
railties (>= 4.1.0, < 5.1)
|
@@ -10,20 +10,20 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
actionpack (5.0.
|
14
|
-
actionview (= 5.0.
|
15
|
-
activesupport (= 5.0.
|
13
|
+
actionpack (5.0.5)
|
14
|
+
actionview (= 5.0.5)
|
15
|
+
activesupport (= 5.0.5)
|
16
16
|
rack (~> 2.0)
|
17
17
|
rack-test (~> 0.6.3)
|
18
18
|
rails-dom-testing (~> 2.0)
|
19
19
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
20
|
-
actionview (5.0.
|
21
|
-
activesupport (= 5.0.
|
20
|
+
actionview (5.0.5)
|
21
|
+
activesupport (= 5.0.5)
|
22
22
|
builder (~> 3.1)
|
23
23
|
erubis (~> 2.7.0)
|
24
24
|
rails-dom-testing (~> 2.0)
|
25
25
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
26
|
-
activesupport (5.0.
|
26
|
+
activesupport (5.0.5)
|
27
27
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
28
28
|
i18n (~> 0.7)
|
29
29
|
minitest (~> 5.1)
|
@@ -32,14 +32,14 @@ GEM
|
|
32
32
|
concurrent-ruby (1.0.5)
|
33
33
|
diff-lcs (1.2.5)
|
34
34
|
erubis (2.7.0)
|
35
|
-
httparty (0.15.
|
35
|
+
httparty (0.15.6)
|
36
36
|
multi_xml (>= 0.5.2)
|
37
37
|
i18n (0.8.6)
|
38
38
|
loofah (2.0.3)
|
39
39
|
nokogiri (>= 1.5.9)
|
40
40
|
method_source (0.8.2)
|
41
41
|
mini_portile2 (2.1.0)
|
42
|
-
minitest (5.10.
|
42
|
+
minitest (5.10.3)
|
43
43
|
multi_xml (0.6.0)
|
44
44
|
nokogiri (1.6.8.1)
|
45
45
|
mini_portile2 (~> 2.1.0)
|
@@ -51,9 +51,9 @@ GEM
|
|
51
51
|
nokogiri (>= 1.6)
|
52
52
|
rails-html-sanitizer (1.0.3)
|
53
53
|
loofah (~> 2.0)
|
54
|
-
railties (5.0.
|
55
|
-
actionpack (= 5.0.
|
56
|
-
activesupport (= 5.0.
|
54
|
+
railties (5.0.5)
|
55
|
+
actionpack (= 5.0.5)
|
56
|
+
activesupport (= 5.0.5)
|
57
57
|
method_source
|
58
58
|
rake (>= 0.8.7)
|
59
59
|
thor (>= 0.18.1, < 2.0)
|
data/lib/zuora_api/login.rb
CHANGED
@@ -326,11 +326,11 @@ module ZuoraAPI
|
|
326
326
|
return des_hash
|
327
327
|
end
|
328
328
|
|
329
|
-
def rest_call(method: :get, body: {},headers: {}, url: rest_endpoint("catalog/products?pageSize=4")
|
329
|
+
def rest_call(method: :get, body: {},headers: {}, url: rest_endpoint("catalog/products?pageSize=4"), debug: true, z_session: true, **keyword_args)
|
330
330
|
tries ||= 2
|
331
331
|
headers["entityId"] = self.entity_id if !self.entity_id.blank?
|
332
332
|
raise "Method not supported, supported methods include: :get, :post, :put, :delete, :patch, :head, :options" if ![:get, :post, :put, :delete, :patch, :head, :options].include?(method)
|
333
|
-
response = HTTParty::Request.new("Net::HTTP::#{method.to_s.capitalize}".constantize, url, body: body, headers: {'Content-Type' => "application/json; charset=utf-8"
|
333
|
+
response = HTTParty::Request.new("Net::HTTP::#{method.to_s.capitalize}".constantize, url, body: body, headers: {'Content-Type' => "application/json; charset=utf-8"}.merge(z_session ? {"Authorization" => "ZSession #{self.get_session}"} : {}).merge(headers), timeout: 120).perform
|
334
334
|
Rails.logger.debug('Connect') { response.code} if debug
|
335
335
|
output_json = JSON.parse(response.body)
|
336
336
|
Rails.logger.debug('Connect') {"Response JSON: #{output_json}"} if debug
|
data/lib/zuora_api/version.rb
CHANGED