bitwarden_api_api/models/
preview_organization_subscription_plan_change_tax_request.rs1use 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}