autogen-stedi 0.3.2

Auto-generated, strongly-typed Rust client for the Stedi APIs
Documentation
/*
 * Stedi Healthcare
 *
 * 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::healthcare::models;
use serde::{Deserialize, Serialize};

/// CobResponseProvider : Information about the entity that submitted the original eligibility check request. This may be an individual practitioner, a medical group, a hospital, or another type of healthcare provider.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CobResponseProvider {
    /// When a COB request fails, the response contains one or more `AAA` errors that specify the reasons for the rejection and any recommended follow-up actions.
    #[serde(rename = "aaaErrors", skip_serializing_if = "Option::is_none")]
    pub aaa_errors: Option<Vec<models::EligibilityCheckError>>,
    /// The provider's [National Provider Identifier (NPI)](https://www.stedi.com/docs/healthcare/national-provider-identifier).
    #[serde(rename = "npi", skip_serializing_if = "Option::is_none")]
    pub npi: Option<String>,
    /// The provider's first name. This applies to providers that are an individual.
    #[serde(rename = "providerFirstName", skip_serializing_if = "Option::is_none")]
    pub provider_first_name: Option<String>,
    /// The provider's last name. This applies to providers that are an individual.
    #[serde(rename = "providerName", skip_serializing_if = "Option::is_none")]
    pub provider_name: Option<String>,
    /// The provider's organization name.
    #[serde(rename = "providerOrgName", skip_serializing_if = "Option::is_none")]
    pub provider_org_name: Option<String>,
}

impl CobResponseProvider {
    /// Information about the entity that submitted the original eligibility check request. This may be an individual practitioner, a medical group, a hospital, or another type of healthcare provider.
    pub fn new() -> CobResponseProvider {
        CobResponseProvider {
            aaa_errors: None,
            npi: None,
            provider_first_name: None,
            provider_name: None,
            provider_org_name: None,
        }
    }
}