pub enum RetailAnomaly {
Sweethearting {
cashier_id: String,
beneficiary: String,
estimated_loss: Decimal,
transaction_count: u32,
},
Skimming {
register_id: String,
store_id: String,
amount: Decimal,
detection_method: String,
},
RefundFraud {
transaction_id: String,
employee_id: String,
refund_amount: Decimal,
scheme_type: RefundFraudType,
},
ReceivingFraud {
po_id: String,
employee_id: String,
short_quantity: u32,
value: Decimal,
},
TransferFraud {
from_store: String,
to_store: String,
items_diverted: u32,
value: Decimal,
},
CouponFraud {
coupon_code: String,
not_presented: bool,
value: Decimal,
transaction_count: u32,
},
EmployeeDiscountAbuse {
employee_id: String,
non_employee_beneficiary: String,
discount_value: Decimal,
transaction_count: u32,
},
VoidAbuse {
cashier_id: String,
void_count: u32,
void_total: Decimal,
period_days: u32,
},
PriceOverrideAbuse {
employee_id: String,
override_count: u32,
total_discount: Decimal,
},
GiftCardFraud {
scheme_type: GiftCardFraudType,
amount: Decimal,
cards_affected: u32,
},
InventoryManipulation {
store_id: String,
manipulation_type: InventoryManipulationType,
value: Decimal,
},
VendorKickback {
vendor_id: String,
buyer_id: String,
kickback_amount: Decimal,
scheme_duration_days: u32,
},
}Expand description
Retail-specific anomaly types.
Variants§
Sweethearting
Employee gives unauthorized discounts to friends/family.
Skimming
Cash stolen from register before recording.
RefundFraud
Fraudulent refunds processed.
Fields
§
scheme_type: RefundFraudTypeReceivingFraud
Receiving fraud (short shipments, diversions).
TransferFraud
Fraudulent inter-store transfers.
CouponFraud
Coupon/promotion fraud.
EmployeeDiscountAbuse
Employee discount abuse.
Fields
VoidAbuse
Void abuse.
PriceOverrideAbuse
Price override abuse.
GiftCardFraud
Gift card fraud.
InventoryManipulation
Inventory manipulation.
VendorKickback
Fictitious vendor kickback.
Implementations§
Source§impl RetailAnomaly
impl RetailAnomaly
Sourcepub fn financial_impact(&self) -> Decimal
pub fn financial_impact(&self) -> Decimal
Returns the financial impact of this anomaly.
Sourcepub fn involves_collusion(&self) -> bool
pub fn involves_collusion(&self) -> bool
Returns whether this involves collusion.
Trait Implementations§
Source§impl Clone for RetailAnomaly
impl Clone for RetailAnomaly
Source§fn clone(&self) -> RetailAnomaly
fn clone(&self) -> RetailAnomaly
Returns a duplicate of the value. Read more
1.0.0 · 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 RetailAnomaly
impl Debug for RetailAnomaly
Source§impl<'de> Deserialize<'de> for RetailAnomaly
impl<'de> Deserialize<'de> for RetailAnomaly
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IndustryAnomaly for RetailAnomaly
impl IndustryAnomaly for RetailAnomaly
Source§fn anomaly_type(&self) -> &str
fn anomaly_type(&self) -> &str
Returns the anomaly type name.
Source§fn detection_difficulty(&self) -> &str
fn detection_difficulty(&self) -> &str
Returns detection difficulty.
Source§fn indicators(&self) -> Vec<String>
fn indicators(&self) -> Vec<String>
Returns indicators that should trigger detection.
Source§fn regulatory_concerns(&self) -> Vec<String>
fn regulatory_concerns(&self) -> Vec<String>
Returns related regulatory concerns.
Auto Trait Implementations§
impl Freeze for RetailAnomaly
impl RefUnwindSafe for RetailAnomaly
impl Send for RetailAnomaly
impl Sync for RetailAnomaly
impl Unpin for RetailAnomaly
impl UnsafeUnpin for RetailAnomaly
impl UnwindSafe for RetailAnomaly
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