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};

/// Payer : Information about the payer providing the benefits information. The response will always include the payer's business name and an identifier, such as the payer's tax ID. Most payers also include contact information.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Payer {
    #[serde(rename = "aaaErrors", skip_serializing_if = "Option::is_none")]
    pub aaa_errors: Option<Vec<models::EligibilityCheckPayerError>>,
    /// The payer's Centers for Medicare and Medicaid Services PlanID.
    #[serde(rename = "centersForMedicareAndMedicaidPlanId", skip_serializing_if = "Option::is_none")]
    pub centers_for_medicare_and_medicaid_plan_id: Option<String>,
    /// The payer's contact information.  Note that when `contacts[].communicationMode` is set to `UR`, the `communicationNumber` property may not contain a valid URL. Most payers provide a partial web address for their provider portal, or something similar, such as `www.example.com/portal`. You must add the appropriate scheme and separators, such as `https://` or `http://`, to make it a valid URL.
    #[serde(rename = "contactInformation", skip_serializing_if = "Option::is_none")]
    pub contact_information: Option<Box<models::ContactInformation>>,
    /// Deprecated; The payer's identification number for the entity receiving the benefits information. This shape is deprecated: This property is no longer used.
    #[serde(rename = "employersId", skip_serializing_if = "Option::is_none")]
    pub employers_id: Option<String>,
    #[serde(rename = "entityIdentifier", skip_serializing_if = "Option::is_none")]
    pub entity_identifier: Option<models::PayerEntityIdentifier>,
    /// The entity type qualifier for the payer. Can be set to `Person` (not commonly used) or `Non-Person Entity` (most common).  Payers may sometimes return other non-compliant values.
    #[serde(rename = "entityType", skip_serializing_if = "Option::is_none")]
    pub entity_type: Option<models::EntityTypeQualifier>,
    /// The payer's Electronic Transmitter Identification Number (ETIN).
    #[serde(rename = "etin", skip_serializing_if = "Option::is_none")]
    pub etin: Option<String>,
    /// The payer's federal taxpayer's identification number.
    #[serde(rename = "federalTaxpayersIdNumber", skip_serializing_if = "Option::is_none")]
    pub federal_taxpayers_id_number: Option<String>,
    /// The payer's first name, when the payer is an individual (not commonly used).
    #[serde(rename = "firstName", skip_serializing_if = "Option::is_none")]
    pub first_name: Option<String>,
    /// The payer's last name. Used when the payer is an individual (not commonly used).
    #[serde(rename = "lastName", skip_serializing_if = "Option::is_none")]
    pub last_name: Option<String>,
    /// The payer's middle name or initial, when the payer is an individual (not commonly used).
    #[serde(rename = "middleName", skip_serializing_if = "Option::is_none")]
    pub middle_name: Option<String>,
    /// The payer's National Association of Insurance Commissioners (NAIC) identification number.
    #[serde(rename = "naic", skip_serializing_if = "Option::is_none")]
    pub naic: Option<String>,
    /// The payer's business name, when the payer is not a person.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The payer'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 payer identification.
    #[serde(rename = "payorIdentification", skip_serializing_if = "Option::is_none")]
    pub payor_identification: Option<String>,
    /// The payer's name suffix, such as Jr. or III. Used when the payer is an individual (not commonly used).
    #[serde(rename = "suffix", skip_serializing_if = "Option::is_none")]
    pub suffix: Option<String>,
}

impl Payer {
    /// Information about the payer providing the benefits information. The response will always include the payer's business name and an identifier, such as the payer's tax ID. Most payers also include contact information.
    pub fn new() -> Payer {
        Payer {
            aaa_errors: None,
            centers_for_medicare_and_medicaid_plan_id: None,
            contact_information: None,
            employers_id: None,
            entity_identifier: None,
            entity_type: None,
            etin: None,
            federal_taxpayers_id_number: None,
            first_name: None,
            last_name: None,
            middle_name: None,
            naic: None,
            name: None,
            npi: None,
            payor_identification: None,
            suffix: None,
        }
    }
}