bitwarden_api_api/models/
expanded_tax_info_update_request_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 ExpandedTaxInfoUpdateRequestModel {
17    #[serde(rename = "country")]
18    pub country: String,
19    #[serde(rename = "postalCode", skip_serializing_if = "Option::is_none")]
20    pub postal_code: Option<String>,
21    #[serde(rename = "taxId", skip_serializing_if = "Option::is_none")]
22    pub tax_id: Option<String>,
23    #[serde(rename = "line1", skip_serializing_if = "Option::is_none")]
24    pub line1: Option<String>,
25    #[serde(rename = "line2", skip_serializing_if = "Option::is_none")]
26    pub line2: Option<String>,
27    #[serde(rename = "city", skip_serializing_if = "Option::is_none")]
28    pub city: Option<String>,
29    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
30    pub state: Option<String>,
31}
32
33impl ExpandedTaxInfoUpdateRequestModel {
34    pub fn new(country: String) -> ExpandedTaxInfoUpdateRequestModel {
35        ExpandedTaxInfoUpdateRequestModel {
36            country,
37            postal_code: None,
38            tax_id: None,
39            line1: None,
40            line2: None,
41            city: None,
42            state: None,
43        }
44    }
45}