[−][src]Struct stripe::SubscriptionItem
The resource representing a Stripe "SubscriptionItem".
For more details see https://stripe.com/docs/api/subscription_items/object.
Fields
id: SubscriptionItemId
Unique identifier for the object.
billing_thresholds: Option<SubscriptionItemBillingThresholds>
Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period.
created: Option<Timestamp>
Time at which the object was created.
Measured in seconds since the Unix epoch.
deleted: bool
metadata: 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<Plan>
quantity: Option<u64>
The quantity of the plan to which the customer should be subscribed.
subscription: Option<String>
The 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
.
Methods
impl SubscriptionItem
[src]
pub fn list(
client: &Client,
params: ListSubscriptionItems
) -> Response<List<SubscriptionItem>>
[src]
client: &Client,
params: ListSubscriptionItems
) -> Response<List<SubscriptionItem>>
Returns a list of your subscription items for a given subscription.
pub fn retrieve(
client: &Client,
id: &SubscriptionItemId,
expand: &[&str]
) -> Response<SubscriptionItem>
[src]
client: &Client,
id: &SubscriptionItemId,
expand: &[&str]
) -> Response<SubscriptionItem>
Retrieves the invoice item with the given ID.
pub fn update(
client: &Client,
id: &SubscriptionItemId,
params: UpdateSubscriptionItem
) -> Response<SubscriptionItem>
[src]
client: &Client,
id: &SubscriptionItemId,
params: UpdateSubscriptionItem
) -> Response<SubscriptionItem>
Updates the plan or quantity of an item on a current subscription.
pub fn delete(
client: &Client,
id: &SubscriptionItemId
) -> Response<Deleted<SubscriptionItemId>>
[src]
client: &Client,
id: &SubscriptionItemId
) -> Response<Deleted<SubscriptionItemId>>
Deletes an item from the subscription.
Removing a subscription item from a subscription will not cancel the subscription.
Trait Implementations
impl Object for SubscriptionItem
[src]
type Id = SubscriptionItemId
The canonical id type for this object.
fn id(&self) -> Self::Id
[src]
fn object(&self) -> &'static str
[src]
impl Clone for SubscriptionItem
[src]
fn clone(&self) -> SubscriptionItem
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for SubscriptionItem
[src]
impl Serialize for SubscriptionItem
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for SubscriptionItem
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for SubscriptionItem
impl Sync for SubscriptionItem
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
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