bitwarden_api_api/models/
preview_organization_subscription_plan_change_tax_request.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 PreviewOrganizationSubscriptionPlanChangeTaxRequest {
17    #[serde(rename = "plan")]
18    pub plan: Box<models::OrganizationSubscriptionPlanChangeRequest>,
19    #[serde(rename = "billingAddress")]
20    pub billing_address: Box<models::CheckoutBillingAddressRequest>,
21}
22
23impl PreviewOrganizationSubscriptionPlanChangeTaxRequest {
24    pub fn new(
25        plan: models::OrganizationSubscriptionPlanChangeRequest,
26        billing_address: models::CheckoutBillingAddressRequest,
27    ) -> PreviewOrganizationSubscriptionPlanChangeTaxRequest {
28        PreviewOrganizationSubscriptionPlanChangeTaxRequest {
29            plan: Box::new(plan),
30            billing_address: Box::new(billing_address),
31        }
32    }
33}