Oliver Windall Juhl
a610805917
feat: Add DiscountConditions (#1230)
* feat: Add DiscountCondition entity + Join table per relation (#1146)
* feat: Convert DiscountService to TypeScript (#1149)
* feat: Add DiscountRepository + bulk insert and remove (#1156)
* feat: Add `conditions` to payload in `POST /discounts` and `POST /discounts/:id` (#1170)
* feat: Add DiscountRuleCondition entity
* fix relation
* fix join key
* Add discount rule condition repo
* add join table per relation
* Convert DiscountService to TypeScript
* feat: Add DiscountConditionRepository
* Add migration + remove use of valid_for
* revert changes to files, not done yet
* init work on create discount endpoint
* Add conditions to create discount endpoint
* Add conditions to update discount endpoint
* Add unique constraint to discount condition
* integration tests passing
* fix imports of models
* fix tests (excluding totals calculations)
* Fix commented code
* add unique constraint on discount condition
* Add generic way of generating retrieve configs
* Requested changes + ExactlyOne validator
* Remove isLocal flag from error handler
* Use postgres error constant
* remove commented code
* feat: Add `isValidForProduct` to check if Discount is valid for a given Product (#1172)
* feat: Add `canApplyForCustomer` to check if Discount is valid for customer groups (#1212)
* feat: Add `calculateDiscountForLineItem` (#1224)
* feat: Adds discount condition test factory (#1228)
* Remove use of valid_for
* Tests passing
* Remove valid_for form relations
* Add integration tests for applying discounts to cart
2022-03-24 16:47:50 +01:00
..
2022-03-23 17:17:19 +01:00
2021-09-30 12:19:37 +02:00
2022-02-16 22:45:19 +01:00
2022-03-10 13:05:46 +01:00
2022-03-10 13:05:46 +01:00
2022-03-24 16:47:50 +01:00
2021-09-10 13:57:34 +02:00
2022-02-10 09:11:32 +01:00
2021-12-08 10:15:22 +01:00
2021-09-22 15:19:35 +02:00
2022-02-01 17:24:13 +01:00
2022-03-21 19:03:42 +01:00
2022-02-03 19:03:15 +01:00
2022-03-23 17:17:19 +01:00
2022-02-10 09:15:07 +01:00
2021-09-29 09:22:09 +02:00
2022-01-04 16:35:38 +01:00
2022-03-18 15:18:50 +01:00
2021-11-03 14:11:27 +01:00
2021-12-08 10:15:22 +01:00
2021-09-21 11:15:33 +02:00