pub struct ReturnAuthorization { /* private fields */ }Implementations§
Source§impl ReturnAuthorization
impl ReturnAuthorization
pub fn try_new( id: ReturnAuthorizationId, support_case: SupportCase, order: Order, ledger: PaymentLedger, status: ReturnAuthorizationStatus, lines: Vec<ReturnLine>, quantity: Quantity, refund_amount: Money, requested_at: Timestamp, decided_at: Timestamp, ) -> DomainResult<Self>
Source§impl ReturnAuthorization
impl ReturnAuthorization
pub fn id(&self) -> <ReturnAuthorizationId as FieldAccess>::Output<'_>
pub fn support_case(&self) -> <SupportCase as FieldAccess>::Output<'_>
pub fn order(&self) -> <Order as FieldAccess>::Output<'_>
pub fn ledger(&self) -> <PaymentLedger as FieldAccess>::Output<'_>
pub fn status(&self) -> <ReturnAuthorizationStatus as FieldAccess>::Output<'_>
pub fn lines(&self) -> <Vec<ReturnLine> as FieldAccess>::Output<'_> ⓘ
pub fn quantity(&self) -> <Quantity as FieldAccess>::Output<'_>
pub fn refund_amount(&self) -> <Money as FieldAccess>::Output<'_>
pub fn requested_at(&self) -> <Timestamp as FieldAccess>::Output<'_>
pub fn decided_at(&self) -> <Timestamp as FieldAccess>::Output<'_>
Trait Implementations§
Source§impl Clone for ReturnAuthorization
impl Clone for ReturnAuthorization
Source§fn clone(&self) -> ReturnAuthorization
fn clone(&self) -> ReturnAuthorization
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 moreSource§impl Debug for ReturnAuthorization
impl Debug for ReturnAuthorization
Source§impl PartialEq for ReturnAuthorization
impl PartialEq for ReturnAuthorization
Source§fn eq(&self, other: &ReturnAuthorization) -> bool
fn eq(&self, other: &ReturnAuthorization) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ReturnAuthorization
impl StructuralPartialEq for ReturnAuthorization
Auto Trait Implementations§
impl Freeze for ReturnAuthorization
impl RefUnwindSafe for ReturnAuthorization
impl Send for ReturnAuthorization
impl Sync for ReturnAuthorization
impl Unpin for ReturnAuthorization
impl UnsafeUnpin for ReturnAuthorization
impl UnwindSafe for ReturnAuthorization
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