Struct stripe::generated::billing::subscription::UpdateSubscriptionItems
source · pub struct UpdateSubscriptionItems {
pub billing_thresholds: Option<SubscriptionItemBillingThresholds>,
pub clear_usage: Option<bool>,
pub deleted: Option<bool>,
pub id: Option<String>,
pub metadata: Option<Metadata>,
pub plan: Option<String>,
pub price: Option<String>,
pub price_data: Option<SubscriptionItemPriceData>,
pub quantity: Option<u64>,
pub tax_rates: Option<Vec<String>>,
}Fields§
§billing_thresholds: Option<SubscriptionItemBillingThresholds>Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.
When updating, pass an empty string to remove previously-defined thresholds.
clear_usage: Option<bool>Delete all usage for a given subscription item.
Allowed only when deleted is set to true and the current plan’s usage_type is metered.
deleted: Option<bool>A flag that, if set to true, will delete the specified item.
id: Option<String>Subscription item to update.
metadata: Option<Metadata>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.
Individual keys can be unset by posting an empty value to them.
All keys can be unset by posting an empty value to metadata.
plan: Option<String>Plan ID for this item, as a string.
price: Option<String>The ID of the price object.
When changing a subscription item’s price, quantity is set to 1 unless a quantity parameter is provided.
price_data: Option<SubscriptionItemPriceData>Data used to generate a new Price object inline.
quantity: Option<u64>Quantity for this item.
tax_rates: Option<Vec<String>>A list of Tax Rate ids.
These Tax Rates will override the default_tax_rates on the Subscription.
When updating, pass an empty string to remove previously-defined tax rates.
Trait Implementations§
source§impl Clone for UpdateSubscriptionItems
impl Clone for UpdateSubscriptionItems
source§fn clone(&self) -> UpdateSubscriptionItems
fn clone(&self) -> UpdateSubscriptionItems
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateSubscriptionItems
impl Debug for UpdateSubscriptionItems
source§impl Default for UpdateSubscriptionItems
impl Default for UpdateSubscriptionItems
source§fn default() -> UpdateSubscriptionItems
fn default() -> UpdateSubscriptionItems
source§impl<'de> Deserialize<'de> for UpdateSubscriptionItems
impl<'de> Deserialize<'de> for UpdateSubscriptionItems
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>,
Auto Trait Implementations§
impl Freeze for UpdateSubscriptionItems
impl RefUnwindSafe for UpdateSubscriptionItems
impl Send for UpdateSubscriptionItems
impl Sync for UpdateSubscriptionItems
impl Unpin for UpdateSubscriptionItems
impl UnwindSafe for UpdateSubscriptionItems
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)