[−][src]Struct stripe::UpdateOrder
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. An order can have multiple coupons.
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 id
s 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.
Implementations
impl<'a> UpdateOrder<'a>
[src]
Trait Implementations
impl<'a> Clone for UpdateOrder<'a>
[src]
fn clone(&self) -> UpdateOrder<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for UpdateOrder<'a>
[src]
impl<'a> Default for UpdateOrder<'a>
[src]
fn default() -> UpdateOrder<'a>
[src]
impl<'a> Serialize for UpdateOrder<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for UpdateOrder<'a>
impl<'a> Send for UpdateOrder<'a>
impl<'a> Sync for UpdateOrder<'a>
impl<'a> Unpin for UpdateOrder<'a>
impl<'a> UnwindSafe for UpdateOrder<'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>,