square_api_client/models/catalog_subscription_plan.rs
1//! Model struct for CatalogSubscriptionPlan type.
2
3use serde::{Deserialize, Serialize};
4
5use super::SubscriptionPhase;
6
7/// Describes a subscription plan.
8///
9/// For more information, see [Set Up and Manage a Subscription
10/// Plan](https://developer.squareup.com/docs/subscriptions-api/setup-plan).
11#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
12pub struct CatalogSubscriptionPlan {
13 /// The name of the plan.
14 pub name: String,
15 /// A list of SubscriptionPhase containing the [SubscriptionPhase] for this plan.
16 pub phases: Vec<SubscriptionPhase>,
17}