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

/// CobResponseDependent : Information about the dependent listed in the original COB request.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CobResponseDependent {
    /// 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 dependent's address.
    #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
    pub address: Option<Box<models::Address>>,
    /// The number assigned to each family member born with the same birth date, such as twins or triplets. Indicates the birth order when there are multiple births associated with the provided birth date.
    #[serde(rename = "birthSequenceNumber", skip_serializing_if = "Option::is_none")]
    pub birth_sequence_number: Option<String>,
    /// The dependent's date of birth.
    #[serde(rename = "dateOfBirth", skip_serializing_if = "Option::is_none")]
    pub date_of_birth: Option<String>,
    /// The dependent's first name.
    #[serde(rename = "firstName", skip_serializing_if = "Option::is_none")]
    pub first_name: Option<String>,
    /// Code indicating the dependent's gender. Can be `F` - Female, `M` - Male, or `U` - Unknown.
    #[serde(rename = "gender", skip_serializing_if = "Option::is_none")]
    pub gender: Option<models::GenderWithUnknown>,
    /// The group number associated with the subscriber's insurance policy.
    #[serde(rename = "groupNumber", skip_serializing_if = "Option::is_none")]
    pub group_number: Option<String>,
    /// The dependent's last name.
    #[serde(rename = "lastName", skip_serializing_if = "Option::is_none")]
    pub last_name: Option<String>,
    /// The member ID for the subscriber's insurance policy.
    #[serde(rename = "memberId", skip_serializing_if = "Option::is_none")]
    pub member_id: Option<String>,
    /// The dependent's middle name or initial.
    #[serde(rename = "middleName", skip_serializing_if = "Option::is_none")]
    pub middle_name: Option<String>,
    /// The name of the `relationToSubscriberCode`. For example, `Child` when the code is `19`.
    #[serde(rename = "relationToSubscriber", skip_serializing_if = "Option::is_none")]
    pub relation_to_subscriber: Option<models::RelationToSubscriberCodeName>,
    /// For the dependent, this can be `01` - Spouse, `19` - Child, `20` Employee, `21` - Unknown, `39` - Organ Donor, `40` - Cadaver Donor, `53` - Life Partner, or `G8` - Other Relationship.
    #[serde(rename = "relationToSubscriberCode", skip_serializing_if = "Option::is_none")]
    pub relation_to_subscriber_code: Option<models::RelationToSubscriberCode>,
    /// The dependent's Social Security Number (SSN).
    #[serde(rename = "ssn", skip_serializing_if = "Option::is_none")]
    pub ssn: Option<String>,
}

impl CobResponseDependent {
    /// Information about the dependent listed in the original COB request.
    pub fn new() -> CobResponseDependent {
        CobResponseDependent {
            aaa_errors: None,
            address: None,
            birth_sequence_number: None,
            date_of_birth: None,
            first_name: None,
            gender: None,
            group_number: None,
            last_name: None,
            member_id: None,
            middle_name: None,
            relation_to_subscriber: None,
            relation_to_subscriber_code: None,
            ssn: None,
        }
    }
}