pub struct PaidSubscription {Show 15 fields
pub id: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub archived_at: Option<DateTime<Utc>>,
pub type: Option<String>,
pub seats: Option<f64>,
pub seats_minimum: Option<f64>,
pub seats_maximum: Option<f64>,
pub creator: Option<Box<User>>,
pub organization: Option<Box<Organization>>,
pub collection_method: Option<String>,
pub canceled_at: Option<DateTime<Utc>>,
pub cancel_at: Option<DateTime<Utc>>,
pub pending_change_type: Option<String>,
pub next_billing_at: Option<DateTime<Utc>>,
}Expand description
The billing subscription of a workspace. Represents an active paid plan (e.g., Basic, Business, Enterprise) backed by a Stripe subscription. If a workspace has no Subscription record, it is on the free plan. Only one active subscription per workspace is expected.
Fields§
§id: Option<String>The unique identifier of the entity.
created_at: Option<DateTime<Utc>>The time at which the entity was created.
updated_at: Option<DateTime<Utc>>The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn’t been updated after creation.
archived_at: Option<DateTime<Utc>>The time at which the entity was archived. Null if the entity has not been archived.
type: Option<String>The subscription plan type (e.g., basic, business, enterprise). Determines the feature set and pricing tier for the workspace.
seats: Option<f64>The number of seats (active members) in the subscription. This is the raw count before applying minimum and maximum seat limits.
seats_minimum: Option<f64>The minimum number of seats that will be billed in the subscription. The billed seat count will never go below this value even if actual member count is lower. Null if no minimum is enforced.
seats_maximum: Option<f64>The maximum number of seats that will be billed in the subscription. The billed seat count will never exceed this value even if actual member count is higher. Null if no maximum is enforced.
creator: Option<Box<User>>The user who initially created (purchased) the subscription. Null if the creator has been removed from the workspace.
organization: Option<Box<Organization>>The workspace that the subscription is associated with.
collection_method: Option<String>The billing collection method for this subscription. ‘automatic’ means the payment method on file is charged automatically. ‘send_invoice’ means invoices are sent to the billing email for manual payment.
canceled_at: Option<DateTime<Utc>>The date the subscription was canceled. Null if the subscription has not been canceled.
cancel_at: Option<DateTime<Utc>>The date the subscription is scheduled to be canceled in the future. Null if no cancellation is scheduled. The subscription remains active until this date.
pending_change_type: Option<String>The subscription plan type that the workspace is scheduled to change to at the next billing cycle. Null if no plan change is pending.
next_billing_at: Option<DateTime<Utc>>The date the subscription will be billed next. Null if the subscription is canceled or has no upcoming billing date.
Trait Implementations§
Source§impl Clone for PaidSubscription
impl Clone for PaidSubscription
Source§fn clone(&self) -> PaidSubscription
fn clone(&self) -> PaidSubscription
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more