enbbox 1.0.1

Notification infrastructure API — open-source alternative to Novu/Courier
Documentation
/*
 * enbbox API
 *
 * Notification infrastructure API — open-source alternative to Novu/Courier
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// CheckoutSession : Stripe Checkout session created for an upgrade.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CheckoutSession {
    /// The plan being subscribed to.
    #[serde(rename = "plan")]
    pub plan: models::Plan,
    /// URL to redirect the user to for Stripe Checkout.
    #[serde(rename = "stripe_checkout_url")]
    pub stripe_checkout_url: String,
}

impl CheckoutSession {
    /// Stripe Checkout session created for an upgrade.
    pub fn new(plan: models::Plan, stripe_checkout_url: String) -> CheckoutSession {
        CheckoutSession {
            plan,
            stripe_checkout_url,
        }
    }
}