- Code sanitation
- Changes to comments
- Added a check in promotion codes which ill not check if the customer redeeming an invite code has already redeemed one. If yes, an error is thrown. Before this fix, the check was being done for ALL types of code redemptions.
Removed useless methods from PromotionCodes controller
- Fixed a bug in the code where the wrong available amount was returned when a request to redeem a promo code was made
- Changed routes to conform to REST
- Fixed comments
- Changed resource from promocodesredeem to promotioncodesredeem