Module: Credit
- Defined in:
- app/services/credit/auto_increase.rb,
app/services/credit/eligibility_evaluator.rb
Overview
Attempts to automatically increase a customer's available credit by amount.
Workflow:
- Run Credit::EligibilityEvaluator (with annual revenue ignored).
- If approved: bump available_credit, lift hold, persist, approve any
attached order, and email the auto-credit notification. - If denied: mark the order's credit request as pending and email the
manual credit-increase request to Accounting.
Returns true when the increase was applied, false when it was denied and
routed for manual review.
Defined Under Namespace
Classes: AutoIncrease, EligibilityEvaluator