Class: CandidApiClient::Credentialing::V2::AsyncV2Client
- Inherits:
-
Object
- Object
- CandidApiClient::Credentialing::V2::AsyncV2Client
- Defined in:
- lib/candidhealth/credentialing/v_2/client.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
- #create(rendering_provider_id:, contracting_provider_id:, payer_uuid:, regions:, start_date: nil, end_date: nil, submitted_date: nil, payer_loaded_date: nil, request_options: nil) ⇒ CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan
-
#delete(provider_credentialing_id:, request_options: nil) ⇒ Void
Soft deletes a credentialing span rate from the system.
- #get(provider_credentialing_id:, request_options: nil) ⇒ CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan
- #get_all(limit: nil, page_token: nil, payer_uuid: nil, as_rendering_provider: nil, as_contracting_provider: nil, request_options: nil) ⇒ CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpanPage
- #initialize(request_client:) ⇒ CandidApiClient::Credentialing::V2::AsyncV2Client constructor
- #update(provider_credentialing_id:, contracting_provider_id: nil, payer_uuid: nil, start_date: nil, end_date: nil, regions: nil, submitted_date: nil, payer_loaded_date: nil, request_options: nil) ⇒ CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan
Constructor Details
#initialize(request_client:) ⇒ CandidApiClient::Credentialing::V2::AsyncV2Client
212 213 214 |
# File 'lib/candidhealth/credentialing/v_2/client.rb', line 212 def initialize(request_client:) @request_client = request_client end |
Instance Attribute Details
#request_client ⇒ CandidApiClient::AsyncRequestClient (readonly)
208 209 210 |
# File 'lib/candidhealth/credentialing/v_2/client.rb', line 208 def request_client @request_client end |
Instance Method Details
#create(rendering_provider_id:, contracting_provider_id:, payer_uuid:, regions:, start_date: nil, end_date: nil, submitted_date: nil, payer_loaded_date: nil, request_options: nil) ⇒ CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 |
# File 'lib/candidhealth/credentialing/v_2/client.rb', line 239 def create(rendering_provider_id:, contracting_provider_id:, payer_uuid:, regions:, start_date: nil, end_date: nil, submitted_date: nil, payer_loaded_date: nil, request_options: nil) Async do response = @request_client.conn.post do |req| req..timeout = .timeout_in_seconds unless &.timeout_in_seconds.nil? req.headers["Authorization"] = .token unless &.token.nil? req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact req.body = { **(&.additional_body_parameters || {}), rendering_provider_id: rendering_provider_id, contracting_provider_id: contracting_provider_id, payer_uuid: payer_uuid, start_date: start_date, end_date: end_date, regions: regions, submitted_date: submitted_date, payer_loaded_date: payer_loaded_date }.compact req.url "#{@request_client.get_url(environment: CandidApi, request_options: )}/api/provider-credentialing-span/v2" end CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan.from_json(json_object: response.body) end end |
#delete(provider_credentialing_id:, request_options: nil) ⇒ Void
Soft deletes a credentialing span rate from the system.
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 |
# File 'lib/candidhealth/credentialing/v_2/client.rb', line 341 def delete(provider_credentialing_id:, request_options: nil) Async do @request_client.conn.delete do |req| req..timeout = .timeout_in_seconds unless &.timeout_in_seconds.nil? req.headers["Authorization"] = .token unless &.token.nil? req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact req.url "#{@request_client.get_url(environment: CandidApi, request_options: )}/api/provider-credentialing-span/v2/#{provider_credentialing_id}" end end end |
#get(provider_credentialing_id:, request_options: nil) ⇒ CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 |
# File 'lib/candidhealth/credentialing/v_2/client.rb', line 274 def get(provider_credentialing_id:, request_options: nil) Async do response = @request_client.conn.get do |req| req..timeout = .timeout_in_seconds unless &.timeout_in_seconds.nil? req.headers["Authorization"] = .token unless &.token.nil? req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact req.url "#{@request_client.get_url(environment: CandidApi, request_options: )}/api/provider-credentialing-span/v2/#{provider_credentialing_id}" end CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan.from_json(json_object: response.body) end end |
#get_all(limit: nil, page_token: nil, payer_uuid: nil, as_rendering_provider: nil, as_contracting_provider: nil, request_options: nil) ⇒ CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpanPage
307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 |
# File 'lib/candidhealth/credentialing/v_2/client.rb', line 307 def get_all(limit: nil, page_token: nil, payer_uuid: nil, as_rendering_provider: nil, as_contracting_provider: nil, request_options: nil) Async do response = @request_client.conn.get do |req| req..timeout = .timeout_in_seconds unless &.timeout_in_seconds.nil? req.headers["Authorization"] = .token unless &.token.nil? req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact req.params = { **(&.additional_query_parameters || {}), "limit": limit, "page_token": page_token, "payer_uuid": payer_uuid, "as_rendering_provider": as_rendering_provider, "as_contracting_provider": as_contracting_provider }.compact req.url "#{@request_client.get_url(environment: CandidApi, request_options: )}/api/provider-credentialing-span/v2" end CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpanPage.from_json(json_object: response.body) end end |
#update(provider_credentialing_id:, contracting_provider_id: nil, payer_uuid: nil, start_date: nil, end_date: nil, regions: nil, submitted_date: nil, payer_loaded_date: nil, request_options: nil) ⇒ CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan
380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 |
# File 'lib/candidhealth/credentialing/v_2/client.rb', line 380 def update(provider_credentialing_id:, contracting_provider_id: nil, payer_uuid: nil, start_date: nil, end_date: nil, regions: nil, submitted_date: nil, payer_loaded_date: nil, request_options: nil) Async do response = @request_client.conn.patch do |req| req..timeout = .timeout_in_seconds unless &.timeout_in_seconds.nil? req.headers["Authorization"] = .token unless &.token.nil? req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact req.body = { **(&.additional_body_parameters || {}), contracting_provider_id: contracting_provider_id, payer_uuid: payer_uuid, start_date: start_date, end_date: end_date, regions: regions, submitted_date: submitted_date, payer_loaded_date: payer_loaded_date }.compact req.url "#{@request_client.get_url(environment: CandidApi, request_options: )}/api/provider-credentialing-span/v2/#{provider_credentialing_id}" end CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan.from_json(json_object: response.body) end end |