Commerce coupon only one coupon active at a time
My solution is as follows.
1. Check if entity created is a coupon and that coupon type is the one im checking using hook_entity_insert and hook_entity_update
2. Check if coupon changed or inserted has been put active if yes then load all other coupons of right type and turn them inactive