/*
* Stedi Payers
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2024-04-01
* Contact: healthcare@stedi.com
* Generated by: https://openapi-generator.tech
*/
use crate::payers::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SearchResultsStats {
/// Total number of payers matching the search query.
#[serde(rename = "total")]
pub total: i32,
/// Number of matching payers supported per transaction type. The categories for each transaction type are mutually exclusive. For example, to calculate the total number of payers that support eligibility checks, regardless of whether enrollment is required, you must add the `supported` and `enrollmentRequired` counts together. **DEPRECATED** This shape is deprecated since 2025-06-24: Use the `transactionSupportCounts` property instead.
#[serde(rename = "transactionSupport")]
pub transaction_support: Box<models::TransactionSupportStats>,
/// Number of matching payers for each supported transaction type. To get the total number of payers that support each transaction type, with additional detail on whether enrollment is required, use `supported.total` instead.
#[serde(rename = "transactionSupportCounts")]
pub transaction_support_counts: Box<models::TransactionSupportCounts>,
}
impl SearchResultsStats {
pub fn new(total: i32, transaction_support: models::TransactionSupportStats, transaction_support_counts: models::TransactionSupportCounts) -> SearchResultsStats {
SearchResultsStats {
total,
transaction_support: Box::new(transaction_support),
transaction_support_counts: Box::new(transaction_support_counts),
}
}
}