bitwarden_api_api/models/pending_annual_upgrade_response_model.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/// PendingAnnualUpgradeResponseModel : The scheduled annual-upgrade target for an organization that
16/// redeemed the annual-upgrade offer but whose monthly-to-annual Stripe schedule has not yet
17/// activated.
18#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
19pub struct PendingAnnualUpgradeResponseModel {
20 #[serde(
21 rename = "plan",
22 alias = "Plan",
23 skip_serializing_if = "Option::is_none"
24 )]
25 pub plan: Option<Box<models::PlanResponseModel>>,
26 /// Null when the caller may not see sensitive billing data. See
27 /// `OrganizationSubscriptionResponseModel`'s hideSensitiveData branch.
28 #[serde(
29 rename = "lineItems",
30 alias = "LineItems",
31 skip_serializing_if = "Option::is_none"
32 )]
33 pub line_items: Option<Vec<models::BillingSubscriptionItem>>,
34 #[serde(
35 rename = "effectiveDate",
36 alias = "EffectiveDate",
37 skip_serializing_if = "Option::is_none"
38 )]
39 pub effective_date: Option<String>,
40}
41
42impl PendingAnnualUpgradeResponseModel {
43 /// The scheduled annual-upgrade target for an organization that redeemed the annual-upgrade
44 /// offer but whose monthly-to-annual Stripe schedule has not yet activated.
45 pub fn new() -> PendingAnnualUpgradeResponseModel {
46 PendingAnnualUpgradeResponseModel {
47 plan: None,
48 line_items: None,
49 effective_date: None,
50 }
51 }
52}