[][src]Struct stripe::OrderReturn

pub struct OrderReturn {
    pub id: OrderReturnId,
    pub amount: i64,
    pub created: Timestamp,
    pub currency: Currency,
    pub items: Vec<OrderItem>,
    pub livemode: bool,
    pub order: Option<Expandable<Order>>,
    pub refund: Option<Expandable<Refund>>,
}

The resource representing a Stripe "OrderReturn".

For more details see https://stripe.com/docs/api/order_returns/object.

Fields

id: OrderReturnId

Unique identifier for the object.

amount: i64

A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the returned line item.

created: Timestamp

Time at which the object was created.

Measured in seconds since the Unix epoch.

currency: Currency

Three-letter ISO currency code, in lowercase.

Must be a supported currency.

items: Vec<OrderItem>

The items included in this order return.

livemode: bool

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

order: Option<Expandable<Order>>

The order that this return includes items from.

refund: Option<Expandable<Refund>>

The ID of the refund issued for this return.

Implementations

impl OrderReturn[src]

pub fn list(
    client: &Client,
    params: ListOrderReturns
) -> Response<List<OrderReturn>>
[src]

Returns a list of your order returns.

The returns are returned sorted by creation date, with the most recently created return appearing first.

pub fn retrieve(
    client: &Client,
    id: &OrderReturnId,
    expand: &[&str]
) -> Response<OrderReturn>
[src]

Retrieves the details of an existing order return.

Supply the unique order ID from either an order return creation request or the order return list, and Stripe will return the corresponding order information.

Trait Implementations

impl Clone for OrderReturn[src]

impl Debug for OrderReturn[src]

impl<'de> Deserialize<'de> for OrderReturn[src]

impl Object for OrderReturn[src]

type Id = OrderReturnId

The canonical id type for this object.

impl Serialize for OrderReturn[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.