finapps 6.11.0 → 6.12.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: 701a3842e404d5025eccbfd03848e77a1c97ebf837974d51dbbe5d62b7b29ef2
4
- data.tar.gz: bd21d306c479be7300b8d9b2769b0e50e657c9c2e962009fa21f82671ab338fe
3
+ metadata.gz: 6ce7c7f8fc34e608321adfbbd46536d067f7d50ad907ae0990623b840431f4c7
4
+ data.tar.gz: 73b85fc49cee872b9c1f0f5e3d9f39493a23bd0f46aeea8f6ef1e0c19979c5e8
5
5
  SHA512:
6
- metadata.gz: 44bf90538086fc313fbd62e8be9fdb908a72131f31a24a3485528f8da4cc94f299dc1ee1c328116447472914243f5a43916e9c667927fb07221b4d5217685718
7
- data.tar.gz: b61176f93d88fdf09e6a640c3a31185b60d295c76ba71a8654f28397ba8c22c5a9feb97b93fb5c07243f3af076387cc38dd1c48b6ae89313546925f796e940fb
6
+ metadata.gz: a48f06dc8cba7910743355dcd41e93d0835cb5c270b04e94ac11177994ab9397f023504b910b5ae08d00f492db8f7a07b1d586ba0990103fd78493b8aaee5b8c
7
+ data.tar.gz: f42a6c18258a88072d36a46d91c2071c648aba643f9a433b762589133d089a7d71839a9feb2a62796f31a019890e64cefca5071056671a1b44f8be6cf4a5e9be
data/finapps.gemspec CHANGED
@@ -17,7 +17,6 @@ Gem::Specification.new do |spec|
17
17
 
18
18
  spec.files = `git ls-files -z`.split("\x0")
19
19
  spec.executables = spec.files.grep(%r{^bin/}) {|f| File.basename(f) }
20
- spec.test_files = Dir['spec/**/*.rb']
21
20
  spec.require_paths = ['lib']
22
21
 
23
22
  spec.add_runtime_dependency 'finapps_core', '~> 6.0', '>= 6.0.2'
@@ -9,6 +9,13 @@ module FinApps
9
9
  path = "documents/edm/#{ERB::Util.url_encode(order_id)}/transmit"
10
10
  super(params, path)
11
11
  end
12
+
13
+ def show(transmission_id)
14
+ not_blank(transmission_id, :transmission_id)
15
+
16
+ path = "documents/edm/#{ERB::Util.url_encode(transmission_id)}"
17
+ super transmission_id, path
18
+ end
12
19
  end
13
20
  end
14
21
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinApps
4
- VERSION = '6.11.0'
4
+ VERSION = '6.12.0'
5
5
  end
@@ -3,18 +3,28 @@
3
3
  RSpec.describe FinApps::REST::EdmTransmissions do
4
4
  include SpecHelpers::Client
5
5
 
6
- describe '#create' do
7
- subject(:list) { described_class.new(client).create(:order_id, params) }
8
-
9
- let(:params) { {external_id: '12345'} }
10
-
6
+ RSpec.shared_examples 'an EdmTransmission response' do
11
7
  it_behaves_like 'an API request'
12
8
  it_behaves_like 'a successful request'
13
9
 
14
- it('returns a hash with known keys') do
15
- expect(list[RESULTS].keys)
10
+ it('returns a hash with the correct keys') do
11
+ expect(subject[RESULTS].keys)
16
12
  .to(match_array(%i[transmission_id date_created date_modified status
17
13
  document_order_id documents]))
18
14
  end
19
15
  end
16
+
17
+ describe '#create' do
18
+ subject(:list) { described_class.new(client).create(:order_id, params) }
19
+
20
+ let(:params) { {external_id: '12345'} }
21
+
22
+ it_behaves_like 'an EdmTransmission response'
23
+ end
24
+
25
+ describe '#show' do
26
+ subject(:show) { described_class.new(client).show(:transmission_id) }
27
+
28
+ it_behaves_like 'an EdmTransmission response'
29
+ end
20
30
  end
@@ -0,0 +1,17 @@
1
+ {
2
+ "transmission_id": "7829e171-4d39-4270-8969-7729038953d2",
3
+ "date_created": "2022-05-18T21:05:48.076Z",
4
+ "date_modified": "2022-06-08T20:46:05.839936446Z",
5
+ "status": 1,
6
+ "document_order_id": "0c272b3d-3c8c-43ab-beff-f5964835a591",
7
+ "documents": [
8
+ {
9
+ "template_data": {},
10
+ "path": "",
11
+ "file_id": "",
12
+ "status": 0,
13
+ "edm_filename": "",
14
+ "date_modified": "0001-01-01T00:00:00Z"
15
+ }
16
+ ]
17
+ }
@@ -4,11 +4,18 @@ module Fake
4
4
  module EdmTransmissionsRoutes
5
5
  class << self
6
6
  def included(base)
7
+ get_routes base
7
8
  post_routes base
8
9
 
9
10
  super
10
11
  end
11
12
 
13
+ def get_routes(base)
14
+ base.get("/#{base.version}/documents/edm/:transmission_id") do
15
+ json_response 200, 'edm_transmissions/show.json'
16
+ end
17
+ end
18
+
12
19
  def post_routes(base)
13
20
  base.post("/#{base.version}/documents/edm/:order_id/transmit") do
14
21
  json_response 200, 'edm_transmissions/create.json'
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.11.0
4
+ version: 6.12.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-19 00:00:00.000000000 Z
11
+ date: 2022-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: finapps_core
@@ -378,6 +378,7 @@ files:
378
378
  - spec/support/fixtures/documents_orders.json
379
379
  - spec/support/fixtures/documents_orders_none.json
380
380
  - spec/support/fixtures/edm_transmissions/create.json
381
+ - spec/support/fixtures/edm_transmissions/show.json
381
382
  - spec/support/fixtures/error.json
382
383
  - spec/support/fixtures/esign_templates.json
383
384
  - spec/support/fixtures/invalid_order_id.json
@@ -486,68 +487,4 @@ rubygems_version: 3.1.6
486
487
  signing_key:
487
488
  specification_version: 4
488
489
  summary: FinApps REST API ruby client.
489
- test_files:
490
- - spec/spec_helper.rb
491
- - spec/support/documents_uploads_routes.rb
492
- - spec/support/fake_api.rb
493
- - spec/support/routes/states.rb
494
- - spec/support/routes/actors.rb
495
- - spec/support/routes/edm_transmissions.rb
496
- - spec/support/routes/locations.rb
497
- - spec/support/routes/screening_metadatas.rb
498
- - spec/support/routes/query_screenings.rb
499
- - spec/support/screenings_routes.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
504
- - spec/rest/consumers_spec.rb
505
- - spec/rest/locations_spec.rb
506
- - spec/rest/screenings_spec.rb
507
- - spec/rest/consumer_login_tokens_spec.rb
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
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
532
- - spec/rest/alert_definitions_spec.rb
533
- - spec/rest/operator_change_password_email_spec.rb
534
- - spec/rest/consumers_portfolios_spec.rb
535
- - spec/rest/plaid/plaid_accounts_spec.rb
536
- - spec/rest/plaid/plaid_institution_logos_spec.rb
537
- - spec/rest/plaid/plaid_consumer_institutions_spec.rb
538
- - spec/rest/plaid/plaid_webhooks_spec.rb
539
- - spec/rest/plaid/plaid_account_permissions_spec.rb
540
- - spec/rest/version_spec.rb
541
- - spec/rest/products_spec.rb
542
- - spec/rest/tenant_app_settings_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
547
- - spec/rest/order_tokens_spec.rb
548
- - spec/rest/order_notifications_spec.rb
549
- - spec/rest/documents_upload_types_spec.rb
550
- - spec/rest/states_spec.rb
551
- - spec/rest/order_refreshes_spec.rb
552
- - spec/rest/password_resets_spec.rb
553
- - spec/rest/orders_spec.rb
490
+ test_files: []