candidhealth 0.29.0 → 0.30.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.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/encounters/v_4/client.rb +6 -0
  3. data/lib/candidhealth/encounters/v_4/types/vitals.rb +18 -2
  4. data/lib/candidhealth/non_insurance_payer_payments/client.rb +30 -0
  5. data/lib/candidhealth/non_insurance_payer_payments/v_1/client.rb +360 -0
  6. data/lib/candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payment.rb +138 -0
  7. data/lib/candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payment_create.rb +124 -0
  8. data/lib/candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payment_sort_field.rb +14 -0
  9. data/lib/candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payments_page.rb +88 -0
  10. data/lib/candidhealth/non_insurance_payer_refunds/client.rb +30 -0
  11. data/lib/candidhealth/non_insurance_payer_refunds/v_1/client.rb +385 -0
  12. data/lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund.rb +139 -0
  13. data/lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund_create.rb +125 -0
  14. data/lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund_sort_field.rb +14 -0
  15. data/lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refunds_page.rb +88 -0
  16. data/lib/candidhealth/non_insurance_payers/client.rb +30 -0
  17. data/lib/candidhealth/non_insurance_payers/v_1/client.rb +375 -0
  18. data/lib/candidhealth/non_insurance_payers/v_1/types/create_non_insurance_payer_request.rb +79 -0
  19. data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer.rb +100 -0
  20. data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_category_update.rb +97 -0
  21. data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_description_update.rb +97 -0
  22. data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_page.rb +88 -0
  23. data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_sort_field.rb +16 -0
  24. data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_update_request.rb +92 -0
  25. data/lib/candidhealth/non_insurance_payers/v_1/types/toggle_non_insurance_payer_enablement_request.rb +62 -0
  26. data/lib/candidhealth/service_lines/v_2/types/drug_identification.rb +10 -2
  27. data/lib/candidhealth.rb +21 -0
  28. data/lib/requests.rb +2 -2
  29. data/lib/types_export.rb +16 -0
  30. metadata +24 -2
@@ -0,0 +1,97 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "json"
4
+
5
+ module CandidApiClient
6
+ module NonInsurancePayers
7
+ module V1
8
+ module Types
9
+ class NonInsurancePayerDescriptionUpdate
10
+ # @return [Object]
11
+ attr_reader :member
12
+ # @return [String]
13
+ attr_reader :discriminant
14
+
15
+ private_class_method :new
16
+ alias kind_of? is_a?
17
+
18
+ # @param member [Object]
19
+ # @param discriminant [String]
20
+ # @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerDescriptionUpdate]
21
+ def initialize(member:, discriminant:)
22
+ @member = member
23
+ @discriminant = discriminant
24
+ end
25
+
26
+ # Deserialize a JSON object to an instance of NonInsurancePayerDescriptionUpdate
27
+ #
28
+ # @param json_object [String]
29
+ # @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerDescriptionUpdate]
30
+ def self.from_json(json_object:)
31
+ struct = JSON.parse(json_object, object_class: OpenStruct)
32
+ member = case struct.type
33
+ when "remove"
34
+ nil
35
+ when "set"
36
+ json_object.value
37
+ else
38
+ json_object
39
+ end
40
+ new(member: member, discriminant: struct.type)
41
+ end
42
+
43
+ # For Union Types, to_json functionality is delegated to the wrapped member.
44
+ #
45
+ # @return [String]
46
+ def to_json(*_args)
47
+ case @discriminant
48
+ when "remove"
49
+ { type: @discriminant }.to_json
50
+ when "set"
51
+ { "type": @discriminant, "value": @member }.to_json
52
+ else
53
+ { "type": @discriminant, value: @member }.to_json
54
+ end
55
+ @member.to_json
56
+ end
57
+
58
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
59
+ # hash and check each fields type against the current object's property
60
+ # definitions.
61
+ #
62
+ # @param obj [Object]
63
+ # @return [Void]
64
+ def self.validate_raw(obj:)
65
+ case obj.type
66
+ when "remove"
67
+ # noop
68
+ when "set"
69
+ obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.")
70
+ else
71
+ raise("Passed value matched no type within the union, validation failed.")
72
+ end
73
+ end
74
+
75
+ # For Union Types, is_a? functionality is delegated to the wrapped member.
76
+ #
77
+ # @param obj [Object]
78
+ # @return [Boolean]
79
+ def is_a?(obj)
80
+ @member.is_a?(obj)
81
+ end
82
+
83
+ # @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerDescriptionUpdate]
84
+ def self.remove
85
+ new(member: nil, discriminant: "remove")
86
+ end
87
+
88
+ # @param member [String]
89
+ # @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerDescriptionUpdate]
90
+ def self.set(member:)
91
+ new(member: member, discriminant: "set")
92
+ end
93
+ end
94
+ end
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,88 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "non_insurance_payer"
4
+ require "ostruct"
5
+ require "json"
6
+
7
+ module CandidApiClient
8
+ module NonInsurancePayers
9
+ module V1
10
+ module Types
11
+ class NonInsurancePayerPage
12
+ # @return [Array<CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer>]
13
+ attr_reader :items
14
+ # @return [String]
15
+ attr_reader :prev_page_token
16
+ # @return [String]
17
+ attr_reader :next_page_token
18
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
19
+ attr_reader :additional_properties
20
+ # @return [Object]
21
+ attr_reader :_field_set
22
+ protected :_field_set
23
+
24
+ OMIT = Object.new
25
+
26
+ # @param items [Array<CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer>]
27
+ # @param prev_page_token [String]
28
+ # @param next_page_token [String]
29
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
30
+ # @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerPage]
31
+ def initialize(items:, prev_page_token: OMIT, next_page_token: OMIT, additional_properties: nil)
32
+ @items = items
33
+ @prev_page_token = prev_page_token if prev_page_token != OMIT
34
+ @next_page_token = next_page_token if next_page_token != OMIT
35
+ @additional_properties = additional_properties
36
+ @_field_set = {
37
+ "items": items,
38
+ "prev_page_token": prev_page_token,
39
+ "next_page_token": next_page_token
40
+ }.reject do |_k, v|
41
+ v == OMIT
42
+ end
43
+ end
44
+
45
+ # Deserialize a JSON object to an instance of NonInsurancePayerPage
46
+ #
47
+ # @param json_object [String]
48
+ # @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerPage]
49
+ def self.from_json(json_object:)
50
+ struct = JSON.parse(json_object, object_class: OpenStruct)
51
+ parsed_json = JSON.parse(json_object)
52
+ items = parsed_json["items"]&.map do |item|
53
+ item = item.to_json
54
+ CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer.from_json(json_object: item)
55
+ end
56
+ prev_page_token = struct["prev_page_token"]
57
+ next_page_token = struct["next_page_token"]
58
+ new(
59
+ items: items,
60
+ prev_page_token: prev_page_token,
61
+ next_page_token: next_page_token,
62
+ additional_properties: struct
63
+ )
64
+ end
65
+
66
+ # Serialize an instance of NonInsurancePayerPage to a JSON object
67
+ #
68
+ # @return [String]
69
+ def to_json(*_args)
70
+ @_field_set&.to_json
71
+ end
72
+
73
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
74
+ # hash and check each fields type against the current object's property
75
+ # definitions.
76
+ #
77
+ # @param obj [Object]
78
+ # @return [Void]
79
+ def self.validate_raw(obj:)
80
+ obj.items.is_a?(Array) != false || raise("Passed value for field obj.items is not the expected type, validation failed.")
81
+ obj.prev_page_token&.is_a?(String) != false || raise("Passed value for field obj.prev_page_token is not the expected type, validation failed.")
82
+ obj.next_page_token&.is_a?(String) != false || raise("Passed value for field obj.next_page_token is not the expected type, validation failed.")
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CandidApiClient
4
+ module NonInsurancePayers
5
+ module V1
6
+ module Types
7
+ class NonInsurancePayerSortField
8
+ NAME = "NAME"
9
+ CATEGORY = "CATEGORY"
10
+ ENABLED = "ENABLED"
11
+ UPDATED_AT = "UPDATED_AT"
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,92 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "non_insurance_payer_description_update"
4
+ require_relative "non_insurance_payer_category_update"
5
+ require "ostruct"
6
+ require "json"
7
+
8
+ module CandidApiClient
9
+ module NonInsurancePayers
10
+ module V1
11
+ module Types
12
+ class NonInsurancePayerUpdateRequest
13
+ # @return [String] Max 50 characters allowed
14
+ attr_reader :name
15
+ # @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerDescriptionUpdate]
16
+ attr_reader :description
17
+ # @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerCategoryUpdate]
18
+ attr_reader :category
19
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
20
+ attr_reader :additional_properties
21
+ # @return [Object]
22
+ attr_reader :_field_set
23
+ protected :_field_set
24
+
25
+ OMIT = Object.new
26
+
27
+ # @param name [String] Max 50 characters allowed
28
+ # @param description [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerDescriptionUpdate]
29
+ # @param category [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerCategoryUpdate]
30
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
31
+ # @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerUpdateRequest]
32
+ def initialize(name: OMIT, description: OMIT, category: OMIT, additional_properties: nil)
33
+ @name = name if name != OMIT
34
+ @description = description if description != OMIT
35
+ @category = category if category != OMIT
36
+ @additional_properties = additional_properties
37
+ @_field_set = { "name": name, "description": description, "category": category }.reject do |_k, v|
38
+ v == OMIT
39
+ end
40
+ end
41
+
42
+ # Deserialize a JSON object to an instance of NonInsurancePayerUpdateRequest
43
+ #
44
+ # @param json_object [String]
45
+ # @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerUpdateRequest]
46
+ def self.from_json(json_object:)
47
+ struct = JSON.parse(json_object, object_class: OpenStruct)
48
+ parsed_json = JSON.parse(json_object)
49
+ name = struct["name"]
50
+ if parsed_json["description"].nil?
51
+ description = nil
52
+ else
53
+ description = parsed_json["description"].to_json
54
+ description = CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerDescriptionUpdate.from_json(json_object: description)
55
+ end
56
+ if parsed_json["category"].nil?
57
+ category = nil
58
+ else
59
+ category = parsed_json["category"].to_json
60
+ category = CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerCategoryUpdate.from_json(json_object: category)
61
+ end
62
+ new(
63
+ name: name,
64
+ description: description,
65
+ category: category,
66
+ additional_properties: struct
67
+ )
68
+ end
69
+
70
+ # Serialize an instance of NonInsurancePayerUpdateRequest to a JSON object
71
+ #
72
+ # @return [String]
73
+ def to_json(*_args)
74
+ @_field_set&.to_json
75
+ end
76
+
77
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
78
+ # hash and check each fields type against the current object's property
79
+ # definitions.
80
+ #
81
+ # @param obj [Object]
82
+ # @return [Void]
83
+ def self.validate_raw(obj:)
84
+ obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
85
+ obj.description.nil? || CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerDescriptionUpdate.validate_raw(obj: obj.description)
86
+ obj.category.nil? || CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerCategoryUpdate.validate_raw(obj: obj.category)
87
+ end
88
+ end
89
+ end
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,62 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module CandidApiClient
7
+ module NonInsurancePayers
8
+ module V1
9
+ module Types
10
+ class ToggleNonInsurancePayerEnablementRequest
11
+ # @return [Boolean]
12
+ attr_reader :enabled
13
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
14
+ attr_reader :additional_properties
15
+ # @return [Object]
16
+ attr_reader :_field_set
17
+ protected :_field_set
18
+
19
+ OMIT = Object.new
20
+
21
+ # @param enabled [Boolean]
22
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
23
+ # @return [CandidApiClient::NonInsurancePayers::V1::Types::ToggleNonInsurancePayerEnablementRequest]
24
+ def initialize(enabled:, additional_properties: nil)
25
+ @enabled = enabled
26
+ @additional_properties = additional_properties
27
+ @_field_set = { "enabled": enabled }
28
+ end
29
+
30
+ # Deserialize a JSON object to an instance of
31
+ # ToggleNonInsurancePayerEnablementRequest
32
+ #
33
+ # @param json_object [String]
34
+ # @return [CandidApiClient::NonInsurancePayers::V1::Types::ToggleNonInsurancePayerEnablementRequest]
35
+ def self.from_json(json_object:)
36
+ struct = JSON.parse(json_object, object_class: OpenStruct)
37
+ enabled = struct["enabled"]
38
+ new(enabled: enabled, additional_properties: struct)
39
+ end
40
+
41
+ # Serialize an instance of ToggleNonInsurancePayerEnablementRequest to a JSON
42
+ # object
43
+ #
44
+ # @return [String]
45
+ def to_json(*_args)
46
+ @_field_set&.to_json
47
+ end
48
+
49
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
50
+ # hash and check each fields type against the current object's property
51
+ # definitions.
52
+ #
53
+ # @param obj [Object]
54
+ # @return [Void]
55
+ def self.validate_raw(obj:)
56
+ obj.enabled.is_a?(Boolean) != false || raise("Passed value for field obj.enabled is not the expected type, validation failed.")
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
@@ -22,6 +22,8 @@ module CandidApiClient
22
22
  attr_reader :link_sequence_number
23
23
  # @return [String]
24
24
  attr_reader :pharmacy_prescription_number
25
+ # @return [String]
26
+ attr_reader :conversion_formula
25
27
  # @return [OpenStruct] Additional properties unmapped to the current class definition
26
28
  attr_reader :additional_properties
27
29
  # @return [Object]
@@ -36,16 +38,18 @@ module CandidApiClient
36
38
  # @param measurement_unit_code [CandidApiClient::ServiceLines::V2::Types::MeasurementUnitCode]
37
39
  # @param link_sequence_number [String]
38
40
  # @param pharmacy_prescription_number [String]
41
+ # @param conversion_formula [String]
39
42
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
40
43
  # @return [CandidApiClient::ServiceLines::V2::Types::DrugIdentification]
41
44
  def initialize(service_id_qualifier:, national_drug_code:, national_drug_unit_count:, measurement_unit_code:,
42
- link_sequence_number: OMIT, pharmacy_prescription_number: OMIT, additional_properties: nil)
45
+ link_sequence_number: OMIT, pharmacy_prescription_number: OMIT, conversion_formula: OMIT, additional_properties: nil)
43
46
  @service_id_qualifier = service_id_qualifier
44
47
  @national_drug_code = national_drug_code
45
48
  @national_drug_unit_count = national_drug_unit_count
46
49
  @measurement_unit_code = measurement_unit_code
47
50
  @link_sequence_number = link_sequence_number if link_sequence_number != OMIT
48
51
  @pharmacy_prescription_number = pharmacy_prescription_number if pharmacy_prescription_number != OMIT
52
+ @conversion_formula = conversion_formula if conversion_formula != OMIT
49
53
  @additional_properties = additional_properties
50
54
  @_field_set = {
51
55
  "service_id_qualifier": service_id_qualifier,
@@ -53,7 +57,8 @@ module CandidApiClient
53
57
  "national_drug_unit_count": national_drug_unit_count,
54
58
  "measurement_unit_code": measurement_unit_code,
55
59
  "link_sequence_number": link_sequence_number,
56
- "pharmacy_prescription_number": pharmacy_prescription_number
60
+ "pharmacy_prescription_number": pharmacy_prescription_number,
61
+ "conversion_formula": conversion_formula
57
62
  }.reject do |_k, v|
58
63
  v == OMIT
59
64
  end
@@ -71,6 +76,7 @@ module CandidApiClient
71
76
  measurement_unit_code = struct["measurement_unit_code"]
72
77
  link_sequence_number = struct["link_sequence_number"]
73
78
  pharmacy_prescription_number = struct["pharmacy_prescription_number"]
79
+ conversion_formula = struct["conversion_formula"]
74
80
  new(
75
81
  service_id_qualifier: service_id_qualifier,
76
82
  national_drug_code: national_drug_code,
@@ -78,6 +84,7 @@ module CandidApiClient
78
84
  measurement_unit_code: measurement_unit_code,
79
85
  link_sequence_number: link_sequence_number,
80
86
  pharmacy_prescription_number: pharmacy_prescription_number,
87
+ conversion_formula: conversion_formula,
81
88
  additional_properties: struct
82
89
  )
83
90
  end
@@ -102,6 +109,7 @@ module CandidApiClient
102
109
  obj.measurement_unit_code.is_a?(CandidApiClient::ServiceLines::V2::Types::MeasurementUnitCode) != false || raise("Passed value for field obj.measurement_unit_code is not the expected type, validation failed.")
103
110
  obj.link_sequence_number&.is_a?(String) != false || raise("Passed value for field obj.link_sequence_number is not the expected type, validation failed.")
104
111
  obj.pharmacy_prescription_number&.is_a?(String) != false || raise("Passed value for field obj.pharmacy_prescription_number is not the expected type, validation failed.")
112
+ obj.conversion_formula&.is_a?(String) != false || raise("Passed value for field obj.conversion_formula is not the expected type, validation failed.")
105
113
  end
106
114
  end
107
115
  end
data/lib/candidhealth.rb CHANGED
@@ -19,6 +19,9 @@ require_relative "candidhealth/import_invoice/client"
19
19
  require_relative "candidhealth/insurance_adjudications/client"
20
20
  require_relative "candidhealth/insurance_payments/client"
21
21
  require_relative "candidhealth/insurance_refunds/client"
22
+ require_relative "candidhealth/non_insurance_payer_payments/client"
23
+ require_relative "candidhealth/non_insurance_payer_refunds/client"
24
+ require_relative "candidhealth/non_insurance_payers/client"
22
25
  require_relative "candidhealth/organization_service_facilities/client"
23
26
  require_relative "candidhealth/organization_providers/client"
24
27
  require_relative "candidhealth/patient_payments/client"
@@ -65,6 +68,12 @@ module CandidApiClient
65
68
  attr_reader :insurance_payments
66
69
  # @return [CandidApiClient::InsuranceRefunds::Client]
67
70
  attr_reader :insurance_refunds
71
+ # @return [CandidApiClient::NonInsurancePayerPayments::Client]
72
+ attr_reader :non_insurance_payer_payments
73
+ # @return [CandidApiClient::NonInsurancePayerRefunds::Client]
74
+ attr_reader :non_insurance_payer_refunds
75
+ # @return [CandidApiClient::NonInsurancePayers::Client]
76
+ attr_reader :non_insurance_payers
68
77
  # @return [CandidApiClient::OrganizationServiceFacilities::Client]
69
78
  attr_reader :organization_service_facilities
70
79
  # @return [CandidApiClient::OrganizationProviders::Client]
@@ -133,6 +142,9 @@ module CandidApiClient
133
142
  @insurance_adjudications = CandidApiClient::InsuranceAdjudications::Client.new(request_client: @request_client)
134
143
  @insurance_payments = CandidApiClient::InsurancePayments::Client.new(request_client: @request_client)
135
144
  @insurance_refunds = CandidApiClient::InsuranceRefunds::Client.new(request_client: @request_client)
145
+ @non_insurance_payer_payments = CandidApiClient::NonInsurancePayerPayments::Client.new(request_client: @request_client)
146
+ @non_insurance_payer_refunds = CandidApiClient::NonInsurancePayerRefunds::Client.new(request_client: @request_client)
147
+ @non_insurance_payers = CandidApiClient::NonInsurancePayers::Client.new(request_client: @request_client)
136
148
  @organization_service_facilities = CandidApiClient::OrganizationServiceFacilities::Client.new(request_client: @request_client)
137
149
  @organization_providers = CandidApiClient::OrganizationProviders::Client.new(request_client: @request_client)
138
150
  @patient_payments = CandidApiClient::PatientPayments::Client.new(request_client: @request_client)
@@ -180,6 +192,12 @@ module CandidApiClient
180
192
  attr_reader :insurance_payments
181
193
  # @return [CandidApiClient::InsuranceRefunds::AsyncClient]
182
194
  attr_reader :insurance_refunds
195
+ # @return [CandidApiClient::NonInsurancePayerPayments::AsyncClient]
196
+ attr_reader :non_insurance_payer_payments
197
+ # @return [CandidApiClient::NonInsurancePayerRefunds::AsyncClient]
198
+ attr_reader :non_insurance_payer_refunds
199
+ # @return [CandidApiClient::NonInsurancePayers::AsyncClient]
200
+ attr_reader :non_insurance_payers
183
201
  # @return [CandidApiClient::OrganizationServiceFacilities::AsyncClient]
184
202
  attr_reader :organization_service_facilities
185
203
  # @return [CandidApiClient::OrganizationProviders::AsyncClient]
@@ -248,6 +266,9 @@ module CandidApiClient
248
266
  @insurance_adjudications = CandidApiClient::InsuranceAdjudications::AsyncClient.new(request_client: @async_request_client)
249
267
  @insurance_payments = CandidApiClient::InsurancePayments::AsyncClient.new(request_client: @async_request_client)
250
268
  @insurance_refunds = CandidApiClient::InsuranceRefunds::AsyncClient.new(request_client: @async_request_client)
269
+ @non_insurance_payer_payments = CandidApiClient::NonInsurancePayerPayments::AsyncClient.new(request_client: @async_request_client)
270
+ @non_insurance_payer_refunds = CandidApiClient::NonInsurancePayerRefunds::AsyncClient.new(request_client: @async_request_client)
271
+ @non_insurance_payers = CandidApiClient::NonInsurancePayers::AsyncClient.new(request_client: @async_request_client)
251
272
  @organization_service_facilities = CandidApiClient::OrganizationServiceFacilities::AsyncClient.new(request_client: @async_request_client)
252
273
  @organization_providers = CandidApiClient::OrganizationProviders::AsyncClient.new(request_client: @async_request_client)
253
274
  @patient_payments = CandidApiClient::PatientPayments::AsyncClient.new(request_client: @async_request_client)
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.29.0" }
46
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.30.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.29.0" }
90
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.30.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
@@ -161,6 +161,22 @@ require_relative "candidhealth/invoices/v_2/types/claim_invoice_item"
161
161
  require_relative "candidhealth/invoices/v_2/types/claim_invoice_item_info"
162
162
  require_relative "candidhealth/invoices/v_2/types/unattributed_invoice_item"
163
163
  require_relative "candidhealth/invoices/v_2/types/invoice_item_info"
164
+ require_relative "candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payment"
165
+ require_relative "candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payment_create"
166
+ require_relative "candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payments_page"
167
+ require_relative "candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payment_sort_field"
168
+ require_relative "candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund"
169
+ require_relative "candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund_create"
170
+ require_relative "candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refunds_page"
171
+ require_relative "candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund_sort_field"
172
+ require_relative "candidhealth/non_insurance_payers/v_1/types/non_insurance_payer"
173
+ require_relative "candidhealth/non_insurance_payers/v_1/types/create_non_insurance_payer_request"
174
+ require_relative "candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_page"
175
+ require_relative "candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_sort_field"
176
+ require_relative "candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_description_update"
177
+ require_relative "candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_category_update"
178
+ require_relative "candidhealth/non_insurance_payers/v_1/types/toggle_non_insurance_payer_enablement_request"
179
+ require_relative "candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_update_request"
164
180
  require_relative "candidhealth/organization_service_facilities/v_2/types/service_facility_status"
165
181
  require_relative "candidhealth/organization_service_facilities/v_2/types/service_facility_operational_status"
166
182
  require_relative "candidhealth/organization_service_facilities/v_2/types/service_facility_mode"
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.29.0
4
+ version: 0.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-04 00:00:00.000000000 Z
11
+ date: 2024-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday
@@ -368,6 +368,28 @@ files:
368
368
  - lib/candidhealth/invoices/v_2/types/invoice_status.rb
369
369
  - lib/candidhealth/invoices/v_2/types/service_line_invoice_item.rb
370
370
  - lib/candidhealth/invoices/v_2/types/unattributed_invoice_item.rb
371
+ - lib/candidhealth/non_insurance_payer_payments/client.rb
372
+ - lib/candidhealth/non_insurance_payer_payments/v_1/client.rb
373
+ - lib/candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payment.rb
374
+ - lib/candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payment_create.rb
375
+ - lib/candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payment_sort_field.rb
376
+ - lib/candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payments_page.rb
377
+ - lib/candidhealth/non_insurance_payer_refunds/client.rb
378
+ - lib/candidhealth/non_insurance_payer_refunds/v_1/client.rb
379
+ - lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund.rb
380
+ - lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund_create.rb
381
+ - lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund_sort_field.rb
382
+ - lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refunds_page.rb
383
+ - lib/candidhealth/non_insurance_payers/client.rb
384
+ - lib/candidhealth/non_insurance_payers/v_1/client.rb
385
+ - lib/candidhealth/non_insurance_payers/v_1/types/create_non_insurance_payer_request.rb
386
+ - lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer.rb
387
+ - lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_category_update.rb
388
+ - lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_description_update.rb
389
+ - lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_page.rb
390
+ - lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_sort_field.rb
391
+ - lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_update_request.rb
392
+ - lib/candidhealth/non_insurance_payers/v_1/types/toggle_non_insurance_payer_enablement_request.rb
371
393
  - lib/candidhealth/organization_providers/client.rb
372
394
  - lib/candidhealth/organization_providers/v_2/types/address_type.rb
373
395
  - lib/candidhealth/organization_providers/v_2/types/employment_status.rb