zuora_api 1.6.10 → 1.6.11
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 +6 -1
- data/lib/zuora_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 31be7d43b0363310fdd311e17dfd675e46502302
|
|
4
|
+
data.tar.gz: 90364f67b2faa5f7e81ce62a66d82e3c6933c6b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b431d5919b487c10f32baefdf20ab0801de0a5db0c004bccb47ef961acbd6244eb9311e3bc887cfb1eebe01f916d4a66f9300a70e798b3167f0e15f73b6470bd
|
|
7
|
+
data.tar.gz: afe53716eb41b68d4316ef11e028c43b16a5b8af4499aff259852d54acfa68dc4e9baceb975c4a4752c58a46a578e8ac64f41a50e9a19c8ca0e6327c8499446c
|
data/lib/zuora_api/login.rb
CHANGED
|
@@ -446,7 +446,12 @@ module ZuoraAPI
|
|
|
446
446
|
|
|
447
447
|
def rest_call(method: :get, body: nil,headers: {}, url: rest_endpoint("catalog/products?pageSize=4"), debug: false, errors: [ZuoraAPI::Exceptions::ZuoraAPISessionError, ZuoraAPI::Exceptions::ZuoraAPIError, ZuoraAPI::Exceptions::ZuoraAPIRequestLimit, ZuoraAPI::Exceptions::ZuoraAPILockCompetition], z_session: true, session_type: :basic, timeout_retry: false, timeout: 120, **keyword_args)
|
|
448
448
|
tries ||= 2
|
|
449
|
-
|
|
449
|
+
|
|
450
|
+
if self.entity_id.present?
|
|
451
|
+
headers["entityId"] = self.entity_id
|
|
452
|
+
headers["Zuora-Entity-Ids"] = self.entity_id if !url.end_with?("/oauth/token")
|
|
453
|
+
end
|
|
454
|
+
|
|
450
455
|
raise "Method not supported, supported methods include: :get, :post, :put, :delete, :patch, :head, :options" if ![:get, :post, :put, :delete, :patch, :head, :options].include?(method)
|
|
451
456
|
|
|
452
457
|
authentication_headers = z_session ? {"Authorization" => self.get_session(prefix: true, auth_type: session_type) } : {}
|
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.6.
|
|
4
|
+
version: 1.6.11
|
|
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: 2018-
|
|
11
|
+
date: 2018-10-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|