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§
Source§impl Clone for OrderReturn
impl Clone for OrderReturn
Source§fn clone(&self) -> OrderReturn
fn clone(&self) -> OrderReturn
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OrderReturn
impl Debug for OrderReturn
Source§impl Default for OrderReturn
impl Default for OrderReturn
Source§fn default() -> OrderReturn
fn default() -> OrderReturn
Source§impl<'de> Deserialize<'de> for OrderReturn
impl<'de> Deserialize<'de> for OrderReturn
Source§fn 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>,
Source§impl PartialEq for OrderReturn
impl PartialEq for OrderReturn
Source§impl Serialize for OrderReturn
impl Serialize for OrderReturn
impl Eq for OrderReturn
impl StructuralPartialEq for OrderReturn
Auto Trait Implementations§
impl Freeze for OrderReturn
impl RefUnwindSafe for OrderReturn
impl Send for OrderReturn
impl Sync for OrderReturn
impl Unpin for OrderReturn
impl UnwindSafe for OrderReturn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.