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
53
54
/*
* 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};
/// RequestProviderAddress : Address information for the provider. - Only include when specifically instructed by a payer, such as when the provider has multiple locations and you need to identify the specific location making the request. - You must include at least the `address1` and `city` properties.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RequestProviderAddress {
/// The first line of the address.
#[serde(rename = "address1")]
pub address1: String,
/// The second line of the address.
#[serde(rename = "address2", skip_serializing_if = "Option::is_none")]
pub address2: Option<String>,
/// The city.
#[serde(rename = "city")]
pub city: 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.
#[serde(rename = "state", skip_serializing_if = "Option::is_none")]
pub state: Option<models::RequestStateOrProvinceCode>,
}
impl RequestProviderAddress {
/// Address information for the provider. - Only include when specifically instructed by a payer, such as when the provider has multiple locations and you need to identify the specific location making the request. - You must include at least the `address1` and `city` properties.
pub fn new(address1: String, city: String) -> RequestProviderAddress {
RequestProviderAddress {
address1,
address2: None,
city,
country_code: None,
country_sub_division_code: None,
postal_code: None,
state: None,
}
}
}