pub struct O2CGeneratorConfig {
pub credit_check_failure_rate: f64,
pub partial_shipment_rate: f64,
pub avg_days_so_to_delivery: u32,
pub avg_days_delivery_to_invoice: u32,
pub avg_days_invoice_to_payment: u32,
pub late_payment_rate: f64,
pub bad_debt_rate: f64,
pub returns_rate: f64,
pub cash_discount_take_rate: f64,
pub payment_method_distribution: Vec<(PaymentMethod, f64)>,
pub payment_behavior: O2CPaymentBehavior,
}Expand description
Configuration for O2C flow generation.
Fields§
§credit_check_failure_rate: f64Credit check failure rate
partial_shipment_rate: f64Rate of partial shipments
avg_days_so_to_delivery: u32Average days between SO and Delivery
avg_days_delivery_to_invoice: u32Average days between Delivery and Invoice
avg_days_invoice_to_payment: u32Average days between Invoice and Payment (customer payment)
late_payment_rate: f64Late payment rate
bad_debt_rate: f64Bad debt rate (no payment)
returns_rate: f64Rate of sales returns
cash_discount_take_rate: f64Cash discount take rate
payment_method_distribution: Vec<(PaymentMethod, f64)>Payment method distribution for AR receipts
payment_behavior: O2CPaymentBehaviorPayment behavior configuration
Trait Implementations§
Source§impl Clone for O2CGeneratorConfig
impl Clone for O2CGeneratorConfig
Source§fn clone(&self) -> O2CGeneratorConfig
fn clone(&self) -> O2CGeneratorConfig
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 O2CGeneratorConfig
impl Debug for O2CGeneratorConfig
Auto Trait Implementations§
impl Freeze for O2CGeneratorConfig
impl RefUnwindSafe for O2CGeneratorConfig
impl Send for O2CGeneratorConfig
impl Sync for O2CGeneratorConfig
impl Unpin for O2CGeneratorConfig
impl UnwindSafe for O2CGeneratorConfig
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