Struct square_api_client::models::OrderReturn
source · [−]pub struct OrderReturn {
pub uid: Option<String>,
pub source_order_id: Option<String>,
pub return_line_items: Option<Vec<OrderReturnLineItem>>,
pub return_service_charges: Option<Vec<OrderReturnServiceCharge>>,
pub return_taxes: Option<Vec<OrderReturnTax>>,
pub return_discounts: Option<Vec<OrderReturnDiscount>>,
pub rounding_adjustment: Option<OrderRoundingAdjustment>,
pub return_amounts: Option<OrderMoneyAmounts>,
}
Expand description
The set of line items, service charges, taxes, discounts, tips, and other items being returned in an order.
Fields
uid: Option<String>
A unique ID that identifies the return only within this order.
source_order_id: Option<String>
An order that contains the original sale of these return line items. This is unset for unlinked returns.
return_line_items: Option<Vec<OrderReturnLineItem>>
A collection of line items that are being returned.
return_service_charges: Option<Vec<OrderReturnServiceCharge>>
Read only A collection of service charges that are being returned.
return_taxes: Option<Vec<OrderReturnTax>>
A collection of references to taxes being returned for an order, including the total applied tax amount to be returned. The taxes must reference a top-level tax ID from the source order.
return_discounts: Option<Vec<OrderReturnDiscount>>
A collection of references to discounts being returned for an order, including the total applied discount amount to be returned. The discounts must reference a top-level discount ID from the source order.
rounding_adjustment: Option<OrderRoundingAdjustment>
A positive or negative rounding adjustment to the total value being returned. Adjustments are commonly used to apply cash rounding when the minimum unit of the account is smaller than the lowest physical denomination of the currency.
return_amounts: Option<OrderMoneyAmounts>
An aggregate monetary value being returned by this return entry.
Trait Implementations
sourceimpl Clone for OrderReturn
impl Clone for OrderReturn
sourcefn clone(&self) -> OrderReturn
fn clone(&self) -> OrderReturn
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for OrderReturn
impl Debug for OrderReturn
sourceimpl Default for OrderReturn
impl Default for OrderReturn
sourcefn default() -> OrderReturn
fn default() -> OrderReturn
sourceimpl<'de> Deserialize<'de> for OrderReturn
impl<'de> Deserialize<'de> for OrderReturn
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
sourceimpl PartialEq<OrderReturn> for OrderReturn
impl PartialEq<OrderReturn> for OrderReturn
sourcefn eq(&self, other: &OrderReturn) -> bool
fn eq(&self, other: &OrderReturn) -> bool
sourceimpl Serialize for OrderReturn
impl Serialize for OrderReturn
impl Eq for OrderReturn
impl StructuralEq for OrderReturn
impl StructuralPartialEq for OrderReturn
Auto Trait Implementations
impl RefUnwindSafe for OrderReturn
impl Send for OrderReturn
impl Sync for OrderReturn
impl Unpin for OrderReturn
impl UnwindSafe for OrderReturn
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.