I am trying to figure out how I can programmatically/conditional action add discounts to a cart when an enduser clicks an affiliate link.

Ideally this could be handled by having a conditional action for adding a discount, but even still, looking through the code I cannot see how I can create a separate module to interface with this module to programmatically add discounts. Is there a way that I am not seeing, or is this a feature request?