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(
18        rename = "taxIdNumber",
19        alias = "TaxIdNumber",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub tax_id_number: Option<String>,
23    #[serde(
24        rename = "taxIdType",
25        alias = "TaxIdType",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub tax_id_type: Option<String>,
29    #[serde(
30        rename = "line1",
31        alias = "Line1",
32        skip_serializing_if = "Option::is_none"
33    )]
34    pub line1: Option<String>,
35    #[serde(
36        rename = "line2",
37        alias = "Line2",
38        skip_serializing_if = "Option::is_none"
39    )]
40    pub line2: Option<String>,
41    #[serde(
42        rename = "city",
43        alias = "City",
44        skip_serializing_if = "Option::is_none"
45    )]
46    pub city: Option<String>,
47    #[serde(
48        rename = "state",
49        alias = "State",
50        skip_serializing_if = "Option::is_none"
51    )]
52    pub state: Option<String>,
53    #[serde(
54        rename = "postalCode",
55        alias = "PostalCode",
56        skip_serializing_if = "Option::is_none"
57    )]
58    pub postal_code: Option<String>,
59    #[serde(
60        rename = "country",
61        alias = "Country",
62        skip_serializing_if = "Option::is_none"
63    )]
64    pub country: Option<String>,
65}
66
67impl TaxInfoResponseModel {
68    pub fn new() -> TaxInfoResponseModel {
69        TaxInfoResponseModel {
70            tax_id_number: None,
71            tax_id_type: None,
72            line1: None,
73            line2: None,
74            city: None,
75            state: None,
76            postal_code: None,
77            country: None,
78        }
79    }
80}