bitwarden_api_api/models/
upgrade_premium_to_organization_request.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpgradePremiumToOrganizationRequest {
17 #[serde(rename = "organizationName", alias = "OrganizationName")]
18 pub organization_name: String,
19 #[serde(rename = "key", alias = "Key")]
20 pub key: String,
21 #[serde(rename = "targetProductTierType", alias = "TargetProductTierType")]
22 pub target_product_tier_type: models::ProductTierType,
23 #[serde(rename = "billingAddress", alias = "BillingAddress")]
24 pub billing_address: Box<models::MinimalBillingAddressRequest>,
25}
26
27impl UpgradePremiumToOrganizationRequest {
28 pub fn new(
29 organization_name: String,
30 key: String,
31 target_product_tier_type: models::ProductTierType,
32 billing_address: models::MinimalBillingAddressRequest,
33 ) -> UpgradePremiumToOrganizationRequest {
34 UpgradePremiumToOrganizationRequest {
35 organization_name,
36 key,
37 target_product_tier_type,
38 billing_address: Box::new(billing_address),
39 }
40 }
41}