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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ab1f61ed70054d159fa7b9b8835d6706be1c2e3
4
- data.tar.gz: 765e41e2106129176e32224ff448ad6134a39b61
3
+ metadata.gz: 31be7d43b0363310fdd311e17dfd675e46502302
4
+ data.tar.gz: 90364f67b2faa5f7e81ce62a66d82e3c6933c6b0
5
5
  SHA512:
6
- metadata.gz: 4adb062487388da25439e813dfc8e5301e1ec6c3f56a229ca5acb10904f2ece0a088d6a30d0a2ba11d35eb74368a5eebbd007dd17c0c972339fa8198ce085754
7
- data.tar.gz: d7663dbccd7a31ae63cc694caf1c66c12fa0dd8f4bd7e7f262e06d20b06724518db9c07d490fefd35705be08f8838e3787858effec00a70f9ed00d41843c1d9c
6
+ metadata.gz: b431d5919b487c10f32baefdf20ab0801de0a5db0c004bccb47ef961acbd6244eb9311e3bc887cfb1eebe01f916d4a66f9300a70e798b3167f0e15f73b6470bd
7
+ data.tar.gz: afe53716eb41b68d4316ef11e028c43b16a5b8af4499aff259852d54acfa68dc4e9baceb975c4a4752c58a46a578e8ac64f41a50e9a19c8ca0e6327c8499446c
@@ -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
- headers["entityId"] = self.entity_id if !self.entity_id.blank?
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) } : {}
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.6.10"
2
+ VERSION = "1.6.11"
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.10
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-09-28 00:00:00.000000000 Z
11
+ date: 2018-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler