candidhealth 0.40.4 → 0.41.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c020b930d87a25078dd5ad6dffcc2196bd3c3b3a86334e9475e4201c77b76ae
4
- data.tar.gz: b6dd51d320847bc5957da262c14ed36ee25338d9c66d722ee43f781ddc932d6d
3
+ metadata.gz: b1f1581a9d0308972fbfab2f3ff1426006583c8bb4ae90159ce0063ef1b040b5
4
+ data.tar.gz: 6a83ef1e0ee7262a4ea5a8f3f6f2cfcb5374ba9b17a2f303d96844ccd0fe7c9b
5
5
  SHA512:
6
- metadata.gz: c9c78e07b8cc9ef56de07d9e0d6b44840e52830ae8a135725f46f73e1985ccc27b35763bf92327e71c09f7be6c21dd81c879dddef57def870dfb5dad929603aa
7
- data.tar.gz: e2d609777077ede2141123c29480239bbc2d648664241647a5b220451274e305ac0dea47ba133aa28f2521c06d3310177b6c14ef7c3ed6c14542b48ed1e1f4ba
6
+ metadata.gz: 62a6cba30ae59aa915e494b92f00650945c2d3ce295811d323d5b5d74327e9ec0328c51b69d89476c06bd41e67cd4923780feff650f6f6048d0b0bd380efd2f6
7
+ data.tar.gz: 48dc4453fce9b101e922f08fe9a7eae8c5de4b19e660c1e3539870159a94629fa543da9f7f019bfb48e9d8d39bf11e64c7fc77f4b9acd1e1579bb8753845bbb9
@@ -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,8 +28,12 @@ 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
35
+ # @return [String]
36
+ attr_reader :bundle_id
32
37
  # @return [OpenStruct] Additional properties unmapped to the current class definition
33
38
  attr_reader :additional_properties
34
39
  # @return [Object]
@@ -45,11 +50,13 @@ module CandidApiClient
45
50
  # @param ehr_source_url [String]
46
51
  # @param date_of_service [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
47
52
  # This date must be the local date in the timezone where the service occurred.
53
+ # @param error [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError]
48
54
  # @param updates [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
55
+ # @param bundle_id [String]
49
56
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
50
57
  # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
51
58
  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)
59
+ ehr_source_url: OMIT, date_of_service: OMIT, error: OMIT, bundle_id: OMIT, additional_properties: nil)
53
60
  @id = id
54
61
  @status = status
55
62
  @charge_capture_data = charge_capture_data
@@ -57,7 +64,9 @@ module CandidApiClient
57
64
  @charge_external_id = charge_external_id
58
65
  @ehr_source_url = ehr_source_url if ehr_source_url != OMIT
59
66
  @date_of_service = date_of_service if date_of_service != OMIT
67
+ @error = error if error != OMIT
60
68
  @updates = updates
69
+ @bundle_id = bundle_id if bundle_id != OMIT
61
70
  @additional_properties = additional_properties
62
71
  @_field_set = {
63
72
  "id": id,
@@ -67,7 +76,9 @@ module CandidApiClient
67
76
  "charge_external_id": charge_external_id,
68
77
  "ehr_source_url": ehr_source_url,
69
78
  "date_of_service": date_of_service,
70
- "updates": updates
79
+ "error": error,
80
+ "updates": updates,
81
+ "bundle_id": bundle_id
71
82
  }.reject do |_k, v|
72
83
  v == OMIT
73
84
  end
@@ -92,10 +103,17 @@ module CandidApiClient
92
103
  charge_external_id = struct["charge_external_id"]
93
104
  ehr_source_url = struct["ehr_source_url"]
94
105
  date_of_service = (Date.parse(parsed_json["date_of_service"]) unless parsed_json["date_of_service"].nil?)
106
+ if parsed_json["error"].nil?
107
+ error = nil
108
+ else
109
+ error = parsed_json["error"].to_json
110
+ error = CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError.from_json(json_object: error)
111
+ end
95
112
  updates = parsed_json["updates"]&.map do |item|
96
113
  item = item.to_json
97
114
  CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: item)
98
115
  end
116
+ bundle_id = struct["bundle_id"]
99
117
  new(
100
118
  id: id,
101
119
  status: status,
@@ -104,7 +122,9 @@ module CandidApiClient
104
122
  charge_external_id: charge_external_id,
105
123
  ehr_source_url: ehr_source_url,
106
124
  date_of_service: date_of_service,
125
+ error: error,
107
126
  updates: updates,
127
+ bundle_id: bundle_id,
108
128
  additional_properties: struct
109
129
  )
110
130
  end
@@ -130,7 +150,9 @@ module CandidApiClient
130
150
  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
151
  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
152
  obj.date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
153
+ obj.error.nil? || CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError.validate_raw(obj: obj.error)
133
154
  obj.updates.is_a?(Array) != false || raise("Passed value for field obj.updates is not the expected type, validation failed.")
155
+ obj.bundle_id&.is_a?(String) != false || raise("Passed value for field obj.bundle_id is not the expected type, validation failed.")
134
156
  end
135
157
  end
136
158
  end
@@ -4,10 +4,10 @@ require "ostruct"
4
4
  require "json"
5
5
 
6
6
  module CandidApiClient
7
- module ChargeCaptureBundles
7
+ module ChargeCapture
8
8
  module V1
9
9
  module Types
10
- class ChargeBundleError
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::ChargeCaptureBundles::V1::Types::ChargeBundleError]
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 ChargeBundleError
67
+ # Deserialize a JSON object to an instance of ChargeCaptureError
68
68
  #
69
69
  # @param json_object [String]
70
- # @return [CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeBundleError]
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 ChargeBundleError to a JSON object
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 "charge_bundle_error"
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::ChargeCaptureBundles::V1::Types::ChargeBundleError>] All errors that were found when the bundle was attempted to be created.
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::ChargeCaptureBundles::V1::Types::ChargeBundleError>] All errors that were found when the bundle was attempted to be created.
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::ChargeCaptureBundles::V1::Types::ChargeBundleError.from_json(json_object: item)
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.40.4" }
46
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1" }
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.40.4" }
90
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1" }
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.40.4
4
+ version: 0.41.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-04-14 00:00:00.000000000 Z
11
+ date: 2025-04-21 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