finapps 5.3.0 → 5.4.0
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/.github/workflows/ci.yaml +1 -1
- data/lib/finapps/rest/screenings.rb +5 -0
- data/lib/finapps/version.rb +1 -1
- data/spec/rest/screenings_spec.rb +17 -0
- data/spec/support/fixtures/screenings/tenant_schemas.json +8 -0
- data/spec/support/screenings_routes.rb +5 -0
- metadata +38 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e65bb80fb054553a018a117ef278f51ca1f39cae1c51b32951c1c23b66456ae9
|
4
|
+
data.tar.gz: 98365bd10401bd230e3884d626f7a305bd331c02497445fa25484ba09ba14b42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e64cf1d45c0895165c6d7a47a8e762c3fba2c8925f16177dca3702853aff83834e9296be6942bc6025a7a22fc472dd4c44a9db9d7da079777a0c6e51e7c76a44
|
7
|
+
data.tar.gz: 3203972fa2e7001d4f099b8668368d263f253848e0b8d85ed6bba7dd9034c5344db5d15ca310f8daedeecc04d088a36c1332cb28f58460c6015cae1e2ae899da
|
data/.github/workflows/ci.yaml
CHANGED
data/lib/finapps/version.rb
CHANGED
@@ -76,6 +76,23 @@ RSpec.describe FinApps::REST::Screenings do
|
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
|
+
describe '#tenant_schemas' do
|
80
|
+
subject(:tenant_schemas) { described_class.new(client).tenant_schemas }
|
81
|
+
|
82
|
+
it_behaves_like 'an API request'
|
83
|
+
it_behaves_like 'a successful request'
|
84
|
+
it 'performs a get and returns the response' do
|
85
|
+
expect(results[0]).to have_key(:external_url)
|
86
|
+
end
|
87
|
+
|
88
|
+
it 'sends proper request' do
|
89
|
+
tenant_schemas
|
90
|
+
url = "#{versioned_api_path}/schemas"
|
91
|
+
|
92
|
+
expect(WebMock).to have_requested(:get, url)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
79
96
|
describe '#show' do
|
80
97
|
subject(:show) { described_class.new(client).show(id) }
|
81
98
|
|
@@ -13,8 +13,12 @@ module Fake
|
|
13
13
|
create_routes base, resource
|
14
14
|
end
|
15
15
|
|
16
|
+
# rubocop:disable Metrics/MethodLength
|
16
17
|
def list_routes(base, resource)
|
17
18
|
base.get(resource) { json_response 200, 'screening_list.json' }
|
19
|
+
base.get(resource.gsub('screenings', 'schemas')) do
|
20
|
+
json_response 200, 'screenings/tenant_schemas.json'
|
21
|
+
end
|
18
22
|
base.get("#{resource}/:consumer_id/consumer") do
|
19
23
|
if params[:consumer_id] == 'invalid_consumer_id'
|
20
24
|
json_response 404, 'session_not_found.json'
|
@@ -23,6 +27,7 @@ module Fake
|
|
23
27
|
end
|
24
28
|
end
|
25
29
|
end
|
30
|
+
# rubocop:enable Metrics/MethodLength
|
26
31
|
|
27
32
|
def resume_routes(base, resource)
|
28
33
|
base.get("#{resource}/:session_id/resume") do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finapps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erich Quintero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: finapps_core
|
@@ -447,6 +447,7 @@ files:
|
|
447
447
|
- spec/support/fixtures/screening_list.json
|
448
448
|
- spec/support/fixtures/screenings/last_session.json
|
449
449
|
- spec/support/fixtures/screenings/session_not_found_with_id.json
|
450
|
+
- spec/support/fixtures/screenings/tenant_schemas.json
|
450
451
|
- spec/support/fixtures/session_not_found.json
|
451
452
|
- spec/support/fixtures/sign_url.json
|
452
453
|
- spec/support/fixtures/signed_document.pdf
|
@@ -497,50 +498,50 @@ specification_version: 4
|
|
497
498
|
summary: FinApps REST API ruby client.
|
498
499
|
test_files:
|
499
500
|
- spec/spec_helpers/client.rb
|
500
|
-
- spec/support/documents_uploads_routes.rb
|
501
501
|
- spec/support/screenings_routes.rb
|
502
502
|
- spec/support/fake_api.rb
|
503
|
-
- spec/
|
504
|
-
- spec/rest/
|
505
|
-
- spec/rest/verix/verix_documents_spec.rb
|
506
|
-
- spec/rest/verix/verix_records_spec.rb
|
507
|
-
- spec/rest/verix/verix_pdf_documents_spec.rb
|
508
|
-
- spec/rest/verix/verix_metadata_spec.rb
|
509
|
-
- spec/rest/sessions_spec.rb
|
510
|
-
- spec/rest/operators_spec.rb
|
511
|
-
- spec/rest/portfolio_reports_spec.rb
|
512
|
-
- spec/rest/portfolios_consumers_spec.rb
|
513
|
-
- spec/rest/documents_orders_spec.rb
|
514
|
-
- spec/rest/documents_upload_types_spec.rb
|
515
|
-
- spec/rest/version_spec.rb
|
516
|
-
- spec/rest/orders_spec.rb
|
517
|
-
- spec/rest/consumers_portfolios_spec.rb
|
518
|
-
- spec/rest/portfolios_spec.rb
|
503
|
+
- spec/support/documents_uploads_routes.rb
|
504
|
+
- spec/rest/alert_definitions_spec.rb
|
519
505
|
- spec/rest/documents_orders_notifications_spec.rb
|
520
|
-
- spec/rest/portfolios_alerts_spec.rb
|
521
|
-
- spec/rest/screenings_spec.rb
|
522
506
|
- spec/rest/order_reports_spec.rb
|
523
|
-
- spec/rest/
|
507
|
+
- spec/rest/consumers_spec.rb
|
524
508
|
- spec/rest/documents_uploads_spec.rb
|
525
|
-
- spec/rest/order_statuses_spec.rb
|
526
|
-
- spec/rest/products_spec.rb
|
527
|
-
- spec/rest/order_assignments_spec.rb
|
528
|
-
- spec/rest/signed_documents_downloads_spec.rb
|
529
|
-
- spec/rest/order_tokens_spec.rb
|
530
|
-
- spec/rest/api_request.rb
|
531
509
|
- spec/rest/portfolios_available_consumers_spec.rb
|
532
|
-
- spec/rest/alert_definitions_spec.rb
|
533
|
-
- spec/rest/consumers_spec.rb
|
534
510
|
- spec/rest/alert_occurrences_spec.rb
|
535
|
-
- spec/rest/
|
536
|
-
- spec/rest/
|
537
|
-
- spec/rest/
|
538
|
-
- spec/rest/
|
511
|
+
- spec/rest/screenings_spec.rb
|
512
|
+
- spec/rest/portfolios_alerts_spec.rb
|
513
|
+
- spec/rest/products_spec.rb
|
514
|
+
- spec/rest/tenant_app_settings_spec.rb
|
539
515
|
- spec/rest/plaid/plaid_consumer_institutions_spec.rb
|
540
|
-
- spec/rest/plaid/
|
516
|
+
- spec/rest/plaid/plaid_webhooks_spec.rb
|
541
517
|
- spec/rest/plaid/plaid_institution_logos_spec.rb
|
518
|
+
- spec/rest/plaid/plaid_account_permissions_spec.rb
|
519
|
+
- spec/rest/plaid/plaid_accounts_spec.rb
|
520
|
+
- spec/rest/order_refreshes_spec.rb
|
521
|
+
- spec/rest/order_assignments_spec.rb
|
522
|
+
- spec/rest/order_tokens_spec.rb
|
523
|
+
- spec/rest/documents_orders_spec.rb
|
524
|
+
- spec/rest/signed_documents_downloads_spec.rb
|
525
|
+
- spec/rest/portfolios_consumers_spec.rb
|
526
|
+
- spec/rest/version_spec.rb
|
527
|
+
- spec/rest/documents_upload_types_spec.rb
|
528
|
+
- spec/rest/password_resets_spec.rb
|
529
|
+
- spec/rest/order_statuses_spec.rb
|
530
|
+
- spec/rest/operators_spec.rb
|
531
|
+
- spec/rest/portfolio_reports_spec.rb
|
532
|
+
- spec/rest/order_notifications_spec.rb
|
533
|
+
- spec/rest/orders_spec.rb
|
542
534
|
- spec/rest/esign_templates_spec.rb
|
543
|
-
- spec/rest/
|
535
|
+
- spec/rest/sessions_spec.rb
|
536
|
+
- spec/rest/api_request.rb
|
537
|
+
- spec/rest/verix/verix_documents_spec.rb
|
538
|
+
- spec/rest/verix/verix_pdf_documents_spec.rb
|
539
|
+
- spec/rest/verix/verix_records_spec.rb
|
540
|
+
- spec/rest/verix/verix_metadata_spec.rb
|
541
|
+
- spec/rest/tenant_settings_spec.rb
|
542
|
+
- spec/rest/portfolios_spec.rb
|
544
543
|
- spec/rest/client_spec.rb
|
545
|
-
- spec/rest/
|
544
|
+
- spec/rest/operators_password_resets_spec.rb
|
545
|
+
- spec/rest/consumers_portfolios_spec.rb
|
546
|
+
- spec/spec_helper.rb
|
546
547
|
- spec/utils/query_builder_spec.rb
|