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 +4 -4
- data/lib/finapps/rest/consumers.rb +1 -0
- data/lib/finapps/version.rb +1 -1
- data/spec/rest/consumers_spec.rb +20 -12
- metadata +35 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ba6fe462a4a44f6516aaec7bd31adb52ceffa7e7adabff632ec00d866e684f7
|
4
|
+
data.tar.gz: 792139e441b48b337df42d97973dbf4529d01d7317eb4249c8f868aaffbb1680
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6babd0b0fd8d3a567c9f5197673f2a3b7770128c2c688053777af68e02584a456de2f653b7df3eedf66b4f811a8a23da56e38fbe7f781c04bfcb1d22a8020624
|
7
|
+
data.tar.gz: 17549ec59b21bf9f5a995d25ea87df1068d7067d7f8814dd214ef7521c7b1687d2ece6e78764d0df14a19e473fb8b3f6023f1e3546003aafbaf38d4ff1c35b23
|
data/lib/finapps/version.rb
CHANGED
data/spec/rest/consumers_spec.rb
CHANGED
@@ -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
|
-
|
122
|
-
'
|
123
|
-
'
|
124
|
-
'
|
125
|
-
'
|
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
|
-
|
142
|
-
'
|
143
|
-
'
|
144
|
-
'
|
145
|
-
'
|
146
|
-
'
|
147
|
-
'
|
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.
|
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-
|
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/
|
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/
|
512
|
-
- spec/rest/
|
513
|
-
- spec/rest/
|
514
|
-
- spec/rest/
|
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/
|
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/
|
530
|
-
- spec/rest/
|
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/
|
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
|