[][src]Struct stripe::UpdateOrder

pub struct UpdateOrder<'a> {
    pub coupon: Option<CouponId>,
    pub expand: &'a [&'a str],
    pub metadata: Option<Metadata>,
    pub selected_shipping_method: Option<&'a str>,
    pub shipping: Option<ShippingParams>,
    pub status: Option<OrderStatus>,
}

The parameters for Order::update.

Fields

coupon: Option<CouponId>

A coupon code that represents a discount to be applied to this order.

Must be one-time duration and in same currency as the order.

expand: &'a [&'a str]

Specifies which fields in the response should be expanded.

metadata: Option<Metadata>

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

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

selected_shipping_method: Option<&'a str>

The shipping method to select for fulfilling this order.

If specified, must be one of the ids of a shipping method in the shipping_methods array. If specified, will overwrite the existing selected shipping method, updating items as necessary.

shipping: Option<ShippingParams>

Tracking information once the order has been fulfilled.

status: Option<OrderStatus>

Current order status.

One of created, paid, canceled, fulfilled, or returned. More detail in the Orders Guide.

Methods

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

pub fn new() -> Self[src]

Trait Implementations

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

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

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

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

Auto Trait Implementations

impl<'a> Unpin for UpdateOrder<'a>

impl<'a> Sync for UpdateOrder<'a>

impl<'a> Send for UpdateOrder<'a>

impl<'a> UnwindSafe for UpdateOrder<'a>

impl<'a> RefUnwindSafe for UpdateOrder<'a>

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Same<T> for T

type Output = T

Should always be Self