finapps 6.2.0 → 6.3.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: 2f72a781755bf6469c544e60b5ae9fdf11edb57efe6dd947594c8c03e5d6204b
4
- data.tar.gz: 06df03914644a7b4eea4a5a3478d12959b4470f30ed1c31adbe4beed7b83dcb3
3
+ metadata.gz: 7266aadcc1504a05cf4417d5baa37bea3a70b190568aac2a6b74f817f71febc8
4
+ data.tar.gz: 33dd9d6926956a0c90d2cd22784ccc8767d52562e136db9e330f41a0fee8b82f
5
5
  SHA512:
6
- metadata.gz: 27109c39e9a476272df05507d7ab97b017add220878422120279708c70db385dd82bc0fe65d6c92521e3e640f9bcde905810893cf0c88fec452b9cd2d51782ae
7
- data.tar.gz: f02bc2aa43038d59036b43b312e81b9ef865082c28130c0b34745d4e7d2a84175fc4f00b0528433579334e906cfceb5409288bb0aa068fdc0eb4e033a1ee3f80
6
+ metadata.gz: f516163b74e56120837b6c38150f72dc598d214554942c0c9d45eeb7ef8dda0f4f8f57be5b37f2b69c255ce151363de5e9c1fcd68f6f0a9f83ce2e9b96407a9f
7
+ data.tar.gz: d4e8b744c64ea42c79aadeb2fc7513eba325fb0084f5ae253c48d8cf8f09c57880beb7cc4b2ddaf946ee6628b16c6faf86f1caaede3bf2d246f81c26972b1e89
data/lib/finapps.rb CHANGED
@@ -17,6 +17,7 @@ require 'finapps/rest/password_resets'
17
17
  require 'finapps/rest/operators'
18
18
  require 'finapps/rest/operator_login_tokens'
19
19
  require 'finapps/rest/operators_password_resets'
20
+ require 'finapps/rest/operator_change_password_email'
20
21
  require 'finapps/rest/products'
21
22
  require 'finapps/rest/order_assignments'
22
23
  require 'finapps/rest/client'
@@ -27,6 +27,7 @@ module FinApps
27
27
  operators
28
28
  operator_login_tokens
29
29
  operators_password_resets
30
+ operator_change_password_email
30
31
  password_resets
31
32
  plaid_webhooks
32
33
  plaid_consumer_institutions
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module FinApps
4
+ module REST
5
+ class OperatorChangePasswordEmail < FinAppsCore::REST::Resources
6
+ def create(params)
7
+ not_blank(params, :params)
8
+ super params, 'login/change_password_email'
9
+ end
10
+ end
11
+ end
12
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinApps
4
- VERSION = '6.2.0'
4
+ VERSION = '6.3.0'
5
5
  end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helpers/client'
4
+
5
+ RSpec.describe FinApps::REST::OperatorChangePasswordEmail do
6
+ context 'when initialized with valid FinApps::Client object' do
7
+ include SpecHelpers::Client
8
+ subject(:operators_change_password_email) do
9
+ described_class.new(client)
10
+ end
11
+
12
+ describe '#create' do
13
+ let(:results) { create[0] }
14
+ let(:error_messages) { create[1] }
15
+
16
+ context 'when missing params' do
17
+ let(:create) { subject.create(nil) }
18
+
19
+ it do
20
+ expect { create }.to raise_error(FinAppsCore::MissingArgumentsError)
21
+ end
22
+ end
23
+
24
+ context 'with valid params' do
25
+ let(:create) { subject.create(email: 'valid email') }
26
+
27
+ it('doesn\'t raise an error') { expect { create }.not_to raise_error }
28
+ it('doesn\'t have a response') { expect(results).to be_nil }
29
+ it('returns no error messages') { expect(error_messages).to be_empty }
30
+ end
31
+ end
32
+ end
33
+ end
@@ -380,6 +380,17 @@ module Fake
380
380
  end
381
381
  end
382
382
 
383
+ # operator change password email
384
+ post("/#{version}/login/change_password_email") do
385
+ request.body.rewind
386
+ request_payload = JSON.parse request.body.read
387
+ if request_payload['email'] == 'valid email'
388
+ status 200
389
+ else
390
+ json_response 404, 'resource_not_found.json'
391
+ end
392
+ end
393
+
383
394
  # session
384
395
  post("/#{version}/login") do
385
396
  request.body.rewind
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.2.0
4
+ version: 6.3.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-07-19 00:00:00.000000000 Z
11
+ date: 2021-08-16 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_upload_types.rb
270
270
  - lib/finapps/rest/documents_uploads.rb
271
271
  - lib/finapps/rest/esign_templates.rb
272
+ - lib/finapps/rest/operator_change_password_email.rb
272
273
  - lib/finapps/rest/operator_login_tokens.rb
273
274
  - lib/finapps/rest/operators.rb
274
275
  - lib/finapps/rest/operators_password_resets.rb
@@ -316,6 +317,7 @@ files:
316
317
  - spec/rest/documents_upload_types_spec.rb
317
318
  - spec/rest/documents_uploads_spec.rb
318
319
  - spec/rest/esign_templates_spec.rb
320
+ - spec/rest/operator_change_password_email_spec.rb
319
321
  - spec/rest/operators_login_tokens_spec.rb
320
322
  - spec/rest/operators_password_resets_spec.rb
321
323
  - spec/rest/operators_spec.rb
@@ -457,53 +459,54 @@ signing_key:
457
459
  specification_version: 4
458
460
  summary: FinApps REST API ruby client.
459
461
  test_files:
460
- - spec/support/documents_uploads_routes.rb
461
- - spec/support/screenings_routes.rb
462
- - spec/support/fake_api.rb
463
- - spec/utils/query_builder_spec.rb
464
- - spec/spec_helpers/client.rb
465
- - spec/spec_helper.rb
466
- - spec/rest/order_reports_spec.rb
462
+ - spec/rest/order_refreshes_spec.rb
463
+ - spec/rest/documents_orders_notifications_spec.rb
464
+ - spec/rest/operators_password_resets_spec.rb
465
+ - spec/rest/operators_spec.rb
466
+ - spec/rest/tenant_settings_spec.rb
467
467
  - spec/rest/api_request.rb
468
- - spec/rest/operators_login_tokens_spec.rb
469
- - spec/rest/tenant_app_settings_spec.rb
468
+ - spec/rest/password_resets_spec.rb
470
469
  - spec/rest/products_spec.rb
471
- - spec/rest/orders_spec.rb
470
+ - spec/rest/verix/verix_metadata_spec.rb
471
+ - spec/rest/verix/verix_records_spec.rb
472
+ - spec/rest/verix/verix_documents_spec.rb
473
+ - spec/rest/verix/verix_pdf_documents_spec.rb
474
+ - spec/rest/documents_uploads_spec.rb
475
+ - spec/rest/alert_occurrences_spec.rb
476
+ - spec/rest/consumers_portfolios_spec.rb
472
477
  - spec/rest/esign_templates_spec.rb
473
- - spec/rest/sessions_spec.rb
474
- - spec/rest/order_assignments_spec.rb
475
- - spec/rest/documents_orders_spec.rb
476
- - spec/rest/order_tokens_spec.rb
477
- - spec/rest/order_notifications_spec.rb
478
- - spec/rest/order_refreshes_spec.rb
478
+ - spec/rest/orders_spec.rb
479
479
  - spec/rest/plaid/plaid_accounts_spec.rb
480
480
  - spec/rest/plaid/plaid_institution_logos_spec.rb
481
- - spec/rest/plaid/plaid_account_permissions_spec.rb
482
481
  - spec/rest/plaid/plaid_consumer_institutions_spec.rb
482
+ - spec/rest/plaid/plaid_account_permissions_spec.rb
483
483
  - spec/rest/plaid/plaid_webhooks_spec.rb
484
- - spec/rest/verix/verix_pdf_documents_spec.rb
485
- - spec/rest/verix/verix_metadata_spec.rb
486
- - spec/rest/verix/verix_records_spec.rb
487
- - spec/rest/verix/verix_documents_spec.rb
488
- - spec/rest/portfolios_alerts_spec.rb
489
- - spec/rest/operators_password_resets_spec.rb
484
+ - spec/rest/portfolios_consumers_spec.rb
485
+ - spec/rest/order_statuses_spec.rb
486
+ - spec/rest/order_assignments_spec.rb
487
+ - spec/rest/version_spec.rb
490
488
  - spec/rest/portfolio_reports_spec.rb
491
- - spec/rest/alert_definitions_spec.rb
489
+ - spec/rest/order_tokens_spec.rb
490
+ - spec/rest/order_notifications_spec.rb
491
+ - spec/rest/sessions_spec.rb
492
+ - spec/rest/client_spec.rb
493
+ - spec/rest/documents_orders_spec.rb
494
+ - spec/rest/portfolios_available_consumers_spec.rb
492
495
  - spec/rest/consumers_spec.rb
493
- - spec/rest/tenant_settings_spec.rb
496
+ - spec/rest/consumer_login_tokens_spec.rb
497
+ - spec/rest/screenings_spec.rb
498
+ - spec/rest/tenant_app_settings_spec.rb
499
+ - spec/rest/order_reports_spec.rb
494
500
  - spec/rest/signed_documents_downloads_spec.rb
495
- - spec/rest/consumers_portfolios_spec.rb
501
+ - spec/rest/operators_login_tokens_spec.rb
502
+ - spec/rest/operator_change_password_email_spec.rb
496
503
  - spec/rest/documents_upload_types_spec.rb
497
- - spec/rest/documents_orders_notifications_spec.rb
498
- - spec/rest/version_spec.rb
499
- - spec/rest/documents_uploads_spec.rb
500
- - spec/rest/client_spec.rb
501
- - spec/rest/portfolios_consumers_spec.rb
504
+ - spec/rest/portfolios_alerts_spec.rb
502
505
  - spec/rest/portfolios_spec.rb
503
- - spec/rest/order_statuses_spec.rb
504
- - spec/rest/alert_occurrences_spec.rb
505
- - spec/rest/screenings_spec.rb
506
- - spec/rest/operators_spec.rb
507
- - spec/rest/password_resets_spec.rb
508
- - spec/rest/portfolios_available_consumers_spec.rb
509
- - spec/rest/consumer_login_tokens_spec.rb
506
+ - spec/rest/alert_definitions_spec.rb
507
+ - spec/spec_helpers/client.rb
508
+ - spec/support/fake_api.rb
509
+ - spec/support/screenings_routes.rb
510
+ - spec/support/documents_uploads_routes.rb
511
+ - spec/spec_helper.rb
512
+ - spec/utils/query_builder_spec.rb