candidhealth 0.24.6 → 0.25.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 (50) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/auth/v_2/client.rb +2 -2
  3. data/lib/candidhealth/billing_notes/v_2/client.rb +2 -2
  4. data/lib/candidhealth/contracts/v_2/client.rb +10 -10
  5. data/lib/candidhealth/custom_schemas/v_1/client.rb +8 -8
  6. data/lib/candidhealth/eligibility/v_2/client.rb +6 -6
  7. data/lib/candidhealth/encounters/v_4/client.rb +8 -8
  8. data/lib/candidhealth/expected_network_status/v_1/client.rb +2 -2
  9. data/lib/candidhealth/expected_network_status/v_2/client.rb +4 -4
  10. data/lib/candidhealth/exports/v_3/client.rb +2 -2
  11. data/lib/candidhealth/external_payment_account_config/v_1/client.rb +2 -2
  12. data/lib/candidhealth/fee_schedules/v_3/client.rb +20 -20
  13. data/lib/candidhealth/financials/types/allocation_target.rb +13 -0
  14. data/lib/candidhealth/financials/types/allocation_target_create.rb +12 -0
  15. data/lib/candidhealth/financials/types/appointment_allocation_target.rb +58 -0
  16. data/lib/candidhealth/guarantor/v_1/client.rb +6 -6
  17. data/lib/candidhealth/import_invoice/v_1/client.rb +8 -8
  18. data/lib/candidhealth/insurance_adjudications/v_1/client.rb +6 -6
  19. data/lib/candidhealth/insurance_payments/v_1/client.rb +10 -10
  20. data/lib/candidhealth/insurance_refunds/v_1/client.rb +10 -10
  21. data/lib/candidhealth/organization_providers/v_3/client.rb +8 -8
  22. data/lib/candidhealth/organization_service_facilities/v_2/client.rb +10 -10
  23. data/lib/candidhealth/patient_payments/v_4/client.rb +10 -10
  24. data/lib/candidhealth/patient_refunds/v_1/client.rb +10 -10
  25. data/lib/candidhealth/payers/v_3/client.rb +4 -4
  26. data/lib/candidhealth/pre_encounter/common/types/external_provider.rb +129 -0
  27. data/lib/candidhealth/pre_encounter/common/types/external_provider_type.rb +14 -0
  28. data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +28 -24
  29. data/lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_plan.rb +13 -4
  30. data/lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_type_code.rb +86 -0
  31. data/lib/candidhealth/pre_encounter/coverages/v_1/types/network_type.rb +5 -0
  32. data/lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb +10 -10
  33. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +22 -22
  34. data/lib/candidhealth/pre_encounter/patients/v_1/types/contact.rb +1 -11
  35. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +14 -10
  36. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +13 -9
  37. data/lib/candidhealth/service_facility/client.rb +2 -2
  38. data/lib/candidhealth/service_lines/client.rb +30 -0
  39. data/lib/candidhealth/service_lines/v_2/client.rb +229 -0
  40. data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +279 -0
  41. data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +281 -0
  42. data/lib/candidhealth/tasks/v_3/client.rb +10 -10
  43. data/lib/candidhealth/write_offs/v_1/client.rb +8 -8
  44. data/lib/candidhealth/write_offs/v_1/types/patient_write_off.rb +18 -2
  45. data/lib/candidhealth.rb +9 -2
  46. data/lib/environment.rb +8 -0
  47. data/lib/requests.rb +6 -4
  48. data/lib/types_export.rb +6 -1
  49. metadata +10 -3
  50. data/lib/candidhealth/pre_encounter/patients/v_1/types/external_provider.rb +0 -122
@@ -4,6 +4,7 @@ require "json"
4
4
  require_relative "service_line_allocation_target"
5
5
  require_relative "claim_allocation_target"
6
6
  require_relative "billing_provider_allocation_target"
7
+ require_relative "appointment_allocation_target"
7
8
 
8
9
  module CandidApiClient
9
10
  module Financials
@@ -41,6 +42,8 @@ module CandidApiClient
41
42
  CandidApiClient::Financials::Types::ClaimAllocationTarget.from_json(json_object: json_object)
42
43
  when "billing_provider_id"
43
44
  CandidApiClient::Financials::Types::BillingProviderAllocationTarget.from_json(json_object: json_object)
45
+ when "appointment"
46
+ CandidApiClient::Financials::Types::AppointmentAllocationTarget.from_json(json_object: json_object)
44
47
  when "unattributed"
45
48
  nil
46
49
  else
@@ -60,6 +63,8 @@ module CandidApiClient
60
63
  { **@member.to_json, type: @discriminant }.to_json
61
64
  when "billing_provider_id"
62
65
  { **@member.to_json, type: @discriminant }.to_json
66
+ when "appointment"
67
+ { **@member.to_json, type: @discriminant }.to_json
63
68
  when "unattributed"
64
69
  { type: @discriminant }.to_json
65
70
  else
@@ -82,6 +87,8 @@ module CandidApiClient
82
87
  CandidApiClient::Financials::Types::ClaimAllocationTarget.validate_raw(obj: obj)
83
88
  when "billing_provider_id"
84
89
  CandidApiClient::Financials::Types::BillingProviderAllocationTarget.validate_raw(obj: obj)
90
+ when "appointment"
91
+ CandidApiClient::Financials::Types::AppointmentAllocationTarget.validate_raw(obj: obj)
85
92
  when "unattributed"
86
93
  # noop
87
94
  else
@@ -115,6 +122,12 @@ module CandidApiClient
115
122
  new(member: member, discriminant: "billing_provider_id")
116
123
  end
117
124
 
125
+ # @param member [CandidApiClient::Financials::Types::AppointmentAllocationTarget]
126
+ # @return [CandidApiClient::Financials::Types::AllocationTarget]
127
+ def self.appointment(member:)
128
+ new(member: member, discriminant: "appointment")
129
+ end
130
+
118
131
  # @return [CandidApiClient::Financials::Types::AllocationTarget]
119
132
  def self.unattributed
120
133
  new(member: nil, discriminant: "unattributed")
@@ -40,6 +40,8 @@ module CandidApiClient
40
40
  json_object.value
41
41
  when "billing_provider_by_id"
42
42
  json_object.value
43
+ when "appointment_by_id"
44
+ json_object.value
43
45
  when "unattributed"
44
46
  nil
45
47
  else
@@ -61,6 +63,8 @@ module CandidApiClient
61
63
  { "type": @discriminant, "value": @member }.to_json
62
64
  when "billing_provider_by_id"
63
65
  { "type": @discriminant, "value": @member }.to_json
66
+ when "appointment_by_id"
67
+ { "type": @discriminant, "value": @member }.to_json
64
68
  when "unattributed"
65
69
  { type: @discriminant }.to_json
66
70
  else
@@ -85,6 +89,8 @@ module CandidApiClient
85
89
  obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.")
86
90
  when "billing_provider_by_id"
87
91
  obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.")
92
+ when "appointment_by_id"
93
+ obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.")
88
94
  when "unattributed"
89
95
  # noop
90
96
  else
@@ -124,6 +130,12 @@ module CandidApiClient
124
130
  new(member: member, discriminant: "billing_provider_by_id")
125
131
  end
126
132
 
133
+ # @param member [String]
134
+ # @return [CandidApiClient::Financials::Types::AllocationTargetCreate]
135
+ def self.appointment_by_id(member:)
136
+ new(member: member, discriminant: "appointment_by_id")
137
+ end
138
+
127
139
  # @return [CandidApiClient::Financials::Types::AllocationTargetCreate]
128
140
  def self.unattributed
129
141
  new(member: nil, discriminant: "unattributed")
@@ -0,0 +1,58 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module CandidApiClient
7
+ module Financials
8
+ module Types
9
+ class AppointmentAllocationTarget
10
+ # @return [String]
11
+ attr_reader :appointment_id
12
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
13
+ attr_reader :additional_properties
14
+ # @return [Object]
15
+ attr_reader :_field_set
16
+ protected :_field_set
17
+
18
+ OMIT = Object.new
19
+
20
+ # @param appointment_id [String]
21
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
22
+ # @return [CandidApiClient::Financials::Types::AppointmentAllocationTarget]
23
+ def initialize(appointment_id:, additional_properties: nil)
24
+ @appointment_id = appointment_id
25
+ @additional_properties = additional_properties
26
+ @_field_set = { "appointment_id": appointment_id }
27
+ end
28
+
29
+ # Deserialize a JSON object to an instance of AppointmentAllocationTarget
30
+ #
31
+ # @param json_object [String]
32
+ # @return [CandidApiClient::Financials::Types::AppointmentAllocationTarget]
33
+ def self.from_json(json_object:)
34
+ struct = JSON.parse(json_object, object_class: OpenStruct)
35
+ appointment_id = struct["appointment_id"]
36
+ new(appointment_id: appointment_id, additional_properties: struct)
37
+ end
38
+
39
+ # Serialize an instance of AppointmentAllocationTarget to a JSON object
40
+ #
41
+ # @return [String]
42
+ def to_json(*_args)
43
+ @_field_set&.to_json
44
+ end
45
+
46
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
47
+ # hash and check each fields type against the current object's property
48
+ # definitions.
49
+ #
50
+ # @param obj [Object]
51
+ # @return [Void]
52
+ def self.validate_raw(obj:)
53
+ obj.appointment_id.is_a?(String) != false || raise("Passed value for field obj.appointment_id is not the expected type, validation failed.")
54
+ end
55
+ end
56
+ end
57
+ end
58
+ end
@@ -43,7 +43,7 @@ module CandidApiClient
43
43
  # @param request_options [CandidApiClient::RequestOptions]
44
44
  # @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
45
45
  # @example
46
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
46
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
47
47
  # api.guarantor.v_1.create(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { phone_numbers: [{ number: "1234567890", type: HOME }], phone_consent: true, email: "johndoe@joincandidhealth.com", email_consent: true, first_name: "string", last_name: "string", external_id: "string", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
48
48
  def create(encounter_id:, request:, request_options: nil)
49
49
  response = @request_client.conn.post do |req|
@@ -67,7 +67,7 @@ module CandidApiClient
67
67
  # @param request_options [CandidApiClient::RequestOptions]
68
68
  # @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
69
69
  # @example
70
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
70
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
71
71
  # api.guarantor.v_1.get(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
72
72
  def get(guarantor_id:, request_options: nil)
73
73
  response = @request_client.conn.get do |req|
@@ -107,7 +107,7 @@ module CandidApiClient
107
107
  # @param request_options [CandidApiClient::RequestOptions]
108
108
  # @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
109
109
  # @example
110
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
110
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
111
111
  # api.guarantor.v_1.update(
112
112
  # guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
113
113
  # first_name: "string",
@@ -181,7 +181,7 @@ module CandidApiClient
181
181
  # @param request_options [CandidApiClient::RequestOptions]
182
182
  # @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
183
183
  # @example
184
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
184
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
185
185
  # api.guarantor.v_1.create(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { phone_numbers: [{ number: "1234567890", type: HOME }], phone_consent: true, email: "johndoe@joincandidhealth.com", email_consent: true, first_name: "string", last_name: "string", external_id: "string", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
186
186
  def create(encounter_id:, request:, request_options: nil)
187
187
  Async do
@@ -207,7 +207,7 @@ module CandidApiClient
207
207
  # @param request_options [CandidApiClient::RequestOptions]
208
208
  # @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
209
209
  # @example
210
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
210
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
211
211
  # api.guarantor.v_1.get(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
212
212
  def get(guarantor_id:, request_options: nil)
213
213
  Async do
@@ -249,7 +249,7 @@ module CandidApiClient
249
249
  # @param request_options [CandidApiClient::RequestOptions]
250
250
  # @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
251
251
  # @example
252
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
252
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
253
253
  # api.guarantor.v_1.update(
254
254
  # guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
255
255
  # first_name: "string",
@@ -40,7 +40,7 @@ module CandidApiClient
40
40
  # @param request_options [CandidApiClient::RequestOptions]
41
41
  # @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
42
42
  # @example
43
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
43
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
44
44
  # api.import_invoice.v_1.import_invoice(request: { external_payment_account_config_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", patient_external_id: "string", external_customer_identifier: "string", note: "string", due_date: DateTime.parse(2023-01-15), items: [{ }], status: DRAFT, external_identifier: "string", customer_invoice_url: "string" })
45
45
  def import_invoice(request:, request_options: nil)
46
46
  response = @request_client.conn.post do |req|
@@ -74,7 +74,7 @@ module CandidApiClient
74
74
  # @param request_options [CandidApiClient::RequestOptions]
75
75
  # @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoicesPage]
76
76
  # @example
77
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
77
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
78
78
  # api.import_invoice.v_1.get_multi(
79
79
  # patient_external_id: "string",
80
80
  # encounter_external_id: "string",
@@ -122,7 +122,7 @@ module CandidApiClient
122
122
  # @param request_options [CandidApiClient::RequestOptions]
123
123
  # @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
124
124
  # @example
125
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
125
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
126
126
  # api.import_invoice.v_1.get(invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
127
127
  def get(invoice_id:, request_options: nil)
128
128
  response = @request_client.conn.get do |req|
@@ -153,7 +153,7 @@ module CandidApiClient
153
153
  # @param request_options [CandidApiClient::RequestOptions]
154
154
  # @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
155
155
  # @example
156
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
156
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
157
157
  # api.import_invoice.v_1.update(invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { customer_invoice_url: "string", status: DRAFT, note: "string", due_date: DateTime.parse(2023-01-15), items: { update_type: APPEND, items: [{ }] } })
158
158
  def update(invoice_id:, request:, request_options: nil)
159
159
  response = @request_client.conn.patch do |req|
@@ -198,7 +198,7 @@ module CandidApiClient
198
198
  # @param request_options [CandidApiClient::RequestOptions]
199
199
  # @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
200
200
  # @example
201
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
201
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
202
202
  # api.import_invoice.v_1.import_invoice(request: { external_payment_account_config_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", patient_external_id: "string", external_customer_identifier: "string", note: "string", due_date: DateTime.parse(2023-01-15), items: [{ }], status: DRAFT, external_identifier: "string", customer_invoice_url: "string" })
203
203
  def import_invoice(request:, request_options: nil)
204
204
  Async do
@@ -234,7 +234,7 @@ module CandidApiClient
234
234
  # @param request_options [CandidApiClient::RequestOptions]
235
235
  # @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoicesPage]
236
236
  # @example
237
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
237
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
238
238
  # api.import_invoice.v_1.get_multi(
239
239
  # patient_external_id: "string",
240
240
  # encounter_external_id: "string",
@@ -284,7 +284,7 @@ module CandidApiClient
284
284
  # @param request_options [CandidApiClient::RequestOptions]
285
285
  # @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
286
286
  # @example
287
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
287
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
288
288
  # api.import_invoice.v_1.get(invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
289
289
  def get(invoice_id:, request_options: nil)
290
290
  Async do
@@ -317,7 +317,7 @@ module CandidApiClient
317
317
  # @param request_options [CandidApiClient::RequestOptions]
318
318
  # @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
319
319
  # @example
320
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
320
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
321
321
  # api.import_invoice.v_1.update(invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { customer_invoice_url: "string", status: DRAFT, note: "string", due_date: DateTime.parse(2023-01-15), items: { update_type: APPEND, items: [{ }] } })
322
322
  def update(invoice_id:, request:, request_options: nil)
323
323
  Async do
@@ -25,7 +25,7 @@ module CandidApiClient
25
25
  # @param request_options [CandidApiClient::RequestOptions]
26
26
  # @return [CandidApiClient::InsuranceAdjudications::V1::Types::InsuranceAdjudication]
27
27
  # @example
28
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
28
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
29
29
  # api.insurance_adjudications.v_1.get(insurance_adjudication_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
30
30
  def get(insurance_adjudication_id:, request_options: nil)
31
31
  response = @request_client.conn.get do |req|
@@ -58,7 +58,7 @@ module CandidApiClient
58
58
  # @param request_options [CandidApiClient::RequestOptions]
59
59
  # @return [CandidApiClient::InsuranceAdjudications::V1::Types::InsuranceAdjudication]
60
60
  # @example
61
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
61
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
62
62
  # api.insurance_adjudications.v_1.create(request: { payee: { }, post_date: DateTime.parse(2023-01-15), check_number: "string", check_date: DateTime.parse(2023-01-15), note: "string", claims: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ }] } })
63
63
  def create(request:, request_options: nil)
64
64
  response = @request_client.conn.post do |req|
@@ -83,7 +83,7 @@ module CandidApiClient
83
83
  # @param request_options [CandidApiClient::RequestOptions]
84
84
  # @return [Void]
85
85
  # @example
86
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
86
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
87
87
  # api.insurance_adjudications.v_1.delete(insurance_adjudication_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
88
88
  def delete(insurance_adjudication_id:, request_options: nil)
89
89
  @request_client.conn.delete do |req|
@@ -117,7 +117,7 @@ module CandidApiClient
117
117
  # @param request_options [CandidApiClient::RequestOptions]
118
118
  # @return [CandidApiClient::InsuranceAdjudications::V1::Types::InsuranceAdjudication]
119
119
  # @example
120
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
120
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
121
121
  # api.insurance_adjudications.v_1.get(insurance_adjudication_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
122
122
  def get(insurance_adjudication_id:, request_options: nil)
123
123
  Async do
@@ -152,7 +152,7 @@ module CandidApiClient
152
152
  # @param request_options [CandidApiClient::RequestOptions]
153
153
  # @return [CandidApiClient::InsuranceAdjudications::V1::Types::InsuranceAdjudication]
154
154
  # @example
155
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
155
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
156
156
  # api.insurance_adjudications.v_1.create(request: { payee: { }, post_date: DateTime.parse(2023-01-15), check_number: "string", check_date: DateTime.parse(2023-01-15), note: "string", claims: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ }] } })
157
157
  def create(request:, request_options: nil)
158
158
  Async do
@@ -179,7 +179,7 @@ module CandidApiClient
179
179
  # @param request_options [CandidApiClient::RequestOptions]
180
180
  # @return [Void]
181
181
  # @example
182
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
182
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
183
183
  # api.insurance_adjudications.v_1.delete(insurance_adjudication_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
184
184
  def delete(insurance_adjudication_id:, request_options: nil)
185
185
  Async do
@@ -36,7 +36,7 @@ module CandidApiClient
36
36
  # @param request_options [CandidApiClient::RequestOptions]
37
37
  # @return [CandidApiClient::InsurancePayments::V1::Types::InsurancePaymentsPage]
38
38
  # @example
39
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
39
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
40
40
  # api.insurance_payments.v_1.get_multi(
41
41
  # limit: 1,
42
42
  # payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
@@ -81,7 +81,7 @@ module CandidApiClient
81
81
  # @param request_options [CandidApiClient::RequestOptions]
82
82
  # @return [CandidApiClient::InsurancePayments::V1::Types::InsurancePayment]
83
83
  # @example
84
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
84
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
85
85
  # api.insurance_payments.v_1.get(insurance_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
86
86
  def get(insurance_payment_id:, request_options: nil)
87
87
  response = @request_client.conn.get do |req|
@@ -114,7 +114,7 @@ module CandidApiClient
114
114
  # @param request_options [CandidApiClient::RequestOptions]
115
115
  # @return [CandidApiClient::InsurancePayments::V1::Types::InsurancePayment]
116
116
  # @example
117
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
117
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
118
118
  # api.insurance_payments.v_1.create(request: { amount_cents: 1, payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), payment_note: "string", allocations: [{ }] })
119
119
  def create(request:, request_options: nil)
120
120
  response = @request_client.conn.post do |req|
@@ -142,7 +142,7 @@ module CandidApiClient
142
142
  # @param request_options [CandidApiClient::RequestOptions]
143
143
  # @return [CandidApiClient::InsurancePayments::V1::Types::InsurancePayment]
144
144
  # @example
145
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
145
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
146
146
  # api.insurance_payments.v_1.update(insurance_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
147
147
  def update(insurance_payment_id:, payment_timestamp: nil, payment_note: nil, request_options: nil)
148
148
  response = @request_client.conn.patch do |req|
@@ -173,7 +173,7 @@ module CandidApiClient
173
173
  # @param request_options [CandidApiClient::RequestOptions]
174
174
  # @return [Void]
175
175
  # @example
176
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
176
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
177
177
  # api.insurance_payments.v_1.delete(insurance_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
178
178
  def delete(insurance_payment_id:, request_options: nil)
179
179
  @request_client.conn.delete do |req|
@@ -213,7 +213,7 @@ module CandidApiClient
213
213
  # @param request_options [CandidApiClient::RequestOptions]
214
214
  # @return [CandidApiClient::InsurancePayments::V1::Types::InsurancePaymentsPage]
215
215
  # @example
216
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
216
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
217
217
  # api.insurance_payments.v_1.get_multi(
218
218
  # limit: 1,
219
219
  # payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
@@ -260,7 +260,7 @@ module CandidApiClient
260
260
  # @param request_options [CandidApiClient::RequestOptions]
261
261
  # @return [CandidApiClient::InsurancePayments::V1::Types::InsurancePayment]
262
262
  # @example
263
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
263
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
264
264
  # api.insurance_payments.v_1.get(insurance_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
265
265
  def get(insurance_payment_id:, request_options: nil)
266
266
  Async do
@@ -295,7 +295,7 @@ module CandidApiClient
295
295
  # @param request_options [CandidApiClient::RequestOptions]
296
296
  # @return [CandidApiClient::InsurancePayments::V1::Types::InsurancePayment]
297
297
  # @example
298
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
298
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
299
299
  # api.insurance_payments.v_1.create(request: { amount_cents: 1, payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), payment_note: "string", allocations: [{ }] })
300
300
  def create(request:, request_options: nil)
301
301
  Async do
@@ -325,7 +325,7 @@ module CandidApiClient
325
325
  # @param request_options [CandidApiClient::RequestOptions]
326
326
  # @return [CandidApiClient::InsurancePayments::V1::Types::InsurancePayment]
327
327
  # @example
328
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
328
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
329
329
  # api.insurance_payments.v_1.update(insurance_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
330
330
  def update(insurance_payment_id:, payment_timestamp: nil, payment_note: nil, request_options: nil)
331
331
  Async do
@@ -358,7 +358,7 @@ module CandidApiClient
358
358
  # @param request_options [CandidApiClient::RequestOptions]
359
359
  # @return [Void]
360
360
  # @example
361
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
361
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
362
362
  # api.insurance_payments.v_1.delete(insurance_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
363
363
  def delete(insurance_payment_id:, request_options: nil)
364
364
  Async do
@@ -39,7 +39,7 @@ module CandidApiClient
39
39
  # @param request_options [CandidApiClient::RequestOptions]
40
40
  # @return [CandidApiClient::InsuranceRefunds::V1::Types::InsuranceRefundsPage]
41
41
  # @example
42
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
42
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
43
43
  # api.insurance_refunds.v_1.get_multi(
44
44
  # limit: 1,
45
45
  # payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
@@ -84,7 +84,7 @@ module CandidApiClient
84
84
  # @param request_options [CandidApiClient::RequestOptions]
85
85
  # @return [CandidApiClient::InsuranceRefunds::V1::Types::InsuranceRefund]
86
86
  # @example
87
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
87
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
88
88
  # api.insurance_refunds.v_1.get(insurance_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
89
89
  def get(insurance_refund_id:, request_options: nil)
90
90
  response = @request_client.conn.get do |req|
@@ -117,7 +117,7 @@ module CandidApiClient
117
117
  # @param request_options [CandidApiClient::RequestOptions]
118
118
  # @return [CandidApiClient::InsuranceRefunds::V1::Types::InsuranceRefund]
119
119
  # @example
120
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
120
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
121
121
  # api.insurance_refunds.v_1.create(request: { amount_cents: 1, refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), refund_note: "string", allocations: [{ }], refund_reason: OVERCHARGED })
122
122
  def create(request:, request_options: nil)
123
123
  response = @request_client.conn.post do |req|
@@ -146,7 +146,7 @@ module CandidApiClient
146
146
  # @param request_options [CandidApiClient::RequestOptions]
147
147
  # @return [CandidApiClient::InsuranceRefunds::V1::Types::InsuranceRefund]
148
148
  # @example
149
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
149
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
150
150
  # api.insurance_refunds.v_1.update(insurance_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
151
151
  def update(insurance_refund_id:, refund_timestamp: nil, refund_note: nil, refund_reason: nil,
152
152
  request_options: nil)
@@ -178,7 +178,7 @@ module CandidApiClient
178
178
  # @param request_options [CandidApiClient::RequestOptions]
179
179
  # @return [Void]
180
180
  # @example
181
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
181
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
182
182
  # api.insurance_refunds.v_1.delete(insurance_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
183
183
  def delete(insurance_refund_id:, request_options: nil)
184
184
  @request_client.conn.delete do |req|
@@ -220,7 +220,7 @@ module CandidApiClient
220
220
  # @param request_options [CandidApiClient::RequestOptions]
221
221
  # @return [CandidApiClient::InsuranceRefunds::V1::Types::InsuranceRefundsPage]
222
222
  # @example
223
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
223
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
224
224
  # api.insurance_refunds.v_1.get_multi(
225
225
  # limit: 1,
226
226
  # payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
@@ -267,7 +267,7 @@ module CandidApiClient
267
267
  # @param request_options [CandidApiClient::RequestOptions]
268
268
  # @return [CandidApiClient::InsuranceRefunds::V1::Types::InsuranceRefund]
269
269
  # @example
270
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
270
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
271
271
  # api.insurance_refunds.v_1.get(insurance_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
272
272
  def get(insurance_refund_id:, request_options: nil)
273
273
  Async do
@@ -302,7 +302,7 @@ module CandidApiClient
302
302
  # @param request_options [CandidApiClient::RequestOptions]
303
303
  # @return [CandidApiClient::InsuranceRefunds::V1::Types::InsuranceRefund]
304
304
  # @example
305
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
305
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
306
306
  # api.insurance_refunds.v_1.create(request: { amount_cents: 1, refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), refund_note: "string", allocations: [{ }], refund_reason: OVERCHARGED })
307
307
  def create(request:, request_options: nil)
308
308
  Async do
@@ -333,7 +333,7 @@ module CandidApiClient
333
333
  # @param request_options [CandidApiClient::RequestOptions]
334
334
  # @return [CandidApiClient::InsuranceRefunds::V1::Types::InsuranceRefund]
335
335
  # @example
336
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
336
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
337
337
  # api.insurance_refunds.v_1.update(insurance_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
338
338
  def update(insurance_refund_id:, refund_timestamp: nil, refund_note: nil, refund_reason: nil,
339
339
  request_options: nil)
@@ -367,7 +367,7 @@ module CandidApiClient
367
367
  # @param request_options [CandidApiClient::RequestOptions]
368
368
  # @return [Void]
369
369
  # @example
370
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
370
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
371
371
  # api.insurance_refunds.v_1.delete(insurance_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
372
372
  def delete(insurance_refund_id:, request_options: nil)
373
373
  Async do
@@ -25,7 +25,7 @@ module CandidApiClient
25
25
  # @param request_options [CandidApiClient::RequestOptions]
26
26
  # @return [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2]
27
27
  # @example
28
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
28
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
29
29
  # api.organization_providers.v_3.get(organization_provider_id: "965A563A-0285-4910-9569-E3739C0F6EAB")
30
30
  def get(organization_provider_id:, request_options: nil)
31
31
  response = @request_client.conn.get do |req|
@@ -52,7 +52,7 @@ module CandidApiClient
52
52
  # @param request_options [CandidApiClient::RequestOptions]
53
53
  # @return [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderPageV2]
54
54
  # @example
55
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
55
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
56
56
  # api.organization_providers.v_3.get_multi(
57
57
  # limit: 100,
58
58
  # search_term: "john",
@@ -106,7 +106,7 @@ module CandidApiClient
106
106
  # @param request_options [CandidApiClient::RequestOptions]
107
107
  # @return [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2]
108
108
  # @example
109
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
109
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
110
110
  # api.organization_providers.v_3.create(request: { npi: "string", is_rendering: true, is_billing: true, first_name: "string", last_name: "string", organization_name: "string", provider_type: INDIVIDUAL, tax_id: "string", taxonomy_code: "string", license_type: MD, addresses: [{ address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, address_type: DEFAULT }], employment_start_date: DateTime.parse(2023-01-15), employment_termination_date: DateTime.parse(2023-01-15), qualifications: [{ }] })
111
111
  def create(request:, request_options: nil)
112
112
  response = @request_client.conn.post do |req|
@@ -143,7 +143,7 @@ module CandidApiClient
143
143
  # @param request_options [CandidApiClient::RequestOptions]
144
144
  # @return [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2]
145
145
  # @example
146
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
146
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
147
147
  # api.organization_providers.v_3.update(organization_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", is_rendering: true, is_billing: true, first_name: "string", last_name: "string", organization_name: "string", provider_type: INDIVIDUAL, tax_id: "string", taxonomy_code: "string", license_type: MD, addresses: [{ address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, address_type: DEFAULT }], employment_start_date: "string", employment_termination_date: "string", qualifications: })
148
148
  def update(organization_provider_id:, request:, request_options: nil)
149
149
  response = @request_client.conn.patch do |req|
@@ -176,7 +176,7 @@ module CandidApiClient
176
176
  # @param request_options [CandidApiClient::RequestOptions]
177
177
  # @return [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2]
178
178
  # @example
179
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
179
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
180
180
  # api.organization_providers.v_3.get(organization_provider_id: "965A563A-0285-4910-9569-E3739C0F6EAB")
181
181
  def get(organization_provider_id:, request_options: nil)
182
182
  Async do
@@ -205,7 +205,7 @@ module CandidApiClient
205
205
  # @param request_options [CandidApiClient::RequestOptions]
206
206
  # @return [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderPageV2]
207
207
  # @example
208
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
208
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
209
209
  # api.organization_providers.v_3.get_multi(
210
210
  # limit: 100,
211
211
  # search_term: "john",
@@ -261,7 +261,7 @@ module CandidApiClient
261
261
  # @param request_options [CandidApiClient::RequestOptions]
262
262
  # @return [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2]
263
263
  # @example
264
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
264
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
265
265
  # api.organization_providers.v_3.create(request: { npi: "string", is_rendering: true, is_billing: true, first_name: "string", last_name: "string", organization_name: "string", provider_type: INDIVIDUAL, tax_id: "string", taxonomy_code: "string", license_type: MD, addresses: [{ address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, address_type: DEFAULT }], employment_start_date: DateTime.parse(2023-01-15), employment_termination_date: DateTime.parse(2023-01-15), qualifications: [{ }] })
266
266
  def create(request:, request_options: nil)
267
267
  Async do
@@ -300,7 +300,7 @@ module CandidApiClient
300
300
  # @param request_options [CandidApiClient::RequestOptions]
301
301
  # @return [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2]
302
302
  # @example
303
- # api = CandidApiClient::Client.new(base_url: "https://api.example.com")
303
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
304
304
  # api.organization_providers.v_3.update(organization_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", is_rendering: true, is_billing: true, first_name: "string", last_name: "string", organization_name: "string", provider_type: INDIVIDUAL, tax_id: "string", taxonomy_code: "string", license_type: MD, addresses: [{ address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, address_type: DEFAULT }], employment_start_date: "string", employment_termination_date: "string", qualifications: })
305
305
  def update(organization_provider_id:, request:, request_options: nil)
306
306
  Async do