pub struct O2CDocumentChain {
pub sales_order: SalesOrder,
pub deliveries: Vec<Delivery>,
pub customer_invoice: Option<CustomerInvoice>,
pub customer_receipt: Option<Payment>,
pub credit_memo: Option<ARCreditMemo>,
pub is_complete: bool,
pub credit_check_passed: bool,
pub is_return: bool,
pub payment_events: Vec<PaymentEvent>,
pub remainder_receipts: Vec<Payment>,
}Expand description
A complete O2C document chain.
Fields§
§sales_order: SalesOrderSales Order
deliveries: Vec<Delivery>Deliveries (may be multiple for partial shipments)
customer_invoice: Option<CustomerInvoice>Customer Invoice
customer_receipt: Option<Payment>Customer Receipt (Payment)
credit_memo: Option<ARCreditMemo>Credit memo (if return or adjustment)
is_complete: boolChain completion status
credit_check_passed: boolCredit check passed
is_return: boolIs this a return/credit memo chain
payment_events: Vec<PaymentEvent>Payment events (partial, short, corrections, etc.)
remainder_receipts: Vec<Payment>Remainder payment receipts (follow-up to partial payments)
Trait Implementations§
Source§impl Clone for O2CDocumentChain
impl Clone for O2CDocumentChain
Source§fn clone(&self) -> O2CDocumentChain
fn clone(&self) -> O2CDocumentChain
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for O2CDocumentChain
impl RefUnwindSafe for O2CDocumentChain
impl Send for O2CDocumentChain
impl Sync for O2CDocumentChain
impl Unpin for O2CDocumentChain
impl UnsafeUnpin for O2CDocumentChain
impl UnwindSafe for O2CDocumentChain
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.