Struct stripe::OrderReturn [−][src]
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]
client: &Client,
params: ListOrderReturns<'_>
) -> Response<List<OrderReturn>>
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]
client: &Client,
id: &OrderReturnId,
expand: &[&str]
) -> Response<OrderReturn>
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]
fn clone(&self) -> OrderReturn
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for OrderReturn
[src]
impl<'de> Deserialize<'de> for OrderReturn
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Object for OrderReturn
[src]
type Id = OrderReturnId
The canonical id type for this object.
fn id(&self) -> Self::Id
[src]
fn object(&self) -> &'static str
[src]
impl Serialize for OrderReturn
[src]
Auto Trait Implementations
impl RefUnwindSafe for OrderReturn
[src]
impl Send for OrderReturn
[src]
impl Sync for OrderReturn
[src]
impl Unpin for OrderReturn
[src]
impl UnwindSafe for OrderReturn
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,