pub struct SubscriptionPhase {
pub uid: Option<String>,
pub cadence: SubscriptionCadence,
pub periods: Option<i32>,
pub recurring_price_money: Money,
pub ordinal: Option<i64>,
pub pricing: Option<SubscriptionPricing>,
}Expand description
Describes a phase in a subscription plan.
For more information, see Set Up and Manage a Subscription Plan.
Fields§
§uid: Option<String>The Square-assigned ID of the subscription phase. This field cannot be changed after a
SubscriptionPhase is created.
cadence: SubscriptionCadenceThe billing cadence of the phase. For example, weekly or monthly. This field cannot be
changed after a SubscriptionPhase is created.
periods: Option<i32>The number of cadences the phase lasts. If not set, the phase never ends. Only the last
phase can be indefinite. This field cannot be changed after a SubscriptionPhase is
created.
recurring_price_money: MoneyThe amount to bill for each cadence.
ordinal: Option<i64>The position this phase appears in the sequence of phases defined for the plan, indexed from
0. This field cannot be changed after a SubscriptionPhase is created.
pricing: Option<SubscriptionPricing>The subscription pricing.
Trait Implementations§
Source§impl Clone for SubscriptionPhase
impl Clone for SubscriptionPhase
Source§fn clone(&self) -> SubscriptionPhase
fn clone(&self) -> SubscriptionPhase
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more