Written from your answerAsks before implementation begins: Does the $50 limit count sales tax? and shows the $48 order under each answer.
You chose: before tax → $48.00 order gets $52.32 instant credit.
out, _ := h.refund(ctx, 4800, 432)
check("status", out.Status == "credit")
check("cents", out.Cents == 5232)
- If the builder makes the same guess (
TotalCents <= 5000): run 1, 2 of 3. Wanted $52.32 credit, got manager review. Approval unavailable. - Run 2, fixed (
SubtotalCents <= 5000): 3 of 3 passed. Ready to approve.
You chose: with tax → $48.00 + $4.32 order waits for a manager.
out, _ := h.refund(ctx, 4800, 432)
check("status", out.Status == "pending_review")
check("cents", out.Cents == 0)
- Run 1 (
SubtotalCents+TaxCents <= 5000): 3 of 3 passed. Ready to approve.