Commit graph

414 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
3af10943e9 Merge branch 'update-coupon-picture' into 'coupon'
feat: ✨ add use case to update coupon pictures

See merge request ldc-web/projets/mesbr!60
2026-10-14 07:42:57 +00: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
3251e53fa3 Merge branch 'fix-find-coupon' into 'coupon'
Fix find coupon

See merge request ldc-web/projets/mesbr!63
2026-10-13 14:28:45 +00:00
Corentin Huet
6d932429c4 chore: 🚨 resolve pint error 2026-10-13 16:25:13 +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
Corentin HUET
6addc3a4fa Merge branch 'fix-coupon-processing-code' into 'coupon'
fix: 🐛 restrict processing code to 13 digits

See merge request ldc-web/projets/mesbr!62
2026-10-13 14:04:14 +00: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
34273a2fd3 Merge branch 'find-coupon' into 'coupon'
feat: ✨ add use case to find coupon details by code

See merge request ldc-web/projets/mesbr!59
2026-10-13 08:13:32 +00: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
4d3c778d17 Merge branch 'changes-after-review' into 'refonte'
Changes after review

See merge request ldc-web/projets/mesbr!56
2026-10-02 15:18:07 +00: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
a2d211814b Merge branch 'common-sprint-2' into 'refonte'
Common sprint 2

See merge request ldc-web/projets/mesbr!39
2026-10-02 10:51:09 +00: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
028f0a675d refactor: ♻️ delete stock repository 2026-10-02 12:48:00 +02:00
Corentin Huet
237e2c62be feat: ✨ create campaign, coupon and stock repositories 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
Corentin Huet
a58d604814 refactor: ♻️ replace trim with mb_trim 2026-10-02 12:47:27 +02:00
Corentin Huet
eae4193713 refactor: ♻️ replace trim with mb_trim 2026-10-02 12:47:27 +02:00