bitwarden_api_api/models/
tax_info_response_model.rs

1/*
2 * Bitwarden Internal API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: latest
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TaxInfoResponseModel {
17    #[serde(rename = "taxIdNumber", skip_serializing_if = "Option::is_none")]
18    pub tax_id_number: Option<String>,
19    #[serde(rename = "taxIdType", skip_serializing_if = "Option::is_none")]
20    pub tax_id_type: Option<String>,
21    #[serde(rename = "line1", skip_serializing_if = "Option::is_none")]
22    pub line1: Option<String>,
23    #[serde(rename = "line2", skip_serializing_if = "Option::is_none")]
24    pub line2: Option<String>,
25    #[serde(rename = "city", skip_serializing_if = "Option::is_none")]
26    pub city: Option<String>,
27    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
28    pub state: Option<String>,
29    #[serde(rename = "postalCode", skip_serializing_if = "Option::is_none")]
30    pub postal_code: Option<String>,
31    #[serde(rename = "country", skip_serializing_if = "Option::is_none")]
32    pub country: Option<String>,
33}
34
35impl TaxInfoResponseModel {
36    pub fn new() -> TaxInfoResponseModel {
37        TaxInfoResponseModel {
38            tax_id_number: None,
39            tax_id_type: None,
40            line1: None,
41            line2: None,
42            city: None,
43            state: None,
44            postal_code: None,
45            country: None,
46        }
47    }
48}