pub struct ExternalConfirmation {Show 16 fields
pub confirmation_id: Uuid,
pub confirmation_ref: String,
pub engagement_id: Uuid,
pub workpaper_id: Option<Uuid>,
pub confirmation_type: ConfirmationType,
pub recipient_name: String,
pub recipient_type: RecipientType,
pub account_id: Option<String>,
pub book_balance: Decimal,
pub confirmation_date: NaiveDate,
pub sent_date: Option<NaiveDate>,
pub response_deadline: Option<NaiveDate>,
pub status: ConfirmationStatus,
pub positive_negative: ConfirmationForm,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
External confirmation request per ISA 505.
Tracks the full lifecycle of a confirmation from draft through to completion, including the balance under confirmation and key dates.
Fields§
§confirmation_id: UuidUnique confirmation ID
confirmation_ref: StringHuman-readable reference (e.g. “CONF-a1b2c3d4”)
engagement_id: UuidEngagement this confirmation belongs to
workpaper_id: Option<Uuid>Optional linked workpaper
confirmation_type: ConfirmationTypeType of balance or matter being confirmed
recipient_name: StringName of the confirming party
recipient_type: RecipientTypeCategory of confirming party
account_id: Option<String>Account or reference number at the confirming party
book_balance: DecimalBalance per the client’s books
confirmation_date: NaiveDateDate the balance relates to
sent_date: Option<NaiveDate>Date the request was dispatched
response_deadline: Option<NaiveDate>Deadline by which a response is required
status: ConfirmationStatusCurrent lifecycle status
positive_negative: ConfirmationFormPositive, negative, or blank form
created_at: DateTime<Utc>§updated_at: DateTime<Utc>Implementations§
Source§impl ExternalConfirmation
impl ExternalConfirmation
Sourcepub fn new(
engagement_id: Uuid,
confirmation_type: ConfirmationType,
recipient_name: &str,
recipient_type: RecipientType,
book_balance: Decimal,
confirmation_date: NaiveDate,
) -> Self
pub fn new( engagement_id: Uuid, confirmation_type: ConfirmationType, recipient_name: &str, recipient_type: RecipientType, book_balance: Decimal, confirmation_date: NaiveDate, ) -> Self
Create a new external confirmation request.
Sourcepub fn with_workpaper(self, workpaper_id: Uuid) -> Self
pub fn with_workpaper(self, workpaper_id: Uuid) -> Self
Link to a workpaper.
Sourcepub fn with_account(self, account_id: &str) -> Self
pub fn with_account(self, account_id: &str) -> Self
Set the account or reference number at the confirming party.
Trait Implementations§
Source§impl Clone for ExternalConfirmation
impl Clone for ExternalConfirmation
Source§fn clone(&self) -> ExternalConfirmation
fn clone(&self) -> ExternalConfirmation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExternalConfirmation
impl Debug for ExternalConfirmation
Source§impl<'de> Deserialize<'de> for ExternalConfirmation
impl<'de> Deserialize<'de> for ExternalConfirmation
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>,
Auto Trait Implementations§
impl Freeze for ExternalConfirmation
impl RefUnwindSafe for ExternalConfirmation
impl Send for ExternalConfirmation
impl Sync for ExternalConfirmation
impl Unpin for ExternalConfirmation
impl UnsafeUnpin for ExternalConfirmation
impl UnwindSafe for ExternalConfirmation
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<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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.