pub struct SubscriptionItem {
pub billing_thresholds: Option<SubscriptionItemBillingThresholds>,
pub created: i64,
pub current_period_end: Timestamp,
pub current_period_start: Timestamp,
pub discounts: Vec<Expandable<Discount>>,
pub id: SubscriptionItemId,
pub metadata: HashMap<String, String>,
pub plan: Plan,
pub price: Price,
pub quantity: Option<u64>,
pub subscription: String,
pub tax_rates: Option<Vec<TaxRate>>,
}Expand description
Subscription items allow you to create customer subscriptions with more than one plan, making it easy to represent complex billing relationships.
For more details see <https://stripe.com/docs/api/subscription_items/object>.
Fields§
§billing_thresholds: Option<SubscriptionItemBillingThresholds>Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period.
created: i64Time at which the object was created. Measured in seconds since the Unix epoch.
current_period_end: TimestampThe end time of this subscription item’s current billing period.
current_period_start: TimestampThe start time of this subscription item’s current billing period.
discounts: Vec<Expandable<Discount>>The discounts applied to the subscription item.
Subscription item discounts are applied before subscription discounts.
Use expand[]=discounts to expand each discount.
id: SubscriptionItemIdUnique identifier for the object.
metadata: HashMap<String, String>Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
plan: Plan§price: Price§quantity: Option<u64>The quantity of the plan to which the customer should be subscribed.
subscription: StringThe subscription this subscription_item belongs to.
tax_rates: Option<Vec<TaxRate>>The tax rates which apply to this subscription_item.
When set, the default_tax_rates on the subscription do not apply to this subscription_item.
Trait Implementations§
Source§impl Clone for SubscriptionItem
impl Clone for SubscriptionItem
Source§fn clone(&self) -> SubscriptionItem
fn clone(&self) -> SubscriptionItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more