finapps 6.10.2 → 6.11.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: d55e0e0252d632b2a68bdf279f4a4e33181bcf1d8be6ca5513399e0cb34fd08b
4
- data.tar.gz: 311a8cbe50f22112ddbf0360567ad10ef36967d4247d973b6275c2054ba67a82
3
+ metadata.gz: 701a3842e404d5025eccbfd03848e77a1c97ebf837974d51dbbe5d62b7b29ef2
4
+ data.tar.gz: bd21d306c479be7300b8d9b2769b0e50e657c9c2e962009fa21f82671ab338fe
5
5
  SHA512:
6
- metadata.gz: 2e24379649d976509c222127152ddf7d98cd5fcbcffc0a3ed5700295b418685c21bf2a51e7e91804c8ff066fa1e1e0da155762710dfbbb12061bc23d1458fa68
7
- data.tar.gz: df2ab06514a0a5bc3fac7b0e880e370d321fe2261f522945dc00f0ab656d289b91609b45274c4a743e0b795c8139e236e5c54311dc4e0e96cf7d3985dd1ef414
6
+ metadata.gz: 44bf90538086fc313fbd62e8be9fdb908a72131f31a24a3485528f8da4cc94f299dc1ee1c328116447472914243f5a43916e9c667927fb07221b4d5217685718
7
+ data.tar.gz: b61176f93d88fdf09e6a640c3a31185b60d295c76ba71a8654f28397ba8c22c5a9feb97b93fb5c07243f3af076387cc38dd1c48b6ae89313546925f796e940fb
@@ -17,6 +17,7 @@ module FinApps
17
17
  documents_orders_notifications
18
18
  documents_upload_types
19
19
  documents_uploads
20
+ edm_transmissions
20
21
  esign_templates
21
22
  orders
22
23
  locations
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module FinApps
4
+ module REST
5
+ class EdmTransmissions < FinAppsCore::REST::Resources # :nodoc:
6
+ def create(order_id, params)
7
+ not_blank(order_id, :order_id)
8
+
9
+ path = "documents/edm/#{ERB::Util.url_encode(order_id)}/transmit"
10
+ super(params, path)
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinApps
4
- VERSION = '6.10.2'
4
+ VERSION = '6.11.0'
5
5
  end
data/lib/finapps.rb CHANGED
@@ -5,6 +5,7 @@ require 'faraday_middleware'
5
5
 
6
6
  require 'finapps_core'
7
7
  require 'finapps/rest/actors'
8
+ require 'finapps/rest/edm_transmissions'
8
9
  require 'finapps/rest/version'
9
10
  require 'finapps/rest/locations'
10
11
  require 'finapps/rest/consumers'
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.describe FinApps::REST::EdmTransmissions do
4
+ include SpecHelpers::Client
5
+
6
+ describe '#create' do
7
+ subject(:list) { described_class.new(client).create(:order_id, params) }
8
+
9
+ let(:params) { {external_id: '12345'} }
10
+
11
+ it_behaves_like 'an API request'
12
+ it_behaves_like 'a successful request'
13
+
14
+ it('returns a hash with known keys') do
15
+ expect(list[RESULTS].keys)
16
+ .to(match_array(%i[transmission_id date_created date_modified status
17
+ document_order_id documents]))
18
+ end
19
+ end
20
+ end
@@ -5,6 +5,7 @@ require 'sinatra/base'
5
5
  require_relative 'documents_uploads_routes'
6
6
  require_relative 'screenings_routes'
7
7
  require_relative 'routes/actors'
8
+ require_relative 'routes/edm_transmissions'
8
9
  require_relative 'routes/locations'
9
10
  require_relative 'routes/screening_metadatas'
10
11
  require_relative 'routes/query_screenings'
@@ -25,6 +26,7 @@ module Fake
25
26
  delete("/#{version}/resources/:id") { status 202 }
26
27
 
27
28
  include ActorsRoutes
29
+ include EdmTransmissionsRoutes
28
30
  include DocumentsUploadsRoutes
29
31
  include LocationsRoutes
30
32
  include QueryScreeningRoutes
@@ -0,0 +1,17 @@
1
+ {
2
+ "transmission_id": "7829e171-4d39-4270-8969-7729038953d2",
3
+ "date_created": "2022-05-18T21:05:48.076809156Z",
4
+ "date_modified": "2022-05-18T21:05:48.07680924Z",
5
+ "status": 0,
6
+ "document_order_id": "0c272b3d-3c8c-43ab-beff-f5964835a591",
7
+ "documents": [
8
+ {
9
+ "template_data": null,
10
+ "path": "",
11
+ "file_id": "",
12
+ "status": 0,
13
+ "edm_filename": "",
14
+ "date_modified": "0001-01-01T00:00:00Z"
15
+ }
16
+ ]
17
+ }
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Fake
4
+ module EdmTransmissionsRoutes
5
+ class << self
6
+ def included(base)
7
+ post_routes base
8
+
9
+ super
10
+ end
11
+
12
+ def post_routes(base)
13
+ base.post("/#{base.version}/documents/edm/:order_id/transmit") do
14
+ json_response 200, 'edm_transmissions/create.json'
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
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: 6.10.2
4
+ version: 6.11.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: 2022-05-03 00:00:00.000000000 Z
11
+ date: 2022-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: finapps_core
@@ -269,6 +269,7 @@ files:
269
269
  - lib/finapps/rest/documents_orders_notifications.rb
270
270
  - lib/finapps/rest/documents_upload_types.rb
271
271
  - lib/finapps/rest/documents_uploads.rb
272
+ - lib/finapps/rest/edm_transmissions.rb
272
273
  - lib/finapps/rest/esign_templates.rb
273
274
  - lib/finapps/rest/locations.rb
274
275
  - lib/finapps/rest/operator_change_password_email.rb
@@ -322,6 +323,7 @@ files:
322
323
  - spec/rest/documents_orders_spec.rb
323
324
  - spec/rest/documents_upload_types_spec.rb
324
325
  - spec/rest/documents_uploads_spec.rb
326
+ - spec/rest/edm_transmissions_spec.rb
325
327
  - spec/rest/esign_templates_spec.rb
326
328
  - spec/rest/locations_spec.rb
327
329
  - spec/rest/operator_change_password_email_spec.rb
@@ -375,6 +377,7 @@ files:
375
377
  - spec/support/fixtures/documents_order.json
376
378
  - spec/support/fixtures/documents_orders.json
377
379
  - spec/support/fixtures/documents_orders_none.json
380
+ - spec/support/fixtures/edm_transmissions/create.json
378
381
  - spec/support/fixtures/error.json
379
382
  - spec/support/fixtures/esign_templates.json
380
383
  - spec/support/fixtures/invalid_order_id.json
@@ -446,6 +449,7 @@ files:
446
449
  - spec/support/fixtures/verix/record/create.json
447
450
  - spec/support/fixtures/verix/record/list.json
448
451
  - spec/support/routes/actors.rb
452
+ - spec/support/routes/edm_transmissions.rb
449
453
  - spec/support/routes/locations.rb
450
454
  - spec/support/routes/query_screenings.rb
451
455
  - spec/support/routes/screening_metadatas.rb
@@ -483,65 +487,67 @@ signing_key:
483
487
  specification_version: 4
484
488
  summary: FinApps REST API ruby client.
485
489
  test_files:
490
+ - spec/spec_helper.rb
486
491
  - spec/support/documents_uploads_routes.rb
487
492
  - spec/support/fake_api.rb
488
- - spec/support/routes/query_screenings.rb
489
- - spec/support/routes/locations.rb
490
493
  - spec/support/routes/states.rb
491
494
  - spec/support/routes/actors.rb
495
+ - spec/support/routes/edm_transmissions.rb
496
+ - spec/support/routes/locations.rb
492
497
  - spec/support/routes/screening_metadatas.rb
498
+ - spec/support/routes/query_screenings.rb
493
499
  - spec/support/screenings_routes.rb
494
- - spec/rest/order_assignments_spec.rb
495
- - spec/rest/query/base_spec.rb
496
- - spec/rest/query/screenings_spec.rb
497
- - spec/rest/alert_occurrences_spec.rb
498
- - spec/rest/operator_change_password_email_spec.rb
500
+ - spec/utils/query_builder_spec.rb
501
+ - spec/spec_helpers/client.rb
502
+ - spec/spec_helpers/api_request.rb
503
+ - spec/rest/signed_documents_downloads_spec.rb
499
504
  - spec/rest/consumers_spec.rb
500
- - spec/rest/documents_uploads_spec.rb
505
+ - spec/rest/locations_spec.rb
506
+ - spec/rest/screenings_spec.rb
507
+ - spec/rest/consumer_login_tokens_spec.rb
501
508
  - spec/rest/operators_spec.rb
509
+ - spec/rest/verix/verix_pdf_documents_spec.rb
510
+ - spec/rest/verix/verix_documents_spec.rb
511
+ - spec/rest/verix/verix_records_spec.rb
512
+ - spec/rest/verix/verix_metadata_spec.rb
513
+ - spec/rest/documents_orders_notifications_spec.rb
514
+ - spec/rest/screening_metadatas_spec.rb
515
+ - spec/rest/portfolio_reports_spec.rb
516
+ - spec/rest/portfolios_available_consumers_spec.rb
517
+ - spec/rest/client_spec.rb
518
+ - spec/rest/portfolios_alerts_spec.rb
519
+ - spec/rest/edm_transmissions_spec.rb
520
+ - spec/rest/sessions_spec.rb
502
521
  - spec/rest/portfolios_spec.rb
522
+ - spec/rest/portfolios_consumers_spec.rb
523
+ - spec/rest/operators_login_tokens_spec.rb
524
+ - spec/rest/tenant_settings_spec.rb
525
+ - spec/rest/alert_occurrences_spec.rb
526
+ - spec/rest/query/screenings_spec.rb
527
+ - spec/rest/query/base_spec.rb
528
+ - spec/rest/documents_uploads_spec.rb
529
+ - spec/rest/actors_spec.rb
530
+ - spec/rest/order_statuses_spec.rb
531
+ - spec/rest/operators_password_resets_spec.rb
503
532
  - spec/rest/alert_definitions_spec.rb
533
+ - spec/rest/operator_change_password_email_spec.rb
504
534
  - spec/rest/consumers_portfolios_spec.rb
535
+ - spec/rest/plaid/plaid_accounts_spec.rb
505
536
  - spec/rest/plaid/plaid_institution_logos_spec.rb
506
537
  - spec/rest/plaid/plaid_consumer_institutions_spec.rb
507
- - spec/rest/plaid/plaid_account_permissions_spec.rb
508
- - spec/rest/plaid/plaid_accounts_spec.rb
509
538
  - spec/rest/plaid/plaid_webhooks_spec.rb
510
- - spec/rest/actors_spec.rb
511
- - spec/rest/client_spec.rb
512
- - spec/rest/signed_documents_downloads_spec.rb
539
+ - spec/rest/plaid/plaid_account_permissions_spec.rb
540
+ - spec/rest/version_spec.rb
541
+ - spec/rest/products_spec.rb
513
542
  - spec/rest/tenant_app_settings_spec.rb
514
- - spec/rest/operators_login_tokens_spec.rb
543
+ - spec/rest/order_assignments_spec.rb
544
+ - spec/rest/documents_orders_spec.rb
545
+ - spec/rest/esign_templates_spec.rb
546
+ - spec/rest/order_reports_spec.rb
515
547
  - spec/rest/order_tokens_spec.rb
516
- - spec/rest/consumer_login_tokens_spec.rb
517
- - spec/rest/products_spec.rb
518
- - spec/rest/password_resets_spec.rb
548
+ - spec/rest/order_notifications_spec.rb
519
549
  - spec/rest/documents_upload_types_spec.rb
520
- - spec/rest/tenant_settings_spec.rb
521
- - spec/rest/order_reports_spec.rb
522
- - spec/rest/locations_spec.rb
523
- - spec/rest/operators_password_resets_spec.rb
524
- - spec/rest/sessions_spec.rb
525
- - spec/rest/portfolios_alerts_spec.rb
526
- - spec/rest/esign_templates_spec.rb
527
- - spec/rest/portfolios_available_consumers_spec.rb
528
- - spec/rest/portfolio_reports_spec.rb
529
- - spec/rest/version_spec.rb
530
- - spec/rest/verix/verix_documents_spec.rb
531
- - spec/rest/verix/verix_pdf_documents_spec.rb
532
- - spec/rest/verix/verix_records_spec.rb
533
- - spec/rest/verix/verix_metadata_spec.rb
534
- - spec/rest/portfolios_consumers_spec.rb
535
- - spec/rest/screenings_spec.rb
536
- - spec/rest/screening_metadatas_spec.rb
537
550
  - spec/rest/states_spec.rb
538
- - spec/rest/documents_orders_notifications_spec.rb
539
551
  - spec/rest/order_refreshes_spec.rb
540
- - spec/rest/order_statuses_spec.rb
552
+ - spec/rest/password_resets_spec.rb
541
553
  - spec/rest/orders_spec.rb
542
- - spec/rest/documents_orders_spec.rb
543
- - spec/rest/order_notifications_spec.rb
544
- - spec/utils/query_builder_spec.rb
545
- - spec/spec_helpers/client.rb
546
- - spec/spec_helpers/api_request.rb
547
- - spec/spec_helper.rb