finapps 5.2.1 → 5.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: 1876da28473c212167549859f20839e6166cf63eb8175fdb787b1a3ddcd589ca
4
- data.tar.gz: 1a6b376f154fc2b7dbdc4a935b30b5277c672ddf378e2a691ef0ebb40a29364e
3
+ metadata.gz: 7ba6fe462a4a44f6516aaec7bd31adb52ceffa7e7adabff632ec00d866e684f7
4
+ data.tar.gz: 792139e441b48b337df42d97973dbf4529d01d7317eb4249c8f868aaffbb1680
5
5
  SHA512:
6
- metadata.gz: 6ea0899aaa9171da4a52e7b97ef2bfb2f20574fb6970af9c28bd935cfd3b660a271b32b0cf4d9a3c56839fa27dea373e8289cc64d7bcae6632f142de77010b7a
7
- data.tar.gz: '016696c481689ca7817e2728a8aa7edbf337cd3fa0a075dec8f4d0254afda854d79baa5f42359dc804adb3d84f6cf45da96a760627478b13052cbccf116f494e'
6
+ metadata.gz: 6babd0b0fd8d3a567c9f5197673f2a3b7770128c2c688053777af68e02584a456de2f653b7df3eedf66b4f811a8a23da56e38fbe7f781c04bfcb1d22a8020624
7
+ data.tar.gz: 17549ec59b21bf9f5a995d25ea87df1068d7067d7f8814dd214ef7521c7b1687d2ece6e78764d0df14a19e473fb8b3f6023f1e3546003aafbaf38d4ff1c35b23
@@ -62,6 +62,7 @@ module FinApps
62
62
 
63
63
  def with_space_search(term)
64
64
  [
65
+ {external_id: term},
65
66
  {email: term},
66
67
  {first_name: term},
67
68
  {last_name: term}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinApps
4
- VERSION = '5.2.1'
4
+ VERSION = '5.3.0'
5
5
  end
@@ -118,11 +118,14 @@ RSpec.describe FinApps::REST::Consumers do
118
118
 
119
119
  it 'builds query and sends proper request' do
120
120
  list
121
- url = "#{versioned_api_path}/consumers?"\
122
- 'filter=%7B%22$or%22:%5B%7B%22email%22:%22term%22%7D,' \
123
- '%7B%22first_name%22:%22term%22%7D,'\
124
- '%7B%22last_name%22:%22term%22%7D%5D%7D&page=2&requested=25' \
125
- '&sort=date_created'
121
+ filter = '{"$or":['\
122
+ '{"external_id":"term"},'\
123
+ '{"email":"term"},'\
124
+ '{"first_name":"term"},'\
125
+ '{"last_name":"term"}'\
126
+ ']}'
127
+ query = "?filter=#{filter}&page=2&requested=25&sort=date_created"
128
+ url = "#{versioned_api_path}/consumers#{query}"
126
129
  expect(WebMock).to have_requested(:get, url)
127
130
  end
128
131
 
@@ -138,13 +141,18 @@ RSpec.describe FinApps::REST::Consumers do
138
141
 
139
142
  it 'treats space as start of a new query for first and last name' do
140
143
  list
141
- url = "#{versioned_api_path}/consumers?"\
142
- 'filter=%7B%22$or%22:%5B%7B%22email%22:%22Two%20terms%22%7D,'\
143
- '%7B%22first_name%22:%22Two%20terms%22%7D,'\
144
- '%7B%22last_name%22:%22Two%20terms%22%7D,%7B%22first_name%22:'\
145
- '%22Two%22%7D,%7B%22last_name%22:%22Two%22%7D,'\
146
- '%7B%22first_name%22:%22terms%22%7D,%7B%22last_name%22:'\
147
- '%22terms%22%7D%5D%7D&page=2&requested=25&sort=date_created'
144
+ filter = '{"$or":['\
145
+ '{"external_id":"Two terms"},'\
146
+ '{"email":"Two terms"},'\
147
+ '{"first_name":"Two terms"},'\
148
+ '{"last_name":"Two terms"},'\
149
+ '{"first_name":"Two"},'\
150
+ '{"last_name":"Two"},'\
151
+ '{"first_name":"terms"},'\
152
+ '{"last_name":"terms"}'\
153
+ ']}'
154
+ query = "?filter=#{filter}&page=2&requested=25&sort=date_created"
155
+ url = "#{versioned_api_path}/consumers#{query}"
148
156
  expect(WebMock).to have_requested(:get, url)
149
157
  end
150
158
  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: 5.2.1
4
+ version: 5.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-02-09 00:00:00.000000000 Z
11
+ date: 2021-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: finapps_core
@@ -496,51 +496,51 @@ signing_key:
496
496
  specification_version: 4
497
497
  summary: FinApps REST API ruby client.
498
498
  test_files:
499
+ - spec/spec_helpers/client.rb
499
500
  - spec/support/documents_uploads_routes.rb
500
501
  - spec/support/screenings_routes.rb
501
502
  - spec/support/fake_api.rb
502
- - spec/spec_helpers/client.rb
503
- - spec/rest/signed_documents_downloads_spec.rb
504
- - spec/rest/order_notifications_spec.rb
505
- - spec/rest/api_request.rb
506
- - spec/rest/sessions_spec.rb
507
- - spec/rest/tenant_app_settings_spec.rb
508
- - spec/rest/documents_orders_notifications_spec.rb
509
- - spec/rest/order_refreshes_spec.rb
503
+ - spec/spec_helper.rb
510
504
  - spec/rest/tenant_settings_spec.rb
511
- - spec/rest/order_statuses_spec.rb
512
- - spec/rest/order_tokens_spec.rb
513
- - spec/rest/documents_orders_spec.rb
514
- - spec/rest/consumers_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
515
511
  - spec/rest/portfolio_reports_spec.rb
516
- - spec/rest/alert_definitions_spec.rb
517
- - spec/rest/portfolios_available_consumers_spec.rb
518
512
  - spec/rest/portfolios_consumers_spec.rb
513
+ - spec/rest/documents_orders_spec.rb
519
514
  - spec/rest/documents_upload_types_spec.rb
520
- - spec/rest/esign_templates_spec.rb
521
- - spec/rest/documents_uploads_spec.rb
515
+ - spec/rest/version_spec.rb
522
516
  - spec/rest/orders_spec.rb
517
+ - spec/rest/consumers_portfolios_spec.rb
518
+ - spec/rest/portfolios_spec.rb
519
+ - spec/rest/documents_orders_notifications_spec.rb
520
+ - spec/rest/portfolios_alerts_spec.rb
521
+ - spec/rest/screenings_spec.rb
522
+ - spec/rest/order_reports_spec.rb
523
+ - spec/rest/order_refreshes_spec.rb
524
+ - spec/rest/documents_uploads_spec.rb
525
+ - spec/rest/order_statuses_spec.rb
526
+ - spec/rest/products_spec.rb
523
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
+ - spec/rest/portfolios_available_consumers_spec.rb
532
+ - spec/rest/alert_definitions_spec.rb
533
+ - spec/rest/consumers_spec.rb
534
+ - spec/rest/alert_occurrences_spec.rb
535
+ - spec/rest/password_resets_spec.rb
536
+ - spec/rest/operators_password_resets_spec.rb
524
537
  - spec/rest/plaid/plaid_account_permissions_spec.rb
538
+ - spec/rest/plaid/plaid_webhooks_spec.rb
525
539
  - spec/rest/plaid/plaid_consumer_institutions_spec.rb
526
540
  - spec/rest/plaid/plaid_accounts_spec.rb
527
- - spec/rest/plaid/plaid_webhooks_spec.rb
528
541
  - spec/rest/plaid/plaid_institution_logos_spec.rb
529
- - spec/rest/products_spec.rb
530
- - spec/rest/order_reports_spec.rb
531
- - spec/rest/screenings_spec.rb
532
- - spec/rest/alert_occurrences_spec.rb
533
- - spec/rest/operators_spec.rb
534
- - spec/rest/consumers_portfolios_spec.rb
535
- - spec/rest/version_spec.rb
542
+ - spec/rest/esign_templates_spec.rb
543
+ - spec/rest/tenant_app_settings_spec.rb
536
544
  - spec/rest/client_spec.rb
537
- - spec/rest/password_resets_spec.rb
538
- - spec/rest/portfolios_alerts_spec.rb
539
- - spec/rest/portfolios_spec.rb
540
- - spec/rest/verix/verix_pdf_documents_spec.rb
541
- - spec/rest/verix/verix_documents_spec.rb
542
- - spec/rest/verix/verix_records_spec.rb
543
- - spec/rest/verix/verix_metadata_spec.rb
544
- - spec/rest/operators_password_resets_spec.rb
545
- - spec/spec_helper.rb
545
+ - spec/rest/order_notifications_spec.rb
546
546
  - spec/utils/query_builder_spec.rb