bitwarden_api_api/models/
tax_information_request_model.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TaxInformationRequestModel {
17 #[serde(rename = "country", alias = "Country")]
18 pub country: String,
19 #[serde(rename = "postalCode", alias = "PostalCode")]
20 pub postal_code: String,
21 #[serde(
22 rename = "taxId",
23 alias = "TaxId",
24 skip_serializing_if = "Option::is_none"
25 )]
26 pub tax_id: Option<String>,
27}
28
29impl TaxInformationRequestModel {
30 pub fn new(country: String, postal_code: String) -> TaxInformationRequestModel {
31 TaxInformationRequestModel {
32 country,
33 postal_code,
34 tax_id: None,
35 }
36 }
37}