candidhealth 0.40.4 → 0.41.0
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/lib/candidhealth/charge_capture/v_1/client.rb +53 -0
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +15 -1
- data/lib/candidhealth/{charge_capture_bundles/v_1/types/charge_bundle_error.rb → charge_capture/v_1/types/charge_capture_error.rb} +6 -6
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +2 -2
- data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle.rb +4 -4
- data/lib/candidhealth/tasks/commons/types/task_category.rb +1 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e39a2483cd60af7d1b513f07999877000015c48ecf19bc049e87757dd7f3bead
|
4
|
+
data.tar.gz: 74202d0fbbf43b89cd8171e9dc89b8db54f076d4a548b873d110f291dba6ae5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b80689fff3b7578a6746e019c37d172648fd683dbabea32dc1748592de5d8c7b0a355ea42bb833254d11b8ffe9833f5bae37d1b1878c30458c54ddf3b622fe5
|
7
|
+
data.tar.gz: bd746740f98eba1ed015b656213ec62664e50d7dcf8f4a5a225d638c3f0d5eec6bc7bba051dfea17811a65f374a03cabfa1dbf77be3c3e06b2cfe7cda630f959
|
@@ -8,6 +8,7 @@ require_relative "types/charge_capture"
|
|
8
8
|
require_relative "types/charge_capture_sort_field"
|
9
9
|
require_relative "../../commons/types/sort_direction"
|
10
10
|
require_relative "types/charge_capture_page"
|
11
|
+
require_relative "types/charge_capture_post_billed_change"
|
11
12
|
require "async"
|
12
13
|
|
13
14
|
module CandidApiClient
|
@@ -719,6 +720,31 @@ module CandidApiClient
|
|
719
720
|
end
|
720
721
|
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage.from_json(json_object: response.body)
|
721
722
|
end
|
723
|
+
|
724
|
+
# @param charge_capture_change_id [String]
|
725
|
+
# @param resolved [Boolean] Whether the change has been resolved. If true, the change will be marked as
|
726
|
+
# resolved.
|
727
|
+
# If false, the change will be marked as unresolved.
|
728
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
729
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange]
|
730
|
+
# @example
|
731
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
732
|
+
# api.charge_capture.v_1.update_post_billed_change(charge_capture_change_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", resolved: true)
|
733
|
+
def update_post_billed_change(charge_capture_change_id:, resolved:, request_options: nil)
|
734
|
+
response = @request_client.conn.patch do |req|
|
735
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
736
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
737
|
+
req.headers = {
|
738
|
+
**(req.headers || {}),
|
739
|
+
**@request_client.get_headers,
|
740
|
+
**(request_options&.additional_headers || {})
|
741
|
+
}.compact
|
742
|
+
req.body = { **(request_options&.additional_body_parameters || {}), resolved: resolved }.compact
|
743
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
744
|
+
request_options: request_options)}/api/charge_captures/v1/changes/#{charge_capture_change_id}"
|
745
|
+
end
|
746
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: response.body)
|
747
|
+
end
|
722
748
|
end
|
723
749
|
|
724
750
|
class AsyncV1Client
|
@@ -1437,6 +1463,33 @@ module CandidApiClient
|
|
1437
1463
|
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage.from_json(json_object: response.body)
|
1438
1464
|
end
|
1439
1465
|
end
|
1466
|
+
|
1467
|
+
# @param charge_capture_change_id [String]
|
1468
|
+
# @param resolved [Boolean] Whether the change has been resolved. If true, the change will be marked as
|
1469
|
+
# resolved.
|
1470
|
+
# If false, the change will be marked as unresolved.
|
1471
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
1472
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange]
|
1473
|
+
# @example
|
1474
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
1475
|
+
# api.charge_capture.v_1.update_post_billed_change(charge_capture_change_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", resolved: true)
|
1476
|
+
def update_post_billed_change(charge_capture_change_id:, resolved:, request_options: nil)
|
1477
|
+
Async do
|
1478
|
+
response = @request_client.conn.patch do |req|
|
1479
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
1480
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
1481
|
+
req.headers = {
|
1482
|
+
**(req.headers || {}),
|
1483
|
+
**@request_client.get_headers,
|
1484
|
+
**(request_options&.additional_headers || {})
|
1485
|
+
}.compact
|
1486
|
+
req.body = { **(request_options&.additional_body_parameters || {}), resolved: resolved }.compact
|
1487
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
1488
|
+
request_options: request_options)}/api/charge_captures/v1/changes/#{charge_capture_change_id}"
|
1489
|
+
end
|
1490
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: response.body)
|
1491
|
+
end
|
1492
|
+
end
|
1440
1493
|
end
|
1441
1494
|
end
|
1442
1495
|
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
require_relative "charge_capture_status"
|
4
4
|
require_relative "charge_capture_data"
|
5
5
|
require "date"
|
6
|
+
require_relative "charge_capture_error"
|
6
7
|
require_relative "charge_capture_post_billed_change"
|
7
8
|
require "ostruct"
|
8
9
|
require "json"
|
@@ -27,6 +28,8 @@ module CandidApiClient
|
|
27
28
|
# @return [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
28
29
|
# This date must be the local date in the timezone where the service occurred.
|
29
30
|
attr_reader :date_of_service
|
31
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError]
|
32
|
+
attr_reader :error
|
30
33
|
# @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
|
31
34
|
attr_reader :updates
|
32
35
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
@@ -45,11 +48,12 @@ module CandidApiClient
|
|
45
48
|
# @param ehr_source_url [String]
|
46
49
|
# @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
47
50
|
# This date must be the local date in the timezone where the service occurred.
|
51
|
+
# @param error [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError]
|
48
52
|
# @param updates [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
|
49
53
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
50
54
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
|
51
55
|
def initialize(id:, status:, charge_capture_data:, patient_external_id:, charge_external_id:, updates:,
|
52
|
-
ehr_source_url: OMIT, date_of_service: OMIT, additional_properties: nil)
|
56
|
+
ehr_source_url: OMIT, date_of_service: OMIT, error: OMIT, additional_properties: nil)
|
53
57
|
@id = id
|
54
58
|
@status = status
|
55
59
|
@charge_capture_data = charge_capture_data
|
@@ -57,6 +61,7 @@ module CandidApiClient
|
|
57
61
|
@charge_external_id = charge_external_id
|
58
62
|
@ehr_source_url = ehr_source_url if ehr_source_url != OMIT
|
59
63
|
@date_of_service = date_of_service if date_of_service != OMIT
|
64
|
+
@error = error if error != OMIT
|
60
65
|
@updates = updates
|
61
66
|
@additional_properties = additional_properties
|
62
67
|
@_field_set = {
|
@@ -67,6 +72,7 @@ module CandidApiClient
|
|
67
72
|
"charge_external_id": charge_external_id,
|
68
73
|
"ehr_source_url": ehr_source_url,
|
69
74
|
"date_of_service": date_of_service,
|
75
|
+
"error": error,
|
70
76
|
"updates": updates
|
71
77
|
}.reject do |_k, v|
|
72
78
|
v == OMIT
|
@@ -92,6 +98,12 @@ module CandidApiClient
|
|
92
98
|
charge_external_id = struct["charge_external_id"]
|
93
99
|
ehr_source_url = struct["ehr_source_url"]
|
94
100
|
date_of_service = (Date.parse(parsed_json["date_of_service"]) unless parsed_json["date_of_service"].nil?)
|
101
|
+
if parsed_json["error"].nil?
|
102
|
+
error = nil
|
103
|
+
else
|
104
|
+
error = parsed_json["error"].to_json
|
105
|
+
error = CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError.from_json(json_object: error)
|
106
|
+
end
|
95
107
|
updates = parsed_json["updates"]&.map do |item|
|
96
108
|
item = item.to_json
|
97
109
|
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: item)
|
@@ -104,6 +116,7 @@ module CandidApiClient
|
|
104
116
|
charge_external_id: charge_external_id,
|
105
117
|
ehr_source_url: ehr_source_url,
|
106
118
|
date_of_service: date_of_service,
|
119
|
+
error: error,
|
107
120
|
updates: updates,
|
108
121
|
additional_properties: struct
|
109
122
|
)
|
@@ -130,6 +143,7 @@ module CandidApiClient
|
|
130
143
|
obj.charge_external_id.is_a?(String) != false || raise("Passed value for field obj.charge_external_id is not the expected type, validation failed.")
|
131
144
|
obj.ehr_source_url&.is_a?(String) != false || raise("Passed value for field obj.ehr_source_url is not the expected type, validation failed.")
|
132
145
|
obj.date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
|
146
|
+
obj.error.nil? || CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError.validate_raw(obj: obj.error)
|
133
147
|
obj.updates.is_a?(Array) != false || raise("Passed value for field obj.updates is not the expected type, validation failed.")
|
134
148
|
end
|
135
149
|
end
|
@@ -4,10 +4,10 @@ require "ostruct"
|
|
4
4
|
require "json"
|
5
5
|
|
6
6
|
module CandidApiClient
|
7
|
-
module
|
7
|
+
module ChargeCapture
|
8
8
|
module V1
|
9
9
|
module Types
|
10
|
-
class
|
10
|
+
class ChargeCaptureError
|
11
11
|
# @return [String]
|
12
12
|
attr_reader :id
|
13
13
|
# @return [String] The underlying Charge Capture that this error object references.
|
@@ -44,7 +44,7 @@ module CandidApiClient
|
|
44
44
|
# is not present but marked as required, or otherwise in error.
|
45
45
|
# @param bundle_id [String] The ID of the ChargeCaptureBundle associated with this Error.
|
46
46
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
47
|
-
# @return [CandidApiClient::
|
47
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError]
|
48
48
|
def initialize(id:, message:, bundle_id:, charge_capture_id: OMIT, field_in_error: OMIT,
|
49
49
|
additional_properties: nil)
|
50
50
|
@id = id
|
@@ -64,10 +64,10 @@ module CandidApiClient
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
-
# Deserialize a JSON object to an instance of
|
67
|
+
# Deserialize a JSON object to an instance of ChargeCaptureError
|
68
68
|
#
|
69
69
|
# @param json_object [String]
|
70
|
-
# @return [CandidApiClient::
|
70
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError]
|
71
71
|
def self.from_json(json_object:)
|
72
72
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
73
73
|
id = struct["id"]
|
@@ -85,7 +85,7 @@ module CandidApiClient
|
|
85
85
|
)
|
86
86
|
end
|
87
87
|
|
88
|
-
# Serialize an instance of
|
88
|
+
# Serialize an instance of ChargeCaptureError to a JSON object
|
89
89
|
#
|
90
90
|
# @return [String]
|
91
91
|
def to_json(*_args)
|
@@ -60,7 +60,7 @@ module CandidApiClient
|
|
60
60
|
**(request_options&.additional_headers || {})
|
61
61
|
}.compact
|
62
62
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
63
|
-
request_options: request_options)}/api/charge_capture_bundle/v1/summary"
|
63
|
+
request_options: request_options)}/api/charge_capture_bundle/v1/all/summary"
|
64
64
|
end
|
65
65
|
CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureBundleSummary.from_json(json_object: response.body)
|
66
66
|
end
|
@@ -197,7 +197,7 @@ module CandidApiClient
|
|
197
197
|
**(request_options&.additional_headers || {})
|
198
198
|
}.compact
|
199
199
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
200
|
-
request_options: request_options)}/api/charge_capture_bundle/v1/summary"
|
200
|
+
request_options: request_options)}/api/charge_capture_bundle/v1/all/summary"
|
201
201
|
end
|
202
202
|
CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureBundleSummary.from_json(json_object: response.body)
|
203
203
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require_relative "charge_capture_bundle_status"
|
4
4
|
require_relative "../../../charge_capture/v_1/types/charge_capture"
|
5
|
-
require_relative "
|
5
|
+
require_relative "../../../charge_capture/v_1/types/charge_capture_error"
|
6
6
|
require "ostruct"
|
7
7
|
require "json"
|
8
8
|
|
@@ -20,7 +20,7 @@ module CandidApiClient
|
|
20
20
|
attr_reader :status
|
21
21
|
# @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapture>] All the underlying ChargeCaptures that are present in a ChargeCaptureBundle.
|
22
22
|
attr_reader :charge_captures
|
23
|
-
# @return [Array<CandidApiClient::
|
23
|
+
# @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError>] All errors that were found when the bundle was attempted to be created.
|
24
24
|
# Errors can correspond to the Bundle as a whole or specific underlying Charge
|
25
25
|
# Captures.
|
26
26
|
attr_reader :errors
|
@@ -37,7 +37,7 @@ module CandidApiClient
|
|
37
37
|
# @param status [CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureBundleStatus] Status of the Bundle, Successful means that the Bundle created a corresponding
|
38
38
|
# Claim
|
39
39
|
# @param charge_captures [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapture>] All the underlying ChargeCaptures that are present in a ChargeCaptureBundle.
|
40
|
-
# @param errors [Array<CandidApiClient::
|
40
|
+
# @param errors [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError>] All errors that were found when the bundle was attempted to be created.
|
41
41
|
# Errors can correspond to the Bundle as a whole or specific underlying Charge
|
42
42
|
# Captures.
|
43
43
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
@@ -77,7 +77,7 @@ module CandidApiClient
|
|
77
77
|
end
|
78
78
|
errors = parsed_json["errors"]&.map do |item|
|
79
79
|
item = item.to_json
|
80
|
-
CandidApiClient::
|
80
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError.from_json(json_object: item)
|
81
81
|
end
|
82
82
|
new(
|
83
83
|
id: id,
|
@@ -46,6 +46,7 @@ module CandidApiClient
|
|
46
46
|
HELD_BY_CUSTOMER = "held_by_customer"
|
47
47
|
PENDING_MANUAL_REMIT_POSTING = "pending_manual_remit_posting"
|
48
48
|
INCORRECT_REFERRING_PROVIDER_INFO = "incorrect_referring_provider_info"
|
49
|
+
PAYER_CONFIGURATION_ERROR = "payer_configuration_error"
|
49
50
|
end
|
50
51
|
end
|
51
52
|
end
|
data/lib/requests.rb
CHANGED
@@ -43,7 +43,7 @@ module CandidApiClient
|
|
43
43
|
|
44
44
|
# @return [Hash{String => String}]
|
45
45
|
def get_headers
|
46
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
46
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.0" }
|
47
47
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
48
48
|
headers
|
49
49
|
end
|
@@ -87,7 +87,7 @@ module CandidApiClient
|
|
87
87
|
|
88
88
|
# @return [Hash{String => String}]
|
89
89
|
def get_headers
|
90
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
90
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.0" }
|
91
91
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
92
92
|
headers
|
93
93
|
end
|
data/lib/types_export.rb
CHANGED
@@ -7,12 +7,12 @@ require_relative "candidhealth/billing_notes/v_2/types/billing_note"
|
|
7
7
|
require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_page"
|
8
8
|
require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle"
|
9
9
|
require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_summary"
|
10
|
-
require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_bundle_error"
|
11
10
|
require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_status"
|
12
11
|
require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_sort_field"
|
13
12
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_page"
|
14
13
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture"
|
15
14
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_data"
|
15
|
+
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_error"
|
16
16
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_sort_field"
|
17
17
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_status"
|
18
18
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_post_billed_change"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: candidhealth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.41.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -109,13 +109,13 @@ files:
|
|
109
109
|
- lib/candidhealth/charge_capture/v_1/client.rb
|
110
110
|
- lib/candidhealth/charge_capture/v_1/types/charge_capture.rb
|
111
111
|
- lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb
|
112
|
+
- lib/candidhealth/charge_capture/v_1/types/charge_capture_error.rb
|
112
113
|
- lib/candidhealth/charge_capture/v_1/types/charge_capture_page.rb
|
113
114
|
- lib/candidhealth/charge_capture/v_1/types/charge_capture_post_billed_change.rb
|
114
115
|
- lib/candidhealth/charge_capture/v_1/types/charge_capture_sort_field.rb
|
115
116
|
- lib/candidhealth/charge_capture/v_1/types/charge_capture_status.rb
|
116
117
|
- lib/candidhealth/charge_capture_bundles/client.rb
|
117
118
|
- lib/candidhealth/charge_capture_bundles/v_1/client.rb
|
118
|
-
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_bundle_error.rb
|
119
119
|
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle.rb
|
120
120
|
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_page.rb
|
121
121
|
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_sort_field.rb
|