Class: CandidApiClient::ExpectedNetworkStatus::V2::AsyncV2Client
- Inherits:
-
Object
- Object
- CandidApiClient::ExpectedNetworkStatus::V2::AsyncV2Client
- 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::AsyncV2Client constructor
Constructor Details
#initialize(request_client:) ⇒ CandidApiClient::ExpectedNetworkStatus::V2::AsyncV2Client
121 122 123 |
# File 'lib/candidhealth/expected_network_status/v_2/client.rb', line 121 def initialize(request_client:) @request_client = request_client end |
Instance Attribute Details
#request_client ⇒ CandidApiClient::AsyncRequestClient (readonly)
117 118 119 |
# File 'lib/candidhealth/expected_network_status/v_2/client.rb', line 117 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.
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
# File 'lib/candidhealth/expected_network_status/v_2/client.rb', line 202 def compute_all_in_network_providers(request:, 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 = { **(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 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.
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
# File 'lib/candidhealth/expected_network_status/v_2/client.rb', line 155 def compute_for_rendering_provider(rendering_provider_id:, request:, 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 = { **(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 end |