All notable changes to Discountify
will be documented in this file.
- Update README.md - fix spelling mistake by @jackbayliss in #24
- Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 by @dependabot in #25
- Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0 by @dependabot in #26
- Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in #28
- bug fix state management issues for single-use and usage-limited coupons across instances by @Safemood in #32
- @jackbayliss made their first contribution in #24
Full Changelog: https://github.com/Safemood/discountify/compare/1.5.0...1.5.1
- Logic and Calculation Bug Fixes: All logic and calculation bugs have been addressed and resolved to enhance the reliability and accuracy of the package.
- Added
totalDetailed()
: This method calculates the total with a detailed breakdown. - Added
savings()
: This method calculates the amount saved. - Updated
calculateTaxAmount()
: This method now calculates the tax amount, with an optional parameter to toggle between before and after discount (default is before discount). - CouponAppliedEvent: Added an event for when a coupon is applied.
- DuplicateCouponException: Implemented an exception for handling duplicate coupons.
- Test Coverage: Increased test coverage (99.6%) provides strong validation for the functionality of the introduced methods.
- Type Coverage: Achieving a robust type coverage of (98.8%) ensures the solidity and accuracy of the codebase, reinforcing its reliability and correctness.
- Spread Cheat: I used a spread cheat (yes excel 😅 ) to validate all results link (The results are validated by an accounting expert).
- Manual Validation: Manual calculations were performed on a variety of test data scenarios to ensure the accuracy of the package results.
- Cross-checked the results with several websites to ensure accuracy:
Full Changelog: https://github.com/Safemood/discountify/compare/1.4.3...1.5.0
- Bug Fix: Ensure Limited Usage Coupon is Applied Only Once by @Safemood in #22
Full Changelog: https://github.com/Safemood/discountify/compare/1.4.2...1.4.3
- fixed bug reduce the number and not percent by @Safemood in #20
Full Changelog: https://github.com/Safemood/discountify/compare/1.4.1...1.4.2
- Bump ramsey/composer-install from 2 to 3 by @dependabot in #13
- Update composer.json for Laravel 11 support by @imabulhasan99 in #11
- Update run-tests.yml by @imabulhasan99 in #12
- fix tests by @Safemood in #14
- Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 by @dependabot in #15
- Update version constraint for illuminate/contracts by @Safemood in #17
Full Changelog: https://github.com/Safemood/discountify/compare/1.4.0...1.4.1
- Added Coupon Based Discounts by @Safemood in #10
Full Changelog: https://github.com/Safemood/discountify/compare/1.3.0...1.4.0
- Fix duplicates conditions by @Safemood in #5
- Generate conditions classes command by @Safemood in #6
- Fix class condition not found by @Safemood in #7
- Events tracking by @Safemood in #8
Full Changelog: https://github.com/Safemood/discountify/compare/1.2.0...1.3.0
- Added the ability to skip conditions by @Safemood in #4
Full Changelog: https://github.com/Safemood/discountify/compare/1.1.0...1.2.0
- added Class-Based Conditions by @Safemood in #3
Full Changelog: https://github.com/Safemood/discountify/compare/1.0.0...1.1.0
- Added dynamic fields by @Safemood in #1
- Added slug parameter to define and defineIf methods by @Safemood in #2
- The
define
anddefineIf
methods now require aslug
parameter.
Full Changelog: https://github.com/Safemood/discountify/compare/0.4.0...1.0.0
Full Changelog: https://github.com/Safemood/discountify/compare/0.1.0...0.4.0
Full Changelog: https://github.com/Safemood/discountify/compare/0.1.0...0.3.1
Full Changelog: https://github.com/Safemood/discountify/commits/0.1.0