[−][src]Struct stripe::CreateSubscriptionItem
The parameters for SubscriptionItem::create
.
Fields
billing_thresholds: Option<CreateSubscriptionItemBillingThresholds>
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: PlanId
The identifier of the plan to add to the subscription.
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.
subscription: SubscriptionId
The identifier of the subscription to modify.
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
.
Implementations
impl<'a> CreateSubscriptionItem<'a>
[src]
pub fn new(plan: PlanId, subscription: SubscriptionId) -> Self
[src]
Trait Implementations
impl<'a> Clone for CreateSubscriptionItem<'a>
[src]
fn clone(&self) -> CreateSubscriptionItem<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for CreateSubscriptionItem<'a>
[src]
impl<'a> Serialize for CreateSubscriptionItem<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for CreateSubscriptionItem<'a>
impl<'a> Send for CreateSubscriptionItem<'a>
impl<'a> Sync for CreateSubscriptionItem<'a>
impl<'a> Unpin for CreateSubscriptionItem<'a>
impl<'a> UnwindSafe for CreateSubscriptionItem<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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>,