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

/// Payee : Information about the provider receiving the payment.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Payee {
    /// The payee's address information.
    #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
    pub address: Option<Box<models::PayeeAddress>>,
    /// Formerly used to report the payee's Centers for Medicare and Medicaid Services (CMS) Plan ID. This used to report the Health Plan ID (HPID) or Other Entity Identifier (OEID). The Centers for Medicare and Medicaid Services (CMS) no longer uses HPID, so this property will not be populated.
    #[serde(rename = "centersForMedicareAndMedicaidServicesPlanId", skip_serializing_if = "Option::is_none")]
    pub centers_for_medicare_and_medicaid_services_plan_id: Option<String>,
    /// The payee's Federal Taxpayer's Identification Number (when the payee is a business) or the payee's social security number (when the payee is an individual provider).
    #[serde(rename = "federalTaxPayersIdentificationNumber", skip_serializing_if = "Option::is_none")]
    pub federal_tax_payers_identification_number: Option<String>,
    /// The payee's name. This can be the name of an individual or an organization.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The payee's National Council for Prescription Drugs Pharmacy Number.
    #[serde(rename = "nationalCouncilForPrescriptionDrugProgramsPharmacyNumber", skip_serializing_if = "Option::is_none")]
    pub national_council_for_prescription_drug_programs_pharmacy_number: Option<String>,
    /// The payee's National Provider Identifier (NPI).
    #[serde(rename = "npi", skip_serializing_if = "Option::is_none")]
    pub npi: Option<String>,
    /// Other information necessary to identify the payee.
    #[serde(rename = "payeeIdentification", skip_serializing_if = "Option::is_none")]
    pub payee_identification: Option<String>,
    /// Method for delivering remittance advice to the payee.
    #[serde(rename = "remittanceDeliveryMethod", skip_serializing_if = "Option::is_none")]
    pub remittance_delivery_method: Option<Box<models::PayeeRemittanceDeliveryMethod>>,
    /// The payee's State License Number.
    #[serde(rename = "stateLicenseNumber", skip_serializing_if = "Option::is_none")]
    pub state_license_number: Option<String>,
    /// The payee's Federal Tax Identification Number (TIN).
    #[serde(rename = "taxId", skip_serializing_if = "Option::is_none")]
    pub tax_id: Option<String>,
}

impl Payee {
    /// Information about the provider receiving the payment.
    pub fn new() -> Payee {
        Payee {
            address: None,
            centers_for_medicare_and_medicaid_services_plan_id: None,
            federal_tax_payers_identification_number: None,
            name: None,
            national_council_for_prescription_drug_programs_pharmacy_number: None,
            npi: None,
            payee_identification: None,
            remittance_delivery_method: None,
            state_license_number: None,
            tax_id: None,
        }
    }
}