apply_billing_lifecycle_effects

Function apply_billing_lifecycle_effects 

Source
pub fn apply_billing_lifecycle_effects(
    response: &mut Value,
    lifecycle: &PersonaLifecycle,
)
Expand description

Apply lifecycle state effects to a response for billing endpoints

Modifies billing-related fields based on the persona’s lifecycle state. For example, ChurnRisk personas might have payment issues, while PaymentFailed personas have failed payment attempts.