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(rename = "organizationId", skip_serializing_if = "Option::is_none")]
18    pub organization_id: Option<uuid::Uuid>,
19    #[serde(rename = "passwordManager")]
20    pub password_manager: Box<models::OrganizationPasswordManagerRequestModel>,
21    #[serde(rename = "secretsManager", skip_serializing_if = "Option::is_none")]
22    pub secrets_manager: Option<Box<models::SecretsManagerRequestModel>>,
23    #[serde(rename = "taxInformation")]
24    pub tax_information: Box<models::TaxInformationRequestModel>,
25}
26
27impl PreviewOrganizationInvoiceRequestBody {
28    pub fn new(
29        password_manager: models::OrganizationPasswordManagerRequestModel,
30        tax_information: models::TaxInformationRequestModel,
31    ) -> PreviewOrganizationInvoiceRequestBody {
32        PreviewOrganizationInvoiceRequestBody {
33            organization_id: None,
34            password_manager: Box::new(password_manager),
35            secrets_manager: None,
36            tax_information: Box::new(tax_information),
37        }
38    }
39}