pub struct BillingPlan {Show 16 fields
pub base_amount_cents: i64,
pub category_display_name: Option<Option<String>>,
pub currency: String,
pub description: Option<String>,
pub entitlements: Vec<BillingPlanEntitlement>,
pub fixed_charges: Vec<FixedCharge>,
pub interval: BillingPlanInterval,
pub is_default: bool,
pub minimum_commitment: Option<BillingPlanMinimumCommitment>,
pub name: String,
pub pay_in_advance: bool,
pub plan_code: String,
pub tier: Option<i64>,
pub tier_display_name: Option<String>,
pub usage_charges: Vec<UsageCharge>,
pub usage_thresholds: Vec<BillingPlanUsageThreshold>,
}Fields§
§base_amount_cents: i64Recurring base price in whole cents.
category_display_name: Option<Option<String>>Display name for the subscription category; absent or null when unconfigured.
currency: StringISO currency code.
description: Option<String>§entitlements: Vec<BillingPlanEntitlement>§fixed_charges: Vec<FixedCharge>§interval: BillingPlanInterval§is_default: boolThe category’s default plan: the one a project holds when it pays for none, and moves to at the period end when it leaves a paid plan. At most one per category.
minimum_commitment: Option<BillingPlanMinimumCommitment>§name: String§pay_in_advance: bool§plan_code: String§tier: Option<i64>Rank within the category: moving to a higher tier is an upgrade and applies now, to a lower one a downgrade scheduled for the period end. Null when the plan has none.
tier_display_name: Option<String>The plan’s tier as customers see it, e.g. Pro for Messaging Pro, where the category is already clear. Null when unconfigured.
usage_charges: Vec<UsageCharge>§usage_thresholds: Vec<BillingPlanUsageThreshold>Progressive-billing thresholds, ordered by amount.
Implementations§
Source§impl BillingPlan
impl BillingPlan
pub fn serialize<__S>(
__self: &BillingPlan,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> BillingPlan
impl<'de> BillingPlan
pub fn deserialize<__D>(__deserializer: __D) -> Result<BillingPlan, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for BillingPlan
impl Clone for BillingPlan
Source§impl Debug for BillingPlan
impl Debug for BillingPlan
Source§impl<'de> Deserialize<'de> for BillingPlan
impl<'de> Deserialize<'de> for BillingPlan
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BillingPlan
impl RefUnwindSafe for BillingPlan
impl Send for BillingPlan
impl Sync for BillingPlan
impl Unpin for BillingPlan
impl UnsafeUnpin for BillingPlan
impl UnwindSafe for BillingPlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more