finapps 5.3.0 → 5.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ba6fe462a4a44f6516aaec7bd31adb52ceffa7e7adabff632ec00d866e684f7
4
- data.tar.gz: 792139e441b48b337df42d97973dbf4529d01d7317eb4249c8f868aaffbb1680
3
+ metadata.gz: e65bb80fb054553a018a117ef278f51ca1f39cae1c51b32951c1c23b66456ae9
4
+ data.tar.gz: 98365bd10401bd230e3884d626f7a305bd331c02497445fa25484ba09ba14b42
5
5
  SHA512:
6
- metadata.gz: 6babd0b0fd8d3a567c9f5197673f2a3b7770128c2c688053777af68e02584a456de2f653b7df3eedf66b4f811a8a23da56e38fbe7f781c04bfcb1d22a8020624
7
- data.tar.gz: 17549ec59b21bf9f5a995d25ea87df1068d7067d7f8814dd214ef7521c7b1687d2ece6e78764d0df14a19e473fb8b3f6023f1e3546003aafbaf38d4ff1c35b23
6
+ metadata.gz: e64cf1d45c0895165c6d7a47a8e762c3fba2c8925f16177dca3702853aff83834e9296be6942bc6025a7a22fc472dd4c44a9db9d7da079777a0c6e51e7c76a44
7
+ data.tar.gz: 3203972fa2e7001d4f099b8668368d263f253848e0b8d85ed6bba7dd9034c5344db5d15ca310f8daedeecc04d088a36c1332cb28f58460c6015cae1e2ae899da
@@ -25,7 +25,7 @@ jobs:
25
25
  uses: ruby/setup-ruby@v1
26
26
 
27
27
  - name: Setup cache key and directory for gems cache
28
- uses: actions/cache@v2
28
+ uses: actions/cache@v2.1.4
29
29
  with:
30
30
  path: vendor/bundle
31
31
  key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
@@ -14,6 +14,11 @@ module FinApps
14
14
  super(nil, path)
15
15
  end
16
16
 
17
+ def tenant_schemas
18
+ path = 'schemas'
19
+ send_request path, :get
20
+ end
21
+
17
22
  def last(consumer_id)
18
23
  not_blank(consumer_id, :consumer_id)
19
24
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinApps
4
- VERSION = '5.3.0'
4
+ VERSION = '5.4.0'
5
5
  end
@@ -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
 
@@ -0,0 +1,8 @@
1
+ [
2
+ {
3
+ "id": "6058c9e67d4ee100015d55e2",
4
+ "name": "Florida Family Medicaid Eligibility",
5
+ "description": "Screens applicants for Potential Family Medicaid Eligibility in the State of Florida.",
6
+ "external_url": ""
7
+ }
8
+ ]
@@ -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.3.0
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-02-25 00:00:00.000000000 Z
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/spec_helper.rb
504
- - spec/rest/tenant_settings_spec.rb
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/order_refreshes_spec.rb
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/password_resets_spec.rb
536
- - spec/rest/operators_password_resets_spec.rb
537
- - spec/rest/plaid/plaid_account_permissions_spec.rb
538
- - spec/rest/plaid/plaid_webhooks_spec.rb
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/plaid_accounts_spec.rb
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/tenant_app_settings_spec.rb
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/order_notifications_spec.rb
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