Class: CandidApiClient::ExpectedNetworkStatus::V2::V2Client
- Inherits:
-
Object
- Object
- CandidApiClient::ExpectedNetworkStatus::V2::V2Client
- Defined in:
- lib/candidhealth/expected_network_status/v_2/client.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#compute_all_in_network_providers(request:, request_options: nil) ⇒ CandidApiClient::ExpectedNetworkStatus::V2::Types::ComputeAllInNetworkProvidersResponse
Computes all the in network providers for a given set of inputs.
-
#compute_for_rendering_provider(rendering_provider_id:, request:, request_options: nil) ⇒ CandidApiClient::ExpectedNetworkStatus::V2::Types::ExpectedNetworkStatusResponseV2
Computes the expected network status for a given rendering provider.
- #initialize(request_client:) ⇒ CandidApiClient::ExpectedNetworkStatus::V2::V2Client constructor
Constructor Details
#initialize(request_client:) ⇒ CandidApiClient::ExpectedNetworkStatus::V2::V2Client
19 20 21 |
# File 'lib/candidhealth/expected_network_status/v_2/client.rb', line 19 def initialize(request_client:) @request_client = request_client end |
Instance Attribute Details
#request_client ⇒ CandidApiClient::RequestClient (readonly)
15 16 17 |
# File 'lib/candidhealth/expected_network_status/v_2/client.rb', line 15 def request_client @request_client end |
Instance Method Details
#compute_all_in_network_providers(request:, request_options: nil) ⇒ CandidApiClient::ExpectedNetworkStatus::V2::Types::ComputeAllInNetworkProvidersResponse
Computes all the in network providers for a given set of inputs.
This endpoint is not available to all customers. Reach out to the Candid sales
team
to discuss enabling this endpoint if it is not available for your organization.
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/candidhealth/expected_network_status/v_2/client.rb', line 98 def compute_all_in_network_providers(request:, request_options: nil) 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 = { **(request || {}), **(&.additional_body_parameters || {}) }.compact req.url "#{@request_client.get_url(environment: CandidApi, request_options: )}/api/expected-network-status/v2/compute" end CandidApiClient::ExpectedNetworkStatus::V2::Types::ComputeAllInNetworkProvidersResponse.from_json(json_object: response.body) end |
#compute_for_rendering_provider(rendering_provider_id:, request:, request_options: nil) ⇒ CandidApiClient::ExpectedNetworkStatus::V2::Types::ExpectedNetworkStatusResponseV2
Computes the expected network status for a given rendering provider.
This endpoint is not available to all customers. Reach out to the Candid sales
team
to discuss enabling this endpoint if it is not available for your organization.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/candidhealth/expected_network_status/v_2/client.rb', line 53 def compute_for_rendering_provider(rendering_provider_id:, request:, request_options: nil) 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 = { **(request || {}), **(&.additional_body_parameters || {}) }.compact req.url "#{@request_client.get_url(environment: CandidApi, request_options: )}/api/expected-network-status/v2/compute/#{rendering_provider_id}" end CandidApiClient::ExpectedNetworkStatus::V2::Types::ExpectedNetworkStatusResponseV2.from_json(json_object: response.body) end |