[−][src]Struct stripe::OrderReturn
The resource representing a Stripe "OrderReturn".
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.
Methods
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 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 Clone for OrderReturn
[src]
fn clone(&self) -> OrderReturn
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for OrderReturn
[src]
impl Serialize for OrderReturn
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for OrderReturn
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for OrderReturn
impl Sync for OrderReturn
impl Send for OrderReturn
impl RefUnwindSafe for OrderReturn
impl UnwindSafe for OrderReturn
Blanket Implementations
impl<T> From<T> for T
[src]
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self