1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* 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 InstitutionalAddress {
/// The first line of the street address. This typically contains the building number and street name.
#[serde(rename = "address1")]
pub address1: String,
/// The second line of the street address. This typically contains the apartment or suite number.
#[serde(rename = "address2", skip_serializing_if = "Option::is_none")]
pub address2: Option<String>,
/// The city name.
#[serde(rename = "city")]
pub city: String,
/// Use the alpha-2 country codes from Part 1 of ISO 3166.
#[serde(rename = "countryCode", skip_serializing_if = "Option::is_none")]
pub country_code: Option<String>,
/// Use the country subdivision codes from Part 2 of ISO 3166.
#[serde(rename = "countrySubDivisionCode", skip_serializing_if = "Option::is_none")]
pub country_sub_division_code: Option<String>,
/// The postal zone or zip code. For United States addresses, you must include the full nine-digit zip code with no separators, such as `100031502`. If you don't know the full zip code, you can find it using the [USPS ZIP Code Lookup](https://tools.usps.com/zip-code-lookup.htm) tool. Exclude punctuation and spaces.
#[serde(rename = "postalCode", skip_serializing_if = "Option::is_none")]
pub postal_code: Option<String>,
/// The state or province code. Only required when the city is in the United States and Canada.
#[serde(rename = "state", skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
}
impl InstitutionalAddress {
pub fn new(address1: String, city: String) -> InstitutionalAddress {
InstitutionalAddress {
address1,
address2: None,
city,
country_code: None,
country_sub_division_code: None,
postal_code: None,
state: None,
}
}
}