[][src]Struct stripe::UpdateSku

pub struct UpdateSku<'a> {
    pub active: Option<bool>,
    pub attributes: Option<Metadata>,
    pub currency: Option<Currency>,
    pub expand: &'a [&'a str],
    pub image: Option<&'a str>,
    pub inventory: Option<Inventory>,
    pub metadata: Option<Metadata>,
    pub package_dimensions: Option<PackageDimensions>,
    pub price: Option<i64>,
    pub product: Option<IdOrCreate<'a, CreateProduct<'a>>>,
}

The parameters for Sku::update.

Fields

active: Option<bool>

Whether this SKU is available for purchase.

attributes: Option<Metadata>

A dictionary of attributes and values for the attributes defined by the product.

When specified, attributes will partially update the existing attributes dictionary on the product, with the postcondition that a value must be present for each attribute key on the product.

currency: Option<Currency>

Three-letter ISO currency code, in lowercase.

Must be a supported currency.

expand: &'a [&'a str]

Specifies which fields in the response should be expanded.

image: Option<&'a str>

The URL of an image for this SKU, meant to be displayable to the customer.

inventory: Option<Inventory>

Description of the SKU's inventory.

metadata: Option<Metadata>

A set of key-value pairs that you can attach to a SKU object.

It can be useful for storing additional information about the SKU in a structured format.

package_dimensions: Option<PackageDimensions>

The dimensions of this SKU for shipping purposes.

price: Option<i64>

The cost of the item as a positive integer in the smallest currency unit (that is, 100 cents to charge $1.00, or 100 to charge ¥100, Japanese Yen being a zero-decimal currency).

product: Option<IdOrCreate<'a, CreateProduct<'a>>>

The ID of the product that this SKU should belong to.

The product must exist, have the same set of attribute names as the SKU's current product, and be of type good.

Implementations

impl<'a> UpdateSku<'a>[src]

pub fn new() -> Self[src]

Trait Implementations

impl<'a> Clone for UpdateSku<'a>[src]

impl<'a> Debug for UpdateSku<'a>[src]

impl<'a> Default for UpdateSku<'a>[src]

impl<'a> Serialize for UpdateSku<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for UpdateSku<'a>

impl<'a> Send for UpdateSku<'a>

impl<'a> Sync for UpdateSku<'a>

impl<'a> Unpin for UpdateSku<'a>

impl<'a> UnwindSafe for UpdateSku<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.