Commit graph

78 commits

Author SHA1 Message Date
Corentin Huet
5bb8063999 feat: ✨ update legal and validity information of a coupon 2026-10-14 09:46:58 +02:00
Corentin Huet
620e4ef44c chore: 🚨 resolve linters error 2026-10-14 09:36:42 +02:00
Corentin Huet
8d974b5161 feat: ✨ add use case to update coupon pictures 2026-10-14 09:31:14 +02:00
Corentin Huet
b1b7857ddc refactor: ♻️ return brand code instead of brand in coupon details 2026-10-13 16:20:01 +02:00
Alexis Gousseau
d75f132ee1
fix: 🚚 renaming classes that do not belong directly to Coupons 2026-10-13 16:13:01 +02:00
Alexis Gousseau
c3a3d1cb83 Merge branch 'coupon-list' into 'coupon'
feat: ✨ add ListCoupons Use Case and tests

See merge request ldc-web/projets/mesbr!58
2026-10-13 16:06:55 +02:00
Alexis Gousseau
5c6c1b1222
feat: ✨ add ListCoupons Use Case and tests 2026-10-13 16:04:10 +02:00
Corentin Huet
e4a0ad5b73 fix: 🐛 restrict processing code to 13 digits 2026-10-13 15:56:11 +02:00
Alexis Gousseau
5a3815579d
test: ✅ cover country rules in coupon use case and value objects 2026-10-13 11:34:05 +02:00
Corentin Huet
cbd5a56e48 feat: ✨ add use case to find coupon details by code 2026-10-13 10:00:57 +02:00
Alexis Gousseau
a21415269c
feat: ✨ add CreateCoupon use case tests and check brand existence when creating a coupon 2026-10-12 17:17:21 +02:00
Alexis Gousseau
680c71ea87
test: ✅ update on coupon Entity and related VO 2026-10-12 17:08:07 +02:00
Alexis Gousseau
fdbde84728
refactor: ♻️ update coupon Entity and related VO 2026-10-12 17:07:56 +02:00
Corentin Huet
0b7da69567 refactor: ♻️ make sort required in campaign request list 2026-10-02 17:13:05 +02:00
Corentin Huet
5a59a92546 refactor: ♻️ move face value validation to MoneyAmount 2026-10-02 17:00:14 +02:00
Corentin Huet
678487aa07 refactor: ♻️ refactor coupon diffusion test 2026-10-02 12:48:00 +02:00
K Muller
871ceade05 fix: 🐛 new structures and fix linters 2026-10-02 12:48:00 +02:00
K Muller
a9147e27c7 fix: 🐛 some fixes on the structure in sprint2 2026-10-02 12:48:00 +02:00
Corentin Huet
567a5cd48e feat: ✨ add campaign request creation use case 2026-10-02 12:48:00 +02:00
Corentin Huet
7136ce9ee6 refactor: ♻️ centralize test variables in beforeEach 2026-10-02 12:48:00 +02:00
Corentin Huet
7265d2fa5f fix: 🐛 resolve some tests 2026-10-02 12:48:00 +02:00
Corentin Huet
f45bb119e0 refactor: ♻️ update entities, related VOs and tests 2026-10-02 12:48:00 +02:00
K Muller
02dfb42056 fix: 🐛 rename brand into brandcode 2026-10-02 12:47:59 +02:00
K Muller
18551d8bdb fix: 🐛 resolve conflicts 2026-10-02 12:47:59 +02:00
K Muller
aec9e6a575 feat: ✨ delete country from requestedcoupon 2026-10-02 12:47:59 +02:00
K Muller
ca312020cd fix: 🐛 change country and country authorized 2026-10-02 12:47:59 +02:00
K Muller
44c65cf9f6 feat: ✨ country enum is on coupon, and used as a backup 2026-10-02 12:47:59 +02:00
K Muller
2c693d9045 fix: 🐛 country in shared 2026-10-02 12:47:59 +02:00
K Muller
69faddcd08 fix: 🐛 change reject test for testing reason null 2026-10-02 12:47:59 +02:00
K Muller
29c6428aaf fix: 🐛 change Country into Shared 2026-10-02 12:47:59 +02:00
K Muller
65e834a06e fix: 🐛 fix linters 2026-10-02 12:47:58 +02:00
K Muller
f2fb5d8a23 fix: 🐛 fix linters 2026-10-02 12:47:27 +02:00
Corentin Huet
611bf375ab feat: ✨ add list campaign request tests without sort and without filters 2026-10-02 12:47:27 +02:00
K Muller
973c833fac fix: 🐛 change entity requestedCoupon into VO 2026-10-02 12:47:27 +02:00
K Muller
d10b91fe48 fix: 🐛 delete the assert on RejectCampaignRequest UseCase 2026-10-02 12:47:27 +02:00
Corentin Huet
e15a372e59 refactor: ♻️ DateTime VO and use native DateTime class 2026-10-02 12:47:27 +02:00
K Muller
c773e9de4e fix: 🐛 add Quantity and WarningQuantity as VO 2026-10-02 12:47:27 +02:00
K Muller
6d7aecbd1d fix: 🐛 put enum in vo folder / use global country enum 2026-10-02 12:47:27 +02:00
Corentin Huet
59e4dbf2ee feat: ✨ add validations to entities and value objects 2026-10-02 12:47:27 +02:00
K Muller
19afb9f636 fix: 🐛 delete legacy base enum and backed int for enums 2026-10-02 12:47:27 +02:00
Corentin Huet
e5e64d69be refactor: ♻️ align Coupon entity with UML cardinalities 2026-10-02 12:47:27 +02:00
Corentin Huet
01b4a049b2 fix: 🚨 resolve pint errors 2026-10-02 12:47:27 +02:00
Corentin Huet
50eb40841f fix: 🚨 resolve phpcs errors 2026-10-02 12:47:27 +02:00
Corentin Huet
7312d3a192 feat: ✨ add findAll method to campaign request 2026-10-02 12:47:27 +02:00
K Muller
895b535f76 feat: ✨ add the rejection method for campaign request 2026-10-02 12:47:27 +02:00
K Muller
41a73edd97 fix: 🚨 linters 2026-10-02 12:47:27 +02:00
K Muller
5b872045c5 fix: 🚨 linters 2026-10-02 12:47:27 +02:00
Corentin Huet
063e3b79fb fix: 🚨 resolve pint errors 2026-10-02 12:47:27 +02:00
Corentin Huet
2f17cd6a9a fix: 🐛 resolve linter errors and tests 2026-10-02 12:47:27 +02:00
K Muller
1891359e65 feat: ✨ add stock entity 2026-10-02 12:47:27 +02:00