candidhealth 0.24.4 → 0.24.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/candidhealth/auth/v_2/client.rb +2 -2
- data/lib/candidhealth/billing_notes/v_2/client.rb +2 -2
- data/lib/candidhealth/commons/types/procedure_modifier.rb +1 -0
- data/lib/candidhealth/contracts/v_2/client.rb +10 -10
- data/lib/candidhealth/custom_schemas/v_1/client.rb +28 -28
- data/lib/candidhealth/eligibility/v_2/client.rb +6 -6
- data/lib/candidhealth/encounters/v_4/client.rb +8 -8
- data/lib/candidhealth/expected_network_status/v_1/client.rb +2 -2
- data/lib/candidhealth/expected_network_status/v_2/client.rb +4 -4
- data/lib/candidhealth/exports/v_3/client.rb +2 -2
- data/lib/candidhealth/external_payment_account_config/v_1/client.rb +2 -2
- data/lib/candidhealth/fee_schedules/v_3/client.rb +20 -20
- data/lib/candidhealth/financials/types/account_type.rb +1 -0
- data/lib/candidhealth/guarantor/v_1/client.rb +6 -6
- data/lib/candidhealth/import_invoice/v_1/client.rb +8 -8
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +6 -6
- data/lib/candidhealth/insurance_payments/v_1/client.rb +10 -10
- data/lib/candidhealth/insurance_refunds/v_1/client.rb +10 -10
- data/lib/candidhealth/organization_providers/v_3/client.rb +8 -8
- data/lib/candidhealth/organization_service_facilities/v_2/client.rb +10 -10
- data/lib/candidhealth/patient_payments/v_4/client.rb +10 -10
- data/lib/candidhealth/patient_refunds/v_1/client.rb +10 -10
- data/lib/candidhealth/payers/v_3/client.rb +4 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +12 -12
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +14 -14
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +3 -3
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +3 -3
- data/lib/candidhealth/service_facility/client.rb +2 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +25 -1
- data/lib/candidhealth/tasks/v_3/client.rb +10 -10
- data/lib/candidhealth/write_offs/v_1/client.rb +8 -8
- data/lib/candidhealth.rb +2 -2
- data/lib/environment.rb +0 -8
- data/lib/requests.rb +4 -6
- metadata +2 -2
@@ -32,6 +32,12 @@ module CandidApiClient
|
|
32
32
|
# @return [Integer]
|
33
33
|
attr_reader :paid_amount_cents
|
34
34
|
# @return [Integer]
|
35
|
+
attr_reader :primary_paid_amount_cents
|
36
|
+
# @return [Integer]
|
37
|
+
attr_reader :secondary_paid_amount_cents
|
38
|
+
# @return [Integer]
|
39
|
+
attr_reader :tertiary_paid_amount_cents
|
40
|
+
# @return [Integer]
|
35
41
|
attr_reader :patient_responsibility_cents
|
36
42
|
# @return [String]
|
37
43
|
attr_reader :diagnosis_id_zero
|
@@ -100,6 +106,9 @@ module CandidApiClient
|
|
100
106
|
# @param insurance_balance_cents [Integer]
|
101
107
|
# @param patient_balance_cents [Integer]
|
102
108
|
# @param paid_amount_cents [Integer]
|
109
|
+
# @param primary_paid_amount_cents [Integer]
|
110
|
+
# @param secondary_paid_amount_cents [Integer]
|
111
|
+
# @param tertiary_paid_amount_cents [Integer]
|
103
112
|
# @param patient_responsibility_cents [Integer]
|
104
113
|
# @param diagnosis_id_zero [String]
|
105
114
|
# @param diagnosis_id_one [String]
|
@@ -133,13 +142,16 @@ module CandidApiClient
|
|
133
142
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
134
143
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
135
144
|
def initialize(service_line_id:, procedure_code:, quantity:, units:, claim_id:, date_of_service_range:, date_of_service:, modifiers: OMIT, charge_amount_cents: OMIT, allowed_amount_cents: OMIT,
|
136
|
-
insurance_balance_cents: OMIT, patient_balance_cents: OMIT, paid_amount_cents: OMIT, patient_responsibility_cents: OMIT, diagnosis_id_zero: OMIT, diagnosis_id_one: OMIT, diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, service_line_era_data: OMIT, service_line_manual_adjustments: OMIT, related_invoices: OMIT, related_invoice_info: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, supervising_provider: OMIT, ordering_provider: OMIT, description: OMIT, end_date_of_service: OMIT, additional_properties: nil)
|
145
|
+
insurance_balance_cents: OMIT, patient_balance_cents: OMIT, paid_amount_cents: OMIT, primary_paid_amount_cents: OMIT, secondary_paid_amount_cents: OMIT, tertiary_paid_amount_cents: OMIT, patient_responsibility_cents: OMIT, diagnosis_id_zero: OMIT, diagnosis_id_one: OMIT, diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, service_line_era_data: OMIT, service_line_manual_adjustments: OMIT, related_invoices: OMIT, related_invoice_info: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, supervising_provider: OMIT, ordering_provider: OMIT, description: OMIT, end_date_of_service: OMIT, additional_properties: nil)
|
137
146
|
@modifiers = modifiers if modifiers != OMIT
|
138
147
|
@charge_amount_cents = charge_amount_cents if charge_amount_cents != OMIT
|
139
148
|
@allowed_amount_cents = allowed_amount_cents if allowed_amount_cents != OMIT
|
140
149
|
@insurance_balance_cents = insurance_balance_cents if insurance_balance_cents != OMIT
|
141
150
|
@patient_balance_cents = patient_balance_cents if patient_balance_cents != OMIT
|
142
151
|
@paid_amount_cents = paid_amount_cents if paid_amount_cents != OMIT
|
152
|
+
@primary_paid_amount_cents = primary_paid_amount_cents if primary_paid_amount_cents != OMIT
|
153
|
+
@secondary_paid_amount_cents = secondary_paid_amount_cents if secondary_paid_amount_cents != OMIT
|
154
|
+
@tertiary_paid_amount_cents = tertiary_paid_amount_cents if tertiary_paid_amount_cents != OMIT
|
143
155
|
@patient_responsibility_cents = patient_responsibility_cents if patient_responsibility_cents != OMIT
|
144
156
|
@diagnosis_id_zero = diagnosis_id_zero if diagnosis_id_zero != OMIT
|
145
157
|
@diagnosis_id_one = diagnosis_id_one if diagnosis_id_one != OMIT
|
@@ -177,6 +189,9 @@ module CandidApiClient
|
|
177
189
|
"insurance_balance_cents": insurance_balance_cents,
|
178
190
|
"patient_balance_cents": patient_balance_cents,
|
179
191
|
"paid_amount_cents": paid_amount_cents,
|
192
|
+
"primary_paid_amount_cents": primary_paid_amount_cents,
|
193
|
+
"secondary_paid_amount_cents": secondary_paid_amount_cents,
|
194
|
+
"tertiary_paid_amount_cents": tertiary_paid_amount_cents,
|
180
195
|
"patient_responsibility_cents": patient_responsibility_cents,
|
181
196
|
"diagnosis_id_zero": diagnosis_id_zero,
|
182
197
|
"diagnosis_id_one": diagnosis_id_one,
|
@@ -220,6 +235,9 @@ module CandidApiClient
|
|
220
235
|
insurance_balance_cents = struct["insurance_balance_cents"]
|
221
236
|
patient_balance_cents = struct["patient_balance_cents"]
|
222
237
|
paid_amount_cents = struct["paid_amount_cents"]
|
238
|
+
primary_paid_amount_cents = struct["primary_paid_amount_cents"]
|
239
|
+
secondary_paid_amount_cents = struct["secondary_paid_amount_cents"]
|
240
|
+
tertiary_paid_amount_cents = struct["tertiary_paid_amount_cents"]
|
223
241
|
patient_responsibility_cents = struct["patient_responsibility_cents"]
|
224
242
|
diagnosis_id_zero = struct["diagnosis_id_zero"]
|
225
243
|
diagnosis_id_one = struct["diagnosis_id_one"]
|
@@ -298,6 +316,9 @@ module CandidApiClient
|
|
298
316
|
insurance_balance_cents: insurance_balance_cents,
|
299
317
|
patient_balance_cents: patient_balance_cents,
|
300
318
|
paid_amount_cents: paid_amount_cents,
|
319
|
+
primary_paid_amount_cents: primary_paid_amount_cents,
|
320
|
+
secondary_paid_amount_cents: secondary_paid_amount_cents,
|
321
|
+
tertiary_paid_amount_cents: tertiary_paid_amount_cents,
|
301
322
|
patient_responsibility_cents: patient_responsibility_cents,
|
302
323
|
diagnosis_id_zero: diagnosis_id_zero,
|
303
324
|
diagnosis_id_one: diagnosis_id_one,
|
@@ -347,6 +368,9 @@ module CandidApiClient
|
|
347
368
|
obj.insurance_balance_cents&.is_a?(Integer) != false || raise("Passed value for field obj.insurance_balance_cents is not the expected type, validation failed.")
|
348
369
|
obj.patient_balance_cents&.is_a?(Integer) != false || raise("Passed value for field obj.patient_balance_cents is not the expected type, validation failed.")
|
349
370
|
obj.paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.paid_amount_cents is not the expected type, validation failed.")
|
371
|
+
obj.primary_paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.primary_paid_amount_cents is not the expected type, validation failed.")
|
372
|
+
obj.secondary_paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.secondary_paid_amount_cents is not the expected type, validation failed.")
|
373
|
+
obj.tertiary_paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.tertiary_paid_amount_cents is not the expected type, validation failed.")
|
350
374
|
obj.patient_responsibility_cents&.is_a?(Integer) != false || raise("Passed value for field obj.patient_responsibility_cents is not the expected type, validation failed.")
|
351
375
|
obj.diagnosis_id_zero&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_zero is not the expected type, validation failed.")
|
352
376
|
obj.diagnosis_id_one&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_one is not the expected type, validation failed.")
|
@@ -29,7 +29,7 @@ module CandidApiClient
|
|
29
29
|
# @param request_options [CandidApiClient::RequestOptions]
|
30
30
|
# @return [CandidApiClient::Tasks::V3::Types::TaskActions]
|
31
31
|
# @example
|
32
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
32
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
33
33
|
# api.tasks.v_3.get_actions(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
34
34
|
def get_actions(task_id:, request_options: nil)
|
35
35
|
response = @request_client.conn.get do |req|
|
@@ -62,7 +62,7 @@ module CandidApiClient
|
|
62
62
|
# @param request_options [CandidApiClient::RequestOptions]
|
63
63
|
# @return [CandidApiClient::Tasks::V3::Types::TaskPage]
|
64
64
|
# @example
|
65
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
65
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
66
66
|
# api.tasks.v_3.get_multi(
|
67
67
|
# limit: 1,
|
68
68
|
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
@@ -113,7 +113,7 @@ module CandidApiClient
|
|
113
113
|
# @param request_options [CandidApiClient::RequestOptions]
|
114
114
|
# @return [CandidApiClient::Tasks::V3::Types::Task]
|
115
115
|
# @example
|
116
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
116
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
117
117
|
# api.tasks.v_3.get(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
118
118
|
def get(task_id:, request_options: nil)
|
119
119
|
response = @request_client.conn.get do |req|
|
@@ -141,7 +141,7 @@ module CandidApiClient
|
|
141
141
|
# @param request_options [CandidApiClient::RequestOptions]
|
142
142
|
# @return [CandidApiClient::Tasks::V3::Types::Task]
|
143
143
|
# @example
|
144
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
144
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
145
145
|
# api.tasks.v_3.create(request: { encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", task_type: CUSTOMER_DATA_REQUEST, description: "string", blocks_claim_submission: true, assignee_user_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", category: OTHER, work_queue_id: "string" })
|
146
146
|
def create(request:, request_options: nil)
|
147
147
|
response = @request_client.conn.post do |req|
|
@@ -166,7 +166,7 @@ module CandidApiClient
|
|
166
166
|
# @param request_options [CandidApiClient::RequestOptions]
|
167
167
|
# @return [CandidApiClient::Tasks::V3::Types::Task]
|
168
168
|
# @example
|
169
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
169
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
170
170
|
# api.tasks.v_3.update(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { status: FINISHED, assignee_user_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", blocks_claim_submission: true })
|
171
171
|
def update(task_id:, request:, request_options: nil)
|
172
172
|
response = @request_client.conn.patch do |req|
|
@@ -199,7 +199,7 @@ module CandidApiClient
|
|
199
199
|
# @param request_options [CandidApiClient::RequestOptions]
|
200
200
|
# @return [CandidApiClient::Tasks::V3::Types::TaskActions]
|
201
201
|
# @example
|
202
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
202
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
203
203
|
# api.tasks.v_3.get_actions(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
204
204
|
def get_actions(task_id:, request_options: nil)
|
205
205
|
Async do
|
@@ -234,7 +234,7 @@ module CandidApiClient
|
|
234
234
|
# @param request_options [CandidApiClient::RequestOptions]
|
235
235
|
# @return [CandidApiClient::Tasks::V3::Types::TaskPage]
|
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")
|
238
238
|
# api.tasks.v_3.get_multi(
|
239
239
|
# limit: 1,
|
240
240
|
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
@@ -288,7 +288,7 @@ module CandidApiClient
|
|
288
288
|
# @param request_options [CandidApiClient::RequestOptions]
|
289
289
|
# @return [CandidApiClient::Tasks::V3::Types::Task]
|
290
290
|
# @example
|
291
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
291
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
292
292
|
# api.tasks.v_3.get(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
293
293
|
def get(task_id:, request_options: nil)
|
294
294
|
Async do
|
@@ -318,7 +318,7 @@ module CandidApiClient
|
|
318
318
|
# @param request_options [CandidApiClient::RequestOptions]
|
319
319
|
# @return [CandidApiClient::Tasks::V3::Types::Task]
|
320
320
|
# @example
|
321
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
321
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
322
322
|
# api.tasks.v_3.create(request: { encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", task_type: CUSTOMER_DATA_REQUEST, description: "string", blocks_claim_submission: true, assignee_user_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", category: OTHER, work_queue_id: "string" })
|
323
323
|
def create(request:, request_options: nil)
|
324
324
|
Async do
|
@@ -346,7 +346,7 @@ module CandidApiClient
|
|
346
346
|
# @param request_options [CandidApiClient::RequestOptions]
|
347
347
|
# @return [CandidApiClient::Tasks::V3::Types::Task]
|
348
348
|
# @example
|
349
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
349
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
350
350
|
# api.tasks.v_3.update(task_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { status: FINISHED, assignee_user_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", blocks_claim_submission: true })
|
351
351
|
def update(task_id:, request:, request_options: nil)
|
352
352
|
Async do
|
@@ -38,7 +38,7 @@ module CandidApiClient
|
|
38
38
|
# @param request_options [CandidApiClient::RequestOptions]
|
39
39
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOffsPage]
|
40
40
|
# @example
|
41
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
41
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
42
42
|
# api.write_offs.v_1.get_multi(
|
43
43
|
# limit: 1,
|
44
44
|
# patient_external_id: "string",
|
@@ -86,7 +86,7 @@ module CandidApiClient
|
|
86
86
|
# @param request_options [CandidApiClient::RequestOptions]
|
87
87
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOff]
|
88
88
|
# @example
|
89
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
89
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
90
90
|
# api.write_offs.v_1.get(write_off_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
91
91
|
def get(write_off_id:, request_options: nil)
|
92
92
|
response = @request_client.conn.get do |req|
|
@@ -110,7 +110,7 @@ module CandidApiClient
|
|
110
110
|
# @param request_options [CandidApiClient::RequestOptions]
|
111
111
|
# @return [CandidApiClient::WriteOffs::V1::Types::CreateWriteOffsResponse]
|
112
112
|
# @example
|
113
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
113
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
114
114
|
# api.write_offs.v_1.create(write_offs: )
|
115
115
|
def create(write_offs:, request_options: nil)
|
116
116
|
response = @request_client.conn.post do |req|
|
@@ -134,7 +134,7 @@ module CandidApiClient
|
|
134
134
|
# @param request_options [CandidApiClient::RequestOptions]
|
135
135
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOff]
|
136
136
|
# @example
|
137
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
137
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
138
138
|
# api.write_offs.v_1.revert(write_off_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
139
139
|
def revert(write_off_id:, request_options: nil)
|
140
140
|
response = @request_client.conn.post do |req|
|
@@ -177,7 +177,7 @@ module CandidApiClient
|
|
177
177
|
# @param request_options [CandidApiClient::RequestOptions]
|
178
178
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOffsPage]
|
179
179
|
# @example
|
180
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
180
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
181
181
|
# api.write_offs.v_1.get_multi(
|
182
182
|
# limit: 1,
|
183
183
|
# patient_external_id: "string",
|
@@ -227,7 +227,7 @@ module CandidApiClient
|
|
227
227
|
# @param request_options [CandidApiClient::RequestOptions]
|
228
228
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOff]
|
229
229
|
# @example
|
230
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
230
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
231
231
|
# api.write_offs.v_1.get(write_off_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
232
232
|
def get(write_off_id:, request_options: nil)
|
233
233
|
Async do
|
@@ -253,7 +253,7 @@ module CandidApiClient
|
|
253
253
|
# @param request_options [CandidApiClient::RequestOptions]
|
254
254
|
# @return [CandidApiClient::WriteOffs::V1::Types::CreateWriteOffsResponse]
|
255
255
|
# @example
|
256
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
256
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
257
257
|
# api.write_offs.v_1.create(write_offs: )
|
258
258
|
def create(write_offs:, request_options: nil)
|
259
259
|
Async do
|
@@ -279,7 +279,7 @@ module CandidApiClient
|
|
279
279
|
# @param request_options [CandidApiClient::RequestOptions]
|
280
280
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOff]
|
281
281
|
# @example
|
282
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com"
|
282
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
283
283
|
# api.write_offs.v_1.revert(write_off_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
284
284
|
def revert(write_off_id:, request_options: nil)
|
285
285
|
Async do
|
data/lib/candidhealth.rb
CHANGED
@@ -87,7 +87,7 @@ module CandidApiClient
|
|
87
87
|
# @param client_id [String]
|
88
88
|
# @param client_secret [String]
|
89
89
|
# @return [CandidApiClient::Client]
|
90
|
-
def initialize(client_id:, client_secret:, base_url: nil, environment:
|
90
|
+
def initialize(client_id:, client_secret:, base_url: nil, environment: nil, max_retries: nil,
|
91
91
|
timeout_in_seconds: nil)
|
92
92
|
@oauth_provider = CandidApiClient::OauthTokenProvider.new(
|
93
93
|
client_id: client_id,
|
@@ -190,7 +190,7 @@ module CandidApiClient
|
|
190
190
|
# @param client_id [String]
|
191
191
|
# @param client_secret [String]
|
192
192
|
# @return [CandidApiClient::AsyncClient]
|
193
|
-
def initialize(client_id:, client_secret:, base_url: nil, environment:
|
193
|
+
def initialize(client_id:, client_secret:, base_url: nil, environment: nil, max_retries: nil,
|
194
194
|
timeout_in_seconds: nil)
|
195
195
|
@oauth_provider = CandidApiClient::OauthTokenProvider.new(
|
196
196
|
client_id: client_id,
|
data/lib/environment.rb
CHANGED
@@ -2,13 +2,5 @@
|
|
2
2
|
|
3
3
|
module CandidApiClient
|
4
4
|
class Environment
|
5
|
-
PRODUCTION = {
|
6
|
-
CandidApi: "https://api.joincandidhealth.com",
|
7
|
-
PreEncounter: "https://pre-api.joincandidhealth.com"
|
8
|
-
}.freeze
|
9
|
-
STAGING = {
|
10
|
-
CandidApi: "https://api-staging.joincandidhealth.com",
|
11
|
-
PreEncounter: "https://pre-api-staging.joincandidhealth.com"
|
12
|
-
}.freeze
|
13
5
|
end
|
14
6
|
end
|
data/lib/requests.rb
CHANGED
@@ -22,8 +22,7 @@ module CandidApiClient
|
|
22
22
|
# @param timeout_in_seconds [Long]
|
23
23
|
# @param token [String, Method]
|
24
24
|
# @return [CandidApiClient::RequestClient]
|
25
|
-
def initialize(base_url: nil, environment:
|
26
|
-
timeout_in_seconds: nil, token: nil)
|
25
|
+
def initialize(base_url: nil, environment: nil, max_retries: nil, timeout_in_seconds: nil, token: nil)
|
27
26
|
@default_environment = environment
|
28
27
|
@token = token
|
29
28
|
@conn = Faraday.new do |faraday|
|
@@ -43,7 +42,7 @@ module CandidApiClient
|
|
43
42
|
|
44
43
|
# @return [Hash{String => String}]
|
45
44
|
def get_headers
|
46
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.24.
|
45
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.24.6" }
|
47
46
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
48
47
|
headers
|
49
48
|
end
|
@@ -65,8 +64,7 @@ module CandidApiClient
|
|
65
64
|
# @param timeout_in_seconds [Long]
|
66
65
|
# @param token [String, Method]
|
67
66
|
# @return [CandidApiClient::AsyncRequestClient]
|
68
|
-
def initialize(base_url: nil, environment:
|
69
|
-
timeout_in_seconds: nil, token: nil)
|
67
|
+
def initialize(base_url: nil, environment: nil, max_retries: nil, timeout_in_seconds: nil, token: nil)
|
70
68
|
@default_environment = environment
|
71
69
|
@token = token
|
72
70
|
@conn = Faraday.new do |faraday|
|
@@ -87,7 +85,7 @@ module CandidApiClient
|
|
87
85
|
|
88
86
|
# @return [Hash{String => String}]
|
89
87
|
def get_headers
|
90
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.24.
|
88
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.24.6" }
|
91
89
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
92
90
|
headers
|
93
91
|
end
|
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.24.
|
4
|
+
version: 0.24.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|