[−][src]Struct stripe::UpdateSubscriptionItem
The parameters for SubscriptionItem::update
.
Fields
billing_thresholds: Option<SubscriptionItemBillingThresholds>
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.
expand: &'a [&'a str]
Specifies which fields in the response should be expanded.
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.
plan: Option<PlanId>
The identifier of the new plan for this subscription item.
prorate: Option<bool>
Flag indicating whether to prorate switching plans during a billing cycle.
proration_date: Option<Timestamp>
If set, the proration will be calculated as though the subscription was updated at the given time.
This can be used to apply the same proration that was previewed with the upcoming invoice endpoint.
quantity: Option<u64>
The quantity you'd like to apply to the subscription item you're creating.
tax_rates: Option<Vec<String>>
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
.
Methods
impl<'a> UpdateSubscriptionItem<'a>
[src]
Trait Implementations
impl<'a> Clone for UpdateSubscriptionItem<'a>
[src]
fn clone(&self) -> UpdateSubscriptionItem<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Default for UpdateSubscriptionItem<'a>
[src]
fn default() -> UpdateSubscriptionItem<'a>
[src]
impl<'a> Debug for UpdateSubscriptionItem<'a>
[src]
impl<'a> Serialize for UpdateSubscriptionItem<'a>
[src]
Auto Trait Implementations
impl<'a> Sync for UpdateSubscriptionItem<'a>
impl<'a> Unpin for UpdateSubscriptionItem<'a>
impl<'a> Send for UpdateSubscriptionItem<'a>
impl<'a> UnwindSafe for UpdateSubscriptionItem<'a>
impl<'a> RefUnwindSafe for UpdateSubscriptionItem<'a>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self