candidhealth 1.8.0 → 1.8.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 +4 -4
- data/lib/candidhealth/charge_capture/v_1/client.rb +71 -4
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +33 -2
- data/lib/candidhealth/encounters/v_4/client.rb +16 -0
- data/lib/candidhealth/guarantor/v_1/client.rb +4 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +10 -2
- data/lib/candidhealth/guarantor/v_1/types/guarantor_create.rb +10 -2
- data/lib/candidhealth/guarantor/v_1/types/guarantor_optional.rb +10 -2
- data/lib/candidhealth/guarantor/v_1/types/guarantor_update.rb +10 -2
- data/lib/candidhealth/individual/types/patient.rb +10 -2
- data/lib/candidhealth/individual/types/patient_create.rb +9 -1
- data/lib/candidhealth/individual/types/patient_update.rb +9 -1
- data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +9 -1
- data/lib/candidhealth/payers/v_4/types/clearinghouse_payer_info.rb +36 -2
- data/lib/candidhealth/payers/v_4/types/payer.rb +5 -5
- data/lib/candidhealth/payers/v_4/types/payer_ids.rb +12 -35
- data/lib/candidhealth/payers/v_4/types/primary_payer_ids.rb +84 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +1 -0
- metadata +3 -2
@@ -0,0 +1,84 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "ostruct"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module CandidApiClient
|
7
|
+
module Payers
|
8
|
+
module V4
|
9
|
+
module Types
|
10
|
+
class PrimaryPayerIds
|
11
|
+
# @return [String] The payer ID for claim submission
|
12
|
+
attr_reader :claims_payer_id
|
13
|
+
# @return [String] The payer ID for eligibility
|
14
|
+
attr_reader :eligibility_payer_id
|
15
|
+
# @return [String] The payer ID for remittance
|
16
|
+
attr_reader :remittance_payer_id
|
17
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
18
|
+
attr_reader :additional_properties
|
19
|
+
# @return [Object]
|
20
|
+
attr_reader :_field_set
|
21
|
+
protected :_field_set
|
22
|
+
|
23
|
+
OMIT = Object.new
|
24
|
+
|
25
|
+
# @param claims_payer_id [String] The payer ID for claim submission
|
26
|
+
# @param eligibility_payer_id [String] The payer ID for eligibility
|
27
|
+
# @param remittance_payer_id [String] The payer ID for remittance
|
28
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
29
|
+
# @return [CandidApiClient::Payers::V4::Types::PrimaryPayerIds]
|
30
|
+
def initialize(claims_payer_id:, eligibility_payer_id: OMIT, remittance_payer_id: OMIT,
|
31
|
+
additional_properties: nil)
|
32
|
+
@claims_payer_id = claims_payer_id
|
33
|
+
@eligibility_payer_id = eligibility_payer_id if eligibility_payer_id != OMIT
|
34
|
+
@remittance_payer_id = remittance_payer_id if remittance_payer_id != OMIT
|
35
|
+
@additional_properties = additional_properties
|
36
|
+
@_field_set = {
|
37
|
+
"claims_payer_id": claims_payer_id,
|
38
|
+
"eligibility_payer_id": eligibility_payer_id,
|
39
|
+
"remittance_payer_id": remittance_payer_id
|
40
|
+
}.reject do |_k, v|
|
41
|
+
v == OMIT
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# Deserialize a JSON object to an instance of PrimaryPayerIds
|
46
|
+
#
|
47
|
+
# @param json_object [String]
|
48
|
+
# @return [CandidApiClient::Payers::V4::Types::PrimaryPayerIds]
|
49
|
+
def self.from_json(json_object:)
|
50
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
51
|
+
claims_payer_id = struct["claims_payer_id"]
|
52
|
+
eligibility_payer_id = struct["eligibility_payer_id"]
|
53
|
+
remittance_payer_id = struct["remittance_payer_id"]
|
54
|
+
new(
|
55
|
+
claims_payer_id: claims_payer_id,
|
56
|
+
eligibility_payer_id: eligibility_payer_id,
|
57
|
+
remittance_payer_id: remittance_payer_id,
|
58
|
+
additional_properties: struct
|
59
|
+
)
|
60
|
+
end
|
61
|
+
|
62
|
+
# Serialize an instance of PrimaryPayerIds to a JSON object
|
63
|
+
#
|
64
|
+
# @return [String]
|
65
|
+
def to_json(*_args)
|
66
|
+
@_field_set&.to_json
|
67
|
+
end
|
68
|
+
|
69
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
70
|
+
# hash and check each fields type against the current object's property
|
71
|
+
# definitions.
|
72
|
+
#
|
73
|
+
# @param obj [Object]
|
74
|
+
# @return [Void]
|
75
|
+
def self.validate_raw(obj:)
|
76
|
+
obj.claims_payer_id.is_a?(String) != false || raise("Passed value for field obj.claims_payer_id is not the expected type, validation failed.")
|
77
|
+
obj.eligibility_payer_id&.is_a?(String) != false || raise("Passed value for field obj.eligibility_payer_id is not the expected type, validation failed.")
|
78
|
+
obj.remittance_payer_id&.is_a?(String) != false || raise("Passed value for field obj.remittance_payer_id is not the expected type, validation failed.")
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
data/lib/requests.rb
CHANGED
@@ -45,7 +45,7 @@ module CandidApiClient
|
|
45
45
|
|
46
46
|
# @return [Hash{String => String}]
|
47
47
|
def get_headers
|
48
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.
|
48
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1" }
|
49
49
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
50
50
|
headers
|
51
51
|
end
|
@@ -90,7 +90,7 @@ module CandidApiClient
|
|
90
90
|
|
91
91
|
# @return [Hash{String => String}]
|
92
92
|
def get_headers
|
93
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.
|
93
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1" }
|
94
94
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
95
95
|
headers
|
96
96
|
end
|
data/lib/types_export.rb
CHANGED
@@ -368,6 +368,7 @@ require_relative "candidhealth/payers/v_3/types/payer_info"
|
|
368
368
|
require_relative "candidhealth/payers/v_3/types/payer_identifier"
|
369
369
|
require_relative "candidhealth/payers/v_4/types/payer_page"
|
370
370
|
require_relative "candidhealth/payers/v_4/types/support_state"
|
371
|
+
require_relative "candidhealth/payers/v_4/types/primary_payer_ids"
|
371
372
|
require_relative "candidhealth/payers/v_4/types/payer_ids"
|
372
373
|
require_relative "candidhealth/payers/v_4/types/clearinghouse_payer_info"
|
373
374
|
require_relative "candidhealth/payers/v_4/types/payer"
|
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: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-09-
|
11
|
+
date: 2025-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -669,6 +669,7 @@ files:
|
|
669
669
|
- lib/candidhealth/payers/v_4/types/payer.rb
|
670
670
|
- lib/candidhealth/payers/v_4/types/payer_ids.rb
|
671
671
|
- lib/candidhealth/payers/v_4/types/payer_page.rb
|
672
|
+
- lib/candidhealth/payers/v_4/types/primary_payer_ids.rb
|
672
673
|
- lib/candidhealth/payers/v_4/types/support_state.rb
|
673
674
|
- lib/candidhealth/pre_encounter/appointments/client.rb
|
674
675
|
- lib/candidhealth/pre_encounter/appointments/v_1/client.rb
|