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

/// CobProvider : Information about the entity requesting the coverage.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CobProvider {
    /// The provider's first name. This property is required if the provider is an individual.
    #[serde(rename = "firstName", skip_serializing_if = "Option::is_none")]
    pub first_name: Option<String>,
    /// The provider's last name. This property is required if the provider is an individual.
    #[serde(rename = "lastName", skip_serializing_if = "Option::is_none")]
    pub last_name: Option<String>,
    /// The provider's [National Provider Identifier (NPI)](https://www.stedi.com/docs/healthcare/national-provider-identifier).
    #[serde(rename = "npi")]
    pub npi: String,
    /// The provider's business name.
    #[serde(rename = "organizationName", skip_serializing_if = "Option::is_none")]
    pub organization_name: Option<String>,
}

impl CobProvider {
    /// Information about the entity requesting the coverage.
    pub fn new(npi: String) -> CobProvider {
        CobProvider {
            first_name: None,
            last_name: None,
            npi,
            organization_name: None,
        }
    }
}