candidhealth 0.40.2 → 0.40.4

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.
@@ -0,0 +1,88 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "payer_plan_group"
4
+ require "ostruct"
5
+ require "json"
6
+
7
+ module CandidApiClient
8
+ module PayerPlanGroups
9
+ module V1
10
+ module Types
11
+ class PayerPlanGroupPage
12
+ # @return [Array<CandidApiClient::PayerPlanGroups::V1::Types::PayerPlanGroup>]
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::PayerPlanGroups::V1::Types::PayerPlanGroup>]
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::PayerPlanGroups::V1::Types::PayerPlanGroupPage]
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 PayerPlanGroupPage
46
+ #
47
+ # @param json_object [String]
48
+ # @return [CandidApiClient::PayerPlanGroups::V1::Types::PayerPlanGroupPage]
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::PayerPlanGroups::V1::Types::PayerPlanGroup.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 PayerPlanGroupPage 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,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CandidApiClient
4
+ module PayerPlanGroups
5
+ module V1
6
+ module Types
7
+ class PayerPlanGroupSortField
8
+ PLAN_GROUP_NAME = "plan_group_name"
9
+ PLAN_TYPE = "plan_type"
10
+ CREATED_AT = "created_at"
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -65,7 +65,7 @@ module CandidApiClient
65
65
  # @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
66
66
  # @example
67
67
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
68
- # api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
68
+ # api.service_lines.v_2.create(request: { modifiers: [AV], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
69
69
  def create(request:, request_options: nil)
70
70
  response = @request_client.conn.post do |req|
71
71
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -116,7 +116,7 @@ module CandidApiClient
116
116
  # @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
117
117
  # @example
118
118
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
119
- # api.service_lines.v_2.update(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { edit_reason: "string", modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, units: MJ, procedure_code: "string", quantity: "string", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
119
+ # api.service_lines.v_2.update(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { edit_reason: "string", modifiers: [AV], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, units: MJ, procedure_code: "string", quantity: "string", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
120
120
  def update(service_line_id:, request:, request_options: nil)
121
121
  response = @request_client.conn.patch do |req|
122
122
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -210,7 +210,7 @@ module CandidApiClient
210
210
  # @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
211
211
  # @example
212
212
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
213
- # api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
213
+ # api.service_lines.v_2.create(request: { modifiers: [AV], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
214
214
  def create(request:, request_options: nil)
215
215
  Async do
216
216
  response = @request_client.conn.post do |req|
@@ -263,7 +263,7 @@ module CandidApiClient
263
263
  # @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
264
264
  # @example
265
265
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
266
- # api.service_lines.v_2.update(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { edit_reason: "string", modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, units: MJ, procedure_code: "string", quantity: "string", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
266
+ # api.service_lines.v_2.update(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { edit_reason: "string", modifiers: [AV], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, units: MJ, procedure_code: "string", quantity: "string", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
267
267
  def update(service_line_id:, request:, request_options: nil)
268
268
  Async do
269
269
  response = @request_client.conn.patch do |req|
data/lib/candidhealth.rb CHANGED
@@ -31,6 +31,7 @@ require_relative "candidhealth/organization_service_facilities/client"
31
31
  require_relative "candidhealth/organization_providers/client"
32
32
  require_relative "candidhealth/patient_payments/client"
33
33
  require_relative "candidhealth/patient_refunds/client"
34
+ require_relative "candidhealth/payer_plan_groups/client"
34
35
  require_relative "candidhealth/payers/client"
35
36
  require_relative "candidhealth/service_lines/client"
36
37
  require_relative "candidhealth/tasks/client"
@@ -95,6 +96,8 @@ module CandidApiClient
95
96
  attr_reader :patient_payments
96
97
  # @return [CandidApiClient::PatientRefunds::Client]
97
98
  attr_reader :patient_refunds
99
+ # @return [CandidApiClient::PayerPlanGroups::Client]
100
+ attr_reader :payer_plan_groups
98
101
  # @return [CandidApiClient::Payers::Client]
99
102
  attr_reader :payers
100
103
  # @return [CandidApiClient::ServiceLines::Client]
@@ -163,6 +166,7 @@ module CandidApiClient
163
166
  @organization_providers = CandidApiClient::OrganizationProviders::Client.new(request_client: @request_client)
164
167
  @patient_payments = CandidApiClient::PatientPayments::Client.new(request_client: @request_client)
165
168
  @patient_refunds = CandidApiClient::PatientRefunds::Client.new(request_client: @request_client)
169
+ @payer_plan_groups = CandidApiClient::PayerPlanGroups::Client.new(request_client: @request_client)
166
170
  @payers = CandidApiClient::Payers::Client.new(request_client: @request_client)
167
171
  @service_lines = CandidApiClient::ServiceLines::Client.new(request_client: @request_client)
168
172
  @tasks = CandidApiClient::Tasks::Client.new(request_client: @request_client)
@@ -228,6 +232,8 @@ module CandidApiClient
228
232
  attr_reader :patient_payments
229
233
  # @return [CandidApiClient::PatientRefunds::AsyncClient]
230
234
  attr_reader :patient_refunds
235
+ # @return [CandidApiClient::PayerPlanGroups::AsyncClient]
236
+ attr_reader :payer_plan_groups
231
237
  # @return [CandidApiClient::Payers::AsyncClient]
232
238
  attr_reader :payers
233
239
  # @return [CandidApiClient::ServiceLines::AsyncClient]
@@ -296,6 +302,7 @@ module CandidApiClient
296
302
  @organization_providers = CandidApiClient::OrganizationProviders::AsyncClient.new(request_client: @async_request_client)
297
303
  @patient_payments = CandidApiClient::PatientPayments::AsyncClient.new(request_client: @async_request_client)
298
304
  @patient_refunds = CandidApiClient::PatientRefunds::AsyncClient.new(request_client: @async_request_client)
305
+ @payer_plan_groups = CandidApiClient::PayerPlanGroups::AsyncClient.new(request_client: @async_request_client)
299
306
  @payers = CandidApiClient::Payers::AsyncClient.new(request_client: @async_request_client)
300
307
  @service_lines = CandidApiClient::ServiceLines::AsyncClient.new(request_client: @async_request_client)
301
308
  @tasks = CandidApiClient::Tasks::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.40.2" }
46
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4" }
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.2" }
90
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4" }
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
@@ -6,6 +6,7 @@ require_relative "candidhealth/billing_notes/v_2/types/billing_note_base"
6
6
  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
+ require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_summary"
9
10
  require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_bundle_error"
10
11
  require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_status"
11
12
  require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_sort_field"
@@ -177,7 +178,6 @@ require_relative "candidhealth/insurance_cards/v_2/types/insurance_card_base"
177
178
  require_relative "candidhealth/insurance_cards/v_2/types/insurance_card_create"
178
179
  require_relative "candidhealth/insurance_cards/v_2/types/insurance_card"
179
180
  require_relative "candidhealth/insurance_payments/v_1/types/insurance_payment"
180
- require_relative "candidhealth/insurance_payments/v_1/types/insurance_payment_create"
181
181
  require_relative "candidhealth/insurance_payments/v_1/types/insurance_payments_page"
182
182
  require_relative "candidhealth/insurance_payments/v_1/types/insurance_payment_sort_field"
183
183
  require_relative "candidhealth/insurance_refunds/v_1/types/insurance_refund"
@@ -245,6 +245,11 @@ require_relative "candidhealth/patient_payments/v_4/types/patient_payment_sort_f
245
245
  require_relative "candidhealth/patient_refunds/v_1/types/patient_refund"
246
246
  require_relative "candidhealth/patient_refunds/v_1/types/patient_refunds_page"
247
247
  require_relative "candidhealth/patient_refunds/v_1/types/patient_refund_sort_field"
248
+ require_relative "candidhealth/payer_plan_groups/v_1/types/mutable_payer_plan_group"
249
+ require_relative "candidhealth/payer_plan_groups/v_1/types/payer_plan_group"
250
+ require_relative "candidhealth/payer_plan_groups/v_1/types/payer_plan_group_page"
251
+ require_relative "candidhealth/payer_plan_groups/v_1/types/payer_plan_group_sort_field"
252
+ require_relative "candidhealth/payer_plan_groups/v_1/types/payer_plan_group_already_exists_error"
248
253
  require_relative "candidhealth/payers/v_3/types/payer_page"
249
254
  require_relative "candidhealth/payers/v_3/types/payer"
250
255
  require_relative "candidhealth/payers/v_3/types/payer_info"
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.2
4
+ version: 0.40.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-04-07 00:00:00.000000000 Z
11
+ date: 2025-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday
@@ -120,6 +120,7 @@ files:
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
122
122
  - lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_status.rb
123
+ - lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_summary.rb
123
124
  - lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb
124
125
  - lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb
125
126
  - lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create.rb
@@ -398,7 +399,6 @@ files:
398
399
  - lib/candidhealth/insurance_payments/client.rb
399
400
  - lib/candidhealth/insurance_payments/v_1/client.rb
400
401
  - lib/candidhealth/insurance_payments/v_1/types/insurance_payment.rb
401
- - lib/candidhealth/insurance_payments/v_1/types/insurance_payment_create.rb
402
402
  - lib/candidhealth/insurance_payments/v_1/types/insurance_payment_sort_field.rb
403
403
  - lib/candidhealth/insurance_payments/v_1/types/insurance_payments_page.rb
404
404
  - lib/candidhealth/insurance_refunds/client.rb
@@ -487,6 +487,13 @@ files:
487
487
  - lib/candidhealth/patient_refunds/v_1/types/patient_refund.rb
488
488
  - lib/candidhealth/patient_refunds/v_1/types/patient_refund_sort_field.rb
489
489
  - lib/candidhealth/patient_refunds/v_1/types/patient_refunds_page.rb
490
+ - lib/candidhealth/payer_plan_groups/client.rb
491
+ - lib/candidhealth/payer_plan_groups/v_1/client.rb
492
+ - lib/candidhealth/payer_plan_groups/v_1/types/mutable_payer_plan_group.rb
493
+ - lib/candidhealth/payer_plan_groups/v_1/types/payer_plan_group.rb
494
+ - lib/candidhealth/payer_plan_groups/v_1/types/payer_plan_group_already_exists_error.rb
495
+ - lib/candidhealth/payer_plan_groups/v_1/types/payer_plan_group_page.rb
496
+ - lib/candidhealth/payer_plan_groups/v_1/types/payer_plan_group_sort_field.rb
490
497
  - lib/candidhealth/payers/client.rb
491
498
  - lib/candidhealth/payers/v_3/client.rb
492
499
  - lib/candidhealth/payers/v_3/types/payer.rb
@@ -1,114 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../../../payers/v_3/types/payer_identifier"
4
- require "date"
5
- require_relative "../../../financials/types/allocation_create"
6
- require "ostruct"
7
- require "json"
8
-
9
- module CandidApiClient
10
- module InsurancePayments
11
- module V1
12
- module Types
13
- class InsurancePaymentCreate
14
- # @return [CandidApiClient::Payers::V3::Types::PayerIdentifier]
15
- attr_reader :payer_identifier
16
- # @return [Integer]
17
- attr_reader :amount_cents
18
- # @return [DateTime]
19
- attr_reader :payment_timestamp
20
- # @return [String]
21
- attr_reader :payment_note
22
- # @return [Array<CandidApiClient::Financials::Types::AllocationCreate>]
23
- attr_reader :allocations
24
- # @return [OpenStruct] Additional properties unmapped to the current class definition
25
- attr_reader :additional_properties
26
- # @return [Object]
27
- attr_reader :_field_set
28
- protected :_field_set
29
-
30
- OMIT = Object.new
31
-
32
- # @param payer_identifier [CandidApiClient::Payers::V3::Types::PayerIdentifier]
33
- # @param amount_cents [Integer]
34
- # @param payment_timestamp [DateTime]
35
- # @param payment_note [String]
36
- # @param allocations [Array<CandidApiClient::Financials::Types::AllocationCreate>]
37
- # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
38
- # @return [CandidApiClient::InsurancePayments::V1::Types::InsurancePaymentCreate]
39
- def initialize(payer_identifier:, amount_cents:, allocations:, payment_timestamp: OMIT, payment_note: OMIT,
40
- additional_properties: nil)
41
- @payer_identifier = payer_identifier
42
- @amount_cents = amount_cents
43
- @payment_timestamp = payment_timestamp if payment_timestamp != OMIT
44
- @payment_note = payment_note if payment_note != OMIT
45
- @allocations = allocations
46
- @additional_properties = additional_properties
47
- @_field_set = {
48
- "payer_identifier": payer_identifier,
49
- "amount_cents": amount_cents,
50
- "payment_timestamp": payment_timestamp,
51
- "payment_note": payment_note,
52
- "allocations": allocations
53
- }.reject do |_k, v|
54
- v == OMIT
55
- end
56
- end
57
-
58
- # Deserialize a JSON object to an instance of InsurancePaymentCreate
59
- #
60
- # @param json_object [String]
61
- # @return [CandidApiClient::InsurancePayments::V1::Types::InsurancePaymentCreate]
62
- def self.from_json(json_object:)
63
- struct = JSON.parse(json_object, object_class: OpenStruct)
64
- parsed_json = JSON.parse(json_object)
65
- if parsed_json["payer_identifier"].nil?
66
- payer_identifier = nil
67
- else
68
- payer_identifier = parsed_json["payer_identifier"].to_json
69
- payer_identifier = CandidApiClient::Payers::V3::Types::PayerIdentifier.from_json(json_object: payer_identifier)
70
- end
71
- amount_cents = struct["amount_cents"]
72
- payment_timestamp = unless parsed_json["payment_timestamp"].nil?
73
- DateTime.parse(parsed_json["payment_timestamp"])
74
- end
75
- payment_note = struct["payment_note"]
76
- allocations = parsed_json["allocations"]&.map do |item|
77
- item = item.to_json
78
- CandidApiClient::Financials::Types::AllocationCreate.from_json(json_object: item)
79
- end
80
- new(
81
- payer_identifier: payer_identifier,
82
- amount_cents: amount_cents,
83
- payment_timestamp: payment_timestamp,
84
- payment_note: payment_note,
85
- allocations: allocations,
86
- additional_properties: struct
87
- )
88
- end
89
-
90
- # Serialize an instance of InsurancePaymentCreate to a JSON object
91
- #
92
- # @return [String]
93
- def to_json(*_args)
94
- @_field_set&.to_json
95
- end
96
-
97
- # Leveraged for Union-type generation, validate_raw attempts to parse the given
98
- # hash and check each fields type against the current object's property
99
- # definitions.
100
- #
101
- # @param obj [Object]
102
- # @return [Void]
103
- def self.validate_raw(obj:)
104
- CandidApiClient::Payers::V3::Types::PayerIdentifier.validate_raw(obj: obj.payer_identifier)
105
- obj.amount_cents.is_a?(Integer) != false || raise("Passed value for field obj.amount_cents is not the expected type, validation failed.")
106
- obj.payment_timestamp&.is_a?(DateTime) != false || raise("Passed value for field obj.payment_timestamp is not the expected type, validation failed.")
107
- obj.payment_note&.is_a?(String) != false || raise("Passed value for field obj.payment_note is not the expected type, validation failed.")
108
- obj.allocations.is_a?(Array) != false || raise("Passed value for field obj.allocations is not the expected type, validation failed.")
109
- end
110
- end
111
- end
112
- end
113
- end
114
- end