daisybill_api 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/daisybill_api/data/client.rb +6 -1
- data/lib/daisybill_api/data/url.rb +1 -1
- data/lib/daisybill_api/version.rb +1 -1
- data/lib/daisybill_api.rb +1 -0
- data/spec/daisybill_api/data/url_spec.rb +0 -1
- data/spec/daisybill_api_spec.rb +3 -3
- metadata +28 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 68f13995a338c7e6134fce1f0ff5cd3066588dc038b0b6702aebd64cc50105e9
|
4
|
+
data.tar.gz: cede9671b6669d12037ab95a7c64c7bdacd6ec3d0b29523b8a4cf4a4ec9a0609
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b893b82610e301856f2bdfde112e49573cdf4d56779be096ec1458de8af589302b99080b946fff23bf0775e505d5261f75141720465605d714506f0689cbfb5d
|
7
|
+
data.tar.gz: 51d4039273ea91137348d6a6f07fc1ffc8b7f9a77a9fbf15e06e2e42a36935187356065fe44f6d5aba9bfb37862c57f391f011ad682ccdd6935c6cbfd1b721ed
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require "rest-client"
|
2
|
+
require "json"
|
2
3
|
|
3
4
|
module DaisybillApi
|
4
5
|
# @private
|
@@ -28,7 +29,11 @@ module DaisybillApi
|
|
28
29
|
data = {
|
29
30
|
method: method,
|
30
31
|
url: url,
|
31
|
-
payload: params
|
32
|
+
payload: params,
|
33
|
+
headers: {
|
34
|
+
"Authorization" => "Bearer #{DaisybillApi.configuration.api_token}",
|
35
|
+
"User-Agent" => "DaisyBill_API/#{DaisybillApi::VERSION}",
|
36
|
+
}
|
32
37
|
}
|
33
38
|
RestClient::Request.execute(data) { |response, request, status|
|
34
39
|
@headers = response.headers
|
data/lib/daisybill_api.rb
CHANGED
data/spec/daisybill_api_spec.rb
CHANGED
@@ -17,18 +17,18 @@ describe DaisybillApi do
|
|
17
17
|
|
18
18
|
subject { DaisybillApi::Data::Url.build("/billing_providers").to_s }
|
19
19
|
|
20
|
-
it { is_expected.to eq "https://go.daisybill.com/api/v1/billing_providers?
|
20
|
+
it { is_expected.to eq "https://go.daisybill.com/api/v1/billing_providers?" }
|
21
21
|
|
22
22
|
context "when host and port changed" do
|
23
23
|
let(:host) { "localhost" }
|
24
24
|
let(:port) { 3000 }
|
25
25
|
|
26
|
-
it { is_expected.to eq("http://localhost:3000/api/v1/billing_providers?
|
26
|
+
it { is_expected.to eq("http://localhost:3000/api/v1/billing_providers?") }
|
27
27
|
|
28
28
|
context "after reset" do
|
29
29
|
before { DaisybillApi.reset_configuration }
|
30
30
|
|
31
|
-
it { is_expected.to eq("https://go.daisybill.com/api/v1/billing_providers?
|
31
|
+
it { is_expected.to eq("https://go.daisybill.com/api/v1/billing_providers?") }
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daisybill_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Liscio
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2023-09-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activemodel
|
@@ -284,46 +284,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
284
284
|
- !ruby/object:Gem::Version
|
285
285
|
version: '0'
|
286
286
|
requirements: []
|
287
|
-
|
288
|
-
rubygems_version: 2.5.2
|
287
|
+
rubygems_version: 3.1.4
|
289
288
|
signing_key:
|
290
289
|
specification_version: 4
|
291
290
|
summary: ActiveRecord style wrapper for DaisyBill's API
|
292
291
|
test_files:
|
293
292
|
- spec/daisybill_api/configuration_spec.rb
|
294
|
-
- spec/daisybill_api/data/client_spec.rb
|
295
|
-
- spec/daisybill_api/data/rest_client/payload_spec.rb
|
296
|
-
- spec/daisybill_api/data/url_spec.rb
|
297
|
-
- spec/daisybill_api/ext/attributes/attribute_spec.rb
|
298
293
|
- spec/daisybill_api/ext/attributes/type_castings_spec.rb
|
294
|
+
- spec/daisybill_api/ext/attributes/attribute_spec.rb
|
299
295
|
- spec/daisybill_api/ext/links/link_spec.rb
|
300
296
|
- spec/daisybill_api/ext/pageable_collection_spec.rb
|
301
|
-
- spec/daisybill_api/models/address_spec.rb
|
302
|
-
- spec/daisybill_api/models/attachment_spec.rb
|
303
|
-
- spec/daisybill_api/models/bill_mailing_address_spec.rb
|
304
|
-
- spec/daisybill_api/models/bill_payment_spec.rb
|
305
|
-
- spec/daisybill_api/models/bill_spec.rb
|
306
|
-
- spec/daisybill_api/models/bill_submission_spec.rb
|
307
|
-
- spec/daisybill_api/models/billing_provider_spec.rb
|
308
|
-
- spec/daisybill_api/models/claim_number_verification_spec.rb
|
309
|
-
- spec/daisybill_api/models/claims_administrator_spec.rb
|
310
297
|
- spec/daisybill_api/models/contact_spec.rb
|
311
|
-
- spec/daisybill_api/models/disputed_service_spec.rb
|
312
|
-
- spec/daisybill_api/models/employer_spec.rb
|
313
|
-
- spec/daisybill_api/models/error_report_spec.rb
|
314
|
-
- spec/daisybill_api/models/injury_spec.rb
|
315
|
-
- spec/daisybill_api/models/paper_eor_spec.rb
|
316
|
-
- spec/daisybill_api/models/patient_spec.rb
|
317
|
-
- spec/daisybill_api/models/payer_spec.rb
|
318
|
-
- spec/daisybill_api/models/pharmacy_bill_spec.rb
|
319
|
-
- spec/daisybill_api/models/place_of_service_spec.rb
|
320
298
|
- spec/daisybill_api/models/prescribing_provider_spec.rb
|
299
|
+
- spec/daisybill_api/models/claims_administrator_spec.rb
|
321
300
|
- spec/daisybill_api/models/referring_provider_spec.rb
|
322
|
-
- spec/daisybill_api/models/
|
301
|
+
- spec/daisybill_api/models/disputed_service_spec.rb
|
302
|
+
- spec/daisybill_api/models/bill_spec.rb
|
323
303
|
- spec/daisybill_api/models/rendering_provider_spec.rb
|
324
304
|
- spec/daisybill_api/models/request_for_second_review_spec.rb
|
325
|
-
- spec/daisybill_api/models/
|
326
|
-
- spec/daisybill_api/models/
|
305
|
+
- spec/daisybill_api/models/claim_number_verification_spec.rb
|
306
|
+
- spec/daisybill_api/models/payer_spec.rb
|
327
307
|
- spec/daisybill_api/models/task_spec.rb
|
308
|
+
- spec/daisybill_api/models/billing_provider_spec.rb
|
309
|
+
- spec/daisybill_api/models/bill_payment_spec.rb
|
310
|
+
- spec/daisybill_api/models/attachment_spec.rb
|
311
|
+
- spec/daisybill_api/models/error_report_spec.rb
|
312
|
+
- spec/daisybill_api/models/pharmacy_bill_spec.rb
|
313
|
+
- spec/daisybill_api/models/employer_spec.rb
|
314
|
+
- spec/daisybill_api/models/patient_spec.rb
|
315
|
+
- spec/daisybill_api/models/bill_submission_spec.rb
|
316
|
+
- spec/daisybill_api/models/service_line_item_spec.rb
|
317
|
+
- spec/daisybill_api/models/service_line_item_payment_spec.rb
|
318
|
+
- spec/daisybill_api/models/place_of_service_spec.rb
|
319
|
+
- spec/daisybill_api/models/paper_eor_spec.rb
|
328
320
|
- spec/daisybill_api/models/user_spec.rb
|
321
|
+
- spec/daisybill_api/models/remittance_spec.rb
|
322
|
+
- spec/daisybill_api/models/injury_spec.rb
|
323
|
+
- spec/daisybill_api/models/address_spec.rb
|
324
|
+
- spec/daisybill_api/models/bill_mailing_address_spec.rb
|
325
|
+
- spec/daisybill_api/data/client_spec.rb
|
326
|
+
- spec/daisybill_api/data/url_spec.rb
|
327
|
+
- spec/daisybill_api/data/rest_client/payload_spec.rb
|
329
328
|
- spec/daisybill_api_spec.rb
|