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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct StatusResponseProvider {
    /// The Electronic Transmitter Identification Number (ETIN).
    #[serde(rename = "etin", skip_serializing_if = "Option::is_none")]
    pub etin: Option<String>,
    /// The provider's first name.
    #[serde(rename = "firstName", skip_serializing_if = "Option::is_none")]
    pub first_name: Option<String>,
    /// The provider's last name.
    #[serde(rename = "lastName", skip_serializing_if = "Option::is_none")]
    pub last_name: Option<String>,
    /// The [National Provider Identification (NPI)](https://www.stedi.com/docs/healthcare/national-provider-identifier) number.
    #[serde(rename = "npi", skip_serializing_if = "Option::is_none")]
    pub npi: Option<String>,
    /// The provider's organization name.
    #[serde(rename = "organizationName", skip_serializing_if = "Option::is_none")]
    pub organization_name: Option<String>,
    /// Identifies the type of provider related to the referenced healthcare claim.
    #[serde(rename = "providerType")]
    pub provider_type: models::ClaimStatusProviderType,
    /// The service provider number.
    #[serde(rename = "spn", skip_serializing_if = "Option::is_none")]
    pub spn: Option<String>,
    /// The Taxpayer Identification Number (TIN).
    #[serde(rename = "taxId", skip_serializing_if = "Option::is_none")]
    pub tax_id: Option<String>,
    #[serde(rename = "tin", skip_serializing_if = "Option::is_none")]
    pub tin: Option<String>,
}

impl StatusResponseProvider {
    pub fn new(provider_type: models::ClaimStatusProviderType) -> StatusResponseProvider {
        StatusResponseProvider {
            etin: None,
            first_name: None,
            last_name: None,
            npi: None,
            organization_name: None,
            provider_type,
            spn: None,
            tax_id: None,
            tin: None,
        }
    }
}