Concept
Give the actor a discretion limit rather than the ability to refund, and make the limit a property of the action rather than of the login. A request written by a customer is untrusted text, so an amount it asks for is a claim rather than an authorisation — which is how an agent handling a $59 order ends up issuing one for $708. Below the limit the refund proceeds; above it, it waits for a named person.
Give the actor a discretion limit rather than the ability to refund, and make the limit a property of the action rather than of the login. A request written by a customer is untrusted text, so an amount it asks for is a claim rather than an authorisation — which is how an agent handling a $59 order ends up issuing one for $708. Below the limit the refund proceeds; above it, it waits for a named person.
A refund, credit, or goodwill adjustment is issued to a customer.
5 executable policies
An order reaches checkout carrying stacked discounts or a drifted automated price.
10 executable policies
Decionis is the deterministic decision layer between intent and execution. This concept is one way in; the architecture behind it is the same in every case.