Step 1
Collect the purchase history with stable customer identifiers, order dates, order values and refund entries for one stated look-back span, together with the analysis date, the value measure to be scored and the merchant's stated rule for banding each dimension.