eligible 2.9.7 → 3.1.0.beta6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +77 -0
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +279 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +66 -0
- data/README.md +21 -1
- data/eligible.gemspec +7 -5
- data/lib/eligible/api_resource.rb +27 -6
- data/lib/eligible/calculator_deploy_url.rb +2 -2
- data/lib/eligible/claim.rb +10 -10
- data/lib/eligible/coverage.rb +8 -4
- data/lib/eligible/coverage_resource.rb +4 -4
- data/lib/eligible/customer.rb +8 -8
- data/lib/eligible/encryptor.rb +1 -1
- data/lib/eligible/enrollment.rb +8 -8
- data/lib/eligible/errors/eligible_error.rb +2 -1
- data/lib/eligible/icd.rb +16 -0
- data/lib/eligible/lockbox.rb +6 -6
- data/lib/eligible/oauth_token.rb +9 -0
- data/lib/eligible/ocr.rb +2 -2
- data/lib/eligible/original_signature_pdf.rb +12 -10
- data/lib/eligible/payer.rb +6 -6
- data/lib/eligible/payer_mapping.rb +37 -0
- data/lib/eligible/payment.rb +4 -4
- data/lib/eligible/preauth_resource.rb +4 -4
- data/lib/eligible/precert.rb +2 -2
- data/lib/eligible/provider_model.rb +2 -2
- data/lib/eligible/public_key.rb +8 -8
- data/lib/eligible/received_pdf.rb +6 -4
- data/lib/eligible/risk_assessment.rb +8 -4
- data/lib/eligible/session_token.rb +4 -4
- data/lib/eligible/ticket.rb +12 -12
- data/lib/eligible/util.rb +3 -3
- data/lib/eligible/v1_0/action.rb +9 -0
- data/lib/eligible/v1_0/attribute.rb +9 -0
- data/lib/eligible/v1_0/balance_capture.rb +21 -0
- data/lib/eligible/v1_0/charge.rb +13 -0
- data/lib/eligible/v1_0/claim.rb +25 -0
- data/lib/eligible/v1_0/claim_service_line.rb +9 -0
- data/lib/eligible/v1_0/contract.rb +9 -0
- data/lib/eligible/v1_0/device.rb +9 -0
- data/lib/eligible/v1_0/discount.rb +9 -0
- data/lib/eligible/v1_0/enrollment.rb +17 -0
- data/lib/eligible/v1_0/estimate.rb +29 -0
- data/lib/eligible/v1_0/estimate_service_line.rb +17 -0
- data/lib/eligible/v1_0/fee.rb +21 -0
- data/lib/eligible/v1_0/fee_refund.rb +29 -0
- data/lib/eligible/v1_0/file.rb +17 -0
- data/lib/eligible/v1_0/file_link.rb +13 -0
- data/lib/eligible/v1_0/insurance_company.rb +21 -0
- data/lib/eligible/v1_0/insurance_company_alias.rb +9 -0
- data/lib/eligible/v1_0/insurance_policy.rb +9 -0
- data/lib/eligible/v1_0/patient_question.rb +9 -0
- data/lib/eligible/v1_0/patient_questionnaire.rb +9 -0
- data/lib/eligible/v1_0/patient_record.rb +9 -0
- data/lib/eligible/v1_0/patient_statement.rb +59 -0
- data/lib/eligible/v1_0/patient_statement_service_line.rb +13 -0
- data/lib/eligible/v1_0/payment_report.rb +21 -0
- data/lib/eligible/v1_0/product.rb +9 -0
- data/lib/eligible/v1_0/provider.rb +9 -0
- data/lib/eligible/v1_0/refund.rb +21 -0
- data/lib/eligible/v1_0/remark.rb +21 -0
- data/lib/eligible/v1_0/rest_api_base.rb +44 -0
- data/lib/eligible/v1_0/rule.rb +13 -0
- data/lib/eligible/v1_0/session.rb +21 -0
- data/lib/eligible/v1_0/transaction.rb +21 -0
- data/lib/eligible/v1_0/treatment.rb +9 -0
- data/lib/eligible/v1_0/value_list.rb +9 -0
- data/lib/eligible/v1_0/value_list_item.rb +9 -0
- data/lib/eligible/v1_0/verification.rb +17 -0
- data/lib/eligible/version.rb +1 -1
- data/lib/eligible/visit_type.rb +4 -4
- data/lib/eligible/x12.rb +2 -2
- data/lib/eligible.rb +152 -35
- metadata +76 -22
- data/ChangeLog +0 -131
- data/circle.yml +0 -15
data/lib/eligible.rb
CHANGED
|
@@ -25,8 +25,10 @@ require 'eligible/ticket'
|
|
|
25
25
|
require 'eligible/customer'
|
|
26
26
|
require 'eligible/ocr'
|
|
27
27
|
require 'eligible/original_signature_pdf'
|
|
28
|
+
require 'eligible/oauth_token'
|
|
28
29
|
require 'eligible/received_pdf'
|
|
29
30
|
require 'eligible/payer'
|
|
31
|
+
require 'eligible/payer_mapping'
|
|
30
32
|
require 'eligible/preauth_resource'
|
|
31
33
|
require 'eligible/precert'
|
|
32
34
|
require 'eligible/referral'
|
|
@@ -37,6 +39,46 @@ require 'eligible/visit_type'
|
|
|
37
39
|
require 'eligible/provider_model'
|
|
38
40
|
require 'eligible/calculator_deploy_url'
|
|
39
41
|
require 'eligible/risk_assessment'
|
|
42
|
+
require 'eligible/icd'
|
|
43
|
+
|
|
44
|
+
# New REST API Endpoints
|
|
45
|
+
require 'eligible/v1_0/rest_api_base'
|
|
46
|
+
require 'eligible/v1_0/action'
|
|
47
|
+
require 'eligible/v1_0/attribute'
|
|
48
|
+
require 'eligible/v1_0/balance_capture'
|
|
49
|
+
require 'eligible/v1_0/charge'
|
|
50
|
+
require 'eligible/v1_0/claim'
|
|
51
|
+
require 'eligible/v1_0/claim_service_line'
|
|
52
|
+
require 'eligible/v1_0/contract'
|
|
53
|
+
require 'eligible/v1_0/device'
|
|
54
|
+
require 'eligible/v1_0/discount'
|
|
55
|
+
require 'eligible/v1_0/enrollment'
|
|
56
|
+
require 'eligible/v1_0/estimate'
|
|
57
|
+
require 'eligible/v1_0/estimate_service_line'
|
|
58
|
+
require 'eligible/v1_0/fee'
|
|
59
|
+
require 'eligible/v1_0/fee_refund'
|
|
60
|
+
require 'eligible/v1_0/file'
|
|
61
|
+
require 'eligible/v1_0/file_link'
|
|
62
|
+
require 'eligible/v1_0/insurance_company'
|
|
63
|
+
require 'eligible/v1_0/insurance_company_alias'
|
|
64
|
+
require 'eligible/v1_0/insurance_policy'
|
|
65
|
+
require 'eligible/v1_0/patient_record'
|
|
66
|
+
require 'eligible/v1_0/patient_statement'
|
|
67
|
+
require 'eligible/v1_0/patient_statement_service_line'
|
|
68
|
+
require 'eligible/v1_0/payment_report'
|
|
69
|
+
require 'eligible/v1_0/patient_question'
|
|
70
|
+
require 'eligible/v1_0/patient_questionnaire'
|
|
71
|
+
require 'eligible/v1_0/product'
|
|
72
|
+
require 'eligible/v1_0/provider'
|
|
73
|
+
require 'eligible/v1_0/refund'
|
|
74
|
+
require 'eligible/v1_0/remark'
|
|
75
|
+
require 'eligible/v1_0/rule'
|
|
76
|
+
require 'eligible/v1_0/session'
|
|
77
|
+
require 'eligible/v1_0/transaction'
|
|
78
|
+
require 'eligible/v1_0/treatment'
|
|
79
|
+
require 'eligible/v1_0/value_list'
|
|
80
|
+
require 'eligible/v1_0/value_list_item'
|
|
81
|
+
require 'eligible/v1_0/verification'
|
|
40
82
|
|
|
41
83
|
# Errors
|
|
42
84
|
require 'eligible/errors/eligible_error'
|
|
@@ -50,11 +92,36 @@ module Eligible
|
|
|
50
92
|
@@test = false
|
|
51
93
|
@@api_version = '1.5'
|
|
52
94
|
@@api_base = "https://gds.eligibleapi.com/v#{@@api_version}"
|
|
53
|
-
@@fingerprints = %w(
|
|
95
|
+
@@fingerprints = %w(484b841263be5ad39ac7cadd77ac61d84add5acd
|
|
96
|
+
ad10dbfd536a0d054b02a7d30c11aa1eb5dbfb41
|
|
97
|
+
1fe04161ed657b55ac29a0c48da4cf246f8e657b
|
|
98
|
+
1a1b7d4faa43ecdeab40cc8d203583624d5917f4
|
|
99
|
+
b4225ee59dc7ede4d68e7b2c75c6e6ac79649416
|
|
100
|
+
75132c1ab844500c6ad1f26b49c11d36933ce868
|
|
101
|
+
1c3fe254bded256ea30d0a235bb9881b82701082
|
|
54
102
|
a1cd762a9f4be0f3b6bdd6300e52c6ce8d7d67f5)
|
|
103
|
+
@@eligible_account = nil
|
|
104
|
+
@@eligible_account_id = nil
|
|
55
105
|
|
|
56
|
-
def self.api_url(url = '')
|
|
57
|
-
@@api_base
|
|
106
|
+
def self.api_url(url = '', rest_api_version = nil)
|
|
107
|
+
api_base = rest_api_version ? @@api_base.gsub(/v(\d).(\d)/, "v#{rest_api_version}") : @@api_base
|
|
108
|
+
api_base + url.to_s
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
def self.eligible_account
|
|
112
|
+
@@eligible_account
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
def self.eligible_account_id
|
|
116
|
+
@@eligible_account_id
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
def self.eligible_account=(eligible_account)
|
|
120
|
+
@@eligible_account = eligible_account
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
def self.eligible_account_id=(eligible_account_id)
|
|
124
|
+
@@eligible_account_id = eligible_account_id
|
|
58
125
|
end
|
|
59
126
|
|
|
60
127
|
def self.api_key
|
|
@@ -110,12 +177,18 @@ module Eligible
|
|
|
110
177
|
Util.key?(params, :api_key)
|
|
111
178
|
end
|
|
112
179
|
|
|
180
|
+
def self.rest_api_version?(params)
|
|
181
|
+
Util.key?(params, :rest_api_version)
|
|
182
|
+
end
|
|
183
|
+
|
|
113
184
|
def self.request(method, url, api_key, params = {}, headers = {})
|
|
114
185
|
session_token = Util.value(params, :session_token)
|
|
115
186
|
api_key ||= @@api_key unless session_token
|
|
116
187
|
test = self.test
|
|
117
188
|
api_key = Util.value(params, :api_key) if api_key?(params)
|
|
118
189
|
test = Util.value(params, :test) if test_key?(params)
|
|
190
|
+
rest_api_version = Util.value(params, :rest_api_version) if rest_api_version?(params)
|
|
191
|
+
basic_auth = true if rest_api_version?(params)
|
|
119
192
|
|
|
120
193
|
fail AuthenticationError, 'No API key provided. (HINT: set your API key using "Eligible.api_key = <API-KEY>".' unless api_key || session_token
|
|
121
194
|
|
|
@@ -129,39 +202,13 @@ module Eligible
|
|
|
129
202
|
uname: uname
|
|
130
203
|
}
|
|
131
204
|
|
|
132
|
-
#
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
when :get, :head, :delete
|
|
137
|
-
url += "?api_key=#{api_key}"
|
|
138
|
-
if params && params.count > 0
|
|
139
|
-
query_string = Util.flatten_params(params).collect { |key, value| "#{key}=#{Util.url_encode(value)}" }.join('&')
|
|
140
|
-
url += "&#{query_string}"
|
|
141
|
-
end
|
|
142
|
-
url += "&test=#{test}"
|
|
143
|
-
payload = nil
|
|
144
|
-
else
|
|
145
|
-
params.merge!('api_key' => api_key, 'test' => test)
|
|
146
|
-
payload = Util.key?(params, :file) ? params : Eligible::JSON.dump(params)
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
begin
|
|
150
|
-
headers = { x_eligible_debuginfo: Eligible::JSON.dump(debug_info) }.merge(headers)
|
|
151
|
-
rescue => e
|
|
152
|
-
headers = {
|
|
153
|
-
x_eligible_client_raw_user_agent: debug_info.inspect,
|
|
154
|
-
error: "#{e} (#{e.class})"
|
|
155
|
-
}.merge(headers)
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
headers = {
|
|
159
|
-
user_agent: "eligible-ruby/#{Eligible::VERSION}",
|
|
160
|
-
authorization: "Bearer #{api_key}",
|
|
161
|
-
content_type: 'application/json'
|
|
162
|
-
}.merge(headers)
|
|
205
|
+
# Set request URL and Payload based on new and old endpoints version
|
|
206
|
+
url, payload = generate_request_url_and_payload(
|
|
207
|
+
method, url, params, **{ test: test, rest_api_version: rest_api_version, api_key: api_key, basic_auth: basic_auth },
|
|
208
|
+
)
|
|
163
209
|
|
|
164
|
-
|
|
210
|
+
# Set request Headers and Authorization based on new and old endpoints version
|
|
211
|
+
headers = generate_request_headers(headers, debug_info, basic_auth, **{ api_key: api_key, session_token: session_token })
|
|
165
212
|
|
|
166
213
|
opts = {
|
|
167
214
|
method: method,
|
|
@@ -216,6 +263,76 @@ module Eligible
|
|
|
216
263
|
return [ resp, api_key ]
|
|
217
264
|
end
|
|
218
265
|
|
|
266
|
+
def self.generate_request_url_and_payload(method, url, params, options)
|
|
267
|
+
# GET requests, parameters on the query string
|
|
268
|
+
# POST requests, parameters as json in the body
|
|
269
|
+
url = api_url(url, options[:rest_api_version])
|
|
270
|
+
# Used rest_api_version param only to identify new REST API version, and is not required to make calls for new REST api endpoints
|
|
271
|
+
params.delete(:rest_api_version)
|
|
272
|
+
case method.to_s.downcase.to_sym
|
|
273
|
+
when :get, :head, :delete
|
|
274
|
+
url = fetch_url_with_query_string(params, url, **options)
|
|
275
|
+
payload = nil
|
|
276
|
+
else
|
|
277
|
+
payload = request_payload(options, **params)
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
[url, payload]
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
def self.fetch_url_with_query_string(params, url, options)
|
|
284
|
+
url += options_query_string(options)
|
|
285
|
+
return url unless params || params.count == 0
|
|
286
|
+
|
|
287
|
+
query_string = params_query_string(params)
|
|
288
|
+
url += options[:basic_auth] ? "?#{query_string}" : "&#{query_string}"
|
|
289
|
+
url
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
def self.options_query_string(options)
|
|
293
|
+
options[:basic_auth] ? '' : "?test=#{options[:test]}&api_key=#{options[:api_key]}"
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
def self.params_query_string(params)
|
|
297
|
+
Util.flatten_params(params).collect { |key, value| "#{key}=#{Util.url_encode(value)}" }.join('&')
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
def self.request_payload(options, params)
|
|
301
|
+
params.merge!('test' => options[:test], 'api_key' => options[:api_key]) unless options[:basic_auth]
|
|
302
|
+
Util.key?(params, :file) ? params : Eligible::JSON.dump(params)
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
def self.generate_request_headers(headers, debug_info, basic_auth, auth_options)
|
|
306
|
+
begin
|
|
307
|
+
headers = { x_eligible_debuginfo: Eligible::JSON.dump(debug_info) }.merge(headers)
|
|
308
|
+
rescue => e
|
|
309
|
+
headers = {
|
|
310
|
+
x_eligible_client_raw_user_agent: debug_info.inspect,
|
|
311
|
+
error: "#{e} (#{e.class})"
|
|
312
|
+
}.merge(headers)
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
headers = {
|
|
316
|
+
user_agent: "eligible-ruby/#{Eligible::VERSION}",
|
|
317
|
+
content_type: 'application/json'
|
|
318
|
+
}.merge(headers)
|
|
319
|
+
|
|
320
|
+
headers[:authorization] = authorization_header(basic_auth, **auth_options)
|
|
321
|
+
headers[:eligible_version] = api_version if api_version
|
|
322
|
+
headers[:eligible_account] = eligible_account if eligible_account
|
|
323
|
+
headers[:eligible_account_id] = eligible_account_id if eligible_account_id
|
|
324
|
+
headers
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
def self.authorization_header(basic_auth, auth_options)
|
|
328
|
+
# Using Bearer scheme for Session Token Auth for new REST API endpoints (v1.0)
|
|
329
|
+
return "Bearer #{auth_options[:session_token]}" if basic_auth && auth_options[:session_token]
|
|
330
|
+
|
|
331
|
+
# Using Basic Auth for new REST API endpoints (v1.0)
|
|
332
|
+
basic_auth_token = Base64.strict_encode64("#{auth_options[:api_key]}:")
|
|
333
|
+
"Basic #{basic_auth_token}" if basic_auth
|
|
334
|
+
end
|
|
335
|
+
|
|
219
336
|
def self.verify_certificate
|
|
220
337
|
lambda do |preverify_ok, certificate_store|
|
|
221
338
|
return true if test == 'true'
|
metadata
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eligible
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.1.0.beta6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Katelyn Gleaon
|
|
8
8
|
- Rodrigo Dominguez
|
|
9
9
|
- Aaron Bedra
|
|
10
|
-
autorequire:
|
|
10
|
+
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2026-01-17 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rest-client
|
|
@@ -18,70 +18,84 @@ dependencies:
|
|
|
18
18
|
requirements:
|
|
19
19
|
- - "~>"
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 2.
|
|
21
|
+
version: 2.1.0
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
25
|
requirements:
|
|
26
26
|
- - "~>"
|
|
27
27
|
- !ruby/object:Gem::Version
|
|
28
|
-
version: 2.
|
|
28
|
+
version: 2.1.0
|
|
29
29
|
- !ruby/object:Gem::Dependency
|
|
30
30
|
name: multi_json
|
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
|
32
32
|
requirements:
|
|
33
33
|
- - "~>"
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
|
-
version:
|
|
35
|
+
version: 1.15.0
|
|
36
36
|
type: :runtime
|
|
37
37
|
prerelease: false
|
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
39
39
|
requirements:
|
|
40
40
|
- - "~>"
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version:
|
|
42
|
+
version: 1.15.0
|
|
43
43
|
- !ruby/object:Gem::Dependency
|
|
44
44
|
name: rake
|
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
|
47
47
|
- - "~>"
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version:
|
|
49
|
+
version: 13.0.6
|
|
50
50
|
type: :development
|
|
51
51
|
prerelease: false
|
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
53
53
|
requirements:
|
|
54
54
|
- - "~>"
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
|
-
version:
|
|
56
|
+
version: 13.0.6
|
|
57
57
|
- !ruby/object:Gem::Dependency
|
|
58
58
|
name: rspec
|
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
|
60
60
|
requirements:
|
|
61
61
|
- - "~>"
|
|
62
62
|
- !ruby/object:Gem::Version
|
|
63
|
-
version:
|
|
63
|
+
version: 3.11.0
|
|
64
64
|
type: :development
|
|
65
65
|
prerelease: false
|
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
|
67
67
|
requirements:
|
|
68
68
|
- - "~>"
|
|
69
69
|
- !ruby/object:Gem::Version
|
|
70
|
-
version:
|
|
70
|
+
version: 3.11.0
|
|
71
|
+
- !ruby/object:Gem::Dependency
|
|
72
|
+
name: rspec_junit_formatter
|
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
|
74
|
+
requirements:
|
|
75
|
+
- - "~>"
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: 0.5.1
|
|
78
|
+
type: :development
|
|
79
|
+
prerelease: false
|
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
81
|
+
requirements:
|
|
82
|
+
- - "~>"
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: 0.5.1
|
|
71
85
|
- !ruby/object:Gem::Dependency
|
|
72
86
|
name: simplecov
|
|
73
87
|
requirement: !ruby/object:Gem::Requirement
|
|
74
88
|
requirements:
|
|
75
89
|
- - "~>"
|
|
76
90
|
- !ruby/object:Gem::Version
|
|
77
|
-
version:
|
|
91
|
+
version: 0.21.2
|
|
78
92
|
type: :development
|
|
79
93
|
prerelease: false
|
|
80
94
|
version_requirements: !ruby/object:Gem::Requirement
|
|
81
95
|
requirements:
|
|
82
96
|
- - "~>"
|
|
83
97
|
- !ruby/object:Gem::Version
|
|
84
|
-
version:
|
|
98
|
+
version: 0.21.2
|
|
85
99
|
description: Eligible is a developer-friendly way to process health care eligibility
|
|
86
100
|
checks. Learn more at https://eligible.com
|
|
87
101
|
email:
|
|
@@ -92,17 +106,18 @@ executables: []
|
|
|
92
106
|
extensions: []
|
|
93
107
|
extra_rdoc_files: []
|
|
94
108
|
files:
|
|
109
|
+
- ".circleci/config.yml"
|
|
95
110
|
- ".codeclimate.yml"
|
|
96
111
|
- ".gitignore"
|
|
97
112
|
- ".rspec"
|
|
98
113
|
- ".rubocop.yml"
|
|
99
114
|
- ".ruby-version"
|
|
100
|
-
-
|
|
115
|
+
- CHANGELOG.md
|
|
101
116
|
- Gemfile
|
|
117
|
+
- Gemfile.lock
|
|
102
118
|
- LICENSE
|
|
103
119
|
- README.md
|
|
104
120
|
- Rakefile
|
|
105
|
-
- circle.yml
|
|
106
121
|
- eligible.gemspec
|
|
107
122
|
- lib/eligible.rb
|
|
108
123
|
- lib/eligible/api_resource.rb
|
|
@@ -120,12 +135,15 @@ files:
|
|
|
120
135
|
- lib/eligible/errors/authentication_error.rb
|
|
121
136
|
- lib/eligible/errors/eligible_error.rb
|
|
122
137
|
- lib/eligible/errors/invalid_request_error.rb
|
|
138
|
+
- lib/eligible/icd.rb
|
|
123
139
|
- lib/eligible/json.rb
|
|
124
140
|
- lib/eligible/lockbox.rb
|
|
125
141
|
- lib/eligible/medicare.rb
|
|
142
|
+
- lib/eligible/oauth_token.rb
|
|
126
143
|
- lib/eligible/ocr.rb
|
|
127
144
|
- lib/eligible/original_signature_pdf.rb
|
|
128
145
|
- lib/eligible/payer.rb
|
|
146
|
+
- lib/eligible/payer_mapping.rb
|
|
129
147
|
- lib/eligible/payment.rb
|
|
130
148
|
- lib/eligible/preauth_resource.rb
|
|
131
149
|
- lib/eligible/precert.rb
|
|
@@ -137,6 +155,43 @@ files:
|
|
|
137
155
|
- lib/eligible/session_token.rb
|
|
138
156
|
- lib/eligible/ticket.rb
|
|
139
157
|
- lib/eligible/util.rb
|
|
158
|
+
- lib/eligible/v1_0/action.rb
|
|
159
|
+
- lib/eligible/v1_0/attribute.rb
|
|
160
|
+
- lib/eligible/v1_0/balance_capture.rb
|
|
161
|
+
- lib/eligible/v1_0/charge.rb
|
|
162
|
+
- lib/eligible/v1_0/claim.rb
|
|
163
|
+
- lib/eligible/v1_0/claim_service_line.rb
|
|
164
|
+
- lib/eligible/v1_0/contract.rb
|
|
165
|
+
- lib/eligible/v1_0/device.rb
|
|
166
|
+
- lib/eligible/v1_0/discount.rb
|
|
167
|
+
- lib/eligible/v1_0/enrollment.rb
|
|
168
|
+
- lib/eligible/v1_0/estimate.rb
|
|
169
|
+
- lib/eligible/v1_0/estimate_service_line.rb
|
|
170
|
+
- lib/eligible/v1_0/fee.rb
|
|
171
|
+
- lib/eligible/v1_0/fee_refund.rb
|
|
172
|
+
- lib/eligible/v1_0/file.rb
|
|
173
|
+
- lib/eligible/v1_0/file_link.rb
|
|
174
|
+
- lib/eligible/v1_0/insurance_company.rb
|
|
175
|
+
- lib/eligible/v1_0/insurance_company_alias.rb
|
|
176
|
+
- lib/eligible/v1_0/insurance_policy.rb
|
|
177
|
+
- lib/eligible/v1_0/patient_question.rb
|
|
178
|
+
- lib/eligible/v1_0/patient_questionnaire.rb
|
|
179
|
+
- lib/eligible/v1_0/patient_record.rb
|
|
180
|
+
- lib/eligible/v1_0/patient_statement.rb
|
|
181
|
+
- lib/eligible/v1_0/patient_statement_service_line.rb
|
|
182
|
+
- lib/eligible/v1_0/payment_report.rb
|
|
183
|
+
- lib/eligible/v1_0/product.rb
|
|
184
|
+
- lib/eligible/v1_0/provider.rb
|
|
185
|
+
- lib/eligible/v1_0/refund.rb
|
|
186
|
+
- lib/eligible/v1_0/remark.rb
|
|
187
|
+
- lib/eligible/v1_0/rest_api_base.rb
|
|
188
|
+
- lib/eligible/v1_0/rule.rb
|
|
189
|
+
- lib/eligible/v1_0/session.rb
|
|
190
|
+
- lib/eligible/v1_0/transaction.rb
|
|
191
|
+
- lib/eligible/v1_0/treatment.rb
|
|
192
|
+
- lib/eligible/v1_0/value_list.rb
|
|
193
|
+
- lib/eligible/v1_0/value_list_item.rb
|
|
194
|
+
- lib/eligible/v1_0/verification.rb
|
|
140
195
|
- lib/eligible/version.rb
|
|
141
196
|
- lib/eligible/visit_type.rb
|
|
142
197
|
- lib/eligible/x12.rb
|
|
@@ -144,7 +199,7 @@ homepage: https://github.com/eligible/eligible-ruby
|
|
|
144
199
|
licenses:
|
|
145
200
|
- MIT
|
|
146
201
|
metadata: {}
|
|
147
|
-
post_install_message:
|
|
202
|
+
post_install_message:
|
|
148
203
|
rdoc_options: []
|
|
149
204
|
require_paths:
|
|
150
205
|
- lib
|
|
@@ -152,16 +207,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
152
207
|
requirements:
|
|
153
208
|
- - ">="
|
|
154
209
|
- !ruby/object:Gem::Version
|
|
155
|
-
version:
|
|
210
|
+
version: 3.1.0
|
|
156
211
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
212
|
requirements:
|
|
158
|
-
- - "
|
|
213
|
+
- - ">"
|
|
159
214
|
- !ruby/object:Gem::Version
|
|
160
|
-
version:
|
|
215
|
+
version: 1.3.1
|
|
161
216
|
requirements: []
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
signing_key:
|
|
217
|
+
rubygems_version: 3.4.10
|
|
218
|
+
signing_key:
|
|
165
219
|
specification_version: 4
|
|
166
220
|
summary: Ruby wrapper for the Eligible API
|
|
167
221
|
test_files: []
|
data/ChangeLog
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
2018-07-17 Eligible <support@eligible.com>
|
|
2
|
-
|
|
3
|
-
* 2.9.6
|
|
4
|
-
- Added Risk Assessment endpoint support
|
|
5
|
-
- Added specs
|
|
6
|
-
|
|
7
|
-
2018-07-06 Eligible <support@eligible.com>
|
|
8
|
-
|
|
9
|
-
* 2.9.5
|
|
10
|
-
- Added Mix and Match support for coverage requests
|
|
11
|
-
- Added specs
|
|
12
|
-
|
|
13
|
-
2018-04-25 Eligible <support@eligible.com>
|
|
14
|
-
|
|
15
|
-
* 2.9.4
|
|
16
|
-
- Rename endpoint provider_detail to provider_model
|
|
17
|
-
- Added specs
|
|
18
|
-
|
|
19
|
-
2018-04-19 Eligible <support@eligible.com>
|
|
20
|
-
|
|
21
|
-
* 2.9.3
|
|
22
|
-
- Added new endpoints visit types, provider details
|
|
23
|
-
- Added specs
|
|
24
|
-
|
|
25
|
-
2018-03-26 Eligible <support@eligible.com>
|
|
26
|
-
|
|
27
|
-
* 2.9.2
|
|
28
|
-
- We can use session token or api_key for making a Eligible Call
|
|
29
|
-
- for session token supported endpoints
|
|
30
|
-
|
|
31
|
-
2017-10-04 Eligible <support@eligible.com>
|
|
32
|
-
|
|
33
|
-
* 2.9.0
|
|
34
|
-
- Adding revoke functionality for session tokens
|
|
35
|
-
|
|
36
|
-
2017-03-24 Eligible <support@eligible.com>
|
|
37
|
-
|
|
38
|
-
* 2.8.2
|
|
39
|
-
- Upgrades internal rest-client dependency to 2.0.0 and higher
|
|
40
|
-
|
|
41
|
-
2017-02-23 Eligible <support@eligible.com>
|
|
42
|
-
|
|
43
|
-
* 2.8.1
|
|
44
|
-
- Upgrades internal rest-client dependency to 2.0.1
|
|
45
|
-
- Fixes mime-type dependency issue with newer Rails projects
|
|
46
|
-
|
|
47
|
-
2017-02-23 Eligible <support@eligible.com>
|
|
48
|
-
|
|
49
|
-
* 2.8.0
|
|
50
|
-
- Adds support for session tokens
|
|
51
|
-
|
|
52
|
-
2016-12-14 Eligible <support@eligible.com>
|
|
53
|
-
|
|
54
|
-
* 2.7.0
|
|
55
|
-
- Changed default content type to application/json
|
|
56
|
-
|
|
57
|
-
2016-11-18 Eligible <support@eligible.com>
|
|
58
|
-
|
|
59
|
-
* 2.6.3
|
|
60
|
-
- Added a new certificate fingerprint
|
|
61
|
-
|
|
62
|
-
2016-08-31 Eligible <support@eligible.com>
|
|
63
|
-
* 2.6.2
|
|
64
|
-
- New APIs added in testing mode, no public-facing changes
|
|
65
|
-
|
|
66
|
-
2016-05-10 Eligible <support@eligible.com>
|
|
67
|
-
* 2.6.1
|
|
68
|
-
- Suppressing ssl_verify_callback return code warning
|
|
69
|
-
- Added new endpoints: received_pdf, precert and referral
|
|
70
|
-
- Refactored the code and fixed couple of bugs
|
|
71
|
-
- Documentation updates for the endpoints
|
|
72
|
-
|
|
73
|
-
2016-02-23 Eligible <support@eligible.com>
|
|
74
|
-
|
|
75
|
-
* 2.6.0
|
|
76
|
-
- Added new endpoints customer, original signature pdf and payer.
|
|
77
|
-
- Added specs
|
|
78
|
-
- Bumped api version to 1.5
|
|
79
|
-
- Fixed few bugs
|
|
80
|
-
|
|
81
|
-
2016-01-07 Eligible <support@eligible.com>
|
|
82
|
-
|
|
83
|
-
* 2.5.0
|
|
84
|
-
- Added certificate pinning
|
|
85
|
-
- Added rubocop and fixed style/linting/metrics issues
|
|
86
|
-
- Migrated from outdated test-unit/mocha to current rspec for test suite
|
|
87
|
-
|
|
88
|
-
0000-00-00 Eligible <support@eligible.com>
|
|
89
|
-
|
|
90
|
-
* 2.4
|
|
91
|
-
- Refactoring Code
|
|
92
|
-
- More test cases
|
|
93
|
-
- Removed legacy endpoint for *plans*, *coverage* should be used instead.
|
|
94
|
-
- Removed legacy endpoint for *services*, *coverage* should be used instead.
|
|
95
|
-
- List of contributors and documentation updated.
|
|
96
|
-
- Gemfile updated, dependencies updated as well.
|
|
97
|
-
- Removed json gem in favor of multi_json
|
|
98
|
-
- Fixed the code to let the users make x12 requests at anytime.
|
|
99
|
-
- New endpoint for Tickets
|
|
100
|
-
|
|
101
|
-
0000-00-00 Eligible <support@eligible.com>
|
|
102
|
-
|
|
103
|
-
* 2.3
|
|
104
|
-
- New endpoint for Batch
|
|
105
|
-
|
|
106
|
-
0000-00-00 Eligible <support@eligible.com>
|
|
107
|
-
|
|
108
|
-
* 2.2
|
|
109
|
-
- New endpoint for x12 POST
|
|
110
|
-
|
|
111
|
-
0000-00-00 Eligible <support@eligible.com>
|
|
112
|
-
|
|
113
|
-
* 2.1
|
|
114
|
-
- New endpoint for payment status
|
|
115
|
-
|
|
116
|
-
0000-00-00 Eligible <support@eligible.com>
|
|
117
|
-
|
|
118
|
-
* 2.0
|
|
119
|
-
- Additional endpoints for claims, enrollments, and coverage
|
|
120
|
-
|
|
121
|
-
0000-00-00 Eligible <support@eligible.com>
|
|
122
|
-
|
|
123
|
-
* 1.1
|
|
124
|
-
- Additional endpoints for service/general and service/list
|
|
125
|
-
- Support x12 format in params
|
|
126
|
-
|
|
127
|
-
0000-00-00 Eligible <support@eligible.com>
|
|
128
|
-
|
|
129
|
-
* 1.0
|
|
130
|
-
- Initial release
|
|
131
|
-
|
data/circle.yml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
machine:
|
|
2
|
-
environment:
|
|
3
|
-
CC_TEST_REPORTER_ID: 1a814ffba15f437df919868f6c26f3c6ac111338b88f9a9d7e2b3030598bccdd
|
|
4
|
-
|
|
5
|
-
dependencies:
|
|
6
|
-
post:
|
|
7
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
8
|
-
- chmod +x ./cc-test-reporter
|
|
9
|
-
|
|
10
|
-
test:
|
|
11
|
-
pre:
|
|
12
|
-
- ./cc-test-reporter before-build
|
|
13
|
-
|
|
14
|
-
post:
|
|
15
|
-
- ./cc-test-reporter after-build --exit-code $EXIT_CODE --coverage-input-type simplecov
|