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

/// RequestSubscriberAddress : Address information for the subscriber. When providing address information:   - The `address1` and `city` properties are **required** for standard eligibility checks and MBI lookups with SSN. We also recommend including `state` for member identification.   - When performing an [MBI lookup without SSN](https://www.stedi.com/docs/healthcare/mbi-lookup) (Payer ID: `MBILUNOSSN`), only `state` is required. You can omit `address1` and `city`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RequestSubscriberAddress {
    /// The first line of the address. Required for all payers except payer ID `MBILUNOSSN`.
    #[serde(rename = "address1", skip_serializing_if = "Option::is_none")]
    pub address1: Option<String>,
    /// The second line of the address.
    #[serde(rename = "address2", skip_serializing_if = "Option::is_none")]
    pub address2: Option<String>,
    /// The city. Required for all payers except payer ID `MBILUNOSSN`.
    #[serde(rename = "city", skip_serializing_if = "Option::is_none")]
    pub city: Option<String>,
    /// The two-letter country code from [Part 1 of ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
    #[serde(rename = "countryCode", skip_serializing_if = "Option::is_none")]
    pub country_code: Option<String>,
    /// The country subdivision code from [Part 2 of ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-2).
    #[serde(rename = "countrySubDivisionCode", skip_serializing_if = "Option::is_none")]
    pub country_sub_division_code: Option<String>,
    /// The United States or Canadian postal code, excluding punctuation and blanks.
    #[serde(rename = "postalCode", skip_serializing_if = "Option::is_none")]
    pub postal_code: Option<String>,
    /// The state or province code. Required for payer ID `MBILUNOSSN`.
    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
    pub state: Option<models::RequestStateOrProvinceCode>,
}

impl RequestSubscriberAddress {
    /// Address information for the subscriber. When providing address information:   - The `address1` and `city` properties are **required** for standard eligibility checks and MBI lookups with SSN. We also recommend including `state` for member identification.   - When performing an [MBI lookup without SSN](https://www.stedi.com/docs/healthcare/mbi-lookup) (Payer ID: `MBILUNOSSN`), only `state` is required. You can omit `address1` and `city`.
    pub fn new() -> RequestSubscriberAddress {
        RequestSubscriberAddress {
            address1: None,
            address2: None,
            city: None,
            country_code: None,
            country_sub_division_code: None,
            postal_code: None,
            state: None,
        }
    }
}