bitwarden_api_api/models/
preview_organization_invoice_request_body.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 PreviewOrganizationInvoiceRequestBody {
17    #[serde(
18        rename = "organizationId",
19        alias = "OrganizationId",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub organization_id: Option<uuid::Uuid>,
23    #[serde(rename = "passwordManager", alias = "PasswordManager")]
24    pub password_manager: Box<models::OrganizationPasswordManagerRequestModel>,
25    #[serde(
26        rename = "secretsManager",
27        alias = "SecretsManager",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub secrets_manager: Option<Box<models::SecretsManagerRequestModel>>,
31    #[serde(rename = "taxInformation", alias = "TaxInformation")]
32    pub tax_information: Box<models::TaxInformationRequestModel>,
33}
34
35impl PreviewOrganizationInvoiceRequestBody {
36    pub fn new(
37        password_manager: models::OrganizationPasswordManagerRequestModel,
38        tax_information: models::TaxInformationRequestModel,
39    ) -> PreviewOrganizationInvoiceRequestBody {
40        PreviewOrganizationInvoiceRequestBody {
41            organization_id: None,
42            password_manager: Box::new(password_manager),
43            secrets_manager: None,
44            tax_information: Box::new(tax_information),
45        }
46    }
47}