zuora_connect 3.0.2.pre.o → 3.0.2.pre.p
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_connect/controllers/helpers.rb +20 -8
- data/lib/zuora_connect/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 10ba53dbb68c71e4355316f0446236cec11abb0e0a1c1fb50db56f932aa566a1
|
|
4
|
+
data.tar.gz: 5fc99abb2ed44c998fff5ee1b80e02e0b7ccea9f8b905d4057ad9cdb50dbdf6c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1258e6b3f018f184992fdbd2d956de1c4e5575ddf3ce531087cbda43e72703bc257a46bffdd8b14d7840b997109fd2e18f4c3b3c1a25144d8304debe6d96ddb
|
|
7
|
+
data.tar.gz: 0ae63bcaee8a665c53f1b43b065111621d66550130c42632431b685be9332eab9452db43afc22bcd20a9a44260a6e4d200fb0e44bdc14c826084461cba18a0ea
|
|
@@ -338,7 +338,10 @@ module ZuoraConnect
|
|
|
338
338
|
|
|
339
339
|
if (missing_identity || missmatched_entity || different_zsession)
|
|
340
340
|
zuora_details.merge!({'identity' => {'different_zsession' => different_zsession, 'missing_identity' => missing_identity, 'missmatched_entity' => missmatched_entity}})
|
|
341
|
-
identity, response = zuora_client.rest_call(
|
|
341
|
+
identity, response = zuora_client.rest_call(
|
|
342
|
+
url: zuora_client.rest_endpoint("identity"),
|
|
343
|
+
zuora_track_id: ZuoraConnect::RequestIdMiddleware.zuora_request_id
|
|
344
|
+
)
|
|
342
345
|
|
|
343
346
|
if zuora_entity_id != identity['entityId']
|
|
344
347
|
if zuora_tenant_id.to_s == "10548"
|
|
@@ -366,9 +369,10 @@ module ZuoraConnect
|
|
|
366
369
|
ZuoraConnect.logger.debug("UI Authorization", zuora: zuora_details)
|
|
367
370
|
|
|
368
371
|
client_describe, response = zuora_client.rest_call(
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
+
url: zuora_client.rest_endpoint("genesis/user/info").gsub('v1/', ''),
|
|
373
|
+
session_type: zuora_client.class == ZuoraAPI::Oauth ? :bearer : :basic,
|
|
374
|
+
headers: auth_headers,
|
|
375
|
+
zuora_track_id: ZuoraConnect::RequestIdMiddleware.zuora_request_id
|
|
372
376
|
)
|
|
373
377
|
session["ZuoraCurrentUserInfo"] = client_describe
|
|
374
378
|
end
|
|
@@ -380,7 +384,10 @@ module ZuoraConnect
|
|
|
380
384
|
else
|
|
381
385
|
#if app_instance_ids is present then permissions still controlled by connect
|
|
382
386
|
if params[:app_instance_ids].present?
|
|
383
|
-
navbar, response = zuora_client.rest_call(
|
|
387
|
+
navbar, response = zuora_client.rest_call(
|
|
388
|
+
url: zuora_client.rest_endpoint("navigation"),
|
|
389
|
+
zuora_track_id: ZuoraConnect::RequestIdMiddleware.zuora_request_id
|
|
390
|
+
)
|
|
384
391
|
urls = navbar['menus'].map {|x| x['url']}
|
|
385
392
|
app_env = ENV["DEIS_APP"] || "xyz123"
|
|
386
393
|
url = urls.compact.select {|url| File.basename(url).start_with?(app_env + '?')}.first
|
|
@@ -485,12 +492,17 @@ module ZuoraConnect
|
|
|
485
492
|
body: body.to_json,
|
|
486
493
|
url: zuora_client.rest_endpoint("genesis/clients").gsub('v1/', ''),
|
|
487
494
|
session_type: zuora_client.class == ZuoraAPI::Oauth ? :bearer : :basic,
|
|
488
|
-
headers: auth_headers
|
|
495
|
+
headers: auth_headers,
|
|
496
|
+
zuora_track_id: ZuoraConnect::RequestIdMiddleware.zuora_request_id
|
|
489
497
|
)
|
|
490
498
|
|
|
491
499
|
new_zuora_client = ZuoraAPI::Oauth.new(url: "https://#{zuora_host}", oauth_client_id: oauth_response["clientId"], oauth_secret: oauth_response["clientSecret"] )
|
|
492
500
|
if session["ZuoraCurrentUserInfo"].blank?
|
|
493
|
-
client_describe, response = new_zuora_client.rest_call(
|
|
501
|
+
client_describe, response = new_zuora_client.rest_call(
|
|
502
|
+
url: zuora_client.rest_endpoint("genesis/user/info").gsub('v1/', ''),
|
|
503
|
+
session_type: :bearer,
|
|
504
|
+
zuora_track_id: ZuoraConnect::RequestIdMiddleware.zuora_request_id
|
|
505
|
+
)
|
|
494
506
|
else
|
|
495
507
|
client_describe = session["ZuoraCurrentUserInfo"]
|
|
496
508
|
end
|
|
@@ -544,7 +556,7 @@ module ZuoraConnect
|
|
|
544
556
|
end
|
|
545
557
|
|
|
546
558
|
rescue ZuoraAPI::Exceptions::ZuoraAPIAuthenticationTypeError => ex
|
|
547
|
-
output_xml, input_xml, response = zuora_client.soap_call(errors: [], z_session: false) do |xml|
|
|
559
|
+
output_xml, input_xml, response = zuora_client.soap_call(errors: [], z_session: false, zuora_track_id: ZuoraConnect::RequestIdMiddleware.zuora_request_id) do |xml|
|
|
548
560
|
xml['api'].getUserInfo
|
|
549
561
|
end
|
|
550
562
|
final_error = output_xml.xpath('//fns:FaultCode', 'fns' =>'http://fault.api.zuora.com/').text
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zuora_connect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.2.pre.
|
|
4
|
+
version: 3.0.2.pre.p
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Connect Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-03-
|
|
11
|
+
date: 2022-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: apartment
|
|
@@ -445,7 +445,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
445
445
|
- !ruby/object:Gem::Version
|
|
446
446
|
version: 1.3.1
|
|
447
447
|
requirements: []
|
|
448
|
-
rubygems_version: 3.
|
|
448
|
+
rubygems_version: 3.3.7
|
|
449
449
|
signing_key:
|
|
450
450
|
specification_version: 4
|
|
451
451
|
summary: Summary of Connect.
|