Skip to main content

Module models

Module models 

Source
Expand description

Domain models for synthetic accounting data generation.

This module provides all the core data models for the enterprise simulation, including:

  • Master data (vendors, customers, materials, fixed assets, employees)
  • Transaction data (journal entries, ACDOCA event logs)
  • Organizational data (companies, departments, cost centers)
  • Control data (internal controls, SoD, approvals)
  • Document data (purchase orders, invoices, payments, deliveries)
  • Intercompany data (relationships, transfer pricing, eliminations)
  • Temporal data (bi-temporal support for audit trails)
  • Audit data (engagements, workpapers, evidence, findings)

Re-exports§

pub use drift_events::*;
pub use organizational_event::*;
pub use process_evolution::*;
pub use regulatory_events::*;
pub use technology_transition::*;

Modules§

audit
Audit-related models for RustAssureTwin integration.
balance
Balance and trial balance models.
banking
Banking domain models for KYC/AML synthetic data generation.
currencies
Common currency codes.
documents
Document models for enterprise transaction flow simulation.
drift_events
Drift event types for ground truth labeling.
intercompany
Intercompany transaction models.
organizational_event
Organizational event models for pattern drift simulation.
process_evolution
Process evolution models for pattern drift simulation.
regulatory_events
Regulatory event models for pattern drift simulation.
rejection_reasons
Common rejection/revision reasons.
subledger
Subledger models for detailed transaction tracking.
technology_transition
Technology transition models for pattern drift simulation.

Structs§

AccrualDefinition
Accrual definition for recurring period-end entries.
AcdocaEntry
SAP HANA ACDOCA-compatible universal journal entry line.
AcdocaFactory
Factory for creating ACDOCA entries from journal entries.
AcfeCalibration
ACFE Calibration data for fraud generation.
AllocationTarget
Target for overhead allocation.
AnomalyRateConfig
Configuration for anomaly rates.
AnomalySeverity
Structured severity scoring for anomalies.
AnomalySummary
Summary of anomalies for reporting.
ApprovalAction
Individual action in the approval workflow.
ApprovalChain
Approval chain configuration with amount thresholds.
ApprovalRecord
Individual approval record for tracking approval relationships.
ApprovalThreshold
Single threshold in the approval chain.
ApprovalWorkflow
Complete approval workflow for a journal entry.
ApprovalWorkflowGenerator
Generator for realistic approval workflows.
AssetAccountDetermination
Account determination rules for fixed asset transactions.
BankAccount
Bank account information for payments.
BiTemporal
Bi-temporal wrapper for any auditable entity.
BomComponent
Component in a bill of materials.
BsegEntry
SAP BSEG-compatible document segment structure.
CTAComponent
Component of CTA calculation.
CTAEntry
Currency Translation Adjustment (CTA) entry.
ChartOfAccounts
Complete Chart of Accounts structure.
CloseSchedule
Period close schedule defining the order of tasks.
CloseTaskResult
Result of executing a close task.
Company
Company entity for graph building and consolidation.
CompanyCode
Company code representing a legal entity or organizational unit.
ContributingFactor
A contributing factor to anomaly confidence/severity.
ControlAccountMapping
Mapping between a control and GL accounts.
ControlDocTypeMapping
Mapping between a control and document types.
ControlMappingRegistry
Master registry of all control mappings.
ControlProcessMapping
Mapping between a control and business processes.
ControlThresholdMapping
Mapping between a control and amount thresholds.
CrossProcessLink
Cross-process link connecting P2P and O2C via inventory.
CurrencyPair
Currency pair representing source and target currencies.
Customer
Customer master data.
CustomerEngagement
Customer engagement metrics.
CustomerNetworkPosition
Customer network position for referrals and hierarchies.
CustomerPool
Pool of customers for transaction generation.
Department
Department definition for organizational structure.
DepartmentHeadcount
Headcount configuration for a department.
DocumentType
Document type classification for journal entries.
Employee
Employee master data with organizational hierarchy.
EmployeePool
Pool of employees with organizational hierarchy support.
EnhancedAnomalyLabel
Enhanced anomaly label with dynamic confidence and severity.
EnterpriseGroup
Enterprise group structure containing multiple company codes.
EntityEvent
Event in an entity’s lifecycle.
EntityGraph
Entity relationship graph.
EntityId
Unique identifier for any entity in the system.
EntityNode
Node in the entity graph.
EntityRecord
Record of an entity in the registry.
EntityRegistry
Central registry for all master data entities.
ExtendedAnomalyLabel
Extended anomaly label with comprehensive multi-dimensional classification.
FactorEvidence
Evidence supporting a contributing factor.
FiscalCalendar
Fiscal calendar definition.
FiscalPeriod
Fiscal period representation.
FiscalYearVariant
Fiscal year variant defining the fiscal calendar.
FixedAsset
Fixed asset master data.
FixedAssetPool
Pool of fixed assets for transaction generation.
FourFourFiveConfig
Configuration for 4-4-5 retail calendar.
FraudTriangle
Fraud Triangle components (Pressure, Opportunity, Rationalization).
FxRate
An exchange rate for a currency pair on a specific date.
FxRateTable
Collection of FX rates with lookup functionality.
GLAccount
Individual GL account definition.
GraphEntityId
Unique identifier for an entity in the relationship graph.
GraphIndexes
Indexes for efficient graph lookups.
GraphMetadata
Metadata about the graph.
GraphStatistics
Statistics about the graph.
IndustryWeights
Industry relevance weights for account selection during generation.
InternalControl
Internal control definition.
JournalEntry
Complete journal entry with header and line items.
JournalEntryHeader
Header information for a journal entry document.
JournalEntryLine
Individual line item within a journal entry.
LabeledAnomaly
A labeled anomaly for supervised learning.
Material
Material master data.
MaterialAccountDetermination
Account determination rules for material transactions.
MaterialPool
Pool of materials for transaction generation.
NearMissLabel
Label for a near-miss case.
NetworkStatistics
Statistics for the vendor network.
OrganizationStructure
Organization structure containing all departments.
OverheadAllocation
Corporate overhead allocation definition.
PaymentHistory
Payment history summary for a vendor.
PeriodCloseRun
Period close run status.
Project
Project master data.
ProjectPool
Pool of projects for transaction generation.
RealizedFxGainLoss
Realized FX gain/loss from settling a transaction in foreign currency.
RelationshipEdge
Edge in the entity graph representing a relationship.
RelationshipStrengthCalculator
Calculator for relationship strength.
ScheduledCloseTask
A scheduled close task with sequence and dependencies.
SchemeTransactionRef
Reference to a transaction within a scheme.
SegmentStatistics
Statistics for the segmented customer pool.
SegmentedCustomer
Segmented customer record with full metadata.
SegmentedCustomerPool
Pool of segmented customers.
SodConflictPair
Definition of a SoD conflict pair.
SodRule
SoD rule that defines what constitutes a conflict.
SodViolation
Record of a specific SoD violation on a transaction.
StrengthComponents
Components of relationship strength calculation.
StrengthWeights
Weights for relationship strength calculation.
TaxAdjustment
Tax adjustment item.
TaxProvisionInput
Tax provision calculation inputs.
TaxProvisionResult
Tax provision result.
TemporalAuditEntry
Temporal audit trail entry.
TemporalQuery
Temporal query parameters for point-in-time queries.
TemporalVersionChain
Temporal version chain for tracking all versions of an entity.
ThirteenPeriodConfig
Configuration for 13-period calendar.
TransactionCodeAuth
Transaction code authorization.
TranslatedAmount
Result of translating an amount.
UnitOfMeasure
Unit of measure for materials.
UnrealizedFxGainLoss
Unrealized FX gain/loss from revaluing open items.
User
Individual user account for transaction attribution.
UserPool
Pool of users for transaction attribution.
Vendor
Vendor master data.
VendorDependency
Vendor dependency tracking for concentration analysis.
VendorNetwork
Multi-tier vendor network for a company.
VendorPool
Pool of vendors for transaction generation.
VendorQualityScore
Vendor quality score based on multiple dimensions.
VendorRelationship
Vendor relationship in the supply chain network.
WbsElement
WBS (Work Breakdown Structure) element.
WorkingHoursPattern
Working hours pattern for human users.
YearEndClosingSpec
Year-end closing entry specification.

Enums§

AccountSubType
Detailed sub-classification for accounts within each type.
AccountType
Primary account type classification following standard financial statement structure.
AccrualCalculationMethod
Calculation method for accruals.
AccrualFrequency
Frequency for accrual posting.
AccrualType
Type of accrual.
AcfeDetectionMethod
How a fraud was detected (from ACFE statistics).
AcfeFraudCategory
ACFE-aligned fraud categories based on the Occupational Fraud Tree.
AcfeScheme
Unified ACFE scheme type that encompasses all fraud schemes.
AcquisitionType
Asset acquisition type.
ActivityType
Activity types for authorization.
AllocationBasis
Basis for overhead allocation.
AnomalyCategory
High-level anomaly category for multi-class classification.
AnomalyCausalReason
Causal reason explaining why an anomaly was injected.
AnomalyDetectionDifficulty
Detection difficulty classification for anomalies.
AnomalyType
Primary anomaly classification.
ApprovalActionType
Type of approval action taken.
ApprovalStatus
Status of an approval workflow.
AssetClass
Asset class for categorization and default depreciation rules.
AssetFraudScheme
Inventory and Other Asset fraud schemes under Asset Misappropriation.
AssetStatus
Status of a fixed asset.
BusinessProcess
Business process that originated the transaction.
CashFraudScheme
Cash-based fraud schemes under Asset Misappropriation.
ChurnReason
Churn reason for lost customers.
CloseTask
Close task types for period-end processing.
CloseTaskStatus
Status of a close task execution.
CoAComplexity
Chart of Accounts complexity levels.
ConcealmentTechnique
Concealment technique used in fraud.
ControlFrequency
Control testing frequency.
ControlScope
Control scope distinguishing entity-level from transaction-level controls.
ControlStatus
Control status for transaction-level tracking.
ControlType
Control type based on SOX 404 framework.
CorruptionScheme
Corruption schemes under the ACFE Fraud Tree.
CosoComponent
COSO 2013 Framework - 5 Components of Internal Control.
CosoMaturityLevel
Control maturity level based on capability maturity models.
CosoPrinciple
COSO 2013 Framework - 17 Principles of Internal Control.
CreditRating
Customer credit rating.
CrossProcessLinkType
Type of cross-process link.
CustomerLifecycleStage
Customer lifecycle stage with metadata.
CustomerPaymentBehavior
Customer payment behavior for simulation.
CustomerType
Type of customer relationship.
CustomerValueSegment
Customer value segment classification.
DeclineReason
Reason for vendor decline.
DepreciationMethod
Depreciation calculation method.
DetectionMethod
Detection method classification.
EmployeeStatus
Employee status in HR system.
EntityEventType
Types of entity lifecycle events.
EntityStatus
Status of an entity at a point in time.
EntityType
Types of entities that can be registered.
ErrorType
Error types for error detection.
FactorType
Type of contributing factor for anomaly confidence/severity calculation.
FalsePositiveTrigger
What might trigger a false positive for this near-miss.
FinancialStatementScheme
Financial Statement Fraud schemes under the ACFE Fraud Tree.
FiscalCalendarType
Type of fiscal calendar used by the organization.
FiscalPeriodType
Type of fiscal period.
FourFourFiveAnchor
Anchor point for 4-4-5 fiscal year start.
FraudType
Fraud types for detection training.
GraphEntityType
Type of entity in the relationship graph.
GroundTruthCertainty
Ground truth certainty level for anomaly labels.
IndustrySector
Industry sector for account relevance weighting.
InjectionStrategy
Structured injection strategy with captured parameters.
JobLevel
Employee job level in the organization hierarchy.
LeapWeekPlacement
Where to place the leap week in 53-week years.
LegitimatePatternType
Types of unusual but legitimate business patterns.
MaterialGroup
Material group for categorization.
MaterialType
Type of material in the system.
NearMissPattern
Type of near-miss pattern (suspicious but legitimate).
OpportunityFactor
Opportunity factors that enable fraud.
PaymentTerms
Payment terms for vendor/customer relationships.
PeriodCloseStatus
Status of a period close run.
PeriodStatus
Status of a fiscal period.
PerpetratorDepartment
Department/position of perpetrator (from ACFE statistics).
PerpetratorLevel
Perpetrator position level (from ACFE statistics).
PressureType
Types of pressure/incentive that can lead to fraud.
ProcessIssueType
Process issue types.
ProjectStatus
Status of a project.
ProjectType
Type of project.
RateType
Type of exchange rate.
Rationalization
Rationalizations used by fraud perpetrators.
RelationalAnomalyType
Relational/graph anomaly types.
RelationshipStrength
Relationship strength classification.
RelationshipType
Type of relationship between entities.
RiskLevel
Risk level for controls and control deficiencies.
RiskTrigger
Risk triggers for at-risk customers.
SchemeDetectionStatus
Status of detection for a fraud scheme.
SchemeType
Type of multi-stage fraud scheme.
SeverityLevel
Severity level classification for anomalies.
SodConflictType
Types of Segregation of Duties conflicts.
SoxAssertion
SOX 404 financial statement assertions.
SpendTier
Spend tier based on annual procurement volume.
StatisticalAnomalyType
Statistical anomaly types.
StrategicLevel
Strategic importance level of a vendor.
Substitutability
Substitutability classification for single-source analysis.
SupplyChainTier
Supply chain tier classification.
SystemRole
System role for access control.
TemporalAction
Actions tracked in temporal audit trail.
TemporalChangeType
Type of temporal change.
TerminationReason
Reason for vendor termination.
ThresholdComparison
Comparison operator for threshold mappings.
TransactionSource
Source of a journal entry transaction.
TranslationAccountType
Account classification for currency translation.
TranslationMethod
Currency translation method for financial statement consolidation.
UserPersona
User persona classification for behavioral modeling.
ValuationMethod
Inventory valuation method.
VendorBehavior
Vendor payment behavior for simulation.
VendorCluster
Vendor cluster for behavioral grouping.
VendorLifecycleStage
Vendor lifecycle stage tracking.
VendorRelationshipType
Type of vendor relationship in the supply chain.
VendorType
Type of vendor relationship.
WeekPattern
Week pattern for 4-4-5 calendar quarters.

Functions§

base_rates_usd
Base rates against USD for common currencies (approximate).